.home-management{display:grid;gap:16px;margin-top:18px;padding:22px;border:1px solid #dbe5f1;border-radius:18px;background:linear-gradient(145deg,#fff,#f8fbff);box-shadow:0 10px 30px #17345b0d}
.home-management-heading h2{margin:4px 0 3px;color:#14213d;font:700 24px "Space Grotesk"}
.home-management-heading p:last-child{margin:0;color:#64748b;font-size:12px}
.home-management-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.home-management-card{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:88px;padding:16px;border:1px solid #dbeafe;border-radius:15px;background:#fff;color:#14213d;text-decoration:none;box-shadow:0 8px 22px #17345b0b;transition:.18s ease}
.home-management-card:hover,.home-management-card:focus-visible{outline:none;border-color:#60a5fa;transform:translateY(-2px);box-shadow:0 13px 28px #2563eb1a}
.home-management-card strong,.home-management-card small{display:block}.home-management-card strong{font-size:15px}.home-management-card small{margin-top:4px;color:#64748b;font-size:11px;line-height:1.4}.home-management-card>b{color:#2563eb;font-size:20px}.home-management-icon{display:grid;width:46px;height:46px;place-items:center;border-radius:13px;background:#eff6ff;color:#2563eb;font-size:21px;font-weight:800}

.crm-page,.online-orders-page{display:grid;gap:18px}.crm-page-heading,.online-orders-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.crm-page-heading h1,.online-orders-heading h1{margin:4px 0 3px;color:#14213d;font:700 clamp(28px,4vw,38px) "Space Grotesk"}.crm-page-heading p:last-child,.online-orders-heading p:last-child{margin:0;color:#64748b;font-size:12px}
.crm-summary,.online-orders-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.crm-summary article,.online-orders-summary article{display:grid;gap:5px;padding:17px;border:1px solid #dbe5f1;border-radius:14px;background:#fff;box-shadow:0 8px 22px #17345b0b}.crm-summary span,.online-orders-summary span{color:#64748b;font-size:10px;font-weight:700}.crm-summary strong,.online-orders-summary strong{color:#17345b;font:700 24px "Space Grotesk"}.crm-summary small{color:#94a3b8;font-size:9px}
.crm-directory{display:grid;gap:13px;padding:18px;border:1px solid #dbe5f1;border-radius:17px;background:#fff}.crm-directory-tools,.online-orders-tools{display:grid;grid-template-columns:minmax(240px,1fr) 190px auto;align-items:end;gap:10px}.crm-directory-tools>label:not(.crm-search),.online-orders-tools>label:not(.crm-search){color:#475569;font-size:10px;font-weight:700}.crm-directory-tools select,.online-orders-tools select{width:100%;margin-top:5px;padding:11px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}.crm-search{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #cbd5e1;border-radius:11px;background:#fff}.crm-search:focus-within{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb18}.crm-search span{color:#64748b;font-size:21px}.crm-search input{width:100%;min-height:43px;border:0;outline:0;background:transparent}
.crm-customer-list,.online-orders-list{display:grid;gap:10px}.crm-customer-card{display:grid;grid-template-columns:minmax(210px,1.1fr) minmax(170px,.8fr) repeat(2,minmax(105px,.45fr)) auto;align-items:center;gap:13px;padding:14px;border:1px solid #e2e8f0;border-radius:13px;background:#fff}.crm-customer-card:hover{border-color:#bfdbfe;background:#fbfdff}.crm-customer-identity strong,.crm-customer-identity span,.crm-customer-identity small{display:block}.crm-customer-identity strong{color:#14213d;font-size:13px}.crm-customer-identity span{margin-top:3px;color:#475569;font-size:10px}.crm-customer-identity small{margin-top:2px;color:#64748b;font-size:9px}.crm-customer-metric span,.crm-customer-metric strong{display:block}.crm-customer-metric span{color:#94a3b8;font-size:8px;font-weight:800;text-transform:uppercase}.crm-customer-metric strong{margin-top:3px;color:#17345b;font-size:12px}.crm-status{display:inline-flex;width:max-content;padding:6px 9px;border-radius:99px;background:#e0f2fe;color:#0369a1;font-size:9px;font-weight:800}.crm-status.is-lead{background:#fef3c7;color:#92400e}.crm-status.is-vip{background:#ede9fe;color:#6d28d9}.crm-status.is-inactive{background:#f1f5f9;color:#64748b}.crm-view-button{padding:9px 11px;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff;color:#1d4ed8;font-size:10px;font-weight:800;cursor:pointer}

.crm-customer-dialog{width:min(880px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:20px;box-shadow:0 30px 90px #0f172a66}.crm-customer-dialog::backdrop{background:#0f172aa8;backdrop-filter:blur(5px)}.crm-customer-dialog-shell{display:grid;gap:17px;max-height:calc(100dvh - 24px);overflow:auto;padding:24px}.crm-customer-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.crm-customer-stats>div{padding:12px;border-radius:11px;background:#f8fafc}.crm-customer-stats span,.crm-customer-stats strong{display:block}.crm-customer-stats span{color:#64748b;font-size:9px}.crm-customer-stats strong{margin-top:3px;color:#17345b;font-size:14px}.crm-customer-form{display:grid;grid-template-columns:180px minmax(0,1fr) auto;align-items:end;gap:11px;padding:15px;border:1px solid #dbeafe;border-radius:13px;background:#f8fbff}.crm-customer-form label{color:#475569;font-size:10px;font-weight:700}.crm-customer-form select,.crm-customer-form textarea{width:100%;margin-top:5px;padding:10px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}.crm-customer-form textarea{min-height:72px;resize:vertical}.crm-customer-history h3{margin:4px 0 12px;color:#14213d;font:700 19px "Space Grotesk"}.crm-history-list{display:grid;gap:9px}.crm-history-order{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:13px;padding:12px;border:1px solid #e2e8f0;border-radius:11px}.crm-history-order strong,.crm-history-order span,.crm-history-order small{display:block}.crm-history-order strong{font-size:12px}.crm-history-order span{margin-top:3px;color:#64748b;font-size:9px}.crm-history-order small{color:#475569;font-size:9px}.crm-history-order>b{color:#17345b;font-size:12px}

.online-orders-tools{padding:15px;border:1px solid #dbe5f1;border-radius:14px;background:#fff}.online-order-card{display:grid;grid-template-columns:minmax(210px,1.2fr) minmax(180px,.8fr) minmax(150px,.65fr) auto;align-items:center;gap:14px;padding:16px;border:1px solid #dbe5f1;border-radius:15px;background:#fff;box-shadow:0 7px 20px #17345b0a}.online-order-customer strong,.online-order-customer span,.online-order-customer small,.online-order-detail strong,.online-order-detail span{display:block}.online-order-customer strong{font-size:13px}.online-order-customer span{margin-top:3px;color:#475569;font-size:10px}.online-order-customer small,.online-order-detail span{margin-top:2px;color:#64748b;font-size:9px}.online-order-detail strong{color:#17345b;font-size:12px}.online-order-status{display:grid;gap:5px;justify-items:start}.online-order-status .order-status{display:inline-flex}.online-order-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.online-order-actions button{padding:9px 10px;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff;color:#1d4ed8;font-size:9px;font-weight:800;cursor:pointer}.online-order-actions .approve-order{border-color:#86efac;background:#ecfdf5;color:#047857}.online-order-id{font-family:monospace}.online-order-warning{grid-column:1/-1;padding:9px 11px;border-radius:9px;background:#fff7ed;color:#9a3412;font-size:9px;line-height:1.45}
.customer-ticket-expired{display:grid;gap:4px;margin-top:14px;padding:13px;border:1px solid #fecaca;border-radius:11px;background:#fff1f2}.customer-ticket-expired strong{color:#b91c1c}.customer-ticket-expired span{color:#7f1d1d;font-size:10px;line-height:1.45}.order-status.is-expired{background:#fee2e2;color:#991b1b}
.order-status.is-refunded{background:#fee2e2;color:#991b1b}.online-order-warning.is-refunded{background:#fff1f2;color:#991b1b}
.online-order-payment-method{color:#475569;font-size:10px;font-weight:700}

@media(max-width:900px){.crm-summary,.online-orders-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-customer-card{grid-template-columns:minmax(0,1fr) repeat(2,minmax(100px,.4fr)) auto}.crm-customer-card>.crm-customer-metric:first-of-type{grid-column:2}.online-order-card{grid-template-columns:minmax(0,1fr) minmax(150px,.7fr)}.online-order-actions{justify-content:flex-start}.crm-customer-form{grid-template-columns:1fr 1fr}.crm-customer-form button{grid-column:1/-1}}
@media(max-width:700px){.home-management-grid{grid-template-columns:1fr}.crm-page-heading,.online-orders-heading{display:grid}.crm-directory-tools,.online-orders-tools{grid-template-columns:1fr}.crm-customer-card,.online-order-card{grid-template-columns:1fr 1fr}.crm-customer-identity,.online-order-customer{grid-column:1/-1}.crm-customer-card .crm-view-button{grid-column:1/-1;width:100%}.online-order-actions{grid-column:1/-1}.online-order-actions button{flex:1}.crm-customer-form{grid-template-columns:1fr}.crm-customer-stats{grid-template-columns:1fr}.crm-history-order{grid-template-columns:1fr auto}.crm-history-order small{grid-column:1/-1}}
@media(max-width:430px){.home-management{padding:16px}.home-management-card{grid-template-columns:40px minmax(0,1fr) auto;padding:13px}.home-management-icon{width:40px;height:40px}.crm-summary,.online-orders-summary{grid-template-columns:1fr 1fr}.crm-summary article,.online-orders-summary article{padding:13px}.crm-customer-card,.online-order-card{grid-template-columns:1fr}.crm-customer-identity,.online-order-customer,.crm-customer-card>.crm-customer-metric:first-of-type{grid-column:1}.crm-customer-dialog-shell{padding:18px 14px}.crm-history-order{grid-template-columns:1fr}}
