@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Manrope:wght@600;700;800&display=swap');

:root {
    --bg1: #cfdced;
    --bg2: #eef3f9;
    --glass: rgba(255, 255, 255, 0.62);
    --line: rgba(255, 255, 255, 0.9);
    --text: #152033;
    --muted: #5b6b80;
    --blue: #2f6fed;
    --ok: #0f9f6e;
    --gold: #c9a227;
    --warn: #c47b12;
    --bad: #dc3b4a;
    --header: rgba(21, 32, 51, 0.92);
    --shadow: 0 10px 28px rgba(80, 110, 150, 0.12);
}

* { box-sizing: border-box; }
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
body {
    background:
        radial-gradient(900px 420px at 8% 0%, rgba(255,255,255,.75), transparent 55%),
        radial-gradient(800px 400px at 100% 100%, rgba(160,196,255,.35), transparent 50%),
        linear-gradient(160deg, var(--bg1), var(--bg2));
    font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
.container, .container-fluid {
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
    margin-top: 12px;
    padding-left: 10px;
    padding-right: 10px;
}
body.is-login {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding:
        max(0.75rem, env(safe-area-inset-top, 0px))
        max(0.75rem, env(safe-area-inset-right, 0px))
        max(0.75rem, env(safe-area-inset-bottom, 0px))
        max(0.75rem, env(safe-area-inset-left, 0px));
}
body.is-login .container {
    max-width: min(26rem, 100%) !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.login-box {
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}
.login-box > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    padding-left: 0;
    padding-right: 0;
}
.login-card,
.login-card .card-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
}
.login-card .card-body {
    display: flex;
    flex-direction: column;
    gap: clamp(0.65rem, 2.2vw, 1rem);
    padding: clamp(1rem, 4.5vw, 1.75rem);
}
.login-card .form-control {
    width: 100%;
    min-height: 2.75rem;
    font-size: clamp(1rem, 2.8vw, 1.125rem);
    margin-bottom: 0 !important;
}
.login-card .btn {
    width: 100%;
    min-height: 2.75rem;
    font-size: clamp(1rem, 2.8vw, 1.125rem);
}
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.25rem;
    user-select: none;
}
.login-brand-name {
    font-weight: 800;
    font-size: clamp(1.05rem, 3vw, 1.25rem);
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.2;
    text-align: center;
}
@media (max-height: 420px) {
    body.is-login { justify-content: flex-start; }
    .login-card .card-body { padding: 0.75rem; }
}
.journal-logo {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
    background: transparent;
    mix-blend-mode: normal;
    user-select: none;
    -webkit-user-drag: none;
    outline: none;
    filter:
        drop-shadow(0 1px 2px rgba(21, 32, 51, 0.28))
        drop-shadow(0 3px 8px rgba(47, 111, 237, 0.14))
        brightness(1.08) contrast(1.12) saturate(1.18);
}
.journal-logo-lg { height: 66px; }

.sys-fold {
    border: 1px solid rgba(21, 32, 51, 0.1);
    border-radius: 8px;
    padding: 4px 10px 8px;
    background: #fff;
    margin-top: 0.75rem;
}
.sys-fold > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}
.sys-fold > summary::-webkit-details-marker { display: none; }
.sys-fold > summary::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 7px;
    border-color: transparent transparent transparent #667085;
    transition: transform 0.15s ease;
    flex: none;
}
.sys-fold[open] > summary::before { transform: rotate(90deg); }
.sys-fold > summary:focus,
.sys-fold > summary:focus-visible { outline: none; }
.sys-fold > summary:hover { color: var(--blue); }

