:root {
    --color-navy: #0B2E59;
    --color-navy-2: #163A63;
    --color-bg: #F5F7FA;
    --color-card: #FFFFFF;
    --color-blue: #0066CC;
    --color-blue-2: #EAF3FF;
    --color-warning: #F59E0B;
    --color-warning-bg: #FFF7E8;
    --color-danger: #DC2626;
    --color-danger-bg: #FEF2F2;
    --color-success: #16A34A;
    --color-success-bg: #ECFDF3;
    --color-purple: #8B5CF6;
    --color-purple-bg: #F3EEFF;
    --color-text: #0F1F33;
    --color-muted: #667085;
    --color-border: #E3E8EF;
    --shadow-card: 0 14px 32px rgba(11, 46, 89, 0.08);
    --shadow-hover: 0 18px 42px rgba(11, 46, 89, 0.14);
    --radius-card: 12px;
    --sidebar-width: 280px;
    --header-height: 74px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 1180px;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: "Inter", "Segoe UI", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}

.auth-main {
    min-height: 100vh;
    background: var(--color-bg);
}

.auth-alert {
    max-width: 420px;
    margin: 24px auto -24px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

[data-icon] {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

[data-icon]::before {
    display: block;
    font-size: 20px;
    line-height: 1;
}

[data-icon="home"]::before { content: "⌂"; }
[data-icon="search"]::before { content: "⌕"; }
[data-icon="karte"]::before { content: "▤"; }
[data-icon="doc"]::before { content: "▧"; }
[data-icon="pdf"]::before { content: "▣"; }
[data-icon="camera"]::before { content: "▢"; }
[data-icon="swap"]::before { content: "⇄"; }
[data-icon="cart"]::before { content: "▱"; }
[data-icon="users"]::before { content: "♙"; }
[data-icon="site"]::before { content: "⌘"; }
[data-icon="settings"]::before { content: "⚙"; }
[data-icon="bell"]::before { content: "♢"; }
[data-icon="help"]::before { content: "?"; font-weight: 800; }
[data-icon="equipment"]::before { content: "▦"; }
[data-icon="report"]::before { content: "▨"; }
[data-icon="alert"]::before { content: "△"; }
[data-icon="plus"]::before { content: "+"; font-weight: 900; }

.dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0B2E59 0%, #062746 100%);
    color: #fff;
    box-shadow: 8px 0 24px rgba(11, 46, 89, 0.2);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 102px;
    padding: 0 28px;
}

.sidebar-brand strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
}

.sidebar-brand small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

.brand-logo {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
}

.sidebar-brand .brand-logo img {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
    display: block;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
    padding: 8px 16px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    transition: background .18s ease, transform .18s ease, color .18s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.sidebar-nav a.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: inset 3px 0 0 #79B8FF;
}

.sidebar-secondary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-secondary summary {
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.66);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.sidebar-secondary div {
    display: grid;
    gap: 4px;
    margin-top: 4px;
}

.sidebar-secondary a {
    min-height: 42px;
    font-size: 13px;
}

.sidebar-user {
    margin-top: auto;
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-user strong,
.header-user strong {
    display: block;
    font-weight: 800;
}

.sidebar-user small {
    color: rgba(255, 255, 255, 0.74);
}

.avatar {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #EAF3FF, #78B7FF);
    color: var(--color-navy);
    font-weight: 900;
}

.avatar.small {
    width: 34px;
    height: 34px;
}

.user-chevron {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.74);
}

.dashboard-shell {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: 42px minmax(460px, 760px) 1fr;
    align-items: center;
    gap: 18px;
    padding: 0 36px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(14px);
}

.sidebar-toggle {
    gap: 4px;
    flex-direction: column;
}

.sidebar-toggle span {
    width: 18px;
    height: 2px;
    background: var(--color-navy);
    border-radius: 999px;
}

.global-search {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 31, 51, 0.04);
}

.global-search [data-icon] {
    color: #667085;
}

.global-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--color-text);
    background: transparent;
    font-weight: 600;
}

