/* Palmward One / iStore — floor-first refinement, 5 November 2026.
   System typography, restrained surfaces, no third-party fonts.
   Pure presentation: cash, IMEI, stock and staff permissions stay in the Worker. */

#view-sell .selling-left{background:#f8f9fa}
#view-sell .search-wrap{
  border:1px solid #dce1e6;border-radius:16px;background:#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.035);transition:border-color .15s,box-shadow .15s
}
#view-sell .search-wrap:focus-within{border-color:#667a91;box-shadow:0 0 0 3px rgba(50,80,110,.09)}
#view-sell .search-wrap input{font-size:17px;font-weight:520;letter-spacing:-.015em}
#view-sell .search-wrap input::placeholder{color:#899099;font-weight:450}
#view-sell .sell-cue{margin:9px 2px 0;font-size:12px;line-height:1.4;color:#7a838d;font-weight:500}
#view-sell .sell-home{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:23px;align-items:stretch}
#view-sell .sell-home-heading{
  grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin:0 0 2px
}
#view-sell .sell-home-heading h3{margin:0;font-size:15px;font-weight:720;letter-spacing:-.027em;line-height:1.35;color:#242b33}
#view-sell .sell-home-heading span{font-size:11px;color:#7f8891;white-space:nowrap}
#view-sell .sell-desk{
  min-height:121px;display:flex;flex-direction:column;justify-content:space-between;
  align-items:flex-start;gap:6px;padding:15px 16px;border:1px solid #e2e5e9;
  background:#fff;border-radius:16px;color:#212833;box-shadow:0 1px 2px rgba(23,32,43,.025);
  transition:border-color .15s,background .15s,transform .15s
}
#view-sell .sell-desk-icon{
  display:grid;place-items:center;width:29px;height:29px;margin:0;color:#536b80;
  border-radius:9px;background:#f3f6f8
}
#view-sell .sell-desk-icon svg{width:20px;height:20px}
#view-sell .sell-desk strong{font-size:clamp(15px,1.18vw,18px);line-height:1.15;font-weight:700;letter-spacing:-.03em}
#view-sell .sell-desk>span:last-child{font-size:11px;line-height:1.3;color:#77818b;font-weight:520}
#view-sell .sell-desk:active{background:#f1f4f7;color:#212833;transform:scale(.99)}
#view-sell .sell-desk:active>span:last-child{color:#77818b}
@media(hover:hover){#view-sell .sell-desk:hover{background:#fcfdff;border-color:#aebcc9}}
#view-sell .sell-desk:focus-visible{outline:2px solid #4976a0;outline-offset:3px}
#view-sell .sell-stock-alert{
  grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;
  border:1px solid #dfe5e9;background:#fff;border-radius:15px;padding:15px 17px;
}
#view-sell .sell-stock-alert strong{font-size:14px;font-weight:700;letter-spacing:-.02em;color:#2b343e}
#view-sell .sell-stock-alert p{font-size:12px;color:#697581;line-height:1.5;margin:5px 0 0}
#view-sell .sell-stock-alert button{min-height:42px;flex-shrink:0;white-space:nowrap}
#view-sell .sell-home-products{margin-top:11px}
#view-sell .sell-home-products-head{align-items:center;margin-bottom:10px}
#view-sell .sell-home-products-head h3{font-size:15px;font-weight:710}
#view-sell .sell-home-products-head span{font-size:11px}
#view-sell .sell-home-product-list{gap:8px}
#view-sell .sell-home-product-list .sell-quick-item{
  min-height:62px;border:1px solid #e2e5e9;border-radius:13px;padding:12px 14px;
  box-shadow:0 1px 1px rgba(18,28,39,.02)
}
#view-sell .sell-home-product-list .sell-quick-item strong{font-weight:620;font-size:13px;line-height:1.35}
#view-sell .sell-home-product-list .sell-quick-item .price{font-size:13px;font-variant-numeric:tabular-nums;font-weight:710}
#view-sell .sell-home-shortcuts{margin:9px 0 0;gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
#view-sell .sell-home-shortcut{
  min-height:76px;padding:11px 12px;gap:10px;border-radius:14px;
  background:#fff;border:1px solid #e2e5e9;color:#26313d
}
#view-sell .sell-home-shortcut-primary{border-color:#b8c7d5;background:#f4f7fa}
#view-sell .sell-home-shortcut .sell-shortcut-icon{
  display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;
  border-radius:10px;border:1px solid #e1e6ec;color:#415e78;background:#fff;font-size:18px
}
#view-sell .sell-home-shortcut strong{font-size:13px;font-weight:680;letter-spacing:-.012em;line-height:1.2}
#view-sell .sell-home-shortcut small{font-size:11px;line-height:1.35;color:#78828c}
#view-sell .sell-home-shortcut>span:last-child{font-size:18px;color:#8e99a4}
@media(hover:hover){#view-sell .sell-home-shortcut:hover{border-color:#aebbc9;background:#fafcfe}}
#view-sell .sell-home-shortcut:focus-visible{outline:2px solid #4976a0;outline-offset:3px}

/* Inventory: one unmistakable create action; routine count & intake remain visible. */
#view-stock .section-head h2{font-size:clamp(23px,2.3vw,30px);font-weight:730;letter-spacing:-.04em}
#view-stock .section-head .muted{line-height:1.5;max-width:62ch}
#view-stock .inventory-header-actions{gap:8px;align-items:center}
#view-stock .inventory-header-actions>#new-product-btn{
  min-height:48px;border-radius:12px;padding-inline:18px;font-size:14px;
  box-shadow:none;background:#1f2933;color:#fff;border-color:#1f2933
}
#view-stock .inventory-header-actions>#new-product-btn:hover{background:#303d4a}
#view-stock .inventory-header-actions>.secondary,
#view-stock .inventory-header-actions>.inventory-subnav-btn,
#view-stock .inventory-header-actions .action-menu>summary{min-height:46px;border-radius:12px;font-size:13px}
#view-stock .inventory-subnav{margin-top:5px}
#view-stock .inventory-empty-help{box-shadow:none;border-color:#e2e5e9}
#view-stock .inventory-empty-help>strong{font-size:19px}

