body {
    background: #f5f7fb;
    color: #172033;
}

.navbar-brand {
    color: #172033;
}

.navbar .container {
    gap: 0.75rem;
    flex-wrap: wrap;
}

.metric-box {
    background: #ffffff;
    border: 1px solid #dee5ef;
    border-radius: 8px;
    padding: 18px;
}

.metric-box strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-top: 8px;
}

.metric-label {
    color: #637083;
    font-size: 0.9rem;
}

.metric-box-success {
    border-left: 5px solid #198754;
}

.metric-box-danger {
    border-left: 5px solid #dc3545;
}

.metric-box-warning {
    border-left: 5px solid #ffc107;
}

.table td,
.table th {
    white-space: nowrap;
}

.table td:first-child {
    min-width: 240px;
    white-space: normal;
}

.dashboard-filter,
.actions-panel {
    background: #ffffff;
    border: 1px solid #dee5ef;
    border-radius: 8px;
}

.dashboard-filter {
    margin-bottom: 18px;
    padding: 16px;
}

.actions-panel {
    overflow: visible;
}

.actions-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #e3eaf3;
}

.action-list {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 112px;
    gap: 18px;
    align-items: center;
    min-height: 116px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e1e8f2;
    border-left: 5px solid #adb5bd;
    border-radius: 8px;
}

.action-row-success {
    border-left-color: #198754;
}

.action-row-warning {
    border-left-color: #ffc107;
}

.action-row-danger {
    border-left-color: #dc3545;
}

.action-row-main {
    min-width: 0;
}

.action-title {
    color: #172033;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.action-title:hover {
    color: #0d6efd;
}

.action-description {
    display: -webkit-box;
    margin: 0;
    color: #637083;
    font-size: 0.92rem;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.action-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
    color: #637083;
    font-size: 0.86rem;
}

.action-meta strong {
    color: #28364a;
    font-weight: 700;
}

.action-meta a {
    color: #0d6efd;
    text-decoration: none;
}

.action-row-due {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.action-due-label {
    color: #637083;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.action-row-due strong {
    color: #172033;
    font-size: 1rem;
}

.action-delay {
    color: #dc3545;
    font-size: 0.82rem;
    font-weight: 700;
}

.action-row-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.action-row-actions .btn {
    min-width: 104px;
}

.action-empty {
    display: grid;
    gap: 4px;
    padding: 42px 18px;
    color: #637083;
    text-align: center;
}

.action-empty strong {
    color: #172033;
}

.notification-menu {
    width: min(420px, calc(100vw - 24px));
    min-width: min(360px, calc(100vw - 24px));
    max-width: 420px;
}

.notification-menu .dropdown-item {
    white-space: normal;
}

.notification-item {
    display: grid;
    gap: 4px;
    line-height: 1.35;
}

.notification-message {
    color: #172033;
    overflow-wrap: anywhere;
    white-space: normal;
}

.notification-time {
    color: #64748b;
    font-size: 0.78rem;
}

.login-body {
    min-height: 100vh;
}

.login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
    background: #f6f8fc;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

.login-card {
    width: min(100%, 440px);
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.login-card-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e7edf5;
}

.login-card-brand strong,
.login-card-brand span {
    display: block;
}

.login-card-brand strong {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 800;
}

.login-card-brand span {
    color: #64748b;
    font-size: 0.88rem;
}

.login-card h2 {
    margin: 0;
    color: #111827;
    font-size: 1.45rem;
    font-weight: 800;
}

.login-card .form-label {
    color: #172033;
    font-weight: 700;
}

.login-card .form-control {
    min-height: 46px;
    padding-left: 42px;
    border-color: #d8e2ef;
    border-radius: 8px;
}

.login-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 8px;
    font-weight: 800;
}

.login-input-icon {
    position: relative;
}

.login-input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 2;
    color: #64748b;
    transform: translateY(-50%);
}

.login-alert-stack {
    margin-bottom: 18px;
}

.dashboard-body {
    background: #f6f8fc;
}

.dashboard-app {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
    min-height: 100vh;
    background: #f6f8fc;
}

.dashboard-sidebar {
    background: #ffffff;
    border-right: 1px solid #e1e8f2;
    box-shadow: 8px 0 28px rgba(27, 39, 59, 0.04);
}

.dashboard-sidebar .offcanvas-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px 16px;
}

.dashboard-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    margin-bottom: 30px;
    color: #111827;
    font-size: 1.03rem;
}

.dashboard-brand-icon,
.dashboard-profile-avatar,
.dashboard-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #0d6efd;
    font-weight: 800;
}

.dashboard-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.35rem;
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.24);
}

.dashboard-sidebar-nav {
    display: grid;
    gap: 8px;
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 14px;
    color: #334155;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
}

.dashboard-nav-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    color: #52627a;
    font-size: 1.1rem;
}

.dashboard-nav-item:hover,
.dashboard-nav-item.active {
    color: #0d6efd;
    background: #eef5ff;
    border-color: #cfe1ff;
}

.dashboard-nav-item:hover i,
.dashboard-nav-item.active i {
    color: #0d6efd;
}

.dashboard-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 18px 4px 14px;
    border-top: 1px solid #e5ebf4;
}

.dashboard-sidebar-user strong,
.dashboard-sidebar-user span {
    display: block;
}

.dashboard-sidebar-user strong {
    color: #172033;
    font-size: 0.95rem;
}

.dashboard-sidebar-user span {
    color: #637083;
    font-size: 0.84rem;
}

.dashboard-avatar,
.dashboard-profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.dashboard-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    color: #334155;
    text-decoration: none;
    border-top: 1px solid #e5ebf4;
}

.dashboard-logout:hover {
    color: #0d6efd;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 80px;
    padding: 0 32px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e1e8f2;
    backdrop-filter: blur(14px);
}

.dashboard-topbar-title {
    margin: 0;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 800;
}

.dashboard-topbar-mobile-only {
    justify-content: flex-start;
    min-height: 64px;
}

.dashboard-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.dashboard-topbar-actions .btn,
.dashboard-profile-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    white-space: nowrap;
}

.dashboard-profile-button {
    color: #172033;
    background: transparent;
    border: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #172033;
    background: #ffffff;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
}

.dashboard-content {
    padding: 24px 32px 34px;
}

.dashboard-content-flush {
    min-height: 100vh;
    padding: 0;
}

.dashboard-alert-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.dashboard-alert-stack .alert {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding-inline: 20px 48px;
    border-radius: 8px;
}

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

.dashboard-page-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0;
}

