@media screen {
 .team-count-page:not(.cc-has-photo):has(#authBox:not([hidden])) {
  background:linear-gradient(110deg,#022b2a24,#031d2424),
             url("./station-clear.webp") center/cover no-repeat #10232e!important;
 }
 .team-count-page:has(#workspace:not([hidden])) > header {
  position:relative;
  z-index:5;
  overflow:visible;
  padding:5px clamp(8px,1.4vw,17px);
  gap:6px;
 }
 .team-count-page:has(#workspace:not([hidden])) > header > .actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  min-width:0;
 }
 .team-count-page > header .cc-workspace-appearance {
  position:relative;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
  margin:0;
  padding:0;
  border:0;
 }
 .team-count-page > header .cc-workspace-appearance > details,
 .team-count-page > header .cc-workspace-appearance > details[open] {
  flex:0 0 auto;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
 }
 .team-count-page > header .cc-workspace-appearance summary {
  margin:0;
  padding:6px 8px;
  min-height:34px;
  box-sizing:border-box;
 }
 .cc-team-picker-panel {
  position:absolute;
  z-index:2;
  inset-block-start:calc(100% + 5px);
  inset-inline-end:0;
  box-sizing:border-box;
  width:min(460px,calc(100vw - 28px));
  max-height:min(55vh,380px);
  overflow:auto;
  overscroll-behavior:contain;
  padding:9px;
  background:#123543;
  color:#fff;
  border:1px solid #90b9c2;
  border-radius:12px;
  box-shadow:0 10px 24px #071d315c;
 }
 .cc-team-picker-panel .cc-visual-swatches { margin:0; }
 .cc-team-picker-panel .cc-background-grid { max-height:none; padding:2px; }
 body.cc-glass header .cc-team-picker-panel .cc-visual-swatches button {
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:5px;
  text-align:start;
  background:#eaf6fa !important;
  color:#132f42 !important;
 }
 .cc-team-picker-panel .cc-visual-swatches button::before {
  content:"";
  flex:0 0 17px;
  height:17px;
  border-radius:4px;
  background:var(--swatch);
  border:1px solid #17334c75;
 }
 body.cc-glass header .cc-team-picker-panel button[aria-pressed="true"] {
  outline:2px solid #f7ffc4;
  outline-offset:2px;
 }
 .team-count-page .cc-team-zoom {
  display:none;
 }
 .team-count-page:has(#workspace:not([hidden])) .cc-team-zoom {
  display:inline-flex;
  gap:4px;
  align-items:center;
 }
 .cc-team-zoom button { margin:0; min-width:34px; min-height:34px; padding:5px 6px; }
 .team-count-page :is(#counter,#overview) { zoom:var(--cc-team-zoom,1); }
 .team-count-page:has(#workspace:not([hidden])) > main.wrap { padding-top:5px; }
 .team-count-page:has(#workspace:not([hidden])) .cc-workspace-nav { margin-block:0 3px; gap:5px; }
 .team-count-page:has(#workspace:not([hidden])) #status { margin-block:0 4px; }
 .team-count-page #workspace.team-settings:not([hidden]) { padding:7px 11px; gap:3px 9px; margin-block:0 7px; }
 .team-count-page #workspace.team-settings #team { min-height:38px; padding-block:4px; margin-block:0; }
 .team-count-page #workspace.team-settings #logout { min-height:34px; }
 .team-count-page #counter .business-picker { margin-block:4px 6px; padding:4px 7px; gap:6px; }
 .team-count-page #counter .business-choice {
  min-width:clamp(76px,23vw,110px);
  min-height:34px;
  padding:4px 12px;
  margin:0;
 }
 .team-count-page #counter .business-choice[data-business="OIL"] {
  margin-inline-end:clamp(20px,4vw,38px)!important;
 }
 .team-count-page #counter .business-choice[aria-pressed="true"] {
  --cc-action-opacity:100%;
  transform:translateY(-2px);
  box-shadow:inset 0 1px 0 #ffffff7a,0 3px 0 var(--cc-action-border),
             0 6px 11px #123e494d!important;
 }
 .team-count-page #counter .business-choice[data-business="OIL"][aria-pressed="true"] {
  --cc-action-tint:#f7a5c1;
  --cc-action-ink:#551329;
  --cc-action-border:#ae4f75;
 }
 .team-count-page #counter .business-choice[data-business="LPG"][aria-pressed="true"] {
  --cc-action-tint:#ffbe69;
  --cc-action-ink:#512701;
  --cc-action-border:#aa631b;
 }
 .team-count-page #counter > .page-tabs:not(.bottom-page-tabs) { gap:5px; margin-bottom:6px; }
 .team-count-page #counter > .page-tabs:not(.bottom-page-tabs) button { min-height:34px; padding:4px 8px; margin:0; }
 .team-count-page #counter > .team-settings:has(#claim:disabled):not(:has(#claim:focus)) {
  display:none !important;
 }
}
@media screen and (max-width:700px) {
 .team-count-page:has(#workspace:not([hidden])) > header {
  align-items:stretch;
  flex-direction:column;
 }
 .team-count-page:has(#workspace:not([hidden])) > header > .actions {
  width:100%;
  justify-content:flex-start;
  column-gap:5px;
 }
 .team-count-page > header .cc-workspace-appearance {
  position:static;
  flex:0 0 auto;
  justify-content:flex-start;
 }
 .team-count-page > header .cc-workspace-appearance > details,
 .team-count-page > header .cc-workspace-appearance > details[open] {
  position:static;
  width:auto;
 }
 .team-count-page > header .actions > #openThemes,
 .team-count-page > header .cc-workspace-appearance summary,
 .team-count-page > header .cc-team-zoom button {
  flex:none;
  min-height:36px;
  margin:0;
  padding:5px 7px;
  font-size:12px;
  white-space:nowrap;
 }
 .team-count-page > header .cc-team-zoom {
  margin-inline-start:auto;
 }
 .cc-team-picker-panel { inset-inline-end:8px; }

 .team-count-page #counter[data-part="front"] #countGrid {
  grid-template-columns:minmax(0,1fr)!important;
 }
 /* Align the cash column with its subtotal and leave room for long amounts. */
 .team-count-page #counter #cashPanel .money-table th:nth-child(1) { width:23%; }
 .team-count-page #counter #cashPanel .money-table th:nth-child(2) { width:24%; }
 .team-count-page #counter #cashPanel .money-table th:nth-child(3) { width:21%; }
 .team-count-page #counter #cashPanel .money-table th:nth-child(4) { width:32%; }
 .team-count-page #counter #cashPanel .money-table :is(th,td):last-child {
  padding-inline:6px 4px;
  text-align:right!important;
  white-space:nowrap;
 }
 .team-count-page #counter #cashPanel .sumline {
  box-sizing:border-box;
  width:100%;
  padding-inline-end:3px;
  justify-content:space-between;
 }
}

@media screen and (min-width: 801px) {
 .team-count-page #teamPreview[open] {
  position:fixed;
  inset:0;
  margin:0;
  width:100%;
  max-width:none;
  height:100dvh;
  max-height:none;
  border:0!important;
  border-radius:0;
  overflow:hidden;
 }
 .team-count-page #teamPreview .cc-report-toolbar { flex:none; }
 .team-count-page #teamPreview #previewContent {
  flex:1 1 0;
  height:auto;
 }
}