/* An iPhone is never a quantity-only product: show one direct IMEI action. */
#product-form .phone-entry-warning{
 display:grid;gap:8px;padding:13px 14px;background:#fff8ee;color:#684523;
 border:1px solid #e9d7bc;border-radius:12px;font-size:12px;line-height:1.4
}
#product-form .phone-entry-warning[hidden]{display:none!important}
#product-form .phone-entry-warning strong{font-size:14px;font-weight:720}
#product-form .phone-entry-warning span{color:#775f46}
#product-form .phone-entry-warning button{
 min-height:47px;width:100%;border-radius:10px;background:#fff;color:#263544;
 border:1px solid #cfc6b7;font-size:14px;font-weight:710
}
#product-form .phone-entry-warning button:focus-visible{outline:2px solid #4976a0;outline-offset:2px}

/* Create/edit product sheet: two essential fields, no intermediate chooser. */
#overlay .modal:has(#product-form){width:min(100%,520px);padding:25px;max-height:min(92dvh,780px)}
#overlay .modal:has(#product-form) #modal-title{margin-bottom:14px;font-size:22px;line-height:1.24}
#product-form{gap:16px;min-width:0}
#product-form .product-editor-intro{display:grid;gap:5px;margin:0}
#product-form .product-editor-intro strong{font-size:14px;font-weight:700;line-height:1.3;color:#26313b}
#product-form .product-editor-intro p{margin:0;font-size:12px;line-height:1.45;color:#7b848e}
#product-form .product-editor-fields{display:grid;gap:14px}
#product-form .product-editor-fields>label{display:grid;gap:7px;font-size:13px;font-weight:670;color:#323b45}
#product-form .product-editor-fields>label>input{
  width:100%;height:54px;min-height:54px;padding:13px 15px;
  border:1px solid #d9dfe5;border-radius:12px;font-size:16px;font-weight:550;
  color:#1e2731;background:#fff;box-shadow:none;min-width:0
}
#product-form .product-editor-fields>label>input::placeholder{font-weight:450;color:#a0a8b0}
#product-form .product-editor-fields>label>input:focus{outline:2px solid #7590aa;outline-offset:1px;border-color:#8ba2b7}
#product-form .product-money-field{
  display:flex;align-items:center;min-width:0;min-height:54px;
  border:1px solid #d9dfe5;background:#fff;border-radius:12px;overflow:hidden
}
#product-form .product-money-field:focus-within{outline:2px solid #7590aa;outline-offset:1px;border-color:#8ba2b7}
#product-form .product-money-field>span{
  flex:0 0 auto;padding:0 14px 0 16px;font-size:18px;font-weight:700;
  color:#647383;font-variant-numeric:tabular-nums
}
#product-form .product-money-field>input{
  flex:1;min-width:0;width:100%;min-height:52px;border:0!important;
  border-radius:0!important;background:transparent!important;outline:none!important;
  box-shadow:none!important;padding:12px 12px 12px 0;
  color:#1f2833;font-size:21px;font-weight:690;letter-spacing:-.026em
}
#product-form .inventory-similar-products{grid-column:1/-1;margin:0;background:#f8fafc;border:1px solid #e0e5eb;border-radius:12px;padding:8px 11px}
#product-form .inventory-similar-products:empty{display:none}
#product-form .inventory-similar-products>p{margin:5px 2px 7px;color:#526371;font-size:12px;line-height:1.4}
#product-form .inventory-similar-products>button{border:1px solid #e0e4e9;background:#fff;border-radius:9px;padding:10px 12px;font-size:12px;font-weight:570}
#product-form .advanced-product{margin:0;border-top:1px solid #eceff2;padding-top:2px}
#product-form .advanced-product>summary{min-height:43px;display:flex;align-items:center;cursor:pointer;color:#5d6c79;font-size:12px;font-weight:630;list-style:inside}
#product-form .product-more{margin-top:7px;display:grid;gap:11px}
#product-form .product-more input{min-height:45px;background:#fff}
#product-form .product-editor-footer{display:grid;gap:12px}
#product-form .product-stock-explainer{
  margin:0;padding:12px 13px;background:#f6f8fa;border-radius:11px;
  color:#55636f;font-size:12px;line-height:1.45;font-weight:520
}
#product-form .product-submit{
  width:100%;min-height:55px;border:0;border-radius:12px;background:#1f2933;color:#fff;
  font-size:15px;font-weight:720;letter-spacing:-.015em
}
#product-form .product-submit:hover{background:#303d4a}
#product-form .product-submit:disabled{opacity:.6}
#overlay .product-success{display:grid;gap:9px;text-align:center}
#overlay .product-success .success-mark{
  display:grid;place-items:center;margin:1px auto 5px;width:45px;height:45px;
  border-radius:50%;background:#eaf3ee;color:#39704d;font-size:22px
}
#overlay .product-success>strong{font-size:19px;letter-spacing:-.03em}
#overlay .product-success>p{margin:0;color:#697681;font-size:13px;line-height:1.4}
#overlay .product-success .product-success-id{font-variant-numeric:tabular-nums;font-size:12px}
#overlay .product-success-actions{display:grid;gap:9px;margin-top:14px}
#overlay .product-success-actions>button{width:100%;min-height:47px;border-radius:11px}
#overlay .product-success-actions>.primary{min-height:53px;background:#1f2933;color:#fff}

