:root { --ink: #173144; --muted: #607789; --accent: #087e83; --line: #dce5ec; --surface: #f3f6f9; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; }
a { color: #086e78; text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 2rem; font-weight: 700; margin: .25rem 0 1.25rem; letter-spacing: -.04em; overflow-wrap: anywhere; }
h2 { font-size: 1.2rem; font-weight: 650; margin: 0 0 1.2rem; overflow-wrap: anywhere; }
h3 { font-size: 1rem; font-weight: 650; margin-top: 1.4rem; }
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.app-topbar { background: #142e40; color: #b9cbd6; padding: 18px max(24px, calc((100% - 1550px) / 2 + 36px)) 10px; }
.topbar-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.topbar-account { display: flex; align-items: center; justify-content: end; gap: 18px; min-width: 0; }
.topbar-account form { flex-shrink: 0; }
.topbar-login { color: #cedde6; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: white; font-size: 1.25rem; font-weight: 800; letter-spacing: -.04em; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: 160px; max-width: 100%; height: auto; padding: 3px 6px; }
.brand span { color: #53d5c2; }
.app-topbar nav.primary-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid #ffffff20; }
.primary-nav .nav-home, .primary-nav .nav-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 9px 13px; border: 1px solid transparent; border-radius: 9px; color: #cedde6; font-size: .84rem; font-weight: 600; cursor: pointer; list-style: none; }
.primary-nav .nav-home:hover, .primary-nav .nav-group > summary:hover, .primary-nav .nav-group[open] > summary { color: white; background: #24495b; text-decoration: none; }
.primary-nav .nav-home.active { color: #fff; background: #087e83; }
.primary-nav .nav-group:has(.nav-group-links a.active) > summary { color: #fff; border-color: #53d5c2; }
.primary-nav .nav-group { position: relative; }
.primary-nav .nav-group > summary::-webkit-details-marker { display: none; }
.primary-nav .nav-group > summary::after { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform .16s ease; }
.primary-nav .nav-group[open] > summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.nav-group-links { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; width: min(320px, calc(100vw - 40px)); max-height: min(70vh, 560px); overflow-y: auto; padding: 8px; border: 1px solid #dce5ec; border-radius: 12px; background: #fff; box-shadow: 0 14px 36px #071c2b30; }
.nav-group-links a { padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: .88rem; font-weight: 550; }
.nav-group-links a:hover, .nav-group-links a.active { background: #e9f5f4; color: #075f65; text-decoration: none; }
.nav-group-links a:focus-visible, .primary-nav .nav-group > summary:focus-visible { outline: 3px solid #8bd6d4; outline-offset: 2px; }
.signed-user { font-size: .8rem; overflow-wrap: anywhere; }
.app-main { padding: 36px; width: 100%; max-width: 1550px; min-width: 0; flex-grow: 1; margin: 0 auto; }
.eyebrow { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 8px; }
.muted { color: var(--muted); font-size: .9rem; }
.panel { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 26px; margin-bottom: 24px; box-shadow: 0 3px 10px #17314404; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.two-columns > .panel { align-self: start; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .83rem; margin-bottom: 16px; }
input, select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #c4d2dd; border-radius: 6px; color: var(--ink); background: white; font-size: .92rem; }
/* Preširoki native padajući meniji otvaraju listu pomaknutu ulijevo (odsječen tekst), pa je širina ograničena. */
select { max-width: 40rem; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid #8bd6d4; outline-offset: 2px; }
.return-reason { width: 100%; max-width: 32rem; margin-bottom: 16px; }
.return-reason label { display: block; margin-bottom: 6px; }
.return-reason select { display: block; font-family: inherit; text-indent: 0; }
.return-reason option { color: var(--ink); background: white; font: inherit; padding: 0; text-indent: 0; }
.unit-picker-hint { margin: -8px 0 16px; }
.business-unit-picker { max-width: 850px; }
.check, .checkbox { flex-direction: row; align-items: center; font-weight: 400; }
.check input, .checkbox input { width: 18px; min-height: 18px; height: 18px; margin-right: 5px; accent-color: var(--accent); }
button, .button { display: inline-block; border: 1px solid transparent; border-radius: 6px; background: var(--accent); color: white; padding: 11px 17px; font-size: .85rem; font-weight: 650; cursor: pointer; text-align: center; }
button:hover, .button:hover { filter: brightness(.94); color: white; text-decoration: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
.secondary { background: #eaf1f5; color: var(--ink); border-color: #d6e1e9; }
.secondary:hover { color: var(--ink); }
.danger { background: #b13c3c; }
.codebook-field { margin-bottom: 16px; }
.codebook-field label { margin-bottom: 6px; }
.serial-field { padding: 12px; border: 2px solid var(--accent); border-radius: 8px; background: #eef8f8; }
.serial-field input { font-size: 1.05rem; font-weight: 700; letter-spacing: .03em; }
.registered-instrument { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.request-panel { max-width: 1100px; }
.request-panel-wide { max-width: none; }
.reception-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 30px; margin-bottom: 24px; border-radius: 16px; background: linear-gradient(120deg, #142e40, #135c65); color: white; }
.reception-hero .eyebrow { color: #8de4d8; }
.reception-hero h1 { margin-bottom: 10px; }
.reception-hero p { margin-bottom: 0; }
.reception-hero .button { background: white; color: #135c65; }
.reception-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.reception-metrics .panel { margin: 0; }
.reception-metrics span { color: var(--muted); font-size: .85rem; }
.reception-metrics strong { display: block; font-size: 2.4rem; margin: 8px 0; }
.reception-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.reception-actions:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reception-action { display: block; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.reception-action:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 6px 20px #17314412; }
.reception-action h3 { margin-top: 16px; }
.reception-action p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.action-number { display: inline-block; padding: 8px 12px; border-radius: 9px; background: #e2f3ef; color: #087e83; font-weight: 700; }
.action-link { color: var(--accent); font-weight: 600; font-size: .85rem; }
.stage-notifications { list-style: none; margin: 0 0 8px; padding: 0; }
.stage-notifications li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stage-notifications li:last-child { border-bottom: 0; }
.stage-notifications li.fresh { border-left: 3px solid var(--accent); padding-left: 10px; }
.stage-notifications .status { flex: 0 0 auto; }
.stage-notifications p { margin: 4px 0; font-size: .9rem; }
.stage-notifications small { color: var(--muted); }
.reception-trend { display: flex; gap: 4px; overflow-x: auto; padding: 8px 0; }
.trend-column { flex: 1; min-width: 18px; text-align: center; font-size: .65rem; color: var(--muted); }
.trend-track { display: flex; align-items: end; height: 130px; background: #f3f6f9; border-radius: 4px; margin-bottom: 8px; }
.trend-bar { width: 100%; background: linear-gradient(#36b6ad, #087e83); border-radius: 4px 4px 0 0; }
.trend-count { display: block; color: var(--ink); font-weight: 600; margin-top: 4px; }
.reception-status { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-top: 12px; font-size: .85rem; }
.reception-status progress { grid-column: 1 / -1; width: 100%; height: 7px; accent-color: var(--accent); }
.overdue-date { color: #ae2929; font-weight: 600; }
@media (max-width: 700px) {
    .app-topbar { padding: 16px 18px 12px; }
    .topbar-heading { align-items: flex-start; flex-wrap: wrap; }
    .topbar-account { width: 100%; justify-content: space-between; }
    .app-topbar nav.primary-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 7px; }
    .primary-nav .nav-home { grid-column: 1 / -1; }
    .primary-nav .nav-group { min-width: 0; }
    .primary-nav .nav-group > summary { width: 100%; }
    .nav-group-links { position: static; width: 100%; max-height: 45vh; margin-top: 5px; box-shadow: 0 8px 20px #071c2b20; }
}
@media (max-width: 1100px) { .reception-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reception-actions, .reception-actions:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .reception-metrics { grid-template-columns: 1fr; } .reception-hero { padding: 22px; } }
.management-attention ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.management-attention li { padding: 10px 14px; border-left: 4px solid #d9a21b; border-radius: 6px; background: #fff8e6; }
.management-attention li.critical { border-left-color: #ae2929; background: #fdeeee; }
.management-sections { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.management-sections a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.management-sections a:hover { border-color: var(--accent); text-decoration: none; }
.management-sections a span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #d9a21b; color: white; font-size: .75rem; text-align: center; }
.management-sections a.critical span { background: #ae2929; }
.management-sections a.active { border-color: var(--accent); background: var(--accent); color: white; }
.management-report h3 { margin: 22px 0 10px; }
.management-report .management-metrics { margin: 14px 0 6px; }
@media print { .management-report { border: 0; box-shadow: none; padding: 0; font-size: 10pt; } .management-report a { color: inherit; text-decoration: none; } .management-report tr { break-inside: avoid; } .management-metric { padding: 6px 10px; } .management-metric strong { font-size: 1.3rem; } }
.management-section { scroll-margin-top: 16px; }
.management-tasks, .management-execution, .management-analytics { scroll-margin-top: 16px; }
.management-tasks h3, .management-list h3 { margin: 20px 0 10px; font-size: 1rem; }
.management-tasks h3:first-of-type { margin-top: 6px; }
ul.management-attention { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
ul.management-attention li { padding: 10px 14px; border-left: 4px solid #d9a21b; border-radius: 6px; background: #fff8e6; }
ul.management-attention li.critical { border-left-color: #ae2929; background: #fdeeee; }
.management-tasks tr.critical td { background: #fdeeee; }
.management-execution .management-sections { margin: 18px 0 14px; }
.management-execution .management-sections a span { background: var(--muted); }
.management-execution .management-sections a.active span { background: white; color: var(--accent); }
.management-execution .management-metrics { margin-bottom: 8px; }
.management-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }
.management-list { min-width: 0; }
.management-analytics > .section-heading { margin: 26px 0 12px; }
.management-analytics .management-section h3 { margin: 0 0 4px; }
.management-section .section-heading h2 { margin-bottom: 4px; }
.management-section .section-heading p { margin: 0; }
.management-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.management-links .button { padding: 8px 12px; white-space: nowrap; }
.management-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.management-metric { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.management-metric span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.management-metric strong { font-size: 1.9rem; margin: 6px 0 2px; }
.management-metric small { color: var(--muted); font-size: .78rem; }
.management-metric.attention { border-color: #ecc65d; background: #fff8e6; }
.management-metric.critical { border-color: #e3a3a3; background: #fdeeee; }
.management-metric.critical strong { color: #ae2929; }
@media (max-width: 720px) { .management-section .section-heading { flex-direction: column; } .management-links { justify-content: start; } }
.reception-step { margin-bottom: 28px; padding-top: 8px; border-top: 1px solid var(--line); }
.reception-step > .eyebrow { margin-top: 12px; }
.records-overview { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0; }
.records-overview a { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); }
.records-overview strong { color: var(--accent); font-size: 1.4rem; }
.records-overview .records-warning { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border: 1px solid #f0d49a; border-radius: 10px; background: #fff8e8; color: #7a5300; }
.records-overview .records-warning strong { color: #b07800; }
.location-picker { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.location-cell { min-width: 190px; }
.location-cell .location-picker { grid-template-columns: 1fr; min-width: 230px; }
.location-cell label { margin-bottom: 6px; }
.missing-badge { display: inline-block; white-space: nowrap; padding: 3px 9px; border-radius: 12px; background: #fff3d6; color: #8a5d00; font-size: .74rem; font-weight: 600; }
.link-button { display: block; margin-top: 6px; padding: 0; border: none; background: none; color: var(--accent); font-size: .78rem; font-weight: 600; text-decoration: underline; }
.link-button:hover { color: var(--accent); filter: none; }
@media (max-width: 1050px) { .location-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .location-picker { grid-template-columns: 1fr; } }
.records-section { margin: 32px 0; scroll-margin-top: 20px; }
.records-section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.records-section-heading h2 { margin: 0 0 4px; }
.records-section-heading p { margin: 0; }
.records-section .section-heading h3 { margin: 0; }
.record-create { padding: 0; }
.record-create summary { padding: 18px 24px; cursor: pointer; color: var(--accent); font-weight: 650; border-radius: 12px; }
.record-create summary:focus-visible { outline: 3px solid #8bd6d4; outline-offset: 2px; }
.record-create[open] summary { border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; background: #f5faf9; }
.record-form { padding: 24px; }
.record-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.record-form-grid > button { align-self: center; margin-bottom: 16px; }
.staff-address { grid-column: 1 / -1; }
.staff-grants .check { display: inline-flex; margin-right: 20px; }
.records-search { max-width: 520px; }
.list-filters { display: flex; gap: 12px; flex-wrap: wrap; }
.list-filters label { min-width: 220px; margin-bottom: 12px; }
.quick-add-toggle { padding: 5px 10px; font-size: .78rem; }
.quick-add { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px dashed #c4d2dd; border-radius: 6px; background: var(--surface); }
.quick-add-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-add-actions button { padding: 7px 12px; font-size: .8rem; }
.duplicate-hint { color: #ae2929; font-size: .82rem; font-weight: 600; margin: -8px 0 10px; }
.quick-add .duplicate-hint { margin: 0; }
.codebook-search { max-width: 520px; }
.codebook-add { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.codebook-table > * > tr > th, .codebook-table > * > tr > td { overflow-wrap: normal; word-break: normal; }
.codebook-table > thead > tr > th { white-space: nowrap; }
.codebook-table > * > tr > :first-child { width: 1%; white-space: nowrap; color: var(--muted); }
.codebook-table > * > tr > :last-child { width: 1%; white-space: nowrap; text-align: right; }
.codebook-delete { padding: 5px 9px; font-size: .78rem; white-space: nowrap; }
.codebook-delete-confirm { display: flex; justify-content: flex-end; gap: 5px; white-space: nowrap; }
.codebook-delete-confirm button { padding: 5px 8px; font-size: .75rem; white-space: nowrap; }
.in-use-badge { display: inline-block; white-space: nowrap; padding: 3px 9px; border-radius: 12px; background: #eef2f5; color: var(--muted); font-size: .74rem; font-weight: 600; cursor: help; }
.model-quantity-table { width: 100%; min-width: 360px; margin: -4px 0 8px; font-size: .82rem; }
.model-quantity-table th, .model-quantity-table td { padding: 6px 8px; overflow-wrap: normal; word-break: normal; vertical-align: middle; }
.model-quantity-table th { background: transparent; font-size: .66rem; white-space: nowrap; }
.model-quantity-table td:nth-child(2) { white-space: nowrap; }
.model-quantity-table th:last-child, .model-quantity-table td:last-child { width: 1%; white-space: nowrap; text-align: right; }
.model-quantity-table tbody tr:last-child td { border-bottom: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.instrument-status-actions { margin: 0; gap: 6px; }
.instrument-retirement { padding: 14px; border: 1px solid #b9dcdc; border-radius: 8px; background: #f2f9f8; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.stat { display: flex; flex-direction: column; background: white; padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 9px; }
.stat strong { font-size: 2rem; }.stat span { color: var(--muted); font-size: .82rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th { text-align: left; color: var(--muted); background: #f5f8fa; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
td input { min-width: 100px; }
small { display: block; color: var(--muted); font-size: .75rem; margin-top: 5px; }
.status { white-space: nowrap; padding: 5px 10px; border-radius: 20px; background: #e2f3ef; color: #1a6b59; font-size: .74rem; font-weight: 600; }
.status.pending { background: #fff3d6; color: #8a5a00; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }.filters label { margin: 0; }
.details { display: grid; grid-template-columns: 190px 1fr; gap: 11px 20px; font-size: .9rem; }
dt { color: var(--muted); font-weight: 500; } dd { margin: 0; overflow-wrap: anywhere; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.timeline { padding-left: 22px; }.timeline li { padding: 0 0 18px 10px; }
.narrow { max-width: 520px; margin: 60px auto; }
.empty { color: var(--muted); text-align: center; padding: 26px; }
fieldset { border: 1px solid var(--line); border-radius: 7px; padding: 15px; margin-bottom: 20px; }
legend { float: none; width: auto; padding: 0 5px; font-size: .9rem; font-weight: 700; }
.validation-message, .validation-errors { color: #ae2929; font-size: .85rem; }
.invalid { border-color: #ae2929; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; width: 100%; background: #fff3cd; padding: 18px; z-index: 1000; }
.certificate { max-width: 1050px; }
/* Certifikat: A4 stranice (ekran i stampa/PDF). */
.cert { --cert-red: #c0262d; --cert-green: #2e8b3d; --cert-box: #f2f2f2; --cert-border: #c9c9c9; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; color: #222; font-size: 10.5pt; }
.cert-sheet { width: 210mm; min-height: 297mm; margin: 0 auto 24px; padding: 10mm 15mm 8mm; background: white; box-shadow: 0 2px 12px #17314420; display: flex; flex-direction: column; }
.cert-header { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #555; border-bottom: 1px solid #555; padding: 3mm 0; margin-bottom: 6mm; min-height: 22mm; }
.cert-logo { width: 55mm; height: 16mm; }
.cert-header-number { font-size: 9pt; color: #555; }
.cert-body { flex-grow: 1; }
.cert-title { color: var(--cert-red); text-align: center; font-size: 30pt; font-weight: 700; letter-spacing: .08em; margin: 1mm 0 4mm; padding-bottom: 2.5mm; border-bottom: 2px solid var(--cert-green); }
.cert-row { display: grid; gap: 0 8mm; }
.cert-row-2 { grid-template-columns: 1fr 1fr; }
.cert-field { display: grid; grid-template-columns: 38mm 1fr; align-items: center; gap: 3mm; margin-bottom: 2mm; }
.cert-field > span { font-weight: 600; }
.cert-field > b { font-weight: 400; background: var(--cert-box); border: 1px solid var(--cert-border); padding: 1.3mm 2.5mm; min-height: 7mm; overflow-wrap: anywhere; }
.cert-field > b.center { text-align: center; }
.cert-statement { font-size: 12pt; text-align: center; margin: 4mm 0; }
.cert-ok { color: var(--cert-green); font-weight: 700; }
.cert-fail { color: var(--cert-red); font-weight: 700; }
.cert-section { text-align: center; font-size: 12pt; font-weight: 700; letter-spacing: .05em; border-top: 1px solid #555; padding-top: 2.5mm; margin: 4.5mm 0 3mm; }
.cert-subsection { font-size: 11pt; font-weight: 700; margin: 3mm 0; }
.cert-report { color: var(--cert-red); text-align: center; font-size: 13pt; font-weight: 700; margin: 7mm 0 3mm; }
.cert-range { color: var(--cert-red); font-weight: 700 !important; }
.cert-trace { margin-top: 5mm; font-size: 9.5pt; text-align: justify; }
.cert-note { margin-top: 6mm; font-size: 8.5pt; color: #444; text-align: justify; }
.cert-table { width: 100%; border-collapse: collapse; margin-bottom: 4mm; font-size: 9.5pt; }
.cert-table caption { font-weight: 700; text-align: center; padding: 2mm; border: 1px solid #555; border-bottom: 0; background: var(--cert-box); }
.cert-table th, .cert-table td { border: 1px solid #555; padding: 1.5mm 2mm; text-align: center; vertical-align: middle; overflow-wrap: normal; word-break: normal; }
.cert-table th { background: var(--cert-box); font-weight: 700; color: #222; font-size: 8.5pt; text-transform: none; letter-spacing: 0; }
.cert-results td { white-space: nowrap; }
.cert-units td { font-style: italic; font-size: 8.5pt; background: var(--cert-box); padding: .8mm 2mm; }
.cert-results td:nth-child(n+2):nth-child(-n+7) { font-variant-numeric: tabular-nums; }
.cert-footer { border-top: 1px solid #555; padding-top: 3mm; font-size: 8.5pt; margin-top: 6mm; }
.cert-footer-row { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; }
.cert-company { font-style: normal; }
.cert-sign { display: flex; flex-direction: column; align-items: center; gap: 1mm; }
.cert-sign span { font-weight: 700; }
.cert-sign i { display: block; width: 50mm; height: 9mm; border-bottom: 1px solid #555; }
.cert-page { text-align: right; }
.cert-print-template-code { display: none; }
.cert-footer-logos { display: flex; justify-content: space-between; margin-top: 2mm; }
.cert-logo-small { width: 25mm; height: 10mm; }
@media screen { .cert-logo, .cert-logo-small { border: 1px dashed #c9c9c9; } }
@media screen and (max-width: 900px) { .cert-sheet { width: 100%; min-height: 0; padding: 18px; } .cert-row-2 { grid-template-columns: 1fr; } }
@page certificate { size: A4; margin: 0; }
@page certificate-marked {
    size: A4;
    margin: 0 0 10mm;
    @bottom-right { content: var(--certificate-template-code); font: 8.5pt Calibri, Carlito, "Segoe UI", Arial, sans-serif; padding-right: 15mm; }
}
@media print { .cert { font-size: 10pt; } .cert-sheet { page: certificate; margin: 0; box-shadow: none; min-height: 0; break-after: page; } .cert-sheet:last-child { break-after: auto; } .cert * { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }
@media print {
    body:has(.cert-marked) { page: certificate; }
    .cert-marked .cert-field { margin-bottom: 1mm; }
    .cert-marked .cert-field > b { padding: 1mm 2mm; }
    .cert-marked .cert-section { margin: 3mm 0 2mm; }
    .cert-marked .cert-template-code { display: none; }
    .cert-marked .cert-print-template-code { display: block; position: fixed; right: 10mm; bottom: 5mm; max-width: 20mm; overflow-wrap: anywhere; text-align: right; font-size: 8.5pt; }
    /* A side gutter keeps the repeated mark clear of content in browsers without margin boxes. */
    html:not(.cert-page-margin-box) .cert-marked .cert-sheet { padding-right: 30mm; }
    html:not(.cert-page-margin-box) .cert-marked .cert-table { table-layout: fixed; }
    html:not(.cert-page-margin-box) .cert-marked .cert-table th, html:not(.cert-page-margin-box) .cert-marked .cert-table td { overflow-wrap: anywhere; }
    html:not(.cert-page-margin-box) .cert-marked .cert-results td { white-space: normal; }
    html.cert-page-margin-box body:has(.cert-marked) { page: certificate-marked; }
    html.cert-page-margin-box .cert-marked .cert-sheet { page: certificate-marked; }
    html.cert-page-margin-box .cert-marked .cert-print-template-code { display: none; }
}
@media (max-width: 1050px) { .two-columns { grid-template-columns: 1fr; } .app-main { padding: 28px; } .record-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .app-topbar { padding: 18px 14px 10px; }.topbar-heading { align-items: start; }.topbar-account { flex-wrap: wrap; gap: 8px; max-width: 55%; }.app-topbar nav a { padding: 10px; }.record-form-grid { grid-template-columns: 1fr; }.record-form { padding: 18px; }.list-filters label { min-width: 0; width: 100%; }.app-main { padding: 22px 14px; }.stats { grid-template-columns: repeat(2,1fr); }.filters { grid-template-columns: 1fr; }.details { grid-template-columns: 1fr; gap: 5px; } dd { margin-bottom: 12px; } }
@media print { .no-print, #blazor-error-ui, #components-reconnect-modal { display: none !important; } body { background: white; font-size: 11px; }.app-main { padding: 0; }.panel { border: 0; box-shadow: none; padding: 0; }.details { grid-template-columns: 180px 1fr; }th,td { padding: 8px; }.certificate { max-width: none; } }
.management-minutes, .audit-report, .equipment-report { max-width: 900px; margin: 0 auto; padding: 32px; background: white; color: #17212b; }
.equipment-report.wide { max-width: 1300px; }
.management-minutes h1, .audit-report h1, .equipment-report h1 { font-size: 1.5rem; text-align: center; }
.management-minutes h2, .audit-report h2, .equipment-report h2 { font-size: 1.05rem; margin-top: 1.2em; }
.management-minutes p, .audit-report p, .equipment-report p { margin: 0.3em 0; }
.management-minutes .prewrap, .audit-report .prewrap, .equipment-report .prewrap { max-width: none; overflow-wrap: anywhere; }
.management-minutes table, .audit-report table, .equipment-report table { width: 100%; }
.equipment-report.wide table { table-layout: fixed; }
.management-minutes th, .management-minutes td, .audit-report th, .audit-report td, .equipment-report th, .equipment-report td { border: 1px solid #777; vertical-align: top; }
.equipment-report th, .equipment-report td { overflow-wrap: anywhere; }
.minutes-code { text-align: right; font-weight: 700; }
.minutes-draft { text-align: center; font-weight: 700; color: #9c2c2c; }
@page equipment-report-wide { size: A4 landscape; margin: 12mm; }
@media print { .management-minutes, .audit-report, .equipment-report { max-width: none; padding: 0; font-size: 10pt; } .management-minutes tr, .audit-report tr, .equipment-report tr { break-inside: avoid; } .equipment-report.wide { page: equipment-report-wide; font-size: 8pt; } .equipment-report.wide th, .equipment-report.wide td { padding: 3px; } }
.mapping-report { max-width: 1300px; margin: 0 auto; padding: 32px; background: white; color: #17212b; }
.mapping-report h1 { font-size: 1.5rem; text-align: center; }
.mapping-report h2 { font-size: 1.05rem; margin-top: 1.2em; }
.mapping-report p { margin: 0.3em 0; overflow-wrap: anywhere; }
.mapping-report table { width: 100%; }
.mapping-report th, .mapping-report td { border: 1px solid #777; vertical-align: top; overflow-wrap: anywhere; }
.mapping-chart { width: 100%; height: auto; max-width: 1100px; }
.mapping-evidence-image { display: block; max-width: 100%; max-height: 580px; object-fit: contain; margin: 1em auto; }
@page mapping-report { size: A4 landscape; margin: 12mm; }
@media print {
    body:has(.mapping-report) { page: mapping-report; }
    .mapping-report { page: mapping-report; max-width: none; padding: 0; font-size: 8pt; }
    .mapping-report th, .mapping-report td { padding: 3px; }
    .mapping-report tr, .mapping-chart-block, .mapping-evidence-image { break-inside: avoid; }
    .mapping-chart { max-height: 170mm; }
}
.codebook-wide { grid-column: 1 / -1; }
.codebook-pair { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); gap: 22px; margin-bottom: 22px; }
.codebook-pair > .panel { margin: 0; min-width: 0; }
.codebook-pair-left { grid-column: 1; }
.codebook-pair-right { grid-column: 2; }
.codebook-pair-form { grid-row: 1; }
.codebook-pair-list { grid-row: 2; align-self: start; }
.codebook-pair-form .codebook-add { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.codebook-pair-list h3 { margin-top: 0; }
@media (max-width: 1050px) { .codebook-pair { grid-template-columns: 1fr; } .codebook-pair > .panel { grid-column: 1; grid-row: auto; } }
.range-line { display: block; }
.quantity-list { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.quantity-list-title { font-size: .82rem; font-weight: 600; color: var(--muted); }
.quantity-row { display: grid; grid-template-columns: minmax(130px, 1.4fr) minmax(80px, 1fr) minmax(80px, 1fr) minmax(110px, 1.2fr) minmax(80px, 1fr) auto; gap: 6px; align-items: center; }
.quantity-row input, .quantity-row select { margin: 0; }
.quantity-remove { padding: 5px 10px; }
@media (max-width: 700px) { .quantity-row { grid-template-columns: 1fr 1fr; } }

/* Sifrarnici dashboard */
.back-link { margin-bottom: 14px; font-size: .9rem; }
.back-link a { font-weight: 600; }
.codebook-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-counts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.category-counts li { padding: 4px 10px; border-radius: 999px; background: #eef4f6; color: var(--muted); font-size: .82rem; }
.category-counts strong { color: var(--ink); margin-left: 4px; }
.address-filter { display: flex; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.address-filter label { min-width: 240px; }
.address-filter p { margin: 0; flex: 1; }
.limit-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: #fff7e6; color: #8a5a00; font-size: .85rem; }
@media (max-width: 1100px) { .codebook-categories { grid-template-columns: 1fr; } }

/* Referentna oprema */
.records-overview .records-warning, .records-overview .records-danger { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-radius: 10px; }
.records-overview .records-danger { border: 1px solid #efb8b8; background: #fff1f1; color: #8a2424; }
.records-overview .records-danger strong { color: #b13c3c; }
.validity { display: block; width: fit-content; margin-top: 4px; white-space: nowrap; padding: 3px 9px; border-radius: 12px; font-size: .72rem; font-weight: 650; }
.validity-valid { background: #e2f3ef; color: #1a6b59; }
.validity-expiringsoon { background: #fff4d8; color: #7a5300; }
.validity-expired { background: #fde4e4; color: #8a2424; }
.records-warning-inline { color: #7a5300; font-weight: 600; }
.uncertainty-table { width: 100%; margin: 4px 0 16px; font-size: .86rem; }
.uncertainty-table th, .uncertainty-table td { padding: 6px 8px; vertical-align: middle; }
.uncertainty-table td:nth-child(2) { white-space: nowrap; }
.uncertainty-table input { margin: 0; min-width: 90px; }
.unit-input { display: flex; align-items: center; gap: 6px; }
.unit-input span { color: var(--muted); white-space: nowrap; }
.reference-table td:first-child, .reference-table td:nth-child(7) { white-space: nowrap; }
.reference-table th:last-child, .reference-table td:last-child { width: 1%; }
.row-actions { display: flex; flex-direction: column; gap: 6px; }
.row-actions button { padding: 6px 10px; font-size: .78rem; white-space: nowrap; }
.inline-editor-row td { background: #f5faf9; padding: 18px 20px; }
.shipping-return-form { min-width: 260px; }
.status.danger { background: #fde4e1; color: #a12a1b; }
.preserve-lines { white-space: pre-line; }
.maintenance-warnings { border-left: 4px solid #d98c00; background: #fffaf0; }
.maintenance-warnings ul { margin: 0; padding-left: 20px; }
.maintenance-obligations { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 24px; }
.maintenance-obligations legend { font-weight: 600; font-size: .9rem; }
.maintenance-obligations label:not(.checkbox) { max-width: 180px; }
.attention-list { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

.assignment-table select { min-width: 260px; }
.request-panel .due-date { max-width: 260px; margin-top: 16px; }
.instrument-details { margin-bottom: 8px; }
.created-requests { margin: 0; padding-left: 20px; line-height: 1.9; }

.assignment-table { min-width: 1050px; }
.assignment-table th, .assignment-table td { min-width: 135px; }
.assignment-table td:first-child { min-width: 230px; }
.assignment-table td:first-child small { display: block; color: #64748b; margin-top: 4px; }
.instrument-search { max-width: 420px; margin-bottom: 10px; }
.instrument-pick-table td:first-child { width: 70px; text-align: center; }
.instrument-pick-table td small { display: block; color: #64748b; margin-top: 4px; }
.instrument-pick-table .selected-row { background: #eef6ff; }
tr.selected-row > td { background: #eef6ff; }
tr.selected-row > td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.instrument-pick-table .incompatible-row { color: #94a3b8; }
.environment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 8px; }
.calibration-table th, .calibration-table td { min-width: 140px; }
.calibration-table td:first-child small { display: block; color: #64748b; }
.calibration-instrument { margin-bottom: 24px; }
.calibration-instrument-heading { margin: 0; padding: 16px 12px; background: #e2e8f0; color: #0f172a; font-size: 1rem; }
.calibration-quantity-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin: 0; padding: 14px 24px; background: #f1f5f9; color: #334155; font-size: .85rem; }
.calibration-quantity-heading span { white-space: nowrap; }
.calibration-quantity-heading .reference-range { white-space: normal; }
.calibration-quantity-heading span:first-child { font-weight: 700; text-transform: uppercase; }
.calibration-quantity-heading span:not(:first-child) { font-weight: 400; }

.expiry-notices { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.expiry-notices li { padding: 8px 12px; border-left: 4px solid #d99a00; background: #fff8e6; border-radius: 4px; line-height: 1.5; }
.expiry-notices li.expiry-expired { border-left-color: #b42318; background: #fdecea; }
.expiry-notices a { margin-left: 8px; font-weight: 600; }

.prewrap { white-space: pre-wrap; max-width: 28rem; }
tr.selected td { background: #eef5ff; }

.audit-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; }
tr.audit-failed td { background: #fff1f0; }
.intake-camera-button { display: block; margin-bottom: 8px; padding: 7px 12px; }
.webcam-capture { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #f5f8fa; max-width: 760px; }
.webcam-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.webcam-header select { width: auto; max-width: 320px; }
.webcam-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #10212c; border-radius: 8px; object-fit: contain; }
.webcam-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* Metode kalibracije */
.method-status-filter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.climate-method-status-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.method-status-filter button { display: flex; flex-direction: column; align-items: flex-start; background: white; color: inherit; border: 1px solid var(--line); border-top: 3px solid #9aa7b3; border-radius: 9px; padding: 14px 16px; text-align: left; }
.method-status-filter button strong { font-size: 1.6rem; }
.method-status-filter button span { color: var(--muted); font-size: .8rem; }
.method-status-filter button.active { box-shadow: 0 0 0 2px var(--accent); }
.method-status-filter .method-status-draft { border-top-color: #9aa7b3; }
.method-status-filter .method-status-validation { border-top-color: #d89b00; }
.method-status-filter .method-status-approved { border-top-color: #1a6b59; }
.method-status-filter .method-status-withdrawn { border-top-color: #8a2424; }
.method-pill { display: inline-block; white-space: nowrap; padding: 3px 10px; border-radius: 12px; font-size: .74rem; font-weight: 650; }
.method-pill.method-status-draft { background: #eef1f4; color: #44515e; }
.method-pill.method-status-validation { background: #fff4d8; color: #7a5300; }
.method-pill.method-status-approved { background: #e2f3ef; color: #1a6b59; }
.method-pill.method-status-withdrawn { background: #fde4e4; color: #8a2424; }
.method-row-open td { background: #f6f8fa; }
.method-template { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 8px 14px; align-items: end; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.method-template p { grid-column: 1 / -1; margin: 0; }
.method-section { border: 1px solid var(--line); border-radius: 9px; padding: 12px 16px 6px; margin: 0 0 14px; }
.method-section legend { float: none; width: auto; font-size: .95rem; font-weight: 650; padding: 0 6px; margin: 0; }
.method-section[disabled] { opacity: .75; }
.method-checklist-input { width: 100%; font-family: Consolas, monospace; font-size: .85rem; }
.method-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.method-detail h3 { font-size: 1rem; margin-top: 4px; }
.climate-live-values { display: flex; flex-direction: column; gap: 3px; }
.list-pager { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pre-line { white-space: pre-line; }
.method-checklist-section { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 4px; }
.method-checklist { margin: 0 0 8px; padding-left: 1.6em; font-size: .88rem; }
.method-checklist li { margin: 3px 0; }
.method-checklist li.critical { font-weight: 600; }
.method-critical { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; background: #8a2424; color: white; font-size: .7rem; font-weight: 700; }
.climate-test-checklist li { margin-bottom: 12px; }
.climate-checklist-response { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; font-weight: 400; }
.climate-checklist-response label { flex: 1 1 220px; }
.climate-checklist-record { margin-top: 3px; font-weight: 400; }
.climate-checklist-history { margin-top: 4px; font-weight: 400; }
.method-lifecycle { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.method-lifecycle label { flex: 1 1 100%; }
.method-lifecycle .row-actions { margin-left: auto; }
.method-problems { flex: 1 1 100%; margin: 0; color: #8a2424; font-size: .86rem; }
@media (max-width: 900px) { .method-status-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); } .method-detail { grid-template-columns: 1fr; } }
.method-run-checklist { margin: 12px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; }
.method-run-checklist summary { cursor: pointer; font-weight: 600; }

/* Kontrolna lista odabrane metode kao bočni panel lijevo tokom kalibracije */
.method-checklist-sidebar { position: fixed; z-index: 15; top: 96px; left: 12px; width: 300px; max-height: calc(100vh - 120px); overflow-y: auto;
    padding: 12px 14px; border: 1px solid #b9dcdc; border-left: 4px solid var(--accent); border-radius: 10px; background: #fff; box-shadow: 0 10px 28px #071c2b26; }
.method-checklist-sidebar header { position: sticky; top: -12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
    margin: -12px -14px 8px; padding: 12px 14px 8px; border-bottom: 1px solid var(--line); background: #fff; }
.method-checklist-sidebar header > div { min-width: 0; overflow-wrap: anywhere; }
.method-checklist-sidebar header strong { display: block; color: var(--accent); }
.method-checklist-sidebar header small { display: block; color: var(--muted); font-size: .78rem; }
.method-checklist-sidebar header button { flex: none; padding: 2px 9px; font-size: 1.1rem; line-height: 1.2; }
.method-checklist-sidebar .method-checklist { font-size: .83rem; }
.method-checklist-sidebar .climate-test-checklist { overflow-wrap: anywhere; }
.method-checklist-sidebar .climate-checklist-response label { flex-basis: 100%; min-width: 0; }
.method-checklist-sidebar .climate-checklist-response textarea { width: 100%; min-width: 0; }
.method-checklist-tab { position: fixed; z-index: 15; top: 96px; left: 0; padding: 10px 8px; border-radius: 0 9px 9px 0; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .8rem; }
@media (min-width: 1100px) { .app-main:has(.method-checklist-sidebar) { padding-left: 340px; } }
@media (max-width: 1099.98px) {
    .method-checklist-sidebar { position: static; width: auto; max-height: 60vh; margin: 12px 0; }
    .method-checklist-tab { position: static; writing-mode: horizontal-tb; transform: none; margin: 8px 0; border-radius: 9px; }
}

/* Compact buttons and table headers */
button, .button { white-space: nowrap; line-height: 1.25; }
.link-button, .method-status-filter button { white-space: normal; }
td button, td .button { padding: 7px 12px; font-size: .8rem; }
th { font-size: .66rem; letter-spacing: .05em; line-height: 1.35; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
@media (max-width: 640px) {
    .app-main :has(> button, > .button) { flex-wrap: wrap; }
    button:not(.link-button, .method-status-filter button), .button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    button:not(.link-button, .method-status-filter button, td button), .button:not(td .button) { padding-left: 12px; padding-right: 12px; font-size: .84rem; }
}

/* Highlighted action sections */
.app-main details:not(.nav-group, .panel, .method-run-checklist) { margin: 14px 0; border: 1px solid #b9dcdc; border-left: 4px solid var(--accent); border-radius: 10px; background: #fff; box-shadow: 0 2px 6px #08303405; }
.app-main details:not(.nav-group, .method-run-checklist) > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--accent); font-weight: 650; cursor: pointer; list-style: none; background: #f2f9f8; border-radius: 6px 9px 9px 6px; transition: background .15s ease; }
.app-main details:not(.nav-group, .method-run-checklist) > summary::-webkit-details-marker { display: none; }
.app-main details:not(.nav-group, .method-run-checklist) > summary::after { flex: none; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform .16s ease; }
.app-main details:not(.nav-group, .method-run-checklist)[open] > summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.app-main details:not(.nav-group, .method-run-checklist) > summary:hover { background: #e3f2f0; }
.app-main details:not(.nav-group, .method-run-checklist) > summary:focus-visible { outline: 3px solid #8bd6d4; outline-offset: 2px; }
.app-main details:not(.nav-group, .panel, .method-run-checklist)[open] { padding-bottom: 16px; }
.app-main details:not(.nav-group, .panel, .method-run-checklist)[open] > summary { margin-bottom: 16px; border-bottom: 1px solid #cfe6e5; border-radius: 6px 9px 0 0; }
.app-main details:not(.nav-group, .panel, .method-run-checklist) > :not(summary) { margin-left: 16px; margin-right: 16px; }
.app-main details.panel > summary { padding: 18px 24px; border-left: 4px solid var(--accent); }
.app-main td details:not(.nav-group, .panel, .method-run-checklist) { margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; padding-bottom: 0; }
.app-main td details:not(.nav-group, .panel, .method-run-checklist) > summary { display: inline-flex; padding: 5px 10px; margin: 0; border: 1px solid #b9dcdc; border-radius: 6px; font-size: .8rem; white-space: nowrap; }
.app-main td details:not(.nav-group, .panel, .method-run-checklist) > :not(summary) { margin-left: 0; margin-right: 0; }
.app-main .method-checklist-sidebar .climate-checklist-history > summary { padding: 6px 8px; font-size: .78rem; }
@media print { .app-main details > summary::after { display: none; } .app-main details:not(.nav-group) { border: 0; box-shadow: none; } }
.app-main details.panel[open] > summary { border-bottom: 1px solid var(--line); border-radius: 9px 12px 0 0; }
td { overflow-wrap: break-word; }
.panel { overflow-x: auto; }

/* AI pristup (API tokeni) */
.highlight-panel { border: 2px solid var(--accent); background: #eef8f8; }
.token-secret { width: 100%; font-family: Consolas, "Courier New", monospace; font-size: .9rem; padding: 10px; border: 1px dashed var(--accent); background: white; }
.code-sample { margin: 8px 0 12px; padding: 12px 14px; overflow-x: auto; background: #173144; color: #e8f1f5; border-radius: 8px; font-size: .8rem; line-height: 1.45; white-space: pre; }
.topbar-account .button { flex-shrink: 0; white-space: nowrap; }
.email-message-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: .5rem;
    margin: 1rem 0;
}