.dashboard-page-heading p {
    margin: 5px 0 0;
    color: #64748b;
}

.dashboard-page-heading .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    border-radius: 8px;
}

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

.dashboard-stat-card {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 18px;
    min-height: 112px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.dashboard-stat-card::after {
    content: "";
    position: absolute;
    right: 26px;
    bottom: 22px;
    width: 78px;
    height: 30px;
    border-right: 4px solid currentColor;
    border-bottom: 4px solid currentColor;
    border-radius: 0 0 28px 0;
    opacity: 0.22;
    transform: skewX(-25deg);
}

.dashboard-stat-card .stat-icon {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 12px;
    font-size: 2rem;
}

.dashboard-stat-card .stat-label {
    align-self: end;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
}

.dashboard-stat-card strong {
    color: currentColor;
    font-size: 2rem;
    line-height: 1.05;
}

.dof-dashboard-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.dof-dashboard-metrics .dashboard-stat-card {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 12px;
    min-height: 86px;
    padding: 16px;
}

.dof-dashboard-metrics .dashboard-stat-card::after {
    right: 18px;
    bottom: 16px;
    width: 48px;
    height: 20px;
    border-right-width: 3px;
    border-bottom-width: 3px;
}

.dof-dashboard-metrics .dashboard-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 1.35rem;
}

.dof-dashboard-metrics .dashboard-stat-card .stat-label {
    font-size: 0.82rem;
    line-height: 1.2;
}

.dof-dashboard-metrics .dashboard-stat-card strong {
    font-size: 1.55rem;
}

.dof-nonconformity-cell {
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: normal;
}

.dof-dashboard-table {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
}

.dof-dashboard-table th,
.dof-dashboard-table td {
    padding: 14px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dof-dashboard-table .dof-nonconformity-cell {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.dof-dashboard-table .dashboard-action-title-cell a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dof-dashboard-table thead th {
    line-height: 1.25;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.dof-dashboard-table th:nth-child(1),
.dof-dashboard-table td:nth-child(1) {
    width: 11%;
}

.dof-dashboard-table th:nth-child(2),
.dof-dashboard-table td:nth-child(2) {
    width: 27%;
}

.dof-dashboard-table th:nth-child(3),
.dof-dashboard-table td:nth-child(3) {
    width: 10%;
}

.dof-dashboard-table th:nth-child(4),
.dof-dashboard-table td:nth-child(4) {
    width: 12%;
}

.dof-dashboard-table th:nth-child(5),
.dof-dashboard-table td:nth-child(5) {
    width: 8%;
}

.dof-dashboard-table th:nth-child(6),
.dof-dashboard-table td:nth-child(6) {
    width: 12%;
}

.dof-dashboard-table th:nth-child(7),
.dof-dashboard-table td:nth-child(7) {
    width: 7%;
}

.dof-dashboard-table th:nth-child(8),
.dof-dashboard-table td:nth-child(8) {
    width: 6%;
}

.dof-dashboard-table th:nth-child(9),
.dof-dashboard-table td:nth-child(9) {
    width: 9%;
}

.dof-dashboard-table .dof-responsible-cell {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.25;
}

.dof-responsible-name,
.dof-responsible-name span {
    display: block;
}

.dof-dashboard-table .status-pill {
    min-height: 28px;
    padding: 5px 8px;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}

.dof-dashboard-table .dashboard-row-actions {
    min-width: 0;
    justify-content: flex-end;
}

.dof-dashboard-table .dashboard-row-actions .btn {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 0.8rem;
}

.stat-primary {
    color: #0d6efd;
}

.stat-success {
    color: #198754;
}

.stat-warning {
    color: #f59f00;
}

.stat-info {
    color: #0d6efd;
}

.stat-danger {
    color: #dc3545;
}

.stat-primary .stat-icon {
    background: #eaf2ff;
}

.stat-success .stat-icon {
    background: #dff6ea;
}

.stat-warning .stat-icon {
    background: #fff3cd;
}

.stat-info .stat-icon {
    background: #eef5ff;
}

.stat-danger .stat-icon {
    background: #fde7ea;
}

.dashboard-filter-card,
.dashboard-table-card {
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dashboard-filter-card {
    margin-bottom: 20px;
    padding: 20px;
}

.dashboard-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) minmax(170px, 1fr) minmax(210px, 1fr) minmax(170px, 1fr) auto;
    gap: 20px;
    align-items: end;
}

.dashboard-filter-card .form-label {
    color: #172033;
    font-weight: 700;
}

.dashboard-search-control {
    position: relative;
}

.dashboard-search-control i {
    position: absolute;
    left: 14px;
    top: 50%;
    color: #64748b;
    transform: translateY(-50%);
}

.dashboard-search-control .form-control {
    padding-left: 42px;
}

.dashboard-filter-card .form-control,
.dashboard-filter-card .form-select {
    min-height: 44px;
    border-color: #d8e2ef;
    border-radius: 8px;
}

.dashboard-filter-actions {
    display: flex;
    gap: 12px;
}

.dashboard-filter-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: 108px;
    border-radius: 8px;
}

.dashboard-table-card {
    container-type: inline-size;
    overflow: hidden;
}

.dashboard-table {
    color: #172033;
}

.dashboard-table thead th {
    padding: 18px 22px;
    color: #111827;
    background: #fbfcfe;
    border-bottom: 1px solid #e1e8f2;
    font-size: 0.92rem;
}

.dashboard-table tbody td {
    padding: 18px 22px;
    border-bottom: 1px solid #e7edf5;
    vertical-align: middle;
}

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

.dashboard-action-title-cell {
    min-width: 280px;
    white-space: normal;
}

.dashboard-action-title-cell a,
.dashboard-action-title-cell span {
    display: block;
}

.dashboard-action-title-cell a {
    color: #0d6efd;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.dashboard-action-title-cell span {
    margin-top: 5px;
    color: #64748b;
    line-height: 1.45;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill-success {
    color: #087443;
    background: #ddf5e8;
    border-color: #bce8ce;
}

.status-pill-warning {
    color: #9a6700;
    background: #fff3cd;
    border-color: #ffe2a4;
}

.status-pill-info {
    color: #0f766e;
    background: #e8f8f6;
    border-color: #b8ebe6;
}

.status-pill-danger {
    color: #b4232f;
    background: #fde7ea;
    border-color: #fac5cb;
}

.status-pill-muted {
    color: #475569;
    background: #edf2f7;
    border-color: #dce5ef;
}

.btn-soft-primary {
    color: #0d6efd;
    background: #eef5ff;
    border-color: #b8d3ff;
}

.dashboard-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 190px;
}

.dashboard-row-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    border-radius: 7px;
    font-weight: 700;
}