@media(max-width:1100px){
 #view-sell .sell-home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:691px) and (max-width:980px){
 #view-sell .sell-home{grid-template-columns:repeat(2,minmax(0,1fr))}
 #view-sell .sell-desk{min-height:109px;padding:12px}
}
@media(max-width:690px){
 #view-sell .selling-left{padding:18px 15px 110px}
 #view-sell .search-wrap{min-height:54px;border-radius:14px}
 #view-sell .search-wrap input{min-height:50px;font-size:16px}
 #view-sell .sell-home{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:17px}
 #view-sell .sell-home-heading{margin-bottom:0}
 #view-sell .sell-home-heading h3{font-size:14px}
 #view-sell .sell-home-heading span{font-size:10px}
 #view-sell .sell-desk{min-height:108px;padding:12px;gap:5px;border-radius:14px}
 #view-sell .sell-desk-icon{width:27px;height:27px}
 #view-sell .sell-desk-icon svg{width:18px;height:18px}
 #view-sell .sell-desk strong{font-size:15px;line-height:1.18}
 #view-sell .sell-desk>span:last-child{font-size:10.5px}
 #view-sell .sell-stock-alert{display:grid;gap:11px;padding:13px}
 #view-sell .sell-stock-alert button{width:100%}
 #view-sell .sell-home-shortcuts{grid-template-columns:1fr;gap:8px}
 #view-sell .sell-home-shortcut{min-height:65px;padding:10px 12px}
 #view-sell .sell-home-product-list{grid-template-columns:1fr}
 #view-stock .section-head{gap:13px}
 #view-stock .inventory-header-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 #view-stock .inventory-header-actions>#new-product-btn{grid-column:1/-1;min-height:53px}
 #overlay .modal:has(#product-form){width:100%;max-height:94dvh;padding:22px 19px calc(19px + env(safe-area-inset-bottom))}
 #product-form .product-editor-fields>label>input{height:52px;min-height:52px}
 #product-form .product-money-field{min-height:52px}
 #product-form .product-money-field>input{min-height:50px}
}
@media(max-width:350px){
 #view-sell .sell-desk{padding:11px;min-height:104px}
 #view-sell .sell-desk strong{font-size:14px}
 #view-sell .sell-home-heading span{display:none}
}
@media(prefers-reduced-motion:reduce){
 #view-sell .sell-desk,#view-sell .search-wrap{transition:none}
}


