:root {
    --navy-950: #07192e;
    --navy-900: #0a213d;
    --navy-800: #12355a;
    --blue-700: #204f9a;
    --blue-600: #2f5da9;
    --blue-100: #eaf0fb;
    --cyan-500: #21a4b5;
    --ink: #172337;
    --muted: #68758a;
    --line: #dfe5ed;
    --surface: #ffffff;
    --canvas: #f4f6f9;
    --success: #16835a;
    --warning: #b96a05;
    --danger: #b9384b;
    --shadow: 0 14px 40px rgba(20, 39, 67, .09);
    --radius: 14px;
    --sidebar: 238px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

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

button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue-600);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

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

.button {
    min-height: 39px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    transition: .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex="0"]:focus-visible {
    outline: 3px solid rgba(47, 93, 169, .22);
    outline-offset: 2px;
}

.button-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 18px rgba(47, 93, 169, .2); }
.button-primary:hover { background: var(--blue-700); }
.button-full { width: 100%; min-height: 46px; }
.button-ghost { border-color: var(--line); background: #fff; color: #536176; }
.button-ghost:hover { border-color: #bec9d8; color: var(--blue-700); }

.alert { padding: 12px 14px; border: 1px solid; border-radius: 9px; font-size: 13px; }
.alert-error { border-color: #f1c6cd; background: #fff3f5; color: #902536; }
.alert-warning { margin-bottom: 20px; border-color: #f0d5a8; background: #fff8e9; color: #80500b; }

/* Login */
.login-page { background: #fff; }

.login-shell {
    display: grid;
    grid-template-columns: minmax(420px, 44%) 1fr;
    min-height: 100vh;
}

.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 64px 70px 40px;
    background:
        radial-gradient(circle at 95% 15%, rgba(53, 102, 178, .42), transparent 27%),
        linear-gradient(145deg, #06182c 0%, #0b294b 58%, #103964 100%);
    color: #fff;
}

.login-brand::before,
.login-brand::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
}

.login-brand::before { width: 560px; height: 560px; right: -300px; bottom: -170px; }
.login-brand::after { width: 360px; height: 360px; right: -190px; bottom: -65px; }
.login-brand-content, .brand-footer { position: relative; z-index: 1; }

.login-logo {
    width: 188px;
    height: auto;
    margin-bottom: 105px;
    filter: brightness(0) invert(1);
}

.login-brand .eyebrow { color: #83a7df; }

.login-brand h1 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(35px, 3.2vw, 55px);
    line-height: 1.06;
    letter-spacing: -.04em;
}

.login-intro { max-width: 530px; margin: 24px 0 30px; color: #b9c8da; font-size: 17px; }
.source-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.source-pills span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.06); color: #d8e2ef; font-size: 12px; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; }
.dot-secure { background: #77c49c; }
.brand-footer { color: #8195ae; font-size: 12px; }

.login-panel { display: grid; place-items: center; padding: 40px; }
.login-card { width: min(410px, 100%); }
.login-card h2 { margin: 0; font-size: 36px; letter-spacing: -.035em; }
.login-card > .muted { margin: 6px 0 30px; font-size: 15px; }
.login-card .alert { margin-bottom: 18px; }
.mobile-logo-wrap { display: none; }

.login-form { display: grid; gap: 10px; }
.login-form label { margin-top: 8px; font-size: 12px; font-weight: 800; }
.login-form input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #cfd7e2;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
}
.login-form input::placeholder { color: #a0aaba; }
.login-form .button { margin-top: 12px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 70px; }
.password-toggle { position: absolute; top: 50%; right: 12px; padding: 4px; transform: translateY(-50%); border: 0; background: transparent; color: var(--blue-600); font-size: 12px; font-weight: 800; }
.security-note { margin: 26px 0 0; color: #8893a4; text-align: center; font-size: 11px; }
.security-note span { margin-right: 5px; color: var(--success); font-size: 8px; }

/* Application shell */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    width: var(--sidebar);
    flex-direction: column;
    padding: 28px 18px;
    background: var(--navy-950);
    color: #fff;
}

.sidebar-brand { display: block; padding: 7px 12px 36px; }
.sidebar-brand img { width: 142px; filter: brightness(0) invert(1); }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 9px; color: #aebdce; text-decoration: none; font-weight: 700; }
.nav-item.active { background: rgba(64, 111, 183, .24); color: #fff; box-shadow: inset 3px 0 #5b83c5; }
.nav-icon { font-size: 22px; line-height: 1; }
.sidebar-sources { margin-top: auto; padding: 16px 14px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-sources p { margin: 0 0 10px; color: #6f8299; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-sources span { display: flex; align-items: center; padding: 6px 0; color: #afbdcd; font-size: 12px; }
.sidebar-sources b { margin-left: auto; color: #fff; }

.app-shell { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; height: 72px; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.topbar-context { color: var(--muted); font-size: 12px; font-weight: 700; }
.user-menu { display: flex; align-items: center; gap: 11px; }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-weight: 800; }
.user-copy { display: grid; min-width: 160px; }
.user-copy strong { font-size: 13px; }
.user-copy span { color: var(--muted); font-size: 10px; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 24px; }

.content { padding: 34px 32px 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 0; font-size: 34px; letter-spacing: -.035em; }
.page-heading .muted { margin: 4px 0 0; }
.readonly-badge { padding: 8px 12px; border: 1px solid #cbd9ec; border-radius: 999px; background: #f4f8fd; color: #4f6787; font-size: 11px; font-weight: 700; }
.readonly-badge span { margin-right: 5px; color: var(--blue-600); }

.metric-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 20px; }
.metric-card { display: flex; min-height: 116px; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 16px rgba(24, 44, 72, .035); }
.metric-card > div:last-child { display: grid; }
.metric-card span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.metric-card strong { font-size: 29px; line-height: 1.15; }
.metric-card small { color: #9aa4b2; }
.metric-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 12px; font-size: 19px; font-weight: 900; }
.metric-icon { background: var(--navy-900); color: #fff; }

.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.table-toolbar { display: flex; flex-wrap: wrap; gap: 9px; padding: 16px; border-bottom: 1px solid var(--line); }
.table-toolbar input, .table-toolbar select { height: 39px; border: 1px solid #d4dbe5; border-radius: 8px; background: #fff; color: #475569; }
.table-toolbar select { min-width: 135px; padding: 0 32px 0 10px; }
.search-box { position: relative; flex: 1 1 310px; min-width: 220px; }
.search-box span { position: absolute; top: 8px; left: 12px; color: #8b97a8; font-size: 21px; }
.search-box input { width: 100%; padding: 0 12px 0 38px; }
.date-filter { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.date-filter input { padding: 0 8px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 1160px; border-collapse: collapse; }
th { padding: 11px 14px; border-bottom: 1px solid var(--line); background: #f8f9fb; color: #68758a; text-align: left; white-space: nowrap; font-size: 10px; letter-spacing: .035em; text-transform: uppercase; user-select: none; }
th[data-sort] { cursor: pointer; }
th span { margin-left: 3px; color: #aab3c0; }
td { max-width: 200px; padding: 13px 14px; border-bottom: 1px solid #edf0f4; color: #3a4659; vertical-align: middle; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #f9fbfe; }
tbody tr:last-child td { border-bottom: 0; }
.inspection-id { color: var(--navy-900); white-space: nowrap; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.cell-subtitle { display: block; margin-top: 2px; color: #929dab; font-size: 10px; }
.status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; }
.status-badge { background: #edf6f1; color: #277154; }
.button-open { min-height: 34px; padding: 6px 10px; border-color: #cbd7e8; color: var(--blue-700); font-size: 11px; white-space: nowrap; }
.button-open:hover { border-color: var(--blue-600); background: var(--blue-100); }
.button-open span { margin-left: 5px; }
.empty-state { padding: 50px; color: var(--muted); text-align: center; }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pagination-controls { display: flex; align-items: center; gap: 9px; }
.pagination-controls label { display: flex; align-items: center; gap: 6px; }
.pagination-controls select { height: 31px; border: 1px solid var(--line); border-radius: 6px; }
.page-button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-size: 19px; }
.page-button:disabled { cursor: default; opacity: .4; }

/* Detail dialog */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 22px; background: rgba(3, 15, 29, .68); backdrop-filter: blur(3px); }
.modal-panel { display: flex; width: min(1080px, 100%); max-height: calc(100vh - 44px); flex-direction: column; overflow: hidden; border-radius: 16px; background: #f5f7fa; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.modal-header h2 { margin: 0; font-size: 23px; }
.modal-header .eyebrow { margin-bottom: 3px; }
.modal-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #536176; font-size: 24px; }
.modal-body { overflow-y: auto; padding: 22px; }
.loading-state { display: flex; min-height: 300px; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.loading-state span { width: 18px; height: 18px; border: 2px solid #cbd5e2; border-top-color: var(--blue-600); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.detail-banner { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; padding: 16px 18px; border-radius: 12px; background: var(--navy-900); color: #fff; }
.detail-banner strong { display: block; font-size: 18px; }
.detail-banner span { color: #aec1d9; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.detail-item { min-height: 82px; padding: 13px 15px; background: #fff; }
.detail-item dt { margin-bottom: 5px; color: #8490a1; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.detail-item dd { margin: 0; overflow-wrap: anywhere; color: #2c394d; font-weight: 650; }
.detail-section { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.detail-section h3 { margin: 0; font-size: 16px; }
.section-note { color: var(--muted); font-size: 11px; }
.original-note { margin: 0; padding: 13px; border-radius: 8px; background: #f6f8fb; color: #4e5c70; white-space: pre-wrap; }
.attachment-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--blue-700); font-weight: 700; text-decoration: none; }
.remarks-list { display: grid; gap: 12px; }
.remark-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.remark-card-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid #edf0f4; background: #fbfcfd; }
.remark-card-head h4 { margin: 0; font-size: 14px; }
.remark-card-body { padding: 15px; }
.answer-badge { padding: 3px 8px; border-radius: 999px; background: #eef1f5; color: #657185; font-size: 10px; font-weight: 800; }
.answer-yes { background: #e6f5ed; color: #19704d; }
.answer-no { background: #fff0f1; color: #a53342; }
.answer-options { display: flex; gap: 8px; margin-bottom: 12px; }
.answer-options label { position: relative; }
.answer-options input { position: absolute; opacity: 0; }
.answer-options span { display: inline-flex; min-width: 64px; justify-content: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; }
.answer-options input:checked + span { border-color: var(--blue-600); background: var(--blue-100); color: var(--blue-700); }
.remark-form label.field-label { display: block; margin: 12px 0 5px; color: #657185; font-size: 11px; font-weight: 800; }
.remark-form textarea { width: 100%; min-height: 90px; resize: vertical; padding: 10px 12px; border: 1px solid #cfd7e2; border-radius: 8px; }
.file-input { width: 100%; padding: 9px; border: 1px dashed #bfcbd9; border-radius: 8px; background: #f9fbfd; }
.file-help { display: block; margin-top: 4px; color: #8c97a7; font-size: 10px; }
.modal-save-actions { display: flex; justify-content: flex-end; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.modal-save-actions .button { min-width: 130px; }
.readonly-note { margin: 0; color: #526075; white-space: pre-wrap; }
.readonly-empty { color: #98a2b0; font-style: italic; }
.file-list { display: grid; gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 7px; background: #f5f7fa; }
.file-list a { color: var(--blue-700); font-size: 12px; font-weight: 700; text-decoration: none; }
.file-list small { color: #8d98a8; }
.option-list { display: grid; max-height: 185px; gap: 7px; overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.option-list label { display: flex; align-items: flex-start; gap: 8px; color: #48566a; font-size: 11px; }
.option-list input { margin-top: 2px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 90; max-width: 360px; padding: 12px 16px; border-radius: 9px; background: var(--navy-900); color: #fff; box-shadow: var(--shadow); font-weight: 700; }
.toast.error { background: #8d2838; }
body.modal-open { overflow: hidden; }

@media (max-width: 1100px) {
    :root { --sidebar: 205px; }
    .content, .topbar { padding-left: 22px; padding-right: 22px; }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .login-panel { min-height: 100vh; padding: 28px; }
    .mobile-logo-wrap { display: block; margin-bottom: 50px; }
    .mobile-logo { width: 145px; }
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
    body.menu-open .sidebar { transform: translateX(0); }
    .app-shell { margin-left: 0; }
    .mobile-menu { display: block; }
    .topbar-context { display: none; }
    .content { padding: 24px 16px 36px; }
    .topbar { height: 64px; padding: 0 16px; }
    .user-copy { display: none; }
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 92px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .detail-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-backdrop { padding: 0; }
    .modal-panel { width: 100%; max-height: 100vh; min-height: 100vh; border-radius: 0; }
    .modal-header, .modal-body { padding: 16px; }
}

@media (max-width: 520px) {
    .login-panel { padding: 22px; }
    .login-card h2 { font-size: 31px; }
    .user-menu { gap: 6px; }
    .topbar .button { padding: 7px 10px; }
    .readonly-badge { display: none; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-banner { align-items: flex-start; flex-direction: column; }
    .pagination-bar { align-items: flex-start; flex-direction: column; }
    .table-toolbar > * { width: 100%; }
    .table-toolbar select { min-width: 100%; }
    .date-filter { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}

/* Integration with core.css and theme-default.css ------------------------- */
:root {
    --navy-950: #233446;
    --navy-900: #2b3f54;
    --navy-800: #40566d;
    --blue-700: #007fc5;
    --blue-600: #009bef;
    --blue-100: #e6f5fd;
    --cyan-500: #03c3ec;
    --ink: #566a7f;
    --muted: #697a8d;
    --line: #d9dee3;
    --canvas: #f5f5f9;
    --shadow: 0 .125rem .375rem 0 rgba(161, 172, 184, .12);
    --radius: .5rem;
}

body {
    color: var(--ink);
    background: var(--canvas);
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.button {
    border-radius: .375rem;
    font-weight: 500;
}

.button-primary {
    background: var(--blue-600);
    box-shadow: 0 .125rem .25rem rgba(0, 155, 239, .25);
}

.button-primary:hover { background: var(--blue-700); }

/* Login card using the shared theme primitives. */
.theme-login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    background: var(--canvas);
}

.login-theme-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 2rem 1rem;
}

.theme-login-page .login-card {
    width: min(420px, 100%);
    border: 0;
    border-radius: .625rem;
    box-shadow: 0 .25rem 1rem rgba(161, 172, 184, .24);
}

.theme-login-page .login-card .card-body { padding: 2rem; }

.login-app-brand {
    height: auto;
    margin-bottom: 2rem;
}

.login-app-brand img {
    width: 205px;
    height: auto;
}

.login-title {
    margin: 0 0 .375rem;
    color: #566a7f;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -.02em;
}

.login-subtitle { margin: 0 0 1.5rem; }
.theme-login-page .login-form { gap: .5rem; }
.theme-login-page .login-form label { margin-top: .45rem; }

.theme-login-page .login-form input {
    height: 2.75rem;
    border-color: #d9dee3;
    border-radius: .375rem;
}

.theme-login-page .login-form input:focus {
    border-color: #009bef;
    box-shadow: 0 0 0 .2rem rgba(0, 155, 239, .15);
}

.theme-login-page .login-form .btn {
    min-height: 2.75rem;
    margin-top: 1rem;
}

/* Theme layout adjustments for this focused portal. */
.app-page .layout-wrapper,
.app-page .layout-container,
.app-page .layout-page { min-height: 100vh; }

.app-page .layout-menu .app-brand.demo {
    height: 4.5rem;
    margin-top: .5rem;
    padding: 0 1.5rem;
}

.app-page .layout-menu .app-brand-link { width: 100%; }

.app-page .layout-menu .app-brand img {
    width: 155px;
    height: auto;
}

.app-page .menu-icon {
    display: inline-grid;
    width: 1.5rem;
    place-items: center;
    font-size: 1.25rem;
    line-height: 1;
}

.app-page .layout-navbar {
    min-height: 4rem;
    margin-top: .75rem;
}

.app-page .layout-menu-toggle {
    border: 0;
    background: transparent;
    color: #697a8d;
    font-size: 1.35rem;
}

.app-page .navbar-nav-right { width: 100%; }
.app-page .topbar-context { color: #697a8d; font-size: .875rem; }

.app-page .user-menu {
    min-height: 3rem;
    gap: .65rem;
}

.app-page .avatar {
    width: 2.25rem;
    height: 2.25rem;
    background: #e6f5fd;
    color: #009bef;
}

.app-page .user-copy { min-width: 150px; }
.app-page .user-copy strong { color: #566a7f; }
.app-page .user-copy span { color: #a1acb8; }

.app-page .container-p-y { padding-top: 1.625rem !important; padding-bottom: 2rem !important; }
.page-heading h1 { color: #566a7f; font-size: 2rem; font-weight: 500; }
.eyebrow { color: #009bef; }

.readonly-badge {
    border-color: rgba(0, 155, 239, .25);
    border-radius: .375rem;
    background: #fff;
    color: #007fc5;
}

.metric-card.card {
    border: 0;
    border-radius: .5rem;
    box-shadow: var(--shadow);
}

.metric-icon {
    border-radius: .375rem;
    background: rgba(0, 155, 239, .14);
    color: #009bef;
}

.metric-card span { color: #697a8d; }
.metric-card strong { color: #566a7f; }

.password-management {
    margin-bottom: 1.5rem;
    border: 0;
    border-radius: .5rem;
    box-shadow: var(--shadow);
}

.password-management-header { padding: 1.25rem 1.5rem .75rem; }
.password-management-header .eyebrow { margin-bottom: .25rem; }
.password-management-header h2 { margin: 0; color: #566a7f; font-size: 1.125rem; font-weight: 500; }
.password-management-header p:last-child { margin: .35rem 0 0; color: #697a8d; }
.password-management-body { padding: .75rem 1.5rem 1.5rem; }
.password-account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }

.password-account-form {
    display: grid;
    gap: .6rem;
    padding: 1rem;
    border: 1px solid #eceef1;
    border-radius: .5rem;
    background: #fff;
}

.password-account-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .25rem; }
.password-account-heading div { display: grid; }
.password-account-heading strong { color: #566a7f; }
.password-account-heading span { color: #a1acb8; font-size: .8125rem; }
.password-role-badge { padding: .25rem .45rem; border-radius: 999px; background: #e6f5fd; color: #007fc5 !important; white-space: nowrap; }
.password-account-form .form-label { margin: .2rem 0 -.25rem; }
.password-account-form small { color: #a1acb8; }
.password-account-form .btn { justify-self: start; margin-top: .35rem; }
.password-empty { margin: 0; color: #697a8d; }

.table-card.card {
    overflow: hidden;
    border: 0;
    border-radius: .5rem;
    box-shadow: var(--shadow);
}

.table-card-header {
    padding: 1.25rem 1.5rem .75rem;
    border-bottom: 0;
}

.table-card-header h2 {
    margin: 0;
    color: #566a7f;
    font-size: 1.125rem;
    font-weight: 500;
}

.table-card-body { padding: 0; }

.table-toolbar {
    padding: .75rem 1.5rem 1rem;
    border-bottom-color: #eceef1;
}

.table-toolbar input,
.table-toolbar select {
    border-color: #d9dee3;
    border-radius: .375rem;
}

.table-toolbar input:focus,
.table-toolbar select:focus {
    border-color: #009bef;
    box-shadow: 0 0 0 .2rem rgba(0, 155, 239, .12);
    outline: 0;
}

.table-card table { margin-bottom: 0; }
.table-card th { background: #f5f5f9; color: #566a7f; }
.table-card td { border-color: #eceef1; color: #697a8d; }
.table-card tbody tr:hover { background: rgba(67, 89, 113, .04); }

.inspection-id,
.file-list a,
.attachment-link { color: #009bef; }

.button-open {
    border-color: #009bef;
    background: #009bef;
    color: #fff;
}

.button-open:hover {
    border-color: #007fc5;
    background: #007fc5;
    color: #fff;
}

.pagination-bar {
    border-top-color: #eceef1;
    background: #fff;
}

.page-button,
.pagination-controls select { border-color: #d9dee3; border-radius: .375rem; }

/* Detail dialog follows the same shared visual language. */
.modal-panel { border-radius: .5rem; background: #f5f5f9; }
.modal-header { border-bottom-color: #eceef1; }
.modal-close { border-radius: .375rem; }
.detail-banner { border-radius: .5rem; background: #009bef; }
.detail-grid, .detail-section, .remark-card { border-radius: .5rem; }
.answer-options input:checked + span { border-color: #009bef; background: #e6f5fd; color: #007fc5; }
.toast { border-radius: .375rem; background: #009bef; }

@media (max-width: 1199.98px) {
    .app-page.layout-menu-expanded { overflow: hidden; }
}

@media (max-width: 767px) {
    .theme-login-page .login-card .card-body { padding: 1.5rem; }
    .app-page .layout-navbar { margin-right: 1rem; margin-left: 1rem; }
    .app-page .user-copy { display: none; }
}