.global-search input::placeholder {
    color: #718096;
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--color-navy);
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.icon-button:hover {
    background: #EEF4FA;
    transform: translateY(-1px);
}

.icon-button.has-badge em {
    position: absolute;
    top: 3px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--color-danger);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 4px;
}

.header-logout {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: #fff;
    color: var(--color-navy);
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.header-logout:hover {
    background: #EEF4FA;
    border-color: #CAD7E6;
    transform: translateY(-1px);
}

.dashboard-main {
    padding: 28px 34px 36px;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-title-row h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: 0;
}

.page-title-row p {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-weight: 600;
}

.app-page-title {
    margin-bottom: 18px;
}

.primary-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: 9px;
    background: #0A66D1;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(0, 102, 204, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 102, 204, .3);
}

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

.dashboard-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-card);
    box-shadow: var(--shadow-card);
}

.panel,
.karte-head,
.login-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-card);
    box-shadow: var(--shadow-card);
}

.panel {
    padding: 22px;
}

.panel + .panel,
.karte-head + .karte-grid,
.karte-grid + .panel,
.three-column + .panel {
    margin-top: 18px;
}

.button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: #fff;
    color: var(--color-text);
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.button:hover {
    border-color: #B8D7F7;
    color: var(--color-blue);
    transform: translateY(-1px);
}

.button.primary {
    border-color: var(--color-blue);
    background: var(--color-blue);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 102, 204, .18);
}

.button.primary:hover {
    color: #fff;
    background: #075EB8;
}

.table-button {
    min-height: 34px;
    padding: 0 12px;
    white-space: nowrap;
}

.button.ghost {
    background: #F8FAFD;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.data-table th,
.data-table td {
    padding: 13px 10px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #F8FAFD;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.data-table td {
    color: #13253A;
    font-weight: 650;
}

.badge,
.badge-row span {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--color-blue-2);
    color: var(--color-navy);
    font-size: 12px;
    font-weight: 800;
}

.badge.warning {
    background: var(--color-warning-bg);
    color: #9A5A00;
}

.notice,
.alert {
    padding: 13px 15px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 700;
}

.notice {
    background: var(--color-success-bg);
    color: #116737;
    border: 1px solid #BDE7CB;
}

.alert {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid #F4B4B4;
}

label {
    color: #344255;
    font-weight: 800;
}

input,
select,
textarea {
    border: 1px solid #CBD6E3;
    border-radius: 9px;
    padding: 10px 11px;
    background: #fff;
    color: var(--color-text);
}

input:focus,
select:focus,
textarea:focus {
    border-color: #79B8FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, .12);
    outline: 0;
}

.kpi-card {
    min-height: 142px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.kpi-card:hover,
.quick-action:hover,
.case-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.kpi-icon {
    width: 68px;
    height: 68px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
}

.kpi-icon.blue { color: var(--color-blue); background: var(--color-blue-2); }
.kpi-icon.green { color: var(--color-success); background: var(--color-success-bg); }
.kpi-icon.amber { color: var(--color-warning); background: var(--color-warning-bg); }
.kpi-icon.purple { color: var(--color-purple); background: var(--color-purple-bg); }

.kpi-card p {
    margin: 0 0 10px;
    color: #23344D;
    font-weight: 800;
}

.kpi-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0;
}

.kpi-card small {
    font-size: 14px;
}

.kpi-card a,
.panel-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #005BBB;
    font-weight: 800;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .95fr);
    gap: 22px;
}

.recent-panel,
.required-panel,
.trend-panel,
.quick-panel {
    padding: 22px;
}

.card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-heading h2 {
    margin: 0;
    font-size: 17px;
}

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

.inspection-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.inspection-table th,
.inspection-table td {
    padding: 13px 0;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: middle;
}

.inspection-table th {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.inspection-table td {
    color: #13253A;
    font-weight: 700;
}

.inspection-table td small {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
    font-weight: 600;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1F2937;
    font-weight: 800;
}

.status-pill span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid currentColor;
}

.status-pill.normal { color: var(--color-success); }
.status-pill.attention { color: var(--color-warning); }
.status-pill.danger { color: var(--color-danger); }

