.pos-board-workspace {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pos-board-commandbar,
.pos-board-section-title,
.pos-board-services-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pos-board-commandbar {
  padding: 12px 14px;
  border-radius: 12px;
  background: #071a2b;
  color: #fff;
}

.pos-board-commandbar h2,
.pos-board-commandbar span { margin: 0; }
.pos-board-commandbar span { color: #d6ad45; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.pos-board-commandbar > div:last-child { display: flex; gap: 8px; }
.pos-board-commandbar button { min-height: 44px; }

.pos-board-technicians {
  padding: 12px;
  border: 1px solid #d8e0e5;
  border-radius: 14px;
  background: #fff;
}

.pos-board-section-title span,
.pos-board-services-head span { display: block; color: #6d7b87; font-size: 12px; }
.pos-board-tech-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 8px; margin-top: 10px; }
.pos-board-tech {
  min-height: 82px;
  padding: 10px;
  border: 2px solid #d6dde2;
  border-radius: 12px;
  background: #f5f7f8;
  color: #071a2b;
  text-align: left;
  cursor: pointer;
}
.pos-board-tech strong { display: block; font-size: 16px; }
.pos-board-tech span { color: #6c7881; font-size: 12px; }
.pos-board-tech-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 9px; }
.pos-board-tech-meta em { min-width: 0; overflow: hidden; color: #6c7881; font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.pos-board-tech-meta b { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; background: #e3e9ec; color: #294052; font-size: 10px; }
.pos-board-tech.active .pos-board-tech-meta b { background: #d6ad45; color: #071a2b; }
.pos-board-tech.active { border-color: #d6ad45; background: #fff8df; box-shadow: 0 0 0 2px rgba(214,173,69,.18); }
.pos-board-tech.online::before { content: '●'; color: #00a84f; margin-right: 6px; }

.pos-board-layout { display: grid; grid-template-columns: minmax(280px,34%) minmax(0,1fr); gap: 12px; min-height: 470px; }
.pos-board-queue,.pos-board-editor { min-width: 0; }
.pos-board-ticket-list { display: grid; gap: 8px; max-height: 64vh; overflow: auto; }
.pos-board-ticket {
  width: 100%;
  padding: 12px;
  border: 2px solid #dce3e7;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.pos-board-ticket.active { border-color: #00a84f; background: #f0fff5; }
.pos-board-ticket-head { display: flex; justify-content: space-between; gap: 8px; }
.pos-board-ticket small { display: block; margin-top: 5px; color: #62717d; }

.pos-board-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.pos-board-editor label { display: grid; gap: 5px; font-weight: 700; }
.pos-board-editor input,.pos-board-editor select,.pos-board-editor textarea { width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid #becad2; border-radius: 8px; background: #fff; box-sizing: border-box; }
.pos-board-services-head { margin: 16px 0 8px; }
.pos-board-quick-services {
  margin: 2px 0 14px;
  padding: 12px;
  border: 2px solid #d6ad45;
  border-radius: 12px;
  background: #fffaf0;
}
.pos-board-quick-services-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pos-board-quick-services-head strong,.pos-board-quick-services-head span { display: block; }
.pos-board-quick-services-head span { margin-top: 2px; color: #61717b; font-size: 12px; }
.pos-board-quick-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pos-board-service-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 10px; }
.pos-board-service-steps b { padding: 7px 8px; border-radius: 8px; background: #e8edf0; color: #6b7882; text-align: center; font-size: 11px; letter-spacing: .04em; }
.pos-board-service-steps b.active { background: #08263a; color: #fff; }
.pos-board-quick-prompt { margin: 10px 0 0; color: #173246; font-weight: 900; }
.pos-board-quick-service-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 8px; margin-top: 10px; }
.pos-board-quick-service-grid button {
  min-height: 64px;
  padding: 9px;
  border: 1px solid #b8c8ce;
  border-radius: 10px;
  background: #fff;
  color: #08263a;
  text-align: left;
  cursor: pointer;
}
.pos-board-quick-service-grid button:active,.pos-board-quick-service-grid button.selected { border-color: #00a84f; background: #ecfff3; box-shadow: inset 0 0 0 2px #00a84f; }
.pos-board-quick-service-grid strong,.pos-board-quick-service-grid span { display: block; }
.pos-board-quick-service-grid span { margin-top: 4px; color: #08703e; font-weight: 900; }
.pos-board-quick-service-grid.category-grid button { min-height: 72px; border-color: #d6ad45; background: #fffdf7; }
.pos-board-quick-service-grid.category-grid strong { font-size: 16px; text-transform: uppercase; }
.pos-board-modifier-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.pos-board-modifier-actions button { min-height: 48px; }
.pos-board-lines { display: grid; align-content: start; gap: 4px; }
.pos-board-services-head > div { display: none; }
.pos-board-lines-head { display: grid; grid-template-columns: minmax(150px,1.5fr) minmax(130px,1fr) auto; gap: 5px; padding: 7px 8px; border-radius: 7px; background: #08263a; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.pos-board-tech-group { display: grid; gap: 4px; padding: 5px; border: 1px solid #cbd7de; border-radius: 9px; background: #fff; }
.pos-board-tech-group > h4 { margin: 0; padding: 5px 7px; border-left: 4px solid #d6ad45; background: #fff8e6; color: #173246; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.pos-board-line { display: grid; grid-template-columns: minmax(150px,1.5fr) minmax(130px,1fr) auto; gap: 5px; align-items: end; padding: 5px 6px; border: 1px solid #dce3e7; border-radius: 7px; background: #f8fafb; }
.pos-board-line label { gap: 2px; font-size: 11px; line-height: 1.1; }
.pos-board-line select { min-height: 40px !important; padding: 5px 7px !important; font-size: 14px !important; }
.pos-board-line button { min-width: 44px; min-height: 44px; color: #a31d1d; }
.pos-board-sticky-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; margin: 14px -4px -4px; padding: 12px 4px 4px; background: linear-gradient(transparent,#fff 28%); z-index: 3; }
.pos-board-sticky-actions button { flex: 1 1 110px; min-width: 86px; min-height: 48px; padding-left: 10px; padding-right: 10px; }
@media (max-width:800px) {
  .pos-board-sticky-actions { display:grid!important; grid-template-columns:56px minmax(0,1fr) minmax(0,1fr)!important; align-items:stretch; }
  .pos-board-sticky-actions > #posBoardPrint,.pos-board-sticky-actions > [type="submit"] { width:100%; min-width:0; }
  .pos-board-ticket-actions-more { position:relative; min-width:0; }
  .pos-board-ticket-actions-more > summary { display:grid; place-items:center; height:100%; min-height:54px; border:2px solid #707070; background:#fff; color:#08263a; font-size:28px; font-weight:900; cursor:pointer; list-style:none; }
  .pos-board-ticket-actions-more > summary::-webkit-details-marker { display:none; }
  .pos-board-ticket-actions-more > div { position:absolute; left:0; right:auto; bottom:calc(100% + 6px); z-index:20; display:grid; gap:6px; width:170px; padding:8px; border:1px solid #b8c8ce; border-radius:8px; background:#fff; box-shadow:0 8px 24px rgba(8,38,58,.24); }
  .pos-board-ticket-actions-more > div > button { width:100%; min-width:0; }
  .pos-board-sticky-actions > .pos-board-ticket-actions-more,.pos-board-sticky-actions > #posBoardPrint,.pos-board-sticky-actions > [type="submit"] { height:64px!important; min-height:64px!important; margin:0!important; align-self:stretch!important; }
  .pos-board-ticket-actions-more > summary,.pos-board-sticky-actions > #posBoardPrint { height:64px!important; min-height:64px!important; box-sizing:border-box; border:1px solid #b8c8ce; border-radius:8px; background:#eef2f4; color:#08263a; }
  .pos-board-sticky-actions > [type="submit"] { border-radius:8px; }
  .pos-board-ticket-actions-more > div > button { color:#08263a; background:#fff; }
}
.pos-board-empty { padding: 55px 18px; color: #6b7882; text-align: center; }
.pos-board-editor > .panel-head {
  min-height: 42px;
  margin-bottom: 5px;
  align-items: center;
}
.pos-board-editor > .panel-head > div > span { font-size: 8px; letter-spacing: .08em; }
.pos-board-editor > .panel-head h3 { margin: 0; font-size: 18px; line-height: 1.05; }
#posBoardCloseEditor {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  font-size: 28px;
  line-height: 1;
}
.pos-board-register-shell { display: grid; grid-template-columns: minmax(0,2fr) minmax(320px,1fr); gap: 12px; align-items: stretch; }
.pos-board-register-catalog,.pos-board-register-ticket { min-width: 0; }
.pos-board-register-ticket { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 150px); overflow: hidden; padding: 12px; border: 1px solid #d8e0e5; border-radius: 12px; background: #f8fafb; }
.pos-board-customer-toggle {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  justify-content: center;
  gap: 7px;
  min-width: 118px;
  min-height: 38px;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: .04em;
}
.pos-board-customer-toggle span { font-size: 18px; line-height: 1; }
.pos-board-customer-details { display: grid; gap: 9px; margin-top: 8px; }
.pos-board-register-ticket.customer-collapsed .pos-board-customer-details { display: none; }
.pos-board-register-ticket.customer-collapsed .pos-board-services-head { margin-top: 5px; padding-top: 5px; }
.pos-board-register-ticket .pos-board-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.pos-board-register-ticket .pos-board-services-head { padding-top: 8px; border-top: 1px solid #dce3e7; }
.pos-board-register-ticket .pos-board-lines { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
.pos-board-register-ticket .pos-board-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 12;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  width: 100%;
  margin: auto 0 0;
  padding: 12px 0 0;
  background: #f8fafb;
  box-shadow: 0 -8px 12px rgba(248,250,251,.94);
}
.pos-board-register-ticket .pos-board-sticky-actions > button { width: 100%; min-width: 0; }
.pos-board-totals {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 4px;
  margin-top: 5px;
  padding: 6px;
  border: 1px solid #d8e0e5;
  border-radius: 8px;
  background: #fff;
}
.pos-board-totals > div { min-width: 0; text-align: center; }
.pos-board-totals span,.pos-board-totals b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-board-totals span { color: #6d7b87; font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.pos-board-totals b { margin-top: 2px; color: #10283c; font-size: 15px; }
.pos-board-totals > div:last-child b { color: #078659; }

/* Professional Clover Station layout. Modern Station WebViews use this path;
   the Chromium 52 compatible fallback is defined below. */
@media (min-width: 1100px) {
  .clover-device .pos-board-workspace { gap: 8px; }
  .clover-device .pos-board-layout { grid-template-columns: minmax(0,3.15fr) minmax(270px,1fr) !important; }
  .clover-device .pos-board-tech-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
  .clover-device .pos-board-tech { min-height: 88px; padding: 12px; }
  .clover-device .pos-board-tech strong { font-size: 18px; }
  .clover-device .pos-board-workspace.editor-open .pos-board-editor { padding: 12px 16px 18px !important; }
  .clover-device .pos-board-register-shell { grid-template-columns: minmax(0,2fr) minmax(340px,1fr); }
  .clover-device .pos-board-register-ticket .pos-board-fields { grid-template-columns: 1fr 1fr; }
  .clover-device .pos-board-quick-services { padding: 14px; }
  .clover-device .pos-board-quick-service-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; max-height: 43vh; overflow-y: auto; }
  .clover-device .pos-board-quick-service-grid.category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .clover-device .pos-board-quick-service-grid button { min-height: 82px; padding: 12px; font-size: 15px; }
  .clover-device .pos-board-quick-service-grid.category-grid button { min-height: 92px; }
  .clover-device .pos-board-service-steps b { min-height: 40px; display: grid; place-items: center; font-size: 12px; }
  .clover-device .pos-board-sticky-actions { padding-top: 16px; }
  .clover-device .pos-board-sticky-actions button { min-height: 56px; font-size: 14px; }
  .clover-device .pos-board-register-ticket .pos-board-sticky-actions { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
}

/* Mini and short landscape displays need the modifier decisions completely
   above the always-visible ticket action bar. */
@media (min-width: 801px) and (max-height: 800px) {
  .clover-device .pos-board-quick-service-grid.service-grid { max-height: 250px; }
  .clover-device .pos-board-quick-service-grid.modifier-grid { max-height: 220px; }
  .clover-device .pos-board-modifier-actions { position: relative; z-index: 5; background: #fffaf0; }
}

/* Clover Station 2018 uses an older Android WebView. These explicit flex
   fallbacks provide the same proportions without relying on CSS Grid. */
html.nsp-clover-legacy .pos-board-workspace { gap: 7px !important; }
html.nsp-clover-legacy .pos-board-commandbar { min-height: 58px !important; padding: 7px 9px !important; }
html.nsp-clover-legacy .pos-board-layout {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-align-items: flex-start !important;
  align-items: flex-start !important;
  gap: 9px !important;
  width: 100% !important;
  min-height: 0 !important;
}
html.nsp-clover-legacy .pos-board-workspace:not(.editor-open) .pos-board-technicians {
  display: block !important;
  min-width: 0 !important;
  -webkit-flex: 1 1 76% !important;
  flex: 1 1 76% !important;
}
html.nsp-clover-legacy .pos-board-workspace:not(.editor-open) .pos-board-queue {
  display: block !important;
  width: 310px !important;
  min-width: 260px !important;
  -webkit-flex: 0 1 24% !important;
  flex: 0 1 24% !important;
}
html.nsp-clover-legacy .pos-board-workspace:not(.editor-open) .pos-board-editor { display: none !important; }
html.nsp-clover-legacy .pos-board-tech-grid {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
html.nsp-clover-legacy .pos-board-tech {
  width: auto !important;
  min-width: 150px !important;
  min-height: 84px !important;
  -webkit-flex: 1 1 18% !important;
  flex: 1 1 18% !important;
}
html.nsp-clover-legacy .pos-board-tech strong { font-size: 17px !important; }
html.nsp-clover-legacy .pos-board-workspace.editor-open .pos-board-layout { display: block !important; }
html.nsp-clover-legacy .pos-board-workspace.editor-open .pos-board-technicians,
html.nsp-clover-legacy .pos-board-workspace.editor-open .pos-board-queue { display: none !important; }
html.nsp-clover-legacy .pos-board-workspace.editor-open .pos-board-editor { display: block !important; width: 100% !important; }
html.nsp-clover-legacy .pos-board-register-shell {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-align-items: flex-start !important;
  align-items: flex-start !important;
  gap: 10px !important;
}
html.nsp-clover-legacy .pos-board-register-catalog {
  min-width: 0 !important;
  -webkit-flex: 1 1 66.666% !important;
  flex: 1 1 66.666% !important;
}
html.nsp-clover-legacy .pos-board-register-ticket {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column !important;
  flex-direction: column !important;
  width: 33.333% !important;
  min-width: 320px !important;
  max-height: calc(100vh - 132px) !important;
  overflow: hidden !important;
  -webkit-flex: 0 1 33.333% !important;
  flex: 0 1 33.333% !important;
}
html.nsp-clover-legacy .pos-board-fields {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
html.nsp-clover-legacy .pos-board-fields > label {
  min-width: 180px !important;
  -webkit-flex: 1 1 22% !important;
  flex: 1 1 22% !important;
}
html.nsp-clover-legacy .pos-board-quick-services { margin: 8px 0 10px !important; padding: 13px !important; }
html.nsp-clover-legacy .pos-board-service-steps,
html.nsp-clover-legacy .pos-board-quick-service-grid,
html.nsp-clover-legacy .pos-board-modifier-actions {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
html.nsp-clover-legacy .pos-board-modifier-actions.hidden {
  display: none !important;
}
html.nsp-clover-legacy .pos-board-service-steps > b {
  min-width: 150px !important;
  min-height: 38px !important;
  -webkit-flex: 1 1 30% !important;
  flex: 1 1 30% !important;
}
html.nsp-clover-legacy .pos-board-quick-service-grid { max-height: 44vh; overflow-y: auto; }
html.nsp-clover-legacy .pos-board-quick-service-grid > button {
  width: auto !important;
  min-width: 165px !important;
  min-height: 82px !important;
  padding: 11px !important;
  font-size: 15px !important;
  -webkit-flex: 1 1 18% !important;
  flex: 1 1 18% !important;
}
html.nsp-clover-legacy .pos-board-quick-service-grid.category-grid > button {
  min-width: 210px !important;
  min-height: 90px !important;
  -webkit-flex: 1 1 22% !important;
  flex: 1 1 22% !important;
}
html.nsp-clover-legacy .pos-board-modifier-actions > button {
  min-width: 190px !important;
  min-height: 54px !important;
  -webkit-flex: 1 1 46% !important;
  flex: 1 1 46% !important;
}
html.nsp-clover-legacy .pos-board-lines {
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  -webkit-flex: 1 1 auto !important;
  flex: 1 1 auto !important;
}
html.nsp-clover-legacy .pos-board-totals {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-align-items: stretch !important;
  align-items: stretch !important;
  gap: 3px !important;
}
html.nsp-clover-legacy .pos-board-totals > div {
  min-width: 0 !important;
  -webkit-flex: 1 1 25% !important;
  flex: 1 1 25% !important;
}
html.nsp-clover-legacy .pos-board-line {
  display: -webkit-flex !important;
  display: flex !important;
  gap: 8px !important;
}
html.nsp-clover-legacy .pos-board-line > label { min-width: 220px; -webkit-flex: 1 1 40% !important; flex: 1 1 40% !important; }
html.nsp-clover-legacy .pos-board-sticky-actions {
  position: sticky !important;
  bottom: 0 !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-wrap: nowrap !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: 100% !important;
  margin: auto 0 0 !important;
  padding: 14px 0 0 !important;
  background: #f8fafb !important;
}
html.nsp-clover-legacy .pos-board-sticky-actions > button { width: calc(25% - 4px) !important; min-width: 0 !important; min-height: 54px !important; padding: 5px 2px !important; font-size: 12px !important; -webkit-flex: 1 1 24% !important; flex: 1 1 24% !important; }

@media (max-width: 1000px) {
  .pos-board-register-shell { grid-template-columns: 1fr; }
  .pos-board-register-ticket { order: 2; }
}

@media (max-width: 800px) {
  .clover-device .pos-board-register-shell { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(210px,1fr); gap: 7px; align-items: stretch; }
  html.nsp-clover-legacy .pos-board-register-shell { display: -webkit-flex !important; display: flex !important; }
  .pos-board-register-ticket { margin-top: 0; max-height: calc(100vh - 105px); padding: 8px; }
  .pos-board-register-ticket .pos-board-fields { grid-template-columns: 1fr 1fr; }
  .pos-board-register-ticket .pos-board-services-head { flex-direction: row; align-items: center; }
  .pos-board-customer-toggle { min-width: 102px; min-height: 34px; padding: 4px 7px; font-size: 10px; }
  .pos-board-customer-details { gap: 6px; }
  .pos-board-register-ticket .pos-board-sticky-actions { gap: 5px; padding-top: 7px; }
  .pos-board-register-ticket .pos-board-sticky-actions button { min-height: 46px; padding: 5px 3px; font-size: 10px; }
  .pos-board-totals { gap: 2px; padding: 4px 2px; }
  .pos-board-totals span { font-size: 8px; }
  .pos-board-totals b { font-size: 12px; }
}

@media (max-width: 1000px) {
  .pos-board-layout { grid-template-columns: 1fr; }
  .pos-board-ticket-list { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); max-height: none; }
}

@media (max-width: 650px) {
  .pos-board-commandbar,.pos-board-section-title,.pos-board-services-head { flex-direction: column; align-items: stretch; }
  .pos-board-commandbar > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .pos-board-tech-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
  .pos-board-tech { min-width: 0; min-height: 64px; padding: 8px; }
  .pos-board-tech strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pos-board-tech span { font-size: 11px; }
  .pos-board-fields,.pos-board-line { grid-template-columns: 1fr; }
  .pos-board-quick-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pos-board-quick-service-grid button { min-height: 58px; padding: 7px; }
  .pos-board-line button { width: 100%; }
  .pos-board-editor { padding-bottom: 76px; }
  .pos-board-sticky-actions { position: sticky; left: auto; right: auto; bottom: 0; margin: auto 0 0; padding: 10px 0 0; background: #f8fafb; box-shadow: none; }
  .pos-board-sticky-actions button { flex: 1; min-width: 0; min-height: 54px; padding: 7px 4px; font-size: 11px; }
}

.clover-device .pos-board-commandbar button,
.clover-device .pos-board-tech,
.clover-device .pos-board-ticket,
.clover-device .pos-board-services-head button { min-height: 54px; font-size: 15px; }
.clover-device .pos-board-editor input,
.clover-device .pos-board-editor select { min-height: 52px; font-size: 16px; }

/* The Clover app is a dedicated POS surface. Use the whole application
   viewport and remove both hamburger controls; navigation remains available
   on the Web/Windows portal where the sidebar is useful. */
body.clover-board-session .sidebar {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
}
body.clover-board-session .dashboard,
body.clover-board-session .dash-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body.clover-board-session .pos-board-hamburger { display: flex !important; }
body.clover-board-session .pos-board-commandbar {
  grid-template-columns: auto auto minmax(210px,1fr) auto auto;
}
body.clover-board-session .pos-board-workspace.editor-open .pos-board-editor {
  height: calc(100vh - 8px);
  overflow: hidden !important;
  box-sizing: border-box;
}
body.clover-board-session .pos-board-workspace.editor-open #posBoardTicketForm {
  height: calc(100vh - 62px);
  min-height: 0;
  overflow: hidden;
}
body.clover-board-session .pos-board-workspace.editor-open .pos-board-register-shell {
  height: 100%;
  min-height: 0;
}
body.clover-board-session .pos-board-workspace.editor-open .pos-board-register-catalog {
  min-height: 0;
  overflow-y: auto;
}
body.clover-board-session .pos-board-workspace.editor-open .pos-board-register-ticket {
  height: 100%;
  max-height: none;
  box-sizing: border-box;
}

/* Web desktop: keep the employee board dominant and the live-ticket rail
   narrow, matching the Clover Station working layout. The ticket editor uses
   the full width only after a ticket is opened. */
@media (min-width: 801px) {
  .pos-board-workspace:not(.hidden) { display:flex!important; flex-direction:column!important; }
  .pos-board-layout {
    grid-template-columns:minmax(0,2.4fr) minmax(250px,1fr)!important;
    align-items:start!important; gap:10px!important; min-height:0!important;
  }
  .pos-board-layout > .pos-board-technicians { grid-column:1!important; min-width:0!important; }
  .pos-board-layout > .pos-board-queue { grid-column:2!important; min-width:0!important; margin-top:0!important; }
  .pos-board-workspace:not(.editor-open) .pos-board-editor { display:none!important; }
  .pos-board-workspace.editor-open .pos-board-layout { display:block!important; }
  .pos-board-workspace.editor-open .pos-board-technicians,
  .pos-board-workspace.editor-open .pos-board-queue { display:none!important; }
  .pos-board-workspace.editor-open .pos-board-editor { display:block!important; }
  .pos-board-ticket-list { grid-template-columns:1fr!important; max-height:68vh; }
}

/* Clover Station 2018 WebView: make every technician header paint its full grid cell. */
.booking-tech-column,
.booking-tech-column > header,
.booking-tech-column > header small {
  min-width: 0;
  box-sizing: border-box;
}
.booking-tech-column > header {
  display: flex !important;
  width: 100% !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background-color: #e7eff6 !important;
  background-clip: border-box;
}
.booking-tech-column > header small { width: 100%; }
.clover-device .booking-tech-column { background-color: #fff !important; }

/* 2026.9.12.5 compact Register-style command bar. */
.pos-board-commandbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto minmax(210px,1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(7,26,43,.14);
}
.pos-board-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #365168;
  border-radius: 8px;
  background: #0d2b43;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.pos-board-title { min-width: 118px; }
.pos-board-title h2 { font-size: 20px; line-height: 1.05; white-space: nowrap; }
.pos-board-title span { font-size: 9px; white-space: nowrap; }
.pos-board-search { display: block; min-width: 0; margin: 0; }
.pos-board-search span { display: none; }
.pos-board-search input {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #355169;
  border-radius: 8px;
  background: #fff;
  color: #102437;
}
.pos-board-primary-actions { display: flex; gap: 7px; }
.pos-board-primary-actions .primary { width: auto; margin: 0; }
.pos-board-primary-actions button { min-height: 42px; padding: 8px 12px; white-space: nowrap; }
.pos-board-more { position: relative; }
.pos-board-more summary {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #355169;
  border-radius: 8px;
  background: #0d2b43;
  color: #fff;
  font-size: 27px;
  cursor: pointer;
  list-style: none;
}
.pos-board-more summary::-webkit-details-marker { display: none; }
.pos-board-more > div {
  position: absolute;
  top: 49px;
  right: 0;
  z-index: 50;
  display: grid;
  width: 180px;
  padding: 7px;
  border: 1px solid #d7e0e5;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7,26,43,.24);
}
.pos-board-more button { padding: 11px; border: 0; background: #fff; color: #102437; text-align: left; cursor: pointer; }
.pos-board-more button:hover { background: #eef4f6; }

@media (max-width: 800px) {
  /* Phone and Flex default view: two employee columns plus one narrow
     live-waitlist column. The editor takes the whole width only after a
     ticket is opened. */
  .pos-board-workspace:not(.hidden) { display: flex !important; flex-direction: column !important; }
  .pos-board-layout {
    display: grid !important;
    grid-template-columns: minmax(0,2fr) minmax(112px,1fr) !important;
    align-items: start !important;
    gap: 7px !important;
    width: 100% !important;
    min-height: 0 !important;
  }
  .clover-device .pos-board-layout,
  html.nsp-clover-legacy .pos-board-layout {
    display: grid !important;
    grid-template-columns: minmax(0,2fr) minmax(150px,1fr) !important;
    align-items: start !important;
    gap: 7px !important;
    width: 100% !important;
    min-height: 0 !important;
  }
  .pos-board-layout > .pos-board-technicians { grid-column: 1 !important; width: auto !important; min-width: 0 !important; }
  .pos-board-layout > .pos-board-queue { grid-column: 2 !important; width: auto !important; min-width: 0 !important; margin-top: 0 !important; }
  .clover-device .pos-board-layout > .pos-board-technicians,
  html.nsp-clover-legacy .pos-board-layout > .pos-board-technicians { grid-column: 1 !important; width: auto !important; min-width: 0 !important; }
  .clover-device .pos-board-layout > .pos-board-queue,
  html.nsp-clover-legacy .pos-board-layout > .pos-board-queue { grid-column: 2 !important; width: auto !important; min-width: 0 !important; margin-top: 0 !important; }
  .pos-board-workspace:not(.editor-open) .pos-board-editor { display: none; }
  .pos-board-workspace.editor-open .pos-board-technicians { display: none; }
  .pos-board-workspace.editor-open .pos-board-layout,
  .clover-device .pos-board-workspace.editor-open .pos-board-layout,
  html.nsp-clover-legacy .pos-board-workspace.editor-open .pos-board-layout { display: block !important; }
  .pos-board-workspace.editor-open .pos-board-queue { display: none; }
  .pos-board-workspace.editor-open .pos-board-editor { display: block; }
  .pos-board-queue { padding: 8px; }
  .pos-board-queue .panel-head { gap: 4px; }
  .pos-board-queue .panel-head span:first-child { font-size: 9px; }
  .pos-board-queue .panel-head h3 { font-size: 14px; line-height: 1.1; }
  .pos-board-ticket-list { display: grid; grid-template-columns: 1fr; gap: 6px; max-height: 68vh; overflow-y: auto; }
  .pos-board-ticket { min-height: 54px; padding: 7px; }
  .pos-board-ticket-head { display: grid; gap: 2px; }
  .pos-board-ticket-head strong { font-size: 14px; }
  .pos-board-ticket-head span { font-size: 11px; }
  .pos-board-ticket small { margin-top: 2px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pos-board-commandbar {
    grid-template-columns: auto minmax(0,1fr) auto auto;
    gap: 6px;
    min-height: 56px;
    padding: 6px;
  }
  body.clover-board-session .pos-board-commandbar {
    grid-template-columns: minmax(0,1fr) auto auto;
  }
  .pos-board-search { grid-column: 1/-1; grid-row: 2; }
  .pos-board-search input { min-height: 38px; font-size: 14px; }
  .pos-board-primary-actions #posBoardNew {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 7px 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  .pos-board-primary-actions #posBoardRefresh { min-height: 44px; padding: 7px 10px; }
  .pos-board-title h2 { font-size: 18px; }
  .pos-board-title span { font-size: 8px; }
  .pos-board-technicians { padding: 9px; }
  .pos-board-section-title { flex-direction: row; align-items: center; }
  .pos-board-section-title span { display: none; }
  .pos-board-editor > .panel-head { min-height: 36px; margin-bottom: 3px; }
  .pos-board-editor > .panel-head h3 { font-size: 15px; }
  #posBoardCloseEditor { width: 36px; min-width: 36px; min-height: 36px; font-size: 25px; }
  body.clover-board-session .pos-board-workspace.editor-open #posBoardTicketForm { height: calc(100vh - 51px); }
}

@media (max-width: 430px) {
  .pos-board-title span { display: none; }
  .pos-board-primary-actions { gap: 4px; }
  .pos-board-primary-actions #posBoardNew {
    width: 64px;
    padding: 0;
    font-size: 0;
  }
  .pos-board-primary-actions #posBoardNew::before { content: '+ NEW'; font-size: 11px; }
  .pos-board-primary-actions #posBoardRefresh { font-size: 0; width: 44px; padding: 0; }
  .pos-board-primary-actions #posBoardRefresh::before { content: '↻'; font-size: 21px; }
  .pos-board-technicians,.pos-board-queue { padding: 6px; }
  .pos-board-tech-grid { gap: 5px; margin-top: 6px; }
  .pos-board-tech { min-height: 58px; padding: 6px; border-radius: 9px; }
  .pos-board-tech strong { font-size: 12px; }
  .pos-board-tech span { font-size: 9px; line-height: 1.15; }
  .pos-board-queue .panel-head h3 { font-size: 12px; }
  .pos-board-ticket { min-height: 48px; padding: 5px; }
  .pos-board-ticket-head strong { font-size: 12px; }
  .pos-board-ticket-head span,.pos-board-ticket small { font-size: 9px; }
  .pos-board-quick-services { padding: 8px; }
  .pos-board-quick-services-head { align-items: flex-start; }
  .pos-board-quick-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .pos-board-quick-service-grid button { min-height: 58px; padding: 7px; font-size: 11px; }
  .pos-board-quick-service-grid.category-grid strong { font-size: 12px; }
  .pos-board-service-steps b { padding: 6px 3px; font-size: 9px; }
  .pos-board-quick-actions button { min-height: 40px; padding: 6px 8px; font-size: 10px; }
}
