/* Shared layout for the online modules (Profilet, Pajisjet, Projektet). */
.module-page{background:#fff}
.account{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--muted)}
.account .who{padding:0 8px;border-left:1px solid var(--line);margin-left:6px}
.gate{max-width:420px;margin:12vh auto;padding:0 20px}
.gate h1{margin-bottom:10px}
.login .text-button{display:block;margin:18px auto 0}
.form-error{color:#96614f;font-size:12px;min-height:1em;margin:4px 0 14px}
.modulebar{display:flex;align-items:center;gap:12px;padding:20px 28px;border-bottom:1px solid var(--line)}
.modulebar h1{margin:4px 0 0}
.module-body{padding:24px 28px 60px;background:var(--bg);min-height:calc(100vh - 175px)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:20px}
.stat{background:#fff;border:1px solid var(--line);border-radius:6px;padding:16px 18px}
.stat span{display:block;font-size:11px;color:var(--muted);letter-spacing:.3px}
.stat strong{display:block;font-size:26px;margin-top:6px;letter-spacing:-.5px}
.stat strong.small{font-size:15px;margin-top:12px;letter-spacing:0}
.stat.warn{border-color:#efe1b6;background:#fff8df}
.stat.warn strong{color:#887029}
.filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.filters input[type=search]{flex:1;min-width:220px;border:1px solid #dcded7;border-radius:4px;padding:10px 12px;background:#fff;font-size:13px}
.filters .check{margin:0}
.seg{display:flex;gap:4px;background:#fff;border:1px solid var(--line);border-radius:5px;padding:3px}
.seg button,.seg label span{font-size:12px;padding:7px 12px;border-radius:3px;display:block;cursor:pointer}
.seg button.active,.seg input:checked+span{background:var(--yellow);font-weight:600}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg input:focus-visible+span{outline:2px solid #9b7c00;outline-offset:2px}
.seg.wide{margin-bottom:18px}
.seg.wide label{flex:1;text-align:center}
.table-wrap{background:#fff;border:1px solid var(--line);border-radius:6px;overflow-x:auto}
table.stock td,table.stock th{padding:13px 14px;font-size:13px;vertical-align:middle}
table.stock th{font-size:11px;letter-spacing:.3px}
table.stock tbody tr{cursor:pointer}
table.stock tbody tr:hover{background:#fafbf7}
table.stock tbody tr:last-child td{border-bottom:0}
table.stock small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
table.stock .qty{white-space:nowrap}
table.stock .qty strong{font-size:16px}
table.stock tr.low .qty strong{color:#a5761b}
table.stock tr.low td:first-child{box-shadow:inset 3px 0 0 #e0b23a}
.row-actions{text-align:right;white-space:nowrap}
.row-actions .quiet{border:1px solid var(--line);margin-left:4px;padding:7px 10px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.profile-head{display:grid;grid-template-columns:200px 1fr;gap:20px;margin:20px 0}
.big-qty{background:#f4f5f1;border-radius:6px;padding:16px}
.big-qty span,.big-qty small{display:block;font-size:11px;color:var(--muted)}
.big-qty strong{display:block;font-size:24px;margin:6px 0 4px}
.big-qty.warn{background:#fff8df}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;margin:0;font-size:13px}
.facts dt{font-size:11px;color:var(--muted)}
.facts dd{margin:3px 0 0}
.button-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0 26px}
.button-row .primary{padding:11px 16px}
td.pos{color:#5d7a59}
td.neg{color:#96614f}
.badge{display:inline-block;font-size:11px;font-weight:600;padding:4px 8px;border-radius:3px;white-space:nowrap;background:#eef0ea;color:#5f625b}
.badge.s-available{background:#e8efe6;color:#4f6b4c}
.badge.s-in_use{background:#fff2bc;color:#6f5a12}
.badge.s-service,.badge.s-broken,.badge.s-lost{background:#f6e6df;color:#8a5443}
.badge.s-retired{background:#f1f1ee;color:#9a9c95}
.muted{color:var(--muted)}
.big-qty .status-big{font-size:20px}
@media(max-width:800px){.modulebar{padding:15px;flex-wrap:wrap}
.modulebar .spacer{display:none}
.modulebar .primary{flex:1}
.module-body{padding:15px}
.stats{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
.stat{padding:12px}
.stat strong{font-size:20px}
.stat strong.small{font-size:12px}
.hide-sm{display:none}
table.stock td,table.stock th{padding:11px 8px}
.row-actions .quiet{display:block;margin:0 0 4px auto}
.profile-head{grid-template-columns:1fr}
.account .who{display:none}
}