.dashboard-table-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 22px;
    color: #334155;
    border-top: 1px solid #e1e8f2;
}

.dashboard-empty-row {
    padding: 46px 22px !important;
    color: #64748b;
    text-align: center;
}

.dashboard-empty-row strong,
.dashboard-empty-row span {
    display: block;
}

.dashboard-empty-row strong {
    color: #172033;
}

@container (max-width: 1120px) {
    .dof-dashboard-table {
        table-layout: auto;
    }

    .dof-dashboard-table thead {
        display: none;
    }

    .dof-dashboard-table,
    .dof-dashboard-table tbody,
    .dof-dashboard-table tr,
    .dof-dashboard-table td {
        display: block;
        width: 100% !important;
    }

    .dof-dashboard-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .dof-dashboard-table tbody tr {
        padding: 12px;
        background: #ffffff;
        border: 1px solid #e2e9f3;
        border-radius: 8px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

    .dof-dashboard-table tbody td {
        display: grid;
        grid-template-columns: minmax(120px, 34%) minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 10px 0;
        border-bottom: 1px solid #edf2f7;
    }

    .dof-dashboard-table tbody td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 0.8rem;
        font-weight: 800;
    }

    .dof-dashboard-table tbody td:last-child {
        border-bottom: 0;
    }

    .dof-dashboard-table .dashboard-action-title-cell {
        min-width: 0;
    }

    .dof-dashboard-table .dashboard-row-actions {
        justify-content: flex-start;
    }

    .dof-dashboard-table .dashboard-empty-row::before {
        display: none;
    }
}

.app-card,
.app-form-card {
    margin-bottom: 20px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.app-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.app-card-header h3 {
    margin: 0;
    color: #111827;
    font-size: 1.1rem;
    font-weight: 800;
}

.app-card-header p {
    margin: 4px 0 0;
    color: #64748b;
    line-height: 1.4;
}

.app-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    color: #0d6efd;
    background: #eaf2ff;
    border-radius: 8px;
    font-size: 1.35rem;
}

.app-card-footer {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e7edf5;
}

.app-heading-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.app-heading-actions .btn,
.app-form-actions .btn,
.app-inline-form .btn,
.closure-review-box .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 8px;
    font-weight: 700;
}

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

.app-form-full {
    grid-column: 1 / -1;
}

.app-form-card .form-label,
.app-card .form-label {
    color: #172033;
    font-weight: 700;
}

.app-form-card .form-control,
.app-form-card .form-select,
.app-card .form-control,
.app-card .form-select {
    min-height: 44px;
    border-color: #d8e2ef;
    border-radius: 8px;
}

.app-file-box {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    background: #f8fbff;
    border: 1px dashed #bfd2ec;
    border-radius: 8px;
}

.app-file-box > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #0d6efd;
    background: #eaf2ff;
    border-radius: 8px;
    font-size: 1.3rem;
}

.dof-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 314px;
    gap: 20px;
    align-items: start;
}

.dof-form-card,
.dof-side-card {
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dof-form-card {
    padding: 22px;
}

.dof-card-icon {
    color: #0f9f9a;
    background: #e8f8f6;
}

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

.dof-form-card .form-label {
    color: #172033;
    font-weight: 800;
}

.dof-form-card .form-control,
.dof-form-card .form-select {
    min-height: 44px;
    border-color: #d8e2ef;
    border-radius: 8px;
}

.dof-section-divider {
    margin: 22px -22px;
    border-top: 1px solid #e7edf5;
}

.dof-textarea-stack {
    display: grid;
    gap: 18px;
}

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

.dof-textarea-field {
    position: relative;
}

.dof-textarea-field textarea {
    min-height: 86px;
    padding-bottom: 28px;
    resize: vertical;
}

.dof-counter {
    position: absolute;
    right: 12px;
    bottom: 8px;
    color: #64748b;
    font-size: 0.78rem;
    pointer-events: none;
}

.dof-upload-box {
    display: grid;
    place-items: center;
    gap: 5px;
    margin-top: 18px;
    padding: 22px;
    color: #475569;
    text-align: center;
    background: #fbfdff;
    border: 2px dashed #bfd2ec;
    border-radius: 8px;
    cursor: pointer;
}

.dof-upload-box:hover {
    border-color: #0d6efd;
    background: #f4f9ff;
}

.dof-upload-box.is-dragging {
    border-color: #0f9f9a;
    background: #eefbf9;
}

.dof-upload-box i {
    color: #0d6efd;
    font-size: 2rem;
}

.dof-upload-box strong {
    color: #0d6efd;
}

.dof-upload-box small {
    color: #64748b;
}

.dof-upload-box input {
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
}

.dof-side-panel {
    display: grid;
    gap: 16px;
}

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

.dof-side-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.dof-side-title i {
    color: #0f9f9a;
    font-size: 1.25rem;
}

.dof-side-title h3 {
    margin: 0;
    color: #111827;
    font-size: 1.03rem;
    font-weight: 800;
}

.dof-side-card p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
}

.dof-status-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: #9a6700;
    background: #fff6df;
    border: 1px solid #f8d98c;
    border-radius: 8px;
}

.dof-status-box i {
    font-size: 1.45rem;
}

.dof-status-box strong,
.dof-status-box span {
    display: block;
}

.dof-status-box strong {
    color: #334155;
}

.dof-status-box span {
    color: #64748b;
    font-size: 0.82rem;
}

.dof-approval-flow {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: dof-step;
}

.dof-approval-flow li {
    position: relative;
    min-height: 58px;
    padding-left: 44px;
    counter-increment: dof-step;
}

.dof-approval-flow li::before {
    content: counter(dof-step);
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 800;
}

.dof-approval-flow li.is-active::before {
    color: #ffffff;
    background: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.14), 0 8px 18px rgba(13, 110, 253, 0.25);
}

.dof-approval-flow li.is-complete::before {
    color: #ffffff;
    background: #0f9f6e;
    border-color: #0f9f6e;
}

.dof-approval-flow li.is-rejected::before {
    color: #ffffff;
    background: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 0 0 5px rgba(220, 53, 69, 0.12), 0 8px 18px rgba(220, 53, 69, 0.2);
}

.dof-approval-flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 30px;
    width: 2px;
    height: 26px;
    background: #cbd5e1;
}

.dof-approval-flow strong,
.dof-approval-flow span {
    display: block;
}

.dof-approval-flow strong {
    color: #334155;
    font-size: 0.9rem;
}

