:root {
  --amt-ink: #172554;
  --amt-muted: #64748b;
  --amt-canvas: #f4f7fb;
  --amt-card: #ffffff;
  --amt-line: #d9e2f0;
  --amt-primary: #1d4ed8;
  --amt-primary-dark: #1e3a8a;
  --amt-primary-hover: #2563eb;
  --amt-primary-soft: #eaf2ff;
  --amt-success: #1d8b55;
  --amt-success-soft: #ddf7e7;
  --amt-warning: #a66403;
  --amt-warning-soft: #fff1c8;
  --amt-danger: #ba294a;
  --amt-danger-soft: #ffe2e9;
  --amt-radius: 4px;
  --amt-shadow: 0 6px 18px rgba(30, 58, 138, .08);
  --amt-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body.amt-app { min-height: 100vh; margin: 0; color: var(--amt-ink); font-family: var(--amt-font); background-color: var(--amt-canvas); background-image: linear-gradient(30deg, rgba(89, 102, 132, .04) 12%, transparent 12.5%, transparent 87%, rgba(89, 102, 132, .04) 87.5%), linear-gradient(150deg, rgba(89, 102, 132, .035) 12%, transparent 12.5%, transparent 87%, rgba(89, 102, 132, .035) 87.5%); background-size: 70px 70px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .72; }
.amt-icon { width: 1.15em; height: 1.15em; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.amt-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 3px; }

.amt-splash, .amt-login-page { min-height: 100vh; display: grid; place-items: center; padding: 32px; position: relative; overflow: hidden; }
.amt-splash__pattern { position: absolute; inset: 0; opacity: .65; pointer-events: none; background-image: linear-gradient(120deg, transparent 0 48%, rgba(29,78,216,.07) 48% 49%, transparent 49% 100%); background-size: 120px 120px; }
.amt-splash__card { width: min(640px, 100%); text-align: center; position: relative; padding: 72px 48px; border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.86); box-shadow: var(--amt-shadow); border-radius: 4px; backdrop-filter: blur(10px); }
.amt-splash__description { max-width: 420px; margin: 28px auto; color: var(--amt-muted); line-height: 1.65; }
.amt-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; color: #28355f; font-weight: 800; }
.amt-brand__mark { display: inline-block; letter-spacing: -5px; font-size: 54px; line-height: .9; font-weight: 900; text-shadow: 2px 2px 0 rgba(30, 58, 138, .08); }
.amt-brand__mark-full { display: inline; }
.amt-brand__mark-mini { display: none; letter-spacing: 0; }
.amt-brand__caption { display: inline-block; padding: 4px 14px; border-radius: 3px; background: rgba(31,41,72,.12); color: #5d6473; letter-spacing: -.4px; font-size: 14px; }
.amt-brand--hero .amt-brand__mark { font-size: clamp(56px, 9vw, 96px); }
.amt-brand--sidebar { margin: 0; text-align: center; }
.amt-brand--sidebar .amt-brand__mark { font-size: 32px; }
.amt-brand--sidebar .amt-brand__caption { font-size: 11px; padding: 3px 8px; }
.amt-brand--compact .amt-brand__mark { font-size: 25px; }

.amt-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 4px; font-weight: 760; font-size: 14px; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.amt-button:hover { transform: translateY(-1px); }
.amt-button .amt-icon { width: 18px; height: 18px; }
.amt-button--primary { background: linear-gradient(135deg, var(--amt-primary), var(--amt-primary-hover)); color: #fff; box-shadow: 0 8px 18px rgba(29, 78, 216, .20); }
.amt-button--primary:hover { background: linear-gradient(135deg, var(--amt-primary-dark), var(--amt-primary)); }
.amt-button--ghost { border-color: var(--amt-line); background: #fff; color: var(--amt-ink); }
.amt-button--ghost:hover { border-color: #bfdbfe; background: #f7faff; }
.amt-button--large { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.amt-button--full { width: 100%; }
.amt-icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--amt-line); border-radius: 4px; background: #fff; color: var(--amt-ink); font-weight: 800; transition: .18s ease; }
.amt-icon-button:hover { background: #f1f6ff; color: var(--amt-primary); border-color: #bfdbfe; }

.amt-login-layout { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(340px, 440px); width: min(960px, 100%); overflow: hidden; background: rgba(255,255,255,.84); border-radius: 4px; box-shadow: var(--amt-shadow); border: 1px solid #fff; }
.amt-login-layout__brand { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 56px; background: linear-gradient(150deg, rgba(29,78,216,.08), rgba(255,255,255,.7)); }
.amt-login-layout__brand p { color: var(--amt-muted); line-height: 1.6; max-width: 290px; margin: 0; }
.amt-login-layout__security { display: flex; align-items: center; gap: 9px; padding: 10px 12px; color: #516078; font-size: 12px; line-height: 1.45; text-align: left; border: 1px solid rgba(29,78,216,.14); background: rgba(255,255,255,.52); border-radius: 4px; }
.amt-login-layout__security .amt-icon { color: var(--amt-primary); flex: 0 0 auto; }
.amt-login-card { padding: 48px 50px; background: #fff; }
.amt-login-card__icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 18px; color: var(--amt-primary); background: var(--amt-primary-soft); border-radius: 4px; }
.amt-login-card__icon .amt-icon { width: 22px; height: 22px; }
.amt-login-card h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -1px; }
.amt-login-card > p { margin: 0 0 26px; color: var(--amt-muted); line-height: 1.55; }
.amt-auth-form p { margin: 0 0 17px; }
.amt-auth-form label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 740; }
.amt-auth-form input[type="text"], .amt-auth-form input[type="password"] { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--amt-line); border-radius: 4px; outline: none; color: var(--amt-ink); background: #fff; }
.amt-auth-form input:focus, .amt-field input:focus, .amt-field select:focus, .amt-field textarea:focus, .amt-search-form input:focus { border-color: var(--amt-primary); box-shadow: 0 0 0 3px rgba(29,78,216,.14); }
.amt-password-field { position: relative; display: block; }
.amt-password-field input { padding-right: 48px !important; }
.amt-password-toggle { position: absolute; inset: 3px 4px 3px auto; width: 38px; border: 0; border-radius: 4px; display: grid; place-items: center; background: transparent; color: var(--amt-muted); }
.amt-password-toggle:hover { color: var(--amt-primary); background: var(--amt-primary-soft); }
.amt-password-toggle .amt-icon { width: 19px; height: 19px; }
.amt-auth-form__options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 20px; }
.amt-auth-form__options a, .amt-auth-back { color: var(--amt-primary); font-size: 13px; font-weight: 750; }
.amt-auth-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.amt-auth-back .amt-icon { width: 16px; height: 16px; }
.amt-button--login { min-height: 48px; }
.amt-password-hint { color: var(--amt-muted); font-size: 12px; line-height: 1.5; }

.amt-app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); transition: grid-template-columns .22s ease; }
.amt-app-shell.is-sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.amt-sidebar { position: sticky; top: 0; align-self: start; min-height: 100vh; padding: 22px 16px 18px; background: rgba(255,255,255,.94); border-right: 1px solid var(--amt-line); backdrop-filter: blur(12px); display: flex; flex-direction: column; z-index: 20; overflow: visible; }
.amt-sidebar__top { min-height: 54px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 0 0 26px; }
.amt-icon-button--collapse { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 4px; }
.amt-sidebar__top .amt-brand { min-width: 0; }
.amt-nav { display: grid; gap: 6px; }
.amt-nav__link { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 10px 12px; border-radius: 4px; font-size: 14px; color: #596174; font-weight: 680; white-space: nowrap; }
.amt-nav__link:hover { background: #f1f6ff; color: var(--amt-primary); }
.amt-nav__link.is-active { color: var(--amt-primary); background: var(--amt-primary-soft); }
.amt-nav__icon { display: inline-grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; }
.amt-nav__icon .amt-icon { width: 19px; height: 19px; }
.amt-nav__label { overflow: hidden; text-overflow: ellipsis; }
.amt-sidebar__bottom { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--amt-line); }
.amt-sidebar-overlay { display: none; }
.amt-app-shell.is-sidebar-collapsed .amt-sidebar { padding-left: 12px; padding-right: 12px; }
.amt-app-shell.is-sidebar-collapsed .amt-sidebar__top { display: grid; grid-template-columns: 1fr; grid-template-rows: 28px 34px; min-height: 82px; justify-items: center; align-content: start; gap: 8px; }
.amt-app-shell.is-sidebar-collapsed .amt-brand__caption, .amt-app-shell.is-sidebar-collapsed .amt-nav__label { display: none; }
.amt-app-shell.is-sidebar-collapsed .amt-brand--sidebar .amt-brand__mark { font-size: 28px; }
.amt-app-shell.is-sidebar-collapsed .amt-brand__mark-full { display: none; }
.amt-app-shell.is-sidebar-collapsed .amt-brand__mark-mini { display: inline-block; }
.amt-app-shell.is-sidebar-collapsed .amt-nav__link { justify-content: center; padding-left: 9px; padding-right: 9px; }
.amt-app-shell.is-sidebar-collapsed .amt-icon-button--collapse .amt-icon { transform: rotate(180deg); }

@media (min-width: 951px) and (hover: hover) {
  .amt-app-shell.is-sidebar-collapsed .amt-nav__link[data-tooltip] { position: relative; }
  .amt-app-shell.is-sidebar-collapsed .amt-nav__link[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    z-index: 40;
    width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    border: 1px solid #1e3a8a;
    border-radius: 4px;
    color: #fff;
    background: #172554;
    box-shadow: 0 8px 18px rgba(23, 37, 84, .20);
    font-size: 12px;
    font-weight: 740;
    line-height: 1.2;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translate(0, -50%);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  }
  .amt-app-shell.is-sidebar-collapsed .amt-nav__link[data-tooltip]::before {
    content: '';
    position: absolute;
    left: calc(100% + 5px);
    top: 50%;
    z-index: 41;
    width: 8px;
    height: 8px;
    border-left: 1px solid #1e3a8a;
    border-bottom: 1px solid #1e3a8a;
    background: #172554;
    opacity: 0;
    visibility: hidden;
    transform: translate(0, -50%) rotate(45deg);
    transition: opacity .16s ease, visibility .16s ease;
  }
  .amt-app-shell.is-sidebar-collapsed .amt-nav__link[data-tooltip]:hover::after,
  .amt-app-shell.is-sidebar-collapsed .amt-nav__link[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(4px, -50%);
  }
  .amt-app-shell.is-sidebar-collapsed .amt-nav__link[data-tooltip]:hover::before,
  .amt-app-shell.is-sidebar-collapsed .amt-nav__link[data-tooltip]:focus-visible::before {
    opacity: 1;
    visibility: visible;
  }
}
.amt-main { width: min(1420px, 100%); padding: 38px clamp(20px, 4vw, 62px) 62px; margin: 0 auto; }
.amt-mobile-bar { display: none; }
.amt-main__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.amt-main__header h1 { margin: 2px 0 8px; font-size: clamp(28px, 3.3vw, 42px); letter-spacing: -1.6px; }
.amt-main__header p:not(.amt-eyebrow) { margin: 0; color: var(--amt-muted); line-height: 1.55; }
.amt-main__header--compact { align-items: center; }
.amt-main__header--compact h1 { font-size: clamp(25px, 3vw, 34px); }
.amt-eyebrow { color: var(--amt-primary); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 850; margin: 0 0 6px; }
.amt-back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--amt-primary); font-weight: 750; }
.amt-back-link .amt-icon { width: 18px; height: 18px; }

.amt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.amt-stat-card { padding: 18px; border: 1px solid var(--amt-line); background: #fff; border-radius: 4px; box-shadow: 0 4px 14px rgba(31,41,72,.04); }
.amt-stat-card span { display: block; color: var(--amt-muted); font-size: 13px; font-weight: 650; }
.amt-stat-card strong { display: block; margin-top: 8px; font-size: 30px; letter-spacing: -1px; }
.amt-stat-card--success { border-top: 4px solid var(--amt-success); }
.amt-stat-card--warning { border-top: 4px solid var(--amt-warning); }
.amt-stat-card--danger { border-top: 4px solid var(--amt-danger); }

.amt-panel, .amt-form-panel, .amt-product-card { background: rgba(255,255,255,.96); border: 1px solid var(--amt-line); border-radius: var(--amt-radius); box-shadow: var(--amt-shadow); }
.amt-panel { padding: 22px; }
.amt-inventory-panel { padding: 20px; }
.amt-search-form { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--amt-line); border-radius: 4px; background: #fff; }
.amt-search-form input { min-width: 0; flex: 1; border: 0; outline: none; min-height: 36px; color: var(--amt-ink); }
.amt-search-form .amt-icon-button { width: 36px; height: 36px; border: 0; background: var(--amt-primary-soft); color: var(--amt-primary); }
.amt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 10px; }
.amt-filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.amt-pill { padding: 8px 11px; border-radius: 3px; background: #f4f5f8; color: #667084; font-size: 13px; font-weight: 700; }
.amt-pill.is-active, .amt-pill:hover { background: var(--amt-primary); color: #fff; }
.amt-inventory-list { display: grid; gap: 14px; }
.amt-stock-group { overflow: hidden; border: 1px solid var(--amt-line); border-radius: 4px; }
.amt-stock-group__heading { display: flex; justify-content: space-between; align-items: center; min-height: 38px; padding: 6px 12px; background: #fafbfc; border-bottom: 1px solid var(--amt-line); }
.amt-stock-group__count { color: var(--amt-muted); font-size: 13px; font-weight: 800; }
.amt-status { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 4px; font-size: 12px; font-weight: 800; }
.amt-status--available { background: var(--amt-success-soft); color: var(--amt-success); }
.amt-status--low { background: var(--amt-warning-soft); color: var(--amt-warning); }
.amt-status--out, .amt-status--written_off { background: var(--amt-danger-soft); color: var(--amt-danger); }
.amt-status--issued { background: var(--amt-primary-soft); color: var(--amt-primary); }
.amt-status--repair { background: #e7eefc; color: #3560b5; }
.amt-stock-group__list { display: grid; }
.amt-stock-group__list--full { border: 1px solid var(--amt-line); border-radius: 4px; overflow: hidden; }
.amt-product-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 22px; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--amt-line); transition: .15s ease; }
.amt-product-row:last-child { border-bottom: 0; }
.amt-product-row:hover { background: #f9fbff; }
.amt-product-row__image { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 4px; background: #f3f5f8; overflow: hidden; }
.amt-product-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.amt-product-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--amt-primary); background: linear-gradient(135deg, #e7efff, #f7faff); }
.amt-product-fallback .amt-icon { width: 24px; height: 24px; }
.amt-product-row__content { display: grid; gap: 4px; min-width: 0; }
.amt-product-row__content strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.amt-product-row__content small { color: var(--amt-muted); font-size: 12px; }
.amt-product-row__arrow { color: var(--amt-muted); display: grid; place-items: center; }
.amt-product-row__arrow .amt-icon { width: 20px; height: 20px; }
.amt-empty-state { padding: 38px 18px; text-align: center; color: var(--amt-muted); line-height: 1.6; border: 1px dashed #ccd3df; border-radius: 4px; background: #fbfcfe; }
.amt-search-result-title { margin: 20px 0 12px; color: var(--amt-muted); }
.amt-search-result-title strong { color: var(--amt-ink); }

.amt-form-panel { width: 100%; max-width: none; padding: clamp(20px, 4vw, 36px); }
.amt-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.amt-field { display: grid; gap: 7px; }
.amt-field--wide { grid-column: 1 / -1; }
.amt-field label { font-size: 13px; font-weight: 800; }
.amt-field input, .amt-field select, .amt-field textarea { width: 100%; border: 1px solid var(--amt-line); border-radius: 4px; padding: 11px 12px; outline: none; background: #fff; color: var(--amt-ink); }
.amt-field textarea { resize: vertical; }
.amt-check { display: flex; gap: 9px; align-items: center; margin: 22px 0 16px; font-size: 13px; font-weight: 650; }
.amt-check--compact { margin: 0; }
.amt-check input { accent-color: var(--amt-primary); width: 16px; height: 16px; }
.is-hidden { display: none !important; }
.amt-notice { margin: 0 0 18px; padding: 13px 15px; border-radius: 4px; font-size: 14px; line-height: 1.5; }
.amt-notice--success { background: var(--amt-success-soft); color: #15733e; border: 1px solid #b8e9c9; }
.amt-notice--error { background: var(--amt-danger-soft); color: #9d2340; border: 1px solid #ffbdce; }

.amt-product-card { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: clamp(22px, 4vw, 46px); padding: clamp(20px, 4vw, 38px); }
.amt-product-gallery__main { min-height: 310px; display: grid; place-items: center; border-radius: 4px; overflow: hidden; background: linear-gradient(135deg, #eef5ff, #fbfdff); }
.amt-product-gallery__main .amt-product-image { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.amt-product-gallery__main .amt-product-fallback .amt-icon { width: 72px; height: 72px; }
.amt-product-gallery__caption { margin-top: 10px; color: var(--amt-muted); font-size: 12px; line-height: 1.45; }
.amt-product-title-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.amt-product-title-row h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -1.2px; }
.amt-product-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.amt-product-meta div { padding: 12px; border-radius: 4px; background: #f8f9fc; }
.amt-product-meta dt { color: var(--amt-muted); font-size: 12px; font-weight: 700; }
.amt-product-meta dd { margin: 5px 0 0; font-size: 14px; font-weight: 800; }
.amt-product-description h2 { font-size: 16px; margin: 0 0 8px; }
.amt-product-description { color: #535d70; line-height: 1.65; }
.amt-product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.amt-history-panel { margin-top: 18px; }
.amt-panel__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.amt-panel__header h2 { margin: 0; font-size: 22px; }
.amt-history-table, .amt-issued-table { display: grid; border: 1px solid var(--amt-line); border-radius: 4px; overflow: hidden; }
.amt-history-table__head, .amt-history-table__row { display: grid; grid-template-columns: 140px 130px 105px 160px minmax(150px, 1fr); gap: 12px; align-items: center; padding: 12px; }
.amt-history-table__head, .amt-issued-table__head { background: #f7f8fc; color: var(--amt-muted); font-size: 12px; font-weight: 850; }
.amt-history-table__row { border-top: 1px solid var(--amt-line); font-size: 13px; }
.amt-issued-table__head, .amt-issued-table__row { display: grid; grid-template-columns: 1.3fr 1fr 140px 160px; gap: 12px; align-items: center; padding: 12px; }
.amt-issued-table__row { border-top: 1px solid var(--amt-line); font-size: 13px; }
.amt-issued-table__row small { display: block; margin-top: 3px; color: var(--amt-muted); }
.amt-issued-table__row a { color: var(--amt-primary); font-weight: 750; }
.amt-fallback-page { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.amt-fallback-page .amt-panel { max-width: 520px; text-align: center; }

@media (max-width: 950px) {
  .amt-app-shell, .amt-app-shell.is-sidebar-collapsed { grid-template-columns: 1fr; }
  .amt-sidebar { position: fixed; width: min(285px, 84vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 12px 0 40px rgba(31,41,72,.13); }
  .amt-sidebar.is-open { transform: translateX(0); }
  .amt-sidebar-overlay { position: fixed; inset: 0; z-index: 19; display: block; visibility: hidden; opacity: 0; background: rgba(18, 26, 47, .34); transition: opacity .2s ease, visibility .2s ease; }
  .amt-sidebar-overlay.is-visible { visibility: visible; opacity: 1; }
  .amt-icon-button--collapse { display: none; }
  .amt-app-shell.is-sidebar-collapsed .amt-sidebar { padding-left: 16px; padding-right: 16px; }
  .amt-app-shell.is-sidebar-collapsed .amt-sidebar__top { display: flex; grid-template-columns: none; grid-template-rows: none; min-height: 54px; justify-items: stretch; align-content: stretch; justify-content: space-between; gap: 8px; }
  .amt-app-shell.is-sidebar-collapsed .amt-brand__caption { display: inline-block; }
  .amt-app-shell.is-sidebar-collapsed .amt-nav__label { display: inline; }
  .amt-app-shell.is-sidebar-collapsed .amt-brand__mark-full { display: inline; }
  .amt-app-shell.is-sidebar-collapsed .amt-brand__mark-mini { display: none; }
  .amt-app-shell.is-sidebar-collapsed .amt-nav__link { justify-content: flex-start; padding-left: 12px; padding-right: 12px; }
  .amt-mobile-bar { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 12px; margin-bottom: 22px; }
  .amt-mobile-bar .amt-brand { justify-self: center; }
  .amt-main { padding: 20px 16px 42px; }
  .amt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amt-product-card { grid-template-columns: 1fr; }
  .amt-product-gallery__main { min-height: 250px; }
}

@media (max-width: 640px) {
  .amt-splash, .amt-login-page { padding: 16px; }
  .amt-splash__card { padding: 50px 20px; }
  .amt-login-layout { grid-template-columns: 1fr; }
  .amt-login-layout__brand { display: none; }
  .amt-login-card { padding: 30px 22px; }
  .amt-main__header { flex-direction: column; }
  .amt-main__header .amt-button { width: 100%; }
  .amt-toolbar { align-items: stretch; flex-direction: column; }
  .amt-toolbar .amt-button { width: 100%; }
  .amt-filter-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .amt-pill { white-space: nowrap; }
  .amt-stats { gap: 10px; }
  .amt-stat-card { padding: 14px; }
  .amt-stat-card strong { font-size: 25px; }
  .amt-panel, .amt-inventory-panel { padding: 14px; }
  .amt-product-row { grid-template-columns: 42px minmax(0, 1fr) 16px; padding: 10px; }
  .amt-product-row__image { width: 42px; height: 42px; }
  .amt-form-grid, .amt-product-meta { grid-template-columns: 1fr; }
  .amt-field--wide { grid-column: auto; }
  .amt-product-card { padding: 16px; }
  .amt-product-title-row { flex-direction: column; }
  .amt-product-actions .amt-button { width: 100%; }
  .amt-history-table__head { display: none; }
  .amt-history-table__row { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  .amt-history-table__row span:nth-child(5) { grid-column: 1 / -1; color: var(--amt-muted); }
  .amt-issued-table__head { display: none; }
  .amt-issued-table__row { grid-template-columns: 1fr; gap: 8px; }
}

@media print {
  .amt-sidebar, .amt-sidebar-overlay, .amt-mobile-bar, .amt-main__header, .amt-product-actions, .amt-button, .amt-form-panel { display: none !important; }
  body.amt-app { background: #fff; }
  .amt-app-shell { display: block; }
  .amt-main { padding: 0; }
  .amt-product-card, .amt-panel { box-shadow: none; border: 0; }
}


/* Public Internet mode: minimal geometry, clearly visible security widget and form feedback. */
.amt-login-card__session-note { margin: 12px 0 0; color: var(--amt-muted); font-size: 12px; line-height: 1.45; }
.amt-password-strength { min-height: 18px; margin: -4px 0 10px; color: var(--amt-muted); font-size: 12px; }
.amt-password-strength.is-good { color: var(--amt-success); font-weight: 750; }
.amt-password-strength.is-weak { color: var(--amt-danger); font-weight: 750; }

/* Frontend management of goods and employees. */
.amt-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.amt-management-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; border-bottom: 1px solid var(--amt-line); }
.amt-management-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 14px; color: var(--amt-muted); border-bottom: 3px solid transparent; font-size: 14px; font-weight: 800; }
.amt-management-tab:hover { color: var(--amt-primary); background: #f7faff; }
.amt-management-tab.is-active { color: var(--amt-primary-dark); border-bottom-color: var(--amt-primary); }
.amt-management-tab .amt-icon { width: 18px; height: 18px; }
.amt-management-form-panel { max-width: 1100px; }
.amt-management-form { display: grid; gap: 22px; }
.amt-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--amt-line); padding-top: 18px; }
.amt-field__hint { margin-top: -1px; color: var(--amt-muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.amt-field input[readonly] { background: #f8fafc; color: var(--amt-muted); cursor: not-allowed; }
.amt-management-list { padding: clamp(18px, 3vw, 30px); }
.amt-management-table { display: grid; overflow: hidden; border: 1px solid var(--amt-line); border-radius: var(--amt-radius); }
.amt-management-table__head,
.amt-management-table__row { display: grid; grid-template-columns: minmax(220px, 1.75fr) 130px 120px minmax(160px, 1fr) 116px; gap: 12px; align-items: center; padding: 13px 14px; }
.amt-management-table__head { color: var(--amt-muted); background: #f7f9fd; font-size: 12px; font-weight: 850; }
.amt-management-table__row { border-top: 1px solid var(--amt-line); font-size: 13px; }
.amt-management-table__row:hover { background: #fbfdff; }
.amt-management-table__row strong { display: block; color: var(--amt-ink); font-size: 14px; }
.amt-management-table__row small { display: block; margin-top: 4px; color: var(--amt-muted); font-size: 12px; }
.amt-management-table--employees .amt-management-table__head,
.amt-management-table--employees .amt-management-table__row { grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) 160px 116px; }
.amt-table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.amt-inline-form { display: inline-flex; margin: 0; }
.amt-icon-button--danger { color: var(--amt-danger); border-color: #ffd1dc; background: #fff7f9; }
.amt-icon-button--danger:hover,
.amt-icon-button--danger:focus-visible { color: #fff; border-color: var(--amt-danger); background: var(--amt-danger); }
.amt-button--danger { color: #fff; border-color: var(--amt-danger); background: var(--amt-danger); }
.amt-button--danger:hover,
.amt-button--danger:focus-visible { background: #951d38; border-color: #951d38; }
.amt-management-note { margin: 14px 0 0; color: var(--amt-muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 900px) {
  .amt-management-table__head { display: none; }
  .amt-management-table__row,
  .amt-management-table--employees .amt-management-table__row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; }
  .amt-management-table__row > span:nth-child(2),
  .amt-management-table__row > span:nth-child(3),
  .amt-management-table__row > span:nth-child(4) { color: var(--amt-muted); font-size: 12px; }
  .amt-management-table__row > span:nth-child(2)::before { content: 'Тип: '; font-weight: 750; }
  .amt-management-table__row > span:nth-child(3)::before { content: 'Остаток: '; font-weight: 750; }
  .amt-management-table__row > span:nth-child(4)::before { content: 'Место: '; font-weight: 750; }
  .amt-management-table--employees .amt-management-table__row > span:nth-child(2)::before { content: 'Подразделение: '; }
  .amt-management-table--employees .amt-management-table__row > span:nth-child(3)::before { content: 'Телефон: '; }
  .amt-table-actions { grid-row: 1 / span 4; grid-column: 2; align-self: start; }
}

@media (max-width: 640px) {
  .amt-header-actions { width: 100%; }
  .amt-header-actions .amt-button { width: 100%; }
  .amt-management-tabs { gap: 0; }
  .amt-management-tab { flex: 1 1 50%; justify-content: center; padding: 10px 8px; }
  .amt-form-actions { flex-direction: column-reverse; align-items: stretch; }
  .amt-form-actions .amt-button { width: 100%; }
  .amt-management-table__row { padding: 12px; }
  .amt-management-table__row > span:nth-child(2),
  .amt-management-table__row > span:nth-child(3),
  .amt-management-table__row > span:nth-child(4) { grid-column: 1 / 2; }
  .amt-table-actions { grid-row: 1 / span 4; }
}
