.stock-app { background: var(--zoa-bg); }
.stock-sidebar { display: flex; flex-direction: column; }
.stock-brand { display: flex; align-items: center; gap: 12px; padding: 0 12px 24px; color: #fff; text-decoration: none; font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.stock-brand img { width: 34px; height: 34px; color: #fff; filter: invert(1); }
.stock-nav-disabled { display: flex; justify-content: space-between; padding: 10px 12px; color: #777; font-weight: 600; }
.stock-nav-disabled small { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.stock-mode { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid #333; color: #aaa; font-size: 12px; }
.stock-mode strong { color: #fff; }
.stock-content { max-width: 1180px; margin: 0 auto; }
.stock-page-heading { margin-bottom: 22px; }
.stock-lead, .stock-file-name { margin: 7px 0 0; }
.stock-eyebrow { display: block; margin-bottom: 6px; color: var(--zoa-text-muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.stock-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stock-action-card { position: relative; min-height: 172px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; overflow: hidden; background: #fff; border: 1px solid var(--zoa-border); border-radius: var(--zoa-radius-lg); color: var(--zoa-text); text-decoration: none; box-shadow: var(--zoa-shadow-subtle); }
.stock-action-card:hover { border-color: #111; }
.stock-action-card:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.stock-action-index { position: absolute; top: 18px; left: 22px; color: #aaa; font-family: var(--zoa-font-mono); font-size: 12px; }
.stock-action-label { max-width: 85%; font-size: 22px; font-weight: 800; line-height: 1.15; }
.stock-action-help { margin-top: 7px; color: var(--zoa-text-muted); font-size: 13px; }
.stock-action-arrow { position: absolute; right: 22px; bottom: 21px; font-size: 24px; }
.stock-info-box { margin-top: 20px; display: grid; gap: 3px; }
.stock-back { display: inline-block; margin-bottom: 18px; color: var(--zoa-text-muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.stock-back:hover { color: #111; }
.stock-route-strip { display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 18px; padding: 15px 18px; background: #111; color: #fff; border-radius: var(--zoa-radius-lg); }
.stock-route-strip > div:not(.stock-route-arrow) { display: grid; gap: 3px; }
.stock-route-strip span { color: #aaa; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.stock-route-strip strong { font-size: 14px; }
.stock-route-arrow { color: #aaa; font-size: 21px; text-align: center; }
.stock-route-strip-compact { margin-bottom: 14px; }
.stock-upload-panel { max-width: 760px; }
.stock-file-drop { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; border: 2px dashed var(--zoa-border-strong); border-radius: var(--zoa-radius-md); background: var(--zoa-bg); text-align: center; cursor: pointer; }
.stock-file-drop:hover { border-color: #111; background: #fff; }
.stock-file-drop:focus-within { outline: 3px solid #111; outline-offset: 2px; }
.stock-file-drop span { color: var(--zoa-text-muted); font-size: 13px; }
.stock-file-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #111; border-radius: 50%; color: #111 !important; font-size: 20px !important; }
.stock-file-drop input { max-width: 100%; margin-top: 10px; font: inherit; font-size: 13px; }
.stock-form-note { margin: 14px 0 0; color: var(--zoa-text-muted); font-size: 13px; }
.stock-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.stock-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stock-kpi-text { font-size: 17px; line-height: 1.3; }
.stock-diagnostic { display: grid; gap: 2px; margin-bottom: 8px; }
.stock-lines-panel { margin-top: 16px; overflow: hidden; }
.stock-lines-panel .zoa-table-wrap { border: 0; border-radius: 0; }
.stock-lines-panel .zoa-table { white-space: normal; }
.stock-ean { font-family: var(--zoa-font-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.stock-lines-mobile { display: none; }
.stock-final-state { display: grid; gap: 3px; margin-top: 16px; }
.stock-summary-actions { padding-bottom: 28px; }
.stock-user-menu { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; }
.stock-user-menu form { margin: 0; }
.stock-logout { padding: 0; border: 0; background: transparent; color: var(--zoa-text-muted); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.stock-login-page { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: #111; }
.stock-login-card { width: min(100%, 430px); display: grid; gap: 24px; padding: 34px; background: #fff; border-radius: var(--zoa-radius-lg); box-shadow: 0 20px 55px rgba(0, 0, 0, .28); }
.stock-login-brand { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 800; }
.stock-login-brand img { width: 42px; height: 42px; }
.stock-login-form { display: grid; gap: 18px; }
.stock-login-form .zoa-btn { width: 100%; min-height: 46px; }
.stock-mobile-user { display: none; }
@media (max-width: 900px) {
  .stock-sidebar { min-height: auto; padding: 12px 16px; flex-direction: row; align-items: center; justify-content: space-between; }
  .stock-brand { padding: 0; }
  .stock-brand img { width: 30px; height: 30px; }
  .stock-nav, .stock-mode { display: none; }
  .stock-header { display: none; }
  .stock-mobile-user { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; }
  .stock-mobile-user button { padding: 5px 8px; border: 1px solid #555; border-radius: var(--zoa-radius-md); background: transparent; color: #fff; font: inherit; }
  .stock-content { padding-top: 22px; }
}
@media (max-width: 620px) {
  .stock-action-grid { grid-template-columns: 1fr; }
  .stock-action-card { min-height: 138px; }
  .stock-route-strip { grid-template-columns: 1fr; gap: 8px; }
  .stock-route-arrow { transform: rotate(90deg); text-align: left; padding-left: 4px; }
  .stock-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-kpis .zoa-kpi:last-child { grid-column: 1 / -1; }
  .stock-lines-desktop { display: none; }
  .stock-lines-mobile { display: block; }
  .stock-line-card { padding: 14px 16px; border-bottom: 1px solid var(--zoa-border); }
  .stock-line-card:last-child { border-bottom: 0; }
  .stock-line-top { display: flex; justify-content: space-between; gap: 12px; color: var(--zoa-text-muted); font-size: 12px; }
  .stock-line-top strong { color: var(--zoa-text); }
  .stock-line-name { margin: 8px 0 4px; font-weight: 700; }
  .stock-form-actions { flex-direction: column-reverse; }
  .stock-form-actions .zoa-btn { width: 100%; min-height: 46px; }
}