/*
 * Counter-first iPad portrait navigation.
 * 691–900 CSS px previously showed icon-only navigation: staff could not
 * discover the available operations without memorising pictograms.
 *
 * Keep the full desktop layout above 900px and the existing phone drawer/tab
 * layout at 690px and below. This is strictly presentation-only: it cannot
 * affect checkout, stock, permission checks or network requests.
 */
@media (min-width:691px) and (max-width:900px) {
  .app-shell {
    grid-template-columns:92px minmax(0,1fr);
  }
  .sidebar {
    padding:16px 8px 10px;
    height:100dvh;
    min-height:0;
  }
  .sidebar-brand {
    min-height:47px;
    flex:0 0 auto;
  }
  .store-pill {
    margin:8px 0 11px;
    flex:0 0 auto;
  }
  .sidebar .nav-list {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:3px;
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:rgba(215,248,138,.34) transparent;
    padding:2px 0 8px;
  }
  .sidebar .nav-item {
    flex:0 0 auto;
    width:100%;
    min-height:58px;
    height:auto;
    padding:8px 4px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    font-size:11px;
    line-height:1.15;
    font-weight:650;
    letter-spacing:0;
    text-align:center;
    white-space:normal;
    overflow-wrap:break-word;
  }
  .sidebar .nav-ico {
    width:22px;
    height:22px;
    flex:0 0 22px;
  }
  .sidebar .nav-item:active {
    background:#285843;
  }
  .sidebar .nav-item.active:active {
    background:var(--one-lime);
  }
  .sidebar .sidebar-bottom {
    margin-top:4px;
    padding:7px 0 1px;
    flex:0 0 auto;
  }
  /* The existing compact sign-out icon was white on the light iStore rail. */
  .sidebar #signout {
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:48px;
    height:auto;
    padding:8px 3px;
    border:1px solid #d6e5d9;
    border-radius:12px;
    background:#edf5ee;
    color:#1b5138;
    font-size:11px;
    font-weight:700;
    line-height:1.2;
    text-align:center;
  }
  .sidebar #signout::before {
    display:none;
    content:none;
  }
  .sidebar #signout:active {
    background:#dceadd;
  }
  .view-sell {
    grid-template-columns:minmax(0,1fr) minmax(260px,290px);
  }
  .selling-left {
    min-width:0;
    padding-left:17px;
    padding-right:17px;
  }
  .cart-head,.cart-summary {
    padding-left:14px;
    padding-right:14px;
  }
}