.row-action {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-blue);
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 31, 51, 0.08);
}

.panel-link {
    margin-top: 18px;
}

.case-list {
    display: grid;
}

.case-item {
    min-height: 92px;
    display: grid;
    grid-template-columns: 86px 1fr 94px 18px;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.case-item:hover {
    border-radius: 10px;
    padding-inline: 10px;
    margin-inline: -10px;
    background: #FBFCFE;
}

.case-label {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.case-label.danger {
    color: var(--color-danger);
    background: var(--color-danger-bg);
    border: 1px solid #F4B4B4;
}

.case-label.attention,
.case-label.parts {
    color: #9A5A00;
    background: var(--color-warning-bg);
    border: 1px solid #F8CF8D;
}

.case-main strong {
    display: block;
    margin-bottom: 6px;
}

.case-main small,
.case-date small {
    color: var(--color-muted);
}

.case-date {
    display: grid;
    gap: 4px;
    font-weight: 800;
}

.case-arrow {
    color: #667085;
    font-size: 30px;
}

.trend-panel,
.quick-panel {
    min-height: 250px;
}

.trend-chart {
    height: 220px;
}

.trend-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.grid-lines line {
    stroke: #E7ECF3;
    stroke-width: 1;
}

.axis-labels text,
.x-labels text {
    fill: #667085;
    font-size: 12px;
    font-weight: 700;
}

.trend-area {
    fill: url(#trendFill);
}

.trend-line {
    fill: none;
    stroke: var(--color-blue);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trend-points circle {
    fill: #fff;
    stroke: var(--color-blue);
    stroke-width: 3;
}

.chart-tooltip {
    width: 78px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-card);
    color: var(--color-text);
    font-size: 12px;
}

.chart-tooltip span {
    display: block;
    color: var(--color-muted);
    font-weight: 700;
}

.chart-tooltip strong {
    display: block;
    margin-top: 3px;
    font-size: 16px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.quick-action {
    min-height: 82px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    color: var(--color-navy);
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.quick-action:hover {
    border-color: #B8D7F7;
    color: var(--color-blue);
}

.quick-action [data-icon] {
    color: var(--color-blue);
}

body.sidebar-collapsed {
    --sidebar-width: 86px;
}

body.sidebar-collapsed .sidebar-brand span:last-child,
body.sidebar-collapsed .sidebar-nav a {
    overflow: hidden;
}

body.sidebar-collapsed .sidebar-nav a {
    justify-content: center;
    padding-inline: 0;
    font-size: 0;
}

body.sidebar-collapsed .sidebar-user span:not(.avatar) {
    display: none;
}

@media (max-width: 1320px) {
    html {
        min-width: 1080px;
    }

    :root {
        --sidebar-width: 250px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

.report-create {
    display: grid;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
}

.report-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
}

.report-page-head > div:first-child {
    min-width: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--color-muted);
    font-weight: 800;
}

.breadcrumb a {
    color: #31577F;
}

.breadcrumb strong {
    color: var(--color-navy);
}

.report-title-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-title-line h1 {
    margin: 0;
    font-size: 28px;
}

.edit-state,
.autosave-state {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 800;
}

.edit-state {
    background: var(--color-blue-2);
    color: var(--color-blue);
}

.autosave-state {
    color: var(--color-muted);
    background: #fff;
    border: 1px solid var(--color-border);
}

.report-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.equipment-summary-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(260px, .7fr);
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-card);
    box-shadow: var(--shadow-card);
}

.equipment-photo {
    width: 72px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--color-blue);
    background: linear-gradient(135deg, #EAF3FF, #F8FAFD);
    border: 1px solid #D7E8FA;
}

.equipment-photo [data-icon] {
    width: 34px;
    height: 34px;
}

.equipment-summary-main h2 {
    margin: 4px 0 10px;
    font-size: 22px;
}

.summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.summary-meta span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #F4F7FB;
    color: #3D536D;
    font-weight: 800;
    min-width: 0;
}

.summary-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.summary-info div {
    padding: 13px 14px;
    border-radius: 10px;
    background: #F8FAFD;
    border: 1px solid var(--color-border);
}

.summary-info dt,
.summary-info dd {
    margin: 0;
}

.summary-info dt {
    margin-bottom: 5px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.summary-info dd {
    color: var(--color-text);
    font-weight: 900;
}

.report-workspace {
    overflow: hidden;
    min-width: 0;
}

.report-tabs {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid var(--color-border);
}

.report-tab {
    position: relative;
    min-height: 78px;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-content: center;
    gap: 4px 10px;
    padding: 0 16px;
    border: 0;
    border-right: 1px solid var(--color-border);
    background: #fff;
    color: #41566F;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.report-tab:last-child {
    border-right: 0;
}

.report-tab:hover {
    background: #F8FBFF;
}

.report-tab.is-active {
    color: var(--color-blue);
    background: #FBFDFF;
}

.report-tab.is-active::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 3px;
    background: var(--color-blue);
}

.tab-number {
    grid-row: span 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #EEF2F7;
    color: #344255;
    font-weight: 900;
}

.report-tab.is-active .tab-number {
    background: var(--color-blue);
    color: #fff;
}

.tab-label {
    font-weight: 900;
}

.tab-status {
    font-size: 12px;
    font-weight: 800;
}

.tab-status.complete { color: var(--color-success); }
.tab-status.warning { color: var(--color-warning); }
.tab-status.info { color: var(--color-blue); }

.report-tab-body {
    padding: 14px;
    background: #FBFCFE;
}

.report-tab-panel {
    display: none;
}

.report-tab-panel.is-active {
    display: block;
}

.report-two-pane {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
    gap: 14px;
}

.report-input-area,
.report-side-area,
.dummy-panel,
.preview-only {
    min-width: 0;
}

.subsection-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    margin-bottom: 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
}

.subsection-head h2,
.dummy-panel h2,
.preview-only h2 {
    margin: 0;
    font-size: 18px;
}

.subsection-head p,
.dummy-panel p,
.preview-only p {
    margin: 6px 0 0;
    color: var(--color-muted);
    font-weight: 700;
}

.report-form-grid {
    display: grid;
    gap: 12px;
}

.form-card,
.dummy-panel,
.preview-only {
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(11, 46, 89, 0.05);
}

.form-card h3 {
    margin: 0 0 16px;
    font-size: 15px;
}

.form-card label span {
    color: var(--color-danger);
}

.instruments-card {
    display: grid;
    gap: 12px;
}

.instruments-card .section-heading {
    margin: 0;
}

.instrument-item {
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #FBFCFE;
}

.instrument-item strong {
    display: block;
    margin-bottom: 12px;
    color: var(--color-navy);
}

.instrument-item dl {
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 10px;
    margin: 0;
}

.instrument-item dt,
.instrument-item dd {
    margin: 0;
}

.instrument-item dt {
    margin-bottom: 5px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.instrument-item dd {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
}

.dummy-panel {
    min-height: 480px;
}

.check-card-grid,
.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.check-card,
.photo-upload-card {
    min-height: 88px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #FBFCFE;
    color: var(--color-navy);
    font-weight: 900;
}

.check-card {
    display: flex;
    justify-content: center;
}

.check-card input {
    width: auto;
}

.photo-upload-card [data-icon] {
    color: var(--color-blue);
}

.photo-upload-card small {
    color: var(--color-muted);
    font-weight: 700;
}

.preview-only {
    overflow-x: auto;
}

.subsection-head.compact {
    padding: 14px 16px;
}

.body-inspection-layout {
    display: grid;
    grid-template-columns: minmax(620px, 1fr) minmax(420px, 540px);
    gap: 18px;
    align-items: start;
}

.body-preview-panel,
.body-input-panel {
    min-width: 0;
}

.body-preview-panel {
    order: 2;
}

.body-input-panel {
    order: 1;
}

.body-a4-preview {
    aspect-ratio: 210 / 297;
    max-width: 540px;
    margin: 0 auto;
    padding: 16px 12px;
    border: 1px solid #B8C3D1;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(11, 46, 89, 0.12);
    overflow: hidden;
}

.body-sheet-title {
    margin-bottom: 9px;
    color: #000;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
}

.body-inspection-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #111827;
    font-size: 8px;
}

.body-inspection-table th,
.body-inspection-table td {
    height: 19px;
    border: 1px solid #B9C1CC;
    padding: 2px 3px;
    text-align: center;
    vertical-align: middle;
    word-break: break-word;
}

.body-inspection-table th {
    background: #0B2E59;
    color: #fff;
    font-weight: 900;
}

.body-inspection-table td {
    background: #fff;
    font-weight: 700;
}

.body-inspection-table .group-cell {
    background: #F2F6FB;
    font-weight: 900;
}

.body-inspection-table .text-left {
    text-align: left;
}

.body-inspection-table .judge-cell {
    font-size: 10px;
    font-weight: 900;
}

.body-inspection-table .col-number { width: 7%; }
.body-inspection-table .col-component { width: 11%; }
.body-inspection-table .col-part { width: 13%; }
.body-inspection-table .col-supplement { width: 12%; }
.body-inspection-table .col-judge { width: 6%; }
.body-inspection-table .col-note { width: 8%; }

.body-legend {
    margin: 8px 0 0;
    color: #111827;
    font-size: 9px;
    font-weight: 700;
}

.body-input-panel {
    display: grid;
    gap: 12px;
}

.body-groups {
    display: grid;
    gap: 12px;
}

.body-group-card {
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(11, 46, 89, 0.06);
}

.body-group-head {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 9px;
    align-items: end;
    margin-bottom: 12px;
}

.body-group-head .button {
    justify-self: end;
    min-height: 34px;
}

.body-side-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.body-side-box {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #FBFCFE;
}

.body-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.body-side-head h3 {
    margin: 0;
    color: var(--color-navy);
    font-size: 14px;
}

.body-part-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.body-part-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 10px;
    border: 1px solid #DCE4EF;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(11, 46, 89, 0.05);
}

