/* Additions to the prototype styles for the connected product. */
.date-picker{cursor:pointer}
.date-picker input{background:none;border:0;color:inherit;font:inherit;padding:0;min-height:0;color-scheme:dark;cursor:pointer}
.date-picker input:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:4px}
.check-line{display:flex;align-items:flex-start;gap:10px;font-size:12px;color:var(--muted);margin:14px 0 4px;cursor:pointer;line-height:1.45}
.check-line input{width:18px;height:18px;flex:none;accent-color:var(--green);margin:0}
.check-line b{color:var(--ink);font-weight:650}
.auth-row{display:flex;gap:14px;flex-wrap:wrap}
.auth-row .field{min-width:140px}
.login-card .field select{width:100%;height:50px}
.login-card .form-error:empty,.form-panel .form-error:empty{display:none}
.login-card .form-error{margin:0 0 16px}
.login-card .login-back{background:none;border:0;cursor:pointer;font:inherit}
.login-form-wrap .login-card{max-height:none}
button.connection-link{background:none;border:0;cursor:pointer;font:inherit;color:inherit}
.row-delete{width:34px;height:34px;opacity:.65}
.row-delete:hover,.row-delete:focus-visible{opacity:1;color:var(--red)}
.row-delete svg{width:15px;height:15px}
.danger-link{color:var(--red)}
.danger-link svg{width:14px;height:14px}
.new-business{max-width:760px;margin:24px auto}
.pos-key{margin:16px 0;padding:18px;border:1px solid var(--line);border-radius:18px;background:#ffffff08;font-size:12px;display:grid;gap:10px;justify-items:start}
.pos-key p{margin:0}
.pos-key code,.pos-key pre{font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;background:#00000040;border-radius:10px;padding:10px 12px;margin:0;max-width:100%;overflow-x:auto;white-space:pre;user-select:all;direction:ltr;text-align:left}
.pos-key code{word-break:break-all;white-space:normal}
.pos-actions{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center}
.export-row{display:flex;flex-wrap:wrap;gap:10px;padding:0 24px 24px}
.export-row .btn{text-decoration:none}
.cabinet-table td small{color:var(--muted)}
.advice-list{padding:0 8px 12px}
.advice-list .step svg{width:15px;height:15px}
.cabinet-strip{border-color:var(--amber)}
.advice-field{margin:14px 0}
.advice-field input{width:100%}
.btn:disabled{opacity:.55;cursor:not-allowed}
[hidden]{display:none!important}
@media(max-width:760px){.export-row{padding:0 16px 18px}.auth-row{gap:0}}
.login-card .check-line{margin:4px 0 22px}
.day-picker{border:0;padding:0;margin:16px 0;display:flex;flex-wrap:wrap;gap:8px}
.day-picker legend{font-size:12px;font-weight:650;color:#d2e1d8;margin-bottom:8px;padding:0}
.day-picker label{cursor:pointer}
.day-picker input{position:absolute;opacity:0}
.day-picker span{display:block;padding:9px 14px;border:1px solid var(--line);border-radius:20px;font-size:12px;color:var(--muted)}
.day-picker input:checked+span{background:var(--lime);border-color:var(--green);color:var(--ink)}
.day-picker input:focus-visible+span{outline:2px solid var(--green);outline-offset:2px}
.sheet-wide{margin:14px 0}
.sheet-wide input{width:100%}
.check-line a,.app-footer a{color:var(--green)}
.cabinet-table td{vertical-align:top}
/* Carcass cutting */
.heading-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.cut-title{font-size:13px;margin:18px 0 8px}
.cut-rows{display:flex;flex-direction:column;gap:10px;margin-bottom:10px}
.cut-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.cut-row .field{min-width:150px}
.cut-summary{display:flex;flex-wrap:wrap;gap:8px 22px;margin:16px 0 4px;font-size:12px}
.cut-summary:empty{display:none}
.cut-summary small{color:var(--muted)}
.cuttings-panel{margin-top:22px}
.cuttings-panel td small.ingredient-price{white-space:normal;max-width:340px}
@media(max-width:760px){.heading-actions{justify-content:flex-start}.cut-row .field{min-width:calc(50% - 10px)}}
/* Caisse (till) */
@media(max-width:760px){.sidebar nav{grid-template-columns:repeat(6,minmax(0,1fr))}.sidebar .nav-item,[dir=rtl] .sidebar .nav-item{font-size:9px}}
.till{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:22px;align-items:start}
.till-today{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12px;color:var(--muted);margin-bottom:14px}
.till-today strong{color:var(--ink)}
.till-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.till-item{display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-height:96px;padding:16px;border-radius:18px;text-align:left;background:#ffffff0d;border:1px solid #ffffff1a;color:inherit;font-size:14px;font-weight:650;line-height:1.3;transition:transform .08s,background .15s}
.till-item strong{font-size:13px;color:#83eabb;font-weight:700}
.till-item:active{transform:scale(.97)}
.till-item.in-ticket{border-color:#83eabb88;background:#83eabb14}
.till-ticket{position:sticky;top:20px;padding:20px;display:flex;flex-direction:column;gap:14px}
.till-lines{display:flex;flex-direction:column;gap:2px;max-height:46vh;overflow:auto}
.till-empty{font-size:12px;color:var(--muted);padding:18px 0;text-align:center}
.till-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #ffffff12;font-size:13px}
.till-line small{display:block;font-size:11px;color:var(--muted)}
.till-line b{font-weight:700;white-space:nowrap}
.till-qty{display:flex;align-items:center;gap:8px;white-space:nowrap}
.till-qty button,.till-remove{width:32px;height:32px;border-radius:50%;background:#ffffff12;color:inherit;font-size:17px;line-height:1}
.till-remove{background:none;color:var(--muted)}
.till-total{display:flex;justify-content:space-between;align-items:baseline;font-size:14px;padding-top:4px}
.till-total strong{font-size:30px;font-weight:800;letter-spacing:-.02em}
.till-pay{display:flex;flex-direction:column;gap:12px}
.till-payment{width:100%}.till-payment button{flex:1;justify-content:center;padding:10px;font-size:13px}
.till-given{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;align-items:center;font-size:12px}
.till-given label{grid-column:1/-1;font-weight:650}
.till-given input{border:1px solid var(--line);background:white;padding:10px 12px;border-radius:12px;font-size:16px;color:var(--ink)}
.till-cash{min-height:56px;font-size:16px}
.till-weigh{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:16px;background:#83eabb12;border:1px solid #83eabb44}
.till-weigh label{font-size:13px;font-weight:700}
.till-weigh-row{display:flex;gap:8px}.till-weigh-row input{flex:1;font-size:18px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:white;color:var(--ink)}
.till-chips{display:flex;flex-wrap:wrap;gap:6px}
.till-chips button[data-till-kg]{padding:8px 12px;border-radius:20px;background:#ffffff14;color:inherit;font-size:12px;font-weight:650}
.till-bar{display:none}
.till-devices{margin-top:26px}
.till-devices-body{padding:0 22px 22px;display:flex;flex-direction:column;gap:16px}
.till-link{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:16px;background:#83eabb12;border:1px solid #83eabb44;font-size:12px}
.till-link input{width:100%;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:white;color:var(--ink);font-size:12px}
body.till-device .sidebar,body.till-device .topbar,body.till-device .app-footer{display:none}
body.till-device .app-shell{margin:0;padding-bottom:0}
.till-unpaired{max-width:520px;margin:60px auto;padding:30px;display:flex;flex-direction:column;gap:14px}
@media(max-width:900px){.till{grid-template-columns:1fr}.till-ticket{position:static}}
@media(max-width:760px){
 .till-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .till-item{min-height:84px;padding:14px;font-size:13px}
 .till{padding-bottom:70px}
 .till-bar{display:flex;position:fixed;left:10px;right:10px;bottom:calc(96px + env(safe-area-inset-bottom,0px));z-index:15;align-items:center;justify-content:space-between;gap:10px;padding:10px 10px 10px 18px;border-radius:30px;background:#0b1712f2;border:1px solid #83eabb55;box-shadow:0 10px 30px #0008;font-size:13px}
 .till-bar[aria-hidden=true]{display:none}
 .till-bar .btn{min-height:44px;padding:10px 20px}
 body.till-device .till-bar{bottom:calc(14px + env(safe-area-inset-bottom,0px))}
}
.till-given input,.till-weigh-row input,.till-link input{background:#0a1710;border:1px solid #ffffff26;color:#edf7f0;min-height:46px}
/* Audit fixes: cancellations, stock gaps, freshness, costs */
.cancel-reasons{border:0;padding:0;margin:0 0 14px;display:flex;flex-direction:column;gap:8px}
.cancel-reasons legend{font-size:12px;font-weight:700;margin-bottom:6px}
.cancel-reasons label{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:14px;border:1px solid #ffffff1f;cursor:pointer}
.cancel-reasons label:has(input:checked){border-color:#83eabb88;background:#83eabb10}
.cancel-reasons small{display:block;font-size:11px;color:var(--muted)}
small.shortfall{display:block;color:#f4c482;white-space:normal;max-width:320px;margin-top:3px}
.updated-at{display:inline-block;font-size:11px;color:var(--muted);margin-top:6px}
.cost-aside{display:flex;justify-content:space-between;gap:12px;margin-top:10px;padding-top:12px;border-top:1px dashed #ffffff22;opacity:.85}
.cost-aside small{display:block;font-size:11px;color:var(--muted)}
.cancelled-panel{margin-top:22px}
.reset-link{margin-bottom:22px;padding:18px}
.till-credentials{display:flex;flex-wrap:wrap;gap:10px 28px;font-size:13px}
.till-credentials strong{display:block;font-size:22px;letter-spacing:.06em;color:#83eabb}
.till-open-link{margin-top:14px;justify-content:center;width:100%;font-size:12px}

.start-guide{margin-bottom:22px}.start-guide .plan-row>div{flex:1;min-width:0}.start-guide .step svg{width:14px;height:14px}.start-guide .plan-row{align-items:center}.start-guide .plan-row.done{opacity:.6}.start-guide .plan-row .btn{flex-shrink:0}.guide-help{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:16px 24px 20px;font-size:12px;color:var(--muted)}
.access-strip.expired{background:linear-gradient(110deg,#5a3a1cd0,#2a1c1090);border-color:#e0a25a66}.beta-note{margin:6px 0 14px}
@media(max-width:760px){.start-guide .plan-row{padding:16px 17px}.start-guide .plan-row{flex-wrap:wrap}.start-guide .plan-row .btn{width:100%}.guide-help{padding:14px 17px 18px}}
