/* Steel Door MES-Lite pages (login, home, settings, sheets, quantities). Built on the .iv tokens of inventory.css. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* .auth-wrap sets display: flex, which would beat the hidden attribute */
html, body { margin: 0; }
body { background: #f8fafc; min-height: 100vh; }

/* header: the original system's .app-top (home.css); the container matches its width */
.app-top-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.app-top .lt-ver { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px; padding: 2px 8px; margin-inline-start: 8px; }
.app-logo { text-decoration: none; }
.app-menu a { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; color: #334155; text-decoration: none; }
.app-menu a:hover { background: #f8fafc; color: #0f172a; }
.app-menu a .ti { font-size: 18px; color: #64748b; }

.lt-main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
.lt-h1 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.lt-sub { color: var(--iv-text-2); margin: 0 0 20px; font-size: 13.5px; }

.lt-card { background: var(--iv-panel); border: 1px solid var(--iv-border-strong); border-radius: var(--iv-radius-lg); padding: 18px 20px; margin-bottom: 16px; }   /* = .iv-card */
.lt-card h2 { font-size: 16px; font-weight: 800; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.lt-card .hint { color: var(--iv-text-2); font-size: 12.5px; margin: 0 0 14px; }

/* sign in: the original system's .auth-wrap / .auth-card (home.css) fill the window here */
.auth-wrap { min-height: 100vh; }
.auth-card .lt-err { text-align: center; }

/* forms + tables */
.lt-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--iv-text-2); }
.lt-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.lt-row .iv-input, .lt-row .iv-select { min-width: 110px; }
.lt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lt-table th { text-align: start; font-size: 12px; color: var(--iv-text-2); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--iv-border-strong); background: var(--iv-sub); }
.lt-table td { padding: 9px 10px; border-bottom: 1px solid var(--iv-border); vertical-align: middle; }
.lt-table td.num, .lt-table th.num { text-align: end; font-variant-numeric: tabular-nums; }
.lt-table tr.off td { color: var(--iv-muted); }
.lt-table tfoot td { font-weight: 800; border-top: 1px solid var(--iv-border-strong); }
.lt-table .iv-input { width: 100px; }
.lt-wrap { overflow-x: auto; }
.lt-empty { color: var(--iv-muted); text-align: center; padding: 18px; font-size: 13px; }
.lt-bad { color: var(--iv-bad); font-weight: 700; }
.lt-ok { color: var(--iv-ok); font-weight: 700; }

/* step bar */
.lt-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.lt-steps a, .lt-steps span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
    background: #fff; border: 1px solid var(--iv-border-strong); color: var(--iv-text-2); text-decoration: none; }
.lt-steps .on { background: var(--iv-accent); border-color: var(--iv-accent); color: #fff; }
.lt-steps .done { color: var(--iv-ok); border-color: var(--iv-ok-border); background: var(--iv-ok-bg); }
.lt-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }

/* tabs: the original system's .iv-tabs (underlined) */
.lt-tabs { display: flex; gap: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--iv-border-strong); overflow-x: auto; }
.lt-tabs button { padding: 12px 0 10px; background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-weight: 500; font-size: 14px; color: var(--iv-text-2); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.lt-tabs button.on { color: var(--iv-accent); border-bottom-color: var(--iv-accent); font-weight: 700; }

/* rows used as links on the home page behave like the original's row buttons */
a.iv-row-btn { color: inherit; border-radius: 8px; }
a.iv-row-btn:hover .strong { color: var(--iv-accent); }
.iv a.hm-stat:hover { background: var(--iv-sub); }
.iv .hm-head h1 bdi { color: inherit; }

.lt-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.lt-sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lt-sheet { border: 1px solid var(--iv-border-strong); border-radius: 12px; padding: 10px; background: #fff; }
.lt-sheet svg { width: 100%; height: auto; display: block; background: var(--iv-sub); border-radius: 8px; }
.lt-sheet .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; margin-top: 8px; }

.lt-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; padding: 10px 16px; border-radius: 12px;
    background: var(--iv-dark); color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.lt-toast.bad { background: var(--iv-bad); }

@media (max-width: 640px) {
    .app-top-in { padding: 0 16px; }
    .lt-card { padding: 16px; }
}
