:root{--navy-950:#0b2945;--navy-800:#123a61;--teal-600:#12816b;--teal-500:#18a88a;--page:#f4f7f9;--surface:#fff;--text:#243746;--muted:#667784;--border:#dce5ea;--success:#238a64;--warning:#c98a20;--error:#c94b4b;--sidebar-width:240px}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--page);color:var(--text);font-family:Noto Sans JP,Hiragino Kaku Gothic ProN,Yu Gothic,sans-serif;font-size:14px}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh}.sidebar{background:var(--navy-950);color:#d9e5ed;height:100vh;width:var(--sidebar-width);z-index:10;flex-direction:column;display:flex;position:fixed;top:0;left:0}.brand{border-bottom:1px solid #ffffff1a;align-items:flex-start;gap:10px;min-height:88px;padding:18px 16px;display:flex}.brand-mark{background:var(--teal-500);color:#fff;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;display:flex}.brand-mark svg{width:17px;height:17px}.brand span,.brand small{color:#94a9b8;font-size:11px;display:block}.brand strong{color:#fff;margin:2px 0 7px;font-size:14px;display:block}.sidebar nav{padding:12px 0}.sidebar nav a{border-left:3px solid #0000;align-items:center;gap:12px;min-height:48px;padding:0 16px;display:flex;position:relative}.sidebar nav a svg{color:#b7c8d4;width:18px;height:18px}.sidebar nav a small{color:#8da4b4;margin-left:auto;font-size:10px}.sidebar nav a:hover{background:#ffffff0f}.sidebar nav a.active{border-left-color:var(--teal-500);color:#fff;background:#ffffff1c;font-weight:700}.sidebar nav a.active svg{color:var(--teal-500)}.sidebar-user{border-top:1px solid #ffffff1a;margin-top:auto;padding:16px}.user-row{align-items:center;gap:10px;display:flex}.avatar{background:#0f6671;border-radius:50%;justify-content:center;align-items:center;width:30px;height:30px;display:flex}.user-row strong,.user-row span{font-size:12px;display:block}.user-row div span{color:#8fa7b7;margin-top:2px}.user-actions{color:#a8bbc8;justify-content:space-between;margin-top:18px;font-size:11px;display:flex}.user-actions span{align-items:center;gap:5px;display:flex}.user-actions svg{width:13px;height:13px}.user-actions form{margin:0}.user-actions button{color:inherit;cursor:pointer;font:inherit;background:0 0;border:0;align-items:center;gap:5px;padding:0;display:flex}.main-content{margin-left:var(--sidebar-width);min-height:100vh;padding:26px 28px 40px}.page-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.page-header h1{letter-spacing:.01em;margin:0;font-size:24px;line-height:1.25}.page-header p{color:var(--muted);margin:4px 0 0}.header-buttons{gap:8px;display:flex}.button{border:1px solid var(--border);color:var(--text);cursor:pointer;background:#fff;border-radius:6px;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:0 14px;font-weight:600;display:inline-flex}.button svg{width:16px;height:16px}.button:hover{border-color:#a9bbc6}.button.primary{background:var(--teal-500);border-color:var(--teal-500);color:#fff}.button.primary:hover{background:var(--teal-600)}.metric-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:20px;display:grid}.metric-grid.dashboard-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-sync-panel{justify-content:space-between;align-items:center;margin-bottom:18px;padding:18px 20px;display:flex}.dashboard-sync-info{align-items:center;gap:13px;display:flex}.dashboard-sync-icon{color:var(--teal-600);background:#e7f6f2;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.dashboard-sync-icon svg{width:21px;height:21px}.dashboard-sync-info h2{margin:0 0 5px;font-size:16px}.dashboard-sync-info p{color:var(--muted);margin:0;font-size:12px}.dashboard-sync-info small{color:var(--muted);margin-top:3px;font-size:10px;display:block}.dashboard-section{margin-bottom:18px}.metric{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--navy-800);border-radius:8px;min-height:120px;padding:17px 16px;display:block}a.metric:hover{transform:translateY(-1px);box-shadow:0 4px 14px #0b294514}.metric.teal{border-left-color:var(--teal-500)}.metric.amber{border-left-color:var(--warning)}.metric.muted{border-left-color:#90a2ae}.metric-label{color:var(--muted);align-items:center;gap:6px;font-size:12px;display:flex}.metric-icon svg{width:15px;height:15px}.metric strong{margin:10px 0 4px;font-size:21px;display:block}.metric>span:last-child{color:var(--muted);font-size:11px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:8px;overflow:hidden}.dashboard-grid{grid-template-columns:minmax(0,1.9fr) minmax(300px,.9fr);gap:18px;display:grid}.dashboard-bonus-panel{margin-bottom:18px}.panel-title{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;min-height:52px;padding:0 16px;display:flex}.panel-title h2{margin:0;font-size:15px}.panel-title a{color:var(--teal-600);font-size:12px;font-weight:700}.side-stack{gap:18px;display:grid}.compact-panel{min-height:0}.notice{align-items:flex-start;gap:10px;padding:14px 16px;display:flex}.notice+.notice{border-top:1px solid #edf1f3}.notice svg{color:var(--navy-800);flex:none;width:17px;height:17px}.notice.warning svg{color:var(--warning)}.notice.success svg{color:var(--success)}.notice strong,.notice span{display:block}.notice strong{font-size:12px}.notice span{color:var(--muted);margin-top:3px;font-size:11px}.customer-mini-list{margin:0;padding:0;list-style:none}.customer-mini-list li{justify-content:space-between;align-items:center;min-height:56px;padding:10px 16px;display:flex}.customer-mini-list li+li{border-top:1px solid #edf1f3}.customer-mini-list strong,.customer-mini-list div span{display:block}.customer-mini-list li>a{min-width:0}.customer-mini-list li>a span{color:var(--muted);margin-top:2px;font-size:10px;display:block}.customer-mini-list div span{color:var(--muted);margin-top:2px;font-size:10px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:100%}th{color:#647684;text-align:left;white-space:nowrap;background:#f1f5f7;height:42px;padding:0 14px;font-size:11px;font-weight:600}td{white-space:nowrap;border-top:1px solid #edf1f3;height:54px;padding:0 14px;font-size:12px}tbody tr:hover{background:#f8fbfc}.badge{white-space:nowrap;border-radius:4px;align-items:center;gap:4px;padding:3px 7px;font-size:10px;font-weight:700;display:inline-flex}.badge svg{width:11px;height:11px}.badge.success{color:var(--success);background:#e4f5ef}.badge.customer.executive{background:var(--navy-800);color:#fff}.badge.customer.standard{color:var(--teal-600);background:#e4f5ef;border:1px solid #addbcb}.badge.customer.end-user{color:#245579;background:#eaf2f7}.badge.order.completed,.badge.order.paid{color:var(--success);background:#e4f5ef}.badge.order.pending{color:#9b6714;background:#fff4dd}.badge.order.cancelled,.badge.order.refunded{color:var(--error);background:#fff0f0}.table-link{color:#087560;font-weight:700}.table-link:hover{text-decoration:underline}.table-edit-link{border:1px solid var(--border);color:var(--teal-600);border-radius:5px;align-items:center;gap:4px;padding:6px 9px;font-size:11px;font-weight:700;display:inline-flex}.table-edit-link:hover{background:#edf8f5;border-color:#acd9cd}.table-edit-link svg{width:12px;height:12px}.sort-button{color:inherit;cursor:pointer;font:inherit;white-space:nowrap;background:0 0;border:0;align-items:center;gap:4px;padding:0;display:inline-flex}.sort-button svg{opacity:.55;width:12px;height:12px}.sort-button.active{color:var(--navy-800);font-weight:800}.sort-button.active svg{opacity:1}.selected-row{background:#edf8f5}.bulk-toolbar{background:#eaf5f2;border:1px solid #b9ded4;border-radius:8px;flex-wrap:wrap;align-items:center;gap:10px;min-height:58px;margin-bottom:14px;padding:9px 13px;display:flex}.bulk-toolbar>strong{color:var(--teal-600);margin-right:5px}.bulk-toolbar form{align-items:center;gap:7px;display:flex}.bulk-toolbar select{border:1px solid var(--border);background:#fff;border-radius:5px;height:38px;padding:0 9px}.button.danger{color:#fff;background:#c94b4b;border-color:#c94b4b}.button.danger:hover{background:#ae3838;border-color:#ae3838}.button.danger:disabled{cursor:not-allowed;opacity:.45}.bulk-clear{color:var(--muted);cursor:pointer;background:0 0;border:0;margin-left:auto;font-size:11px;text-decoration:underline}.modal-backdrop{z-index:100;background:#0518288c;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.confirm-modal{background:#fff;border-radius:12px;width:100%;max-width:520px;padding:30px;box-shadow:0 24px 70px #0003}.danger-icon{color:var(--error);background:#fff0f0;border-radius:50%;justify-content:center;align-items:center;width:48px;height:48px;display:flex}.danger-icon svg{width:22px;height:22px}.confirm-modal h2{margin:16px 0 10px;font-size:20px}.confirm-modal>p{color:var(--muted);margin:0;line-height:1.8}.delete-warning{color:#79571b;background:#fff7e8;border:1px solid #efd8a7;border-radius:6px;margin:17px 0;padding:10px 12px;font-size:11px;line-height:1.7}.confirm-modal>label{color:var(--text);flex-direction:column;gap:8px;font-size:12px;font-weight:700;display:flex}.confirm-modal code{color:var(--error);background:#f1f4f6;border-radius:4px;padding:7px 9px;font-family:inherit}.confirm-modal input{border:1px solid var(--border);border-radius:6px;height:42px;padding:0 11px}.confirm-modal input:focus{border-color:var(--error);outline:0;box-shadow:0 0 0 3px #c94b4b1f}.modal-actions{justify-content:flex-end;gap:8px;margin-top:22px;display:flex}.modal-actions form{margin:0}.cell-item-list{white-space:normal;margin:0;padding:7px 0;list-style:none}.cell-item-list li{min-width:180px;line-height:1.5}.cell-item-list li+li{margin-top:3px}.order-referrer-form{align-items:center;gap:5px;min-width:230px;display:flex}.order-referrer-form select{border:1px solid var(--border);background:#fff;border-radius:5px;max-width:160px;height:34px;padding:0 7px}.order-referrer-form button{background:var(--teal-600);color:#fff;cursor:pointer;border:0;border-radius:4px;height:32px;padding:0 9px;font-size:10px;font-weight:700}.customer-panel{overflow:visible}.search-toolbar,.filter-panel{align-items:center;gap:10px;padding:14px;display:flex}.search-box{border:1px solid var(--border);border-radius:6px;flex:1;align-items:center;gap:8px;min-height:40px;padding:0 12px;display:flex}.search-box:focus-within{border-color:var(--teal-500);box-shadow:0 0 0 3px #18a88a1f}.search-box svg{color:#6e8392;width:17px;height:17px}.search-box input{color:var(--text);background:0 0;border:0;outline:0;width:100%;min-width:0}.customer-mode-tabs{gap:10px;margin:20px 20px 18px;display:flex}.customer-mode-tabs button{border:1px solid var(--border);color:var(--text);background:#fff;border-radius:7px;align-items:center;gap:7px;padding:10px 14px;display:flex}.customer-mode-tabs button.active{border-color:var(--teal-500);color:#087a68;background:#e8f8f4;font-weight:700}.customer-mode-tabs svg{width:17px;height:17px}.customer-picker{max-width:760px;margin:0 20px 20px;position:relative}.customer-search-results{border:1px solid var(--border);z-index:5;background:#fff;border-radius:7px;width:100%;max-height:280px;margin-top:6px;padding:5px;position:absolute;overflow:auto;box-shadow:0 8px 24px #1e37461f}.customer-search-results button{text-align:left;background:#fff;border:0;border-radius:5px;flex-direction:column;width:100%;padding:9px 10px;display:flex}.customer-search-results button:hover{background:#eef8f6}.customer-search-results span,.selected-customer span{color:var(--muted);margin-top:3px;font-size:12px}.customer-search-results>div{color:var(--muted);padding:12px}.selected-customer{background:#eef8f6;border:1px solid #b8e4d8;border-radius:7px;flex-direction:column;margin-top:12px;padding:11px 13px;display:flex}.order-referrer-field{margin-top:20px}.referrer-picker{max-width:760px;margin:20px;position:relative}.referrer-picker>strong{margin-bottom:8px;font-size:12px;display:block}.referrer-picker>small{color:var(--muted);margin-top:8px;font-size:11px;display:block}.referrer-selected{flex-direction:row;justify-content:space-between;align-items:center}.referrer-selected button{color:var(--teal-600);cursor:pointer;background:0 0;border:0;font-size:11px;font-weight:700}.order-edit-summary{grid-template-columns:1fr 1fr;gap:0 24px;margin:0;padding:6px 20px 18px;display:grid}.order-edit-summary>div{border-bottom:1px solid #edf1f3;grid-template-columns:110px 1fr;align-items:center;min-height:52px;display:grid}.order-edit-summary dt{color:var(--muted);font-size:11px}.order-edit-summary dd{margin:0}.column-settings{margin-bottom:14px;padding:16px 18px}.column-settings>div:first-child{justify-content:space-between;align-items:center;display:flex}.column-settings>div:first-child>button{color:var(--muted);cursor:pointer;background:0 0;border:0;padding:3px}.column-settings>div:first-child svg{width:18px;height:18px}.column-settings>p{color:var(--muted);margin:5px 0 13px;font-size:11px}.column-options{flex-wrap:wrap;gap:8px 18px;display:flex}.column-options label{align-items:center;gap:6px;min-width:130px;font-size:12px;display:flex}.column-options input{accent-color:var(--teal-600)}.column-settings>.clear-link{margin-top:14px}.filter-drawer{border-top:1px solid var(--border);background:#f8fafb;padding:14px}.filter-drawer label,.month-field{color:var(--muted);gap:8px;font-size:11px;display:flex}.filter-drawer select,.month-field input{border:1px solid var(--border);color:var(--text);background:#fff;border-radius:5px;min-height:34px;padding:0 10px}.active-filters{border-top:1px solid var(--border);color:var(--muted);align-items:center;gap:8px;padding:8px 14px;font-size:11px;display:flex}.active-filters>span{color:var(--teal-600);background:#eaf5f2;border:1px solid #bee1d7;border-radius:14px;align-items:center;gap:5px;padding:4px 8px;display:inline-flex}.active-filters button{cursor:pointer;background:0 0;border:0}.active-filters span button{color:inherit;align-items:center;padding:0;display:flex}.active-filters svg{width:12px;height:12px}.clear-link{color:var(--error)}.empty-cell{color:var(--muted);text-align:center;height:160px}.table-footer{border-top:1px solid var(--border);color:var(--muted);justify-content:space-between;align-items:center;min-height:48px;padding:0 14px;font-size:11px;display:flex}.page-button{background:var(--navy-800);color:#fff;border-radius:4px;justify-content:center;align-items:center;width:28px;height:28px;display:flex}.pagination{gap:5px;display:flex}.pagination button{border:1px solid var(--border);color:var(--text);cursor:pointer;background:#fff;border-radius:4px;min-width:28px;height:28px}.pagination button.active{background:var(--navy-800);border-color:var(--navy-800);color:#fff}.info-note{color:#7a8b96;margin:14px 2px;font-size:11px}.filter-panel{border:1px solid var(--border);background:#fff;border-radius:8px;margin-bottom:14px}.month-field{white-space:nowrap;align-items:center}.sales-summary{grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px;display:grid}.sales-summary>div{border:1px solid var(--border);background:#fff;border-radius:8px;min-height:100px;padding:15px}.sales-summary span,.sales-summary small{color:var(--muted);font-size:11px;display:block}.sales-summary strong{margin:10px 0 3px;font-size:20px;display:block}.detail-header{align-items:flex-end}.detail-header h1{margin-top:9px}.back-link{color:var(--teal-600);align-items:center;gap:5px;font-size:12px;font-weight:700;display:inline-flex}.back-link svg{width:15px;height:15px}.detail-summary-grid{grid-template-columns:minmax(320px,1.4fr) minmax(220px,.65fr) minmax(260px,.85fr);gap:14px;margin-bottom:16px;display:grid}.profile-card{padding:18px}.profile-heading{align-items:center;gap:12px;display:flex}.profile-heading>span{color:var(--teal-600);background:#e7f6f2;border-radius:50%;justify-content:center;align-items:center;width:42px;height:42px;display:flex}.profile-heading svg{width:20px;height:20px}.profile-heading h2,.profile-heading p{margin:0}.profile-heading h2{font-size:17px}.profile-heading p{color:var(--muted);margin-top:3px;font-size:11px}.profile-name-row{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.profile-name-row .badge.customer{border-radius:5px;padding:5px 9px;font-size:11px}.profile-card dl{margin:18px 0 0}.profile-card dl>div{border-top:1px solid #edf1f3;grid-template-columns:105px 1fr;gap:10px;padding:10px 0;display:grid}.profile-card dt{color:var(--muted);align-items:center;gap:5px;font-size:11px;display:flex}.profile-card dt svg{width:13px;height:13px}.profile-card dd{overflow-wrap:anywhere;margin:0}.profile-card dl>div.contact-history-row{align-items:flex-start}.contact-history{margin:0;padding:0;list-style:none}.contact-history li+li{border-top:1px dashed var(--border);margin-top:8px;padding-top:8px}.contact-history li>div{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.contact-history small{color:var(--muted);margin-top:3px;font-size:10px;display:block}.latest-contact{color:var(--success);background:#e4f5ef;border-radius:10px;padding:2px 6px;font-size:9px;font-weight:700}.customer-edit-form{gap:15px;display:grid}.edit-section{overflow:visible}.edit-grid{grid-template-columns:1fr 1fr;gap:16px;padding:20px;display:grid}.edit-grid label{color:#405464;flex-direction:column;gap:7px;font-size:12px;font-weight:700;display:flex;position:relative}.edit-grid input,.edit-grid select,.edit-grid textarea{border:1px solid var(--border);color:var(--text);background:#fff;border-radius:6px;outline:0;padding:0 11px}.edit-grid input,.edit-grid select{height:42px}.edit-grid textarea{resize:vertical;min-height:112px;padding-top:10px;padding-bottom:10px;line-height:1.7}.edit-grid input:focus,.edit-grid select:focus,.edit-grid textarea:focus{border-color:var(--teal-500);box-shadow:0 0 0 3px #18a88a1f}.edit-grid input[aria-invalid=true],.edit-grid select[aria-invalid=true],.customer-picker input[aria-invalid=true]{border-color:var(--error);background:#fff5f5;box-shadow:0 0 0 3px #c94b4b14}.field-error{color:var(--error);margin-top:2px;font-size:11px;font-weight:700;line-height:1.5;display:block}.edit-grid .span-2{grid-column:1/-1}.required{color:var(--error);background:#fff0f0;border-radius:3px;margin-left:5px;padding:2px 4px;font-size:9px}.edit-grid .required{margin:0;position:absolute;top:-2px;right:0}.edit-safety-note{color:var(--muted);background:#f0f8f6;border-top:1px solid #d6ebe5;align-items:flex-start;gap:8px;padding:13px 20px;font-size:11px;line-height:1.7;display:flex}.edit-safety-note svg{color:var(--teal-600);flex:none;width:16px;height:16px}.edit-actions{justify-content:flex-end;gap:9px;padding:4px 0 20px;display:flex}.duplicate-panel ul{margin:0;padding:0;list-style:none}.duplicate-panel li{justify-content:space-between;align-items:center;min-height:64px;padding:11px 16px;display:flex}.duplicate-panel li+li{border-top:1px solid #edf1f3}.duplicate-panel li strong,.duplicate-panel li span{display:block}.duplicate-panel li span{color:var(--muted);margin-top:4px;font-size:11px}.duplicate-panel li a{color:var(--teal-600);font-size:11px;font-weight:700}.manual-confirm{background:#fff7e8;border:1px solid #efd8a7;border-radius:7px;align-items:center;gap:8px;padding:13px;font-size:12px;font-weight:700;display:flex}.purchase-summary{text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:20px;display:flex}.purchase-summary>span{color:var(--muted);align-items:center;gap:6px;display:flex}.purchase-summary>span svg{width:16px;height:16px}.purchase-summary>strong{margin:12px 0 6px;font-size:30px}.purchase-summary p{margin:0;font-weight:700}.purchase-summary small{color:var(--muted);margin-top:7px}.detail-fields{grid-template-columns:1fr 1fr;padding:9px 16px;display:grid}.detail-fields>div{padding:11px 5px}.detail-fields span,.detail-fields strong{display:block}.detail-fields span{color:var(--muted);font-size:10px}.detail-fields strong{margin-top:5px;font-size:12px}.customer-remarks{margin-bottom:16px}.customer-remarks>p{overflow-wrap:anywhere;white-space:pre-wrap;min-height:68px;margin:0;padding:16px;line-height:1.9}.bonus-panel,.bank-panel{margin-bottom:16px}.bonus-filters>select{border:1px solid var(--border);background:#fff;border-radius:6px;min-height:40px;padding:0 10px}.bonus-list-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0;display:grid}.bonus-list-summary>div{border:1px solid var(--border);background:#fff;border-radius:8px;padding:15px 17px}.bonus-list-summary span{color:var(--muted);font-size:11px;display:block}.bonus-list-summary strong{margin-top:7px;font-size:20px;display:block}.bonus-list-panel{margin-bottom:18px}.bonus-status{white-space:nowrap;border-radius:12px;padding:4px 8px;font-size:10px;font-weight:700;display:inline-block}.bonus-status.pending{color:#80570f;background:#fff3d8}.bonus-status.paid{color:var(--success);background:#e4f5ef}.bank-summary{color:var(--text);white-space:nowrap;font-size:11px}.bank-summary.missing{color:var(--error);font-weight:700}.bonus-add-form{flex-wrap:wrap;align-items:flex-end;gap:12px;padding:18px;display:flex}.bonus-add-form label{color:var(--muted);flex-direction:column;gap:7px;font-size:11px;display:flex}.bonus-add-form input{border:1px solid var(--border);border-radius:6px;height:40px;padding:0 10px}.bank-panel .panel-title h2{align-items:center;gap:7px;display:flex}.bank-panel .panel-title svg{color:var(--teal-600);width:17px;height:17px}.login-page{grid-template-columns:minmax(440px,.95fr) minmax(520px,1.05fr);min-height:100vh;display:grid}.login-brand-panel{color:#fff;background:linear-gradient(150deg,#0b2945 0%,#123a61 64%,#0f5665 100%);flex-direction:column;justify-content:space-between;padding:42px 52px;display:flex;position:relative;overflow:hidden}.login-brand-panel:after{content:"";border:1px solid #ffffff14;border-radius:50%;width:540px;height:540px;position:absolute;top:18%;right:-280px}.login-brand{z-index:1;align-items:flex-start;gap:13px;display:flex;position:relative}.login-brand>span{background:var(--teal-500);border-radius:8px;justify-content:center;align-items:center;width:38px;height:38px;display:flex}.login-brand svg{width:21px;height:21px}.login-brand small,.login-brand strong,.login-brand p{margin:0;display:block}.login-brand small{color:#b9cbd6;font-size:11px}.login-brand strong{margin-top:3px;font-size:17px}.login-brand p{color:#a7bfcc;margin-top:7px;font-size:12px}.login-message{z-index:1;max-width:520px;position:relative}.login-message>span{color:#65ddc3;letter-spacing:.22em;font-size:11px;font-weight:700}.login-message h1{letter-spacing:.02em;margin:18px 0 24px;font-size:clamp(29px,3vw,43px);line-height:1.48}.login-message p{color:#c4d4dd;max-width:450px;margin:0;font-size:14px;line-height:2}.login-security{color:#a9beca;z-index:1;align-items:flex-start;gap:8px;max-width:460px;margin:0;font-size:11px;line-height:1.7;display:flex;position:relative}.login-security svg{flex:none;width:15px;height:15px;margin-top:2px}.login-form-panel{background:var(--page);justify-content:center;align-items:center;padding:48px;display:flex}.login-card{border:1px solid var(--border);background:#fff;border-radius:12px;width:min(460px,100%);padding:42px;box-shadow:0 16px 45px #0b294514}.login-card-heading{text-align:center}.login-card-heading>span{color:var(--teal-600);background:#e7f6f2;border-radius:50%;justify-content:center;align-items:center;width:48px;height:48px;margin:0 auto 17px;display:flex}.login-card-heading svg{width:22px;height:22px}.login-card-heading h2{margin:0;font-size:23px}.login-card-heading p{color:var(--muted);margin:8px 0 26px;font-size:12px;line-height:1.7}.login-card form>label{color:#405464;margin-bottom:18px;font-size:12px;font-weight:700;display:block}.login-card input{border:1px solid var(--border);color:var(--text);border-radius:6px;outline:0;width:100%;height:46px;margin-top:8px;padding:0 13px;display:block}.login-card input:focus{border-color:var(--teal-500);box-shadow:0 0 0 3px #18a88a1f}.password-input{position:relative}.password-input input{padding-right:42px}.password-input svg{color:#81939f;pointer-events:none;width:17px;height:17px;position:absolute;top:15px;right:13px}.login-button{width:100%;margin-top:5px}.login-error{color:#9f3333;background:#fff1f1;border:1px solid #efc2c2;border-radius:6px;margin-bottom:20px;padding:11px 13px;font-size:12px;line-height:1.6}.login-help{color:var(--muted);text-align:center;border-top:1px solid #edf1f3;margin:27px 0 0;padding-top:20px;font-size:11px;line-height:1.7}.sync-message{border:1px solid var(--border);border-left:4px solid var(--navy-800);background:#fff;border-radius:7px;align-items:flex-start;gap:10px;margin-bottom:14px;padding:13px 15px;display:flex}.sync-message>svg{flex:none;width:18px;height:18px}.sync-message strong,.sync-message span{display:block}.sync-message span{color:var(--muted);margin-top:3px;font-size:12px}.sync-message.info{border-left-color:var(--navy-800)}.sync-message.success{border-left-color:var(--success)}.sync-message.success>svg{color:var(--success)}.sync-message.error{border-color:#efb8bd;border-left-color:var(--error);background:#fff0f1;box-shadow:0 2px 8px #c94b4b14}.sync-message.error>svg{color:var(--error)}.sync-message.error strong{color:#a72f3a}.sync-message.error span{color:#b3434d;font-weight:600}.sync-message.warning{border-color:#ead39d;border-left-color:var(--warning);background:#fff8e8;box-shadow:0 2px 8px #c98a2014}.sync-message.warning>svg{color:var(--warning)}.sync-message.warning strong{color:#80570f}.sync-message.warning span{color:#89651f;font-weight:600}.sync-layout{grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px;display:grid}.sync-panel{min-height:280px}.sync-form{flex-direction:column;gap:16px;padding:20px;display:flex}.sync-form>label:not(.confirm-check){color:var(--text);flex-direction:column;gap:8px;font-size:12px;font-weight:700;display:flex}.sync-form input[type=date]{border:1px solid var(--border);background:#fff;border-radius:6px;width:220px;height:42px;padding:0 12px}.sync-form p,.sync-form small{color:var(--muted);margin:0;font-size:11px;line-height:1.7}.sync-form .button{align-self:flex-start}.sync-form .button:disabled{cursor:not-allowed;opacity:.45}.sync-guard{background:#f0f8f6;border:1px solid #c8e5dc;border-radius:7px;align-items:flex-start;gap:10px;padding:13px;display:flex}.sync-guard svg{color:var(--teal-600);flex:none;width:18px;height:18px}.sync-guard strong,.sync-guard span{display:block}.sync-guard span{color:var(--muted);margin-top:3px;font-size:11px;line-height:1.7}.confirm-check{align-items:center;gap:8px;font-size:12px;display:flex}.confirm-check input{accent-color:var(--teal-600);width:16px;height:16px}.sync-rules ul{color:var(--muted);margin:0;padding:16px 40px 20px;line-height:1.9}.sync-rules .panel-title h2{align-items:center;gap:7px;display:flex}.sync-rules .panel-title svg{color:var(--teal-600);width:17px;height:17px}.sync-one-click{text-align:center;flex-direction:column;align-items:center;margin-bottom:16px;padding:42px 24px;display:flex}.sync-one-click h2{margin:16px 0 8px;font-size:20px}.sync-one-click>p{color:var(--muted);max-width:620px;margin:0 auto 24px;line-height:1.8}.sync-one-click>small{color:var(--muted);margin-top:14px;font-size:11px}.sync-hero-icon{color:var(--teal-600);background:#e7f6f2;border-radius:50%;justify-content:center;align-items:center;width:58px;height:58px;display:flex}.sync-hero-icon svg{width:27px;height:27px}.sync-main-button{min-width:210px;min-height:48px;font-size:15px}.sync-main-button:disabled{cursor:wait;opacity:.65}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.import-upload{text-align:center;flex-direction:column;align-items:center;margin-bottom:16px;padding:34px 24px;display:flex}.import-upload h2{margin:14px 0 7px;font-size:19px}.import-upload>p{color:var(--muted);margin:0 0 20px;font-size:12px;line-height:1.7}.import-icon{color:var(--teal-600);background:#e7f6f2;border-radius:50%;justify-content:center;align-items:center;width:54px;height:54px;display:flex}.import-icon svg{width:24px;height:24px}.import-upload form{flex-direction:column;align-items:center;gap:14px;width:100%;max-width:680px;display:flex}.import-dropzone{cursor:pointer;background:#f8fbfb;border:2px dashed #a9cfc5;border-radius:10px;flex-direction:column;align-items:center;width:100%;min-height:190px;padding:26px;transition:all .15s;display:flex}.import-dropzone:hover,.import-dropzone.dragging{border-color:var(--teal-500);background:#eaf7f3;box-shadow:0 0 0 4px #18a88a1a}.import-dropzone>svg{color:var(--teal-600);width:30px;height:30px;margin-bottom:12px}.import-dropzone strong{font-size:14px}.import-dropzone span{color:var(--muted);margin-top:6px;font-size:11px}.import-dropzone small{border:1px solid var(--border);color:var(--teal-600);overflow-wrap:anywhere;background:#fff;border-radius:5px;max-width:100%;margin-top:16px;padding:7px 10px;font-size:11px;font-weight:700}.import-dropzone input{opacity:0;width:1px;height:1px;position:absolute;overflow:hidden}.import-apply{background:#edf8f5;border:1px solid #b9ded4;border-radius:8px;width:100%;padding:15px}.import-apply.blocked{background:#fff8e8;border-color:#ead39d}.import-apply>label{color:var(--text);text-align:left;align-items:flex-start;gap:8px;font-size:12px;line-height:1.7;display:flex}.import-apply input{accent-color:var(--teal-600);flex:none;width:16px;height:16px;margin-top:2px}.import-apply .button{margin-top:12px}.import-counts{grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px;display:grid}.import-counts>div{border:1px solid var(--border);border-top:4px solid var(--teal-500);background:#fff;border-radius:8px;padding:15px}.import-counts>div.existing{border-top-color:var(--navy-800)}.import-counts>div.review{border-top-color:var(--warning)}.import-counts>div.error{border-color:#efb8bd;border-top-color:var(--error);background:#fff5f5}.import-counts span{color:var(--muted);font-size:11px;display:block}.import-counts strong{margin-top:7px;font-size:22px;display:block}.import-status{white-space:nowrap;border-radius:12px;padding:4px 8px;font-size:10px;font-weight:800;display:inline-block}.import-status.new{color:var(--success);background:#e4f5ef}.import-status.existing{color:var(--navy-800);background:#e9f0f6}.import-status.review{color:#80570f;background:#fff3d8}.import-status.error{color:#a72f3a;background:#ffe1e3}@media (max-width:1000px){.sync-layout{grid-template-columns:1fr}}@media (max-width:1180px){.metric-grid{grid-template-columns:repeat(3,1fr)}.dashboard-grid{grid-template-columns:1fr}.sales-summary{grid-template-columns:repeat(2,1fr)}.detail-summary-grid{grid-template-columns:1fr 1fr}.profile-card{grid-column:1/-1}}@media (max-width:900px){.login-page{grid-template-columns:1fr}.login-brand-panel{display:none}.login-form-panel{min-height:100vh;padding:24px}.edit-grid{grid-template-columns:1fr}.edit-grid .span-2{grid-column:auto}.import-counts{grid-template-columns:1fr 1fr}}
