*{box-sizing:border-box;margin:0;padding:0}html,body,#root{width:100%;min-height:100%}body{color:#111827;background:#f6f8fb;font-family:Inter,Arial,sans-serif}.app{width:100%;min-height:100vh;display:flex}.sidebar{color:#fff;background:#111827;flex-shrink:0;width:250px;min-height:100vh;padding:24px 16px}.logo{padding:8px 12px 32px}.logo h2{font-size:20px;font-weight:700}.logo p{color:#9ca3af;margin-top:4px;font-size:12px}.sidebar nav{flex-direction:column;gap:6px;display:flex}.sidebar nav a{color:#9ca3af;border-radius:8px;align-items:center;padding:12px 14px;font-size:15px;text-decoration:none;transition:all .2s;display:flex}.sidebar nav a:hover{color:#fff;background:#1f2937}.sidebar nav a.active{color:#fff;background:#2563eb}.sidebar{height:100vh;position:fixed;top:0;left:0;overflow-y:auto}.main-content{background:#f6f8fb;flex:1;min-width:0;height:100vh;margin-left:250px;overflow-y:auto}.header{background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;height:72px;padding:0 32px;display:flex}.header h1{color:#111827;font-size:19px;font-weight:600}.admin{align-items:center;gap:10px;font-size:15px;display:flex}.admin-avatar{color:#2563eb;background:#dbeafe;border-radius:50%;justify-content:center;align-items:center;width:34px;height:34px;font-weight:600;display:flex}.dashboard{padding:32px}.page-heading{margin-bottom:28px}.page-heading h2{color:#111827;font-size:28px;font-weight:650}.page-heading p{color:#6b7280;margin-top:6px;font-size:15px}.stats{grid-template-columns:repeat(4,1fr);gap:18px;display:grid}.stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px}.stat-top{justify-content:space-between;align-items:center;display:flex}.stat-title{color:#6b7280;font-size:15px}.stat-icon{background:#eff6ff;border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;font-size:15px;display:flex}.stat-card h3{color:#111827;margin-top:16px;font-size:30px}.stat-card p{margin-top:7px;font-size:13px}.positive{color:#16a34a}.warning-text{color:#d97706}.orders-section{background:#fff;border:1px solid #e5e7eb;border-radius:12px;margin-top:24px;overflow:hidden}.section-header{justify-content:space-between;align-items:center;padding:22px 24px;display:flex}.section-header h2{color:#111827;font-size:20px}.section-header p{color:#6b7280;margin-top:5px;font-size:13px}.view-all{color:#2563eb;cursor:pointer;background:0 0;border:none;font-size:14px}.table-container{width:100%;overflow-x:auto}.table-container table{border-collapse:collapse;table-layout:auto;width:100%}.table-container th{text-align:left;vertical-align:middle;white-space:nowrap;color:#6b7280;letter-spacing:.04em;background:#f9fafb;padding:16px 24px;font-size:13px;font-weight:600}.table-container td{text-align:left;vertical-align:middle;color:#374151;overflow-wrap:anywhere;border-top:1px solid #f0f0f0;padding:18px 24px;font-size:14px}.table-container th:first-child,.table-container td:first-child{padding-left:24px}.table-container th:last-child,.table-container td:last-child{padding-right:24px}.order-id{color:#2563eb;font-weight:600}.status{border-radius:20px;padding:6px 12px;font-size:13px;font-weight:600;display:inline-flex}.status.shipped{color:#1d4ed8;background:#dbeafe}.status.pending{color:#92400e;background:#fef3c7}.status.delivered{color:#166534;background:#dcfce7}.status.processing{color:#6d28d9;background:#ede9fe}@media (width<=1000px){.stats{grid-template-columns:repeat(2,1fr)}}@media (width<=700px){.sidebar{width:200px}.dashboard{padding:20px}.stats{grid-template-columns:1fr}}.customers-page{width:100%}.customer-toolbar{gap:12px;margin-bottom:20px;display:flex}.customer-toolbar input{background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;flex:1;max-width:500px;height:42px;padding:0 14px;font-size:13px}.customer-toolbar input:focus{border-color:#2563eb}.filter-button{cursor:pointer;color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:8px;height:42px;padding:0 18px}.filter-button:hover{background:#f9fafb}.customers-section{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}.customer-name{color:#111827;align-items:center;gap:10px;font-weight:500;display:flex}.customer-avatar{color:#2563eb;background:#dbeafe;border-radius:50%;justify-content:center;align-items:center;width:34px;height:34px;font-size:13px;font-weight:600;display:flex}.customer-status{color:#166534;background:#dcfce7;border-radius:20px;padding:5px 10px;font-size:11px;font-weight:600;display:inline-flex}.view-button{color:#2563eb;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:6px;padding:6px 12px;font-size:12px}.view-button:hover{background:#eff6ff}.customer-details-page{width:100%}.back-button{color:#2563eb;cursor:pointer;background:0 0;border:none;margin-bottom:20px;padding:0;font-size:13px}.customer-profile-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:24px;padding:24px}.profile-top{align-items:center;gap:14px;display:flex}.large-avatar{color:#2563eb;background:#dbeafe;border-radius:50%;justify-content:center;align-items:center;width:54px;height:54px;font-size:20px;font-weight:600;display:flex}.profile-top h2{color:#111827;font-size:20px}.profile-top p{color:#6b7280;margin-top:4px;font-size:13px}.profile-top .customer-status{margin-left:auto}.customer-info{border-top:1px solid #e5e7eb;grid-template-columns:repeat(3,1fr);margin-top:24px;padding-top:20px;display:grid}.customer-info div{flex-direction:column;gap:6px;display:flex}.customer-info span{color:#6b7280;font-size:12px}.customer-info strong{color:#111827;font-size:17px}.orders-page{width:100%}.order-toolbar{gap:12px;margin-bottom:20px;display:flex}.order-toolbar input{background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;flex:1;max-width:500px;height:42px;padding:0 14px;font-size:13px}.order-toolbar input:focus{border-color:#2563eb}.order-toolbar select{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:8px;height:42px;padding:0 14px}.orders-section{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}.order-details-page{width:100%}.order-details-header{background:#fff;border:1px solid #e5e7eb;border-radius:12px;justify-content:space-between;align-items:center;margin-bottom:20px;padding:24px;display:flex}.order-label{color:#6b7280;letter-spacing:.5px;font-size:11px;font-weight:600}.order-details-header h2{margin:5px 0;font-size:22px}.order-details-header p:last-child{color:#6b7280;font-size:12px}.order-details-grid{grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px;display:grid}.details-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:20px;padding:24px}.details-card h3{color:#111827;margin-bottom:18px;font-size:15px}.detail-row{border-bottom:1px solid #f0f0f0;justify-content:space-between;align-items:center;padding:13px 0;font-size:13px;display:flex}.detail-row:last-child{border-bottom:none}.detail-row span:first-child{color:#6b7280}.product-detail{align-items:center;gap:14px;display:flex}.product-detail>strong:last-child{margin-left:auto}.product-detail p{color:#6b7280;margin-top:5px;font-size:12px}.product-placeholder{background:#f3f4f6;border-radius:8px;justify-content:center;align-items:center;width:50px;height:50px;font-size:22px;display:flex}.payment-success{font-weight:600;color:#15803d!important}.tracking-heading{justify-content:space-between;align-items:center;display:flex}.tracking-heading p{color:#6b7280;font-size:12px}.tracking-id{color:#2563eb;background:#eff6ff;border-radius:6px;padding:7px 10px;font-size:12px}.tracking-timeline{margin-top:25px;margin-left:8px}.tracking-step{gap:14px;min-height:65px;display:flex;position:relative}.tracking-step:not(:last-child):before{content:"";background:#d1d5db;width:1px;height:65px;position:absolute;top:22px;left:10px}.tracking-dot{color:#6b7280;z-index:1;background:#e5e7eb;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:11px;font-weight:600;display:flex}.tracking-step.completed .tracking-dot,.tracking-step.active .tracking-dot{color:#fff;background:#2563eb}.tracking-step strong{color:#111827;font-size:13px}.tracking-page{width:100%}.tracking-toolbar{gap:12px;margin-bottom:20px;display:flex}.tracking-toolbar input{background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;width:100%;max-width:500px;height:42px;padding:0 14px;font-size:14px}.tracking-toolbar input:focus{border-color:#2563eb}.tracking-layout{grid-template-columns:360px 1fr;gap:20px;display:grid}.tracking-orders,.tracking-details,.tracking-timeline-card,.status-update-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px}.tracking-orders{overflow:hidden}.tracking-order-list{border-top:1px solid #e5e7eb}.tracking-order-item{text-align:left;cursor:pointer;background:#fff;border:none;border-bottom:1px solid #f0f0f0;justify-content:space-between;align-items:center;width:100%;padding:16px 18px;transition:all .2s;display:flex}.tracking-order-item:hover{background:#f9fafb}.tracking-order-item.selected{background:#eff6ff;border-left:3px solid #2563eb}.tracking-order-item strong{color:#2563eb;font-size:14px}.tracking-order-item p{color:#111827;margin-top:5px;font-size:14px}.tracking-order-item span{color:#6b7280;margin-top:3px;font-size:12px;display:block}.tracking-status{white-space:nowrap;background:#eff6ff;border-radius:20px;padding:5px 9px;font-weight:600;color:#2563eb!important;font-size:11px!important}.tracking-empty{text-align:center;color:#6b7280;padding:30px;font-size:14px}.tracking-details{padding:24px}.tracking-details-header{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding-bottom:22px;display:flex}.tracking-details-header h2{margin:5px 0;font-size:22px}.tracking-details-header p{color:#6b7280;font-size:13px}.status-update-card{justify-content:space-between;align-items:center;gap:20px;margin-top:20px;padding:20px;display:flex}.status-update-card h3{color:#111827;font-size:16px}.status-update-card p{color:#6b7280;margin-top:5px;font-size:13px}.status-update-controls{gap:10px;display:flex}.status-update-controls select{color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:7px;height:40px;padding:0 12px;font-size:13px}.update-status-button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:7px;height:40px;padding:0 16px;font-size:13px;font-weight:500}.update-status-button:hover{background:#1d4ed8}.tracking-timeline-card{margin-top:20px;padding:24px}.tracking-timeline-card h3{color:#111827;font-size:17px}.tracking-timeline-card .tracking-heading p{color:#6b7280;margin-top:4px;font-size:13px}.cart-page-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.cart-page-heading .view-button{white-space:nowrap}.conversations-page{min-width:0}.conversation-toolbar{gap:12px;margin:20px 0;display:flex}.conversation-toolbar input{color:#111827;background:#fff;border:1px solid #d7dce4;border-radius:8px;flex:1;min-width:0;padding:12px 14px}.conversation-toolbar select{background:#fff;border:1px solid #d7dce4;border-radius:8px;padding:12px}.conversation-layout{background:#fff;border:1px solid #e1e5eb;border-radius:12px;grid-template-columns:minmax(230px,.9fr) minmax(320px,1.8fr) minmax(200px,.8fr);min-height:570px;display:grid;overflow:hidden}.conversation-list{background:#fff;border-right:1px solid #e5e7eb;min-width:0}.conversation-list-header{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:18px;display:flex}.conversation-list-header h3{margin:0;font-size:16px}.conversation-list-header>span{color:#285be7;background:#eef2ff;border-radius:12px;padding:3px 9px;font-size:12px}.conversation-item{text-align:left;cursor:pointer;color:#111827;background:#fff;border:0;border-bottom:1px solid #eef0f3;align-items:flex-start;gap:11px;width:100%;padding:15px;display:flex}.conversation-item:hover{background:#f8fafc}.conversation-item.selected{background:#eff4ff;box-shadow:inset 3px 0 #2864e8}.conversation-avatar,.customer-profile-avatar{color:#2458d3;background:#e5edff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;font-weight:700;display:flex}.conversation-item-content{flex-direction:column;flex:1;gap:7px;min-width:0;display:flex}.conversation-item-top{justify-content:space-between;gap:8px;display:flex}.conversation-item-top strong{font-size:13px}.conversation-item-top small,.message-bubble small{color:#6b7280;font-size:11px}.conversation-preview{color:#6b7280;text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.conversations-page .status{border-radius:20px;align-self:flex-start;padding:3px 8px;font-size:11px;font-weight:600}.conversations-page .status.open{color:#2458d3;background:#e8f1ff}.conversations-page .status.resolved{color:#187647;background:#e5f7ed}.chat-header{background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:12px;padding:15px;display:flex}.chat-customer{align-items:center;gap:10px;min-width:0;display:flex}.chat-customer h3{margin:0 0 4px;font-size:14px}.chat-customer p,.conversation-customer-panel>p{color:#6b7280;margin:0;font-size:12px}.conversation-status-button{color:#285be7;cursor:pointer;background:#fff;border:1px solid #d6deed;border-radius:7px;padding:8px 10px;font-size:11px}.chat-messages{flex-direction:column;flex:1;gap:17px;padding:20px;display:flex;overflow-y:auto}.chat-date-label{color:#64748b;background:#e9edf3;border-radius:14px;align-self:center;padding:5px 10px;font-size:11px}.message-row{width:100%;display:flex}.message-row.received{justify-content:flex-start}.message-row.sent{justify-content:flex-end}.message-bubble{border-radius:12px;max-width:85%;padding:11px 13px 8px;box-shadow:0 1px 2px #1118270d}.message-row.received .message-bubble{background:#fff;border:1px solid #e5e7eb;border-top-left-radius:3px}.message-row.sent .message-bubble{background:#dcf8e8;border-top-right-radius:3px}.message-bubble p{overflow-wrap:anywhere;margin:0 0 6px;font-size:13px;line-height:1.5}.message-bubble small{text-align:right;display:block}.chat-reply{background:#fff;border-top:1px solid #e5e7eb;gap:8px;padding:13px;display:flex}.chat-reply input{border:1px solid #d7dce4;border-radius:8px;outline:none;flex:1;min-width:0;padding:11px 12px}.chat-reply input:focus,.conversation-toolbar input:focus{border-color:#2864e8}.chat-reply button{color:#fff;cursor:pointer;background:#2864e8;border:0;border-radius:8px;padding:10px 18px}.chat-reply button:disabled{cursor:not-allowed;opacity:.5}.demo-notice{color:#8a94a6;text-align:center;background:#fff;margin:0;padding:0 12px 12px;font-size:10px}.conversation-customer-panel{background:#fff;border-left:1px solid #e5e7eb;padding:24px 16px}.customer-profile-avatar{width:60px;height:60px;margin:4px auto 12px;font-size:22px}.conversation-customer-panel h3{text-align:center;margin:0 0 6px;font-size:15px}.conversation-customer-panel>p{text-align:center;margin-bottom:24px}.customer-info-row{border-bottom:1px solid #eef0f3;flex-direction:column;gap:5px;padding:13px 0;display:flex}.customer-info-row span{color:#6b7280;font-size:11px}.customer-info-row strong{overflow-wrap:anywhere;font-size:12px}.conversation-empty{color:#6b7280;text-align:center;padding:24px 12px;font-size:13px}.empty-conversation{text-align:center;margin:auto;padding:30px}.empty-conversation h3{margin-bottom:8px}.empty-conversation p{color:#6b7280;font-size:13px;line-height:1.6}@media (width<=1050px){.conversation-layout{grid-template-columns:minmax(220px,.8fr) minmax(300px,1.5fr)}.conversation-customer-panel{display:none}}@media (width<=650px){.conversation-toolbar{flex-direction:column}.conversation-layout{grid-template-columns:1fr}.conversation-list{border-bottom:1px solid #e5e7eb;border-right:0;max-height:260px;overflow-y:auto}.conversation-details{min-height:450px}.chat-header{flex-direction:column;align-items:flex-start}}.products-page{min-width:0}.product-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0;display:grid}.product-stat-card{background:#fff;border:1px solid #e1e5eb;border-radius:12px;padding:20px}.product-stat-card span,.product-stat-card small{color:#6b7280;font-size:12px;display:block}.product-stat-card strong{color:#111827;margin:12px 0 7px;font-size:27px;display:block}.product-toolbar{gap:12px;display:flex}.product-toolbar input{flex:1;min-width:150px}.product-name-cell{align-items:center;gap:11px;min-width:160px;display:flex}.product-name-cell>div:last-child{flex-direction:column;gap:4px;display:flex}.product-name-cell strong{color:#111827;font-size:13px}.product-name-cell small{color:#8a94a6;font-size:11px}.product-icon{background:#f8fafc;border:1px solid #e5e7eb;border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;font-size:19px;display:flex}.stock-indicator{white-space:nowrap;border-radius:20px;padding:5px 9px;font-size:11px;font-weight:600;display:inline-block}.stock-indicator.available{color:#187647;background:#e5f7ed}.stock-indicator.low{color:#9a6700;background:#fff4dc}.stock-indicator.out{color:#b42318;background:#fee9e9}.products-page .status.active{color:#187647;background:#e5f7ed}.products-page .status.inactive{color:#626b78;background:#f1f3f5}.product-modal-overlay{z-index:1000;background:#0f172a73;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0;overflow-y:auto}.product-modal{background:#fff;border:1px solid #e5e7eb;border-radius:14px;width:100%;max-width:520px;max-height:90vh;padding:26px;overflow-y:auto;box-shadow:0 20px 60px #0f172a33}.product-modal-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.product-modal-header h2{margin:5px 0;font-size:22px}.product-modal-header p:last-child{color:#6b7280;margin:0;font-size:12px}.product-modal-close{cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:8px;width:34px;height:34px;font-size:24px}.product-modal-icon{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;justify-content:center;align-items:center;height:110px;margin:22px 0;font-size:42px;display:flex}.product-modal .detail-row{border-bottom:1px solid #eef0f3;justify-content:space-between;gap:16px;padding:13px 0;font-size:13px;display:flex}.product-modal .detail-row span{color:#6b7280}.product-modal .detail-row strong{text-align:right;overflow-wrap:anywhere}.product-description{margin-top:20px}.product-description p{color:#6b7280;font-size:13px;line-height:1.6}.product-modal-done{color:#fff;cursor:pointer;background:#2864e8;border:0;border-radius:8px;width:100%;margin-top:20px;padding:12px}@media (width<=1000px){.product-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.product-toolbar{flex-wrap:wrap}}@media (width<=600px){.product-stats{grid-template-columns:1fr 1fr;gap:10px}.product-stat-card{padding:14px}.product-stat-card strong{font-size:23px}.product-toolbar{flex-direction:column}.product-toolbar input,.product-toolbar select{width:100%}}.update-customer-btn,.edit-actions button{color:#2563eb;cursor:pointer;background:#fff;border:1px solid #d0d5dd;border-radius:8px;padding:10px 16px;font-weight:600}.customer-edit-form{background:#fff;border:1px solid #e4e7ec;border-radius:12px;margin:20px 0;padding:24px}.customer-edit-form label{flex-direction:column;gap:8px;margin:16px 0;font-weight:500;display:flex}.customer-edit-form input{font:inherit;border:1px solid #d0d5dd;border-radius:8px;padding:12px}.edit-actions{justify-content:flex-end;gap:12px;margin-top:20px;display:flex}.edit-actions button:last-child{color:#fff;background:#2563eb;border-color:#2563eb}.header{background:#fff;border-bottom:1px solid #e5e7eb;justify-content:flex-end;align-items:center;padding:16px 28px;display:flex}.new-customer-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;padding:10px 16px;font-weight:600}.new-customer-btn:hover{background:#1d4ed8}.admin{align-items:center;gap:10px;display:flex}.header{background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;min-height:64px;padding:16px 28px;display:flex}.breadcrumb{color:#667085;align-items:center;gap:10px;font-size:14px;display:flex}.breadcrumb-separator{color:#c0c5ce}.breadcrumb-current{color:#101828;font-weight:600}.header-actions{align-items:center;gap:24px;display:flex}.breadcrumb-link{color:#667085;cursor:pointer;transition:color .2s}.breadcrumb-link:hover{color:#2563eb;text-decoration:underline}.customer-form-overlay{z-index:1000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0f172a80;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.customer-form-modal{background:#fff;border:1px solid #e5e7eb;border-radius:16px;width:100%;max-width:520px;max-height:90vh;padding:32px;overflow-y:auto;box-shadow:0 24px 60px #0f172a33}.customer-form-heading{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px;display:flex}.customer-form-heading h2{color:#101828;margin:0 0 6px;font-size:22px}.customer-form-heading p{color:#667085;margin:0;font-size:14px}.form-close-btn{color:#667085;cursor:pointer;background:0 0;border:none;font-size:28px;line-height:1}.customer-form-modal label{color:#344054;flex-direction:column;gap:8px;margin-bottom:18px;font-size:14px;font-weight:600;display:flex}.customer-form-modal label>span:first-child{color:#dc2626}.customer-form-modal .optional-label{color:#667085;font-weight:400}.customer-form-modal input{box-sizing:border-box;color:#101828;width:100%;font:inherit;background:#fff;border:1px solid #d0d5dd;border-radius:8px;outline:none;padding:12px 14px;font-weight:400}.customer-form-modal select,.customer-form-modal textarea{width:100%;font:inherit;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:11px 12px}.customer-form-modal textarea{resize:vertical;min-height:84px}.crm-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.crm-history-list{gap:10px;display:grid}.crm-history-entry{background:#fff;border:1px solid #e5e7eb;border-radius:8px;gap:5px;padding:14px 16px;display:grid}.crm-history-entry span{color:#6b7280;font-size:.875rem}.crm-history-entry p{white-space:pre-wrap;margin:0}.success-message{color:#166534}.error-message{color:#b91c1c}@media (width<=640px){.crm-form-grid{grid-template-columns:1fr}}.customer-form-modal input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.customer-form-note{color:#667085;background:#f8fafc;border-radius:8px;padding:12px;font-size:12px;line-height:1.5}.customer-form-actions{justify-content:flex-end;gap:12px;margin-top:24px;display:flex}.customer-form-actions button{cursor:pointer;border-radius:8px;padding:11px 16px;font-size:14px;font-weight:600}.cancel-form-btn{color:#344054;background:#fff;border:1px solid #d0d5dd}.save-customer-btn{color:#fff;background:#2563eb;border:1px solid #2563eb}.save-customer-btn:hover{background:#1d4ed8}@media (width<=520px){.customer-form-modal{padding:20px}.customer-form-actions button{flex:1}}.customer-profile-card{background:#fff;border:1px solid #e5e9f0;border-radius:16px;margin:20px 0 24px;padding:28px;box-shadow:0 4px 16px #0f172a09}.customer-profile-heading{border-bottom:1px solid #edf0f5;align-items:center;gap:18px;padding-bottom:26px;display:flex}.large-avatar{color:#245bea;background:#e7efff;border-radius:18px;flex-shrink:0;place-items:center;width:64px;height:64px;font-size:22px;font-weight:700;display:grid}.customer-heading-text{flex:1;min-width:0}.profile-eyebrow{color:#718096;letter-spacing:1.2px;font-size:11px;font-weight:700}.customer-heading-text h1{color:#172033;margin:5px 0;font-size:25px;font-weight:700}.customer-heading-text p,.section-header p{color:#718096;margin:4px 0 0;font-size:13px}.update-customer-btn{color:#245bea;cursor:pointer;background:#fff;border:1px solid #d6deeb;border-radius:9px;padding:10px 16px;font-weight:600}.update-customer-btn:hover{background:#f4f7ff;border-color:#9bb5ff}.customer-contact-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-top:24px;display:grid}.contact-item{background:#fafbfe;border:1px solid #edf0f5;border-radius:12px;align-items:flex-start;gap:14px;min-width:0;padding:18px;display:flex}.contact-icon{color:#245bea;background:#eaf0ff;border-radius:10px;flex-shrink:0;place-items:center;width:38px;height:38px;font-size:19px;display:grid}.contact-item>div{min-width:0}.contact-label{color:#718096;margin-bottom:7px;font-size:12px;font-weight:500;display:block}.contact-item strong{color:#172033;overflow-wrap:anywhere;font-size:14px;font-weight:600;display:block}.address-item{grid-column:1/-1}.contact-value{line-height:1.6}@media (width<=640px){.customer-profile-card{padding:18px}.customer-profile-heading{flex-wrap:wrap;gap:12px}.customer-heading-text h1{font-size:21px}.update-customer-btn{width:100%}.customer-contact-grid{grid-template-columns:1fr}.address-item{grid-column:auto}}.edit-customer-panel{background:#fff;border:1px solid #e5e9f0;border-radius:14px;margin:20px 0;padding:24px}.edit-customer-panel h2{margin:0 0 20px;font-size:20px}.edit-customer-panel form{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.edit-customer-panel label{color:#475569;flex-direction:column;gap:8px;font-size:13px;font-weight:600;display:flex}.edit-customer-panel input{box-sizing:border-box;width:100%;font:inherit;color:#172033;border:1px solid #d8deea;border-radius:8px;padding:11px 12px}.edit-customer-actions{grid-column:1/-1;justify-content:flex-end;gap:10px;display:flex}.edit-customer-actions button{cursor:pointer;border:1px solid #d8deea;border-radius:8px;padding:10px 16px}.edit-error{color:#dc2626;grid-column:1/-1}@media (width<=600px){.edit-customer-panel form{grid-template-columns:1fr}}.default-address-checkbox{cursor:pointer;background:#f8fafc;border:1px solid #dbe4f0;border-radius:12px;grid-column:1/-1;align-items:flex-start;padding:16px;flex-direction:row!important;gap:12px!important;margin:4px 0 12px!important;display:flex!important}.default-address-checkbox input[type=checkbox]{accent-color:#2563eb;flex-shrink:0;width:18px;height:18px;margin:2px 0 0}.default-address-checkbox span{flex-direction:column;gap:5px;display:flex}.default-address-checkbox strong{color:#172033;font-size:14px}.default-address-checkbox small{color:#64748b;font-size:12px;line-height:1.5}.delivery-address-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:16px;display:grid}.delivery-address-form label:not(.default-address-checkbox){color:#475569;flex-direction:column;gap:8px;min-width:0;font-size:13px;font-weight:600;display:flex}.delivery-address-form input:not([type=checkbox]){box-sizing:border-box;width:100%;min-height:44px;font:inherit;background:#fff;border:1px solid #d8deea;border-radius:8px;padding:11px 12px}.delivery-address-form .default-address-checkbox{grid-column:1/-1}@media (width<=600px){.delivery-address-form{grid-template-columns:1fr}}.save-customer-top-btn{color:#fff;cursor:pointer;background:#2563eb;border:1px solid #2563eb;border-radius:9px;justify-content:center;align-items:center;gap:8px;padding:11px 20px;font-family:inherit;font-size:14px;font-weight:600;transition:all .2s;display:inline-flex;box-shadow:0 2px 5px #2563eb2e}.save-customer-top-btn:hover{background:#1d4ed8;border-color:#1d4ed8;transform:translateY(-1px);box-shadow:0 4px 10px #2563eb38}.save-customer-top-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.contact-item button{color:#2458d3;cursor:pointer;background:#eff4ff;border:1px solid #c7d7fe;border-radius:8px;justify-content:center;align-items:center;margin-top:8px;padding:8px 14px;font-family:inherit;font-size:12px;font-weight:600;transition:all .2s;display:inline-flex}.contact-item button:hover{background:#dbe7ff;border-color:#91b4ff}.contact-item button:disabled{opacity:.6;cursor:not-allowed}.contact-item{background:#fff;border:1px solid #e2e8f0;border-radius:12px;margin:10px 0;padding:18px 20px;transition:border-color .2s,box-shadow .2s;box-shadow:0 2px 6px #0f172a08}.contact-item:hover{border-color:#c7d7fe;box-shadow:0 4px 12px #0f172a0f}.delivery-address-form+button{font-family:inherit}button:where(:not(.save-customer-top-btn)):has(+.never-match){font-family:inherit}.customer-profile-card>button[type=button]{font-family:inherit}.add-delivery-address-btn{color:#fff;cursor:pointer;background:#2563eb;border:1px solid #2563eb;border-radius:9px;justify-content:center;align-items:center;margin-top:16px;padding:11px 18px;font-family:inherit;font-size:13px;font-weight:600;transition:background .2s;display:inline-flex}.add-delivery-address-btn:hover{background:#1d4ed8}.add-delivery-address-btn:disabled,.save-customer-top-btn:disabled{opacity:.6;cursor:not-allowed}.contact-item button{color:#2458d3;cursor:pointer;background:#eff4ff;border:1px solid #c7d7fe;border-radius:8px;margin-top:8px;padding:8px 14px;font-family:inherit;font-size:12px;font-weight:600}.contact-item button:hover{background:#dbe7ff}.edit-page-heading{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.customer-save-actions{flex-direction:column;flex-shrink:0;align-items:flex-end;gap:8px;display:flex}.customer-save-success{color:#15803d;text-align:right;white-space:normal;margin:0;padding:0;font-size:12px;line-height:1.5;display:block}.edit-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin-top:12px;padding:12px 14px;font-size:13px;line-height:1.5}.cart-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:24px;display:grid}.cart-stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:22px}.cart-stat-card p{color:#6b7280;margin:0 0 12px;font-size:14px}.cart-stat-card h2{color:#111827;margin:0;font-size:28px;font-weight:700}@media (width<=900px){.cart-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=500px){.cart-stats-grid{grid-template-columns:1fr}}.product-actions{align-items:center;gap:8px;display:flex}.product-modal{box-sizing:border-box;flex-direction:column;gap:16px;width:min(520px,100vw - 32px);max-width:520px;max-height:85vh;padding:26px;display:flex;overflow-y:auto}.product-modal .product-modal-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:4px;display:flex}.product-modal .product-modal-header h2{margin:4px 0}.product-modal label{color:#374151;flex-direction:column;gap:7px;width:100%;font-size:13px;font-weight:600;display:flex}.product-modal label input,.product-modal label textarea,.product-modal label select{box-sizing:border-box;color:#111827;width:100%;min-width:0;font:inherit;background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;padding:11px 12px;font-size:14px;font-weight:400;display:block}.product-modal label input:focus,.product-modal label textarea:focus,.product-modal label select:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.product-modal label textarea{resize:vertical;min-height:90px}.product-modal .product-modal-close{flex-shrink:0}.product-modal .product-actions{justify-content:flex-end;align-items:center;gap:10px;margin-top:4px;display:flex}.product-modal .product-actions button{min-height:40px;padding:10px 18px}.product-modal .product-modal-done{flex:1}.product-modal [role=alert]{color:#dc2626;margin:0;font-size:13px}@media (width<=480px){.product-modal{padding:20px}.product-modal .product-actions{flex-wrap:wrap}}.conversation-details{background:#f8fafc;flex-direction:column;min-width:0;display:flex}.conversation-details .chat-header{box-sizing:border-box;background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:12px;min-height:76px;padding:16px 20px;display:flex}.conversation-details .chat-customer h3{color:#111827;margin:0 0 5px;font-size:15px}.conversation-details .chat-customer p{color:#6b7280;margin:0;font-size:12px}.conversation-activity{flex-direction:column;flex:1;align-items:stretch;gap:16px;padding:24px;display:flex;overflow-y:auto}.activity-date{color:#475569;background:#e9eef7;border-radius:20px;align-self:center;padding:7px 12px;font-size:11px}.activity-card{box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:12px;width:min(100%,540px);padding:18px;box-shadow:0 2px 5px #0f172a08}.activity-card-heading{align-items:center;gap:12px;margin-bottom:14px;display:flex}.activity-icon{color:#2563eb;background:#eff6ff;border-radius:10px;flex-shrink:0;place-items:center;width:36px;height:36px;font-size:18px;display:grid}.activity-card-heading strong,.activity-history-item strong{color:#1f2937;font-size:13px;display:block}.activity-card-heading small,.activity-history-item small{color:#64748b;margin-top:5px;font-size:11px;display:block}.activity-state{color:#1d4ed8;background:#f8fafc;border-radius:8px;padding:11px 12px;font-size:13px;font-weight:600}.activity-message{color:#334155;overflow-wrap:anywhere;margin:0;font-size:14px;line-height:1.7}.message-reference{flex-direction:column;gap:8px;display:flex}.message-reference span{color:#64748b;font-size:12px}.message-reference code{color:#64748b;overflow-wrap:anywhere;white-space:normal;background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;padding:10px;font-size:11px;display:block}.activity-history{width:min(100%,540px)}.activity-history h4{color:#334155;margin:4px 0 14px;font-size:13px}.activity-history-item{border-bottom:1px solid #e2e8f0;align-items:flex-start;gap:12px;padding:12px 0;display:flex}.activity-history-dot{background:#2563eb;border-radius:50%;flex-shrink:0;width:9px;height:9px;margin-top:4px}.activity-footnote{color:#64748b;border-top:1px solid #e2e8f0;margin:auto 0 0;padding-top:14px;font-size:11px;line-height:1.6}.conversation-details{min-width:0}.conversation-activity{box-sizing:border-box;background:#f7f9fc;flex-direction:column;align-items:stretch;gap:22px;padding:26px;display:flex}.activity-timeline-heading{border-bottom:1px solid #e3e8f0;justify-content:space-between;align-items:center;gap:16px;padding-bottom:18px;display:flex}.activity-timeline-heading h3{color:#172033;letter-spacing:-.2px;margin:0;font-size:18px;font-weight:700}.activity-timeline-heading p{color:#718096;margin:5px 0 0;font-size:12px;line-height:1.5}.activity-timeline-count{color:#2459d3;background:#edf3ff;border:1px solid #dce6ff;border-radius:999px;flex-shrink:0;padding:7px 11px;font-size:11px;font-weight:600}.activity-timeline-list{align-items:flex-start;gap:14px;min-width:0;display:flex;position:relative}.activity-timeline-list:not(.message-event):after{content:"";background:#dce5f4;width:2px;position:absolute;top:46px;bottom:-22px;left:19px}.activity-timeline-marker span{color:#245bdb;font-size:22px;line-height:1}.message-marker{color:#16805d;background:#eef8f3;border-color:#d5efe1}.activity-timeline-event{background:#fff;border:1px solid #e1e7f0;border-radius:14px;flex:1;min-width:0;padding:19px 20px;box-shadow:0 3px 10px #0f172a08}.activity-timeline-event-top{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.activity-timeline-event h4{color:#172033;margin:0;font-size:14px;font-weight:650}.activity-timeline-event-top p{color:#7a8699;margin:6px 0 0;font-size:12px}.activity-state-pill{color:#2459d3;overflow-wrap:anywhere;background:#f0f5ff;border-radius:8px;flex-shrink:0;align-items:center;max-width:48%;padding:7px 10px;font-size:12px;font-weight:650;display:inline-flex}.activity-timeline-message{color:#334155;overflow-wrap:anywhere;white-space:pre-wrap;background:#f7f9fc;border-radius:10px;margin:16px 0 0;padding:13px 14px;font-size:14px;line-height:1.65}.activity-timeline-empty{text-align:center;background:#fff;border:1px dashed #d7deea;border-radius:14px;flex-direction:column;align-items:center;padding:46px 24px;display:flex}.activity-empty-icon{color:#64748b;background:#f0f4fa;border-radius:14px;place-items:center;width:44px;height:44px;font-size:23px;display:grid}.activity-timeline-empty h4{color:#263449;margin:14px 0 0;font-size:14px}.activity-timeline-empty p{color:#718096;max-width:320px;margin:7px 0 0;font-size:12px;line-height:1.6}.activity-timeline-note{color:#718096;border-top:1px solid #e3e8f0;align-items:flex-start;gap:9px;margin-top:auto;padding-top:17px;display:flex}.activity-timeline-note span{color:#8291a7;flex-shrink:0;font-size:14px}.activity-timeline-note p{margin:0;font-size:11px;line-height:1.6}@media (width<=700px){.conversation-activity{padding:18px}.activity-timeline-event{padding:15px}.activity-timeline-event-top{flex-direction:column}.activity-state-pill{max-width:100%}}.activity-refresh-button{cursor:pointer;color:#245bdb;font:inherit;background:#edf3ff;border:1px solid #d5e2ff;border-radius:20px;padding:8px 14px;font-size:12px;font-weight:600}.activity-refresh-button:hover:not(:disabled){background:#dce8ff}.activity-refresh-button:disabled{cursor:wait;opacity:.7}.activity-timeline-list{padding-left:42px;position:relative}.activity-timeline-marker{z-index:1;justify-content:center;align-items:center;width:38px;height:38px;display:flex;position:absolute;top:8px;left:0}.activity-timeline-list:before{content:"";background:#d5e2ff;width:2px;position:absolute;top:46px;bottom:-20px;left:18px}.conversations-page{flex-direction:column;height:calc(100vh - 80px);min-height:0;display:flex;overflow:hidden}.conversations-page .page-heading,.conversations-page .product-stats,.conversations-page .conversation-toolbar{flex-shrink:0}.conversation-layout{flex:1;grid-template-columns:25% minmax(0,1fr) 23%;min-height:0;display:grid;overflow:hidden}.conversation-list{min-height:0;overflow-y:auto}.conversation-details{flex-direction:column;min-height:0;display:flex;overflow:hidden}.conversation-activity{flex:1;min-height:0;overflow-y:auto}.conversation-customer-panel{min-height:0;overflow-y:auto}.refresh-toast{border-radius:8px;margin:12px 0;padding:10px 14px;font-size:13px;font-weight:500}.refresh-toast.success{color:#18743a;background:#e8f7ed;border:1px solid #b7e4c7}.refresh-toast.error{color:#b42318;background:#fff0f0;border:1px solid #f3c0c0}.tracking-step{align-items:flex-start;gap:14px;padding-bottom:30px;display:flex;position:relative}.tracking-dot{color:#64748b;z-index:1;background:#e5e7eb;border-radius:50%;justify-content:center;align-items:center;width:22px;min-width:22px;height:22px;font-size:11px;display:flex}.tracking-step.completed .tracking-dot{color:#fff;background:#16a34a}.tracking-step.current .tracking-dot{color:#fff;background:#2563eb}.tracking-step.completed strong{color:#16a34a}.tracking-step.current strong{color:#2563eb}.tracking-step p{color:#64748b;margin-top:5px;font-size:12px}
