/* The CRM report uses the Bright Link workspace palette. */
.crm-orders{--crm-line:rgba(151,190,255,.16);--crm-control:rgba(5,15,34,.48);color:var(--text,#eef5ff);margin-top:18px;min-width:0}.crm-orders button,.crm-orders input,.crm-orders select{font:inherit}.crm-orders input,.crm-orders select{color-scheme:dark}.crm-orders button:focus-visible,.crm-orders summary:focus-visible,.crm-orders input:focus-visible,.crm-orders select:focus-visible{outline:2px solid #69e8f3;outline-offset:3px}.crm-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:17px}.crm-section-heading h2{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:600;letter-spacing:-.3px}.crm-section-heading h2 svg{width:18px;height:18px;color:#66dbe9}.crm-filters{padding:20px 22px;position:relative;z-index:5;overflow:visible}.crm-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.crm-filter-grid>div{display:flex;flex-direction:column;gap:16px;min-width:0}.crm-filter-field{display:flex;flex-direction:column;gap:8px;min-width:0}.crm-filter-field>span{font-size:12px;font-weight:600;color:#d4e0f3}.crm-filter-field select,.crm-date-picker>summary{height:40px;width:100%;border:1px solid rgba(151,190,255,.23);border-radius:7px;background:var(--crm-control);color:#dbe8fb;padding:9px 11px;font-size:12px;box-shadow:inset 0 1px 2px rgba(0,0,0,.08)}.crm-filter-field select{overflow:hidden;text-overflow:ellipsis}.crm-filter-field option{background:#14233c;color:#eef5ff}.crm-date-picker{position:relative}.crm-date-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;font-size:11px}.crm-date-picker>summary::-webkit-details-marker,.crm-column-picker>summary::-webkit-details-marker,.crm-row-action>summary::-webkit-details-marker{display:none}.crm-date-picker>summary>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-date-picker[open]>summary{border-color:#4ed3e1}.crm-date-panel{position:absolute;top:calc(100% + 7px);left:0;width:510px;display:grid;grid-template-columns:220px minmax(0,1fr);background:#12213a;border:1px solid rgba(134,179,242,.3);border-radius:11px;box-shadow:0 20px 55px rgba(0,0,0,.48);z-index:25;overflow:hidden}.crm-date-presets{padding:8px;border-right:1px solid var(--crm-line);display:flex;flex-direction:column;gap:1px}.crm-date-presets button{border:0;border-radius:5px;background:transparent;color:#c1d1e9;text-align:left;padding:8px 10px;font-size:11px;line-height:1.25}.crm-date-presets button:hover{background:rgba(101,157,241,.13);color:white}.crm-date-presets button.active{color:#a3f7ff;background:rgba(16,246,255,.1)}.crm-date-custom{padding:19px 18px;display:flex;flex-direction:column;gap:11px}.crm-date-custom h3{font-size:14px}.crm-date-hint{color:#90a7c8;font-size:11px;line-height:1.6}.crm-date-custom label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#baccE4}.crm-date-custom input{width:100%;min-width:0;height:37px;padding:7px 9px;border:1px solid rgba(151,190,255,.25);border-radius:6px;background:#0b1830;color:#e6f0ff;font-size:11px}.crm-date-error{color:#ffacb8;font-size:11px;line-height:1.5;min-height:17px}.crm-date-buttons{display:flex;justify-content:flex-end;gap:7px;margin-top:auto}.crm-date-buttons .btn{font-size:11px;padding:8px 11px}.crm-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:19px 0 22px}.crm-summary-card{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:20px 18px;min-height:114px;border-radius:13px}.crm-summary-card>div{min-width:0}.crm-summary-card>div>span{display:block;font-size:12px;color:#bbcee5;font-weight:550;margin-bottom:9px}.crm-summary-card strong{display:block;font-size:22px;font-weight:650;letter-spacing:-.65px;white-space:nowrap;line-height:1.25}.crm-summary-card small{display:block;color:#8da6c7;font-size:10px;margin-top:9px;line-height:1.5}.crm-summary-icon{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:10px}.crm-summary-icon svg{width:24px;height:24px}.crm-summary-card.cyan strong,.crm-summary-card.cyan .crm-summary-icon{color:#72ecf5}.crm-summary-card.cyan .crm-summary-icon{background:rgba(16,246,255,.1)}.crm-summary-card.green strong,.crm-summary-card.green .crm-summary-icon{color:#79e9c0}.crm-summary-card.green .crm-summary-icon{background:rgba(86,213,166,.12)}.crm-summary-card.amber strong,.crm-summary-card.amber .crm-summary-icon{color:#f4cc89}.crm-summary-card.amber .crm-summary-icon{background:rgba(246,188,97,.11)}.crm-summary-card.neutral strong{color:#c7d6ea;font-size:20px}.crm-summary-card.neutral .crm-summary-icon{color:#9eb2cf;background:rgba(151,174,208,.1)}.crm-list{padding:20px 22px;border-radius:15px;min-width:0}.crm-orders-heading{margin-bottom:22px}.crm-orders-heading .btn.primary{padding:9px 18px}.crm-table-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px;font-size:11px}.crm-entry-size{display:flex;align-items:center;gap:7px;color:#b7c9e3;white-space:nowrap}.crm-entry-size select{width:61px;height:32px;border:1px solid var(--crm-line);background:var(--crm-control);color:#e2eeff;border-radius:5px;padding:5px 8px;font-size:11px}.crm-export-tools{display:flex;align-items:center;gap:0}.crm-export-tools>.btn,.crm-column-picker>summary{border-radius:0;padding:8px 11px;font-size:10px;min-height:32px;border-color:rgba(151,190,255,.21);margin-left:-1px}.crm-export-tools>.btn:first-child{border-radius:6px 0 0 6px;margin-left:0}.crm-column-picker>summary{border-radius:0 6px 6px 0;list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px}.crm-column-picker{position:relative}.crm-column-panel{position:absolute;right:0;top:calc(100% + 7px);z-index:12;min-width:200px;background:#14233d;border:1px solid rgba(151,190,255,.28);padding:9px;border-radius:9px;box-shadow:0 16px 36px rgba(0,0,0,.4)}.crm-column-panel label{display:flex;align-items:center;gap:9px;white-space:nowrap;padding:7px;font-size:11px;color:#cadbf0;cursor:pointer;border-radius:5px}.crm-column-panel label:hover{background:rgba(123,166,238,.1)}.crm-orders input[type=checkbox]{accent-color:#37cddf;width:14px;height:14px;cursor:pointer;margin:0;flex-shrink:0}.crm-table-search{display:flex;align-items:center;gap:7px;color:#bfd0e9;margin-left:auto}.crm-table-search input{height:33px;width:170px;background:var(--crm-control);border:1px solid rgba(151,190,255,.25);border-radius:5px;color:#eaf3ff;padding:6px 9px;font-size:11px}.crm-table-scroll{overflow:auto;scrollbar-width:thin;scrollbar-color:#3e587e transparent;border-top:1px solid var(--crm-line);border-bottom:1px solid var(--crm-line);min-width:0}.crm-order-table{width:100%;border-collapse:collapse;font-size:11px;margin:0;white-space:nowrap}.crm-order-table th,.crm-order-table td{padding:13px 11px;border-bottom:1px solid rgba(151,190,255,.12);vertical-align:middle;text-align:left;font-size:11px}.crm-order-table thead{background:rgba(28,48,79,.42)}.crm-order-table thead th{font-weight:600;font-size:10px;color:#b9cbe3;padding-top:12px;padding-bottom:12px;letter-spacing:0;text-transform:none}.crm-order-table th>button{display:inline-flex;align-items:center;gap:9px;border:0;background:none;color:inherit;padding:0;font-size:inherit;font-weight:inherit;white-space:nowrap;cursor:pointer}.crm-order-table th>button:hover{color:#ecf8ff}.crm-order-table .crm-sort{font-size:12px;color:#607b9d}.crm-order-table .crm-sort.active{color:#69dce9}.crm-order-table tbody tr:hover{background:rgba(78,132,222,.045)}.crm-order-table tbody tr.crm-selected{background:rgba(16,246,255,.06)}.crm-order-table td small{display:block;color:#819bbb;font-size:9px;margin-top:4px;line-height:1.25}.crm-order-table .crm-numeric{text-align:right;font-variant-numeric:tabular-nums}.crm-order-table th.crm-numeric>button{justify-content:flex-end}.crm-order-table .crm-select-cell{padding-left:7px;padding-right:7px;width:28px;text-align:center}.crm-order-table .crm-cell-customer{max-width:210px;white-space:normal;min-width:120px;line-height:1.5;font-weight:550}.crm-order-table .crm-cell-addedBy{max-width:150px;white-space:normal;min-width:90px;line-height:1.5}.crm-order-table .crm-cell-contact{color:#a9c1e0}.crm-order-table .crm-cell-due{color:#f4cf96}.crm-order-table .crm-cell-paid{color:#82e7c2}.crm-order-link{background:none;border:0;color:#83dfef;font-size:11px;font-weight:600;padding:0;cursor:pointer}.crm-order-link:hover{text-decoration:underline}.crm-status{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px;white-space:nowrap;padding:5px 8px;font-size:9px;font-weight:600;min-width:65px;line-height:1.25}.crm-status.paid{color:#8af0c8;background:rgba(67,199,144,.13);border-color:rgba(93,213,162,.2)}.crm-status.partial,.crm-status.open{color:#f5d69e;background:rgba(220,170,73,.11);border-color:rgba(243,199,129,.2)}.crm-status.unpaid{color:#ffb2bb;background:rgba(240,101,126,.11);border-color:rgba(255,139,160,.18)}.crm-status.shipped{color:#99dfef;background:rgba(74,175,213,.12);border-color:rgba(112,208,233,.2)}.crm-row-action{min-width:83px}.crm-row-action>summary{list-style:none;cursor:pointer;display:inline-flex;gap:7px;padding:6px 8px}.crm-row-menu{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding-top:7px}.crm-row-menu>.btn{font-size:9px;padding:5px 8px;justify-content:flex-start}.crm-order-table tfoot{background:rgba(30,52,84,.48);font-weight:650;color:#e2efff}.crm-order-table tfoot td,.crm-order-table tfoot th{padding-top:15px;padding-bottom:15px;border-bottom:0}.crm-order-table .crm-total-label{font-size:9px;padding:15px 7px;color:#9bb3d3}.crm-order-table .crm-no-orders{text-align:center;padding:42px 16px;color:#91a8c8;white-space:normal;font-size:12px}.crm-table-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:19px}.crm-table-bottom>p{font-size:11px;color:#a7bfdc;line-height:1.4}.crm-selected-count{display:inline-block;margin-left:12px;color:#7be1ee}.crm-pagination{display:flex;align-items:center;gap:0}.crm-pagination button{background:transparent;color:#acc3e0;border:1px solid rgba(151,190,255,.2);padding:8px 11px;font-size:10px;min-height:32px;margin-left:-1px}.crm-pagination button:first-child{border-radius:6px 0 0 6px;margin-left:0}.crm-pagination button:last-child{border-radius:0 6px 6px 0}.crm-pagination button.active{background:#1b83ba;color:#fff;border-color:#249ecb;position:relative}.crm-pagination button:hover:not(:disabled):not(.active){background:rgba(123,168,235,.12);color:#f0f7ff}.crm-page-gap{padding:7px;color:#7d96b8;font-size:11px}
@media(min-width:1500px){.crm-summary-card strong{font-size:25px}.crm-summary-card.neutral strong{font-size:22px}.crm-summary-card{padding:22px}}
@media(max-width:1200px){.crm-summary-card strong{font-size:18px}.crm-summary-card{padding:18px 14px}.crm-summary-icon{width:32px;height:32px}.crm-summary-icon svg{width:20px;height:20px}.crm-summary-card.neutral strong{font-size:18px}.crm-filter-grid{gap:12px}.crm-export-tools>.btn,.crm-column-picker>summary{padding:8px 9px}}
@media(max-width:900px){.crm-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.crm-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.crm-summary-card:last-child{grid-column:1/-1}.crm-summary-card strong{font-size:22px}.crm-filters,.crm-list{padding:18px}.crm-table-tools{gap:12px}.crm-table-search{margin-left:0}.crm-table-search input{width:180px}.crm-table-bottom{flex-wrap:wrap}.crm-date-panel{width:490px}.crm-pagination button{padding:8px 10px}}
@media(max-width:580px){.crm-filter-grid{grid-template-columns:1fr}.crm-filter-grid>div{gap:14px}.crm-summary-grid{grid-template-columns:1fr;gap:9px;margin:15px 0}.crm-summary-card{min-height:110px;padding:16px 12px;align-items:flex-start}.crm-summary-card strong{font-size:16px;letter-spacing:-.35px}.crm-summary-card.neutral strong{font-size:16px}.crm-summary-icon{display:none}.crm-summary-card small{font-size:9px}.crm-summary-card>div>span{font-size:11px}.crm-filters,.crm-list{padding:16px 13px;border-radius:12px}.crm-section-heading h2{font-size:15px}.crm-filter-field select,.crm-date-picker>summary{font-size:12px}.crm-date-panel{width:min(510px,calc(100vw - 60px));grid-template-columns:1fr;max-height:70vh;overflow-y:auto}.crm-date-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-right:0;border-bottom:1px solid var(--crm-line)}.crm-date-presets button{font-size:10px;padding:7px}.crm-date-custom{padding:14px}.crm-date-custom label{display:grid;grid-template-columns:40px 1fr;align-items:center}.crm-date-buttons{margin-top:0}.crm-date-error{min-height:0}.crm-date-hint{font-size:10px}.crm-entry-size{width:100%}.crm-export-tools{max-width:100%;flex-wrap:wrap;row-gap:7px}.crm-export-tools>.btn,.crm-column-picker>summary{font-size:9px;padding:7px 8px}.crm-table-search{width:100%;justify-content:space-between}.crm-table-search input{width:calc(100% - 57px)}.crm-column-panel{right:0;min-width:185px}.crm-pagination{max-width:100%;flex-wrap:wrap;gap:3px}.crm-pagination button{margin:0;border-radius:5px!important;padding:7px 9px;font-size:10px}.crm-table-bottom{gap:12px}.crm-table-bottom>p{font-size:10px}.crm-order-table th,.crm-order-table td{padding:12px 9px}}
.crm-orders .btn,.crm-orders .crm-filter-field>span,.crm-orders .crm-filter-field select,.crm-orders .crm-date-picker>summary,.crm-orders .crm-date-presets button,.crm-orders .crm-date-custom label,.crm-orders .crm-date-custom input,.crm-orders .crm-column-picker>summary,.crm-orders .crm-column-panel label,.crm-orders .crm-entry-size,.crm-orders .crm-entry-size select,.crm-orders .crm-table-search,.crm-orders .crm-table-search input,.crm-orders .crm-order-table th,.crm-orders .crm-order-table td,.crm-orders .crm-order-link,.crm-orders .crm-status,.crm-orders .crm-pagination button,.crm-orders .crm-table-bottom>p,.crm-orders .crm-summary-card>div>span{font-size:14px;line-height:1.35}
.crm-orders .crm-order-table td small,.crm-orders .crm-summary-card small,.crm-orders .crm-date-hint,.crm-orders .crm-date-error{font-size:12px;line-height:1.4}.crm-orders .crm-summary-card strong{font-size:22px}.crm-orders .crm-summary-card.neutral strong{font-size:20px}.crm-orders .crm-entry-size select,.crm-orders .crm-table-search input{height:36px}.crm-orders .crm-table-search input{width:190px}.crm-orders .crm-export-tools>.btn,.crm-orders .crm-column-picker>summary{min-height:36px}.crm-orders .crm-date-panel{max-height:75vh;overflow-y:auto}.crm-orders .crm-summary-card{min-height:125px}.crm-orders .crm-order-table .crm-total-label{font-size:12px}.crm-orders .crm-order-table .crm-select-cell{padding-left:7px;padding-right:7px}.crm-orders .crm-pagination button{min-height:36px}.crm-orders .crm-row-menu>.btn{font-size:14px}.crm-orders .crm-order-table .crm-no-orders{font-size:14px}
@media(max-width:1200px){.crm-orders .crm-summary-icon{display:none}.crm-orders .crm-summary-card strong{font-size:20px}}
@media(max-width:580px){.crm-orders .crm-summary-card strong{font-size:20px;white-space:normal;overflow-wrap:anywhere}.crm-orders .crm-summary-card.neutral strong{font-size:20px}.crm-orders .crm-table-search input{width:calc(100% - 68px)}.crm-orders .crm-column-panel{min-width:230px}.crm-orders .crm-date-panel{max-height:70vh}.crm-orders .crm-date-presets button{font-size:14px}.crm-orders .crm-export-tools>.btn,.crm-orders .crm-column-picker>summary{padding:8px}.crm-orders .crm-summary-card{min-height:130px}.crm-orders .crm-summary-card small{font-size:12px}}

/* Keep order headings visible within the scrolling order list. */
.crm-orders .crm-table-scroll{max-height:calc(100dvh - 160px);min-height:0;position:relative;isolation:isolate}
.crm-orders .crm-order-table thead th{position:sticky;top:0;z-index:3;background:#1c304f;box-shadow:0 1px 0 rgba(151,190,255,.24)}
@media print{.crm-orders .crm-table-scroll{max-height:none;overflow:visible}.crm-orders .crm-order-table thead th{position:static;box-shadow:none}}