nav.journal-nav {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1040;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(1.2);
    transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
nav.journal-nav.is-scrolled {
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 14px 32px rgba(80, 110, 150, 0.18);
    border-color: rgba(255, 255, 255, 0.95);
}
.journal-nav .container-fluid {
    gap: 8px;
}
.journal-nav .navbar-collapse,
.journal-nav .navbar-nav,
.journal-nav .nav-item.dropdown {
    overflow: visible;
}
.journal-nav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text) !important;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}
.journal-nav .navbar-brand:hover {
    color: var(--blue) !important;
}
.journal-nav .navbar-brand:focus,
.journal-nav .navbar-brand:focus-visible,
.journal-nav .navbar-brand:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}
.journal-nav .nav-link,
.journal-nav .navbar-text {
    color: var(--text) !important;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.45rem 0.75rem !important;
    transition: color 0.15s ease, background 0.15s ease;
}
.journal-nav .nav-link:hover,
.journal-nav .nav-link:focus {
    color: var(--blue) !important;
    background: rgba(47, 111, 237, 0.08);
}
.journal-nav .nav-link.active,
.journal-nav .nav-link.show {
    color: var(--blue) !important;
    background: rgba(47, 111, 237, 0.12);
}
.journal-nav .dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: 0.12em;
    opacity: 0.65;
}
.journal-nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(80, 110, 150, 0.18);
    backdrop-filter: blur(20px) saturate(1.25);
    z-index: 1050;
    min-width: 15rem;
    padding: 8px;
    margin-top: 8px !important;
    animation: journalDropIn 0.16s ease-out;
}
@keyframes journalDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.journal-nav .dropdown-header {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 6px 12px 4px;
}
.journal-nav .dropdown-divider {
    margin: 6px 8px;
    border-color: rgba(21, 32, 51, 0.1);
}
.journal-nav .dropdown-item {
    color: var(--text);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    white-space: normal;
}
.journal-nav .dropdown-item:hover,
.journal-nav .dropdown-item:focus {
    background: rgba(47, 111, 237, 0.1);
    color: var(--text);
}
.journal-nav .dropdown-item.active,
.journal-nav .dropdown-item:active {
    background: rgba(47, 111, 237, 0.14);
    color: var(--blue);
    box-shadow: inset 3px 0 0 var(--blue);
}
.journal-nav-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    margin-left: auto;
}
.journal-nav-account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.journal-nav-impersonate {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 1;
    min-width: 0;
}
.journal-nav-impersonate-lbl {
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.journal-nav-impersonate .form-select {
    min-width: 10.5rem;
    max-width: 14rem;
    font-size: 0.78rem;
    font-weight: 650;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}
.journal-nav-exit-view {
    font-weight: 700;
    white-space: nowrap;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.journal-view-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem 0.85rem;
    padding: 0.4rem 0.85rem;
    background: linear-gradient(90deg, #fff3cd, #ffe8a3);
    border-bottom: 1px solid rgba(180, 140, 40, 0.35);
    color: #5c4a12;
    font-size: 0.82rem;
    font-weight: 650;
}
.journal-view-banner strong {
    font-weight: 800;
}
.journal-nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(21, 32, 51, 0.1);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    max-width: 100%;
}
.journal-nav-user-role {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.journal-nav .navbar-toggler {
    padding: 8px 12px;
    border: 1px solid rgba(21, 32, 51, 0.28);
    border-radius: 12px;
}
.journal-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(47, 111, 237, 0.18);
}
.journal-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23152033' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (min-width: 992px) {
    .journal-nav .navbar-nav {
        gap: 2px;
    }
    .journal-nav-meta {
        margin-left: auto;
    }
}
@media (max-width: 991.98px) {
    .journal-nav .navbar-collapse {
        margin-top: 10px;
        padding: 10px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.45);
        border: 1px solid rgba(21, 32, 51, 0.08);
    }
    .journal-nav .dropdown-menu {
        position: static !important;
        float: none;
        transform: none !important;
        box-shadow: none;
        border: 1px solid rgba(21, 32, 51, 0.08);
        background: rgba(255, 255, 255, 0.72);
        margin: 4px 0 8px 0.75rem !important;
        animation: none;
    }
    .journal-nav-meta {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid rgba(21, 32, 51, 0.08);
    }
}
.btn-outline-navy {
    color: var(--text);
    border: 1px solid rgba(21, 32, 51, 0.28);
    background: transparent;
}
.btn-outline-navy:hover {
    color: #fff;
    background: var(--header);
    border-color: var(--header);
}
.page-title, h2 { font-size: 1.45rem; font-weight: 700; color: var(--text); }
.filter-bar, .date-bar {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(1.2);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
    min-width: 0;
}
.form-section {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(1.2);
}
.form-label {
    font-size: 0.72rem;
    font-weight: 650;
    margin-bottom: 0.28rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 4px;
}
.form-control,
.form-select,
.form-control-sm,
.form-select-sm,
textarea.form-control,
.modal .form-control,
.modal .form-select,
.modal .form-control-sm,
.modal .form-select-sm {
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: #64748b !important;
    font-weight: 500;
    box-shadow: none !important;
    min-height: 2.05rem;
    padding: 0.35rem 0.7rem;
}
.form-control-sm,
.form-select-sm,
.modal .form-control-sm,
.modal .form-select-sm {
    min-height: 2rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.875rem;
}
.form-control:hover,
.form-select:hover,
.form-control-sm:hover,
.form-select-sm:hover,
.modal .form-control:hover,
.modal .form-select:hover {
    border-color: #94a3b8 !important;
}
.form-control:focus,
.form-select:focus,
.form-control-sm:focus,
.form-select-sm:focus,
.form-control:focus-visible,
.form-select:focus-visible,
.modal .form-control:focus,
.modal .form-select:focus {
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14) !important;
    color: #334155 !important;
    outline: 0;
    background: #fff !important;
}
.form-control::placeholder,
.form-control-sm::placeholder {
    color: #94a3b8;
    opacity: 1;
}
.form-control:disabled,
.form-select:disabled,
.form-control[readonly],
.form-select[readonly] {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    opacity: 1;
    border-color: #e2e8f0 !important;
}
.form-select,
.form-select-sm {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.7rem center !important;
    background-size: 12px 10px !important;
    padding-right: 2rem !important;
}
.form-select option,
.form-select-sm option {
    color: #334155;
    font-weight: 500;
}
.input-group .form-control,
.input-group .form-select {
    border-radius: 12px !important;
}
.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-danger,
.btn-outline-success {
    border-radius: 999px;
    border-width: 1px;
    font-weight: 600;
}
.btn-outline-secondary {
    color: #475569;
    border-color: #94a3b8;
    background: #fff;
}
.btn-outline-secondary:hover {
    color: #1e293b;
    background: #f8fafc;
    border-color: #64748b;
}
.modal-body .form-label {
    color: #94a3b8;
}
.modal-content .form-control,
.modal-content .form-select {
    background: #fff !important;
}
.table-wrapper {
    overflow-x: auto;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.table { margin-bottom: 0; font-size: 0.75rem; border-collapse: collapse; }
.table th { background: var(--header) !important; color: white; position: sticky; top: 0; white-space: nowrap; padding: 8px 6px; }
.table td { padding: 6px 4px; white-space: nowrap; }
.table tr.bg-defeat td { background-color: rgba(15, 159, 110, 0.12) !important; }
.stat-number, .stats-number { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; }
.table tr.bg-destroyed td, .table tr.row-destroyed td, .row-destroyed td { background-color: #7dcea0 !important; }
.table tr.bg-success-delivery td { background-color: #fff3cd !important; }
.table tr.bg-mining-success td { background-color: #e6e6fa !important; }
.table tr.bg-loss td { background-color: #f8d7da !important; }
.table tr.bg-success td, .table tr.ok td { background-color: #d4edda !important; }
.table tr.fail td { background-color: #f8d7da !important; }
.stats-panel {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(1.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.stats-box {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.45);
}
.stats-box h6 {
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid rgba(21, 32, 51, 0.12);
    padding-bottom: 5px;
}
.stats-number, .stat-number { font-size: 1.5rem; font-weight: bold; }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }
.btn-icon { padding: 2px 6px; font-size: 0.7rem; margin: 0 2px; border-radius: 0; }
select:disabled, input:disabled { background: rgba(255,255,255,0.45) !important; cursor: not-allowed; }

.records-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
    gap: 12px;
    align-items: start;
    width: 100%;
    min-width: 0;
}
.records-main, .records-side, .form-section {
    min-width: 0;
    max-width: 100%;
}
@media (max-width: 860px) {
    .records-layout { grid-template-columns: 1fr; }
}
.flight-grid,
#nrtkForm.row,
#reconForm.row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 10px;
    align-items: start;
    width: 100%;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}
.flight-field,
#nrtkForm.row > [class*="col-"],
#reconForm.row > [class*="col-"] {
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.flight-field > .form-label,
#nrtkForm .form-label,
#reconForm .form-label {
    min-height: 2.5em;
    margin-bottom: 4px;
    align-items: flex-start;
}
.flight-field > .form-control,
.flight-field > .form-select,
.field-free > .form-control,
.field-free > .form-select {
    width: 100%;
    min-width: 0;
    height: 31px;
}
.flight-grid > input[type=hidden],
#nrtkForm > input[type=hidden],
#reconForm > input[type=hidden] {
    display: none;
}
#nrtkForm.row > .col-12.d-flex,
#reconForm.row > .col-md-12 {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}
#reconForm.row > .recon-note-field {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
}
#reconForm .recon-note-field textarea {
    min-height: 52px;
    height: auto;
    resize: vertical;
}
#reconForm.row > .recon-objects-field,
#reconForm.row > .recon-note-field {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
}
#reconForm.row > .recon-broadcast-field {
    grid-column: span 2;
}
@media (max-width: 860px) {
    #reconForm.row > .recon-broadcast-field {
        grid-column: 1 / -1;
    }
}

