/* Read-only ATM details share the Settings/Gallery design language. */
.amv-machine-view,.amv-drawer-editor{--amv-wine:var(--kpv-ci-burgundy,#660015);--amv-gold:var(--kpv-ci-gold,#ffc781);--amv-ink:#3b2630;--amv-muted:#827078;--amv-line:#eadfe2;--amv-paper:#fff;--amv-soft:#faf6f5;color:var(--amv-ink);min-width:0}
.dark .amv-machine-view,.dark .amv-drawer-editor{--amv-wine:#ffc781;--amv-ink:#f6e9ed;--amv-muted:#bba7af;--amv-line:#4d3440;--amv-paper:#261e25;--amv-soft:#30242c}
.amv-view-modal .fi-modal-header{background:var(--amv-paper,#fff);border-bottom:1px solid #eadfe2}
.amv-view-modal .fi-modal-heading{color:var(--kpv-ci-burgundy,#660015);font-size:20px;font-weight:600}
.amv-view-modal .fi-modal-content{padding:20px;background:#faf8f8}
.dark .amv-view-modal .fi-modal-header{background:#261e25;border-color:#4d3440}.dark .amv-view-modal .fi-modal-heading{color:#ffc781}.dark .amv-view-modal .fi-modal-content{background:#20191f}
.amv-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.amv-machine-heading{min-width:0;flex:1}.amv-machine-heading h2{margin:0;color:var(--amv-wine);font-size:18px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}.amv-machine-heading p{margin:4px 0 0;font-size:12px;color:var(--amv-muted);overflow-wrap:anywhere}
/* Native View header actions follow the same quiet 40px geometry as Settings. */
.amv-toolbar .fi-ac{flex:none;gap:8px}
:is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-header-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border:1px solid transparent;border-radius:9px;padding:8px 13px;font-size:13px;font-weight:500;line-height:1.4;box-shadow:none;transition:background-color .16s,border-color .16s,color .16s}
:is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-header-action .fi-btn-icon{width:16px;height:16px;flex:none;stroke-width:1.65}
:is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-action-close{background:var(--amv-soft,#faf6f5);color:var(--amv-muted,#827078)}
:is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-action-close .fi-btn-icon{color:currentColor}
:is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-action-close:hover{background:#f1e9eb;color:#660015}
:is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-action-edit{background:var(--amv-paper,#fff);border-color:var(--amv-line,#eadfe2);color:var(--amv-wine,#660015)}
:is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-action-edit .fi-btn-icon{color:currentColor}
:is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-action-edit:hover{background:var(--amv-soft,#faf6f5);border-color:#c9a8b1}
:is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-action-refill{background:#660015;border-color:#660015;color:#fff8ee}
:is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-action-refill .fi-btn-icon{color:#ffc781}
:is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-action-refill:hover{background:#7d162f;border-color:#7d162f}
:is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-header-action:focus-visible{outline:2px solid #b7864e;outline-offset:3px}
.dark :is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-action-close{background:#30242c;color:#bba7af}.dark :is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-action-close:hover{background:#3d2b35;color:#ffc781}
.dark :is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-action-edit{background:#261e25;border-color:#68434f;color:#ffc781}.dark :is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-action-edit:hover{background:#30242c;border-color:#9d7380}
.dark :is(.amv-toolbar,.fi-resource-atm-machines .fi-header) .amv-action-refill{border-color:#985166}

.amv-machine-view{display:grid;gap:20px;font-family:inherit}
.amv-overview{display:grid;grid-template-columns:154px minmax(0,1fr);gap:24px;align-items:center;padding:16px 24px 16px 12px;background:var(--amv-paper);border:1px solid var(--amv-line);border-radius:16px}
.amv-overview-art{height:170px;min-width:0;overflow:hidden}.amv-overview-art .km-scene{width:100%;height:100%;--km-cycle:16s}.amv-overview-art .km-service-camera{animation:none;transform:none}
.amv-overview-heading{display:flex;align-items:center;gap:11px}.amv-overview-heading>div{min-width:0;flex:1}
.amv-section-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border:1px solid #ffc78155;border-radius:11px;background:#660015;color:#ffc781}.amv-section-icon svg{width:21px;height:21px;stroke-width:1.6}
.amv-overview h2,.amv-slots-heading h2{margin:0;color:var(--amv-wine);font-size:16px;line-height:1.6;font-weight:600}
.amv-overview-heading p,.amv-slots-heading p{margin:3px 0 0;color:var(--amv-muted);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.amv-overview .km-motion-control{position:static;flex:none;width:32px;height:32px;border:1px solid var(--amv-line);background:transparent;color:var(--amv-wine)}
.amv-summary{display:grid;grid-template-columns:1.3fr repeat(3,minmax(0,1fr));gap:16px;margin:19px 0 0}
.amv-summary>div{min-width:0}.amv-summary dt{font-size:11px;color:var(--amv-muted);line-height:1.7}.amv-summary dd{margin:3px 0 0;font-size:25px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums}.amv-summary-gold dd{color:var(--amv-wine)}.amv-summary dd span{font-size:11px;font-weight:400;color:var(--amv-muted)}
.amv-occupancy{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--amv-muted);margin-top:14px}.amv-occupancy-track{display:block;flex:1;max-width:220px;height:4px;border-radius:9px;background:var(--amv-soft);overflow:hidden}.amv-occupancy-track>span{display:block;height:100%;border-radius:inherit;background:#b78b58}
.amv-slots-panel{min-width:0;background:var(--amv-paper);border:1px solid var(--amv-line);border-radius:16px;overflow:hidden}
.amv-slots-heading{display:flex;align-items:center;gap:11px;padding:17px 20px;border-bottom:1px solid var(--amv-line)}.amv-slots-heading>div{min-width:0;flex:1}.amv-slot-count{padding:4px 9px;white-space:nowrap;border:1px solid var(--amv-line);border-radius:999px;font-size:11px;color:var(--amv-muted);background:var(--amv-soft)}
.amv-slot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:20px}
/* The read-only cards share the refill Box layout, drawer art and number counter. */
.amv-slot{--slot-tone:#827078;--slot-soft:#f5f1f3;position:relative;min-width:0;display:grid;grid-template-rows:28px minmax(108px,1fr) 27px;min-height:165px;border:1px solid var(--amv-line);border-radius:12px;background:var(--amv-paper)}
.amv-slot::before{content:"";position:absolute;inset:-1px;pointer-events:none;border-radius:14px;background:linear-gradient(#c9ac81,#c9ac81) left top/12px 1px no-repeat,linear-gradient(#c9ac81,#c9ac81) left top/1px 12px no-repeat,linear-gradient(#c9ac81,#c9ac81) right top/12px 1px no-repeat,linear-gradient(#c9ac81,#c9ac81) right top/1px 12px no-repeat,linear-gradient(#c9ac81,#c9ac81) left bottom/12px 1px no-repeat,linear-gradient(#c9ac81,#c9ac81) left bottom/1px 12px no-repeat,linear-gradient(#c9ac81,#c9ac81) right bottom/12px 1px no-repeat,linear-gradient(#c9ac81,#c9ac81) right bottom/1px 12px no-repeat;opacity:.7}
.amv-slot.is-danger{--slot-tone:#9f2942;--slot-soft:#fbf0f2}.amv-slot.is-warning{--slot-tone:#90601c;--slot-soft:#fcf4e6}.amv-slot.is-success{--slot-tone:#10845f;--slot-soft:#edf7f1}
.amv-slot-top{display:flex;justify-content:flex-end;align-items:center;gap:8px;min-height:28px;padding:5px 12px 0}
.amv-slot-index{position:absolute;top:-1px;left:12px;display:flex;align-items:baseline;gap:6px;margin:0;padding:4px 9px 5px;border-radius:0 0 7px 7px;background:#660015;color:#ffc781;line-height:1.2}
.amv-slot-index small{font-size:9px;font-weight:400}.amv-slot-index strong{font-size:17px;font-weight:650;font-variant-numeric:tabular-nums}
.amv-slot-index.is-ready{background:#10845f;color:#fff;animation:amv-box-live 1.8s ease-in-out infinite}.amv-slot-index.is-empty{background:var(--amv-soft);color:var(--amv-muted)}.amv-slot-index.is-sold-out{background:#fff0d2;color:#885313}
.amv-slot-size{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;display:inline-flex;align-items:baseline;gap:3px;white-space:nowrap;color:var(--amv-muted);font-size:11px;font-weight:500;line-height:1.5}.amv-slot-size small{font-size:10px;font-weight:400}
.amv-slot-body{display:grid;grid-template-columns:minmax(64px,.4fr) minmax(0,1fr);align-items:center;gap:10px;padding:3px 12px 7px;min-width:0}
.amv-slot-visual{min-width:0;width:100%;max-width:100px;aspect-ratio:220/145;justify-self:center;pointer-events:none}.amv-slot-visual>.arf-drawer-art{display:block;width:100%;height:100%;overflow:visible}
.amv-slot-caption{min-width:0;text-align:start}.amv-slot-caption h4{margin:0;color:var(--amv-ink);font-size:14px;font-weight:650;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.amv-seal-detail{display:flex;align-items:baseline;gap:6px;min-width:0;margin:3px 0 0;font-size:11px;line-height:1.5}.amv-seal-detail dt{display:inline-flex;align-items:center;gap:3px;flex:none;color:var(--amv-muted)}.amv-seal-detail dt svg{width:12px;height:12px;flex:none}.amv-seal-detail dd{margin:0;min-width:0;color:var(--amv-wine);font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.amv-reject-detail{margin-top:1px}.amv-reject-detail dd{color:var(--amv-muted);font-weight:400}
.amv-stock-detail{display:flex;align-items:baseline;flex-wrap:nowrap;gap:8px;margin-top:5px}.amv-stock-quantity{display:flex;align-items:baseline;gap:5px;margin:0;white-space:nowrap;line-height:1.2}.amv-stock-quantity .arf-number{display:inline-block;min-width:.65em;color:var(--amv-wine);font-size:26px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.025em;line-height:1.1}.amv-stock-quantity>span:not(.arf-number){font-size:11px;color:var(--amv-muted)}.amv-stock-quantity small{font-size:10px}.amv-stock-weight{white-space:nowrap;font-size:12px;line-height:1.4;color:var(--amv-muted);font-variant-numeric:tabular-nums}.amv-stock-weight small{font-size:10px}
.amv-slot-bottom{display:flex;align-items:center;gap:6px;min-height:27px;padding:4px 11px;border-top:1px solid var(--amv-line)}
.amv-slot-product{display:flex;align-items:center;gap:5px;min-width:0;flex:1;font-size:11px;line-height:1.6;color:var(--amv-muted)}.amv-slot-product>svg{width:13px;height:13px;flex:none}.amv-slot-product>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.amv-slot-status{display:inline-flex;align-items:center;gap:3px;flex:none;max-width:55%;color:var(--slot-tone);font-size:10px;line-height:1.6}.amv-slot-status svg{width:12px;height:12px;flex:none}.amv-slot-status>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.amv-slot-empty{grid-column:1/-1;display:grid;justify-items:center;gap:8px;padding:45px 16px;text-align:center}.amv-empty-icon{color:#bd9968}.amv-empty-icon svg{width:45px;height:45px;stroke-width:1.2}.amv-slot-empty h3{margin:0;font-size:18px;font-weight:600;color:var(--amv-wine)}.amv-slot-empty p{margin:0;font-size:13px;line-height:1.8;color:var(--amv-muted)}
.dark .amv-slot{--slot-soft:#302b30;--slot-tone:#bba7af}.dark .amv-slot.is-danger{--slot-tone:#efa5b1;--slot-soft:#442b33}.dark .amv-slot.is-warning{--slot-tone:#e7c18c;--slot-soft:#433626}.dark .amv-slot.is-success{--slot-tone:#80ddb6;--slot-soft:#203a31}
@keyframes amv-box-live{0%,100%{opacity:1;box-shadow:0 0 0 0 #10845f00}45%{opacity:.58;box-shadow:0 0 0 4px #10845f1a}65%{opacity:1;box-shadow:0 0 0 0 #10845f00}}
.dark .amv-slot-index.is-sold-out{background:#4f3a21;color:#ffd08c}
@media(max-width:1023px){.amv-overview{grid-template-columns:124px minmax(0,1fr);gap:14px;padding:14px 18px 14px 8px}.amv-overview-art{height:160px}.amv-summary{gap:10px}.amv-summary dd{font-size:23px}.amv-slot-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding:16px}}
@media(max-width:767px){.amv-view-modal .fi-modal-content{padding:14px}.amv-toolbar{gap:12px;margin-bottom:16px}.amv-machine-heading{flex-basis:100%;width:100%}.amv-machine-heading h2{font-size:17px}.amv-toolbar .fi-ac{margin-left:0;flex-wrap:wrap}.amv-machine-view{gap:16px}.amv-overview{grid-template-columns:100px minmax(0,1fr);gap:10px;padding:12px}.amv-overview-art{height:160px}.amv-overview-heading .amv-section-icon{display:none}.amv-overview h2{font-size:15px}.amv-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.amv-summary dd{font-size:21px}.amv-summary dt{font-size:10px}.amv-occupancy{grid-column:1/-1;flex-wrap:wrap;gap:6px;margin-top:10px;font-size:10px}.amv-occupancy-track{max-width:none;min-width:35px}.amv-slots-heading{padding:14px;gap:9px;flex-wrap:wrap}.amv-slots-heading h2{font-size:15px}.amv-slots-heading p{font-size:11px}.amv-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.amv-slot-body{grid-template-columns:minmax(52px,.4fr) minmax(0,1fr);gap:8px;padding-inline:10px}.amv-slot-caption h4{font-size:13px}.amv-seal-detail{font-size:11px;gap:4px}.amv-stock-quantity .arf-number{font-size:24px}.amv-slot-bottom{padding-inline:9px}.amv-slot-status>span{display:none}}
@media(max-width:559px){.amv-slot-grid{grid-template-columns:minmax(0,1fr)}.amv-slot-body{grid-template-columns:minmax(64px,.4fr) minmax(0,1fr);gap:11px;padding-inline:12px}.amv-slot-caption h4{font-size:14px}.amv-seal-detail{font-size:11px;gap:6px}.amv-slot-status>span{display:inline}}
@media(prefers-reduced-motion:reduce),print{.amv-view-modal .fi-modal-window{transition:none!important}.amv-slot-index.is-ready{animation:none!important}}
.kpv-machine-record > div > div > .flex-1 > button{text-align:start}.kpv-machine-record > div > div > .flex-1 > button:focus-visible{outline:2px solid var(--kpv-ci-burgundy,#660015);outline-offset:4px}

.amv-reject-size{font-size:10px;font-weight:400;white-space:nowrap}.km-motion-paused .amv-slot-index.is-ready{animation-play-state:paused!important}

/* The occupied card itself opens read-only cassette details; empty slots stay quiet. */
.amv-slot.is-viewable{transition:border-color .18s,box-shadow .18s}
.amv-slot.is-viewable:hover{border-color:#bb919e;box-shadow:0 3px 12px #6600150b}
.amv-slot-open{position:absolute;inset:0;z-index:2;display:block;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer}
.amv-slot-open:focus-visible{outline:2px solid var(--amv-wine);outline-offset:3px}
.amv-slot-open:disabled{cursor:progress}
@media(prefers-reduced-motion:reduce),print{.amv-slot.is-viewable{transition:none}}