.dof-approval-flow span {
    color: #64748b;
    font-size: 0.82rem;
}

.dof-approval-flow small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.78rem;
}

.dof-checklist {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dof-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 0.9rem;
}

.dof-checklist i {
    color: #94a3b8;
}

.dof-detail-heading {
    align-items: flex-start;
}

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

.dof-detail-info-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 92px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dof-detail-info-icon,
.dof-detail-content-icon,
.dof-evidence-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.dof-detail-info-icon {
    width: 46px;
    height: 46px;
    color: #0d6efd;
    background: #eaf2ff;
    font-size: 1.25rem;
}

.dof-detail-info-card > div > span:first-child {
    display: block;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 800;
}

.dof-detail-info-card strong {
    display: block;
    margin-top: 4px;
    color: #111827;
    font-size: 1.02rem;
    overflow-wrap: anywhere;
}

.dof-detail-info-card .status-pill {
    margin-top: 4px;
}

.dof-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 20px;
    align-items: start;
}

.dof-detail-main,
.dof-detail-side {
    display: grid;
    gap: 14px;
}

.dof-detail-content-card,
.dof-detail-side-card {
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dof-detail-content-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.dof-detail-content-card + .dof-detail-content-card {
    margin-top: 0;
}

.dof-detail-content-icon {
    width: 58px;
    height: 58px;
    font-size: 1.55rem;
}

.dof-detail-content-icon.tone-teal {
    color: #0f9f9a;
    background: #e8f8f6;
}

.dof-detail-content-icon.tone-green {
    color: #198754;
    background: #e7f7eb;
}

.dof-detail-content-icon.tone-blue {
    color: #0d6efd;
    background: #eaf2ff;
}

.dof-detail-content-icon.tone-purple {
    color: #7c3aed;
    background: #f1e9ff;
}

.dof-detail-content-card h3,
.dof-detail-side-title h3 {
    margin: 0;
    color: #111827;
    font-size: 1.04rem;
    font-weight: 800;
}

.dof-detail-content-card small,
.dof-detail-side-title p {
    display: block;
    margin-top: 3px;
    color: #64748b;
    line-height: 1.4;
}

.dof-detail-content-card p {
    margin: 12px 0 0;
    color: #334155;
    line-height: 1.55;
}

.dof-detail-side-card {
    padding: 18px;
}

.dof-detail-side-title {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.dof-detail-side-title > i {
    color: #0f9f9a;
    font-size: 1.35rem;
}

.dof-detail-approval-flow li:last-child {
    min-height: 34px;
}

.dof-evidence-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    color: #0d6efd;
    text-decoration: none;
    background: #f8fbff;
    border: 1px solid #bfd2ec;
    border-radius: 8px;
}

.dof-evidence-link:hover {
    color: #0b5ed7;
    background: #eef5ff;
    border-color: #8bbcff;
}

.dof-evidence-link-inline {
    display: inline-flex;
    max-width: 100%;
    margin-top: 12px;
}

.dof-evidence-file-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: #0d6efd;
    background: #eaf2ff;
}

.dof-evidence-name {
    min-width: 0;
    overflow: hidden;
    color: #0d6efd;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dof-detail-empty-note {
    padding: 14px;
    color: #64748b;
    background: #f8fbff;
    border: 1px dashed #bfd2ec;
    border-radius: 8px;
}

.dof-detail-summary {
    display: grid;
}

.dof-detail-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e7edf5;
}

.dof-detail-summary > div:first-child {
    padding-top: 0;
}

.dof-detail-summary > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dof-detail-summary span {
    color: #64748b;
    font-weight: 800;
}

.dof-detail-summary strong {
    color: #111827;
    text-align: right;
}

.dof-rejection-card {
    border-color: #f4c2c7;
    background: #fff7f8;
}

.dof-rejection-card .dof-detail-side-title > i {
    color: #dc3545;
}

.dof-rejection-card p {
    margin: 0;
    color: #842029;
    line-height: 1.55;
}

.dof-rejection-card small {
    display: block;
    margin-top: 10px;
    color: #9f3a45;
}

.dof-detail-revision-card,
.dof-detail-comments-card {
    margin-top: 20px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.audit-flow-heading {
    align-items: flex-start;
}

.audit-flow-audit-no,
.audit-selector-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    color: #0d6efd;
    background: #eef5ff;
    border: 1px solid #cfe1ff;
    border-radius: 8px;
    font-weight: 800;
}

.audit-selector {
    position: relative;
}

.audit-selector-button {
    border: 1px solid #cfe1ff;
}

.audit-selector-menu {
    width: min(420px, calc(100vw - 32px));
    max-height: 420px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.audit-selector-title {
    padding: 8px 10px 12px;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 800;
}

.audit-selector-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
    padding: 6px;
    border-radius: 8px;
}

.audit-selector-row.is-active {
    background: #eef5ff;
}

.audit-selector-link {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 8px;
    color: #334155;
    text-decoration: none;
}

.audit-selector-link strong {
    color: #0d6efd;
}

.audit-selector-link span {
    overflow: hidden;
    color: #64748b;
    font-size: 0.83rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audit-selector-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #dc3545;
    background: #fff5f5;
    border: 1px solid #ffd6d6;
    border-radius: 8px;
}

.audit-selector-empty {
    padding: 14px 10px;
    color: #64748b;
    font-size: 0.9rem;
}

.audit-access-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.audit-access-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #0d6efd;
    background: #eef5ff;
    border-radius: 8px;
    font-size: 1.5rem;
}

.audit-access-card h3 {
    margin: 0 0 4px;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 800;
}

.audit-access-card p {
    margin: 0;
    color: #64748b;
}

.audit-dashboard-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audit-dashboard-table .dashboard-row-actions form {
    margin: 0;
}

.audit-dashboard-progress {
    display: grid;
    gap: 7px;
    min-width: 120px;
}

.audit-dashboard-progress span {
    color: #334155;
    font-weight: 800;
}

.audit-dashboard-progress div {
    height: 8px;
    overflow: hidden;
    background: #e8eef8;
    border-radius: 999px;
}

.audit-dashboard-progress i {
    display: block;
    height: 100%;
    background: #0d6efd;
    border-radius: inherit;
}

.audit-report-body {
    min-height: 100vh;
    margin: 0;
    color: #111827;
    background: #e9eef6;
    font-family: Arial, sans-serif;
}

.audit-report-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #dbe5f2;
    backdrop-filter: blur(10px);
}

