/* R27 inventory – supplier clearance, controller reports, automatic purchase requests, suspended items (slice SQ). Prefix: ictl- */

/* the controller section's report tabs */
.ictl-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 12px; border-bottom: 1px solid var(--border); }
.ictl-tab { padding: 8px 12px; border-radius: 8px 8px 0 0; color: var(--muted); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.ictl-tab:hover { background: var(--hover, rgba(15, 107, 94, .06)); color: inherit; }
.ictl-tab.active { color: var(--primary, #0f6b5e); box-shadow: inset 0 -2px 0 var(--primary, #0f6b5e); font-weight: 600; }

/* the ministry template reminder */
.ictl-note { display: flex; gap: 6px; align-items: center; margin: 8px 12px; color: var(--muted); }
@media print { .ictl-note { display: block; margin: 8px 0 0; font-style: italic; } }

/* landing page cards */
.ictl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ictl-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; text-decoration: none; color: inherit; }
.ictl-card:hover { border-color: var(--primary, #0f6b5e); }
.ictl-card h3 { margin: 0; font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.ictl-card .ictl-figure { font-size: 1.35rem; font-weight: 600; }

/* clearance grid: clickable cells, sticky warehouse column, two lines per cell */
.ictl-grid th, .ictl-grid td { white-space: nowrap; }
.ictl-grid .ictl-wh { position: sticky; inset-inline-start: 0; background: var(--surface); z-index: 1; }
.ictl-cell { cursor: pointer; }
.ictl-cell:hover, .ictl-cell:focus-visible { background: var(--hover, rgba(15, 107, 94, .08)); outline: none; }
.ictl-cell .ictl-q { display: block; font-weight: 600; }
.ictl-cell .ictl-v { display: block; font-size: .8rem; color: var(--muted); }
.ictl-cell.zero { color: var(--muted); }
.ictl-grid .ictl-closing { background: var(--accent-soft, rgba(15, 107, 94, .07)); }
.ictl-ok { color: var(--green-fg); }
.ictl-warn { color: var(--amber-fg); }

/* certificate print */
.ictl-cert-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ictl-qr { width: 110px; text-align: center; font-size: .75rem; }
.ictl-qr svg { width: 110px; height: 110px; display: block; }
.ictl-statement { margin: 12px 0; line-height: 1.7; }
.ictl-verified { display: flex; gap: 8px; align-items: center; font-weight: 600; }

/* selection lists (auto purchase, suspended items) */
.ictl-qty { width: 7rem; }
.ictl-select { width: 2rem; text-align: center; }
.ictl-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 12px; }

@media (max-width: 720px) {
    .ictl-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .ictl-cards { grid-template-columns: 1fr; }
}