.recon-objects-panel {
    width: 100%;
    border: 1px solid rgba(47, 111, 237, 0.14);
    border-radius: 16px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 6px 18px rgba(80, 110, 150, 0.07);
    padding: 12px 14px 12px;
}
.recon-objects-panel.is-required {
    border-color: rgba(201, 162, 39, 0.55);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}
.recon-objects-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.recon-objects-head-text { min-width: 0; flex: 1; }
.recon-objects-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
}
.recon-objects-hint {
    margin: 3px 0 0;
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.35;
}
.recon-objects-panel.is-required .recon-objects-hint {
    color: #8a6500;
    font-weight: 600;
}
.recon-objects-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.recon-object-row {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 148px 36px;
    gap: 10px;
    align-items: end;
    padding: 10px;
    border-radius: 12px;
    background: rgba(247, 250, 255, 0.9);
    border: 1px solid rgba(47, 111, 237, 0.10);
}
.recon-object-type-wrap,
.recon-object-qty-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.recon-object-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}
.recon-object-row .form-select,
.recon-object-row .form-control {
    min-height: 36px;
    width: 100%;
    border-radius: 10px;
}
.recon-object-qty {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 4px;
    align-items: center;
}
.recon-object-qty input {
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding-left: 2px;
    padding-right: 2px;
}
.recon-qty-btn,
.recon-object-remove {
    appearance: none;
    -webkit-appearance: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(47, 111, 237, 0.16);
    background: #fff;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}
.recon-qty-btn:hover {
    background: rgba(47, 111, 237, 0.08);
}
.recon-object-remove {
    align-self: end;
    color: var(--bad);
    border-color: rgba(220, 59, 74, 0.25);
    margin-bottom: 1px;
}
.recon-object-remove:hover {
    background: rgba(220, 59, 74, 0.08);
}
.recon-objects-add {
    appearance: none;
    -webkit-appearance: none;
    margin-top: 10px;
    width: 100%;
    min-height: 40px;
    border-radius: 12px;
    border: 1.5px dashed rgba(47, 111, 237, 0.35);
    background: rgba(47, 111, 237, 0.04);
    color: var(--blue);
    font-weight: 700;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}
.recon-objects-add span {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 111, 237, 0.12);
    font-size: 1rem;
    line-height: 1;
}
.recon-objects-add:hover {
    background: rgba(47, 111, 237, 0.08);
    border-color: rgba(47, 111, 237, 0.55);
}
.recon-objects-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.recon-object-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(47, 111, 237, 0.10);
    border: 1px solid rgba(47, 111, 237, 0.14);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
}
.recon-object-chip-x { opacity: 0.45; }
.recon-object-chip em {
    font-style: normal;
    font-variant-numeric: tabular-nums;
    color: var(--blue);
}
.recon-objects-empty {
    font-size: 0.76rem;
    color: var(--muted);
}
.recon-objects-cell {
    max-width: 340px;
    white-space: normal;
}
.recon-objects-cell .recon-object-chip {
    margin: 1px 3px 1px 0;
}
@media (max-width: 700px) {
    .recon-object-row {
        grid-template-columns: minmax(0, 1fr) 36px;
        grid-template-areas:
            "type remove"
            "qty remove";
    }
    .recon-object-type-wrap { grid-area: type; }
    .recon-object-qty-wrap { grid-area: qty; }
    .recon-object-remove { grid-area: remove; align-self: center; }
}


.recon-note-cell {
    max-width: 240px;
    white-space: pre-wrap;
    word-break: break-word;
}
.field-free {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.field-free .free-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.field-free .free-controls label {
    white-space: nowrap;
    font-size: 0.7rem;
}
.form-label { white-space: normal; line-height: 1.15; }

/* Подсказка: маленький «?» */
.hint-q {
    display: none;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 50%;
    border: 1px solid #6c757d;
    color: #6c757d;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    position: relative;
    text-transform: none;
    letter-spacing: 0;
    background: #fff;
}
.hint-q.is-on { display: inline-flex; }
.hint-q:hover { border-color: var(--blue); color: var(--blue); }
.hint-q .hint-bubble {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 7px);
    background: var(--header);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.35;
    white-space: pre-line;
    text-align: left;
    padding: 8px 10px;
    width: max-content;
    max-width: 280px;
    z-index: 40;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
    pointer-events: none;
}
.hint-q:hover .hint-bubble { display: block; }