.audit-report-toolbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.audit-report-toolbar-button.is-primary {
    color: #ffffff;
    background: #0d6efd;
    border-color: #0d6efd;
}

.audit-report-page {
    width: 210mm;
    min-height: 297mm;
    margin: 22px auto;
    padding: 14mm;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.audit-report-cover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding-bottom: 16px;
    border-bottom: 2px solid #0d6efd;
}

.audit-report-kicker {
    display: block;
    color: #0d6efd;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.audit-report-cover h1 {
    margin: 5px 0;
    color: #0f172a;
    font-size: 2rem;
    font-weight: 900;
}

.audit-report-cover p {
    margin: 0;
    color: #475569;
    font-size: 1rem;
    font-weight: 700;
}

.audit-report-status {
    min-width: 42mm;
    padding: 10px 12px;
    color: #0d6efd;
    background: #eef5ff;
    border: 1px solid #cfe1ff;
    border-radius: 8px;
}

.audit-report-status span,
.audit-report-summary-grid span,
.audit-report-result-grid span,
.audit-report-signatures span {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
}

.audit-report-status strong,
.audit-report-summary-grid strong,
.audit-report-result-grid strong,
.audit-report-signatures strong {
    display: block;
    margin-top: 4px;
    color: #111827;
    font-size: 0.94rem;
}

.audit-report-summary-grid,
.audit-report-result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
}

.audit-report-summary-grid > div,
.audit-report-result-grid > div {
    min-height: 52px;
    padding: 9px 10px;
    background: #f8fbff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
}

.audit-report-section {
    margin-top: 16px;
}

.audit-report-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.audit-report-section-head h2 {
    margin: 0;
    color: #111827;
    font-size: 1.08rem;
    font-weight: 900;
}

.audit-report-section-head span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
}

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

.audit-report-question {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 12px;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
}

.audit-report-question-title {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.audit-report-question-title > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #ffffff;
    background: #0d6efd;
    border-radius: 50%;
    font-size: 0.86rem;
    font-weight: 900;
}

.audit-report-question h3 {
    margin: 0;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.35;
}

.audit-report-question-title p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 0.8rem;
}

.audit-report-result {
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.audit-report-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.audit-report-detail-grid div {
    padding: 8px;
    background: #f8fbff;
    border-radius: 8px;
}

.audit-report-detail-grid dt {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.audit-report-detail-grid dd {
    margin: 3px 0 0;
    color: #111827;
    font-size: 0.84rem;
    font-weight: 800;
}

.audit-report-note {
    margin-top: 8px;
    padding: 9px 10px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 8px;
}

.audit-report-note strong {
    display: block;
    margin-bottom: 3px;
    color: #334155;
    font-size: 0.78rem;
}

.audit-report-note p {
    margin: 0;
    color: #111827;
    font-size: 0.86rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.audit-report-linked-records {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.audit-report-linked-records span {
    padding: 6px 8px;
    color: #0d6efd;
    background: #eef5ff;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
}

.audit-report-signatures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.audit-report-signatures div {
    min-height: 82px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.audit-report-signatures strong {
    margin-top: 30px;
    border-top: 1px solid #94a3b8;
    padding-top: 7px;
}

.audit-report-empty {
    padding: 18px;
    color: #64748b;
    background: #f8fbff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    text-align: center;
    font-weight: 800;
}

.audit-progress-card,
.audit-question-card,
.audit-history-card,
.audit-action-bar {
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.audit-progress-card {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    padding: 18px 22px;
}

.audit-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #64748b;
    font-size: 0.92rem;
}

.audit-progress-meta strong {
    color: #334155;
}

.audit-progress-track {
    height: 8px;
    background: #e8eef8;
    border-radius: 999px;
    overflow: hidden;
}

.audit-progress-track span {
    display: block;
    height: 100%;
    background: #0d6efd;
    border-radius: inherit;
    transition: width 0.2s ease;
}

.audit-flow-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 20px;
    align-items: start;
    padding-bottom: 90px;
}

.audit-question-card {
    padding: 20px;
}

.audit-question-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.audit-section-label {
    color: #111827;
    font-weight: 800;
}

.audit-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 8px;
    color: #ffffff;
    background: #0d6efd;
    border-radius: 50%;
    font-weight: 800;
}

.audit-required-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1e3a8a;
    font-weight: 800;
}

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

.audit-question-card .form-label {
    color: #172033;
    font-weight: 800;
}

.audit-question-card .form-control,
.audit-question-card .form-select {
    min-height: 44px;
    border-color: #d8e2ef;
    border-radius: 8px;
}

.audit-current-question {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    margin: 20px 0;
    padding: 28px;
    background: #f8fbff;
    border: 1px solid #cfe1ff;
    border-radius: 8px;
}

.audit-question-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #0d6efd;
    background: #ffffff;
    border: 2px solid #0d6efd;
    border-radius: 50%;
    font-size: 1.3rem;
}

.audit-current-question h3 {
    margin: 2px 0 24px;
    color: #0f1f44;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.45;
}

.audit-current-question-body {
    min-width: 0;
}

.audit-expected-answer {
    margin: -6px 0 20px;
    padding: 14px 16px;
    color: #0f5132;
    background: #eaf8f0;
    border: 1px solid #bfe8d1;
    border-radius: 8px;
}

.audit-expected-answer strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.audit-expected-answer p {
    margin: 0;
    color: #14532d;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.audit-answer-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.audit-answer-label {
    grid-column: 1 / -1;
    color: #172033;
    font-weight: 800;
}

.audit-answer-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    min-height: 58px;
    padding: 13px 14px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    cursor: pointer;
}

.audit-answer-option.audit-tone-success {
    background: #f6fffb;
    border-color: #bdebd2;
}

.audit-answer-option.audit-tone-warning {
    background: #fffaf0;
    border-color: #f8d99a;
}

.audit-answer-option.audit-tone-danger {
    background: #fff6f6;
    border-color: #f4b8be;
}