.body-part-card label {
    min-width: 0;
    font-size: 12px;
}

.body-part-card input,
.body-part-card select {
    min-height: 32px;
    padding: 7px 8px;
}

.body-part-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: 1px solid #F3C0C0;
    border-radius: 50%;
    background: #FFF5F5;
    color: var(--color-danger);
    font-weight: 900;
    cursor: pointer;
}

.button.danger,
.button.ghost.danger {
    color: var(--color-danger);
    border-color: #F3C0C0;
    background: #FFF7F7;
}

.report-start-page {
    max-width: 1180px;
    margin: 0 auto;
}

.report-start-heading {
    margin-bottom: 22px;
}

.report-start-heading h1 {
    margin: 0;
    font-size: 28px;
}

.report-start-heading p {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-weight: 700;
}

.report-start-shell {
    display: grid;
    grid-template-columns: minmax(700px, 880px) minmax(280px, 320px);
    gap: 22px;
    align-items: start;
    justify-content: center;
}

.report-start-card,
.start-side-card {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.report-start-card {
    padding: 26px;
}

.start-section {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.start-section:last-of-type {
    margin-bottom: 0;
}

.start-section h2,
.start-side-card h2 {
    margin: 0 0 16px;
    font-size: 17px;
}

.start-equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.start-equipment-grid div {
    min-height: 74px;
    padding: 13px 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #F8FAFD;
}

.start-equipment-grid div:first-child,
.start-equipment-grid div:nth-child(2) {
    grid-column: span 1;
}

.start-equipment-grid dt,
.start-equipment-grid dd {
    margin: 0;
}

.start-equipment-grid dt {
    margin-bottom: 7px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 900;
}

.start-equipment-grid dd {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 900;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.radio-card,
.method-card,
.previous-report-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.radio-card {
    min-height: 54px;
    padding: 0 14px;
    font-weight: 900;
}

.radio-card:hover,
.method-card:hover,
.previous-report-item:hover {
    border-color: #B8D7F7;
    background: #FBFDFF;
    transform: translateY(-1px);
}

.radio-card input,
.method-card input,
.previous-report-item input,
.inline-check input {
    width: auto;
    accent-color: var(--color-blue);
}

.radio-card:has(input:checked),
.method-card:has(input:checked),
.previous-report-item:has(input:checked) {
    border-color: var(--color-blue);
    background: var(--color-blue-2);
    box-shadow: 0 10px 22px rgba(0, 102, 204, .12);
}

.start-form-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr .7fr;
    gap: 14px;
    align-items: start;
}

.start-form-grid select[multiple] {
    min-height: 118px;
}

.inline-check {
    display: inline-flex;
    grid-auto-flow: column;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-weight: 900;
}

.previous-report-list {
    display: grid;
    gap: 10px;
}

.previous-report-item {
    min-height: 62px;
    padding: 0 14px;
}

.previous-report-item strong {
    display: block;
    color: var(--color-text);
}

.previous-report-item small {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
    font-weight: 800;
}

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

.method-card {
    align-items: flex-start;
    min-height: 92px;
    padding: 16px;
}

.method-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text);
}

