/* AkiBusiness contrast contract: scoped to AkiBusiness, applied last.
   Shared components inherit --text/--muted in both themes. */
html[data-theme="light"] body.v3-product {
  --text:#201c35;--muted:#514a68;--subtle:#645d79;
  --accent:#6840c9;--accent-2:#5932b5;
  --border:#51417232;--border-strong:#51417258;
  color-scheme:light;
}
html[data-theme="dark"] body.v3-product {
  --text:#f7f5ff;--muted:#c4bed8;--subtle:#a9a1c3;
  --accent:#9c73ff;--accent-2:#c5b0ff;
  color-scheme:dark;
}
/* The bright link accent fails small white button text (3.33:1).
   Keep links bright and give primary actions the readable violet fill. */
html[data-theme="dark"] body.v3-product :is(.app-main,#portal) :is(.action-btn.primary,.top-btn.create-btn) {
  color:#fff;background:#6840c9;border-color:#6840c9;
}
html[data-theme="dark"] body.v3-product :is(.app-main,#portal) :is(.action-btn.primary,.top-btn.create-btn):hover {
  background:#5932b5;border-color:#5932b5;
}
/* Selected POS rooms/modes are filled controls, including in light mode. */
html[data-theme] body.v3-product .app-main :is(.hp-floor-tabs,.hp-mode-switch) .action-btn[aria-pressed="true"] {
  color:#fff;background:#6840c9;border-color:#6840c9;
}
/* Native controls, lists, popovers and dialogs must never inherit pale text on pale surfaces. */
html[data-theme="light"] body.v3-product :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select),
html[data-theme="light"] body.v3-product :is(.dropdown-menu,.dropdown-panel,.modal,.panel,.entity-modal,.form-field,.data-table,.popover,.context-menu) {
  color:var(--text);
}
html[data-theme="light"] body.v3-product :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  background-color:#fff;border-color:var(--border-strong);
  -webkit-text-fill-color:var(--text);
}
html[data-theme="light"] body.v3-product :is(input,textarea)::placeholder {color:#68617e;opacity:1}
html[data-theme="light"] body.v3-product :is(input,textarea,select):disabled {
  color:#54506a;-webkit-text-fill-color:#54506a;opacity:.78;
  background-color:#ece9f3;
}
html[data-theme="light"] body.v3-product select option {background:#fff;color:#201c35}
html[data-theme="light"] body.v3-product :is(.form-field label,.panel h2,.panel h3,.context-title,.metric-value,.data-table td,.data-table th) {color:var(--text)}
html[data-theme="light"] body.v3-product :is(.form-help,.muted,.metric-label,.panel-header p,.field-description,.entity-meta) {color:var(--muted)}
html[data-theme="light"] body.v3-product :is(.action-btn:not(.primary),.top-btn:not(.create-btn),.icon-btn:not(.primary)) {
  color:var(--text);
}
html[data-theme="light"] body.v3-product :is(.action-btn.primary,.top-btn.create-btn,.suite-login-submit) {color:#fff}
html[data-theme="light"] body.v3-product :is(.action-btn,.top-btn,.icon-btn,input,select,textarea):focus-visible {
  outline:2px solid #6840c9;outline-offset:2px;
}
html[data-theme="dark"] body.v3-product :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  color:var(--text);-webkit-text-fill-color:var(--text);
}
html[data-theme="dark"] body.v3-product :is(input,textarea)::placeholder {color:#bab1cc;opacity:1}
html[data-theme="dark"] body.v3-product select option {background:#222134;color:#f7f5ff}
/* Sign-in previously combined a light panel with dark-only form labels and input skins. */
html[data-theme="light"] body.v3-auth-page .suite-login-screen {
  --suite-accent:#6337bd;--suite-accent-soft:#eee5ff;
  background:radial-gradient(ellipse at 12% 17%,#ddd5ff 0%,transparent 45%),
    radial-gradient(ellipse at 90% 80%,#f2dfff 0%,transparent 45%),#f4f2fb;
  color:#241c3c;
}
html[data-theme="light"] body.v3-auth-page .suite-login-intro h1 {color:#241c3c}
html[data-theme="light"] body.v3-auth-page .suite-login-intro > p {color:#57506c}
html[data-theme="light"] body.v3-auth-page .suite-login-panel {
  background:#fff;border:1px solid #c9bfdc;box-shadow:0 24px 66px #3522571e;
  color:#211a39;
}
html[data-theme="light"] body.v3-auth-page .suite-login-panel :is(.suite-login-form label,.suite-login-form-head h2,.suite-login-brand strong) {color:#211a39}
html[data-theme="light"] body.v3-auth-page .suite-login-panel :is(.suite-login-form-head p,.suite-login-brand small,.suite-login-foot) {color:#5c536f}
html[data-theme="light"] body.v3-auth-page .suite-login-form input {
  background:#fff;color:#241c3c;-webkit-text-fill-color:#241c3c;
  border-color:#b9b0ce;
}
html[data-theme="light"] body.v3-auth-page .suite-login-form input::placeholder {
  color:#686079;opacity:1;
}
html[data-theme="light"] body.v3-auth-page .suite-product-card {
  color:#241c3c;background:#fff;border-color:#bdb2d0;
}
html[data-theme="light"] body.v3-auth-page .suite-product-card small {color:#615773}
html[data-theme="light"] body.v3-auth-page .suite-product-card.active {
  color:#241c3c;background:#eee7ff;border-color:#7850c9;
}
html[data-theme="light"] body.v3-auth-page .suite-google-btn {
  background:#fff;color:#211a39;border-color:#b9b0ce;
}
html[data-theme="light"] body.v3-auth-page .suite-login-submit {background:linear-gradient(125deg,#6941d2,#8c5fe7);color:#fff}
/* Public AkiBusiness landing, while the dashboard preview remains dark in both modes. */
html[data-theme="light"] .ab-landing .ab-header nav :is(a,button) {color:#35254e}
html[data-theme="light"] .ab-landing .ab-header nav :is(a,button):hover {color:#5b2baf}
html[data-theme="light"] .ab-landing .ab-signin {color:#2d1e4b;border-color:#7c65a7}
html[data-theme="light"] .ab-landing .ab-btn-secondary {color:#2d1e4b;background:#fff;border-color:#7c65a7}
html[data-theme="light"] .ab-landing .ab-proof,
html[data-theme="light"] .ab-landing .ab-footer,
html[data-theme="light"] .ab-landing .ab-footer a {color:#554666}
html[data-theme="light"] .ab-landing .ab-preview {color:#f8f5ff}
html[data-theme="light"] .ab-landing .ab-preview :is(h1,h2,h3,strong,small,span) {color:inherit}
html[data-theme="light"] .ab-landing .ab-preview :is(.ab-sidebar,.ab-preview-content,.ab-demo-grid) {color:#e8e2fb}
/* Product selection dots must follow the AkiBusiness theme on its own sign-in screen. */
body.v3-auth-page .suite-product-dot-business {background:#9c73ff}
body.v3-auth-page .suite-product-dot-akipasa {background:#9c73ff}
/* Native sign-in handoff has a deliberately dark purple independent surface. */
body.native-oauth-handoff .native-return-shell,
body.native-oauth-handoff .native-return-card,
body.native-oauth-handoff .native-return-card h1 {color:#f9f7ff}
@media (prefers-reduced-motion:reduce) {
  body.v3-product :is(button,a,input,select,textarea){transition:none!important}
}

/* The workstation body owns scrolling. A content-sized inner list with
   overscroll containment swallowed swipes that started over bill cards. */
.hp-workstation.hp-service-host .hp-service-list {
  overflow:visible;overscroll-behavior:auto;flex:none;
}
.hp-workstation.hp-service-host .hp-service-card {overflow:clip}
.hp-workstation.hp-service-host .hp-workstation-body {touch-action:pan-y pinch-zoom}

/* Placeholder text-fill from the light control contract must also be hidden
   when the header collapses search to its 44px icon on phones. */
@media(max-width:767px) {
  body.v3-product .app-main .global-search input::placeholder {
    color:transparent;-webkit-text-fill-color:transparent;opacity:0;
  }
}

/* Printer queues live in the portal, outside the terminal's theme rules. */
html[data-theme="light"] body.v3-product .hp-printer-dialog {
  background:var(--surface);color:var(--text);border-color:var(--border-strong);
}
html[data-theme="light"] body.v3-product .hp-printer-dialog :is(.hp-ps-header,.hp-ps-detail,.hp-ps-preview,.hp-ps-empty,.hp-ps-empty-detail,.hp-ps-device,.hp-ps-pair,.hp-ps-copy form,.hp-ps-stats>div) {
  background:var(--surface-2);border-color:var(--border);color:var(--text);
}
html[data-theme="light"] body.v3-product .hp-printer-dialog :is(.hp-ps-header p,.hp-ps-stats span,.hp-ps-station-label,.hp-ps-ticket-main small,.hp-ps-subheading,.hp-ps-preview li span,.hp-ps-no-preview,.hp-ps-hint,.hp-ps-copy>p,.hp-ps-legal,.hp-ps-empty p,.hp-ps-empty-detail p,.hp-ps-setup-intro p,.hp-ps-device small,.hp-ps-flow-guide,.hp-ps-archive-hint) {
  color:var(--muted)!important;
}
html[data-theme="light"] body.v3-product .hp-printer-dialog :is(.hp-ps-eyebrow,.hp-ps-destination) {color:#5932b5}
html[data-theme="light"] body.v3-product .hp-printer-dialog .hp-ps-ticket {background:var(--surface);border-color:var(--border-strong)}
html[data-theme="light"] body.v3-product .hp-printer-dialog .hp-ps-ticket:is(:hover,.selected) {background:#eee7ff;border-color:#7850c9}
html[data-theme="light"] body.v3-product .hp-printer-dialog :is(.hp-ps-status,.hp-ps-ticket-status) {color:#5932b5;background:#eee7ff}
html[data-theme="light"] body.v3-product .hp-printer-dialog :is(.status-queued) {color:#174b87;background:#e3efff}
html[data-theme="light"] body.v3-product .hp-printer-dialog :is(.status-claimed,.status-spooled,.hp-ps-warning) {color:#754400;background:#fff0d5;border-color:#bb873c}
html[data-theme="light"] body.v3-product .hp-printer-dialog .status-uncertain {color:#963324;background:#ffe9e4}
html[data-theme="light"] body.v3-product .hp-printer-dialog :is(.status-confirmed,.hp-ps-done,.hp-ps-pair-ready) {color:#165d4b;background:#def5ed;border-color:#75b7a3}
html[data-theme="light"] body.v3-product .hp-printer-dialog .hp-ps-done :is(strong,p) {color:#165d4b}
html[data-theme="light"] body.v3-product .hp-printer-dialog .status-superseded {color:#514a68;background:#ece9f3}
html[data-theme="light"] body.v3-product .hp-printer-dialog .hp-ps-alert strong {color:#754400}
html[data-theme="light"] body.v3-product .hp-printer-dialog .hp-ps-destinations .action-btn[aria-pressed="true"] {color:#fff;background:#6840c9;border-color:#6840c9}