.audit-answer-option strong {
    min-width: 0;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.audit-answer-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.audit-answer-option > span {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
}

.audit-locked-field {
    color: #334155;
    background: #f8fbff;
    font-weight: 700;
}

.audit-answer-option.is-selected {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.audit-answer-option.is-selected > span {
    border-color: currentColor;
    background: currentColor;
    box-shadow: inset 0 0 0 4px #ffffff;
}

.audit-answer-option.audit-tone-success.is-selected {
    color: #198754;
    border-color: #28a866;
}

.audit-answer-option.audit-tone-danger.is-selected {
    color: #dc3545;
    border-color: #dc3545;
}

.audit-answer-option.audit-tone-warning.is-selected {
    color: #b77900;
    border-color: #f0ad2c;
}

.audit-answer-option.audit-tone-secondary.is-selected {
    color: #64748b;
    border-color: #94a3b8;
}

.audit-textarea-field {
    position: relative;
}

.audit-textarea-field textarea {
    min-height: 96px;
    padding-bottom: 28px;
    resize: vertical;
}

.audit-counter {
    position: absolute;
    right: 12px;
    bottom: 8px;
    color: #64748b;
    font-size: 0.78rem;
    pointer-events: none;
}

.audit-history-card {
    padding: 20px;
}

.audit-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.audit-history-head h3 {
    margin: 0;
    color: #111827;
    font-size: 1.08rem;
    font-weight: 800;
}

.audit-history-head p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 0.86rem;
}

.audit-history-head > span {
    flex: 0 0 auto;
    padding: 8px 10px;
    color: #334155;
    background: #f8fbff;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 800;
}

.audit-history-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.audit-history-list a {
    display: grid;
    grid-template-columns: 30px 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 66px;
    padding: 10px;
    color: #334155;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
}

.audit-history-list li.is-active a {
    background: #eef5ff;
    border-color: #bfdbfe;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.08);
}

.audit-history-state,
.audit-history-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
}

.audit-history-state {
    width: 26px;
    height: 26px;
    color: #94a3b8;
    border: 1px solid #cbd5e1;
}

.audit-history-list li.is-complete .audit-history-state {
    color: #198754;
    border-color: #28a866;
}

.audit-history-list li.is-active .audit-history-state {
    color: #ffffff;
    background: #0d6efd;
    border-color: #0d6efd;
}

.audit-history-number {
    width: 40px;
    height: 40px;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.audit-history-text {
    display: -webkit-box;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.audit-history-result {
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.audit-history-list small {
    grid-column: 3 / -1;
    margin-top: -4px;
    color: #64748b;
    font-size: 0.76rem;
}

.audit-tone-success {
    color: #198754;
    background: #e7f7eb;
}

.audit-tone-danger {
    color: #dc3545;
    background: #fff0f1;
}

.audit-tone-warning {
    color: #b77900;
    background: #fff6df;
}

.audit-tone-secondary {
    color: #64748b;
    background: #f1f5f9;
}

.audit-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 15;
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1fr);
    gap: 16px;
    margin: 20px -32px -34px;
    padding: 16px 32px;
    border-radius: 0;
}

.audit-action-bar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    border-radius: 8px;
    font-weight: 800;
}

.audit-nonconformity-button.is-urgent {
    color: #ffffff;
    background: #fd7e14;
    border-color: #fd7e14;
    box-shadow: 0 10px 24px rgba(253, 126, 20, 0.2);
}

.audit-nonconformity-button.is-hidden {
    display: none;
}

.audit-builder-form {
    display: grid;
    gap: 18px;
}

.audit-builder-card {
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.audit-builder-card .form-label {
    color: #172033;
    font-weight: 800;
}

.audit-builder-card .form-control,
.audit-builder-card .form-select {
    min-height: 44px;
    border-color: #d8e2ef;
    border-radius: 8px;
}

.audit-builder-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.audit-question-count-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.audit-question-count-control .btn,
.audit-builder-section-head .btn,
.audit-builder-question-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    font-weight: 800;
}

.audit-builder-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.audit-builder-section-head h3 {
    margin: 0;
    color: #111827;
    font-size: 1.18rem;
    font-weight: 800;
}

.audit-builder-section-head p {
    margin: 4px 0 0;
    color: #64748b;
}

.audit-builder-question-list {
    display: grid;
    gap: 14px;
}

.audit-builder-question {
    padding: 18px;
    background: #fbfdff;
    border: 1px solid #dfe8f4;
    border-radius: 8px;
}

.audit-builder-question-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.audit-builder-question-head strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-size: 1rem;
}

.audit-builder-question-head strong span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #ffffff;
    background: #0d6efd;
    border-radius: 50%;
    font-size: 0.85rem;
}

.audit-builder-question-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.audit-builder-question-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.audit-builder-question-text {
    grid-column: 1 / -1;
}

.audit-builder-question textarea {
    min-height: 92px;
    resize: vertical;
}

.app-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e7edf5;
}

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

.permission-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    min-height: 86px;
    padding: 14px;
    background: #f8fbff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    cursor: pointer;
}

.permission-card:hover {
    border-color: #b8d3ff;
    background: #f3f8ff;
}

.permission-card .form-check-input {
    margin-top: 3px;
}

.permission-card strong,
.permission-card small {
    display: block;
}

.permission-card strong {
    color: #172033;
    font-weight: 800;
}

.permission-card small {
    margin-top: 3px;
    color: #64748b;
    line-height: 1.35;
}

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

.detail-metric-card {
    display: grid;
    gap: 8px;
    min-height: 96px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.detail-metric-card span {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
}

.detail-metric-card strong {
    color: #111827;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.detail-metric-danger {
    border-left: 5px solid #dc3545;
}

.app-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

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

.evidence-item {
    padding: 14px;
    background: #f8fbff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
}

.evidence-item-wide {
    grid-column: 1 / -1;
}

.evidence-item span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
}

.evidence-item p {
    margin: 0;
    overflow-wrap: anywhere;
}

.evidence-danger {
    background: #fff7f8;
    border-color: #fac5cb;
}

.closure-review-box {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding: 16px;
    background: #fbfcfe;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
}

.comment-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.comment-item {
    padding: 14px;
    background: #f8fbff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
}

.comment-item > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-item small {
    color: #64748b;
}

.comment-item p {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (min-width: 992px) {
    .dashboard-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
    }

    .dashboard-topbar-mobile-only {
        display: none;
    }
}

.timeline-item {
    border-left: 4px solid #0d6efd;
    padding-left: 14px;
}

.org-fullscreen {
    min-height: calc(100vh - 57px);
    background: #eef3f8;
}

.app-org-panel {
    min-height: calc(100vh - 218px);
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.app-org-panel .org-shell {
    min-height: calc(100vh - 292px);
}

.dashboard-content-flush .app-org-panel {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.dashboard-content-flush .app-org-panel .org-shell {
    height: calc(100vh - 65px);
    min-height: calc(100vh - 65px);
}

.dashboard-content-flush .org-map {
    min-height: 100%;
}

.org-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid #dce5ef;
}

.org-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.org-zoom-control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
    padding: 4px 8px;
    background: #f8fafc;
    border: 1px solid #dce5ef;
    border-radius: 8px;
}

