@media screen {
 #teamPreview[open] {
  box-sizing:border-box;display:flex;flex-direction:column;
  width:min(1180px,96vw);max-height:94dvh;padding:12px;
  background:#edf4f7!important;color:#16334b;
 }
 #teamPreview .cc-report-toolbar,#ccPreviewToolbar {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:8px;background:#fff;color:#16334b;padding:8px 12px;border-radius:10px;
 }
 #teamPreviewTitle {font-size:17px;margin:0}
 #teamPreview .cc-report-zoom,#ccPreviewToolbar .pr-zoom {
  display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0;
 }
 #teamPreview button,#ccPreviewToolbar button {min-height:40px}
 #previewContent {
  flex:1 1 auto;min-height:0;height:min(75dvh,850px);
  margin:8px 0 0;padding:0;border-radius:8px;
  scrollbar-gutter:stable;background:#d6e1e7;
 }
 #previewContent>article {
  width:var(--report-paper-width,794px);max-width:none;
  min-height:440px;margin-inline:auto;padding:22px;
 }
 #previewContent th {background:#e8f2f7}
 #previewContent :is(th,td):not(:first-child) {text-align:right;font-variant-numeric:tabular-nums}
 #previewContent tbody tr:nth-child(even) {background:#f4f8fa}
 #previewContent tfoot {font-weight:750;background:#e8f2f7}
 #ccPreviewScroll {min-height:0}
}

:is(#previewContent,#teamPrintSheet,#ccPrintReport) .cc-receipt-report :is(th,td):nth-child(3) {
 text-align:left!important;
}

@media screen {
 body.cc-glass {
  --cc-count-number-size:clamp(16px,1.5vw,19px);
  --cc-count-total-size:clamp(17px,1.65vw,21px);
 }
 body.cc-glass :is(#counter,.count-page) :is(.money-table tbody td,.money-table input,.doc-amount,.recon-grid input),
 body.cc-glass #counter :is(#fields td,#fields input,input[data-money]) {
  font-size:var(--cc-count-number-size)!important;
  font-variant-numeric:tabular-nums;
 }
 body.cc-glass :is(#counter,.count-page) :is(.extra-summary strong,.totals strong,.recon-grid output,.summary-result input),
 body.cc-glass #counter :is(#total,#docTotal,#countTotals output) {
  font-size:var(--cc-count-total-size)!important;
  font-variant-numeric:tabular-nums;
 }
 body.cc-glass #overview table :is(td,th):not(:first-child) {
  font-size:var(--cc-count-number-size);
  font-variant-numeric:tabular-nums;
 }
}

@media screen {
 body.cc-glass #counter[data-part="front"] :is(#safeAdd,#other,#change,#sales),
 body.cc-glass #counter[data-part="petty"] #sales,
 body.cc-glass #frontPage :is(#safeAdd,#deductOther,#changeFloat,#dailySales),
 body.cc-glass #pettyPage #pettyLimit {
  background: #fff4c9 !important;
  color: #242019 !important;
  border-color: #cba34f !important;
 }
 body.cc-glass #counter[data-part="front"] :is(#safeAdd,#other,#change,#sales):is(:focus,.cc-active-input),
 body.cc-glass #counter[data-part="petty"] #sales:is(:focus,.cc-active-input),
 body.cc-glass #frontPage :is(#safeAdd,#deductOther,#changeFloat,#dailySales):is(:focus,.cc-active-input),
 body.cc-glass #pettyPage #pettyLimit:is(:focus,.cc-active-input) {
  background: #ffebb1 !important;
  border-color: #aa741b !important;
 }
 #counter #claim:disabled + #owner {
  display: none !important;
 }
}

@media screen and (min-width: 900px) and (pointer: fine) {
 body.cc-glass :is(#fields,#cashRows,#safeRows,#pettyRows) :is(td,input),
 body.cc-glass :is(#counter,.count-page) :is(input.doc-amount,.recon-grid input:not([readonly])),
 body.cc-glass #counter input[data-money],
 body.cc-glass #summary tbody td:not(:first-child) {
  font-weight: 500 !important;
 }
 body.cc-glass :is(#counter,.count-page) :is(.extra-summary strong,.doc-footer strong,.sumline strong,.totals strong,.recon-grid output,.recon-grid input[readonly]),
 body.cc-glass :is(#total,#docTotal,#countTotals output,#mCash,#mDocs,#mAll,#summary tfoot td:not(:first-child)) {
  font-weight: 600 !important;
 }
}

:is(#ccPrintReport,#previewContent,#teamPrintSheet) :is(.pr-head,.section-report-heading) {
 margin: 0 0 5px !important;
 padding: 0 0 4px !important;
 gap: 4px 10px !important;
 border-bottom-width: 1px !important;
}
:is(#ccPrintReport,#previewContent,#teamPrintSheet) :is(.pr-head h1,.section-report-heading h2) {
 margin: 0 !important;
 font-size: 15pt !important;
 line-height: 1.2 !important;
}
:is(#ccPrintReport,#previewContent,#teamPrintSheet) :is(.pr-head p,.section-report-heading > p,.cc-report-meta,.cc-report-start) {
 margin: 2px 0 !important;
 font-size: 9pt !important;
 line-height: 1.3 !important;
}
#ccPrintReport .pr-meta {
 grid-template-columns: minmax(0,2fr) minmax(0,1fr) !important;
 margin: 4px 0 6px !important;
 gap: 6px !important;
}
#ccPrintReport .pr-meta div {
 padding: 3px 6px !important;
 min-height: 0 !important;
}
#ccPrintReport .pr-meta b { margin-bottom: 0 !important; }
#ccPrintReport .pr-section h2 { margin: 5px 0 3px !important; padding-bottom: 3px !important; }
.cc-report-signatures {
 display: grid;
 grid-template-columns: repeat(2,minmax(0,1fr));
 column-gap: 20%;
 margin-top: 8mm;
 padding: 0;
 break-inside: avoid;
 page-break-inside: avoid;
 font-size: 10pt;
}
.cc-report-signatures div { display:flex; align-items:baseline; gap:6px; white-space:nowrap; }
.cc-report-signatures span { flex:1; min-width:0; border-bottom:1px dotted currentColor; }
@media screen {
 #teamPreview[open] .cc-report-toolbar,#ccPreviewToolbar {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
 }
 :is(#ccPreviewBack,#previewClose) { grid-column:2; grid-row:1; justify-self:center; }
 :is(#ccPreviewToolbar,#teamPreview) .cc-report-controls {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:6px;
  grid-column:3; grid-row:1;
 }
}
@media screen and (max-width: 800px) {
 :is(#ccPreviewToolbar,#teamPreview) .cc-report-controls {
  grid-column:1/-1; grid-row:2; justify-content:center;
 }
}
@media print {
 #ccPrintReport { padding-top:0 !important; }
}
