:root {
    --primary: #0f5f9f;
    --primary-dark: #0a4778;
    --primary-soft: #eaf4fb;
    --danger: #b42318;
    --danger-soft: #fff0ee;
    --success: #067647;
    --success-soft: #ecfdf3;
    --text: #17202a;
    --muted: #667085;
    --line: #d0d5dd;
    --surface: #ffffff;
    --background: #f5f7fa;
    --shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(208, 213, 221, 0.8);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.brand img {
    width: 62px;
    height: auto;
}

.brand span {
    display: grid;
}

.brand strong {
    font-size: 15px;
    letter-spacing: 0.04em;
}

.brand small {
    color: var(--muted);
    font-size: 13px;
}

.version {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--muted);
    background: #fff;
    font-size: 12px;
}

.main-content {
    min-height: calc(100vh - 152px);
    padding-block: 34px 52px;
}

.app-footer {
    padding: 20px 0 28px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 0 0 7px;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.15;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.toolbar-left,
.toolbar-right,
.actions,
.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: min(100%, 420px);
}

.search-form input {
    flex: 1;
}

.card {
    border: 1px solid #e4e7ec;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.table-card {
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid #eaecf0;
    vertical-align: middle;
    text-align: left;
}

th {
    color: #475467;
    background: #f9fafb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

tbody tr:hover {
    background: #fbfdff;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.row-title {
    font-weight: 700;
}

.row-subtitle {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.checkbox-cell {
    width: 48px;
    text-align: center;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

input[type="text"],
input[type="date"],
input[type="search"],
input[type="file"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cfd4dc;
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 95, 159, 0.12);
}

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 9px 14px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.1s, background 0.15s, border-color 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: #fff;
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    color: #344054;
    border-color: #d0d5dd;
    background: #fff;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.btn-danger {
    color: var(--danger);
    border-color: #fda29b;
    background: #fff;
}

.btn-danger:hover {
    background: var(--danger-soft);
}

.btn-sm {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
}

.alert {
    margin-bottom: 20px;
    border: 1px solid;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 600;
}

.alert-success {
    color: var(--success);
    border-color: #abefc6;
    background: var(--success-soft);
}

.alert-error {
    color: var(--danger);
    border-color: #fecdca;
    background: var(--danger-soft);
}

.form-card {
    padding: clamp(20px, 4vw, 34px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.field {
    display: grid;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 700;
}

.required {
    color: var(--danger);
}

.help-text,
.error-text {
    margin: 0;
    font-size: 13px;
}

.help-text {
    color: var(--muted);
}

.error-text {
    color: var(--danger);
    font-weight: 600;
}

.field.has-error input {
    border-color: #f04438;
}

.photo-field {
    min-height: 230px;
    border: 1px dashed #98a2b3;
    border-radius: 12px;
    padding: 16px;
    background: #f9fafb;
}

.photo-preview {
    width: 100%;
    height: 210px;
    display: none;
    margin-top: 12px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}

.photo-preview.is-visible {
    display: block;
}

.existing-photo {
    width: 100%;
    height: 210px;
    margin: 12px 0;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}

.form-actions {
    justify-content: flex-end;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #eaecf0;
}

.empty-state {
    padding: 56px 24px;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.empty-state p {
    margin: 0 0 20px;
    color: var(--muted);
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-top: 1px solid #eaecf0;
    color: var(--muted);
    font-size: 13px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.detail-item {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.detail-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-item strong {
    overflow-wrap: anywhere;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.photo-card {
    overflow: hidden;
}

.photo-card h2 {
    margin: 0;
    padding: 13px 16px;
    border-bottom: 1px solid #eaecf0;
    font-size: 16px;
}

.photo-card img {
    width: 100%;
    height: 420px;
    display: block;
    object-fit: contain;
    background: #f8fafc;
}

.selection-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.mobile-records {
    display: none;
}

.mobile-record-card {
    padding: 16px;
    border-bottom: 1px solid #eaecf0;
}

.mobile-record-card:last-child {
    border-bottom: 0;
}

.mobile-record-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.mobile-record-meta {
    flex: 1;
}

.mobile-record-meta strong,
.mobile-record-meta span {
    display: block;
}

.mobile-record-meta span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 800px) {
    .page-heading {
        flex-direction: column;
    }

    .page-heading .btn {
        width: 100%;
    }

    .toolbar,
    .toolbar-left,
    .toolbar-right,
    .search-form {
        width: 100%;
    }

    .search-form {
        min-width: 100%;
    }

    .toolbar-right .btn,
    .toolbar-left .btn {
        flex: 1;
    }

    .desktop-table {
        display: none;
    }

    .mobile-records {
        display: block;
    }

    .form-grid,
    .detail-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .photo-card img {
        height: 320px;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

    .brand img {
        width: 48px;
    }

    .brand strong {
        font-size: 12px;
    }

    .brand small {
        font-size: 11px;
    }

    .version {
        display: none;
    }

    .main-content {
        padding-top: 24px;
    }

    .actions .btn,
    .form-actions .btn {
        flex: 1;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    padding: 5px 11px;
    color: #344054;
    background: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.header-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.status-card {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 17px;
    background: #fff;
    box-shadow: var(--shadow);
}

.status-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-card strong {
    font-size: 20px;
}

.status-ok {
    color: var(--success);
}

.status-bad {
    color: var(--danger);
}

.update-warning,
.update-result-card,
.history-card {
    margin-bottom: 20px;
}

.update-warning {
    padding: 20px 22px;
    border-left: 5px solid #f79009;
}

.update-warning h2,
.section-heading h2 {
    margin: 0 0 6px;
    font-size: 19px;
}

.update-warning p,
.section-heading p {
    margin: 0;
    color: var(--muted);
}

.update-warning p + p {
    margin-top: 9px;
}

.update-result-card {
    display: grid;
    gap: 5px;
    padding: 18px 20px;
    border-color: #abefc6;
    background: var(--success-soft);
}

.update-result-card strong {
    color: var(--success);
}

.update-form-card {
    margin-bottom: 20px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.update-form {
    display: grid;
    gap: 20px;
}

.confirmation-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 14px;
    background: #f9fafb;
    cursor: pointer;
}

.confirmation-row input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.confirmation-row span {
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

.btn:disabled,
input:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.history-card {
    overflow: hidden;
}

.history-heading {
    margin: 0;
    padding: 20px 22px;
    border-bottom: 1px solid #eaecf0;
}

.history-empty {
    padding: 28px 22px;
    color: var(--muted);
    text-align: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 800;
}

.status-pill-success {
    color: var(--success);
    background: var(--success-soft);
}

.status-pill-failed {
    color: var(--danger);
    background: var(--danger-soft);
}

code {
    border-radius: 5px;
    padding: 1px 5px;
    background: #f2f4f7;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .header-actions {
        gap: 6px;
    }

    .header-link {
        padding-inline: 9px;
        font-size: 11px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .status-card {
        min-height: 90px;
    }
}

@media (max-width: 420px) {
    .brand span {
        display: none;
    }
}

.header-actions { display:flex; align-items:center; gap:10px; }
.header-link { border:1px solid var(--line); border-radius:999px; padding:8px 14px; background:#fff; text-decoration:none; font-size:13px; font-weight:700; }
.header-link:hover { border-color:var(--primary); color:var(--primary); }
select { min-height:44px; border:1px solid #cfd4dc; border-radius:10px; padding:9px 36px 9px 12px; color:var(--text); background:#fff; font:inherit; }
.narrow-card { max-width:720px; margin-inline:auto; }
.auth-shell { min-height:62vh; display:grid; place-items:center; }
.auth-card { width:min(520px,100%); padding:34px; }
.auth-card h1 { margin:8px 0; }
.auth-card > p { color:var(--muted); margin-top:0; }
.auth-icon { font-size:34px; }
.settings-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:22px; }
.settings-tile { display:grid; gap:7px; min-height:168px; padding:24px; text-decoration:none; transition:transform .15s,border-color .15s; }
.settings-tile:hover { transform:translateY(-2px); border-color:#a9c9e4; }
.settings-tile strong { font-size:18px; }
.settings-tile small { color:var(--muted); }
.settings-tile-icon { font-size:28px; }
.settings-tile-disabled { opacity:.65; }
.settings-summary { padding:24px; }
.settings-summary h2 { margin-top:0; }
.settings-status-grid { margin-bottom:20px; }
.asset-search-panel { padding:22px; margin-bottom:24px; border:1px solid #d7e4ef; border-radius:12px; background:#f8fbfd; }
.asset-search-panel h2,.form-section h2 { margin:0 0 4px; }
.asset-search-panel .section-heading,.form-section .section-heading { margin-bottom:15px; }
.asset-search-row { display:flex; gap:10px; }
.asset-search-row input { flex:1; }
.asset-search-results { display:grid; gap:8px; margin-top:12px; }
.asset-result { display:grid; grid-template-columns:minmax(180px,1.4fr) 1fr 1fr; gap:12px; width:100%; padding:13px 15px; border:1px solid #d7e4ef; border-radius:10px; background:#fff; text-align:left; cursor:pointer; }
.asset-result:hover { border-color:var(--primary); background:var(--primary-soft); }
.asset-result span { color:var(--muted); font-size:13px; }
.asset-search-message { padding:12px 14px; border:1px dashed var(--line); border-radius:9px; color:var(--muted); background:#fff; }
.selected-asset { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; gap:12px; align-items:end; margin-top:14px; padding:15px; border:1px solid #9bc8ad; border-radius:10px; background:var(--success-soft); }
.selected-asset[hidden] { display:none; }
.selected-asset div { display:grid; gap:3px; }
.selected-asset span { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.03em; }
.locked-field input,.locked-field input:focus { background:#f2f4f7; color:#344054; border-color:#d0d5dd; box-shadow:none; cursor:not-allowed; }
.locked-notice { margin-bottom:18px; padding:12px 14px; border-left:4px solid var(--primary); background:var(--primary-soft); border-radius:8px; }
.form-section { margin-bottom:4px; }
.form-section[id] { scroll-margin-top:110px; }
.current-asset-box { display:grid; gap:4px; margin-bottom:20px; padding:16px; border-radius:10px; background:#f2f4f7; }
.compact-warning { margin:18px 0; padding:16px; border-left:4px solid #f79009; }
.compact-warning p { margin:6px 0 0; }
.table-note { padding:0 16px 14px; }
.import-actions { justify-content:flex-end; margin-top:18px; }
.empty-cell { padding:38px; text-align:center; color:var(--muted); }
.table-toolbar { padding:14px 16px; margin:0; border-bottom:1px solid #eaecf0; }
.select-all-label { cursor:pointer; }
.status-pill-available,.status-pill-new { background:#ecfdf3; color:#067647; }
.status-pill-already_recorded,.status-pill-update { background:#eff8ff; color:#175cd3; }
.status-pill-inactive { background:#f2f4f7; color:#475467; }
.status-pill-invalid,.status-pill-conflict,.status-pill-archived { background:#fff0ee; color:#b42318; }
.status-pill { display:inline-flex; border-radius:999px; padding:5px 9px; font-size:11px; font-weight:800; letter-spacing:.03em; }
.muted { color:var(--muted); }
.pagination { display:flex; flex-wrap:wrap; gap:7px; justify-content:center; margin-top:18px; }
.pagination a { min-width:36px; height:36px; display:grid; place-items:center; border:1px solid var(--line); border-radius:8px; background:#fff; text-decoration:none; }
.pagination a.is-active { background:var(--primary); border-color:var(--primary); color:#fff; }

@media (max-width:900px) {
    .settings-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .asset-result { grid-template-columns:1fr; gap:3px; }
    .selected-asset { grid-template-columns:1fr 1fr; }
}
@media (max-width:620px) {
    .settings-grid { grid-template-columns:1fr; }
    .asset-search-row { align-items:stretch; flex-direction:column; }
    .selected-asset { grid-template-columns:1fr; }
    .header-actions { gap:6px; }
    .header-link { padding:7px 10px; }
}

/* v0.4.4 partial-success CSV import */
.import-status-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.alert-warning {
    border: 1px solid #fedf89;
    background: #fffaeb;
    color: #93370d;
}
.status-pill-no_change,
.status-pill-completed {
    background: #ecfdf3;
    color: #067647;
}
.status-pill-partial_success,
.status-pill-processing {
    background: #fffaeb;
    color: #b54708;
}
.status-pill-failed {
    background: #fff0ee;
    color: #b42318;
}
.import-batch-summary {
    margin-bottom: 20px;
}
@media (max-width: 1100px) {
    .import-status-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 680px) {
    .import-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* v0.4.8 premium record actions and direct PDF download */
.btn-with-icon {
    gap: 8px;
}

.btn-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.btn-sm .btn-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
}

.btn-download {
    color: #fff;
    border-color: #3f4fc6;
    background: linear-gradient(135deg, #3446b8 0%, #27378f 100%);
    box-shadow: 0 7px 18px rgba(52, 70, 184, 0.22);
}

.btn-download:hover {
    border-color: #293a9c;
    background: linear-gradient(135deg, #2f40aa 0%, #202e7c 100%);
    box-shadow: 0 9px 22px rgba(52, 70, 184, 0.28);
}

.premium-actions {
    gap: 7px;
}

.premium-actions .btn {
    white-space: nowrap;
    border-radius: 11px;
}

.premium-actions .action-view:hover,
.premium-actions .action-edit:hover {
    color: var(--primary);
    border-color: #9bc5e5;
    background: #f5fbff;
}

.premium-actions .action-print {
    box-shadow: 0 6px 16px rgba(15, 95, 159, 0.18);
}

.premium-actions .action-pdf {
    min-width: 72px;
}

.premium-actions .action-archive:hover {
    box-shadow: 0 5px 14px rgba(180, 35, 24, 0.12);
}

.actions-heading {
    min-width: 430px;
}

.bulk-action-cluster {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.page-actions {
    justify-content: flex-end;
}

@media (max-width: 1100px) {
    .actions-heading {
        min-width: 360px;
    }

    .premium-actions .btn-sm {
        padding-inline: 8px;
    }
}

@media (max-width: 800px) {
    .bulk-action-cluster {
        width: 100%;
    }

    .bulk-action-cluster .btn {
        flex: 1 1 220px;
    }

    .mobile-record-card .premium-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-record-card .premium-actions .btn {
        width: 100%;
    }

    .mobile-record-card .premium-actions .action-archive {
        grid-column: span 2;
    }
}

@media (max-width: 520px) {
    .premium-actions .btn {
        flex: initial;
    }

    .page-actions {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-actions .btn {
        width: 100%;
    }
}

/* v0.4.10 compact premium icon-only record actions */
.icon-action-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: max-content;
}

.btn-icon-only {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    line-height: 1;
    isolation: isolate;
}

.btn-icon-only .btn-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.btn-icon-only:hover {
    transform: translateY(-1px);
}

.btn-icon-only:active {
    transform: translateY(0);
}

.btn-icon-only::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 30;
    left: 50%;
    bottom: calc(100% + 9px);
    max-width: 190px;
    padding: 7px 9px;
    border-radius: 8px;
    color: #fff;
    background: #172033;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.btn-icon-only::before {
    content: '';
    position: absolute;
    z-index: 31;
    left: 50%;
    bottom: calc(100% + 4px);
    border: 5px solid transparent;
    border-top-color: #172033;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity 0.16s ease;
}

.btn-icon-only:hover::after,
.btn-icon-only:hover::before,
.btn-icon-only:focus-visible::after,
.btn-icon-only:focus-visible::before {
    opacity: 1;
}

.btn-icon-only:hover::after,
.btn-icon-only:focus-visible::after {
    transform: translate(-50%, 0);
}

.icon-action-group .action-pdf {
    min-width: 42px;
}

.actions-heading {
    min-width: 250px;
}

.mobile-record-card .icon-action-group {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: visible;
}

.mobile-record-card .icon-action-group .btn,
.mobile-record-card .icon-action-group form,
.mobile-record-card .icon-action-group form .btn {
    width: 42px;
    min-width: 42px;
}

.mobile-record-card .icon-action-group .action-archive {
    grid-column: auto;
}

@media (max-width: 520px) {
    .icon-action-group {
        gap: 6px;
    }

    .btn-icon-only {
        width: 40px;
        min-width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .mobile-record-card .icon-action-group .btn,
    .mobile-record-card .icon-action-group form,
    .mobile-record-card .icon-action-group form .btn {
        width: 40px;
        min-width: 40px;
    }
}

@media (hover: none) {
    .btn-icon-only::after,
    .btn-icon-only::before {
        display: none;
    }
}

.user-chip {
    display: grid;
    line-height: 1.15;
    text-align: right;
}

.user-chip strong { font-size: 13px; }
.user-chip small { color: var(--muted); font-size: 11px; }
.header-logout-form { margin: 0; }
.header-link-button { cursor: pointer; font: inherit; }
.temporary-password-card { margin-bottom: 20px; border: 2px solid #d6a700; background: #fffdf2; }
.temporary-password-card h2 { margin-top: 0; }
.temporary-password-value { font-size: 1.15rem; letter-spacing: .04em; user-select: all; }
.role-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #eef5fb; color: var(--primary); font-size: 12px; font-weight: 800; }
.check-field { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; }
.check-field input { width: 18px; height: 18px; }

@media (max-width: 760px) {
    .user-chip { display: none; }
    .header-actions { flex-wrap: wrap; justify-content: flex-end; }
    .header-link { padding: 7px 9px; }
}