#ammoFields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.ammo-block,
.mining-block {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #d8dee6;
    border-radius: 0;
    padding: 8px;
    background: #f7f8fa;
}
.mining-block h6 {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--muted);
    margin: 0 0 6px;
}
.ammo-group {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin: 0;
}
.ammo-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 4px;
    min-width: 0;
    width: 100%;
    padding: 6px 7px;
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: 0;
}
.ammo-item:has(input:disabled) {
    opacity: 0.55;
    background: #f3f4f6;
}
.ammo-item label {
    font-size: 0.72rem;
    font-weight: 600;
    margin: 0;
    color: var(--muted);
    line-height: 1.2;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.4em;
    word-break: break-word;
}
.ammo-control {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 26px;
    border: 1px solid #ced4da;
    border-radius: 0;
    background: #fff;
}
.ammo-control input,
.ammo-control .form-control {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    max-width: none;
    height: 24px !important;
    min-height: 24px !important;
    margin: 0;
    padding: 0 2px !important;
    border: 0 !important;
    border-left: 1px solid #ced4da !important;
    border-right: 1px solid #ced4da !important;
    border-radius: 0 !important;
    font-size: 0.8rem;
    line-height: 24px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-shadow: none !important;
}
.ammo-control input::-webkit-outer-spin-button,
.ammo-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ammo-control input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.ammo-control button {
    flex: 0 0 26px;
    width: 26px;
    height: 24px;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1;
    border: 0;
    border-radius: 0;
    background: #eef1f4;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
}
.ammo-control button:hover { background: #dfe5eb; }
.ammo-control button:active { background: #d0d7de; }
.ammo-control button:disabled { cursor: not-allowed; opacity: 0.7; }

/* Выбор БП со склада в форме вылета */
.ammo-stock-picker {
    max-width: 28rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.ammo-stock-picker .ammo-stock-head h6 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.ammo-stock-picker .ammo-stock-sub {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.3;
}
.ammo-stock-picker .ammo-pick-select {
    width: 100%;
    border-radius: 10px !important;
    border: 1px solid rgba(80, 110, 150, 0.22) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    min-height: 2.05rem;
}
.ammo-stock-picker .ammo-selected-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.ammo-stock-picker .ammo-picked-empty {
    padding: 0.55rem 0.7rem;
    font-size: 0.8rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.35);
    border: 1px dashed rgba(80, 110, 150, 0.28);
    border-radius: 10px;
}
.ammo-stock-picker .ammo-picked {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.4rem 0.45rem 0.4rem 0.7rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(80, 110, 150, 0.18);
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.ammo-stock-picker .ammo-picked-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}
.ammo-stock-picker .ammo-picked-name {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ammo-stock-picker .ammo-picked-stock {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.01em;
}
.ammo-stock-picker .ammo-stock-hint {
    margin: 0;
    line-height: 1.35;
}

/* Степпер +/− — круглые кнопки */
.ammo-stock-picker .ammo-stepper,
.flight-field .akb-combo .akb-stepper {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    width: auto;
    height: 1.9rem;
    padding: 0 0.2rem;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}
.ammo-stock-picker .ammo-stepper button,
.flight-field .akb-combo .akb-stepper button {
    flex: 0 0 1.45rem;
    width: 1.45rem;
    height: 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #e7eef9;
    color: var(--blue);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, transform 0.08s ease;
}
.ammo-stock-picker .ammo-stepper button:hover,
.flight-field .akb-combo .akb-stepper button:hover {
    background: #d4e2f8;
    color: #1e5ad6;
}
.ammo-stock-picker .ammo-stepper button:active,
.flight-field .akb-combo .akb-stepper button:active {
    background: #c3d6f4;
    transform: scale(0.94);
}
.ammo-stock-picker .ammo-stepper input,
.flight-field .akb-combo .akb-stepper input {
    flex: 0 0 1.7rem !important;
    width: 1.7rem !important;
    height: 1.45rem !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.45rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    box-shadow: none !important;
}
.ammo-stock-picker .ammo-picked-remove {
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    margin-right: 0.05rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #9aa7b8;
    font-size: 1rem;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
}
.ammo-stock-picker .ammo-picked-remove:hover {
    background: rgba(220, 59, 74, 0.1);
    color: var(--bad);
}

/* АКБ: селект + количество — один контрол */
.flight-field .akb-combo {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    height: 31px;
    border: 1px solid rgba(80, 110, 150, 0.22);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
}
.flight-field .akb-combo:focus-within {
    border-color: rgba(47, 111, 237, 0.55);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}
.flight-field .akb-combo #akb_sel {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-right: 0.25rem;
}
.flight-field .akb-combo .akb-stepper {
    height: 100%;
    padding: 0 0.28rem 0 0.2rem;
    border-left: 1px solid rgba(80, 110, 150, 0.14);
    background: rgba(241, 245, 251, 0.7);
}
.flight-field .akb-combo .akb-stepper button {
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.88rem;
}
.flight-field .akb-combo .akb-stepper input {
    flex: 0 0 1.55rem !important;
    width: 1.55rem !important;
    height: 1.35rem !important;
    line-height: 1.35rem;
    font-size: 0.8rem;
}

@media (max-width: 1200px) {
    .ammo-group,
    .flight-grid,
    #nrtkForm.row,
    #reconForm.row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .ammo-group,
    .flight-grid,
    #nrtkForm.row,
    #reconForm.row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .ammo-group,
    .flight-grid,
    #nrtkForm.row,
    #reconForm.row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.badge-dict { background: rgba(255,255,255,0.55); color: var(--text); padding: 3px 8px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.dict-toolbar { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; align-items: center; }
.dict-spoiler { border: 1px solid var(--line); background: var(--glass); border-radius: 10px; margin-bottom: 6px; overflow: hidden; }
.dict-spoiler-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: var(--header);
    color: #fff;
    border: 0;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 0.82rem;
    text-align: left;
}
.dict-spoiler-head:hover { background: rgba(21, 32, 51, 0.98); }
.dict-spoiler-head .dict-count { font-weight: 500; opacity: 0.85; margin-left: 6px; }
.dict-toggle { font-weight: 600; font-size: 0.75rem; background: rgba(255,255,255,0.85); color: var(--text); padding: 3px 10px; white-space: nowrap; border-radius: 10px; border: 1px solid var(--line); }
.dict-spoiler-body { display: none; padding: 8px 10px; }
.dict-spoiler.open .dict-spoiler-body { display: block; }
.dict-values { display: flex; flex-wrap: wrap; gap: 4px; }
.dict-calc-group {
    border: 1px solid rgba(21, 32, 51, 0.1);
    border-radius: 6px;
    padding: 4px 6px 6px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.55);
}
.dict-calc-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 12px;
}
.dict-calc-group-head strong { font-size: 12px; }
.dict-calc-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; flex-wrap: wrap; }
.dict-calc-row .dict-calc-bind { max-width: 140px; min-height: 26px; padding: 1px 6px; font-size: 12px; }
.dict-toolbar .form-control { max-width: 320px; }
.nav-tabs .nav-link { font-size: 0.9rem; font-weight: 500; }
.announcement-widget {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}
.announcement-widget h6 { font-weight: 700; color: var(--text); border-bottom: 1px solid rgba(21, 32, 51, 0.12); padding-bottom: 5px; margin-bottom: 10px; }
.announcement-card { border-left: 4px solid var(--blue); margin-bottom: 15px; }
.announcement-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.announcement-meta { font-size: 0.65rem; color: var(--muted); }
.fpv-stats table { width: 100%; font-size: 0.75rem; margin-top: 8px; border-collapse: collapse; }
.fpv-stats td, .fpv-stats th { padding: 4px 6px; border: 1px solid var(--line); }
.fpv-stats th { background: rgba(255,255,255,0.55); color: var(--text); }
.nightday-stats { margin-top: 10px; display: flex; justify-content: space-around; }

