
/* Stable calculator slots: choosing, adding and correcting never collapse controls. */
.receiving-app.thumb-mode .modal-body{padding:6px 12px}
.receiving-app.thumb-mode .modal-body>.intake-wizard{height:auto;min-height:0}
.receiving-app.thumb-mode .wizard-step{min-height:0;flex:0 0 auto}
.receiving-app.thumb-mode #receive-save{display:none}
.receiving-app .thumb-calculator{gap:6px;flex:0 0 auto}
.receiving-app #thumb-composer,.receiving-app .has-pending-entry #thumb-composer{margin-top:0;padding:0;border:0;border-radius:0;gap:6px;background:transparent}
.receiving-app .thumb-types,.receiving-app .has-pending-entry .thumb-types{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;overflow:visible}
.receiving-app .thumb-types button{width:100%;min-width:0;min-height:48px;height:48px;padding:4px 0;font-size:18px}
.receiving-app .thumb-grades,.receiving-app .has-pending-entry .thumb-grades{height:58px}
.receiving-app .thumb-grades button,.receiving-app .has-pending-entry .thumb-grades button{height:58px;min-height:58px}
.receiving-app .thumb-grades strong{font-size:20px}
.receiving-app .bk-grades [data-id="euro_painted:not_applicable"] strong{font-size:15px}
.receiving-app .thumb-entry,.receiving-app .thumb-entry.waiting-entry,.receiving-app .has-pending-entry .thumb-entry{display:grid;gap:5px}
.receiving-app .thumb-quantity{height:62px;box-sizing:border-box;padding:3px 8px}
.receiving-app .thumb-quantity>label,.receiving-app .has-pending-entry .thumb-quantity>label{max-width:145px;line-height:1.1}
.receiving-app .thumb-quantity>label small,.receiving-app .has-pending-entry .thumb-quantity>label small{display:block}
.receiving-app .thumb-quantity input{min-width:50px;width:65px;min-height:48px;height:48px;font-size:34px}
.receiving-app #thumb-preview,.receiving-app .has-pending-entry #thumb-preview{height:32px;min-height:32px;overflow:auto;line-height:1.1;font-size:14px}
.receiving-app .thumb-keypad button{height:48px;min-height:48px;font-size:28px}
.receiving-app .thumb-add,.receiving-app .has-pending-entry .thumb-add{height:50px;min-height:50px}
.receiving-app .batch-scroll,.receiving-app .has-pending-entry .batch-scroll,.receiving-app .batch-scroll:has(.batch-empty){display:block;height:100px;max-height:100px;min-height:100px}
.receiving-app .batch-table thead,.receiving-app .has-pending-entry .batch-table thead{display:table-header-group}
.receiving-app .batch-total,.receiving-app .has-pending-entry .batch-total{height:36px;box-sizing:border-box;padding:4px 8px}
.receiving-app .batch-note{display:none}
.receiving-app .thumb-batch{position:relative;gap:4px}
.receiving-app .batch-heading,.receiving-app .thumb-batch #calc-tools>summary,.receiving-app .has-pending-entry .thumb-batch #calc-tools>summary{height:44px;min-height:44px}
.receiving-app .thumb-batch #calc-tools{padding:0 8px}
.receiving-app .thumb-batch #thumb-status{display:block;min-height:28px;height:28px;overflow:auto;font-size:14px;margin:0}
.receiving-app .thumb-batch #thumb-undo:not(:empty){position:absolute;bottom:0;left:0;right:0;height:28px;z-index:2}
.receiving-app .thumb-undo{height:28px}
.receiving-app .thumb-undo button{min-height:28px;height:28px;padding:1px 12px}
.receiving-app .ns-grade-slot{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.receiving-app .ns-size-choice{font-size:19px}
.receiving-app #calc-tools[open],.receiving-app .ns-sheet:not([hidden]){
 position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,560px);max-height:85dvh;overflow:auto;z-index:40;
 background:white;border:1px solid #abc5b6;border-radius:18px 18px 0 0;padding:16px 16px max(20px,env(safe-area-inset-bottom));
 box-shadow:0 0 0 200vmax #102d2080;box-sizing:border-box
}
.receiving-app #calc-tools[open]{grid-column:auto}
.receiving-app .calc-tools-close{display:none}
.receiving-app #calc-tools[open]>.calc-tools-close{display:block;width:100%;margin-bottom:12px}
.receiving-app .ns-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.receiving-app .recovery-status{font-size:14px;line-height:1.3;min-height:36px;margin:0 0 6px;color:#263d30}
.receiving-app .recovery-status[data-kind=error]{color:#a51e19;font-weight:700}
.receiving-app.thumb-mode .recovery-status{height:36px;overflow:auto}
.receiving-app .client-scratch{padding:16px;border:2px solid #9dbdab;border-radius:16px;background:#f4f8f5;margin-bottom:24px}
.receiving-app .client-scratch h2{font-size:23px;margin:0 0 10px}
.receiving-app .client-scratch p{font-size:16px;color:#26332b}
.receiving-app .client-scratch textarea{width:100%;min-height:110px;resize:vertical;font-size:20px;line-height:1.4;color:#141b17}
.receiving-app [data-card-number]{font-variant-numeric:tabular-nums;font-size:22px;letter-spacing:.03em;color:#111}
.receiving-app .card-number-help{min-height:44px;margin:6px 0 16px;font-size:15px}
.receiving-app .card-number-help.is-error{color:#a51e19}
.receiving-app .card-number-help.is-valid{color:#155a38}
.receiving-app .recovery-conflict{border:2px solid #ad7324;background:#fff7e7;padding:16px;border-radius:12px}
.receiving-app .recovery-conflict button{width:100%;margin-top:10px}
.receiving-app .client-photo-options .load-photos button{padding:0;border:0}
@media(orientation:landscape) and (min-width:700px){
 .receiving-app .thumb-calculator{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,1fr);align-items:start}
 .receiving-app .batch-scroll,.receiving-app .has-pending-entry .batch-scroll{height:220px;min-height:220px;max-height:220px}
}

@media(max-height:849px) and (orientation:portrait){
 .receiving-app.thumb-mode .receiving-header{height:48px;min-height:48px;padding:2px 12px}
 .receiving-app.thumb-mode .receiving-header small{display:none}
 .receiving-app.thumb-mode .receiving-header button{height:44px;min-height:44px}
 .receiving-app.thumb-mode .modal-body{padding:4px 12px}
 .receiving-app.thumb-mode .recovery-status{height:32px;min-height:32px;line-height:16px;margin-bottom:2px}
 .receiving-app .batch-scroll,.receiving-app .has-pending-entry .batch-scroll,.receiving-app .batch-scroll:has(.batch-empty){height:82px;min-height:82px;max-height:82px}
 .receiving-app .batch-total{display:none}
 .receiving-app .thumb-batch #thumb-status{height:24px;min-height:24px}
 .receiving-app .thumb-quantity{height:56px}
 .receiving-app #thumb-preview,.receiving-app .has-pending-entry #thumb-preview{height:28px;min-height:28px}
 .receiving-app .thumb-keypad button{height:44px;min-height:44px}
 .receiving-app .thumb-add,.receiving-app .has-pending-entry .thumb-add{height:48px;min-height:48px}
}

.exchange-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px}
.receiving-app .exchange-tabs button{min-height:62px;padding:8px 12px;border:2px solid #bbc8c0;background:#fff;color:#171d19;border-radius:14px;text-align:left;line-height:1.2}
.exchange-tabs strong{display:block;font-size:21px}
.exchange-tabs small{display:block;font-size:14px;margin-top:4px}
.receiving-app .exchange-tabs .active{border-color:#165d45;background:#e2f1e7;box-shadow:inset 0 -3px #165d45}
.exchange-review{border:1px solid #c3d0c8;border-radius:14px;padding:14px;margin:16px 0;background:#fff;color:#111}
.exchange-review h3{margin:0 0 12px}
.exchange-table-wrap{overflow-x:auto}
.exchange-table{width:100%;border-collapse:collapse;font-size:18px;margin:12px 0}
.exchange-table th,.exchange-table td{padding:10px 4px;border-bottom:1px solid #dbe3dd;text-align:right}
.exchange-table th:first-child,.exchange-table td:first-child{text-align:left}
.exchange-net{padding:16px;border-radius:14px;background:#e2f1e7;color:#111}
.exchange-net strong,.exchange-net small{display:block}
.exchange-net strong{font-size:28px}
.receiving-app.exchange-mode .wizard-summary{display:block}
.receiving-app.exchange-mode .wizard-summary small{font-size:15px}
.receiving-app.exchange-mode .wizard-summary strong{font-size:25px}
.receiving-app.exchange-mode.thumb-mode .exchange-tabs{margin-bottom:8px}

.receiving-app.exchange-mode.thumb-mode .receiving-header{height:64px;min-height:64px;padding:4px 8px}
.receiving-app.exchange-mode .receiving-header>.exchange-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0;flex:1}
.receiving-app.exchange-mode .receiving-header .exchange-tabs button{height:54px;min-height:54px;padding:4px;letter-spacing:0}
.receiving-app.exchange-mode .receiving-header .exchange-tabs strong{font-size:17px!important;white-space:nowrap}
.receiving-app.exchange-mode .receiving-header .exchange-tabs small{display:block!important;font-size:12px;letter-spacing:0;margin-top:3px;white-space:nowrap}
.receiving-app.exchange-mode.thumb-mode .recovery-status{height:24px;min-height:24px;line-height:24px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.receiving-app.exchange-mode.thumb-mode .recovery-status[data-kind=error]{height:auto;white-space:normal}

@media(max-height:780px) and (orientation:portrait){
 .receiving-app.exchange-mode.thumb-mode .receiving-header{height:56px;min-height:56px}
 .receiving-app.exchange-mode .receiving-header .exchange-tabs button{height:48px;min-height:48px}
 .receiving-app.exchange-mode.thumb-mode .recovery-status{height:16px;min-height:16px;line-height:16px}
 .receiving-app.exchange-mode .thumb-batch #thumb-status{height:0;min-height:0;overflow:hidden}
 .receiving-app.exchange-mode .thumb-types button{height:44px;min-height:44px}
 .receiving-app.exchange-mode .thumb-grades,.receiving-app.exchange-mode .has-pending-entry .thumb-grades{height:48px}
 .receiving-app.exchange-mode .thumb-grades button,.receiving-app.exchange-mode .has-pending-entry .thumb-grades button{height:48px;min-height:48px}
 .receiving-app.exchange-mode #thumb-preview,.receiving-app.exchange-mode .has-pending-entry #thumb-preview{height:24px;min-height:24px}
}
