:root { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: #172533; background: #f5f8fb; font-synthesis: none; }
* { box-sizing: border-box; }
.hidden { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 244px; background: #ffffff; border-right: 1px solid #e7edf4; flex-shrink: 0; display: flex; flex-direction: column; position: sticky; height: 100vh; top: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 29px 21px; letter-spacing: -0.4px; }
.brand b { display: block; font-size: 18px; }
.brand small { display: block; color: #8a9bad; font-size: 11px; margin-top: 2px; letter-spacing: .5px; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: linear-gradient(135deg,#5ebdff,#267cce); box-shadow: 0 5px 14px #278dd03b; font-weight: 800; color: white; }
.brand-mark.big { width: 48px; height: 48px; font-size: 23px; margin-bottom: 10px; }
.sidebar nav { overflow: auto; padding: 0 12px; flex: 1; }
.nav-group { margin: 10px 11px 9px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.15px; color: #99a8b7; font-weight: 800; }
.nav-item { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 11px; border: 0; background: none; border-radius: 10px; text-align: left; color: #647586; font-size: 13px; margin-bottom: 4px; }
.nav-item .nav-icon { width: 17px; font-size: 16px; text-align: center; color: #8fa4b8; }
.nav-item:hover { background: #f4f9fd; color: #2e6c9e; }
.nav-item.active { background: #eaf5ff; color: #1475bd; font-weight: 700; }
.nav-item.active .nav-icon { color: #168ad9; }
.nav-item .soon { margin-left: auto; font-size: 9px; color: #9eaebc; }
.sidebar-bottom { border-top: 1px solid #edf1f5; color: #92a2b2; font-size: 11px; padding: 20px 22px; display: flex; gap: 10px; align-items: center; }
.live-dot { background: #48bd9a; width: 7px; height: 7px; border-radius: 50%; }
.main-shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9edf2; padding: 20px 37px; background: #ffffffc9; backdrop-filter: blur(14px); }
.topbar h1 { font-size: 23px; letter-spacing: -.7px; margin: 5px 0 0; }
.eyebrow { color: #95a7b9; font-size: 11px; letter-spacing: .65px; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.pill { color: #3e8aaf; background: #e7f7fd; border-radius: 20px; padding: 7px 12px; font-size: 11px; font-weight: 700; }
.icon-button { width: 36px; height: 36px; background: white; border: 1px solid #dfebf4; border-radius: 10px; color: #71849a; font-size: 17px; }
.content { padding: 32px 37px 56px; max-width: 1480px; width: 100%; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.page-heading h2 { font-size: 19px; margin: 0; letter-spacing: -.4px; }
.subtext, .hint { color: #8292a2; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 16px; margin-bottom: 22px; }
.card, .table-wrap { border: 1px solid #e4ecf4; background: white; border-radius: 15px; box-shadow: 0 3px 20px #23405b05; }
.card { padding: 22px 24px; }
.stat-label { color: #8698ab; font-size: 12px; }
.stat-value { font-weight: 750; font-size: 30px; margin: 12px 0 7px; letter-spacing: -1px; }
.stat-meta { color: #779bb4; font-size: 12px; }
.card h3 { font-size: 15px; margin: 0 0 13px; }
.card p { color: #708295; font-size: 13px; line-height: 1.65; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.primary { border: 0; color: white; font-weight: 600; background: #268bd5; border-radius: 9px; padding: 10px 16px; box-shadow: 0 3px 9px #288ad526; }
.primary:hover { background: #1479c9; }
.secondary { border: 1px solid #dce8f3; color: #2878ad; background: white; font-weight: 600; border-radius: 9px; padding: 9px 15px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
th { font-size: 11px; text-align: left; color: #91a2b3; font-weight: 600; background: #fbfdff; padding: 17px 18px; border-bottom: 1px solid #e7eef5; }
td { padding: 17px 18px; border-bottom: 1px solid #eef2f6; color: #506378; }
tr:last-child td { border-bottom: 0; }
.row-title { font-weight: 600; color: #22384b; }
.status { display: inline-block; color: #2c84bc; background: #eaf6ff; padding: 5px 9px; font-size: 11px; border-radius: 20px; }
.empty { color: #92a1ae; text-align: center; padding: 55px 25px; }
.empty .emoji { font-size: 27px; margin-bottom: 8px; }
.empty h3 { margin: 9px 0; color: #4d657c; font-size: 15px; }
.empty p { font-size: 13px; line-height: 1.6; }
.warning { padding: 12px 15px; border-radius: 10px; color: #86652c; background: #fffaee; font-size: 12px; margin-bottom: 16px; }
.footer { color: #a2b0bd; font-size: 10px; padding: 20px 37px; margin-top: auto; }
.overlay { position: fixed; inset: 0; display: grid; place-items: center; padding: 18px; background: #14293c75; backdrop-filter: blur(8px); z-index: 20; }
.overlay.hidden { display: none; }
.auth-box, .modal { max-width: 460px; width: 100%; padding: 29px; border: 1px solid #e4edf5; border-radius: 20px; background: white; box-shadow: 0 20px 70px #19354d30; }
.auth-box h2, .modal h2 { font-size: 20px; margin: 8px 0; }
.auth-box p { color: #74889b; font-size: 13px; line-height: 1.65; }
.auth-box form, .form-stack { display: flex; flex-direction: column; gap: 13px; margin: 24px 0 12px; }
input, select, textarea { width: 100%; padding: 11px 13px; border: 1px solid #dce7f0; background: #fbfdff; color: #183048; border-radius: 9px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: #64acdf; box-shadow: 0 0 0 3px #218ad412; }
label { display: block; color: #5c7288; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.error { color: #c24343; }
.small-note { font-size: 11px !important; }
.modal-heading { display: flex; justify-content: space-between; align-items: center; }
@media(max-width: 900px) { .sidebar { width: 64px; } .brand { padding: 20px 13px; } .brand div:last-child,.nav-group,.nav-item .title,.nav-item .soon,.sidebar-bottom { display: none; } .sidebar nav { padding: 0 7px; } .nav-item { justify-content: center; padding: 11px; } .nav-item .nav-icon { width: auto; } .topbar { padding: 20px; } .content { padding: 22px 19px; } .footer { padding: 16px 19px; } }
@media(max-width: 600px) { .stats, .grid-2 { grid-template-columns: 1fr; } .topbar h1 { font-size: 20px; } .pill { display: none; } .page-heading { flex-wrap: wrap; } }
.row-actions { display: flex; gap: 7px; align-items: center; }
.secondary.action { font-size: 11px; padding: 7px 10px; white-space: nowrap; }
button:disabled { opacity: .45; cursor: not-allowed; }
.audit { padding: 13px 0; border-top: 1px solid #e4edf5; border-bottom: 1px solid #e4edf5; }
.audit summary { cursor: pointer; color: #547d9e; font-size: 12px; font-weight: 700; }
.history { margin-top: 12px; max-height: 170px; overflow: auto; }
.history-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 12px; border-bottom: 1px solid #eef2f6; padding: 8px 0; }
.history-line time { color: #8a9bad; }
.modal { max-height: min(92vh, 860px); overflow-y: auto; }

.status-config-row {display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #edf1f5;}
.status-config-row:last-child{border:0;}
.status-config-row b{font-size:13px;}
.status-config-row p{margin:3px 0 0;font-size:11px;}
.checkbox-line{display:flex;align-items:center;gap:10px;padding:7px 0;font-size:13px;cursor:pointer;}
.checkbox-line input{width:auto;margin:0;}

/* Read-only order overview; fits both desktop and mobile. */
.modal:has(.order-card) { max-width: 760px; }
.order-card { display: flex; flex-direction: column; gap: 17px; font-size: 13px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.detail-field { min-width: 0; display: flex; flex-direction: column; gap: 5px; overflow-wrap: anywhere; }
.detail-field strong { color: #2a445b; line-height: 1.5; font-size: 13px; white-space: pre-wrap; }
.detail-section { border-top: 1px solid #e7edf5; padding-top: 17px; }
.detail-section h3 { margin: 0 0 14px; font-size: 14px; color: #24435b; }
.related-repairs { display: flex; flex-direction: column; gap: 8px; }
.related-repair { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef2f6; }
.related-repair strong { display: block; overflow-wrap: anywhere; }
@media(max-width:600px) { .detail-grid { grid-template-columns: 1fr; } .related-repair { align-items: flex-start; } }

/* Locally assigned technicians and work rows in order overview */
.service-actions { margin: 14px 0 0; }
.related-repair.voided { opacity: .55; }
.related-repair.voided strong { text-decoration: line-through; }

/* Isolated print sheet. Only selected draft is printed, never the CRM navigation. */
.warranty-print-document {display:none;}
@media print {
  @page {size:A4; margin:17mm;}
  body.warranty-print-active > :not(.warranty-print-document) {display:none!important;}
  body.warranty-print-active > .warranty-print-document {
    display:block!important; position:static!important; color:#111!important;
    background:#fff!important; font:12pt/1.5 Arial,sans-serif; width:100%;
  }
  .warranty-print-document h1 {font-size:18pt; margin:0 0 16px;}
  .warranty-print-document p {margin:9px 0; white-space:pre-wrap; overflow-wrap:anywhere;}
  .warranty-print-document .print-warning {font-weight:bold; font-size:10pt;}
  .warranty-print-document .print-grid {display:grid; grid-template-columns:1fr 1fr; gap:4px 20px;}
  .warranty-print-document .print-signatures {margin-top:46px;}
  .warranty-print-document .print-footer {margin-top:40px; font-size:9pt;}
}

/* Customer directory: readable live search without horizontal scrolling on phones. */
.customer-search-controls { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.customer-search-controls input { flex: 1 1 240px; min-width:0; }
.customer-search-controls button { flex:0 0 auto; }
.order-card .row-actions { flex-wrap:wrap; }

/* Staff-only photo gallery, friendly to iPhone and small desktop screens. */
.photo-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px;}
.photo-tile {padding:9px;border:1px solid #e0ebf4;border-radius:12px;background:#f8fbff;min-width:0;}
.photo-tile img {display:block;object-fit:contain;width:100%;height:165px;border-radius:8px;background:#eaf2f8;}
.photo-caption {font-size:12px;font-weight:600;margin-top:8px;overflow-wrap:anywhere;}
@media(max-width:600px){.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.photo-tile img{height:130px;}}

/* Camera-based barcode scan is opt-in, responsive, and local to the form. */
.device-scanner-panel:not(.hidden){border:1px solid #c3ddf0;background:#f4faff;border-radius:12px;padding:12px;margin-top:10px;}
.device-scan-video{display:block;width:100%;max-width:470px;max-height:290px;object-fit:cover;border-radius:10px;background:#e7f0f7;margin:8px 0;}
@media(max-width:600px){.device-scan-video{max-height:220px;}}

.staff-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:18px 0}.staff-status-filters{display:flex;gap:8px;flex-wrap:wrap}.staff-status-filters button[aria-pressed="true"]{border-color:#2359b6;color:#2359b6;background:#edf4ff}.staff-toolbar input{max-width:360px;min-width:220px}.staff-name-link{background:none;border:0;padding:0;color:inherit;font:inherit;font-weight:600;text-align:left;cursor:pointer}.staff-name-link:hover{color:#2359b6;text-decoration:underline}.staff-name-link:focus-visible{outline:2px solid #2359b6;outline-offset:3px}.staff-state{display:inline-flex;padding:4px 8px;border-radius:20px;font-size:12px;white-space:nowrap}.staff-state.is-active{background:#e8f7ee;color:#167446}.staff-state.is-blocked{background:#fff0ef;color:#aa3434}@media(max-width:650px){.staff-toolbar{align-items:stretch}.staff-toolbar input{max-width:none;width:100%}.staff-status-filters{gap:6px}}

/* Orders Module Parity Styles */
.orders-view { display: flex; flex-direction: column; gap: 14px; }
.orders-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.orders-title-block h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: #0f172a; }
.orders-tabs { display: flex; gap: 4px; background: #f1f5f9; padding: 4px; border-radius: 10px; flex-wrap: wrap; }
.orders-tab { background: transparent; border: none; padding: 7px 12px; font-size: 13px; font-weight: 600; color: #475569; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all .15s; }
.orders-tab:hover { color: #0f172a; background: rgba(255, 255, 255, 0.6); }
.orders-tab.active { background: #ffffff; color: #1e40af; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.tab-badge { background: #e2e8f0; color: #334155; padding: 2px 7px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.orders-tab.active .tab-badge { background: #dbeafe; color: #1d4ed8; }

.orders-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.orders-toolbar-left, .orders-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.orders-select-filter { width: auto; min-width: 170px; padding: 8px 12px; font-size: 13px; border-radius: 8px; }
.orders-search-wrap { position: relative; display: flex; align-items: center; min-width: 280px; }
.orders-search-wrap input { padding: 8px 30px 8px 32px; font-size: 13px; border-radius: 8px; width: 100%; }
.orders-search-wrap .search-icon { position: absolute; left: 10px; font-size: 12px; pointer-events: none; opacity: .6; }
.orders-search-wrap .clear-search-btn { position: absolute; right: 8px; background: none; border: none; padding: 4px; cursor: pointer; font-size: 11px; color: #64748b; }
.orders-page-nav { display: flex; align-items: center; gap: 6px; }

.orders-table-wrap { overflow-x: auto; background: #ffffff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.orders-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.orders-table th { text-align: left; padding: 10px 12px; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.orders-table td { padding: 11px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.orders-table tr:hover { background: #f8fafc; }

.order-num-wrap { display: flex; align-items: center; gap: 6px; }
.order-num-link { font-weight: 700; color: #1d4ed8; text-decoration: none; font-size: 13px; }
.order-num-link:hover { text-decoration: underline; color: #1e40af; }
.urgent-tag { background: #fee2e2; color: #b91c1c; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .5px; }

.customer-info-cell { display: flex; flex-direction: column; gap: 2px; }
.customer-name-text { font-weight: 600; color: #1e293b; }
.customer-phone-link { font-size: 11px; color: #64748b; text-decoration: none; }
.customer-phone-link:hover { color: #2563eb; text-decoration: underline; }

.assignee-cell { display: flex; align-items: center; gap: 8px; }
.assignee-avatar { width: 24px; height: 24px; min-width: 24px; border-radius: 50%; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.assignee-text { font-size: 12px; color: #334155; white-space: nowrap; }

.col-complaint { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #475569; }
.col-total { font-weight: 600; color: #0f172a; white-space: nowrap; }
.col-date { font-size: 12px; color: #64748b; white-space: nowrap; }
.col-sn { font-family: monospace; font-size: 11px; color: #475569; }

/* Order Card Drawer Styles */
.modal:has(.order-card-drawer) { max-width: 820px; width: 92vw; }
.order-card-drawer { display: flex; flex-direction: column; gap: 14px; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; flex-wrap: wrap; }
.order-card-header .header-main { display: flex; align-items: baseline; gap: 10px; }
.order-id-badge { font-size: 18px; font-weight: 700; color: #0f172a; }
.order-device-title { font-size: 14px; color: #64748b; }
.order-card-header .header-status-area { display: flex; align-items: center; gap: 10px; }

.card-nav-tabs { display: flex; gap: 6px; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; }
.card-nav-tab { background: transparent; border: none; padding: 7px 12px; font-size: 13px; font-weight: 600; color: #64748b; border-radius: 6px; cursor: pointer; transition: all .15s; }
.card-nav-tab:hover { color: #0f172a; background: #f1f5f9; }
.card-nav-tab.active { background: #eff6ff; color: #1d4ed8; }

.card-tab-pane { display: flex; flex-direction: column; gap: 14px; }
.drawer-card-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; }
.drawer-card-box h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #1e293b; text-transform: uppercase; letter-spacing: .5px; }

.card-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card-stat-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 14px; }
.card-stat-label { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; }
.card-stat-val { font-size: 18px; font-weight: 700; color: #0f172a; margin-top: 4px; }

.order-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid #e2e8f0; margin-top: 6px; flex-wrap: wrap; }
.order-card-footer .footer-left, .order-card-footer .footer-right { display: flex; gap: 8px; }

@media(max-width: 768px) {
  .orders-header { flex-direction: column; align-items: stretch; }
  .orders-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .orders-toolbar { flex-direction: column; align-items: stretch; }
  .orders-toolbar-left, .orders-toolbar-right { width: 100%; justify-content: space-between; }
  .orders-search-wrap { flex: 1; }
  .card-stat-grid { grid-template-columns: 1fr; }
}

/* Leads Module Parity Styles */
.leads-view { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.leads-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.leads-breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #64748b; }
.leads-breadcrumbs .breadcrumb-root { font-weight: 700; color: #0f172a; }
.leads-breadcrumbs .breadcrumb-separator { color: #cbd5e1; }
.leads-breadcrumbs .breadcrumb-current { text-decoration: underline dotted; color: #1e293b; cursor: pointer; }
.leads-breadcrumbs .funnel-icon { font-size: 12px; }

.leads-view-toggle { display: inline-flex; background: #e2e8f0; padding: 2px; border-radius: 6px; }
.view-toggle-btn { background: transparent; border: none; padding: 5px 8px; border-radius: 4px; cursor: pointer; color: #64748b; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.view-toggle-btn:hover { color: #0f172a; }
.view-toggle-btn.active { background: #ffffff; color: #1d4ed8; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }

.leads-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.leads-toolbar-left, .leads-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.leads-create-btn { background: #1976d2; color: #ffffff; border: none; padding: 8px 16px; border-radius: 6px; font-weight: 600; font-size: 13px; cursor: pointer; transition: background .15s; }
.leads-create-btn:hover { background: #1565c0; }
.leads-preset-btn { display: flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 13px; border-radius: 6px; background: #ffffff; border: 1px solid #cbd5e1; cursor: pointer; }
.leads-search-wrap { position: relative; display: flex; align-items: center; min-width: 240px; }
.leads-search-wrap input { padding: 7px 28px 7px 30px; font-size: 13px; border-radius: 6px; border: 1px solid #cbd5e1; width: 100%; }
.leads-search-wrap .search-icon { position: absolute; left: 9px; font-size: 12px; opacity: .5; pointer-events: none; }
.leads-search-wrap .clear-search-btn { position: absolute; right: 6px; background: none; border: none; padding: 2px 5px; cursor: pointer; font-size: 11px; color: #64748b; }
.icon-btn { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 6px 8px; cursor: pointer; color: #475569; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: #f8fafc; color: #0f172a; }

/* Kanban Board Styles */
.leads-kanban-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; min-height: 600px; align-items: flex-start; }
.kanban-column { flex: 1; min-width: 280px; max-width: 340px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; display: flex; flex-direction: column; max-height: calc(100vh - 200px); box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.kanban-column-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #ffffff; border-radius: 8px 8px 0 0; border-top: 4px solid var(--stage-color, #2980b9); border-bottom: 1px solid #e2e8f0; }
.kanban-column-title { font-weight: 700; font-size: 13px; color: #1e293b; display: flex; align-items: center; gap: 6px; }
.kanban-column-title .chevron { font-size: 10px; color: #64748b; }
.kanban-column-stats { font-size: 12px; font-weight: 600; color: #64748b; display: flex; gap: 8px; }
.kanban-column-stats .stat-sum { color: #0f172a; }
.kanban-cards-list { padding: 10px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1; min-height: 120px; }
.kanban-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: all .15s; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.kanban-card:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.06); border-color: #cbd5e1; }
.kanban-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.kanban-card-title { font-weight: 700; font-size: 13px; color: #0f172a; line-height: 1.3; }
.kanban-card-customer { font-size: 12px; color: #334155; display: flex; flex-direction: column; gap: 2px; }
.kanban-card-phone { font-size: 11px; color: #2563eb; }
.kanban-card-location { font-size: 11px; color: #64748b; }
.kanban-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; border-top: 1px solid #f1f5f9; }
.kanban-card-price { font-weight: 700; font-size: 13px; color: #0f172a; }
.kanban-card-manager { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #475569; }
.kanban-card-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 4px; }
.lead-stage-select { font-size: 11px; padding: 2px 6px; border-radius: 4px; border: 1px solid #cbd5e1; }
.btn-micro { padding: 2px 6px; font-size: 11px; border-radius: 4px; border: 1px solid #cbd5e1; background: #f8fafc; cursor: pointer; }
.kanban-empty-dropzone { padding: 30px 12px; text-align: center; color: #94a3b8; font-size: 12px; border: 1px dashed #cbd5e1; border-radius: 6px; }

/* Table View Styles */
.leads-table-wrap { overflow-x: auto; background: #ffffff; border-radius: 8px; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.leads-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.leads-table th { text-align: left; padding: 10px 12px; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.leads-table td { padding: 11px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.leads-table tr:hover { background: #f8fafc; cursor: pointer; }
.leads-empty-state { padding: 60px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #94a3b8; }
.empty-tray-icon { font-size: 36px; opacity: .7; }
.empty-text { font-size: 14px; color: #64748b; }

/* Slide-in Lead Drawer */
.lead-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; display: flex; justify-content: flex-end; }
.lead-drawer { width: 440px; max-width: 95vw; background: #ffffff; height: 100%; box-shadow: -4px 0 24px rgba(0,0,0,0.15); display: flex; flex-direction: column; animation: slideInRight .2s ease-out; }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.lead-drawer-header { padding: 18px 24px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.lead-drawer-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: #0f172a; }
.drawer-close-btn { background: none; border: none; font-size: 20px; color: #64748b; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.drawer-close-btn:hover { background: #f1f5f9; color: #0f172a; }
.lead-drawer-body { padding: 24px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.lead-drawer-field { display: flex; flex-direction: column; gap: 6px; }
.lead-drawer-field label { font-size: 13px; font-weight: 600; color: #334155; }
.lead-drawer-field label .req-star { color: #dc2626; margin-right: 2px; }
.lead-drawer-field input, .lead-drawer-field select, .lead-drawer-field textarea { padding: 8px 12px; border-radius: 6px; border: 1px solid #cbd5e1; font-size: 13px; font-family: inherit; }
.lead-drawer-field input:focus, .lead-drawer-field select:focus, .lead-drawer-field textarea:focus { border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.lead-drawer-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background-color: #cbd5e1; border-radius: 24px; transition: .2s; }
.toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; border-radius: 50%; transition: .2s; }
input:checked + .toggle-slider { background-color: #1976d2; }
input:checked + .toggle-slider:before { transform: translateX(20px); }
.lead-drawer-footer { padding: 16px 24px; border-top: 1px solid #e2e8f0; display: flex; justify-content: flex-end; gap: 10px; background: #f8fafc; }

/* Stage Color Classes to comply with CSP */
.kanban-col-new { border-top: 4px solid #2980b9; }
.kanban-col-in_progress { border-top: 4px solid #27ae60; }
.kanban-col-callback { border-top: 4px solid #1abc9c; }
.kanban-col-no_answer { border-top: 4px solid #e67e22; }
.kanban-col-won { border-top: 4px solid #8e44ad; }

.badge-stage-new { background-color: #2980b9 !important; color: #ffffff !important; }
.badge-stage-in_progress { background-color: #27ae60 !important; color: #ffffff !important; }
.badge-stage-callback { background-color: #1abc9c !important; color: #ffffff !important; }
.badge-stage-no_answer { background-color: #e67e22 !important; color: #ffffff !important; }
.badge-stage-won { background-color: #8e44ad !important; color: #ffffff !important; }

.avatar-blue { background-color: #e0f2fe; color: #0369a1; }
.lead-drawer-modal { width: 500px; }
.lead-stage-select-box { flex: 1; padding: 8px 12px; border-radius: 6px; border: 1px solid #cbd5e1; }
.lead-actions-row { display: flex; gap: 8px; margin-top: 8px; }
.lead-drawer-footer-split { justify-content: space-between !important; }

/* === Dialogues Module Parity (vlApp Parity) === */
.dialogs-header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dialogs-subtext-banner { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px 16px; margin-bottom: 16px; }
.dialogs-layout-container { display: grid; grid-template-columns: 320px 1fr 310px; height: calc(100vh - 210px); min-height: 520px; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

/* Left Pane */
.dialogs-left-pane { border-right: 1px solid #e2e8f0; display: flex; flex-direction: column; background: #ffffff; }
.dialogs-pane-head { padding: 14px 16px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.dialogs-pane-title { display: flex; align-items: center; gap: 8px; }
.dialogs-pane-title h3 { margin: 0; font-size: 16px; font-weight: 700; color: #1e293b; }
.dialogs-count-badge { background: #ef4444; color: #ffffff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 12px; }
.dialogs-tabs { display: flex; gap: 4px; background: #f1f5f9; padding: 3px; border-radius: 6px; }
.dialogs-tab { background: transparent; border: none; padding: 4px 12px; font-size: 12px; font-weight: 500; color: #64748b; cursor: pointer; border-radius: 4px; transition: all .15s; }
.dialogs-tab.active { background: #ffffff; color: #0f172a; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.dialogs-search-box { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; position: relative; }
.dialogs-search-box input { width: 100%; padding: 8px 12px 8px 32px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px; box-sizing: border-box; background: #f8fafc; font-family: inherit; }
.dialogs-search-box input:focus { border-color: #3b82f6; outline: none; background: #ffffff; box-shadow: 0 0 0 2px rgba(59,130,246,0.1); }
.dialogs-search-icon { position: absolute; left: 24px; top: 18px; font-size: 13px; color: #94a3b8; pointer-events: none; }
.dialogs-list { flex: 1; overflow-y: auto; }
.dialogs-card { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background .15s, border-left-color .15s; border-left: 3px solid transparent; }
.dialogs-card:hover { background: #f8fafc; }
.dialogs-card.active { background: #eff6ff; border-left-color: #2563eb; }
.dialogs-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.dialogs-card-time { font-size: 11px; color: #94a3b8; }
.dialogs-card-name { font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dialogs-card-snippet { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }

/* Channel Badges */
.badge-channel { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; display: inline-flex; align-items: center; gap: 4px; }
.badge-channel-telegram { background: #e0f2fe; color: #0284c7; }
.badge-channel-whatsapp { background: #dcfce7; color: #16a34a; }
.badge-channel-phone { background: #f3e8ff; color: #9333ea; }
.badge-channel-email { background: #ffedd5; color: #ea580c; }
.badge-channel-in_person { background: #ccfbf1; color: #0d9488; }
.badge-channel-other { background: #f1f5f9; color: #64748b; }

/* Center Pane */
.dialogs-center-pane { display: flex; flex-direction: column; background: #f8fafc; border-right: 1px solid #e2e8f0; }
.dialogs-chat-head { padding: 14px 20px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #ffffff; }
.dialogs-chat-title-group { display: flex; flex-direction: column; gap: 2px; }
.dialogs-chat-name { font-size: 16px; font-weight: 700; color: #0f172a; }
.dialogs-chat-sub { display: flex; align-items: center; gap: 8px; }
.dialogs-phone { font-size: 12px; color: #64748b; }
.dialogs-chat-actions { display: flex; gap: 8px; align-items: center; }
.dialogs-messages-scroll { flex: 1; padding: 20px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.dialogs-date-divider { text-align: center; margin: 12px 0 6px; }
.dialogs-date-divider span { background: #e2e8f0; color: #475569; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 12px; }
.dialogs-msg-row { display: flex; width: 100%; }
.dialogs-msg-row.inbound { justify-content: flex-start; }
.dialogs-msg-row.outbound { justify-content: flex-end; }
.dialogs-msg-bubble { max-width: 68%; padding: 10px 14px; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); font-size: 13px; line-height: 1.45; }
.dialogs-msg-row.inbound .dialogs-msg-bubble { background: #ffffff; color: #1e293b; border-bottom-left-radius: 2px; border: 1px solid #e2e8f0; }
.dialogs-msg-row.outbound .dialogs-msg-bubble { background: #dbeafe; color: #1e3a8a; border-bottom-right-radius: 2px; border: 1px solid #bfdbfe; }
.dialogs-msg-text { white-space: pre-wrap; word-break: break-word; }
.dialogs-msg-time { font-size: 10px; color: #64748b; text-align: right; margin-top: 4px; }
.dialogs-composer { padding: 14px 18px; background: #ffffff; border-top: 1px solid #e2e8f0; }
.dialogs-composer-toolbar { display: flex; gap: 8px; margin-bottom: 8px; }
.dialogs-select-mini { padding: 4px 10px; font-size: 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; color: #334155; font-family: inherit; }
.dialogs-composer-input-row { display: flex; gap: 10px; align-items: flex-end; }
.dialogs-textarea { flex: 1; border: 1px solid #cbd5e1; border-radius: 6px; padding: 10px 12px; font-size: 13px; resize: none; box-sizing: border-box; font-family: inherit; }
.dialogs-textarea:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 2px rgba(59,130,246,0.1); }
.dialogs-empty-chat { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #94a3b8; }
.dialogs-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.6; }
.dialogs-empty-text { font-size: 14px; font-weight: 500; }

/* Right Pane */
.dialogs-right-pane { padding: 18px; overflow-y: auto; background: #ffffff; display: flex; flex-direction: column; gap: 16px; }
.dialogs-right-head h4 { margin: 0; font-size: 14px; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: 0.05em; }
.dialogs-contact-card { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
.dialogs-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.dialogs-contact-info { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.dialogs-contact-name { font-size: 14px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dialogs-meta-section { display: flex; flex-direction: column; gap: 14px; }
.dialogs-meta-item { display: flex; flex-direction: column; gap: 4px; }
.dialogs-meta-item label { font-size: 11px; text-transform: uppercase; color: #64748b; font-weight: 700; letter-spacing: 0.04em; }
.dialogs-meta-val { font-size: 13px; color: #1e293b; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dialogs-meta-select { padding: 5px 10px; font-size: 12px; border: 1px solid #cbd5e1; border-radius: 6px; width: 100%; background: #f8fafc; font-family: inherit; }
.dialogs-meta-select:focus { border-color: #3b82f6; outline: none; }
.dialogs-agent-name { font-weight: 500; }
.dialogs-text-muted { color: #94a3b8; font-size: 12px; font-style: italic; }
.dialogs-linked-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.dialogs-linked-pill { background: #f1f5f9; border: 1px solid #e2e8f0; padding: 4px 8px; border-radius: 4px; font-size: 12px; color: #334155; width: 100%; box-sizing: border-box; }
.badge-status { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge-status-open { background: #dcfce7; color: #15803d; }
.badge-status-completed { background: #f1f5f9; color: #475569; }
.badge-status-pending { background: #fef3c7; color: #b45309; }
.btn-subtle-sm { background: #f1f5f9; border: 1px solid #cbd5e1; font-size: 11px; font-weight: 600; color: #334155; padding: 2px 8px; border-radius: 4px; cursor: pointer; }
.btn-subtle-sm:hover { background: #e2e8f0; }
.badge-tag { background: #e2e8f0; color: #334155; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.dialogs-empty-notice { padding: 20px; text-align: center; }

/* === Tasks Module Parity (vlApp Parity) === */
.tasks-header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.tasks-title-group { display: flex; flex-direction: column; gap: 4px; }
.tasks-title-group h2 { margin: 0; font-size: 20px; font-weight: 700; color: #0f172a; }
.tasks-toolbar { display: flex; gap: 12px; align-items: center; }
.tasks-search-input { padding: 8px 12px 8px 32px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px; width: 260px; font-family: inherit; background: #ffffff; }
.tasks-search-input:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 2px rgba(59,130,246,0.1); }
.tasks-search-wrapper { position: relative; display: flex; align-items: center; }
.tasks-search-icon { position: absolute; left: 10px; font-size: 13px; color: #94a3b8; pointer-events: none; }

.tasks-kanban-board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; min-height: 520px; overflow-x: auto; padding-bottom: 16px; }
.tasks-column { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; min-height: 480px; }
.tasks-col-open { border-top: 4px solid #2980b9; }
.tasks-col-planned { border-top: 4px solid #f39c12; }
.tasks-col-in_progress { border-top: 4px solid #27ae60; }
.tasks-col-review { border-top: 4px solid #8e44ad; }
.tasks-col-closed { border-top: 4px solid #7f8c8d; }

.tasks-col-head { padding: 12px 14px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #ffffff; }
.tasks-col-title-group { display: flex; align-items: center; gap: 6px; }
.tasks-col-check { font-size: 13px; color: #64748b; font-weight: 700; }
.tasks-col-title { font-size: 13px; font-weight: 700; color: #1e293b; }
.tasks-col-badge { background: #e2e8f0; color: #475569; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }

.tasks-col-body { padding: 12px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.tasks-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tasks-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.tasks-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; margin-bottom: 6px; }
.tasks-card-title { font-size: 13px; font-weight: 600; color: #1e293b; line-height: 1.4; word-break: break-word; }
.tasks-card-note { font-size: 12px; color: #64748b; line-height: 1.35; margin-bottom: 8px; }
.tasks-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 11px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #f1f5f9; }
.tasks-card-due { display: inline-flex; align-items: center; gap: 4px; color: #64748b; font-weight: 500; }
.tasks-card-due.overdue { color: #dc2626; font-weight: 700; }
.tasks-card-agent { display: inline-flex; align-items: center; gap: 6px; }
.tasks-avatar-xs { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #ffffff; background: #0284c7; }

.tasks-priority-urgent { background: #fee2e2; color: #dc2626; padding: 2px 6px; border-radius: 4px; font-weight: 700; font-size: 10px; }
.tasks-priority-high { background: #ffedd5; color: #ea580c; padding: 2px 6px; border-radius: 4px; font-weight: 700; font-size: 10px; }
.tasks-priority-normal { background: #f1f5f9; color: #475569; padding: 2px 6px; border-radius: 4px; font-size: 10px; }
.tasks-priority-low { background: #f1f5f9; color: #94a3b8; padding: 2px 6px; border-radius: 4px; font-size: 10px; }

.tasks-stage-quick-select { padding: 3px 6px; font-size: 11px; border: 1px solid #cbd5e1; border-radius: 4px; background: #f8fafc; font-family: inherit; }
/* --- FINANCES MODULE PARITY STYLES --- */
.finances-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px 16px 16px;
}

.finances-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.finances-breadcrumbs {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.finances-breadcrumbs strong {
  color: #1e293b;
}

.crumb-sep {
  margin: 0 4px;
  color: #94a3b8;
}

.finances-tabs {
  display: flex;
  gap: 8px;
}

.fin-tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: all 0.15s ease;
}

.fin-tab-btn:hover {
  color: #0284c7;
}

.fin-tab-btn.is-active {
  color: #0284c7;
  border-bottom: 2px solid #0284c7;
}

.finances-wallets-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
}

.fin-wallet-card {
  flex: 0 0 210px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fin-wallet-card:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.fin-wallet-card.is-selected {
  border: 2px solid #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 1px #0284c7;
}

.fin-wallet-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fin-wallet-balance {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 6px 0;
}

.fin-wallet-location {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.finances-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.finances-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.finances-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fin-date-picker-wrap {
  position: relative;
}

.fin-date-btn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fin-search-wrap input {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 240px;
  outline: none;
}

.fin-search-wrap input:focus {
  border-color: #0284c7;
}

.finances-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.finances-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.finances-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.finances-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #1e293b;
}

.finances-table tbody tr:hover {
  background: #f8fafc;
}

.fin-col-date {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.fin-col-reason {
  max-width: 380px;
}

.fin-reason-title {
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}

.fin-reason-device {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.fin-col-amount {
  font-weight: 700;
  white-space: nowrap;
  font-size: 14px;
}

.fin-col-amount.is-income {
  color: #16a34a;
}

.fin-col-amount.is-expense {
  color: #dc2626;
}

.fin-category-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.fin-col-counterparty {
  color: #1e293b;
  font-weight: 500;
}

.finances-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  font-size: 12px;
  color: #64748b;
}

.finances-payroll-toolbar,
.finances-accruals-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.payroll-month-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payroll-current-month {
  font-weight: 700;
  font-size: 14px;
  min-width: 120px;
  text-align: center;
}

.payroll-totals-row td {
  background: #f8fafc;
  font-weight: 700;
  border-top: 2px solid #e2e8f0;
  color: #0f172a;
}

.payroll-totals-row td strong {
  font-size: 14px;
  color: #0284c7;
}

/* Slide-in Drawer */
.fin-drawer-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.fin-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fin-field-group label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.fin-field-group input,
.fin-field-group select,
.fin-field-group textarea {
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
}

.fin-field-group input:focus,
.fin-field-group select:focus,
.fin-field-group textarea:focus {
  border-color: #0284c7;
}

.fin-segmented-type {
  display: flex;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.fin-type-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0;
}

.fin-type-btn.is-active {
  background: #0284c7;
  color: #ffffff;
}

.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; display: flex; justify-content: flex-end; }
.drawer-container, .drawer-panel { width: 460px; max-width: 95vw; background: #ffffff; height: 100%; box-shadow: -4px 0 24px rgba(0,0,0,0.15); display: flex; flex-direction: column; animation: slideInRight .2s ease-out; overflow-y: auto; }
.drawer-header { padding: 18px 24px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.drawer-title { margin: 0; font-size: 18px; font-weight: 700; color: #0f172a; }
.drawer-close { background: none; border: none; font-size: 20px; color: #64748b; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.drawer-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f1f5f9; }

/* ============================================================
   CUSTOMERS MODULE (vlApp PARITY) STYLES
   ============================================================ */

.customers-workspace {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Toolbar */
.cust-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 8px 12px;
}

.cust-toolbar-left, .cust-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cust-caret-btn, .cust-gear-btn {
  padding: 6px 10px;
  min-width: 32px;
  font-weight: bold;
}

.cust-filter-pills {
  display: flex;
  align-items: center;
  background: var(--bg-alt, #f1f5f9);
  padding: 2px;
  border-radius: 6px;
  gap: 2px;
}

.cust-pill {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cust-pill:hover {
  color: var(--text, #0f172a);
}

.cust-pill.active {
  background: #ffffff;
  color: var(--primary, #2563eb);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  font-weight: 600;
}

.cust-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cust-search-wrap input {
  padding: 6px 65px 6px 10px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.8125rem;
  width: 180px;
  transition: width 0.2s ease;
}

.cust-search-wrap input:focus {
  width: 240px;
  outline: none;
  border-color: var(--primary, #2563eb);
}

.cust-search-badge {
  position: absolute;
  right: 8px;
  font-size: 0.7rem;
  background: var(--bg-alt, #f1f5f9);
  color: var(--text-muted, #64748b);
  padding: 2px 5px;
  border-radius: 4px;
  pointer-events: none;
  border: 1px solid var(--border, #e2e8f0);
}

/* Split View Container */
.cust-split-container {
  display: block;
  width: 100%;
}

.cust-split-container.split-open {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 16px;
  align-items: start;
}

/* Table */
.cust-table-pane {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cust-table-wrap {
  overflow-x: auto;
  max-height: calc(100vh - 180px);
}

.cust-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  text-align: left;
}

.cust-table th {
  background: var(--bg-alt, #f8fafc);
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  border-bottom: 1px solid var(--border, #e2e8f0);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.cust-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border, #f1f5f9);
  color: var(--text, #0f172a);
  vertical-align: middle;
}

.cust-table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}

.cust-table tbody tr:hover {
  background: var(--bg-hover, #f8fafc);
}

.cust-table tbody tr.selected {
  background: #eff6ff !important;
  border-left: 3px solid var(--primary, #2563eb);
}

.th-cb, .td-cb {
  width: 32px;
  text-align: center;
  padding-left: 8px !important;
  padding-right: 4px !important;
}

.td-name {
  font-weight: 500;
}

.cust-name-text {
  color: var(--text, #0f172a);
}

.td-phone {
  white-space: nowrap;
}

.cust-phone-val {
  font-variant-numeric: tabular-nums;
}

.cust-copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  opacity: 0.6;
  font-size: 0.75rem;
  transition: opacity 0.15s ease;
}

.cust-copy-btn:hover {
  opacity: 1;
}

.td-source, .td-date {
  color: var(--text-muted, #64748b);
  font-size: 0.78rem;
}

.td-balance {
  font-weight: 500;
}

.badge-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-supplier {
  background: #ffedd5;
  color: #c2410c;
}

.badge-group {
  background: #e0e7ff;
  color: #3730a3;
}

/* Footer Pager */
.cust-footer-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 8px 12px;
  background: var(--bg-alt, #f8fafc);
  border-top: 1px solid var(--border, #e2e8f0);
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
}

.cust-footer-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cust-page-num, .cust-page-next {
  border: 1px solid var(--border, #cbd5e1);
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text, #0f172a);
}

.cust-page-num.active {
  background: var(--primary, #2563eb);
  color: #ffffff;
  border-color: var(--primary, #2563eb);
  font-weight: bold;
}

.cust-footer-limit select {
  padding: 3px 6px;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 4px;
  font-size: 0.75rem;
  background: #ffffff;
}

/* Right Detail Pane */
.cust-detail-pane {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 180px);
}

.cust-card-header {
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: #ffffff;
}

.cust-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}

.cust-card-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text, #0f172a);
}

.cust-card-close-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted, #64748b);
  padding: 4px 8px;
  border-radius: 4px;
}

.cust-card-close-btn:hover {
  background: var(--bg-hover, #f1f5f9);
  color: var(--text, #0f172a);
}

.cust-card-subtabs {
  display: flex;
  gap: 4px;
  padding: 0 16px;
}

.cust-subtab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cust-subtab:hover {
  color: var(--text, #0f172a);
}

.cust-subtab.active {
  color: var(--primary, #2563eb);
  border-bottom-color: var(--primary, #2563eb);
  font-weight: 600;
}

.cust-card-columns {
  display: grid;
  grid-template-columns: 55% 45%;
  flex: 1;
  min-height: 480px;
}

.cust-tab-content-area {
  padding: 16px;
  border-right: 1px solid var(--border, #e2e8f0);
  overflow-y: auto;
  max-height: calc(100vh - 250px);
}

/* Info Form */
.cust-info-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cust-field-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 8px;
}

.cust-field-row label {
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
}

.cust-field-row label .req {
  color: #ef4444;
}

.cust-type-segmented {
  display: inline-flex;
  background: var(--bg-alt, #f1f5f9);
  padding: 2px;
  border-radius: 6px;
  gap: 2px;
  width: fit-content;
}

.cust-type-seg-btn {
  border: none;
  background: transparent;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  border-radius: 4px;
  cursor: pointer;
}

.cust-type-seg-btn.active {
  background: #ffffff;
  color: var(--text, #0f172a);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  font-weight: 600;
}

.cust-input-clear-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cust-input-clear-wrap input {
  width: 100%;
  padding-right: 28px;
}

.cust-input-clear-btn {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  font-size: 0.8rem;
}

.cust-textarea-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.cust-textarea-wrap textarea {
  width: 100%;
  padding-bottom: 20px;
  resize: vertical;
}

.cust-char-counter {
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
  pointer-events: none;
}

.cust-toggle-row {
  align-items: center;
}

/* Switch */
.switch-control {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 20px;
  transition: .2s;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: .2s;
}

.switch-control input:checked + .switch-slider {
  background: var(--primary, #2563eb);
}

.switch-control input:checked + .switch-slider:before {
  transform: translateX(16px);
}

.cust-phone-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cust-phone-input-row input {
  flex: 1;
}

.cust-phone-call-btn, .cust-phone-add-btn {
  padding: 6px 10px;
}

.cust-notif-icons {
  display: flex;
  gap: 8px;
}

.cust-notif-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  color: white;
}

.cust-notif-tg { background: #0088cc; }
.cust-notif-viber { background: #7360f2; }

.cust-form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e2e8f0);
}

/* Orders Pane */
.cust-orders-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cust-orders-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cust-orders-filters {
  display: flex;
  background: var(--bg-alt, #f1f5f9);
  padding: 2px;
  border-radius: 6px;
  gap: 2px;
}

.cust-ord-filter {
  border: none;
  background: transparent;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  border-radius: 4px;
  cursor: pointer;
}

.cust-ord-filter.active {
  background: #ffffff;
  color: var(--text, #0f172a);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  font-weight: 600;
}

.ord-badge {
  background: #e2e8f0;
  color: #475569;
  padding: 1px 4px;
  border-radius: 8px;
  font-size: 0.65rem;
  margin-left: 2px;
}

.cust-orders-table-wrap {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  overflow: hidden;
}

.cust-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.cust-orders-table th {
  background: var(--bg-alt, #f8fafc);
  padding: 6px 8px;
  font-size: 0.7rem;
  color: var(--text-muted, #64748b);
  border-bottom: 1px solid var(--border, #e2e8f0);
  text-align: left;
}

.cust-orders-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border, #f1f5f9);
}

.cust-orders-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  padding: 4px 0;
}

/* Journal Pane */
.cust-journal-column {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt, #f8fafc);
  overflow: hidden;
  max-height: calc(100vh - 250px);
}

.cust-journal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.cust-journal-header h4 {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text, #0f172a);
}

.cust-journal-actions {
  display: flex;
  gap: 4px;
}

.cust-journal-actions .icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px 6px;
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

.cust-journal-feed {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cust-journal-date-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cust-journal-date-header {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.02em;
}

.cust-journal-card {
  display: flex;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  padding: 8px 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.cust-journal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.8rem;
  background: #f1f5f9;
}

.cust-icon-created { background: #dbeafe; color: #1d4ed8; }
.cust-icon-order_created { background: #dbeafe; color: #1d4ed8; }
.cust-icon-order_closed { background: #e0e7ff; color: #4338ca; }
.cust-icon-payment { background: #dcfce7; color: #15803d; }
.cust-icon-comment { background: #fef3c7; color: #b45309; }

.cust-journal-card-body {
  flex: 1;
}

.cust-journal-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text, #0f172a);
}

.cust-journal-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  margin-top: 2px;
}

.cust-journal-order-badge {
  display: inline-block;
  background: var(--bg-alt, #f1f5f9);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--primary, #2563eb);
  margin-top: 4px;
}

.cust-journal-card-meta {
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 4px;
}

.cust-journal-now-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--primary, #2563eb);
  margin: 6px 0;
  font-weight: 500;
}

/* Journal Input Bar */
.cust-journal-input-wrap {
  border-top: 1px solid var(--border, #e2e8f0);
  background: #ffffff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cust-journal-input-wrap textarea {
  width: 100%;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.78rem;
  resize: none;
}

.cust-journal-input-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cust-journal-bar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cust-comm-type-btn {
  font-size: 0.72rem;
  padding: 3px 8px;
}

.cust-journal-send-btn {
  padding: 4px 10px;
  font-size: 0.8rem;
}

/* Empty tab notice */
.cust-empty-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.cust-empty-tab .emoji {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.cust-empty-tab h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

/* Drawer Form Group */
.cust-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.cust-field-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
}

.cust-field-group input, .cust-field-group select, .cust-field-group textarea {
  width: 100%;
}

/* ==========================================================================
   Sales Workspace Styles (Продажи) - vlApp Parity
   ========================================================================== */

.sales-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #262626;
}

.sales-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.sales-branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #262626;
}

.sales-branch-pill .caret {
  font-size: 10px;
  color: #8c8c8c;
}

.sales-breadcrumb-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #262626;
}

.sales-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sales-btn-create {
  background: #1890ff;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sales-btn-create:hover {
  background: #096dd9;
}

.sales-date-range {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 4px 10px;
  gap: 6px;
}

.sales-date-range input[type="date"] {
  border: none;
  background: transparent;
  font-size: 13px;
  color: #262626;
  outline: none;
  font-family: inherit;
}

.sales-date-range .range-sep {
  color: #8c8c8c;
}

.sales-date-range .cal-icon {
  font-size: 13px;
  color: #8c8c8c;
}

.sales-search-box {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 4px 10px;
  gap: 8px;
  min-width: 240px;
  position: relative;
}

.sales-search-box input[type="search"] {
  border: none;
  outline: none;
  font-size: 13px;
  width: 100%;
  background: transparent;
  color: #262626;
  font-family: inherit;
}

.sales-search-icon {
  font-size: 13px;
  color: #8c8c8c;
}

.sales-ctrl-k {
  font-size: 10px;
  color: #8c8c8c;
  background: #fafafa;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}

.sales-toolbar-btn {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  color: #595959;
  transition: all 0.15s ease;
}

.sales-toolbar-btn:hover {
  border-color: #1890ff;
  color: #1890ff;
}

.sales-table-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.sales-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.sales-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.sales-table thead th {
  background: #fafafa;
  color: #8c8c8c;
  font-weight: 600;
  font-size: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  letter-spacing: 0.5px;
  user-select: none;
}

.sales-table thead th.sortable {
  cursor: pointer;
}

.sales-table thead th.sortable:hover {
  color: #1890ff;
}

.sales-table thead th .sort-arrow {
  font-size: 10px;
  margin-left: 4px;
  color: #bfbfbf;
}

.sales-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f5f5f5;
  color: #262626;
  white-space: nowrap;
}

.sales-table tbody tr.sales-data-row:hover td {
  background: #fbfbfb;
}

.col-num { width: 140px; }
.col-date { width: 170px; }
.col-wh { width: 180px; }
.col-cust { min-width: 220px; }
.col-desc { min-width: 200px; color: #8c8c8c; }
.col-sum { width: 140px; font-weight: 600; }
.col-user { width: 200px; }

.right-align {
  text-align: right;
}

.sale-number-badge {
  font-weight: 600;
  color: #1890ff;
}

.sale-amount-val {
  font-weight: 600;
  color: #262626;
}

.cust-name-cell {
  color: #1890ff;
  cursor: pointer;
}

.sales-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sales-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e6f7ff;
  color: #1890ff;
  font-size: 11px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sales-user-name {
  color: #595959;
}

.sales-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: #bfbfbf;
}

.sales-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.sales-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  color: #595959;
}

.sales-pager-total {
  margin-right: auto;
  color: #8c8c8c;
}

.sales-pager-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pager-btn {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 12px;
  cursor: pointer;
  color: #595959;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pager-btn:hover {
  border-color: #1890ff;
  color: #1890ff;
}

.pager-btn.active {
  border-color: #1890ff;
  color: #1890ff;
  font-weight: 600;
}

.pager-dots {
  color: #bfbfbf;
  padding: 0 4px;
}

.sales-pager-limit select {
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  color: #595959;
  outline: none;
  background: white;
}

/* ==========================================================================
   Sales Drawer Styles
   ========================================================================== */

.sale-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
}

.sale-drawer {
  width: 680px;
  max-width: 90vw;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  animation: saleDrawerSlideIn 0.25s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes saleDrawerSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.sale-drawer-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sale-drawer-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #262626;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #8c8c8c;
}

.drawer-close-btn:hover {
  color: #262626;
}

.sale-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.sale-drawer-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sale-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sale-form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #595959;
}

.sale-form-group label.required::before {
  content: "* ";
  color: #ff4d4f;
}

.sale-form-group input,
.sale-form-group select,
.sale-form-group textarea {
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.sale-form-group input:focus,
.sale-form-group select:focus,
.sale-form-group textarea:focus {
  border-color: #1890ff;
}

.sale-customer-picker {
  display: flex;
  gap: 8px;
  position: relative;
}

.sale-customer-picker input {
  flex: 1;
}

.sale-add-cust-btn {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  width: 36px;
  font-size: 18px;
  cursor: pointer;
  color: #1890ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sale-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
}

.sale-dropdown-list.hidden {
  display: none;
}

.sale-dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sale-dropdown-item:hover {
  background: #f0f7ff;
}

.item-choice-price {
  font-weight: 600;
  color: #1890ff;
}

.sale-items-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.sale-items-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sale-add-item-btn {
  background: none;
  border: none;
  color: #1890ff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.sale-items-table-wrap {
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
}

.sale-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.sale-items-table th {
  background: #fafafa;
  padding: 8px 10px;
  color: #8c8c8c;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}

.sale-items-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f5f5f5;
}

.col-item-qty input,
.col-item-price input {
  width: 70px;
  padding: 4px 6px;
  font-size: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
}

.btn-remove-item {
  background: none;
  border: none;
  cursor: pointer;
  color: #ff4d4f;
  font-size: 14px;
}

.sale-summary-bar {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-size: 13px;
  padding: 8px 0;
  color: #595959;
}

.sale-total-sum {
  font-weight: 600;
  color: #262626;
}

.sale-label-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-counter {
  font-size: 11px;
  color: #bfbfbf;
}

.sale-toggle-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.sale-drawer-error {
  color: #ff4d4f;
  font-size: 13px;
}

.sale-drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-cancel {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  cursor: pointer;
  color: #595959;
}

.btn-submit-sale {
  background: #1890ff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
}

.btn-submit-sale:hover {
  background: #096dd9;
}

.btn-submit-sale:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
}
/* Warehouse (Склады) module styles matching vlApp */
.warehouse-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.warehouse-top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.warehouse-branch-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
}

.warehouse-breadcrumb-title {
  color: #64748b;
  font-size: 14px;
}

/* Subtabs bar */
.warehouse-tabs-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  background: #ffffff;
}

.wh-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wh-tab:hover {
  color: #0f172a;
}

.wh-tab.active {
  color: #0066cc;
  border-bottom-color: #0066cc;
  font-weight: 600;
}

/* Toolbar */
.warehouse-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wh-toolbar-left,
.wh-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wh-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 8px;
  height: 36px;
}

.wh-select-wrapper .wh-icon {
  margin-right: 6px;
  font-size: 13px;
  color: #64748b;
}

.wh-select {
  border: none;
  background: transparent;
  font-size: 13px;
  color: #1e293b;
  outline: none;
  cursor: pointer;
  padding-right: 12px;
}

.btn-create-item {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
}

.wh-datepicker-range {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 10px;
  height: 36px;
  gap: 6px;
}

.wh-datepicker-range input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 105px;
  color: #1e293b;
}

.wh-datepicker-range .range-dash {
  color: #94a3b8;
}

.wh-datepicker-range .cal-icon {
  font-size: 13px;
  color: #64748b;
}

.wh-search-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 10px;
  height: 36px;
  width: 220px;
}

.wh-search-box input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: #1e293b;
}

.wh-search-shortcut {
  font-size: 11px;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 6px;
}

.wh-search-icon {
  font-size: 13px;
  color: #64748b;
}

.wh-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.wh-btn-secondary:hover {
  background: #f8fafc;
}

.wh-btn-icon {
  height: 36px;
  width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 15px;
  color: #64748b;
  cursor: pointer;
}

/* Table Card */
.warehouse-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.empty-card-pad {
  padding: 60px 20px;
}

.warehouse-table-wrapper {
  overflow-x: auto;
}

.warehouse-grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.warehouse-grid-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  user-select: none;
}

.warehouse-grid-table th[data-sort] {
  cursor: pointer;
}

.warehouse-grid-table th[data-sort]:hover {
  color: #0f172a;
}

.warehouse-grid-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.warehouse-grid-table tbody tr:hover {
  background: #f8fafc;
}

.col-check {
  width: 36px;
  text-align: center;
}

.col-img {
  width: 48px;
  text-align: center;
}

.wh-placeholder-img {
  display: inline-block;
  font-size: 16px;
  color: #94a3b8;
}

.wh-item-title {
  font-weight: 500;
  color: #0f172a;
  line-height: 1.4;
}

.wh-id-link {
  font-weight: 600;
  color: #0066cc;
  cursor: pointer;
}

.wh-id-link:hover {
  text-decoration: underline;
}

.stock-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
}

.stock-badge.in-stock {
  background: #ecfdf5;
  color: #059669;
}

.stock-badge.out-of-stock {
  background: #fef2f2;
  color: #dc2626;
}

.cat-pill {
  display: inline-block;
  padding: 3px 8px;
  background: #f1f5f9;
  border-radius: 4px;
  font-size: 12px;
  color: #475569;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-val,
.amount-val {
  font-weight: 600;
  color: #0f172a;
}

.supplier-name {
  font-weight: 500;
}

.warehouse-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}
/* Documents (Документы) module styles matching vlApp */
.documents-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.documents-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.documents-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.documents-breadcrumb-title {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

/* Subtabs bar */
.documents-subtabs-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  background: #ffffff;
}

.doc-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.doc-tab:hover {
  color: #0f172a;
}

.doc-tab.active {
  color: #0066cc;
  border-bottom-color: #0066cc;
  font-weight: 600;
}

.documents-subtab-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Toolbar */
.documents-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.doc-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.doc-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-btn-primary {
  background: #0066cc;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.doc-btn-primary:hover {
  background: #0052a3;
}

.doc-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.doc-btn-secondary:hover {
  background: #e2e8f0;
}

/* Date range */
.doc-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
}

.doc-date-input {
  border: none;
  font-size: 13px;
  color: #334155;
  outline: none;
}

.doc-date-sep {
  color: #94a3b8;
  font-size: 12px;
}

/* Search */
.doc-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.doc-search-icon {
  position: absolute;
  left: 10px;
  font-size: 13px;
  color: #94a3b8;
  pointer-events: none;
}

.doc-search-input {
  padding: 7px 12px 7px 32px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  width: 220px;
  outline: none;
  background: #ffffff;
}

.doc-search-input:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
}

/* Type pills for contracts */
.doc-type-pills {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 6px;
}

.doc-pill {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.doc-pill:hover {
  color: #0f172a;
}

.doc-pill.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Table Card */
.doc-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.doc-table-scroll {
  overflow-x: auto;
  width: 100%;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.doc-table th {
  background: #f8fafc;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.doc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.doc-row:hover td {
  background: #f8fafc;
}

.doc-cell-bold {
  font-weight: 600;
  color: #0f172a;
}

.doc-cell-primary {
  font-weight: 500;
  color: #0066cc;
}

.doc-cell-amount {
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.doc-cell-muted {
  color: #64748b;
}

.doc-cell-desc {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475569;
}

.doc-cell-title {
  max-width: 350px;
  color: #1e293b;
  font-weight: 500;
}

/* Badges */
.doc-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.doc-badge-paid, .doc-badge-signed, .doc-badge-active {
  background: #dcfce7;
  color: #166534;
}

.doc-badge-transfer {
  background: #e0f2fe;
  color: #0369a1;
}

/* User pill */
.doc-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.doc-user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-size: 10px;
  font-weight: 700;
}

.doc-user-name {
  color: #475569;
  font-size: 12px;
}

/* Pagination */
.doc-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
}

.doc-pagination-info {
  color: #64748b;
}

.doc-pagination-pages {
  display: flex;
  gap: 4px;
}

.doc-page-btn {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.doc-page-btn.active {
  background: #0066cc;
  color: #ffffff;
  border-color: #0066cc;
}

.doc-select-limit {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  color: #475569;
}

.doc-limit-text {
  color: #64748b;
}

.doc-empty-state {
  padding: 48px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* Drawer */
.doc-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  animation: docFadeIn 0.2s ease-out;
}

@keyframes docFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.doc-drawer {
  width: 540px;
  max-width: 90vw;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  animation: docSlideLeft 0.25s ease-out;
}

@keyframes docSlideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.doc-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.doc-drawer-header h3 {
  margin: 0;
  font-size: 17px;
  color: #0f172a;
}

.doc-drawer-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.doc-drawer-close:hover {
  color: #0f172a;
}

.doc-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.doc-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.doc-form-row {
  display: flex;
  gap: 12px;
}

.doc-col-half {
  flex: 1;
}

.doc-input, .doc-select, .doc-textarea {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.doc-input:focus, .doc-select:focus, .doc-textarea:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
}

.doc-textarea {
  resize: vertical;
  min-height: 60px;
}

/* Items in Drawer */
.doc-items-section {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-items-header h4 {
  margin: 0;
  font-size: 13px;
  color: #334155;
}

.doc-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-item-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.doc-item-name {
  flex: 3;
}

.doc-item-qty {
  flex: 1;
  min-width: 50px;
}

.doc-item-price {
  flex: 1.5;
  min-width: 70px;
}

.doc-item-del {
  border: none;
  background: none;
  color: #ef4444;
  cursor: pointer;
  padding: 6px;
  font-size: 14px;
}

.doc-items-total {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  color: #334155;
}

.doc-items-total strong {
  font-size: 15px;
  color: #0f172a;
}

.doc-drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

/* Projects Module & Kanban Styles */
.proj-subtabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 0 12px 0;
  margin-bottom: 16px;
  background: transparent;
}

.proj-avatar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #1e293b;
  font-weight: 600;
  font-size: 11px;
}

.proj-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.proj-tag-badge.green {
  background: #dcfce7;
  color: #15803d;
}
.proj-tag-badge.orange {
  background: #ffedd5;
  color: #c2410c;
}
.proj-tag-badge.teal {
  background: #ccfbf1;
  color: #0f766e;
}

.proj-kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: calc(100vh - 280px);
}

.proj-kanban-col {
  flex: 1;
  min-width: 260px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.proj-kanban-col-header {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.proj-kanban-col-cards {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.proj-kanban-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.proj-kanban-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border-color: #94a3b8;
}

.proj-kanban-card-title {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
}

.proj-kanban-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748b;
}

.proj-board-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #1e293b;
  color: #ffffff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-right: 12px;
}

.proj-board-search {
  flex: 1;
  max-width: 400px;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .2s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #2563eb;
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* Calls / Telephony Module Styles */
.calls-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
}

.calls-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.calls-title-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calls-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.calls-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
}

.calls-pill-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.calls-pill-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.calls-pill-btn.active {
  background: #ffffff;
  color: #2563eb;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.calls-pill-badge {
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
}

.calls-pill-btn.active .calls-pill-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.calls-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calls-search-box {
  position: relative;
  width: 240px;
}

.calls-search-box input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  background: #ffffff;
}

.calls-search-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.calls-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
}

.calls-date-box {
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  background: #ffffff;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.call-btn-simulate {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.call-btn-simulate:hover {
  background: #1d4ed8;
}

/* Call Direction Badges */
.call-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
}

.call-badge-inbound {
  background: #dcfce7;
  color: #15803d;
}

.call-badge-outbound {
  background: #dbeafe;
  color: #1d4ed8;
}

.call-badge-missed {
  background: #fee2e2;
  color: #b91c1c;
}

.call-phone-link {
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.call-phone-link:hover {
  color: #2563eb;
}

.call-client-subtext {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.call-internal-badge {
  background: #f1f5f9;
  color: #334155;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

.call-audio-player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.call-audio-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.call-audio-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.call-waveform {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}

.call-wave-bar {
  width: 2px;
  background: #94a3b8;
  border-radius: 1px;
}

.call-download-btn {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  padding: 2px 4px;
}

.call-download-btn:hover {
  color: #0f172a;
}

/* Incoming Call Toast Simulation */
.calls-incoming-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 320px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 2px solid #22c55e;
  padding: 16px;
  z-index: 9999;
  animation: slideInDown 0.3s ease;
}

.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.toast-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 4px;
}

.toast-close {
  border: none;
  background: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
}

.toast-number {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.toast-client {
  font-size: 13px;
  color: #475569;
  margin-top: 2px;
  margin-bottom: 12px;
}

.toast-actions {
  display: flex;
  gap: 8px;
}

.toast-btn-accept {
  flex: 1;
  background: #22c55e;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.toast-btn-accept:hover {
  background: #16a34a;
}

.toast-btn-reject {
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.toast-btn-reject:hover {
  background: #dc2626;
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Reports Module Styles */
.reports-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
}

.reports-tabs-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 8px;
}

.reports-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reports-tab-btn:hover {
  color: #0f172a;
}

.reports-tab-btn.active {
  color: #2563eb;
  font-weight: 600;
  border-bottom-color: #2563eb;
}

.reports-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.reports-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reports-kpi-title {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.reports-kpi-val {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.reports-kpi-sub {
  font-size: 12px;
  color: #94a3b8;
}

.reports-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.reports-filter-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reports-filter-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reports-select {
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  background: #ffffff;
  color: #334155;
  outline: none;
}

.reports-date-input {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  color: #334155;
}

.reports-btn-build {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.reports-btn-build:hover {
  background: #1d4ed8;
}

.reports-btn-export {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.reports-btn-export:hover {
  background: #f1f5f9;
}

.reports-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reports-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.reports-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

/* Utilities Module Styles */
.util-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
}

.util-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.util-mon-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.util-mon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.util-mon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.util-mon-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.util-mon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.util-mon-label {
  color: #64748b;
  font-weight: 500;
}

.util-mon-val {
  color: #1e293b;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.util-badge-online {
  background: #dcfce7;
  color: #15803d;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.util-badge-warning {
  background: #ffedd5;
  color: #c2410c;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.util-badge-offline {
  background: #fee2e2;
  color: #b91c1c;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

/* Directories Module Styles */
.dir-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

.dir-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .dir-layout {
    grid-template-columns: 1fr;
  }
}

.dir-nav {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.dir-nav-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 8px 12px;
  letter-spacing: 0.5px;
}

.dir-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.dir-nav-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.dir-nav-item.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.dir-nav-badge {
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 24px;
  text-align: center;
}

.dir-nav-item.active .dir-nav-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.dir-content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dir-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.dir-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 8px;
}

.dir-table th {
  background: #f8fafc;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.dir-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: #1e293b;
  vertical-align: middle;
}

.dir-table tr:hover td {
  background: #f8fafc;
}

.dir-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.dir-status-pill.active {
  background: #dcfce7;
  color: #15803d;
}

.dir-status-pill.inactive {
  background: #f1f5f9;
  color: #64748b;
}

.dir-order-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* Files Module Styles */
.files-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

.files-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .files-layout {
    grid-template-columns: 1fr;
  }
}

.files-nav {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.files-nav-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.files-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.files-nav-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.files-nav-btn.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.files-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.files-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.files-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.files-preview {
  height: 130px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
}

.files-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.files-icon-placeholder {
  font-size: 40px;
  opacity: 0.8;
}

.files-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.files-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748b;
}

.files-size-badge {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.files-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid #f8fafc;
}

.files-action-btn {
  background: none;
  border: none;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.files-action-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.files-action-btn.delete:hover {
  color: #ef4444;
}

/* Settings Module Styles */
.settings-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

.settings-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .settings-grid-2col {
    grid-template-columns: 1fr;
  }
}

.settings-branch-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.settings-integ-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.settings-integ-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.settings-integ-icon {
  font-size: 32px;
  background: #f8fafc;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

/* vlApp Dark Sidebar */
.sidebar {
  width: 210px !important;
  background: #22252a !important;
  border-right: 1px solid #1c1e22 !important;
  color: #a7b1c2 !important;
}
.sidebar .brand {
  padding: 16px 14px !important;
  background: #1b1d22 !important;
  border-bottom: 1px solid #282c34 !important;
}
.sidebar .brand b {
  color: #ffffff !important;
  font-size: 16px !important;
}
.sidebar .brand small {
  color: #6c7787 !important;
  font-size: 10px !important;
}
.sidebar .brand-mark {
  background: #2563eb !important;
  border-radius: 8px !important;
  width: 30px !important;
  height: 30px !important;
  font-size: 14px !important;
}
.nav-group {
  display: none !important;
}
.sidebar nav {
  padding: 6px 8px !important;
}
.nav-item {
  color: #a7b1c2 !important;
  border-radius: 6px !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
  margin-bottom: 2px !important;
  transition: all 0.15s ease !important;
}
.nav-item .nav-icon {
  color: #727e91 !important;
  font-size: 15px !important;
  width: 20px !important;
}
.nav-item:hover {
  background: #2d3239 !important;
  color: #ffffff !important;
}
.nav-item:hover .nav-icon {
  color: #ffffff !important;
}
.nav-item.active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}
.nav-item.active .nav-icon {
  color: #ffffff !important;
}
.sidebar-bottom {
  background: #1b1d22 !important;
  border-top: 1px solid #282c34 !important;
  color: #6c7787 !important;
  padding: 12px 14px !important;
  font-size: 11px !important;
}

/* ========================================================
   VLAPP ORDERS MODULE EXACT VISUAL PARITY
   ======================================================== */
.vl-orders-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.vl-orders-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 16px;
  margin: -16px -24px 8px -24px;
}

.vl-orders-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vl-branch-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
}
.vl-branch-icon { font-size: 13px; }
.vl-chevron { font-size: 10px; color: #6b7280; }

.vl-orders-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-left: 6px;
}
.vl-bc-icon { font-size: 14px; }

.vl-view-toggle {
  display: inline-flex;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-left: 10px;
}

.vl-view-btn {
  background: #ffffff;
  border: none;
  padding: 5px 9px;
  cursor: pointer;
  color: #6b7280;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vl-view-btn:hover { background: #f9fafb; color: #111827; }
.vl-view-btn.active { background: #f3f4f6; color: #111827; font-weight: bold; }

.vl-orders-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.vl-orders-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vl-btn-create {
  background: #1976d2;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(25, 118, 210, 0.2);
}
.vl-btn-create:hover { background: #1565c0; }
.vl-btn-plus { font-size: 14px; font-weight: bold; }

.vl-filter-dropdown-wrap {
  position: relative;
}

.vl-btn-funnel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 9px;
  cursor: pointer;
  color: #4b5563;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vl-btn-funnel:hover { background: #f9fafb; color: #111827; }

.vl-filter-popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 12px;
  z-index: 100;
  min-width: 200px;
}
.vl-filter-popover-title {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.vl-filter-select {
  width: 100%;
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.vl-orders-filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.vl-pill-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
}
.vl-pill-btn:hover { color: #111827; background: #f3f4f6; }
.vl-pill-btn.active {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111827;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.vl-orders-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vl-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0 8px;
  width: 220px;
}
.vl-search-icon { font-size: 12px; opacity: 0.5; margin-right: 4px; }
.vl-search-box input {
  border: none;
  outline: none;
  padding: 6px 0;
  font-size: 13px;
  color: #111827;
  width: 100%;
}
.vl-search-kbd {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 1px 4px;
  background: #f9fafb;
  white-space: nowrap;
}
.vl-search-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: #9ca3af;
  margin-left: 4px;
}

.vl-btn-tool {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 9px;
  cursor: pointer;
  color: #6b7280;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vl-btn-tool:hover { background: #f9fafb; color: #111827; }

/* Table Registry Styles (vlApp exact) */
.vl-orders-table-wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow-x: auto;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.vl-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.vl-orders-table th {
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
  white-space: nowrap;
}
.vl-orders-table th.sortable {
  cursor: pointer;
  user-select: none;
}
.vl-orders-table th .sort-indicator {
  font-size: 10px;
  color: #9ca3af;
  margin-left: 2px;
}

.vl-orders-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.vl-order-row {
  cursor: pointer;
  transition: background-color .1s;
}
.vl-order-row:hover {
  background-color: #f8fafc;
}

.vl-order-row .th-cb,
.vl-order-row .td-cb {
  width: 36px;
  text-align: center;
  padding: 10px 8px;
}

.vl-order-num-text {
  font-weight: 700;
  color: #111827;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vl-device-text {
  color: #374151;
  font-size: 13px;
}

.vl-sn-text {
  font-size: 12px;
}
.vl-sn-text.has-sn { color: #1f2937; }
.vl-sn-text.no-sn { color: #9ca3af; }

.vl-status-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.vl-cust-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vl-cust-name {
  font-weight: 600;
  color: #111827;
  font-size: 13px;
}
.vl-cust-phone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vl-phone-link {
  font-size: 12px;
  color: #4b5563;
  text-decoration: none;
}
.vl-phone-link:hover { text-decoration: underline; color: #1d4ed8; }
.vl-phone-icon { font-size: 11px; opacity: 0.7; }

.vl-assignee-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vl-assignee-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vl-assignee-name {
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.vl-complaint-text {
  color: #4b5563;
  font-size: 13px;
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom Pagination Bar */
.vl-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  font-size: 13px;
}
.vl-pag-total {
  color: #6b7280;
  font-size: 13px;
}
.vl-pag-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.vl-pag-pages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vl-pag-btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  min-width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.vl-pag-btn:hover { background: #f9fafb; border-color: #d1d5db; }
.vl-pag-btn.active {
  border-color: #1976d2;
  color: #1976d2;
  font-weight: 700;
  background: #eff6ff;
}
.vl-pag-dots {
  color: #9ca3af;
  padding: 0 2px;
}
.vl-page-size-select {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
}

/* Kanban Board Styles */
.vl-kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
}
.vl-kanban-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 180px);
}
.vl-kanban-col-header {
  padding: 10px 12px;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.vl-kanban-col-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vl-kanban-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.vl-kanban-col-count {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #e2e8f0;
  padding: 1px 6px;
  border-radius: 10px;
}
.vl-kanban-col-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
}
.vl-kanban-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform .1s, box-shadow .1s;
}
.vl-kanban-card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.vl-kc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.vl-kc-num {
  font-weight: 700;
  font-size: 12px;
  color: #111827;
}
.vl-kc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.vl-kc-device {
  font-size: 12px;
  color: #374151;
  margin-bottom: 4px;
}
.vl-kc-customer {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 6px;
}
.vl-kc-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid #f3f4f6;
  padding-top: 6px;
}
.vl-kc-assignee {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vl-kc-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5e7eb;
  font-size: 9px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vl-kc-name {
  font-size: 11px;
  color: #4b5563;
}
.vl-kanban-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  padding: 20px 0;
}

/* Orders Topbar & Header Polishing to match vlApp */
.topbar.hidden-for-orders {
  display: none !important;
}

.footer.hidden-for-orders {
  display: none !important;
}

.vl-orders-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.vl-orders-top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 10px 24px !important;
  margin: -24px -24px 8px -24px !important;
  height: 52px !important;
  box-sizing: border-box !important;
}

.vl-orders-top-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.vl-orders-top-right {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  font-size: 13px !important;
  color: #4b5563 !important;
}

.vl-top-action-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  color: #4b5563 !important;
  font-size: 13px !important;
}
.vl-top-action-item:hover { color: #111827 !important; }

.vl-top-user {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 500 !important;
  color: #111827 !important;
}

.vl-user-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #e0e7ff !important;
  color: #3730a3 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.vl-power-btn {
  background: none !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 4px !important;
  padding: 4px 7px !important;
  cursor: pointer !important;
  color: #6b7280 !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.vl-power-btn:hover { background: #fee2e2 !important; color: #dc2626 !important; border-color: #fca5a5 !important; }

/* Documents Parity Styles */
.doc-tab.disabled, .doc-tab:disabled {
  color: #cbd5e1 !important;
  cursor: default !important;
  pointer-events: none !important;
  border-bottom: 2px solid transparent !important;
}

.doc-badge-transfer {
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 500;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
}

.vl-status-badge, .vl-status-pill {
  display: inline-block !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  line-height: 1.3 !important;
  text-align: center !important;
}
.vl-eng-cell, .vl-assignee-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.vl-avatar-circle, .vl-assignee-avatar {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: #e9ecef !important;
  color: #495057 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.vl-eng-name, .vl-assignee-name {
  font-size: 13px !important;
  color: #374151 !important;
  white-space: nowrap !important;
}

.st-diagnostics { background-color: #f39c19 !important; color: #fff !important; }
.st-client-decision { background-color: #5dade2 !important; color: #fff !important; }
.st-parts-wait { background-color: #9b59b6 !important; color: #fff !important; }
.st-ready { background-color: #27af60 !important; color: #fff !important; }
.st-delivered { background-color: #27af60 !important; color: #fff !important; }
.st-in-progress { background-color: #3498db !important; color: #fff !important; }
.st-new { background-color: #3498db !important; color: #fff !important; }
.st-agreement { background-color: #f39c19 !important; color: #fff !important; }
.st-no-repair { background-color: #95a5a6 !important; color: #fff !important; }
.st-rejected { background-color: #e74c3c !important; color: #fff !important; }

/* === STAGE 41: EXACT VLAPP SIDEBAR & TOPBAR PARITY === */
.sidebar {
  width: 210px !important;
  background: #212121 !important;
  border-right: 1px solid #181818 !important;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  height: 100vh;
  top: 0;
  z-index: 100;
}
.brand {
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 16px !important;
  background: #212121 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-sizing: border-box !important;
}
.brand-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.2px !important;
}
.sidebar nav {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 6px 8px !important;
  flex: 1 !important;
}
.sidebar nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.nav-item {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  gap: 12px !important;
  height: 40px !important;
  padding: 0 14px !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 4px !important;
  text-align: left !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 14px !important;
  margin-bottom: 4px !important;
  transition: background 0.2s, color 0.2s !important;
  box-sizing: border-box !important;
}
.nav-item .nav-icon {
  width: 18px !important;
  height: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(255, 255, 255, 0.65) !important;
  flex-shrink: 0 !important;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
.nav-item:hover .nav-icon {
  color: #ffffff !important;
}
.nav-item.active {
  background: #0852b3 !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}
.nav-item.active .nav-icon {
  color: #ffffff !important;
}
.sidebar-collapse-trigger {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: color 0.2s;
}
.sidebar-collapse-trigger:hover {
  color: #ffffff;
}
.main-shell {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #f0f2f5 !important;
}
.topbar {
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #e8e8e8 !important;
  padding: 0 20px !important;
  background: #ffffff !important;
  backdrop-filter: none !important;
  box-sizing: border-box !important;
}
.topbar-breadcrumb {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  color: #8c8c8c !important;
}
.bc-root {
  color: #8c8c8c !important;
  cursor: default !important;
}
.bc-sep {
  color: #d9d9d9 !important;
}
.bc-current {
  color: #262626 !important;
  font-weight: 500 !important;
}
.topbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}
.location-pill {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  background: #f5f5f5 !important;
  border: 1px solid #e8e8e8 !important;
  font-size: 13px !important;
  color: #595959 !important;
  cursor: pointer !important;
}
.location-pill:hover {
  border-color: #0852b3 !important;
  color: #0852b3 !important;
}
.topbar-icon-btn {
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 4px !important;
  color: #595959 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.topbar-icon-btn:hover {
  background: #f0f0f0 !important;
  color: #262626 !important;
}
.user-profile-widget {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  padding: 4px 6px !important;
  border-radius: 4px !important;
}
.user-profile-widget:hover {
  background: #f5f5f5 !important;
}
.user-avatar-circle {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #1890ff !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.user-display-name {
  font-size: 14px !important;
  color: #262626 !important;
  font-weight: 500 !important;
}
.content {
  padding: 16px 20px 32px !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.footer {
  display: none !important;
}