.blocks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
@media (max-width: 1000px) { .blocks-grid { grid-template-columns: 1fr; } }
.block-card {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(1.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.block-header {
    padding: 12px 16px;
    background: var(--header);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.block-header h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: white; }
.block-content { padding: 14px 16px; flex: 1; overflow-x: auto; }
.btn-print { background: rgba(255,255,255,0.18); color: white; border: 1px solid rgba(255,255,255,0.35); padding: 4px 10px; font-size: 0.7rem; border-radius: 10px; }
.btn-print:hover { background: rgba(255,255,255,0.28); color: white; }
.row-destroyed td { background-color: #7dcea0 !important; }
.hit-hint { font-size: 0.8rem; color: var(--muted); background: rgba(255,255,255,0.45); border-left: 3px solid var(--ok); padding: 8px 10px; margin-top: 8px; border-radius: 0 12px 12px 0; }
.division-stats { margin-bottom: 16px; border-bottom: 1px solid rgba(21, 32, 51, 0.12); padding-bottom: 10px; }
.division-title { font-weight: 700; background: rgba(47, 111, 237, 0.08); color: var(--text); padding: 5px 10px; margin-bottom: 8px; border-radius: 10px; }
.division-stats.is-empty .division-title { cursor: pointer; }
.division-stats.is-empty.collapsed .div-body { display: none; }
.division-stats.is-empty .division-title::after { content: ' ▾'; font-weight: normal; color: var(--muted); }
.division-stats.is-empty.collapsed .division-title::after { content: ' ▸'; }
.stats-row { margin-bottom: 4px; }
.stat-item { background: rgba(255,255,255,0.45); padding: 2px 8px; display: inline-block; border-radius: 8px; }
.recon-section { margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--blue); background: rgba(255,255,255,0.35); border-radius: 0 12px 12px 0; }
.recon-title { font-weight: 700; color: var(--text); margin-bottom: 6px; font-size: 0.85rem; }
.target-detail { margin-left: 20px; margin-bottom: 4px; font-size: 0.75rem; color: var(--muted); }
.total-row { border-top: 2px solid var(--text) !important; margin-top: 12px; padding-top: 10px; }
.table-significant td, .table-significant th { text-align: center; vertical-align: middle; }
.table-significant hr { margin: 3px 0; border-top: 1px solid rgba(21, 32, 51, 0.16); }
.table-significant td.sig-merge {
    vertical-align: middle;
}
.table-significant tr.sig-pair-top > td {
    background-color: #fff !important;
}
.table-significant tr.sig-pair-top > td:not(.sig-merge) {
    border-bottom: 1px solid rgba(21, 32, 51, 0.28);
}
.table-significant tr.row-destroyed > td {
    background-color: #7dcea0 !important;
}
.reports-page .table-significant tr.sig-pair-top > td,
body.report-leadership .table-significant tr.sig-pair-top > td {
    background-color: #fff !important;
}
.reports-page .table-significant tr.row-destroyed > td,
body.report-leadership .table-significant tr.row-destroyed > td {
    background-color: rgba(15, 159, 110, 0.28) !important;
}

.toolbar {
    background: var(--glass);
    padding: 6px 10px;
    margin-bottom: 15px;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.update-clock {
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    color: var(--text);
}
.status-online { color: var(--ok); font-weight: 700; }
.filter-row th { background: rgba(255,255,255,0.45) !important; color: var(--text); padding: 4px; border: 1px solid var(--line); }
.filter-row input, .filter-row select { width: 100%; font-size: 0.7rem; padding: 2px; border: 1px solid var(--line); border-radius: 10px; }
.sort-icon { cursor: pointer; margin-left: 4px; user-select: none; }
.divisions-info {
    background: var(--glass);
    padding: 6px 12px;
    margin-bottom: 15px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.division-time { background: rgba(47, 111, 237, 0.08); padding: 3px 10px; font-weight: 600; border-radius: 10px; color: var(--text); }
.stats-badge { background: rgba(255,255,255,0.55); padding: 5px 12px; font-size: 0.85rem; border-radius: 12px; border: 1px solid var(--line); }

.stats-table { width: 100%; font-size: 0.75rem; margin-bottom: 20px; border-collapse: collapse; }
.stats-table th { background: rgba(255,255,255,0.55); color: var(--text); padding: 6px 4px; text-align: center; border: 1px solid var(--line); }
.stats-table td { padding: 4px; text-align: center; border: 1px solid var(--line); }
.target-table { font-size: 0.7rem; width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.target-table th { background: var(--header); color: white; padding: 6px 4px; border: 1px solid rgba(255,255,255,0.12); }
.target-table td { padding: 4px; border: 1px solid var(--line); }
.section-title { font-weight: 700; font-size: 0.85rem; margin: 15px 0 8px 0; border-left: 3px solid var(--blue); padding-left: 8px; color: var(--text); }
.info-row { background: rgba(47, 111, 237, 0.08); padding: 6px 10px; margin-bottom: 12px; font-size: 0.8rem; font-weight: 600; border-radius: 12px; color: var(--text); }

.table-inventory { font-size: 0.7rem; width: 100%; border-collapse: collapse; }
.table-inventory th { background: var(--header); color: white; padding: 6px 4px; border: 1px solid rgba(255,255,255,0.12); white-space: nowrap; }
.table-inventory td { padding: 4px; border: 1px solid var(--line); white-space: nowrap; }
.missing-freq { background-color: #f8d7da !important; }
.ammo-list, .ov-list { list-style: none; padding: 0; margin: 0; }
.ammo-list li, .ov-list li { padding: 4px 0; border-bottom: 1px solid #eef2ff; font-size: 0.7rem; }
.ov-stats { margin-top: 12px; padding: 8px; background: rgba(255,255,255,0.45); font-size: 0.75rem; border-radius: 12px; border: 1px solid var(--line); }
.ov-title { font-weight: 600; margin-bottom: 6px; border-bottom: 1px solid rgba(21, 32, 51, 0.12); padding-bottom: 2px; color: var(--text); }
.mining-box { margin-top: 12px; border: 1px solid var(--line); padding: 8px 12px; background: rgba(255,255,255,0.35); border-radius: 14px; }
.mining-box .mining-title { font-weight: 700; margin-bottom: 6px; font-size: 0.75rem; color: var(--text); }
.print-only-date { display: none; }

.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.two-columns .col { display: flex; flex-direction: column; gap: 25px; }
.report-block {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 15px;
    box-shadow: var(--shadow);
}
.report-block:not(.report-block--plain) {
    padding: 0;
    backdrop-filter: blur(18px) saturate(1.2);
    overflow: hidden;
}
.report-block--plain {
    padding: 15px;
}
.report-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 16px;
    line-height: 1.35;
    overflow-x: auto;
}
.report-block:not(.report-block--plain) .report-text {
    border: 0;
    border-radius: 0;
    background: transparent;
    margin: 0;
}
.report-block:not(.report-block--plain) .report-block-body .report-text {
    padding: 0;
}
.report-text h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 6px 0; color: var(--text); }
.report-text p { margin: 0 0 6px 0; }
.report-text em { font-style: italic; color: var(--muted); }
.report-text strong { font-weight: 700; }
.report-text ul { margin: 4px 0 6px 0; padding-left: 24px; }
.report-text li { margin-bottom: 3px; }
.report-textarea {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 15px;
    width: 100%;
    white-space: pre-wrap;
    line-height: 1.4;
}
.btn-copy, .btn-refresh {
    background: var(--header);
    color: white;
    border: none;
    padding: 5px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 10px;
    border-radius: 12px;
}
.btn-refresh { background: var(--muted); }
.col-header { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; padding-left: 5px; border-left: 4px solid var(--blue); color: var(--text); }
@media (max-width: 1000px) { .two-columns { grid-template-columns: 1fr; } }

/* --- Доклады --- */
.reports-page .report-page-head {
    margin-bottom: 16px;
}
.report-page-intro {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 6px 0 0;
    max-width: 52rem;
}
.report-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}
.report-toolbar-label {
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.report-toolbar .form-select,
.report-toolbar .form-control {
    min-width: 180px;
}
.date-bar.report-toolbar,
.filter-bar.report-toolbar {
    margin-bottom: 20px;
}
.report-block-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(21, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.35);
}
.report-block-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    color: var(--text);
}
.report-block-sub {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 4px 0 0;
    line-height: 1.35;
}
.report-block-body {
    padding: 14px 16px 16px;
}
.report-block--live .report-block-title::after {
    content: ' · живой';
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ok);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.report-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.btn-report,
.btn-copy,
.btn-print,
.btn-refresh {
    appearance: none;
    border: 1px solid rgba(21, 32, 51, 0.14);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    padding: 0.35rem 0.75rem;
    font-weight: 700;
    font-size: 0.78rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    margin: 0;
}
.btn-report:hover,
.btn-copy:hover,
.btn-print:hover,
.btn-refresh:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(47, 111, 237, 0.08);
}
.btn-report-primary,
.btn-copy {
    background: var(--header);
    color: #fff;
    border-color: var(--header);
}
.btn-report-primary:hover,
.btn-copy:hover {
    background: #1f2f49;
    border-color: #1f2f49;
    color: #fff;
}
.btn-report-muted,
.btn-refresh {
    background: rgba(91, 107, 128, 0.12);
    color: var(--muted);
}
.load-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 24px 16px;
    text-align: center;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px dashed rgba(21, 32, 51, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.35);
}
.block-card.is-loading .block-content {
    opacity: 0.45;
    pointer-events: none;
    position: relative;
}
.block-card.is-loading .block-content::after {
    content: 'Загрузка…';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.35);
}
.fire-strike-stats {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.45);
    margin: 10px 0;
}
.fire-strike-stats .stats-box {
    margin-top: 8px;
    background: transparent;
    border: 0;
    padding: 0;
}
.back-link {
    margin-top: 20px;
    padding-top: 8px;
}
.report-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(12px);
    background: var(--header);
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 12px 28px rgba(21, 32, 51, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2000;
}
.report-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.report-toast.is-error {
    background: var(--bad);
}
.two-columns .col .report-block + .report-block {
    margin-top: 0;
}