/* Stable line-art icons: never depend on symbol fonts on iOS/Android. */
#view-sell .sell-home-shortcut .sell-shortcut-icon svg {
  display:block;
  width:19px;
  height:19px;
  flex:none;
  stroke:currentColor;
}

/* Shared-register tap comfort, without enlarging the checkout layout. */
#cart-close, #clear-cart {
  min-width:44px;
  min-height:44px;
}
@media(max-width:690px) {
  .topbar #mobile-menu,
  .topbar #camera-btn,
  .topbar #switch-user {
    min-width:44px;
    min-height:44px;
  }
  .topbar #mobile-menu, .topbar #camera-btn {
    width:44px;
    height:44px;
  }
}

/* One real workshop destination: do not show empty or dead retail tabs. */
@media(max-width:690px){
  .app-shell.is-technician .mobile-tabbar{
    grid-template-columns:minmax(0,1fr);
  }
  .app-shell.is-technician .mobile-tab[data-mobile-view="repairs"]{
    min-height:54px;
    font-size:12px;
  }
}

/* On phones the cart is not open before the first item, so cash-shift setup
   must be discoverable directly on the initial Sell screen. */
#view-sell .sell-shift-gate {display:none}
@media(max-width:690px){
  #view-sell .sell-shift-gate:not([hidden]){
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:11px;
    padding:14px;
    margin:10px 0 14px;
    border:1px solid #dfcdae;
    border-radius:14px;
    background:#fffaf0;
    color:#563e18;
  }
  #view-sell .sell-shift-gate>div{display:grid;gap:4px;min-width:0}
  #view-sell .sell-shift-gate strong{font-size:14px;line-height:1.25}
  #view-sell .sell-shift-gate span{font-size:12px;line-height:1.45}
  #view-sell .sell-shift-gate button{
    width:100%;
    min-height:48px;
    font-size:14px;
    border-radius:11px;
  }
}

/* Accountable cashbox operations: mobile-first form and touch-size history. */
.exec-drawer-controls button{min-height:48px;font-size:12px}
#drawer-movement-form{display:grid;gap:14px}
#drawer-movement-form label{display:grid;gap:6px}
#drawer-movement-form select,#drawer-movement-form input,#drawer-movement-form textarea{
 width:100%;min-height:46px;font-size:16px;
}
#drawer-movement-form textarea{min-height:76px;resize:vertical}
#drawer-movement-form button{width:100%;min-height:48px}
#drawer-movement-status{line-height:1.5}
.drawer-movement-history{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
.drawer-movement-history summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700;font-size:13px}
#drawer-movement-history-list{margin-top:8px;overflow-wrap:anywhere}
#drawer-movement-history-list .dash-row{align-items:flex-start;gap:10px}
#drawer-movement-history-list .dash-row span{min-width:0;flex:1}
@media(max-width:690px){
 #overlay .modal:has(#drawer-movement-form){max-height:94dvh;overflow-y:auto}
 .exec-drawer-controls button{font-size:13px}
}