.method-card small {
    color: var(--color-muted);
    font-weight: 700;
    line-height: 1.55;
}

.report-start-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

.report-start-actions .button:first-child {
    justify-self: start;
}

.report-start-actions .button:nth-child(2) {
    justify-self: center;
}

.report-start-actions .button:last-child {
    justify-self: end;
}

.start-submit {
    min-width: 190px;
    min-height: 46px;
}

.report-start-side {
    display: grid;
    gap: 16px;
}

.start-side-card {
    padding: 20px;
}

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

.start-stat {
    min-height: 118px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #F8FAFD;
}

.start-stat [data-icon] {
    color: var(--color-blue);
}

.start-stat small {
    color: var(--color-muted);
    font-weight: 900;
}

.start-stat strong {
    color: var(--color-text);
    font-size: 28px;
    line-height: 1;
}

.start-stat em {
    margin-left: 3px;
    font-size: 13px;
    font-style: normal;
}

.start-step-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.start-step-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    color: #344255;
    font-weight: 900;
}

.start-step-list span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-blue-2);
    color: var(--color-blue);
    font-size: 12px;
}

.mock-page {
    display: grid;
    gap: 22px;
}

.mock-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}

.mock-title h1 {
    margin: 0;
    font-size: 28px;
}

.mock-title p {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-weight: 700;
}