/* Доклады и администрирование — визуально как экран ТВ (структура блоков без изменений) */
.reports-page,
body.report-leadership,
.admin-page,
.admin-section {
    --tv-panel-line: rgba(47, 111, 237, 0.16);
    --tv-cell-bg: rgba(255, 255, 255, 0.72);
}
.reports-page .page-title,
body.report-leadership .page-title,
.admin-page .page-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.reports-page .col-header,
.reports-page .report-block-title,
body.report-leadership .col-header {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border-left: 0;
    padding-left: 0;
    margin-bottom: 8px;
}
.reports-page .report-page-intro,
.admin-page .report-page-intro {
    font-size: 0.88rem;
}
.reports-page .date-bar.report-toolbar,
.reports-page .filter-bar.report-toolbar,
.reports-page .report-toolbar,
body.report-leadership .date-bar.report-toolbar {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(1.2);
    padding: 10px 14px;
    gap: 10px;
}
.reports-page .report-toolbar-label,
body.report-leadership .report-toolbar-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.reports-page .report-toolbar .form-select,
.reports-page .report-toolbar .form-control,
.reports-page .date-bar .form-select,
.reports-page .date-bar .form-control,
.reports-page .filter-bar .form-select,
.reports-page .filter-bar .form-control,
body.report-leadership .date-bar .form-select,
body.report-leadership .date-bar .form-control {
    font-family: inherit;
    font-weight: 500;
    font-size: 0.875rem;
}
.reports-page .blocks-grid,
body.report-leadership .blocks-grid {
    gap: 10px;
}
.reports-page .block-card,
body.report-leadership .block-card {
    box-shadow: 0 10px 28px rgba(80, 110, 150, 0.12);
}
.reports-page .block-header,
body.report-leadership .block-header {
    background: rgba(255, 255, 255, 0.45);
    color: var(--text);
    border-bottom: 1px solid var(--tv-panel-line);
    padding: 10px 14px;
}
.reports-page .block-header h3,
body.report-leadership .block-header h3 {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.reports-page .block-header .btn-print,
body.report-leadership .block-header .btn-print {
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
    border: 1px solid var(--line);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 12px;
}
.reports-page .block-header .btn-print:hover,
body.report-leadership .block-header .btn-print:hover {
    background: rgba(47, 111, 237, 0.1);
    border-color: rgba(47, 111, 237, 0.25);
    color: var(--blue);
}
.reports-page .block-content,
body.report-leadership .block-content {
    padding: 10px 12px 12px;
    background: rgba(255, 255, 255, 0.18);
}
.reports-page .report-block,
body.report-leadership .report-block {
    box-shadow: 0 10px 28px rgba(80, 110, 150, 0.12);
}
.reports-page .report-block-head,
body.report-leadership .report-block-head {
    background: rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid var(--tv-panel-line);
    padding: 10px 14px;
}
.reports-page .report-block-sub {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}
.reports-page .card,
.reports-page .card-header,
body.report-leadership .card,
.admin-page .card,
.admin-section .card {
    border-radius: 18px;
    overflow: hidden;
}
.reports-page .card-header,
body.report-leadership .card-header,
.admin-page .card-header,
.admin-section .card-header {
    background: rgba(255, 255, 255, 0.45) !important;
    color: var(--muted) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--tv-panel-line) !important;
}
.reports-page .card-body,
body.report-leadership .card-body,
.admin-page .card-body,
.admin-section .card-body {
    background: rgba(255, 255, 255, 0.18);
}
.reports-page .table th,
.reports-page .table-inventory th,
.reports-page .target-table th,
.reports-page .stats-table th,
body.report-leadership .table th,
.admin-page .table th,
.admin-section .table th {
    background: var(--tv-cell-bg) !important;
    color: var(--muted) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-color: var(--tv-panel-line) !important;
    position: sticky;
    top: 0;
    z-index: 1;
}
.reports-page .table td,
.reports-page .table-inventory td,
.reports-page .target-table td,
.reports-page .stats-table td,
body.report-leadership .table td,
.admin-page .table td,
.admin-section .table td {
    border-color: var(--tv-panel-line);
    background: rgba(255, 255, 255, 0.55);
}
.reports-page .table-wrapper,
body.report-leadership .table-wrapper,
.admin-page .table-wrapper,
.admin-section .table-wrapper {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.35);
}
.reports-page .stats-box,
body.report-leadership .stats-box,
.admin-page .stats-box,
.admin-section .stats-box {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 10px 12px;
}
.reports-page .stats-box h6,
body.report-leadership .stats-box h6,
.admin-page .stats-box h6,
.admin-section .stats-box h6 {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom-color: rgba(21, 32, 51, 0.08);
}
.reports-page .stats-number,
.reports-page .stat-number,
body.report-leadership .stats-number,
body.report-leadership .stat-number,
.admin-page .stats-number,
.admin-page .stat-number,
.admin-section .stats-number,
.admin-section .stat-number {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-weight: 600;
    color: var(--text);
}
.reports-page .division-title,
body.report-leadership .division-title {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}
.reports-page .section-title,
body.report-leadership .section-title {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border-left-color: var(--blue);
}
.reports-page .stat-item,
.reports-page .info-row,
body.report-leadership .stat-item,
body.report-leadership .info-row {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 12px;
}
.reports-page .recon-section,
body.report-leadership .recon-section {
    background: rgba(255, 255, 255, 0.55);
    border-left-color: var(--blue);
}
.reports-page .recon-title,
body.report-leadership .recon-title {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.reports-page .hit-hint,
body.report-leadership .hit-hint {
    border-left-color: var(--ok);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 12px;
}
.reports-page .load-placeholder,
body.report-leadership .load-placeholder {
    border-color: rgba(47, 111, 237, 0.16);
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}
.reports-page .report-text,
.reports-page .report-textarea,
body.report-leadership .report-text {
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--tv-panel-line);
}
.reports-page .btn-report,
.reports-page .btn-report-primary,
body.report-leadership .btn-report {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.reports-page .btn-report-primary,
.reports-page .btn-copy,
body.report-leadership .btn-report-primary {
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    border: 1px solid var(--line);
}
.reports-page .btn-report-primary:hover,
.reports-page .btn-copy:hover,
body.report-leadership .btn-report-primary:hover {
    background: rgba(47, 111, 237, 0.12);
    border-color: rgba(47, 111, 237, 0.25);
    color: var(--blue);
}
.reports-page .row-destroyed td,
body.report-leadership .row-destroyed td {
    background-color: rgba(15, 159, 110, 0.22) !important;
}
.reports-page .fire-strike-stats,
body.report-leadership .fire-strike-stats {
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--tv-panel-line);
    border-radius: 14px;
}
.reports-page .ov-stats,
.reports-page .mining-box,
body.report-leadership .ov-stats,
body.report-leadership .mining-box {
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--tv-panel-line);
}
.reports-page .ov-title,
.reports-page .mining-title,
body.report-leadership .ov-title,
body.report-leadership .mining-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Вкладки в оболочке (Базар, Модерация и т.п.) */
.ui-shell {
    background: #fff;
    border: 1px solid #d7e0ea;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}
.ui-tabs.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0 0.35rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f1f5f9;
}
.ui-tabs .nav-item { margin-bottom: 0; }
.ui-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin: 0;
    padding: 0.72rem 0.95rem;
    font-weight: 650;
    font-size: 0.9rem;
    color: #64748b;
    background: transparent;
    line-height: 1.2;
}
.ui-tabs .nav-link:hover,
.ui-tabs .nav-link:focus {
    color: #1e3a5f;
    background: rgba(255, 255, 255, 0.55);
    border-color: transparent;
}
.ui-tabs .nav-link.active {
    color: #0b5ed7;
    background: #fff;
    border-bottom-color: #0b5ed7;
    font-weight: 750;
    box-shadow: none;
}
.ui-tab-pane {
    padding: 0.95rem 1rem 1.1rem;
    background: #fff;
}
.ui-tab-pane > .tab-pane {
    outline: none;
}
@media (max-width: 700px) {
    .ui-tabs .nav-link {
        padding: 0.65rem 0.7rem;
        font-size: 0.84rem;
    }
}

