.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:#fff}.login-card{width:100%;max-width:400px;background:#fff;border:1px solid #000000;border-radius:0;padding:40px 32px}.logo-review{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid #000000}.logo-review img{max-width:40%;max-height:64px;height:auto;object-fit:contain}.logo-x{font-size:1.6rem;font-weight:300;color:#000;line-height:1;-webkit-user-select:none;user-select:none}.login-card h1{margin:0 0 8px;font-size:1.6rem;color:#000;font-weight:700}.login-card p{margin:0 0 28px;color:#000;font-size:.9rem}.login-form{display:flex;flex-direction:column;gap:16px}.login-form label{display:flex;flex-direction:column;gap:6px;font-size:.82rem;font-weight:600;color:#000}.login-form input{border:1px solid #000000;border-radius:0;padding:10px 12px;font-size:.95rem;font-family:inherit;background:#fff;color:#000}.login-form input:focus{outline:2px solid #000000;outline-offset:-2px;border-color:#000}.login-form button{margin-top:8px;border:1px solid #000000;border-radius:0;background:#000;color:#fff;padding:12px;font-weight:700;font-size:.95rem;cursor:pointer;letter-spacing:.02em}.login-form button:hover:not(:disabled){background:#fff;color:#000}.login-form button:disabled{opacity:.5;cursor:not-allowed}.login-error{background:#fff;color:#000;border:1px solid #000000;border-radius:0;padding:10px;font-size:.85rem}.login-card a{color:#000!important;text-decoration:underline}.portal-shell{display:flex;flex-direction:column;min-height:100vh;background:#f3f4f6}.portal-topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:#111;color:#fff}.portal-topbar .brand{font-weight:700;letter-spacing:.02em}.portal-topbar .topbar-right{display:flex;align-items:center;gap:12px;font-size:.88rem}.portal-topbar .logout-btn{border:1px solid #374151;background:transparent;color:#fff;border-radius:8px;padding:6px 12px;cursor:pointer;font-size:.82rem}.portal-topbar .logout-btn:hover{background:#1f2937}.customer-history-page{display:flex;flex-direction:column;gap:16px;padding:16px;color:#111827}.customer-history-header h1{margin:0;font-size:1.75rem}.customer-history-header p{margin:6px 0 0;color:#4b5563}.customer-history-toolbar{display:grid;gap:10px;grid-template-columns:1fr;align-items:end;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:14px}.customer-history-toolbar label{display:flex;flex-direction:column;gap:6px;font-size:.82rem;color:#374151}.customer-history-toolbar label span{display:inline-flex;align-items:center;gap:6px;font-weight:600}.customer-history-toolbar input,.customer-history-toolbar select{border:1px solid #d1d5db;border-radius:8px;padding:8px 10px;font-size:.92rem;font-family:inherit}.search-select-wrapper{position:relative;grid-column:1 / -1}.search-suggestions{position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:260px;overflow-y:auto;background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 10px 22px #0f172a1f;z-index:10}.suggestion-item{width:100%;border:none;border-bottom:1px solid #eef2f7;background:#fff;padding:10px;text-align:left;cursor:pointer}.suggestion-item:last-child{border-bottom:none}.suggestion-item:hover{background:#f8fafc}.suggestion-name{font-weight:600;color:#111827;font-size:.88rem}.suggestion-meta{margin-top:4px;color:#6b7280;font-size:.78rem;display:flex;justify-content:space-between;gap:8px}.suggestion-empty{padding:10px;color:#6b7280;font-size:.85rem}.customer-history-toolbar .checkbox-row{flex-direction:row;align-items:center;gap:8px;margin-top:0}.customer-history-toolbar .checkbox-row input{width:16px;height:16px}.toolbar-bottom-row{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.toolbar-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:nowrap}.toolbar-actions button{border:none;border-radius:8px;background:#111;color:#fff;padding:9px 12px;font-weight:600;cursor:pointer;display:inline-flex;gap:6px;align-items:center;white-space:nowrap}.toolbar-actions button:hover:not(:disabled){background:#000}.toolbar-actions button:disabled{opacity:.5;cursor:not-allowed}.selected-customer-chip{display:inline-flex;align-items:center;gap:8px;width:fit-content;background:#ecfeff;color:#155e75;border:1px solid #a5f3fc;border-radius:999px;padding:7px 12px;font-size:.84rem}.customer-history-summary{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.summary-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:12px}.summary-card .label{color:#6b7280;font-size:.8rem}.summary-card .value{margin-top:6px;font-size:1.2rem;font-weight:700}.customer-history-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca;border-radius:10px;padding:10px}.customer-history-table-wrap{background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:auto;position:relative}.customer-history-loading{position:sticky;top:0;z-index:1;background:#ecfeff;color:#134e4a;border-bottom:1px solid #a7f3d0;padding:8px 10px;font-size:.85rem}.customer-history-table-wrap.is-loading{min-height:220px}.customer-history-table-wrap.is-loading .customer-history-table{opacity:.35;pointer-events:none}.customer-history-loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;gap:10px;background:#ffffffb3;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);z-index:2;color:#0f172a;font-weight:600;font-size:.95rem}.customer-history-loading-overlay .spin{animation:portal-spin .9s linear infinite;color:#0ea5e9}@keyframes portal-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.customer-history-summary.is-loading .summary-card .value{color:#9ca3af}.customer-history-table{width:100%;border-collapse:collapse;min-width:900px}.customer-history-table th,.customer-history-table td{border-bottom:1px solid #f3f4f6;padding:10px;text-align:left;vertical-align:top;font-size:.9rem}.customer-history-table th{background:#f9fafb;position:sticky;top:0;z-index:1}.customer-history-table th button{border:none;background:transparent;padding:0;font-weight:700;color:#111827;cursor:pointer}.customer-history-table td.numeric,.customer-history-table th.numeric{text-align:right;white-space:nowrap}.customer-history-table th.numeric button{width:100%;text-align:right}.customer-history-table td.total-cell{font-weight:700}.expand-btn{width:28px;height:28px;border:1px solid #d1d5db;border-radius:8px;background:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.expand-btn:hover{background:#f9fafb}.line-items-row td{background:#fbfdff}.line-items-table{width:100%;border-collapse:collapse}.line-items-table th,.line-items-table td{border-bottom:1px solid #eef2f7;padding:8px 10px;font-size:.82rem}.line-items-table th{text-transform:uppercase;letter-spacing:.03em;color:#64748b;font-size:.72rem}.line-items-empty{color:#6b7280;font-size:.85rem;padding:8px}.customer-name-cell{font-weight:600}.customer-id-cell{color:#6b7280;font-size:.78rem;margin-top:4px}.empty-row{text-align:center;color:#6b7280;padding:18px}.recent-customers-panel{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:14px}.recent-customers-panel h2{margin:0 0 10px;font-size:1.05rem}.recent-customers-grid{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.recent-customer-card{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;padding:12px;text-align:left;cursor:pointer;transition:all .12s ease}.recent-customer-card:hover{background:#fff;border-color:#a5f3fc;box-shadow:0 6px 14px #0f172a0f}.recent-customer-card .name{font-weight:600;font-size:.92rem}.recent-customer-card .email{margin-top:4px;color:#6b7280;font-size:.78rem}.recent-customer-card .last-order{margin-top:8px;color:#374151;font-size:.78rem;display:flex;justify-content:space-between}@media (max-width: 900px){.search-select-wrapper{grid-column:span 1}.toolbar-bottom-row{flex-direction:column;align-items:flex-start}.toolbar-actions{justify-content:flex-start;flex-wrap:wrap}.suggestion-meta{flex-direction:column;align-items:flex-start}}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:#f3f4f6;color:#111827}button{font-family:inherit}a{color:inherit}