.mock-grid {
    display: grid;
    gap: 18px;
}

.mock-grid.two {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr);
}

.mock-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mock-panel,
.mock-dropzone {
    padding: 22px;
}

.mock-panel h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.mock-dropzone {
    min-height: 280px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border-style: dashed;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #F8FBFF 100%);
}

.mock-dropzone [data-icon] {
    width: 54px;
    height: 54px;
    color: var(--color-blue);
}

.mock-dropzone strong {
    font-size: 20px;
}

.mock-dropzone small {
    color: var(--color-muted);
    font-weight: 700;
}

.mock-definition {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0;
    margin: 0 0 18px;
    border-top: 1px solid var(--color-border);
}

.mock-definition dt,
.mock-definition dd {
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid var(--color-border);
}

.mock-definition dt {
    color: var(--color-muted);
    font-weight: 900;
}

.mock-definition dd {
    font-weight: 900;
}

.mock-filter-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px 160px auto;
    gap: 12px;
    align-items: center;
}

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

.mock-photo-card {
    overflow: hidden;
}

.mock-photo-thumb {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #EAF3FF, #F8FAFD);
    color: var(--color-blue);
}

.mock-photo-card strong,
.mock-photo-card small {
    display: block;
    padding-inline: 16px;
}

.mock-photo-card strong {
    padding-top: 14px;
    color: var(--color-text);
    font-size: 15px;
}

.mock-photo-card small {
    padding-top: 6px;
    padding-bottom: 16px;
    color: var(--color-muted);
    font-weight: 700;
}