/* Администрирование — вкладки и служебные блоки */
.admin-tabs.nav-tabs {
    border-bottom: 0;
    gap: 6px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid var(--line);
    border-radius: 18px;
    backdrop-filter: blur(18px) saturate(1.2);
}
.admin-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.42rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    background: transparent;
}
.admin-tabs .nav-link:hover {
    background: rgba(47, 111, 237, 0.08);
    color: var(--blue);
    border-color: rgba(47, 111, 237, 0.12);
}
.admin-tabs .nav-link.active {
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--line);
    color: var(--blue);
}
.admin-section .card,
.admin-page .card {
    box-shadow: 0 10px 28px rgba(80, 110, 150, 0.12);
    backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
}
.admin-section .card.shadow-sm.rounded-0,
.admin-page .card.shadow-sm.rounded-0 {
    border-radius: 18px !important;
}
.admin-section .card-header.card-header-warn,
.admin-page .card-header.card-header-warn {
    background: rgba(196, 123, 18, 0.14) !important;
    color: var(--warn) !important;
}
.admin-section .form-section,
.admin-page .form-section {
    box-shadow: 0 10px 28px rgba(80, 110, 150, 0.12);
}
.admin-section .dict-spoiler,
.admin-page .dict-spoiler {
    background: rgba(255, 255, 255, 0.55);
    border-color: var(--tv-panel-line);
    border-radius: 14px;
}
.admin-section .dict-spoiler summary,
.admin-page .dict-spoiler summary {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.admin-section .mod-flight,
.admin-page .mod-flight {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--tv-panel-line);
    border-radius: 14px;
}
.admin-section .mod-flight-grid .mod-k,
.admin-page .mod-flight-grid .mod-k {
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.admin-section .op-pref-list,
.admin-page .op-pref-list {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--tv-panel-line);
    border-radius: 14px;
}
.admin-section .announcement-widget,
.admin-page .announcement-widget {
    box-shadow: 0 10px 28px rgba(80, 110, 150, 0.12);
}
.admin-section .announcement-widget h6,
.admin-page .announcement-widget h6 {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.admin-page .link-grid .link-tile,
.admin-section .link-grid .link-tile {
    box-shadow: 0 10px 28px rgba(80, 110, 150, 0.12);
}
.admin-section .form-control,
.admin-section .form-select,
.admin-page .form-control,
.admin-page .form-select {
    /* единый стиль полей — см. глобальные .form-control / .form-select */
}
.admin-section .btn,
.admin-page .btn {
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}
.admin-section h6,
.admin-page h6 {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.edit-block, .details-block {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}
.edit-row { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; flex-wrap: wrap; }
.edit-row label { width: 250px; font-weight: 500; }
.edit-row input { width: 120px; text-align: center; }
.brigade-edit-controls { display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; }
.brigade-text-display { display: none; }
.info-message { background: #d1ecf1; color: #0c5460; padding: 8px 12px; margin-bottom: 15px; }
.card-header {
    font-weight: 700;
    background: var(--header) !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px 18px 0 0 !important;
}
.card-header.card-header-warn {
    background: rgba(196, 123, 18, 0.92) !important;
    color: #fff !important;
}
.modal-header,
.modal-header.bg-primary,
.modal-header.bg-warning,
.modal-header.bg-danger,
.modal-header.bg-success,
.modal-header.bg-info,
.modal-header.text-white {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-bottom: 1px solid #e8eef5 !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 0.85rem 1.1rem;
}
.modal-header .modal-title {
    color: #0f172a !important;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}
.modal-header .btn-close,
.modal-header .btn-close-white {
    filter: none !important;
    opacity: 0.5;
    box-shadow: none;
}
.modal-header .btn-close:hover,
.modal-header .btn-close-white:hover { opacity: 0.85; }
.modal-body {
    background: #fff;
    padding: 1rem 1.1rem 1.05rem;
}
.modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e8eef5;
    border-radius: 0 0 14px 14px !important;
    padding: 0.75rem 1.1rem;
}
.btn-primary {
    background: var(--blue);
    border-color: var(--blue);
}
.btn-primary:hover, .btn-primary:focus {
    background: #255fd4;
    border-color: #255fd4;
}
.nav-tabs .nav-link.active {
    color: var(--blue);
    border-color: var(--line) var(--line) #fff;
    font-weight: 700;
}
.nav-tabs .nav-link { color: var(--muted); font-weight: 600; }
.table-dark th { background: var(--header) !important; color: #fff !important; border-color: rgba(255,255,255,0.12); }

.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 24px; }
.link-tile {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(1.2);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.link-tile:hover { border-color: var(--blue); color: inherit; transform: translateY(-1px); }
.link-tile strong { display: block; margin: 0 0 4px; color: var(--text); font-weight: 800; }
.link-tile span { font-size: 0.8rem; color: var(--muted); display: block; }

.card {
    border-radius: 18px !important;
    background: var(--glass);
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(1.2);
}
.modal-content {
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16) !important;
    backdrop-filter: none;
    overflow: hidden;
}
.modal-backdrop.show { opacity: 0.35; }
.btn { border-radius: 12px; }

.mod-flight {
    background: #f7f9fb;
    border: 1px solid #e2e6ea;
    padding: 10px 12px;
    max-width: 720px;
}
.mod-flight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 4px 16px;
    font-size: 13px;
}
.mod-flight-grid .mod-k {
    display: inline-block;
    min-width: 5.5em;
    color: #6c757d;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 4px;
}
.op-pref-list {
    max-height: 380px;
    overflow: auto;
    border: 1px solid #e2e6ea;
    padding: 10px 12px;
    background: #f7f9fb;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.filter-bar.row, .date-bar.row {
    --bs-gutter-x: 0.75rem;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 1000px) {
    .container, .container-fluid { max-width: 100%; }
    .form-section { padding: 12px 14px; }
    .flight-grid { gap: 8px 10px; }
    .filter-bar, .date-bar { padding: 8px 12px; }
}
@media print {
    body, .container { background: #fff !important; color: #000 !important; font-family: "Times New Roman", Times, serif; }
    .reports-page .block-header,
    body.report-leadership .block-header,
    .reports-page .card-header,
    body.report-leadership .card-header,
    .admin-page .card-header,
    .admin-section .card-header {
        background: #fff !important;
        color: #000 !important;
        border-bottom: 1px solid #333 !important;
    }
    .reports-page .block-header h3,
    body.report-leadership .block-header h3,
    .reports-page .card-header,
    .admin-page .card-header,
    .admin-section .card-header {
        color: #000 !important;
        letter-spacing: 0;
        text-transform: none;
    }
    .reports-page .table th,
    body.report-leadership .table th,
    .admin-page .table th,
    .admin-section .table th {
        background: #eee !important;
        color: #000 !important;
        text-transform: none;
        letter-spacing: 0;
    }
    .card, .form-section, .filter-bar, .date-bar, .table-wrapper, .link-tile, .modal-content {
        background: #fff !important;
        border: 1px solid #333 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
    }
    .no-print { display: none !important; }
    .row-destroyed td, .table tr.bg-destroyed td { background-color: #7dcea0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .table tr.bg-defeat td { background-color: #eaf6ee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .table tr.bg-success td { background-color: #d4edda !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .print-only-date { display: block; text-align: center; font-size: 12pt; font-weight: bold; margin: 10px 0 20px 0; }
    .brigade-edit-controls { display: none !important; }
    .brigade-text-display { display: block !important; }
    .records-layout { display: block; }
    .records-side { display: none !important; }
    .report-text, .report-textarea { border: none; padding: 0; }
    .two-columns { display: block; }
}

.rq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    padding-bottom: 32px;
}
.rq-empty {
    grid-column: 1 / -1;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    color: var(--muted);
}
.rq-card {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.rq-card-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
}
.rq-kind {
    display: inline-block;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--blue);
}
.rq-id { font-weight: 700; color: var(--text); }
.rq-head-meta, .rq-media-meta, .rq-media-wait {
    color: var(--muted);
    font-size: 12px;
}
.rq-calc {
    font-weight: 800;
    font-size: 16px;
}
.rq-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-size: 13px;
}
.rq-facts .rq-k {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.rq-media {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rq-player, .rq-photo {
    width: 100%;
    max-height: 280px;
    background: #0f1728;
    border-radius: 12px;
}
.rq-photo { object-fit: contain; background: #d9e3f2; max-height: 200px; }
.rq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
@media (max-width: 700px) {
    .rq-facts { grid-template-columns: 1fr; }
}