.org-zoom-range {
    width: 130px;
}

.org-zoom-value {
    min-width: 42px;
    color: #46556a;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: right;
}

.org-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    min-height: calc(100vh - 138px);
}

.org-map {
    position: relative;
    overflow: hidden;
    background-color: #f8fbff;
    background-image:
        linear-gradient(#e5edf6 1px, transparent 1px),
        linear-gradient(90deg, #e5edf6 1px, transparent 1px);
    background-size: 28px 28px;
    cursor: grab;
    user-select: none;
}

.org-map:active {
    cursor: grabbing;
}

.org-canvas {
    position: absolute;
    left: 0;
    top: 0;
    min-width: 1800px;
    min-height: 1100px;
    transform-origin: 0 0;
}

.org-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.org-line {
    fill: none;
    stroke: #6b7f97;
    stroke-width: 3;
    stroke-linecap: round;
}

.org-node {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 240px;
    min-height: 104px;
    padding: 13px 15px;
    color: #172033;
    text-align: left;
    background: #ffffff;
    border: 1px solid #d6e0ec;
    border-top: 5px solid #0d6efd;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(27, 39, 59, 0.14);
    cursor: grab;
    touch-action: none;
}

.org-node:active {
    cursor: grabbing;
}

.org-node.is-selected {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.18), 0 18px 40px rgba(27, 39, 59, 0.18);
}

.org-node-department {
    min-height: 42px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-block: 7px;
    background: #ffffff;
    border-color: #d6e0ec;
    border-top-color: var(--org-node-color, #198754);
    box-shadow: 0 9px 20px rgba(27, 39, 59, 0.1);
}

.org-node-name {
    font-weight: 800;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.org-node-title {
    color: #637083;
    font-size: 0.9rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.org-node-count {
    align-self: flex-start;
    margin-top: 3px;
    padding: 3px 8px;
    color: #28425f;
    background: #eaf2ff;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.org-node-department .org-node-count {
    margin-top: 0;
    color: #14532d;
    background: #dcfce7;
    white-space: nowrap;
}

.org-snap-guide {
    position: absolute;
    z-index: 4;
    display: none;
    pointer-events: none;
    background: #0d6efd;
    opacity: 0.7;
}

.org-snap-guide.is-visible {
    display: block;
}

.org-snap-guide-v {
    top: 0;
    width: 2px;
}

.org-snap-guide-h {
    left: 0;
    height: 2px;
}

.org-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: min(360px, calc(100% - 48px));
    padding: 24px;
    color: #637083;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #b9c6d8;
    border-radius: 8px;
    transform: translate(-50%, -50%);
}

.org-inspector {
    padding: 18px;
    background: #ffffff;
    border-left: 1px solid #dce5ef;
    overflow-y: auto;
}

.orientation-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.orientation-stage,
.orientation-panel {
    background: #ffffff;
    border: 1px solid #dee5ef;
    border-radius: 8px;
}

.orientation-stage {
    overflow: hidden;
}

.orientation-scroll {
    min-height: 660px;
    max-height: calc(100vh - 230px);
    overflow: auto;
    scroll-behavior: smooth;
    background-color: #f8fafc;
    background-image:
        linear-gradient(#e8edf5 1px, transparent 1px),
        linear-gradient(90deg, #e8edf5 1px, transparent 1px);
    background-size: 32px 32px;
}

.orientation-zoom-space {
    position: relative;
    min-width: 100%;
    min-height: 100%;
}

.orientation-board {
    position: relative;
    min-width: 1200px;
    min-height: 760px;
    transform-origin: 0 0;
}

.orientation-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.orientation-line {
    fill: none;
    stroke: #5f748d;
    stroke-width: 3;
    stroke-linecap: round;
}

.orientation-node {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 220px;
    min-height: 88px;
    padding: 12px 14px;
    color: #172033;
    text-align: left;
    background: #ffffff;
    border: 1px solid #d8e1ee;
    border-left: 6px solid #0d6efd;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(23, 32, 51, 0.12);
    cursor: grab;
    touch-action: none;
}

.orientation-node-department {
    min-height: 46px;
    justify-content: center;
    background: #ffffff;
    border-color: color-mix(in srgb, var(--orientation-node-color, #198754) 45%, #d6e0ec);
    border-left-color: var(--orientation-node-color, #198754);
}

.orientation-zoom-label {
    min-width: 68px;
    color: #172033;
    opacity: 1;
}

.orientation-node:active {
    cursor: grabbing;
}

.orientation-node.is-selected {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.16), 0 16px 34px rgba(23, 32, 51, 0.16);
}

.orientation-node-name {
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.orientation-node-title {
    color: #637083;
    font-size: 0.92rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.orientation-node-count {
    align-self: flex-start;
    margin-top: 4px;
    padding: 3px 8px;
    color: #14532d;
    background: #dcfce7;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
}

.orientation-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: min(360px, calc(100% - 48px));
    padding: 24px;
    color: #637083;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #b9c6d8;
    border-radius: 8px;
    transform: translate(-50%, -50%);
}

.orientation-panel {
    position: sticky;
    top: 86px;
    padding: 18px;
}

@media print {
    @page {
        size: A4;
        margin: 10mm;
    }

    html,
    body.audit-report-body {
        width: 210mm;
        min-height: 297mm;
        background: #ffffff !important;
    }

    .audit-report-toolbar {
        display: none !important;
    }

    .audit-report-page {
        width: auto;
        min-height: auto;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .audit-report-question,
    .audit-report-section,
    .audit-report-signatures {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .audit-report-question {
        margin-bottom: 8px;
    }

    .audit-report-cover {
        padding-top: 0;
    }

    .audit-report-summary-grid > div,
    .audit-report-result-grid > div,
    .audit-report-detail-grid div,
    .audit-report-note,
    .audit-report-question,
    .audit-report-signatures div {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

@media (max-width: 576px) {
    .metric-box strong {
        font-size: 1.6rem;
    }

    .notification-menu {
        width: calc(100vw - 24px);
        min-width: 0;
    }
}

@media (max-width: 992px) {
    .login-shell {
        padding: 24px;
    }

    .dashboard-app {
        display: block;
    }

    .dashboard-sidebar .offcanvas-body {
        min-height: auto;
    }

    .dashboard-topbar {
        padding: 0 18px;
    }

    .dashboard-content {
        padding: 20px 18px 28px;
    }

    .dashboard-content-flush {
        min-height: calc(100vh - 64px);
        padding: 0;
    }

    .dashboard-content-flush .app-org-panel {
        min-height: calc(100vh - 64px);
    }

    .dashboard-content-flush .app-org-panel .org-shell {
        height: auto;
        min-height: auto;
    }

    .dashboard-topbar-actions {
        gap: 8px;
    }

    .dashboard-topbar-actions .btn span:not(.badge),
    .dashboard-profile-button span.d-none {
        display: none !important;
    }

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

    .dof-dashboard-metrics,
    .audit-dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dof-dashboard-table {
        table-layout: auto;
    }

    .dof-dashboard-table thead {
        display: none;
    }

    .dof-dashboard-table,
    .dof-dashboard-table tbody,
    .dof-dashboard-table tr,
    .dof-dashboard-table td {
        display: block;
        width: 100% !important;
    }

    .dof-dashboard-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .dof-dashboard-table tbody tr {
        padding: 12px;
        background: #ffffff;
        border: 1px solid #e2e9f3;
        border-radius: 8px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

    .dof-dashboard-table tbody td {
        display: grid;
        grid-template-columns: minmax(120px, 34%) minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 10px 0;
        border-bottom: 1px solid #edf2f7;
    }

    .dof-dashboard-table tbody td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 0.8rem;
        font-weight: 800;
    }

    .dof-dashboard-table tbody td:last-child {
        border-bottom: 0;
    }

    .dof-dashboard-table .dashboard-action-title-cell {
        min-width: 0;
    }

    .dof-dashboard-table .dashboard-row-actions {
        justify-content: flex-start;
    }

    .dof-dashboard-table .dashboard-empty-row::before {
        display: none;
    }

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

    .dashboard-filter-actions {
        grid-column: 1 / -1;
    }

    .app-heading-actions {
        justify-content: flex-start;
    }

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

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

    .dof-detail-layout {
        grid-template-columns: 1fr;
    }

    .app-inline-form {
        grid-template-columns: 1fr;
    }

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

    .dof-layout {
        grid-template-columns: 1fr;
    }

    .audit-flow-layout {
        grid-template-columns: 1fr;
    }

    .audit-builder-main-grid,
    .audit-builder-question-grid {
        grid-template-columns: 1fr;
    }

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

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

    .action-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .action-row-actions {
        align-items: stretch;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .action-row-actions .dropdown,
    .action-row-actions .btn,
    .action-row-actions .dropdown-toggle {
        flex: 1 1 150px;
    }

    .org-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .org-toolbar-actions {
        justify-content: flex-start;
    }

    .org-shell {
        grid-template-columns: 1fr;
    }

    .org-map {
        min-height: 620px;
    }

    .app-org-panel,
    .app-org-panel .org-shell {
        min-height: auto;
    }

    .org-inspector {
        border-left: 0;
        border-top: 1px solid #dce5ef;
    }

    .orientation-workspace {
        grid-template-columns: 1fr;
    }

    .orientation-panel {
        position: static;
    }

    .orientation-scroll {
        min-height: 520px;
        max-height: none;
    }
}

@media (max-width: 576px) {
    .login-shell {
        padding: 18px;
    }

    .login-card {
        padding: 22px;
    }

    .login-card-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-topbar {
        min-height: 66px;
        padding: 0 12px;
    }

    .dashboard-topbar-title {
        font-size: 1.05rem;
    }

    .dashboard-topbar-actions .btn,
    .dashboard-profile-button {
        min-width: 40px;
        min-height: 40px;
        padding-inline: 10px;
    }

    .dashboard-page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-page-heading h2 {
        font-size: 1.65rem;
    }

    .dashboard-page-heading .btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard-metrics,
    .dof-dashboard-metrics,
    .audit-dashboard-metrics,
    .dashboard-filter-grid,
    .app-form-grid,
    .audit-question-fields,
    .audit-detail-grid,
    .dof-grid,
    .dof-two-column,
    .detail-metrics,
    .dof-detail-info-grid,
    .evidence-grid {
        grid-template-columns: 1fr;
    }

    .app-card,
    .app-form-card,
    .dof-form-card,
    .dof-side-card {
        padding: 18px;
    }

    .audit-question-card,
    .audit-history-card,
    .audit-builder-card {
        padding: 18px;
    }

    .audit-current-question {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .audit-access-card {
        grid-template-columns: 1fr;
    }

    .audit-answer-options {
        grid-template-columns: 1fr;
    }

    .audit-progress-meta,
    .audit-question-head,
    .audit-history-head,
    .audit-builder-section-head,
    .audit-builder-question-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .audit-builder-question-actions,
    .audit-question-count-control {
        width: 100%;
    }

    .audit-builder-question-actions .btn,
    .audit-question-count-control .btn {
        width: 100%;
    }

    .audit-history-list a {
        grid-template-columns: 28px 38px minmax(0, 1fr);
    }

    .audit-history-result {
        grid-column: 3 / -1;
        justify-self: start;
    }

    .audit-action-bar {
        grid-template-columns: 1fr;
        margin-inline: -12px;
        padding: 12px;
    }

    .app-card-header {
        flex-direction: column;
    }

    .app-file-box {
        grid-template-columns: 1fr;
    }

    .app-heading-actions,
    .app-form-actions {
        flex-direction: column;
    }

    .app-heading-actions .btn,
    .app-heading-actions form,
    .app-form-actions .btn,
    .app-inline-form .btn {
        width: 100%;
    }

    .dof-detail-info-card,
    .dof-detail-content-card {
        grid-template-columns: 1fr;
    }

    .dof-dashboard-table tbody td {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .dof-detail-content-icon {
        width: 50px;
        height: 50px;
    }

    .dashboard-stat-card {
        min-height: 104px;
        padding: 18px;
    }

    .dashboard-filter-actions {
        flex-direction: column;
    }

    .dashboard-filter-actions .btn {
        width: 100%;
    }

    .dashboard-table thead th,
    .dashboard-table tbody td {
        padding: 14px 16px;
    }

    .dashboard-row-actions {
        justify-content: flex-start;
    }

    .actions-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .action-list {
        padding: 10px;
    }

    .action-row {
        padding: 14px;
    }

    .action-row-actions {
        flex-direction: column;
    }

    .org-toolbar {
        padding: 12px;
    }

    .org-toolbar-actions,
    .org-zoom-control {
        width: 100%;
    }

    .org-zoom-control {
        min-width: 0;
    }

    .org-zoom-range {
        flex: 1;
        width: auto;
    }

    .org-node {
        width: 220px;
    }

    .orientation-node {
        width: 210px;
    }

    .orientation-scroll {
        min-height: 460px;
    }
}