@media (max-width: 1420px) {
    .report-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .report-tab:nth-child(4) {
        border-right: 0;
    }

    .report-two-pane,
    .equipment-summary-card {
        grid-template-columns: 1fr;
    }

    .equipment-photo {
        display: none;
    }

    .body-inspection-layout,
    .body-side-columns {
        grid-template-columns: 1fr;
    }

    .body-preview-panel,
    .body-input-panel {
        order: initial;
    }

    .body-a4-preview {
        max-width: none;
    }

    .report-start-shell {
        grid-template-columns: minmax(0, 880px);
    }

    .report-start-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mock-grid.two,
    .mock-grid.three,
    .mock-photo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1560px) {
    .inspection-result-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .inspection-result-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 1180px) {
    .body-part-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .body-part-list {
        grid-template-columns: 1fr;
    }
}


/* Report input sheet */
.report-sheet-form .report-workspace {
    padding: 12px;
}

.report-sheet-grid {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.report-section-card {
    min-width: 0;
    box-shadow: none;
}

.report-section-card .section-heading {
    margin: 0 0 14px;
}

.report-section-card h2 {
    margin: 0;
    font-size: 17px;
}

.report-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid .span-2 {
    grid-column: span 2;
}

.report-table-wrap {
    width: 100%;
    overflow: hidden;
}

.report-input-table {
    min-width: 0;
    table-layout: fixed;
}

.report-input-table th,
.report-input-table td {
    padding: 7px 5px;
    vertical-align: middle;
    overflow: hidden;
    white-space: normal;
    word-break: keep-all;
    font-size: 11px;
}

.report-input-table input,
.report-input-table select,
.report-input-table textarea {
    width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 5px 6px;
    border-radius: 5px;
    font-size: 11px;
}

.report-input-table .row-number {
    width: 44px;
    color: var(--color-muted);
    font-weight: 900;
    text-align: center;
}

.inspection-result-card {
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}

.inspection-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
}

.inspection-result-head > div:first-child {
    min-width: 0;
}

.inspection-result-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--color-navy);
    font-size: 20px;
}

.inspection-result-head h2 span {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border: 2px solid #9FB2CC;
    border-radius: 50%;
    color: var(--color-navy);
    font-size: 14px;
    font-weight: 900;
}

.inspection-result-head p {
    margin: 7px 0 0 36px;
    color: #62728A;
    font-size: 13px;
    font-weight: 700;
}

.inspection-result-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 8px;
    white-space: nowrap;
}

.inspection-result-actions .button {
    min-height: 36px;
    padding-inline: 12px;
}

.inspection-result-actions .button.is-active {
    border-color: var(--color-blue);
    color: var(--color-blue);
    background: var(--color-blue-2);
}

.inspection-preview-shell {
    padding: 10px;
    border-bottom: 1px solid var(--color-border);
    background: #EEF2F7;
}

.inspection-preview-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #13253A;
    font-size: 12px;
    font-weight: 800;
}

.inspection-preview-toolbar span {
    color: var(--color-muted);
    font-size: 11px;
}

.excel-body-preview {
    width: min(610px, 100%);
    border: 2px solid #2E45C9;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 31, 51, 0.12);
}

.excel-body-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #000;
    font-family: "MS PGothic", "Yu Gothic", Meiryo, sans-serif;
    font-size: 10px;
}

.excel-body-table th,
.excel-body-table td {
    height: 19px;
    padding: 1px 3px;
    border: 1px solid #000;
    overflow: hidden;
    vertical-align: middle;
    white-space: nowrap;
}

.excel-body-table th {
    background: #fff;
    font-weight: 400;
    text-align: center;
}

.excel-body-table .sheet-no {
    width: 28px;
}

.excel-body-table .excel-group-row td {
    font-weight: 700;
}

.excel-body-table th:nth-child(2),
.excel-body-table .excel-component-cell {
    width: 118px;
}

.excel-body-table .excel-no-cell {
    text-align: right;
}

.excel-body-table .excel-component-cell {
    font-weight: 700;
}

.excel-body-table .excel-result-cell {
    width: 42px;
    text-align: center;
    font-size: 13px;
}

.excel-preview-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    align-items: center;
    min-width: 0;
}

