/* Demand summary: controls and tables scoped to this page. */
#summaryPage { --summary-line:#e4e8e6; --summary-muted:#7c8783; --summary-green:#2e7d59; }
#summaryPage .page-header {align-items:center;gap:20px;margin-bottom:24px;}
#summaryPage .page-header h1 {font-size:28px;line-height:1.2;letter-spacing:-.035em;}
#summaryPage .page-header p {font-size:13px;line-height:1.5;margin-top:7px;}
#summaryPage svg {width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
#summaryPage button {font-family:inherit;transition:background .15s,border-color .15s,box-shadow .15s;}
#summaryPage button:disabled {opacity:.55;cursor:wait;}
#summaryPage button:focus-visible,#summaryPage input:focus-visible,#summaryPage select:focus-visible,#summaryPage summary:focus-visible {outline:3px solid #b5d4c2;outline-offset:3px;}
#summaryPage .users-secondary-button {display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;min-height:42px;border:1px solid #dce2de;border-radius:10px;padding:0 15px;color:#4d6056;background:white;font-size:12px;font-weight:600;white-space:nowrap;}
#summaryPage .users-secondary-button:hover:not(:disabled) {background:#f5f8f6;border-color:#b8c7bf;}
#summaryPage .summary-header-actions {display:flex;align-items:center;gap:9px;flex-wrap:wrap;}
#summaryPage .summary-auto {display:inline-flex;align-items:center;gap:7px;margin-right:8px;color:var(--summary-green);font-size:11px;font-weight:500;white-space:nowrap;}
#summaryPage .summary-auto i {height:6px;width:6px;background:#319268;border-radius:50%;box-shadow:0 0 0 3px #e5f1e9;}
#summaryPage .summary-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-bottom:22px;background:white;border:1px solid var(--summary-line);border-radius:16px;padding:22px 0;}
#summaryPage .summary-metrics article {min-width:0;padding:0 26px;border-right:1px solid var(--summary-line);}
#summaryPage .summary-metrics article:last-child {border-right:0;}
#summaryPage .summary-metrics span {display:block;color:#748078;font-size:12px;line-height:1.5;}
#summaryPage .summary-metrics strong {display:block;margin-top:7px;font-size:30px;line-height:1.15;letter-spacing:-.04em;font-weight:650;font-variant-numeric:tabular-nums;}
#summaryPage .summary-metrics article[data-attention=false] strong {color:var(--summary-green);}
#summaryPage .summary-metrics article[data-attention=true] strong {color:#a66a14;}
#summaryPage .summary-panel {border:1px solid var(--summary-line);background:white;border-radius:16px;overflow:hidden;min-width:0;}
#summaryPage .summary-filters {display:grid;gap:16px;padding:20px 24px;border-bottom:1px solid var(--summary-line);}
#summaryPage .summary-filter-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;}
#summaryPage .summary-filter-title {font-size:13px;font-weight:650;letter-spacing:-.01em;color:#2d3931;}
#summaryPage .summary-mode-switch {display:inline-flex;gap:3px;padding:3px;background:#f1f3f1;border:1px solid #e9ece9;border-radius:10px;}
#summaryPage .summary-mode-switch button {min-height:32px;padding:6px 16px;font-size:12px;font-weight:600;border:0;border-radius:7px;background:transparent;color:#7a847d;white-space:nowrap;}
#summaryPage .summary-mode-switch button[aria-pressed=true] {background:white;color:#243c2e;box-shadow:0 1px 4px #21352814;}
#summaryPage .summary-filter-fields {display:grid;grid-template-columns:minmax(170px,240px) minmax(220px,1fr) auto;gap:16px;align-items:end;}
#summaryPage .summary-filters[data-mode=period] .summary-filter-fields {grid-template-columns:minmax(150px,210px) minmax(150px,210px) minmax(180px,1fr) auto;}
#summaryPage .summary-filters label {display:flex;flex-direction:column;gap:8px;color:#6d7972;font-size:12px;font-weight:500;min-width:0;}
#summaryPage .summary-filters input:not([type=checkbox]),#summaryPage .summary-filters select {box-sizing:border-box;display:block;width:100%;height:44px;min-height:44px;min-width:0;max-width:100%;padding:0 13px;border:1px solid #dce3de;border-radius:9px;background-color:#fff;font:inherit;font-size:13px;font-weight:500;color:#26352c;line-height:normal;box-shadow:0 1px 2px #21352803;-webkit-appearance:none;appearance:none;}
#summaryPage .summary-filters select {padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c7b70' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;cursor:pointer;}
#summaryPage .summary-filters input[type=date] {padding:10px 38px 10px 13px;line-height:22px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23778279' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M4 11h16'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;font-variant-numeric:tabular-nums;}
/* Safari lays out the native date value at the top when vertical padding is zero. */
#summaryPage input[type=date]::-webkit-date-and-time-value {display:flex;align-items:center;height:22px;line-height:22px;text-align:left;margin:0;padding:0;}
#summaryPage input[type=date]::-webkit-datetime-edit {display:inline-flex;align-items:center;min-height:22px;line-height:22px;padding:0;}
#summaryPage input[type=date]::-webkit-datetime-edit-text,#summaryPage input[type=date]::-webkit-datetime-edit-day-field,#summaryPage input[type=date]::-webkit-datetime-edit-month-field,#summaryPage input[type=date]::-webkit-datetime-edit-year-field {padding:0;}
#summaryPage input[type=date]::-webkit-calendar-picker-indicator {opacity:0;cursor:pointer;width:16px;padding:0;margin-right:-25px;}
#summaryPage input::placeholder {color:#9aa49d;font-weight:400;opacity:1;}
#summaryPage .summary-filters [hidden] {display:none!important;}
#summaryPage #summaryApply {height:44px;min-height:44px;padding:0 18px;background:#263b2f;border-color:#263b2f;color:white;}
#summaryPage #summaryApply:hover:not(:disabled) {background:#34523f;border-color:#34523f;}
#summaryPage .summary-filter-secondary {display:flex;align-items:center;justify-content:space-between;gap:24px;}
#summaryPage .summary-search {position:relative;flex:1;}
#summaryPage .summary-search>svg {position:absolute;left:13px;top:13px;color:#94a097;pointer-events:none;}
#summaryPage .summary-search input {padding-left:40px!important;background-color:#fafbf9!important;font-weight:400!important;}
#summaryPage .summary-filters .summary-completed {flex-direction:row;align-items:center;gap:9px;flex-shrink:0;min-height:44px;font-size:12px;color:#66756a;cursor:pointer;}
#summaryPage .summary-completed input {margin:0;width:17px;height:17px;accent-color:#2e7d59;cursor:pointer;}
#summaryPage .summary-sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
#summaryPage .summary-caption {padding:20px 24px 16px;display:flex;align-items:baseline;justify-content:space-between;gap:6px 16px;flex-wrap:wrap;}
#summaryPage .summary-caption strong {font-size:16px;line-height:1.4;letter-spacing:-.02em;}
#summaryPage .summary-caption>span {font-size:11px;color:#8a958d;white-space:nowrap;}
#summaryPage .summary-caption p {flex-basis:100%;font-size:11px;line-height:1.6;color:#8b958f;margin:0;}
#summaryPage .summary-message {padding:0 24px;margin:0 0 16px;color:#718077;font-size:12px;line-height:1.6;}
#summaryPage .summary-message:empty {display:none;}
#summaryPage .summary-message[data-error=true] {color:#b12e2e;}
#summaryPage .summary-warning {margin:0 24px 20px;background:#fff8ed;border:1px solid #edddbf;border-radius:10px;padding:12px 16px;color:#805622;font-size:12px;line-height:1.6;}
#summaryPage .summary-warning summary {cursor:pointer;}
#summaryPage .summary-warning ul {padding-left:20px;}
#summaryPage .summary-table-wrap {width:100%;overflow-x:auto;min-width:0;}
#summaryPage .summary-table {width:100%;border-collapse:collapse;table-layout:fixed;}
#summaryPage .summary-table th {padding:13px 24px;background:#f7f8f6;border-top:1px solid var(--summary-line);border-bottom:1px solid var(--summary-line);font-size:11px;font-weight:600;color:#7c887f;text-align:right;white-space:nowrap;height:auto;}
#summaryPage .summary-table th:first-child {text-align:left;width:45%;}
#summaryPage .summary-table th:nth-child(2) {text-align:left;width:6%;}
#summaryPage .summary-table th:last-child {width:19%;}
#summaryPage .summary-table td {height:auto;padding:12px 24px 2px;font-size:13px;line-height:1.5;vertical-align:top;text-align:right;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
#summaryPage .summary-table td:first-child {text-align:left;}
#summaryPage .summary-table .summary-product td {border-bottom:0;}
#summaryPage .summary-product td:first-child strong {font-weight:600;letter-spacing:-.015em;}
#summaryPage .summary-product td:nth-child(2) {text-align:left;color:#8b958f;font-size:12px;}
#summaryPage .summary-product small {display:block;font-size:10px;color:#a1aaa4;margin-top:4px;letter-spacing:.01em;}
#summaryPage .summary-row-issue {display:block;color:#b47919;font-size:11px;margin-top:5px;}
#summaryPage .summary-remaining,#summaryPage .summary-ready {display:inline-block;min-width:34px;padding:0 8px;line-height:20px;border-radius:6px;font-size:13px;font-weight:650;}
#summaryPage .summary-remaining {color:#986519;background:#fcf4e8;}
#summaryPage .summary-ready {color:#36845a;background:#edf6ef;}
#summaryPage .summary-table tbody tr {cursor:default;}
#summaryPage .summary-table .summary-detail>td {padding:0 24px 9px;text-align:left;border-bottom:1px solid #edf0ed;}
#summaryPage .summary-detail:last-child>td {border-bottom:0;}
#summaryPage .summary-breakdown>summary {display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none;color:#7c8980;font-size:11px;font-weight:500;width:fit-content;border-radius:5px;padding:3px 0;}
#summaryPage .summary-breakdown>summary::-webkit-details-marker {display:none;}
#summaryPage .summary-breakdown>summary::before {content:'';width:5px;height:5px;border-right:1.5px solid #9aa69d;border-bottom:1.5px solid #9aa69d;transform:rotate(-45deg);margin:0 3px 0 1px;transition:transform .15s;}
#summaryPage .summary-breakdown[open]>summary::before {transform:rotate(45deg) translate(-1px,-1px);}
#summaryPage .summary-breakdown>summary:hover {color:#2e7d59;}
#summaryPage .summary-restaurant-count {font-size:10px;line-height:16px;min-width:18px;text-align:center;background:#f0f3ef;border-radius:4px;color:#78857b;}
#summaryPage .summary-breakdown-content {background:#f8faf7;border:1px solid #e8ede7;border-radius:10px;padding:4px 14px 14px;margin-top:10px;}
#summaryPage .summary-source-wrap {overflow-x:auto;}
#summaryPage .summary-source-wrap table {border-collapse:collapse;width:100%;min-width:550px;table-layout:auto;}
#summaryPage .summary-source-wrap th,#summaryPage .summary-source-wrap td {padding:10px;font-size:11px;line-height:1.5;border:0;border-bottom:1px solid #e7ece6;background:none;}
#summaryPage .summary-source-wrap th {white-space:nowrap;}
#summaryPage .summary-source-wrap th:first-child {width:auto;}
#summaryPage .summary-source-orders {display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;padding:0;list-style:none;margin:14px 0 0;}
#summaryPage .summary-source-orders li {padding:12px;background:white;border:1px solid #e5eae3;border-radius:8px;font-size:11px;line-height:1.6;min-width:0;}
#summaryPage .summary-source-orders button {border:0;padding:0;background:none;font:inherit;font-weight:600;color:#406e52;cursor:pointer;text-align:left;overflow-wrap:anywhere;}
#summaryPage .summary-source-orders span,#summaryPage .summary-source-orders strong {display:block;margin-top:4px;overflow-wrap:anywhere;color:#829087;}
#summaryPage .summary-source-orders strong {color:#ab7728;}
#summaryPage .summary-empty {padding:54px 24px 60px;color:#8b988f;font-size:13px;text-align:center;}
@media(max-width:1200px) {
 #summaryPage .summary-filters[data-mode=period] .summary-filter-fields {grid-template-columns:repeat(2,minmax(0,1fr));}
 #summaryPage .summary-filters[data-mode=period] .summary-restaurant-field {grid-column:1;}
 #summaryPage .summary-filters[data-mode=period] #summaryApply {width:100%;}
 #summaryPage .summary-auto {flex-basis:100%;justify-content:flex-end;margin:0 0 3px;}
 #summaryPage .summary-header-actions {justify-content:flex-end;}
 #summaryPage .summary-table th,#summaryPage .summary-table td {padding-left:18px;padding-right:18px;}
 #summaryPage .summary-table th:first-child {width:40%;}
 #summaryPage .summary-table th:last-child {width:21%;}
}
@media(max-width:800px) {
 #summaryPage .page-header {align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:20px;}
 #summaryPage .summary-header-actions {width:100%;justify-content:flex-start;}
 #summaryPage .summary-auto {flex-basis:auto;justify-content:flex-start;margin-right:auto;}
 #summaryPage .summary-metrics {padding:0;margin-bottom:16px;grid-template-columns:repeat(2,minmax(0,1fr));}
 #summaryPage .summary-metrics article {padding:18px 20px;}
 #summaryPage .summary-metrics article:nth-child(2) {border-right:0;}
 #summaryPage .summary-metrics article:nth-child(-n+2) {border-bottom:1px solid var(--summary-line);}
 #summaryPage .summary-metrics strong {font-size:27px;}
 #summaryPage .summary-filters {padding:20px;}
 #summaryPage .summary-filter-fields {grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:14px;}
 #summaryPage .summary-filter-fields #summaryApply {grid-column:1/-1;}
 #summaryPage .summary-filters[data-mode=period] #summaryApply {grid-column:auto;}
 #summaryPage .summary-filter-secondary {flex-direction:column;align-items:stretch;gap:10px;}
 #summaryPage .summary-search {max-width:none;}
 #summaryPage .summary-filters .summary-completed {min-height:32px;font-size:12px;}
 #summaryPage .summary-table th {font-size:10px;}
}
@media(max-width:600px) {
 #summaryPage .page-header h1 {font-size:26px!important;}
 #summaryPage .page-header p {font-size:12px!important;}
 #summaryPage .summary-auto {font-size:10px;flex-basis:100%;margin-bottom:3px;}
 #summaryPage .summary-header-actions {gap:8px;}
 #summaryPage .summary-header-actions .users-secondary-button {flex:1;font-size:12px;}
 #summaryPage .summary-panel,#summaryPage .summary-metrics {border-radius:13px;}
 #summaryPage .summary-metrics article {padding:16px;}
 #summaryPage .summary-metrics span {font-size:11px;}
 #summaryPage .summary-filters {padding:16px;gap:16px;}
 #summaryPage .summary-filter-heading {align-items:stretch;flex-direction:column;gap:12px;}
 #summaryPage .summary-mode-switch {display:flex;}
 #summaryPage .summary-mode-switch button {flex:1;min-height:36px;}
 #summaryPage .summary-filter-fields,#summaryPage .summary-filters[data-mode=period] .summary-filter-fields {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 #summaryPage .summary-date-field:not(#summaryToField) {grid-column:1/-1;}
 #summaryPage .summary-filters[data-mode=period] .summary-date-field:not(#summaryToField) {grid-column:auto;}
 #summaryPage .summary-restaurant-field,#summaryPage .summary-filters[data-mode=period] .summary-restaurant-field {grid-column:1/-1;}
 #summaryPage #summaryApply,#summaryPage .summary-filters[data-mode=period] #summaryApply {grid-column:1/-1;}
 #summaryPage .summary-filters input:not([type=checkbox]),#summaryPage .summary-filters select {font-size:16px;}
 #summaryPage .summary-search input {font-size:16px!important;}
 #summaryPage .summary-caption {padding:20px 16px 16px;}
 #summaryPage .summary-caption strong {font-size:15px;}
 #summaryPage .summary-caption>span {font-size:10px;}
 #summaryPage .summary-caption p {font-size:10px;line-height:1.6;}
 #summaryPage .summary-message {padding:0 16px;}
 #summaryPage .summary-warning {margin:0 16px 16px;}
 #summaryPage .summary-table {display:block;}
 #summaryPage .summary-table>thead {display:none;}
 #summaryPage .summary-table>tbody {display:block;}
 #summaryPage .summary-product {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:18px 16px 8px;gap:16px 10px;border-top:1px solid var(--summary-line);}
 #summaryPage .summary-table .summary-product td {padding:0;text-align:left;display:block;font-size:13px;}
 #summaryPage .summary-product td:first-child {grid-column:1/-1;}
 #summaryPage .summary-product td:nth-child(2) {grid-column:1/-1;font-size:11px;color:#8b958f;margin-top:-12px;}
 #summaryPage .summary-product td:nth-child(n+3)::before {content:attr(data-label);display:block;font-size:9px;color:#8b958f;margin-bottom:7px;font-weight:400;white-space:nowrap;}
 #summaryPage .summary-remaining,#summaryPage .summary-ready {margin-left:-8px;}
 #summaryPage .summary-table .summary-detail {display:block;}
 #summaryPage .summary-table .summary-detail>td {display:block;padding:2px 16px 16px;border-bottom:0;}
 #summaryPage .summary-source-orders {grid-template-columns:1fr;}
 #summaryPage .summary-breakdown-content {padding:0 8px 10px;margin-left:-5px;margin-right:-5px;}
 #summaryPage .summary-source-wrap th,#summaryPage .summary-source-wrap td {font-size:10px;padding:10px 8px;}
}
@media print {
 body:has(#summaryPage.active) {background:white!important;}
 body:has(#summaryPage.active) .sidebar,body:has(#summaryPage.active) .topbar,body:has(#summaryPage.active) .mobile-topbar,body:has(#summaryPage.active) .footer,body:has(#summaryPage.active) .mobile-appbar,body:has(#summaryPage.active) .mobile-sidebar-backdrop,body:has(#summaryPage.active) .page:not(#summaryPage),#summaryPage .summary-filters,#summaryPage .summary-header-actions,#summaryPage .summary-message,#summaryPage .summary-warning {display:none!important;}
 body:has(#summaryPage.active) .main,body:has(#summaryPage.active) .workspace {margin:0!important;padding:0!important;width:100%!important;background:white!important;}
 body:has(#summaryPage.active) #summaryPage {display:block!important;padding:0!important;}
 #summaryPage .page-header {margin-bottom:18px;}
 #summaryPage .summary-panel {border:0;}
 #summaryPage .summary-table-wrap {overflow:visible;}
 #summaryPage .summary-detail {display:none;}
 #summaryPage .summary-table {display:table;}
 #summaryPage .summary-table>thead {display:table-header-group;}
 #summaryPage .summary-table>tbody {display:table-row-group;}
 #summaryPage .summary-table .summary-product {display:table-row;break-inside:avoid;}
 #summaryPage .summary-table td,#summaryPage .summary-table th {display:table-cell!important;padding:8px;font-size:10pt;}
 #summaryPage .summary-product td:nth-child(n+3)::before {display:none;}
 #summaryPage .summary-caption {padding:10px 0 20px;}
 #summaryPage .summary-metrics {margin-bottom:10px;padding:12px 0;grid-template-columns:repeat(4,minmax(0,1fr));}
 #summaryPage .summary-metrics article {padding:0 16px;border-bottom:0;}
 #summaryPage .summary-metrics strong {font-size:18pt;}
 #summaryPage .summary-ready,#summaryPage .summary-remaining {padding:0;color:#222;background:none;}
}
