/* ANKESAT interface. No external fonts or scripts (strict CSP). Desktop: tables. Phone: cards. */
:root {
    --bg: #f3f5f9; --surface: #fff; --ink: #142033; --muted: #5a6577; --line: #e2e7ef; --line-2: #cfd7e3;
    --brand: #16325c; --brand-ink: #fff; --accent: #2457c5; --accent-soft: #e8efff;
    --ok: #127a4b; --ok-soft: #e3f6ec; --warn: #9a5b00; --warn-soft: #fff3dc; --bad: #b42318; --bad-soft: #fde8e7;
    --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --side: 236px; --top: 60px; --tab: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
h1 { font-size: 1.45rem; line-height: 1.25; margin: 0; }
h2 { font-size: 1.05rem; margin: 0 0 12px; }
h3 { font-size: .95rem; margin: 16px 0 8px; }
p { margin: 0 0 12px; }
.ic { flex: none; vertical-align: -4px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--brand); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #eef2f8; padding: 2px 7px; border-radius: 5px; font-size: 14px; }
.code.big { font-size: 20px; padding: 6px 12px; display: inline-block; letter-spacing: .5px; }
.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--brand); font-weight: 800; margin-right: 8px; }

/* ---------- Staff shell ---------- */
body.staff { padding-left: var(--side); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--brand); color: var(--brand-ink); display: flex; flex-direction: column; z-index: 20; }
.sidebar .brand { display: flex; align-items: center; height: var(--top); padding: 0 18px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: 1px; }
.side-nav { flex: 1; overflow-y: auto; padding: 8px 10px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 2px; border-radius: 8px; color: #dbe5f5; text-decoration: none; font-size: 14.5px; }
.side-nav a span:first-of-type { flex: 1; }
.side-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-nav a[aria-current="page"] { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; }
.count { min-width: 22px; padding: 1px 7px; border-radius: 11px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 12px; text-align: center; font-weight: 600; }
.count.hot { background: #f5b400; color: #1d1d1d; }
.side-foot { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 10px; }
.me strong { display: block; font-size: 14px; }
.me small { color: #b7c6df; font-size: 12.5px; }
.topbar { position: sticky; top: 0; z-index: 15; height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 24px; background: rgba(243, 245, 249, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar .brand { color: var(--brand); text-decoration: none; font-weight: 700; display: flex; align-items: center; }
.topbar .brand .logo { background: var(--brand); color: #fff; }
.topbar .who { color: var(--muted); font-size: 14px; white-space: nowrap; }
.global-search { flex: 1; max-width: 560px; position: relative; display: flex; align-items: center; }
.global-search .ic { position: absolute; left: 11px; color: var(--muted); }
.global-search input { padding-left: 38px; border-radius: 20px; background: #fff; }
.mobile-only { display: none !important; }
.tabbar { display: none; }
main { max-width: 1240px; margin: 0 auto; padding: 22px 24px 40px; }
main:focus { outline: none; }
body.public main { max-width: 860px; }
.foot { margin-top: 40px; color: var(--muted); font-size: 13px; text-align: center; }
.foot a { color: var(--muted); }

/* ---------- Public shell ---------- */
.pubbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 24px; background: var(--brand); color: #fff; }
.pubbar .brand { color: #fff; text-decoration: none; font-weight: 700; display: flex; align-items: center; letter-spacing: 1px; }
.pubbar nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pubbar nav a, .pubbar .link { color: #dbe5f5; text-decoration: none; padding: 6px 12px; border-radius: 8px; font-size: 14.5px; }
.pubbar nav a:hover, .pubbar nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Building blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.card.flush { padding: 0; overflow: hidden; }
.card > h2:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.backlink { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.backlink:hover { color: var(--accent); }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid transparent; }
.flash-success { background: var(--ok-soft); color: var(--ok); border-color: #bfe6d0; }
.flash-info { background: var(--accent-soft); color: var(--accent); }
.flash-error { background: var(--bad-soft); color: var(--bad); border-color: #f5c6c2; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }

/* Forms */
label { display: block; margin: 12px 0 5px; font-weight: 600; font-size: 14px; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; }
label.check input { margin-top: 3px; }
fieldset { border: 0; padding: 0; margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=tel], input[type=number], select, textarea {
    width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; color: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
textarea { min-height: 110px; resize: vertical; }
input[type=file] { font: inherit; max-width: 100%; }
.hint { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; align-items: end; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 14px; }
.form-actions.end { justify-content: flex-end; }

/* Buttons */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--brand);
    background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
button:hover, .btn:hover { filter: brightness(1.12); }
.btn.secondary, button.secondary { background: #fff; color: var(--brand); border-color: var(--line-2); }
.btn.secondary:hover, button.secondary:hover { background: #f6f8fc; filter: none; }
button.danger { background: var(--bad); border-color: var(--bad); }
button.ghost { background: transparent; border-color: rgba(255, 255, 255, .25); color: #dbe5f5; font-weight: 500; width: 100%; }
button.link { background: none; border: 0; min-height: 0; padding: 6px 12px; font-weight: 400; }
button.small, .btn.small { min-height: 32px; padding: 4px 11px; font-size: 13.5px; }
form.inline { display: inline; }
.btn-big { min-height: 52px; padding: 12px 22px; font-size: 16px; }

/* Status and deadline badges */
.st { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: #eef1f6; color: #3b4557; }
.st-regjistruar { background: #e3ecff; color: #1d4ed8; }
.st-caktuar { background: #efe9ff; color: #6233c9; }
.st-ne_proces { background: #fff1d6; color: #8a4f00; }
.st-pret_informacion { background: #ffe8d9; color: #a23f06; }
.st-zgjidhur { background: #d9f5ee; color: #0e6e5c; }
.st-mbyllur { background: #e9edf2; color: #3e4a5c; }
.st-refuzuar { background: var(--bad-soft); color: var(--bad); }
.st-anuluar { background: #f1f2f4; color: #6b7280; }
.due { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 12px; white-space: nowrap; }
.due-late { background: var(--bad-soft); color: var(--bad); }
.due-soon { background: var(--warn-soft); color: var(--warn); }
.due-ok { background: var(--ok-soft); color: var(--ok); }
.due-paused { background: #eef1f6; color: var(--muted); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 12px; background: #eef1f6; color: #3b4557; font-size: 12.5px; }
.badge.danger { background: var(--bad-soft); color: var(--bad); }
.badge.public { background: var(--ok-soft); color: var(--ok); }
.badge.info { background: var(--accent-soft); color: var(--accent); }

/* Quick filters (chips) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 18px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; }
.chip:hover { border-color: var(--accent); }
.chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .n { font-weight: 700; }
.filters { border-top: 1px solid var(--line); }
.filters summary { cursor: pointer; padding: 12px 18px; font-weight: 600; font-size: 14px; color: var(--muted); list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::before { content: "▸ "; }
.filters[open] summary::before { content: "▾ "; }
.filters .form-grid { padding: 0 18px 16px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.toolbar select { width: auto; min-height: 34px; padding: 4px 8px; }

/* ---------- Data tables (desktop) ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { background: #f7f9fc; color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; position: sticky; top: var(--top); z-index: 1; }
th a.sort { color: inherit; text-decoration: none; }
th a.sort.on, th a.sort:hover { color: var(--accent); }
tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .15s; }
table.data tbody tr:hover { background: #f8faff; }
table.data tr:target, .user-row:target { background: #fff7d6 !important; box-shadow: inset 4px 0 0 #f5b400; scroll-margin-top: calc(var(--top) + 80px); }
table.data .c-nr a { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
table.data .c-nr a:hover { color: var(--accent); text-decoration: underline; }
table.data .c-desc .cat { font-weight: 600; }
table.data .c-desc .ex { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 460px; }
table.data .c-loc, table.data .c-who, table.data .c-dir { color: #3b4557; }
table.data .c-star { width: 44px; padding-right: 4px; }
.star { background: none; border: 0; color: #a7b0bf; min-height: 34px; padding: 4px 6px; border-radius: 6px; }
.star:hover { background: #f1f4f9; color: #e0a100; filter: none; }
.star.on { color: #e0a100; }
.overdue .c-nr a { color: var(--bad); }

/* Case page */
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.case-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.case-head h1 { margin-right: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 18px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .3px; }
.facts dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.answer { background: var(--ok-soft); border-left: 4px solid var(--ok); padding: 12px 14px; border-radius: 6px; }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.files a { display: inline-flex; gap: 6px; align-items: center; }
.action-list { display: grid; gap: 8px; }
.action-form { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.action-form > summary { cursor: pointer; padding: 11px 14px; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.action-form > summary::-webkit-details-marker { display: none; }
.action-form > summary::after { content: "+"; color: var(--muted); font-size: 18px; line-height: 1; }
.action-form[open] > summary { border-bottom: 1px solid var(--line); }
.action-form[open] > summary::after { content: "−"; }
.action-form.primary > summary { background: var(--accent-soft); color: var(--accent); border-radius: 8px; }
.action-form.danger > summary { color: var(--bad); }
.action-form form { padding: 4px 14px 14px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.pub::before { background: var(--ok); }
.timeline .t-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.timeline .t-head strong { font-size: 14px; }
.timeline .t-when { color: var(--muted); font-size: 12.5px; }
.timeline .t-note { margin-top: 4px; background: #f7f9fc; border-radius: 6px; padding: 8px 10px; font-size: 14px; }

/* Dashboard */
.continue { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid #cddcff; color: var(--accent); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; }
.continue a { font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; position: relative; }
.tile:hover { border-color: var(--accent); }
.tile .n { font-size: 30px; font-weight: 750; line-height: 1.1; color: var(--brand); }
.tile .t { color: var(--muted); font-size: 14px; }
.tile .ic { position: absolute; right: 14px; top: 14px; color: #b9c3d3; }
.tile.hot { border-color: #f5d27a; background: #fffbef; }
.tile.hot .n { color: var(--warn); }
.tile.bad .n { color: var(--bad); }
.tile.bad { border-color: #f5c6c2; background: #fff8f7; }
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.bar { height: 6px; background: #edf1f7; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; background: var(--accent); }
.bar span.bad { background: var(--bad); }

/* Users */
.role { font-weight: 600; }
.user-row td:first-child a { font-weight: 600; color: var(--ink); text-decoration: none; }
.user-row td:first-child a:hover { color: var(--accent); text-decoration: underline; }
.user-row.off { color: var(--muted); }

/* Public pages */
.hero { background: linear-gradient(135deg, var(--brand), #2a5aa8); color: #fff; border-radius: 14px; padding: 32px 28px; margin-bottom: 20px; }
.hero h1 { font-size: 1.8rem; margin-bottom: 10px; }
.hero p { color: #dde7f7; max-width: 560px; }
.hero .btn { background: #fff; color: var(--brand); border-color: #fff; }
.hero .btn.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stats div { background: #f7f9fc; border-radius: 8px; padding: 10px 12px; }
.stats strong { display: block; font-size: 22px; color: var(--brand); }
.success-card { border-color: #bfe6d0; background: #f4fbf7; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpis > div { background: #f7f9fc; border-radius: 8px; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.kpi { display: block; font-size: 26px; font-weight: 700; color: var(--brand); }
.prose { max-width: 760px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.pager .pages { display: flex; gap: 6px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .case-grid, .two-col { grid-template-columns: 1fr; }
    .case-side { order: -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 900px) {
    body.staff { padding-left: 0; padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom)); }
    .sidebar { display: none; }
    .mobile-only { display: flex !important; }
    .desktop-only { display: none !important; }
    .topbar { padding: 0 12px; gap: 10px; }
    .topbar .brand .logo { margin-right: 0; }
    main { padding: 16px 12px 28px; }
    h1 { font-size: 1.25rem; }
    .card { padding: 16px; }
    .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(16, 24, 40, .06); }
    .tabbar > a, .tabbar summary { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 11.5px; position: relative; list-style: none; cursor: pointer; }
    .tabbar summary::-webkit-details-marker { display: none; }
    .tabbar > a[aria-current="page"] { color: var(--brand); font-weight: 700; }
    .tabbar .count { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--bad); color: #fff; min-width: 18px; padding: 0 5px; font-size: 11px; }
    .tabbar .count.hot { background: #f5b400; color: #1d1d1d; }
    .tabbar .more { flex: 1; display: flex; }
    .tabbar .sheet { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 10px 30px rgba(16, 24, 40, .18); }
    .tabbar .sheet a { display: flex; align-items: center; gap: 12px; padding: 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
    .tabbar .sheet a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
    .tabbar .sheet a span:first-of-type { flex: 1; }
    .tabbar .sheet .count { position: static; }
    .tabbar .sheet .me { padding: 10px 12px; border-top: 1px solid var(--line); margin-top: 6px; }
    .tabbar .sheet .me small { color: var(--muted); display: block; }
    .tabbar .sheet button.ghost { color: var(--brand); border-color: var(--line-2); }
    .pubbar { padding: 10px 12px; }
    .hero { padding: 22px 18px; }
    .hero h1 { font-size: 1.4rem; }

    /* Tables become cards. Cells carry data-label; class names place them inside the card. */
    table.cards thead { display: none; }
    table.cards, table.cards tbody { display: block; }
    table.cards tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
    table.cards td { display: block; border: 0; padding: 2px 0; }
    table.cards td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
    table.data.cards tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nr star" "st st" "desc desc" "loc loc" "meta meta" "due due"; gap: 4px 8px; }
    table.data.cards td::before { display: none; }
    table.data .c-nr { grid-area: nr; font-size: 15px; }
    table.data .c-star { grid-area: star; width: auto; padding: 0; margin: -6px -6px 0 0; }
    table.data .c-st { grid-area: st; display: flex; gap: 6px; flex-wrap: wrap; }
    table.data .c-desc { grid-area: desc; }
    table.data .c-desc .ex { max-width: none; }
    table.data .c-loc { grid-area: loc; color: var(--muted); font-size: 13.5px; }
    table.data .c-meta { grid-area: meta; color: var(--muted); font-size: 13.5px; }
    table.data .c-due { grid-area: due; }
    table.data .c-dir, table.data .c-who, table.data .c-upd { display: none; }
    table.data .m-only { display: inline; }
    .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 12px; padding: 0 12px 2px; scrollbar-width: none; }
    .chip { white-space: nowrap; }
    .toolbar { padding: 10px 14px; }
    .form-actions button, .form-actions .btn { flex: 1 1 auto; }
}
@media (min-width: 901px) {
    table.data .c-meta, table.data .m-only { display: none; }
    table.data .c-st .due { display: none; }
}
@media print {
    .sidebar, .topbar, .tabbar, .pubbar, .chips, .filters, .action-list, .star, .foot { display: none !important; }
    body.staff { padding: 0; }
    .card { box-shadow: none; border: 0; }
}
dl.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; font-weight: 500; }
@media (max-width: 600px) { dl.meta { grid-template-columns: 1fr; } dl.meta dd { margin-bottom: 6px; } }

/* Prishtina emblem next to the app name */
.logo-img { display: block; width: auto; height: 40px; flex: none; }
.brand { gap: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { letter-spacing: 1px; font-size: 15px; }
.brand-text small { font-weight: 400; font-size: 11.5px; letter-spacing: .2px; opacity: .8; }
.sidebar .brand { height: auto; padding: 14px 18px; }
.auth-emblem { display: block; margin: 0 auto 10px; height: 72px; width: auto; }
.hero { display: flex; gap: 20px; align-items: center; }
.hero .hero-emblem { flex: none; height: 110px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
@media (max-width: 900px) {
    .topbar .brand-text { display: none; }
    .topbar .logo-img { height: 36px; }
    .hero .hero-emblem { height: 72px; }
}
@media (max-width: 520px) { .hero { flex-direction: column; align-items: flex-start; } }