.excel-preview-item span {
    overflow: hidden;
    text-overflow: clip;
}

.excel-preview-item em {
    font-style: normal;
    font-size: 9px;
    text-align: right;
    white-space: nowrap;
}


.inspection-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    background: #FBFCFE;
    overflow: hidden;
}

.inspection-column {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.inspection-group-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #DCE4EF;
    border-radius: 6px;
    background: #fff;
}

.inspection-result-table {
    width: 100%;
    min-width: 0;
    align-self: start;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #fff;
}

.inspection-result-table th,
.inspection-result-table td {
    height: 30px;
    padding: 3px 4px;
    border-right: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.1;
}

.inspection-result-table th:last-child,
.inspection-result-table td:last-child {
    border-right: 0;
}

.inspection-result-table tr:last-child td {
    border-bottom: 0;
}

.inspection-result-table th {
    background: #F8FAFD;
    color: #52647C;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.inspection-result-table td {
    color: #19304D;
    font-weight: 750;
}

.inspection-result-table .col-no { width: 4%; }
.inspection-result-table .col-item { width: 18%; }
.inspection-result-table .col-spec { width: 18%; }
.inspection-result-table .col-code { width: 8%; }
.inspection-result-table .col-condition { width: 11%; }
.inspection-result-table .col-action { width: 12%; }
.inspection-result-table .col-note { width: 24%; }
.inspection-result-table .col-tools { width: 3%; }

.inspection-group-row td {
    height: 29px;
    background: #FBFDFF;
}

.inspection-group-row td:first-child,
.inspection-result-table .row-number {
    color: var(--color-blue);
    font-weight: 900;
    text-align: center;
}

.inspection-group-row td:nth-child(2) {
    text-align: left;
}

.inspection-group-row strong {
    margin-right: 6px;
    color: #005BBB;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.inspection-group-name-input {
    width: min(220px, 45%);
    min-height: 22px;
    margin-right: 6px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #005BBB;
    font-size: 11px;
    font-weight: 900;
}

.inspection-group-name-input:focus {
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--color-blue);
    outline: 0;
}

.mini-add-button {
    min-height: 18px;
    padding: 0 6px;
    border: 1px solid #CFE0F4;
    border-radius: 999px;
    background: #fff;
    color: var(--color-blue);
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
}

.inspection-result-table input,
.inspection-result-table select {
    width: 100%;
    min-width: 0;
    min-height: 24px;
    padding: 3px 4px;
    border: 1px solid #CBD6E3;
    border-radius: 5px;
    background: #fff;
    color: var(--color-text);
    font-size: 10px;
    font-weight: 700;
}

.inspection-result-table .compact-input {
    text-align: center;
}

.inspection-result-table .judgement-select {
    text-align: center;
    font-weight: 900;
}

.inspection-text-input {
    font-weight: 800;
}

.judgement-radios {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
}

.judgement-radios label {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    min-width: 0;
    color: #52647C;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.inspection-result-table .judgement-radios input[type="radio"] {
    appearance: auto;
    width: 10px;
    min-width: 10px;
    height: 10px;
    min-height: 10px;
    margin: 0;
    padding: 0;
    accent-color: var(--color-blue);
}

.icon-delete-button {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-danger);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.icon-delete-button:hover {
    background: var(--color-danger-bg);
}


.report-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 16px;
}

.detail-block {
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
}

.detail-block h3,
.report-saved-tables h3,
.report-saved-tables h4 {
    margin-top: 0;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.detail-list div {
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f8fafd;
}

.detail-list dt,
.detail-list dd {
    margin: 0;
}

.detail-list dt {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.detail-list dd {
    margin-top: 4px;
    font-weight: 900;
}

.detail-text {
    white-space: pre-wrap;
}

.muted-line {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-weight: 700;
}

.report-saved-tables {
    display: grid;
    gap: 18px;
}

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

@media (max-width: 960px) {
    .report-grid-3,
    .report-detail-grid,
    .report-detail-columns {
        grid-template-columns: 1fr;
    }

    .form-grid .span-2 {
        grid-column: auto;
    }
}
