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

body {
    background: var(--vp-background);
    color: var(--vp-text-primary);
    font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* VolkaPortal shared component layer. Keep module-specific classes for behavior,
   but route new/updated templates through these visual primitives. */
.app-page-header,
.app-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.app-page-title {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    gap: 14px;
}

.app-page-title > div {
    min-width: 0;
}

.app-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    color: var(--vp-blue);
    background: color-mix(in srgb, var(--vp-blue) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--vp-blue) 18%, var(--vp-border));
    border-radius: var(--vp-radius-card);
    font-size: 1.35rem;
}

.app-page-header h2,
.app-section-header h3 {
    margin: 0;
    color: var(--vp-text-primary);
    font-weight: 850;
    letter-spacing: 0;
}

.app-page-header h2 {
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1.15;
}

.app-section-header h3 {
    font-size: 1rem;
    line-height: 1.25;
}

.app-page-header p,
.app-section-header p {
    margin: 6px 0 0;
    color: var(--vp-text-secondary);
    font-weight: 600;
}

.app-page-actions,
.app-section-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-company-switcher {
    min-width: 240px;
}

.dashboard-company-switcher .form-select {
    min-height: 44px;
    border-color: color-mix(in srgb, var(--vp-blue) 24%, var(--vp-border));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
    font-weight: 700;
}

.app-section-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--vp-border);
}

.app-component-card-header {
    align-items: flex-start;
}

.app-component-card-header .app-card-icon {
    flex: 0 0 auto;
}

.vp-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.vp-status-badge i {
    flex: 0 0 auto;
    font-size: 0.86rem;
    line-height: 1;
}

.vp-status-badge span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vp-status-badge.is-long {
    max-width: 260px;
}

.vp-status-success {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.vp-status-info,
.vp-status-blue {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.vp-status-amber {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

.vp-status-warning {
    color: #c2410c;
    background: #fff7ed;
    border-color: #fed7aa;
}

.vp-status-purple {
    color: #6d28d9;
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.vp-status-danger {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.vp-status-muted {
    color: #475569;
    background: #f8fafc;
    border-color: #e2e8f0;
}

@media (max-width: 576px) {
    .vp-status-badge.is-long {
        max-width: 180px;
    }
}

.documents-page-heading {
    align-items: flex-start;
}

.documents-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: #64748b;
    font-size: 0.92rem;
}

.documents-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.documents-breadcrumb a:hover {
    color: #0d6efd;
}

.documents-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 34px;
}

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

.documents-summary-card::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    background: currentColor;
}

.documents-summary-icon {
    grid-row: 1 / span 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 12px;
    font-size: 2rem;
    background: color-mix(in srgb, currentColor 14%, #ffffff);
}

.documents-summary-label {
    align-self: end;
    color: #334155;
    font-size: 0.96rem;
    font-weight: 700;
}

.documents-summary-card strong {
    color: currentColor;
    font-size: 2rem;
    line-height: 1;
}

.documents-summary-card small {
    color: #64748b;
    font-size: 0.84rem;
}

.document-summary-blue {
    color: #0d6efd;
}

.document-summary-green {
    color: #16a34a;
}

.document-summary-orange {
    color: #f59e0b;
}

.document-summary-purple {
    color: #7c3aed;
}

.document-summary-slate {
    color: #64748b;
}

.documents-section {
    margin-bottom: 34px;
}

.documents-section h3,
.documents-card-header h3 {
    margin: 0;
    color: #172033;
    font-size: 1.16rem;
    font-weight: 800;
}

.documents-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 18px;
}

.documents-category-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 38px;
    grid-template-rows: auto 1fr auto;
    gap: 14px 18px;
    min-height: 178px;
    padding: 22px;
    color: #172033;
    text-decoration: none;
    border: 1px solid color-mix(in srgb, currentColor 28%, #ffffff);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.documents-category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 82%, color-mix(in srgb, currentColor 16%, transparent) 0 26%, transparent 27%),
        linear-gradient(135deg, color-mix(in srgb, currentColor 10%, #ffffff), #ffffff 74%);
    opacity: 0.9;
    pointer-events: none;
}

.documents-category-card > * {
    position: relative;
}

.documents-category-card:hover {
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.documents-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: currentColor;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid color-mix(in srgb, currentColor 24%, #ffffff);
    border-radius: 50%;
    font-size: 1.7rem;
}

.documents-category-title {
    align-self: center;
    color: #172033;
    font-size: 1rem;
    font-weight: 800;
}

.documents-category-count {
    grid-column: 1 / 3;
    align-self: end;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.documents-category-count strong {
    color: #0f2442;
    font-size: 2rem;
    line-height: 1;
}

.documents-category-count span,
.documents-category-date {
    color: #475569;
    font-size: 0.86rem;
}

.documents-category-date {
    grid-column: 1 / 3;
}

.documents-category-arrow {
    grid-column: 3;
    grid-row: 3;
    align-self: end;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: currentColor;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.documents-category-blue,
.documents-category-cyan {
    color: #0d6efd;
}

.documents-category-green,
.documents-category-lime {
    color: #16a34a;
}

.documents-category-orange,
.documents-category-amber {
    color: #f59e0b;
}

.documents-category-red {
    color: #ef4444;
}

.documents-category-purple {
    color: #7c3aed;
}

.documents-table-card,
.documents-form-card,
.documents-preview-card,
.documents-side-card,
.documents-detail-card {
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.documents-table-card {
    overflow: hidden;
}

.documents-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 0 22px;
    border-bottom: 1px solid #e8eef6;
}

.documents-card-header a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    font-weight: 800;
    text-decoration: none;
}

.documents-card-header span {
    color: #64748b;
    font-size: 0.9rem;
}

.documents-table {
    width: 100%;
    min-width: 1180px;
    table-layout: fixed;
}

.documents-table th,
.documents-table td {
    padding: 14px 16px;
    overflow: hidden;
    color: #172033;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    border-color: #e8eef6;
}

.documents-table td:first-child {
    min-width: 0;
    white-space: nowrap;
}

.documents-table th {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 800;
}

.documents-table th:nth-child(1),
.documents-table td:nth-child(1) {
    width: 82px;
}

.documents-table th:nth-child(2),
.documents-table td:nth-child(2) {
    width: 130px;
}

.documents-table th:nth-child(3),
.documents-table td:nth-child(3) {
    width: 25%;
}

.documents-table th:nth-child(4),
.documents-table td:nth-child(4) {
    width: 150px;
}

.documents-table th:nth-child(5),
.documents-table td:nth-child(5) {
    width: 90px;
}

.documents-table th:nth-child(6),
.documents-table td:nth-child(6) {
    width: 120px;
}

.documents-table th:nth-child(7),
.documents-table td:nth-child(7) {
    width: 136px;
}

.documents-table th:nth-last-child(1),
.documents-table td:nth-last-child(1) {
    width: 174px;
}

.documents-title-cell a {
    display: block;
    color: #0d6efd;
    font-weight: 800;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.documents-title-cell span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.86rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-file-type,
.document-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
}

.document-file-icon-only {
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-size: 0.92rem;
}

.document-file-type-pdf {
    color: #dc2626;
    background: #fee2e2;
}

.document-file-type-word {
    color: #2563eb;
    background: #dbeafe;
}

.document-file-type-excel {
    color: #16a34a;
    background: #dcfce7;
}

.document-file-type-ppt {
    color: #ea580c;
    background: #ffedd5;
}

.document-file-type-image,
.document-file-type-file {
    color: #64748b;
    background: #f1f5f9;
}

.documents-list-card {
    padding: 26px;
    overflow: hidden;
}

.documents-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
}

.documents-list-title {
    display: flex;
    align-items: center;
    min-width: 240px;
    gap: 16px;
}

.documents-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
    font-size: 1.55rem;
}

.documents-list-title h2 {
    margin: 0;
    color: #0f1f3d;
    font-size: 1.58rem;
    font-weight: 760;
    letter-spacing: 0;
}

.documents-list-title p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 560;
}

.documents-list-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.documents-list-search {
    flex: 1 1 320px;
    max-width: 430px;
}

.documents-list-search .form-control,
.documents-list-select,
.documents-filter-button,
.documents-clear-button,
.documents-new-button {
    min-height: 44px;
    border-radius: 8px;
}

.documents-list-select {
    width: 170px;
    font-weight: 620;
}

.documents-clear-button {
    width: 44px;
    padding-left: 0;
    padding-right: 0;
}

.documents-list-table-wrap {
    border: 1px solid #e3ebf6;
    border-radius: 14px;
    overflow: auto;
}

.documents-list-table {
    min-width: 1460px;
}

.documents-list-table th,
.documents-list-table td {
    padding: 16px 18px;
}

.documents-list-table th {
    color: #40506f;
    background: #f8fbff;
    font-size: 0.76rem;
    text-transform: uppercase;
}

.documents-list-table tbody tr {
    transition: background 0.16s ease;
}

.documents-list-table tbody tr:hover {
    background: #f8fbff;
}

.documents-list-table th:nth-child(1),
.documents-list-table td:nth-child(1) {
    width: 86px;
}

.documents-list-table th:nth-child(2),
.documents-list-table td:nth-child(2) {
    width: 140px;
}

.documents-list-table th:nth-child(3),
.documents-list-table td:nth-child(3) {
    width: 260px;
}

.documents-list-table th:nth-child(4),
.documents-list-table td:nth-child(4) {
    width: 170px;
}

.documents-list-table th:nth-child(5),
.documents-list-table td:nth-child(5) {
    width: 86px;
    text-align: center;
}

.documents-list-table th:nth-child(6),
.documents-list-table td:nth-child(6),
.documents-list-table th:nth-child(7),
.documents-list-table td:nth-child(7) {
    width: 130px;
}

.documents-list-table th:nth-child(8),
.documents-list-table td:nth-child(8) {
    width: 122px;
}

.documents-list-table th:nth-child(9),
.documents-list-table td:nth-child(9) {
    width: 150px;
}

.documents-list-table th:nth-child(10),
.documents-list-table td:nth-child(10) {
    width: 340px;
    text-align: right;
}

.documents-file-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 48px;
    height: 52px;
    gap: 4px;
    border: 1px solid color-mix(in srgb, currentColor 12%, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.documents-file-tile i {
    font-size: 1.05rem;
}

.documents-file-tile small {
    color: #334155;
    font-size: 0.64rem;
    font-weight: 760;
    line-height: 1;
}

.documents-category-pill,
.documents-date-cell,
.documents-department-cell {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 7px;
    color: #22314d;
    font-weight: 620;
}

.documents-category-pill {
    min-height: 28px;
    padding: 4px 10px;
    color: #244064;
    background: #f5f9ff;
    border: 1px solid #cfe0f8;
    border-radius: 999px;
}

.documents-category-pill i,
.documents-date-cell i {
    color: #2563eb;
    font-size: 0.74rem;
}

.documents-revision-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    color: #172033;
    background: #ffffff;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    font-weight: 720;
}

.documents-department-cell i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    color: #53637f;
    background: #f8fafc;
    border: 1px solid #dce6f2;
    border-radius: 8px;
}

.documents-list-table .documents-row-actions {
    justify-content: flex-end;
    gap: 8px;
}

.documents-list-table .documents-row-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
}

.documents-list-table .documents-row-actions form {
    display: inline-flex;
}

.documents-action-btn {
    --document-action-rgb: 37, 99, 235;
    --document-action-color: rgb(var(--document-action-rgb));
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--document-action-color);
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(var(--document-action-rgb), 0.72);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(var(--document-action-rgb), 0.08);
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.documents-action-btn i {
    font-size: 1.05rem;
    line-height: 1;
}

.documents-action-btn:hover,
.documents-action-btn:focus-visible {
    color: #ffffff;
    background: var(--document-action-color);
    border-color: var(--document-action-color);
    box-shadow: 0 12px 26px rgba(var(--document-action-rgb), 0.22);
    transform: translateY(-1px);
}

.documents-action-preview {
    --document-action-rgb: 37, 99, 235;
}

.documents-action-info {
    --document-action-rgb: 13, 148, 136;
}

.documents-action-download {
    --document-action-rgb: 124, 58, 237;
}

.documents-action-request {
    --document-action-rgb: 5, 150, 105;
}

.documents-action-revise {
    --document-action-rgb: 245, 158, 11;
}

.documents-action-edit {
    --document-action-rgb: 14, 165, 233;
}

.documents-action-archive {
    --document-action-rgb: 100, 116, 139;
}

.documents-action-delete {
    --document-action-rgb: 239, 68, 68;
}

.documents-revision-target {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 14px;
}

.documents-revision-target strong,
.documents-revision-target span {
    display: block;
}

.documents-revision-target strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 750;
}

.documents-revision-target span {
    margin-top: 3px;
    color: #64748b;
    font-size: 0.86rem;
}

.documents-revision-file-list {
    display: grid;
    gap: 10px;
}

.documents-revision-file {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: #17335f;
    text-decoration: none;
    background: #f8fbff;
    border: 1px solid #d8e6f8;
    border-radius: 10px;
}

.documents-revision-file:hover {
    color: #0d6efd;
    border-color: #9fc6ff;
}

.documents-revision-file span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.documents-revision-file small {
    color: #64748b;
    font-size: 0.78rem;
}

.documents-revision-approval .form-label {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
}

.documents-recent-table {
    min-width: 1100px;
}

.documents-recent-table th,
.documents-recent-table td {
    padding: 14px 16px;
}

.documents-recent-table th:nth-child(1),
.documents-recent-table td:nth-child(1) {
    width: 80px;
}

.documents-recent-table th:nth-child(2),
.documents-recent-table td:nth-child(2) {
    width: 130px;
}

.documents-recent-table th:nth-child(3),
.documents-recent-table td:nth-child(3) {
    width: 26%;
}

.documents-recent-table th:nth-child(4),
.documents-recent-table td:nth-child(4) {
    width: 160px;
}

.documents-recent-table th:nth-child(5),
.documents-recent-table td:nth-child(5) {
    width: 86px;
    text-align: center;
}

.documents-recent-table th:nth-child(6),
.documents-recent-table td:nth-child(6),
.documents-recent-table th:nth-child(7),
.documents-recent-table td:nth-child(7) {
    width: 130px;
}

.documents-recent-table th:nth-child(8),
.documents-recent-table td:nth-child(8) {
    width: 120px;
}

.documents-recent-table th:nth-child(9),
.documents-recent-table td:nth-child(9) {
    width: 300px;
    text-align: right;
}

.documents-recent-table .documents-row-actions {
    justify-content: flex-end;
    gap: 7px;
}

.documents-recent-table .documents-row-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
}

.document-status-success {
    color: #15803d;
    background: #dcfce7;
}

.document-status-warning {
    color: #b45309;
    background: #fef3c7;
}

.document-status-purple {
    color: #6d28d9;
    background: #ede9fe;
}

.document-status-muted {
    color: #475569;
    background: #e2e8f0;
}

.document-status-danger {
    color: #dc2626;
    background: #fee2e2;
}

.documents-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.documents-row-actions .btn,
.documents-row-actions form {
    display: inline-flex;
}

.documents-empty-row {
    height: 130px;
    text-align: center;
    white-space: normal !important;
}

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

.documents-empty-row span {
    margin-top: 4px;
    color: #64748b;
}

.documents-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.8fr) minmax(190px, 0.8fr) auto;
    gap: 18px;
    align-items: end;
}

.documents-form-card {
    padding: 24px;
}

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

.documents-upload-box input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.documents-upload-box label {
    display: grid;
    place-items: center;
    min-height: 160px;
    padding: 24px;
    color: #0d6efd;
    text-align: center;
    border: 2px dashed #b8c8df;
    border-radius: 8px;
    background: #f8fbff;
    cursor: pointer;
}

.documents-upload-box i {
    font-size: 2.3rem;
}

.documents-upload-box strong {
    color: #0d6efd;
    font-size: 1rem;
}

.documents-upload-box span,
.documents-upload-box small {
    color: #64748b;
}

.documents-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.documents-form-actions .btn,
.documents-side-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 8px;
}

.documents-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.documents-detail-card {
    display: grid;
    gap: 4px;
    min-height: 116px;
    padding: 18px;
}

.documents-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #0d6efd;
    background: #eef5ff;
    border-radius: 10px;
    font-size: 1.25rem;
}

.documents-detail-card small {
    color: #64748b;
    font-weight: 700;
}

.documents-detail-card strong {
    color: #172033;
    font-size: 0.98rem;
}

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

.documents-detail-heading {
    align-items: start;
}

.documents-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.documents-title-row h2 {
    margin: 0;
}

.documents-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #0d6efd;
    background: #eaf3ff;
    border: 1px solid #cfe1ff;
    border-radius: 50%;
    font-size: 1.55rem;
}

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

.documents-main-card-title h3 {
    margin: 0 0 18px;
    color: #172033;
    font-size: 1rem;
    font-weight: 900;
}

.documents-file-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid #dce6f4;
    border-radius: 8px 8px 0 0;
    background: #fbfdff;
}

.documents-file-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 8px;
    font-size: 2.35rem;
}

.documents-file-hero strong {
    display: block;
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.documents-file-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #64748b;
}

.documents-pdf-preview-shell {
    min-height: 640px;
    padding: 24px;
    background: #f3f7fc;
    border: 1px solid #dce6f4;
    border-top: 0;
    border-radius: 0 0 8px 8px;
}

.documents-preview-frame {
    display: block;
    width: 100%;
    min-height: 640px;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.documents-preview-image {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    padding: 18px;
}

.documents-preview-placeholder {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 560px;
    padding: 32px;
    color: #64748b;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #bfd3ee;
    border-radius: 8px;
}

.documents-preview-placeholder i {
    color: #0d6efd;
    font-size: 4rem;
}

.documents-preview-placeholder strong {
    color: #172033;
}

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

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

.documents-side-card h3 {
    margin: 0 0 14px;
    color: #172033;
    font-size: 1rem;
    font-weight: 800;
}

.documents-side-card p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
    white-space: pre-line;
}

.documents-file-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.documents-file-card strong {
    overflow-wrap: anywhere;
}

.documents-file-card small {
    color: #64748b;
}

.documents-info-list {
    display: grid;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    overflow: hidden;
}

.documents-info-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 54px;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e9f3;
}

.documents-info-list > div:last-child {
    border-bottom: 0;
}

.documents-info-list span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 800;
}

.documents-info-list i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #0d6efd;
    background: #eef5ff;
    border-radius: 8px;
}

.documents-info-list strong {
    color: #172033;
    font-size: 0.92rem;
    text-align: right;
}

.documents-note-card {
    background: #f4f8ff;
    border-color: #bcd6ff;
}

.documents-ack-card {
    display: grid;
    gap: 14px;
}

.documents-ack-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
}

.documents-ack-status i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #64748b;
    background: #eef2f7;
    border-radius: 999px;
    font-size: 1.2rem;
}

.documents-ack-status.success {
    color: #047857;
    background: #effdf5;
    border-color: #b8ecd1;
}

.documents-ack-status.success i {
    color: #059669;
    background: #dcfce7;
}

.documents-ack-status strong,
.documents-ack-status span {
    display: block;
}

.documents-ack-status span {
    color: #64748b;
    font-size: 0.84rem;
}

.documents-ack-form .btn {
    width: 100%;
}

.documents-ack-summary-link {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    color: #0d6efd;
    text-decoration: none;
    background: #f5f9ff;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
}

.documents-ack-summary-link:hover {
    color: #0b5ed7;
    background: #eef5ff;
}

.documents-ack-summary-link span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.documents-ack-summary-link small {
    color: #64748b;
}

.documents-side-actions {
    display: grid;
    gap: 10px;
}

.documents-side-actions form,
.documents-side-actions .btn {
    width: 100%;
}

.documents-ack-page-card {
    display: grid;
    gap: 20px;
}

.documents-ack-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.documents-ack-page-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 0.84rem;
    font-weight: 800;
}

.documents-ack-page-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 850;
}

.documents-ack-page-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.documents-ack-page-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #dbe7f5;
    border-radius: 999px;
}

.documents-ack-page-stats strong {
    color: #0f172a;
}

.documents-ack-person {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.documents-ack-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: #2563eb;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 850;
}

.documents-ack-avatar.pending {
    color: #475569;
    background: #e2e8f0;
}

.documents-ack-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.documents-ack-badge.success {
    color: #047857;
    background: #dcfce7;
    border: 1px solid #a7f3d0;
}

.documents-ack-badge.pending {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

@media (max-width: 1320px) {
    .documents-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

@media (max-width: 992px) {
    .documents-summary-grid,
    .documents-category-grid,
    .documents-detail-grid,
    .documents-form-grid,
    .documents-filter-grid,
    .documents-detail-layout {
        grid-template-columns: 1fr;
    }

    .documents-file-hero {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .documents-file-hero .dropdown {
        margin-left: 0 !important;
    }

    .documents-pdf-preview-shell {
        min-height: 420px;
        padding: 12px;
    }

    .documents-preview-frame,
    .documents-preview-placeholder {
        min-height: 420px;
    }

    .documents-info-list > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .documents-info-list strong {
        text-align: left;
    }

    .documents-table {
        min-width: 0;
    }

    .documents-table thead {
        display: none;
    }

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

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

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

    .documents-table tbody td {
        display: grid;
        grid-template-columns: minmax(130px, 34%) minmax(0, 1fr);
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid #edf2f7;
        white-space: normal;
    }

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

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

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

    .documents-list-card {
        padding: 16px;
    }

    .documents-list-header {
        align-items: stretch;
        flex-direction: column;
    }

    .documents-list-tools {
        justify-content: stretch;
    }

    .documents-list-search {
        max-width: none;
    }

    .documents-list-select,
    .documents-filter-button,
    .documents-new-button {
        flex: 1 1 180px;
    }

    .documents-list-table {
        min-width: 0;
    }

    .documents-list-table th,
    .documents-list-table td {
        text-align: left !important;
    }

    .documents-list-table .documents-row-actions {
        justify-content: flex-start;
    }

    .documents-recent-table {
        min-width: 0;
    }

    .documents-recent-table th,
    .documents-recent-table td {
        text-align: left !important;
    }

    .documents-recent-table .documents-row-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .documents-summary-card,
    .documents-category-card {
        grid-template-columns: 1fr;
    }

    .documents-category-count,
    .documents-category-date,
    .documents-category-arrow {
        grid-column: 1;
    }

    .documents-category-arrow {
        justify-self: start;
    }

    .documents-card-header,
    .documents-form-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .documents-card-header {
        padding: 16px;
    }

    .documents-form-actions .btn {
        width: 100%;
    }

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

    .documents-list-title {
        align-items: flex-start;
        min-width: 0;
    }

    .documents-list-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 1.28rem;
    }

    .documents-list-title h2 {
        font-size: 1.25rem;
    }

    .documents-list-select,
    .documents-filter-button,
    .documents-new-button,
    .documents-clear-button {
        flex-basis: 100%;
        width: 100%;
    }
}

.navbar-brand {
    color: #172033;
}

.navbar-brand-logo {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.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;
}

.notification-list-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    color: #152238;
    text-decoration: none;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 35, 70, 0.05);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.notification-list-card:hover {
    color: #152238;
    border-color: #8db7ff;
    box-shadow: 0 14px 30px rgba(15, 35, 70, 0.09);
    transform: translateY(-1px);
}

.notification-list-card.is-unread {
    border-left: 4px solid #0d6efd;
    background: linear-gradient(90deg, #f4f8ff 0%, #ffffff 34%);
}

.notification-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #dbe7f5;
    border-radius: 50%;
    background: #f8fbff;
    font-size: 1.15rem;
}

.notification-list-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.notification-list-body strong {
    color: #0f1f3a;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.notification-list-body small,
.notification-list-time {
    color: #60708a;
    font-size: 0.82rem;
}

.notification-list-time {
    white-space: nowrap;
}

@media (max-width: 720px) {
    .notification-list-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .notification-list-time {
        grid-column: 2;
        white-space: normal;
    }
}

.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;
    justify-content: center;
    gap: 14px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e7edf5;
}

.login-brand-logo {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.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;
    justify-content: center;
    gap: 14px;
    min-height: 112px;
    margin-bottom: 20px;
    color: #111827;
    font-size: 1.03rem;
}

.dashboard-brand-logo {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.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-nav-group {
    display: grid;
    gap: 4px;
}

.dashboard-nav-toggle {
    width: 100%;
    background: transparent;
    font: inherit;
    text-align: left;
}

.dashboard-nav-chevron {
    width: auto !important;
    margin-left: auto;
    font-size: 0.82rem !important;
    transition: transform 0.2s ease;
}

.dashboard-nav-toggle[aria-expanded="true"] .dashboard-nav-chevron {
    transform: rotate(180deg);
}

.dashboard-subnav {
    gap: 4px;
    padding: 4px 0 6px 38px;
}

.dashboard-subnav.collapse.show,
.dashboard-subnav.collapsing {
    display: grid;
}

.dashboard-subnav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 10px;
    color: #52627a;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
}

.dashboard-subnav-item-wrap {
    min-height: 44px;
    padding-block: 6px;
    line-height: 1.2;
}

.dashboard-nav-group-label {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-subnav-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    color: #64748b;
    font-size: 0.96rem;
}

.dashboard-subnav-item:hover,
.dashboard-subnav-item.active {
    color: #0d6efd;
    background: #f4f8ff;
    border-color: #dbeafe;
}

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

.dashboard-sidebar-bottom {
    display: grid;
    gap: 0;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e5ebf4;
}

.dashboard-sidebar-bottom .dashboard-sidebar-user {
    margin-top: 0;
}

.sidebar-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-bottom: 14px;
    padding: 0 12px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
}

.sidebar-quick-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    color: #52627a;
    font-size: 1.05rem;
}

.sidebar-quick-link:hover,
.sidebar-quick-link.active {
    color: #0d6efd;
    background: #eef5ff;
    border-color: #cfe1ff;
}

.sidebar-quick-link:hover i,
.sidebar-quick-link.active i {
    color: #0d6efd;
}

.assigned-sidebar-link span:not(.assigned-count-badge),
.notification-sidebar-link span:not(.sidebar-count-badge) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assigned-count-badge,
.sidebar-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-left: auto;
    padding: 0 7px;
    color: #0d6efd;
    background: #dbeafe;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.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;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    color: #334155;
    text-align: left;
    text-decoration: none;
    background: transparent;
    border-top: 1px solid #e5ebf4;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
}

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

.dashboard-logout-form {
    margin: 0;
}

.dashboard-main {
    min-width: 0;
    min-height: 100vh;
}

.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-mobile-menu-button {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1040;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.dashboard-content {
    padding: 34px 36px 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;
}

.quality-test-placeholder-card {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 180px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e1e8f2;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.quality-test-placeholder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    color: #0d6efd;
    background: #eef5ff;
    border: 1px solid #cfe1ff;
    border-radius: 8px;
    font-size: 1.8rem;
}

.quality-test-placeholder-card h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 800;
}

.quality-test-placeholder-card p {
    margin: 0;
    color: #64748b;
}

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

.quality-test-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(180px, 0.45fr)) auto;
    gap: 18px;
    align-items: end;
}

.quality-test-section-header,
.quality-test-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.quality-test-section-header {
    padding: 20px 22px;
    border-bottom: 1px solid #e1e8f2;
}

.quality-test-section-header h3,
.quality-test-form-header h3 {
    margin: 0;
    color: #111827;
    font-size: 1.1rem;
    font-weight: 800;
}

.quality-test-section-header p,
.quality-test-form-header p {
    margin: 4px 0 0;
    color: #64748b;
}

.quality-test-record-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    color: #0d6efd;
    background: #eef5ff;
    border: 1px solid #cfe1ff;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.quality-test-table {
    min-width: 1180px;
}

.quality-test-table td strong,
.quality-test-table td span {
    display: block;
}

.quality-test-record-title {
    color: #0d6efd;
    font-weight: 800;
    line-height: 1.3;
}

.quality-test-muted-line {
    margin-top: 5px;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.35;
}

.quality-strength-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quality-strength-values span {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 8px;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.quality-strength-values strong {
    color: #172033;
}

.quality-strength-pill.quality-strength-success {
    color: #047857;
    background: #dcfce7;
    border-color: #86efac;
}

.quality-strength-pill.quality-strength-warning {
    color: #b45309;
    background: #fef3c7;
    border-color: #fcd34d;
}

.quality-strength-pill.quality-strength-danger {
    color: #be123c;
    background: #ffe4e6;
    border-color: #fda4af;
}

.quality-strength-pill.quality-strength-muted {
    color: #64748b;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.quality-strength-pill.quality-strength-success strong,
.quality-strength-pill.quality-strength-warning strong,
.quality-strength-pill.quality-strength-danger strong,
.quality-strength-pill.quality-strength-muted strong {
    color: currentColor;
}

.quality-test-row-actions {
    min-width: 120px;
}

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

.quality-parameters-intro {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quality-parameters-intro h3 {
    margin: 0;
    color: #172033;
    font-size: 1.08rem;
    font-weight: 800;
}

.quality-parameters-intro p {
    margin: 4px 0 0;
    color: #64748b;
}

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

.quality-parameter-class-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: #f8fbff;
    border: 1px solid #dce8f6;
    border-radius: 8px;
}

.quality-parameter-class-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.quality-parameter-class-header span {
    color: #0d6efd;
    font-size: 1.18rem;
    font-weight: 900;
}

.quality-parameter-class-header small {
    color: #64748b;
    font-weight: 700;
}

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

.quality-parameter-fields label {
    display: grid;
    gap: 6px;
}

.quality-parameter-fields small {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.quality-parameter-rules {
    display: grid;
    gap: 12px;
}

.quality-parameter-rule {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
}

.quality-parameter-rule-success {
    border-left: 4px solid #22c55e;
}

.quality-parameter-rule-warning {
    border-left: 4px solid #f59e0b;
}

.quality-parameter-rule-danger {
    border-left: 4px solid #ef4444;
}

.quality-parameter-rule-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quality-parameter-rule-grid {
    display: grid;
    grid-template-columns: 1.15fr minmax(0, 0.9fr) minmax(0, 0.9fr);
    gap: 10px;
}

.quality-parameter-rule-grid label {
    display: grid;
    gap: 6px;
}

.quality-parameter-rule-grid label > span {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
}

.quality-parameter-help {
    color: #64748b;
    line-height: 1.35;
}

.quality-parameter-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 900;
}

.quality-parameter-label-success {
    color: #047857;
}

.quality-parameter-label-warning {
    color: #b45309;
}

.quality-parameter-label-danger {
    color: #be123c;
}

.quality-parameters-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    color: #315172;
    background: #eef6ff;
    border: 1px solid #cfe1ff;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.quality-test-form-card {
    display: grid;
    gap: 22px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.quality-test-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e7edf5;
}

.quality-test-form-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 8px;
    font-weight: 700;
}

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

.quality-readonly-field {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    font-weight: 800;
}

.quality-measurement-summary {
    display: grid;
    gap: 12px;
}

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

.quality-measurement-card {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.quality-measurement-card span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.quality-measurement-card strong {
    color: #172033;
    font-size: 1.08rem;
}

.quality-measurement-card small {
    color: #64748b;
}

.quality-complete-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 14px 16px;
    color: #087443;
    background: #f0fdf6;
    border-color: #bce8ce;
}

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

.concrete-filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) repeat(4, minmax(150px, 0.8fr)) auto;
    gap: 18px;
    align-items: end;
}

.concrete-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid #e1e8f2;
}

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

.concrete-section-header p {
    margin: 4px 0 0;
    color: #64748b;
}

.concrete-record-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    color: #0d6efd;
    background: #eef5ff;
    border: 1px solid #cfe1ff;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.concrete-table {
    min-width: 1260px;
}

.concrete-table th:nth-child(1),
.concrete-table td:nth-child(1) {
    width: 100px;
}

.concrete-table th:nth-child(2),
.concrete-table td:nth-child(2) {
    width: 150px;
}

.concrete-table th:nth-child(3),
.concrete-table td:nth-child(3) {
    width: 210px;
}

.concrete-table th:nth-child(4),
.concrete-table td:nth-child(4) {
    width: 230px;
}

.concrete-table th:nth-child(5),
.concrete-table td:nth-child(5),
.concrete-table th:nth-child(6),
.concrete-table td:nth-child(6),
.concrete-table th:nth-child(7),
.concrete-table td:nth-child(7) {
    width: 135px;
}

.concrete-table th:nth-child(8),
.concrete-table td:nth-child(8) {
    width: 165px;
}

.concrete-table th:nth-child(9),
.concrete-table td:nth-child(9) {
    width: 110px;
}

.concrete-table tbody tr:not(.concrete-detail-row):hover td {
    background: #f8fbff;
}

.concrete-table td strong,
.concrete-table td span {
    display: block;
}

.concrete-main-cell strong {
    color: #111827;
}

.concrete-muted-line {
    margin-top: 5px;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.35;
}

.concrete-grade-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 10px;
    color: #0d6efd;
    background: #eef5ff;
    border: 1px solid #cfe1ff;
    border-radius: 999px;
    font-weight: 900;
}

.concrete-row-actions {
    min-width: 0;
}

.concrete-detail-row td {
    padding-top: 0 !important;
    background: #fbfcfe;
}

.concrete-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
}

.concrete-detail-grid div {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e7edf5;
    border-radius: 8px;
}

.concrete-detail-grid span,
.concrete-detail-grid strong,
.concrete-detail-grid small {
    display: block;
}

.concrete-detail-grid span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.concrete-detail-grid strong {
    margin-top: 6px;
    color: #172033;
    line-height: 1.35;
}

.concrete-detail-grid small {
    margin-top: 6px;
    color: #64748b;
    line-height: 1.35;
}

.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: normal;
    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-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.dof-title-text {
    display: block;
}

.dof-meta-line {
    display: flex;
    align-items: center;
    max-width: 100%;
    gap: 5px;
    margin-top: 5px;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.dof-meta-line i {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 0.8rem;
}

.dof-meta-line span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.dof-dashboard-table .table-disclosure-title {
    justify-content: center;
}

.dof-dashboard-table .dof-nonconformity-cell .table-disclosure-title {
    justify-content: center;
}

.dof-dashboard-table .table-disclosure-body {
    margin-inline: auto;
    text-align: left;
}

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

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

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

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

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

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

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

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

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

.dof-dashboard-table .dof-responsible-cell {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-align: center;
    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: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

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

.dof-due-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

.dof-due-status-muted {
    color: #475569;
    background: #f1f5f9;
    border-color: #d8e2ef;
}

.dof-due-status-warning {
    color: #9a6700;
    background: #fff8e1;
    border-color: #f5d76e;
}

.dof-due-status-danger {
    color: #b4232f;
    background: #fff1f2;
    border-color: #fecdd3;
}

.dof-due-status-success {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.if-status-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    height: 34px;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.if-status-badge i {
    flex: 0 0 auto;
    font-size: 0.95rem;
    line-height: 1;
}

.if-status-badge span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.if-status-badge-personnel {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.if-status-badge-management {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.if-status-badge-deputy {
    color: #6d28d9;
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.if-status-badge-completed {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.if-status-badge-draft,
.if-status-badge-neutral {
    color: #475569;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.if-status-badge-revision,
.if-status-badge-delayed {
    color: #b4232f;
    background: #fff1f2;
    border-color: #fecdd3;
}

.if-status-badge-pending {
    color: #9a6700;
    background: #fff8e1;
    border-color: #f5d76e;
}

.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;
}

.dof-dashboard-table .dof-approval-request-btn {
    justify-content: center;
    min-width: 168px;
    border-color: #198754;
    box-shadow: 0 8px 18px rgba(25, 135, 84, 0.18);
    line-height: 1.15;
    white-space: normal;
}

.dof-dashboard-table .dof-evidence-count-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-width: 0;
    gap: 5px;
    padding-inline: 7px;
    overflow: hidden;
    white-space: nowrap;
}

.dof-dashboard-table .dof-evidence-count-btn i {
    flex: 0 0 auto;
    font-size: 0.86em;
}

.dof-dashboard-table .dof-evidence-count-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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;
}

.assigned-page-heading {
    align-items: flex-start;
}

.assigned-page-shell {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.assigned-page-shell .dashboard-page-heading,
.assigned-page-shell .assigned-filter-card,
.assigned-page-shell .assigned-tabs-card,
.assigned-page-shell .assigned-table-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.assigned-scope-dropdown .btn {
    min-width: 235px;
    justify-content: center;
}

.assigned-scope-dropdown .dropdown-menu {
    min-width: 235px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.assigned-scope-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    color: #334155;
    font-weight: 700;
}

.assigned-scope-dropdown .dropdown-item.active,
.assigned-scope-dropdown .dropdown-item:active {
    color: #0d6efd;
    background: #eef5ff;
}

.assigned-filter-card {
    padding: 18px;
}

.assigned-filter-grid {
    display: grid;
    grid-template-columns: minmax(170px, 1.25fr) repeat(3, minmax(100px, 0.7fr)) repeat(2, minmax(118px, 0.74fr)) auto;
    gap: 12px;
    align-items: end;
}

.assigned-filter-actions {
    gap: 8px;
}

.assigned-filter-actions .btn {
    min-width: 86px;
    padding-inline: 12px;
}

.assigned-date-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

.assigned-tabs-card {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 18px;
    min-height: 56px;
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.assigned-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    padding: 0 14px;
    color: #475569;
    font-weight: 800;
    text-decoration: none;
}

.assigned-tab::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    height: 2px;
    background: transparent;
    border-radius: 999px;
}

.assigned-tab.active,
.assigned-tab:hover {
    color: #0d6efd;
}

.assigned-tab.active::after {
    background: #0d6efd;
}

.assigned-table-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.assigned-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.assigned-table {
    width: 100%;
    min-width: 1180px;
    table-layout: fixed;
}

.assigned-page-col-module {
    width: 120px;
}

.assigned-page-col-task {
    width: 40%;
}

.assigned-page-col-department {
    width: 160px;
}

.assigned-page-col-date {
    width: 140px;
}

.assigned-page-col-status {
    width: 140px;
}

.assigned-page-col-priority {
    width: 100px;
}

.assigned-page-col-actions {
    width: 80px;
}

.assigned-table thead th {
    padding: 14px 16px;
    white-space: nowrap;
}

.assigned-table tbody td {
    padding: 16px;
    overflow: hidden;
}

.assigned-table thead th:last-child,
.assigned-table tbody td:last-child {
    text-align: center;
}

.assigned-page-row {
    position: relative;
    border-left: 3px solid transparent;
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.assigned-page-row:hover {
    background: #f8fbff;
}

.assigned-page-row:hover > td {
    background: #f8fbff;
}

.assigned-page-row-action {
    border-left-color: #0d6efd;
}

.assigned-page-row-action > td:first-child {
    border-left: 3px solid #0d6efd;
}

.assigned-page-row-audit {
    border-left-color: #f59f00;
}

.assigned-page-row-audit > td:first-child {
    border-left: 3px solid #f59f00;
}

.assigned-page-row-if {
    border-left-color: #8b5cf6;
}

.assigned-page-row-if > td:first-child {
    border-left: 3px solid #8b5cf6;
}

.assigned-page-row-maintenance {
    border-left-color: #0891b2;
}

.assigned-page-row-maintenance > td:first-child {
    border-left: 3px solid #0891b2;
}

.assigned-page-row-training > td:first-child,
.assigned-page-row-document_revision > td:first-child,
.assigned-page-row-management_review > td:first-child {
    border-left: 3px solid #2563eb;
}

.assigned-page-row-risk > td:first-child,
.assigned-page-row-complaint > td:first-child {
    border-left: 3px solid #ef4444;
}

.assigned-page-row-suggestion > td:first-child,
.assigned-page-row-supplier > td:first-child {
    border-left: 3px solid #0f766e;
}

.assigned-page-row-calibration > td:first-child,
.assigned-page-row-quality_test > td:first-child {
    border-left: 3px solid #0284c7;
}

.assigned-page-module-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 102px;
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.assigned-page-module-badge i {
    font-size: 0.95rem;
}

.assigned-page-module-action {
    color: #0d6efd;
    background: #eef5ff;
    border-color: #c7dbff;
}

.assigned-page-module-audit {
    color: #b76b00;
    background: #fff7e6;
    border-color: #ffe1a3;
}

.assigned-page-module-if {
    color: #6d28d9;
    background: #f3ebff;
    border-color: #dcc7ff;
}

.assigned-page-module-maintenance {
    color: #0e7490;
    background: #ecfeff;
    border-color: #a5f3fc;
}

.assigned-page-module-training {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.assigned-page-module-risk {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.assigned-page-module-complaint,
.assigned-page-module-suggestion {
    color: #0f766e;
    background: #f0fdfa;
    border-color: #99f6e4;
}

.assigned-page-module-management,
.assigned-page-module-document {
    color: #4338ca;
    background: #eef2ff;
    border-color: #c7d2fe;
}

.assigned-page-module-calibration,
.assigned-page-module-quality {
    color: #0369a1;
    background: #f0f9ff;
    border-color: #bae6fd;
}

.assigned-page-module-supplier {
    color: #a16207;
    background: #fffbeb;
    border-color: #fde68a;
}

.assigned-module-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 5px 10px;
    color: #334155;
    background: #eef2f7;
    border: 1px solid #dde6f2;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.assigned-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 1rem;
}

.assigned-module-success .assigned-module-icon {
    color: #087443;
    background: #ddf5e8;
}

.assigned-module-warning .assigned-module-icon {
    color: #b76b00;
    background: #fff3cd;
}

.assigned-module-purple .assigned-module-icon {
    color: #6d28d9;
    background: #f1e9ff;
}

.assigned-task-cell small {
    display: inline-flex;
    width: fit-content;
    margin-top: 7px;
    padding: 4px 8px;
    color: #475569;
    background: #edf2f7;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
}

.assigned-task-cell {
    min-width: 0;
    white-space: normal;
}

.assigned-task-cell a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 0.96rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assigned-task-cell span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.assigned-due-date,
.assigned-due-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.assigned-due-date {
    color: #334155;
    font-weight: 700;
    white-space: nowrap;
}

.assigned-due-meta {
    margin-top: 5px;
    font-size: 0.84rem;
    font-weight: 800;
}

.assigned-due-muted {
    color: #64748b;
}

.assigned-due-warning {
    color: #d97706;
}

.assigned-due-danger {
    color: #dc3545;
}

.assigned-due-success {
    color: #198754;
}

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

.assigned-page-status i,
.assigned-page-priority i {
    font-size: 0.82rem;
}

.assigned-page-status-completed {
    color: #087443;
    background: #ddf5e8;
    border-color: #bce8ce;
}

.assigned-page-status-active {
    color: #0f766e;
    background: #dff7fa;
    border-color: #aee7ef;
}

.assigned-page-status-open {
    color: #0d6efd;
    background: #eef5ff;
    border-color: #b8d3ff;
}

.assigned-page-status-pending {
    color: #9a6700;
    background: #fff3cd;
    border-color: #ffe2a4;
}

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

.assigned-page-status-planned {
    color: #6d28d9;
    background: #f3ebff;
    border-color: #dcc7ff;
}

.assigned-page-status-neutral {
    color: #475569;
    background: #edf2f7;
    border-color: #dce5ef;
}

.assigned-page-priority-low {
    color: #087443;
    background: #ddf5e8;
    border-color: #bce8ce;
}

.assigned-page-priority-medium {
    color: #9a6700;
    background: #fff3cd;
    border-color: #ffe2a4;
}

.assigned-page-priority-high {
    color: #b4232f;
    background: #fde7ea;
    border-color: #fac5cb;
}

.assigned-page-priority-critical {
    color: #ffffff;
    background: #991b1b;
    border-color: #7f1d1d;
}

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

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

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

.priority-pill-info {
    color: #0d6efd;
    background: #eef5ff;
    border-color: #b8d3ff;
}

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

.assigned-row-actions {
    min-width: auto;
}

.assigned-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #172033;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
}

.assigned-detail-button:hover {
    color: #0d6efd;
    background: #eef5ff;
    border-color: #b8d3ff;
}

.assigned-table-footer {
    align-items: center;
}

.assigned-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.assigned-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: #ffffff;
    background: #0d6efd;
    border-radius: 8px;
    font-weight: 800;
}

@media (max-width: 1280px) {
    .assigned-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .assigned-filter-actions {
        grid-column: auto;
    }
}

@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;
}

.sub-action-inline-progress {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 5px 9px;
    color: #0f4fbf;
    background: #eef5ff;
    border: 1px solid #cfe1ff;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.sub-action-inline-progress small {
    color: #475569;
    font-size: 0.74rem;
}

.sub-action-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.sub-action-summary-grid > div {
    padding: 14px;
    background: #f8fbff;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
}

.sub-action-summary-grid span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

.sub-action-summary-grid strong {
    display: block;
    margin-top: 4px;
    color: #111827;
    font-size: 1.35rem;
    line-height: 1;
}

.sub-action-progress {
    height: 10px;
    margin-top: 14px;
    overflow: hidden;
    background: #e9eff8;
    border-radius: 999px;
}

.sub-action-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #29a3ff);
    border-radius: inherit;
}

.sub-action-builder {
    display: grid;
    gap: 14px;
}

.sub-action-builder-list {
    display: grid;
    gap: 12px;
}

.sub-action-builder-item {
    padding: 16px;
    background: #f8fbff;
    border: 1px solid #dce7f5;
    border-radius: 8px;
}

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

.sub-action-builder-head strong {
    color: #172033;
}

.sub-action-builder-head .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.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 h1.audit-report-document-title {
    font-size: 1rem;
    line-height: 1.35;
}

.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-observer-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.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-topic {
    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;
    }
}

.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);
    transition: grid-template-columns 0.18s ease;
}

.org-shell.is-inspector-collapsed {
    grid-template-columns: minmax(0, 1fr) 62px;
}

.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;
    transition: padding 0.18s ease;
}

.org-inspector-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.org-inspector-title {
    min-width: 0;
}

.org-inspector-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.org-inspector-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #31506f;
    background: #f8fbff;
    border: 1px solid #d6e3f3;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.org-inspector-toggle:hover,
.org-inspector-toggle:focus-visible {
    color: #0d6efd;
    background: #eef5ff;
    border-color: #9ec5fe;
}

.org-inspector.is-collapsed {
    padding: 16px 14px;
    overflow: hidden;
}

.org-inspector.is-collapsed .org-inspector-header {
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.org-inspector.is-collapsed .org-inspector-title,
.org-inspector.is-collapsed [data-selected-type] {
    display: none;
}

.org-inspector.is-collapsed .org-inspector-toggle {
    transform: translateX(-1px);
}

.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;
}

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

.maintenance-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(150px, 0.8fr) minmax(190px, 0.9fr) auto;
    gap: 18px;
    align-items: end;
}

.maintenance-section-card {
    margin-top: 26px;
}

.maintenance-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid #e2e9f3;
}

.maintenance-section-header h3 {
    margin: 0;
    color: #172033;
    font-size: 1.1rem;
    font-weight: 800;
}

.maintenance-section-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.maintenance-table th,
.maintenance-table td {
    vertical-align: middle;
}

.maintenance-table .dashboard-row-actions {
    justify-content: flex-end;
}

.maintenance-table .dashboard-row-actions form {
    display: inline-flex;
}

.dashboard-content.calibration-content-wide {
    padding: 22px 20px 28px;
}

.calibration-page-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e2eaf5;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

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

.calibration-title-block h2 {
    margin: 0;
    color: #0f1f3d;
    font-size: clamp(1.55rem, 1.2vw + 1.15rem, 2.1rem);
    font-weight: 750;
    letter-spacing: 0;
}

.calibration-title-block p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 0.96rem;
}

.calibration-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1120px;
}

.calibration-toolbar-actions .btn,
.calibration-toolbar-actions .form-control,
.calibration-toolbar-actions .form-select {
    min-height: 48px;
    border-radius: 10px;
}

.calibration-search {
    width: min(420px, 34vw);
}

.calibration-filter-select {
    width: 150px;
}

.calibration-add-button {
    min-width: 180px;
}

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

.calibration-metrics .dashboard-stat-card {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 104px;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.calibration-metrics .dashboard-stat-card::after {
    display: none;
}

.calibration-metrics .dashboard-stat-card .stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    font-size: 1.55rem;
}

.calibration-metrics .dashboard-stat-card small {
    grid-column: 2;
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.calibration-table-shell {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dde7f4;
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.calibration-table {
    min-width: 1320px;
    table-layout: fixed;
}

.calibration-table thead th {
    padding: 18px 20px;
    color: #15213a;
    background: #fbfdff;
    font-size: 0.86rem;
    font-weight: 750;
    white-space: nowrap;
}

.calibration-table tbody td {
    padding: 17px 20px;
    color: #172554;
    font-size: 0.9rem;
}

.calibration-table tbody tr:hover td {
    background: #f8fbff;
}

.calibration-table th:nth-child(1),
.calibration-table td:nth-child(1) {
    width: 105px;
}

.calibration-table th:nth-child(2),
.calibration-table td:nth-child(2) {
    width: 210px;
}

.calibration-table th:nth-child(3),
.calibration-table td:nth-child(3),
.calibration-table th:nth-child(4),
.calibration-table td:nth-child(4),
.calibration-table th:nth-child(5),
.calibration-table td:nth-child(5) {
    width: 130px;
}

.calibration-table th:nth-child(6),
.calibration-table td:nth-child(6) {
    width: 155px;
}

.calibration-table th:nth-child(7),
.calibration-table td:nth-child(7),
.calibration-table th:nth-child(8),
.calibration-table td:nth-child(8) {
    width: 145px;
}

.calibration-table th:nth-child(9),
.calibration-table td:nth-child(9),
.calibration-table th:nth-child(10),
.calibration-table td:nth-child(10) {
    width: 130px;
}

.calibration-table th:nth-child(11),
.calibration-table td:nth-child(11) {
    width: 150px;
}

.calibration-device-name,
.calibration-device-meta {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calibration-device-name {
    color: #10214a;
    font-weight: 750;
}

.calibration-device-meta {
    margin-top: 4px;
    color: #64748b;
    font-weight: 500;
}

.calibration-due-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 750;
    white-space: nowrap;
}

.calibration-due-success {
    color: #047857;
    background: #dff8eb;
}

.calibration-due-warning {
    color: #b45309;
    background: #fff2cc;
}

.calibration-due-danger {
    color: #dc2626;
    background: #fee2e2;
}

.calibration-due-muted {
    color: #64748b;
    background: #f1f5f9;
}

.calibration-table-footer {
    display: flex;
    justify-content: space-between;
    padding: 18px 2px 0;
    color: #475569;
    font-size: 0.94rem;
}

@media (max-width: 1280px) {
    .calibration-page-card {
        padding: 28px 24px 32px;
    }

    .calibration-toolbar {
        flex-direction: column;
    }

    .calibration-toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .calibration-search {
        width: min(100%, 420px);
    }
}

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

    .calibration-filter-select,
    .calibration-add-button {
        width: 100%;
    }

    .calibration-toolbar-actions .btn {
        flex: 1 1 160px;
    }
}

@media (max-width: 576px) {
    .calibration-page-card {
        padding: 22px 16px 26px;
        border-radius: 16px;
    }

    .calibration-metrics {
        grid-template-columns: 1fr;
    }

    .calibration-toolbar-actions,
    .calibration-search {
        width: 100%;
    }
}

.maintenance-ref-link,
.maintenance-title-cell a {
    color: #0d6efd;
    font-weight: 800;
    text-decoration: none;
}

.maintenance-ref-link:hover,
.maintenance-title-cell a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.maintenance-title-cell span,
.maintenance-muted-line {
    display: block;
    max-width: 520px;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.45;
}

.maintenance-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.maintenance-badge i {
    font-size: 0.86rem;
}

.maintenance-badge-success {
    color: #047857;
    background: #dcfce7;
    border-color: #a7f3d0;
}

.maintenance-badge-danger {
    color: #be123c;
    background: #ffe4e6;
    border-color: #fecdd3;
}

.maintenance-badge-warning {
    color: #b45309;
    background: #fef3c7;
    border-color: #fde68a;
}

.maintenance-badge-info {
    color: #0e7490;
    background: #cffafe;
    border-color: #a5f3fc;
}

.maintenance-badge-muted {
    color: #475569;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.maintenance-due {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    color: #172033;
    font-size: 0.84rem;
    line-height: 1.2;
}

.maintenance-due strong {
    color: #172033;
    font-size: 0.9rem;
}

.maintenance-due span,
.maintenance-due-success {
    color: #047857;
}

.maintenance-due-warning {
    color: #d97706;
}

.maintenance-due-danger {
    color: #dc2626;
}

.maintenance-due-muted {
    color: #64748b;
}

.maintenance-row-passive {
    opacity: 0.62;
}

.maintenance-form-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #dbe5f1;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.maintenance-card-icon {
    color: #0d6efd;
    background: #eaf3ff;
}

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

.maintenance-unplanned-option {
    color: #0e7490;
    font-style: italic;
    font-weight: 800;
}

.maintenance-unplanned-label {
    color: #0e7490;
    font-style: italic;
    font-weight: 900;
}

.maintenance-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

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

.maintenance-info-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 4px 14px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #dbe5f1;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.maintenance-info-icon {
    grid-row: 1 / span 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #0d6efd;
    background: #eaf3ff;
    border-radius: 12px;
    font-size: 1.35rem;
}

.maintenance-info-card small {
    color: #64748b;
    font-weight: 700;
}

.maintenance-info-card strong {
    color: #172033;
    font-size: 1rem;
}

.maintenance-info-card > span:not(.maintenance-info-icon) {
    color: #64748b;
    font-size: 0.88rem;
}

.maintenance-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 24px;
}

.maintenance-detail-card {
    min-width: 0;
}

.maintenance-detail-text {
    margin: 18px 0 0;
    color: #334155;
    line-height: 1.65;
    white-space: pre-line;
}

.maintenance-side-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.maintenance-danger-card {
    display: grid;
    gap: 10px;
    border-color: #fecdd3;
}

.maintenance-danger-card strong {
    color: #be123c;
}

.maintenance-danger-card span {
    color: #64748b;
    font-size: 0.9rem;
}

@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-content {
        padding: 74px 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-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .sub-action-summary-grid {
        grid-template-columns: repeat(3, 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));
    }

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

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

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

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

    .assigned-tabs-card {
        overflow-x: auto;
    }

    .assigned-table {
        min-width: 0;
    }

    .assigned-table thead {
        display: none;
    }

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

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

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

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

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

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

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

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

    .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;
    }

    .maintenance-detail-layout,
    .maintenance-detail-grid {
        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-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,
    .maintenance-metrics,
    .sub-action-summary-grid,
    .dashboard-filter-grid,
    .maintenance-filter-grid,
    .assigned-filter-grid,
    .app-form-grid,
    .maintenance-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,
    .maintenance-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;
    }

    .sub-action-builder-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .app-heading-actions .btn,
    .app-heading-actions form,
    .app-form-actions .btn,
    .maintenance-form-actions .btn,
    .maintenance-section-header .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;
    }

    .assigned-date-range {
        grid-template-columns: 1fr;
    }

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

    .assigned-table-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .assigned-scope-dropdown,
    .assigned-scope-dropdown .btn {
        width: 100%;
    }

    .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;
    }
}

@media (max-width: 1200px) {
    .quality-test-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .quality-parameters-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

@media (max-width: 992px) {
    .quality-measurement-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quality-test-section-header,
    .quality-test-form-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .quality-parameter-fields,
    .quality-parameter-rule-grid {
        grid-template-columns: 1fr;
    }

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

    .concrete-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 576px) {
    .quality-test-metrics,
    .quality-test-filter-grid {
        grid-template-columns: 1fr;
    }

    .quality-test-form-actions {
        flex-direction: column;
    }

    .quality-test-form-actions .btn {
        width: 100%;
    }

    .concrete-metrics,
    .concrete-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* VolkaPortal design system layer */
.dashboard-body {
    background:
        linear-gradient(180deg, rgba(30, 91, 255, 0.035), rgba(0, 187, 170, 0.02) 42%, transparent 68%),
        var(--vp-background);
}

.dashboard-app {
    grid-template-columns: 292px minmax(0, 1fr);
    background: transparent;
}

.dashboard-sidebar {
    color: #0b1d36;
    background:
        linear-gradient(180deg, #dbe8ff 0%, #e6f6f3 48%, #f8fbff 100%);
    border-right: 1px solid #cfdae8;
    box-shadow: 8px 0 28px rgba(11, 29, 54, 0.08);
}

.dashboard-sidebar .offcanvas-body {
    padding: 22px 16px;
}

.dashboard-sidebar-brand {
    justify-content: flex-start;
    min-height: 90px;
    margin: 0 0 20px;
    padding: 10px 8px 18px;
    color: #0b1d36;
    text-decoration: none;
    border-bottom: 1px solid #cfdbe9;
}

.dashboard-brand-logo {
    display: block;
    width: min(100%, 210px);
    max-width: 210px;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 10px 16px rgba(11, 29, 54, 0.18));
}

.dashboard-brand-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.dashboard-brand-copy strong {
    color: #0b1d36;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
}

.dashboard-brand-copy small {
    color: #667085;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
}

.dashboard-nav-item,
.dashboard-subnav-item,
.sidebar-quick-link,
.dashboard-logout {
    color: #102a4a;
    border-radius: var(--vp-radius-md);
    transition: color var(--vp-transition), background var(--vp-transition), border-color var(--vp-transition), transform var(--vp-transition);
}

.dashboard-nav-item {
    position: relative;
    min-height: 48px;
    border-color: transparent;
}

.dashboard-nav-item i,
.dashboard-subnav-item i,
.sidebar-quick-link i,
.dashboard-logout i {
    color: #52627a;
}

.dashboard-nav-item:hover,
.dashboard-nav-item.active,
.dashboard-subnav-item:hover,
.dashboard-subnav-item.active,
.sidebar-quick-link:hover,
.sidebar-quick-link.active {
    color: #1e5bff;
    background: rgba(30, 91, 255, 0.12);
    border-color: rgba(30, 91, 255, 0.24);
}

.dashboard-nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: var(--vp-gradient);
    border-radius: 999px;
}

.dashboard-nav-item:hover i,
.dashboard-nav-item.active i,
.dashboard-subnav-item:hover i,
.dashboard-subnav-item.active i,
.sidebar-quick-link:hover i,
.sidebar-quick-link.active i {
    color: #1e5bff;
}

.dashboard-subnav {
    padding-left: 42px;
}

.dashboard-subnav-item {
    color: #334155;
}

.dashboard-sidebar-bottom {
    border-top-color: #cfdbe9;
}

.dashboard-sidebar-user {
    border-top-color: #cfdbe9;
}

.dashboard-sidebar-user strong {
    color: #111827;
}

.dashboard-sidebar-user span {
    color: #667085;
}

.dashboard-avatar,
.dashboard-profile-avatar {
    background: var(--vp-gradient);
    box-shadow: 0 10px 24px rgba(30, 91, 255, 0.22);
}

.assigned-count-badge,
.sidebar-count-badge {
    color: #ffffff;
    background: var(--vp-gradient);
}

.dashboard-logout {
    border-top-color: #cfdbe9;
}

.dashboard-logout:hover {
    color: #1e5bff;
    background: rgba(30, 91, 255, 0.08);
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    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: 70px;
    padding: 0 34px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--vp-border);
    backdrop-filter: blur(10px);
}

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

.dashboard-topbar strong,
.dashboard-topbar span,
.dashboard-topbar small {
    display: block;
}

.dashboard-topbar > div:first-child strong {
    color: var(--vp-text-primary);
    font-size: 1.05rem;
    font-weight: 800;
}

.dashboard-topbar > div:first-child span {
    margin-top: 2px;
    color: var(--vp-text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
}

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

.dashboard-topbar-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    color: var(--vp-navy);
    background: var(--vp-surface);
    border: 1px solid var(--vp-border-strong);
    border-radius: var(--vp-radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--vp-transition);
}

.dashboard-topbar-button:hover {
    color: var(--vp-blue);
    border-color: color-mix(in srgb, var(--vp-blue) 36%, var(--vp-border));
    box-shadow: var(--vp-shadow-sm);
}

.dashboard-topbar-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    color: #ffffff;
    background: #dc3545;
    border: 2px solid #ffffff;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.dashboard-topbar-user {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    color: var(--vp-text-primary);
}

.dashboard-topbar .dashboard-avatar {
    display: inline-flex;
    flex: 0 0 auto;
}

.dashboard-topbar-user strong {
    font-size: 0.88rem;
    font-weight: 800;
}

.dashboard-topbar-user small {
    color: var(--vp-text-secondary);
    font-size: 0.76rem;
    font-weight: 600;
}

.dashboard-content {
    padding: 30px 34px 34px;
}

.dashboard-page-heading h2 {
    color: var(--vp-text-primary);
    font-weight: 800;
}

.dashboard-page-heading p,
.documents-breadcrumb,
.quality-test-muted-line,
.metric-label {
    color: var(--vp-text-secondary);
}

.dashboard-stat-card,
.documents-summary-card,
.documents-category-card,
.documents-recent-card,
.dashboard-filter-card,
.dashboard-table-card,
.app-card,
.quality-test-form-card,
.quality-parameters-card,
.quality-parameter-class-card,
.quality-measurement-card,
.dof-form-card,
.dof-detail-card,
.dof-detail-info-card,
.audit-question-card,
.audit-builder-card,
.maintenance-card,
.concrete-card,
.login-card {
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius-card);
    box-shadow: var(--vp-shadow-card);
}

.documents-summary-card,
.dashboard-stat-card {
    transition: transform var(--vp-transition), box-shadow var(--vp-transition);
}

.documents-summary-card:hover,
.dashboard-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.dashboard-stat-card .stat-icon,
.app-card-icon,
.documents-summary-icon {
    border-radius: var(--vp-radius-card);
}

.btn {
    border-radius: var(--vp-radius-md);
    font-weight: 750;
    transition: color var(--vp-transition), background var(--vp-transition), border-color var(--vp-transition), box-shadow var(--vp-transition), transform var(--vp-transition);
}

.btn-primary {
    color: #ffffff;
    background: var(--vp-blue);
    border-color: var(--vp-blue);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #ffffff;
    background: var(--vp-blue-dark);
    border-color: var(--vp-blue-dark);
    box-shadow: 0 10px 24px rgba(30, 91, 255, 0.22);
}

.btn-outline-primary {
    color: var(--vp-blue);
    border-color: color-mix(in srgb, var(--vp-blue) 38%, var(--vp-border));
}

.btn-outline-primary:hover {
    color: #ffffff;
    background: var(--vp-blue);
    border-color: var(--vp-blue);
}

.btn-outline-secondary {
    color: var(--vp-navy);
    background: var(--vp-surface);
    border-color: var(--vp-border-strong);
}

.btn-outline-secondary:hover {
    color: var(--vp-blue);
    background: #f8fbff;
    border-color: color-mix(in srgb, var(--vp-blue) 32%, var(--vp-border));
}

.form-control,
.form-select,
textarea.form-control {
    color: var(--vp-text-primary);
    border-color: var(--vp-border-strong);
    border-radius: var(--vp-radius-md);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: var(--vp-blue);
    box-shadow: 0 0 0 0.2rem rgba(30, 91, 255, 0.12);
}

.form-label {
    color: var(--vp-navy);
    font-weight: 750;
}

.dashboard-table thead th,
.table thead th {
    color: var(--vp-navy);
    background: var(--vp-background);
    border-bottom-color: var(--vp-border);
}

.dashboard-table tbody tr,
.table tbody tr {
    transition: background var(--vp-transition);
}

.dashboard-table tbody tr:hover,
.table tbody tr:hover {
    background: rgba(30, 91, 255, 0.035);
}

.status-pill,
.badge {
    border-radius: 999px;
}

.status-pill-success,
.text-bg-success {
    color: #047857 !important;
    background: #dff8ef !important;
    border-color: #9ee7d3 !important;
}

.status-pill-warning,
.text-bg-warning {
    color: #a15c00 !important;
    background: #fff4d8 !important;
    border-color: #ffd98a !important;
}

.status-pill-info,
.text-bg-primary {
    color: #1648d8 !important;
    background: #e8efff !important;
    border-color: #bfd0ff !important;
}

.status-pill-danger,
.text-bg-danger {
    color: #b42318 !important;
    background: #ffe7e5 !important;
    border-color: #ffb4ad !important;
}

.status-pill-muted,
.text-bg-secondary {
    color: #475467 !important;
    background: #eef2f6 !important;
    border-color: #d8e2ef !important;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 480px);
    gap: 48px;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background:
        linear-gradient(135deg, rgba(11, 29, 54, 0.96), rgba(11, 29, 54, 0.9)),
        var(--vp-navy);
    overflow: hidden;
}

.login-brand-panel {
    position: relative;
    display: grid;
    gap: 22px;
    color: #ffffff;
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    inset: -80px -40px auto auto;
    width: 420px;
    height: 420px;
    background-image:
        linear-gradient(135deg, rgba(30, 91, 255, 0.22), rgba(0, 187, 170, 0.16)),
        url("../brand/icon/volkaportal-stag-512.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.12;
    pointer-events: none;
}

.login-hero-logo {
    position: relative;
    z-index: 1;
    width: 168px;
    height: 168px;
    object-fit: cover;
    object-position: center;
    border-radius: 28px;
    filter: drop-shadow(0 22px 36px rgba(0, 187, 170, 0.18));
}

.login-brand-panel strong {
    position: relative;
    z-index: 1;
    display: block;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 850;
    letter-spacing: 0;
}

.login-brand-panel span {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 460px;
    margin-top: 10px;
    color: rgba(230, 232, 235, 0.76);
    font-size: 1.05rem;
    font-weight: 600;
}

.login-form-panel {
    position: relative;
    z-index: 1;
}

.login-card {
    width: min(100%, 460px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.2);
}

.login-card-brand {
    justify-content: flex-start;
    margin-bottom: 22px;
    padding: 12px;
    background: #03070d;
    border: 1px solid rgba(30, 91, 255, 0.18);
    border-radius: var(--vp-radius-card);
}

.login-brand-logo {
    width: 100%;
    max-width: 330px;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .dashboard-app {
        display: block;
    }

    .app-page-header,
    .app-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .app-page-actions,
    .app-section-actions {
        justify-content: flex-start;
    }

    .app-page-actions .btn,
    .app-page-actions form,
    .app-section-actions .btn,
    .app-section-actions form {
        width: 100%;
    }

    .dashboard-topbar {
        min-height: 64px;
        padding: 0 18px 0 72px;
    }

    .dashboard-topbar-user span:not(.dashboard-avatar) {
        display: none;
    }

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

    .login-shell {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px;
    }

    .login-brand-panel {
        text-align: center;
        justify-items: center;
    }

    .login-brand-panel span {
        margin-inline: auto;
    }
}

@media (max-width: 576px) {
    .dashboard-topbar {
        align-items: flex-start;
        flex-direction: column;
        height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .dashboard-topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-topbar-button span:not(.dashboard-topbar-badge) {
        display: none;
    }

    .login-shell {
        padding: 18px;
    }

    .login-card {
        padding: 24px;
    }

    .login-brand-logo {
        max-width: 260px;
    }
}

/* VolkaPortal dark glass login screen */
.login-body {
    min-height: 100vh;
    background: #020b18;
}

.login-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 40px 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(21, 101, 255, 0.34), transparent 28%),
        radial-gradient(circle at 78% 78%, rgba(0, 212, 255, 0.19), transparent 34%),
        linear-gradient(135deg, #061529 0%, #081c34 48%, #020b18 100%);
}

.login-page::before,
.login-page::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-page::before {
    background:
        linear-gradient(115deg, transparent 0 32%, rgba(21, 101, 255, 0.09) 32.2%, transparent 32.6%),
        linear-gradient(140deg, transparent 0 58%, rgba(0, 212, 255, 0.08) 58.2%, transparent 58.6%),
        radial-gradient(circle at 50% 100%, rgba(0, 212, 255, 0.1), transparent 36%);
    opacity: 0.85;
}

.login-page::after {
    background-image:
        radial-gradient(circle, rgba(0, 212, 255, 0.42) 0 1px, transparent 1.4px),
        radial-gradient(circle, rgba(21, 101, 255, 0.32) 0 1px, transparent 1.5px);
    background-position: 12% 24%, 82% 68%;
    background-size: 180px 160px, 240px 220px;
    opacity: 0.22;
}

.login-watermark {
    position: absolute;
    left: max(-180px, -8vw);
    top: 50%;
    width: min(760px, 58vw);
    max-width: none;
    opacity: 0.14;
    filter: blur(0.2px) drop-shadow(0 0 48px rgba(21, 101, 255, 0.28));
    transform: translateY(-50%);
    pointer-events: none;
    user-select: none;
}

.login-page .login-form-panel {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 470px;
}

.login-page .login-card {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 440px;
    padding: 42px;
    color: #e6edf7;
    background:
        linear-gradient(180deg, rgba(18, 39, 70, 0.78), rgba(5, 17, 35, 0.76)),
        rgba(8, 20, 38, 0.72);
    border: 1px solid rgba(90, 160, 255, 0.28);
    border-radius: 24px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 212, 255, 0.04) inset;
    backdrop-filter: blur(18px);
}

.login-page .login-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 23px;
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.13), transparent 38%);
    pointer-events: none;
}

.login-page .login-card > * {
    position: relative;
    z-index: 1;
}

.login-page .login-card-brand {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 0 0 28px;
    padding: 0 0 24px;
    text-align: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(90, 160, 255, 0.18);
    border-radius: 0;
}

.login-page .login-brand-logo {
    display: block;
    width: min(100%, 360px);
    max-width: 360px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.24));
}

.login-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4.2vw, 2.45rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0;
}

.login-page .login-title span {
    display: inline;
    color: inherit;
    font: inherit;
}

.login-title span:last-child {
    color: #00d4ff;
}

.login-subtitle {
    margin: 10px 0 0;
    color: #a9b7c8;
    font-size: 0.98rem;
    font-weight: 600;
}

.login-form-stack {
    display: grid;
    gap: 18px;
}

.login-page .login-card .form-label {
    margin-bottom: 8px;
    color: #e6edf7;
    font-size: 0.9rem;
    font-weight: 800;
}

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

.login-page .login-input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 2;
    color: #9aa7b6;
    font-size: 1.05rem;
    transform: translateY(-50%);
}

.login-page .login-card .form-control {
    width: 100%;
    min-height: 50px;
    padding: 0 16px 0 46px;
    color: #e6edf7;
    background: rgba(2, 10, 24, 0.36);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    box-shadow: none;
    caret-color: #00d4ff;
}

.login-page .login-card .form-control::placeholder {
    color: rgba(154, 167, 182, 0.92);
}

.login-page .login-card .form-control:focus {
    color: #ffffff;
    background: rgba(2, 10, 24, 0.48);
    border-color: rgba(0, 212, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.11);
}

.login-remember-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: -2px 0 0;
    color: #c7d2e0;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.login-remember-option .form-check-input {
    width: 17px;
    height: 17px;
    margin: 0;
    background-color: rgba(2, 10, 24, 0.38);
    border-color: rgba(148, 163, 184, 0.48);
    box-shadow: none;
    cursor: pointer;
}

.login-remember-option .form-check-input:checked {
    background-color: #0d8dff;
    border-color: #00d4ff;
}

.login-remember-option .form-check-input:focus {
    border-color: rgba(0, 212, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12);
}

.login-page .login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    margin-top: 2px;
    color: #ffffff;
    background: linear-gradient(135deg, #1565ff 0%, #00d4ff 100%);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(21, 101, 255, 0.35);
    font-weight: 850;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-page .login-button:hover,
.login-page .login-button:focus {
    color: #ffffff;
    filter: brightness(1.05);
    box-shadow: 0 18px 40px rgba(0, 212, 255, 0.28);
    transform: translateY(-1px);
}

.login-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    color: #9aa7b6;
    font-size: 0.83rem;
    font-weight: 600;
}

.login-footer-note span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.login-footer-note a {
    color: #bcd0ea;
    text-decoration: none;
}

.login-footer-note a:hover,
.login-footer-note a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.login-page .login-alert-stack {
    margin: 0 0 20px;
}

.login-page .alert {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e6edf7;
    background: rgba(8, 20, 38, 0.68);
    border-color: rgba(90, 160, 255, 0.22);
    border-radius: 12px;
}

.login-page .alert-danger {
    background: rgba(127, 29, 29, 0.24);
    border-color: rgba(248, 113, 113, 0.32);
}

.login-page .alert-success {
    background: rgba(6, 95, 70, 0.24);
    border-color: rgba(52, 211, 153, 0.32);
}

.login-page .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .login-page {
        padding: 24px 16px;
    }

    .login-page .login-form-panel {
        max-width: calc(100vw - 32px);
    }

    .login-watermark {
        left: 50%;
        top: 45%;
        width: min(640px, 116vw);
        opacity: 0.09;
        transform: translate(-50%, -50%);
    }

    .login-page .login-card {
        width: 100%;
        max-width: calc(100vw - 44px);
        padding: 34px 26px;
    }

    .login-page .login-brand-logo {
        width: min(100%, 300px);
    }
}

@media (max-width: 380px) {
    .login-page .login-card {
        padding: 28px 20px;
    }

    .login-title {
        font-size: 1.85rem;
    }
}

.role-admin-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 14px;
}

.role-admin-alert i {
    margin-top: 2px;
}

.role-admin-alert span {
    display: block;
    margin-top: 2px;
}

.role-admin-layout {
    display: grid;
    gap: 22px;
}

.role-admin-card {
    overflow: hidden;
}

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

.role-admin-role-card {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid #dbe6f4;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.role-admin-role-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.role-admin-role-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 850;
}

.role-admin-role-head p {
    margin: 5px 0 0;
    color: #64748b;
    line-height: 1.45;
}

.role-level-badge {
    flex: 0 0 auto;
    min-width: 86px;
    padding: 7px 10px;
    color: #0b5ed7;
    background: #edf5ff;
    border: 1px solid #cfe1ff;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.role-locked-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 9px 12px;
    color: #7c2d12;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 700;
}

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

.role-permission-group {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}

.role-permission-group h4 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 0.92rem;
    font-weight: 850;
}

.role-permission-list {
    display: grid;
    gap: 9px;
}

.role-permission-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-height: 44px;
    padding: 10px;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.role-permission-item:hover {
    background: #f8fbff;
    border-color: #cfe1ff;
}

.role-permission-item strong,
.role-chip span,
.role-inline-chip {
    color: #172033;
    font-weight: 800;
}

.role-permission-item small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    line-height: 1.35;
}

.role-card-footer,
.role-user-row {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.role-card-footer {
    padding-top: 2px;
    color: #64748b;
    font-weight: 700;
}

.role-user-list {
    display: grid;
    gap: 12px;
}

.role-user-row {
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #dbe6f4;
    border-radius: 14px;
    background: #ffffff;
}

.role-user-summary {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 250px;
}

.role-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, #0d6efd, #00a9e8);
    border-radius: 999px;
    font-weight: 900;
}

.role-user-summary strong,
.role-user-summary small {
    display: block;
}

.role-user-summary small {
    color: #64748b;
}

.role-user-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.role-user-roles-form {
    justify-content: flex-start;
}

.role-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #dbe6f4;
    border-radius: 999px;
    background: #f8fbff;
    cursor: pointer;
}

.role-chip-extra {
    color: #0f766e;
    background: #ecfdf5;
    border-color: #99f6e4;
}

.role-chip-extra span {
    color: #0f766e;
}

.role-inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.role-inline-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid #cfe1ff;
    border-radius: 999px;
    background: #edf5ff;
    color: #0b5ed7;
    font-size: 0.78rem;
}

.company-admin-card,
.company-form-card {
    display: grid;
    gap: 18px;
}

.company-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.company-admin-table {
    min-width: 1320px;
}

.company-admin-table td strong,
.company-admin-table td small {
    display: block;
}

.company-admin-table td small {
    margin-top: 2px;
    color: #64748b;
}

.company-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #cfe1ff;
    border-radius: 999px;
    color: #0b5ed7;
    background: #edf5ff;
    font-weight: 900;
    letter-spacing: 0;
}

.company-usage-cell {
    display: grid;
    gap: 4px;
    min-width: 128px;
}

.company-usage-cell strong {
    color: #10233f;
    font-size: 0.82rem;
    line-height: 1.2;
}

.company-usage-cell small {
    color: #64748b;
    font-size: 0.72rem;
}

.company-usage-meter {
    position: relative;
    display: block;
    width: 120px;
    height: 7px;
    overflow: hidden;
    background: #eaf1fb;
    border-radius: 999px;
}

.company-usage-meter span {
    display: block;
    height: 100%;
    background: var(--vp-gradient);
    border-radius: inherit;
}

.company-license-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.company-license-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) repeat(4, minmax(160px, 1fr));
    gap: 14px;
    align-items: end;
}

.company-logo-field {
    align-self: stretch;
}

.company-logo-control {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.company-logo-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    overflow: hidden;
    color: #5b6b82;
    background: #f3f7fc;
    border: 1px solid #d8e4f2;
    border-radius: 14px;
    font-size: 1.6rem;
}

.company-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.company-logo-remove {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.82rem;
}

.company-color-input {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.company-color-input .form-control-color {
    width: 52px;
    height: 48px;
    padding: 6px;
}

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

@media (max-width: 767.98px) {
    .company-license-grid {
        grid-template-columns: 1fr;
    }
}

.company-active-toggle {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid #dbe6f4;
    border-radius: 14px;
    background: #f8fbff;
    cursor: pointer;
}

.company-active-toggle strong,
.company-active-toggle small {
    display: block;
}

.company-active-toggle small {
    color: #64748b;
}

.company-domain-hint {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid #cfe1ff;
    border-radius: 14px;
    background: #edf5ff;
    color: #1e3a8a;
}

.company-domain-hint i {
    color: #0d6efd;
    font-size: 1.1rem;
}

.company-domain-hint strong,
.company-domain-hint span {
    display: block;
}

.company-domain-hint span {
    margin-top: 2px;
    color: #475569;
}

.company-onboarding-card {
    margin-top: 18px;
}

.company-onboarding-list {
    margin: 0;
    padding-left: 22px;
    color: #334155;
}

.company-onboarding-list li {
    margin-bottom: 10px;
}

.company-onboarding-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .role-permission-groups {
        grid-template-columns: 1fr;
    }

    .role-user-row,
    .role-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .role-user-roles {
        justify-content: flex-start;
    }
}

/* 100% viewport density pass: keep the app usable without browser zooming out. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.dashboard-app,
.dashboard-main,
.dashboard-content {
    min-width: 0;
}

.dashboard-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.table-responsive,
.dashboard-table-card,
.dashboard-filter-card,
.app-card,
.maintenance-section-card,
.dof-form-card,
.dof-detail-card,
.documents-recent-card,
.quality-test-form-card,
.quality-parameters-card,
.company-admin-card,
.company-form-card {
    max-width: 100%;
    box-sizing: border-box;
}

.table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
}

.dashboard-table {
    width: 100%;
}

.dashboard-table th,
.dashboard-table td {
    vertical-align: middle;
}

.dashboard-action-title-cell,
.dashboard-table td,
.dashboard-table th {
    min-width: 0;
}

@media (min-width: 992px) {
    .dashboard-app {
        grid-template-columns: 248px minmax(0, 1fr);
    }

    .dashboard-sidebar .offcanvas-body {
        padding: 14px 12px;
    }

    .dashboard-sidebar-brand {
        min-height: 82px;
        margin-bottom: 12px;
    }

    .dashboard-brand-logo {
        width: 76px;
        height: 76px;
    }

    .dashboard-sidebar-nav {
        gap: 4px;
    }

    .dashboard-nav-item {
        min-height: 42px;
        gap: 10px;
        padding: 0 10px;
        font-size: 0.88rem;
    }

    .dashboard-nav-item i {
        width: 22px;
        font-size: 1rem;
    }

    .dashboard-subnav {
        padding-left: 30px;
    }

    .dashboard-subnav-item {
        min-height: 32px;
        padding-inline: 8px;
        font-size: 0.8rem;
    }

    .dashboard-sidebar-bottom {
        padding-top: 10px;
    }

    .sidebar-quick-link {
        min-height: 38px;
        margin-bottom: 8px;
        padding-inline: 10px;
        font-size: 0.84rem;
    }

    .assigned-count-badge,
    .sidebar-count-badge {
        min-width: 21px;
        height: 21px;
        padding-inline: 6px;
        font-size: 0.72rem;
    }

    .dashboard-sidebar-user {
        gap: 10px;
        padding: 12px 4px 10px;
    }

    .dashboard-sidebar-user strong {
        font-size: 0.86rem;
    }

    .dashboard-sidebar-user span {
        font-size: 0.76rem;
    }

    .dashboard-avatar,
    .dashboard-profile-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.84rem;
    }

    .dashboard-logout {
        min-height: 40px;
        padding-inline: 10px;
        font-size: 0.86rem;
    }

    .dashboard-content {
        padding: 22px 24px 26px;
    }

    .dashboard-page-heading {
        gap: 12px;
        margin-bottom: 18px;
    }

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

    .dashboard-page-heading p {
        margin-top: 4px;
        font-size: 0.92rem;
    }

    .dashboard-page-heading .btn,
    .btn-lg {
        min-height: 42px;
        padding: 0.48rem 0.85rem;
        font-size: 0.92rem;
    }

    .dashboard-metrics {
        gap: 14px;
        margin-bottom: 18px;
    }

    .dashboard-stat-card {
        grid-template-columns: 50px minmax(0, 1fr);
        column-gap: 12px;
        min-height: 84px;
        padding: 15px;
    }

    .dashboard-stat-card::after {
        right: 16px;
        bottom: 14px;
        width: 46px;
        height: 18px;
        border-right-width: 3px;
        border-bottom-width: 3px;
    }

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

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

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

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

    .dashboard-filter-card .form-label {
        margin-bottom: 7px;
        font-size: 0.82rem;
    }

    .dashboard-filter-card .form-control,
    .dashboard-filter-card .form-select {
        min-height: 38px;
        font-size: 0.88rem;
    }

    .dashboard-table-card {
        overflow: hidden;
    }

    .dashboard-table thead th {
        padding: 12px 14px;
        font-size: 0.82rem;
    }

    .dashboard-table tbody td {
        padding: 13px 14px;
        font-size: 0.88rem;
    }

    .dashboard-row-actions {
        gap: 7px;
    }

    .dashboard-row-actions .btn {
        min-height: 34px;
        padding: 0.32rem 0.58rem;
        font-size: 0.78rem;
    }
}

@media (min-width: 992px) and (max-width: 1440px) {
    .dashboard-app {
        grid-template-columns: 232px minmax(0, 1fr);
    }

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

    .dashboard-brand-logo {
        width: 68px;
        height: 68px;
    }

    .dashboard-nav-item {
        min-height: 39px;
        font-size: 0.83rem;
    }

    .dashboard-subnav-item {
        font-size: 0.76rem;
    }

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

    .dashboard-metrics,
    .dof-dashboard-metrics {
        gap: 12px;
    }

    .dashboard-stat-card {
        min-height: 78px;
        padding: 13px;
    }

    .dashboard-table thead th {
        padding: 10px 11px;
        font-size: 0.78rem;
    }

    .dashboard-table tbody td {
        padding: 11px;
        font-size: 0.84rem;
    }

    .assigned-table {
        min-width: 1040px;
    }

    .assigned-page-col-module {
        width: 108px;
    }

    .assigned-page-col-task {
        width: 38%;
    }

    .assigned-page-col-department {
        width: 130px;
    }

    .assigned-page-col-date,
    .assigned-page-col-status {
        width: 124px;
    }

    .assigned-page-col-priority {
        width: 86px;
    }

    .assigned-page-col-actions {
        width: 62px;
    }

    .company-admin-table {
        min-width: 1320px;
    }

    .quality-test-table {
        min-width: 1040px;
    }

    .concrete-table {
        min-width: 1100px;
    }
}

@media (min-width: 992px) and (max-height: 780px) {
    .dashboard-sidebar .offcanvas-body {
        padding-block: 10px;
    }

    .dashboard-sidebar-brand {
        min-height: 64px;
        margin-bottom: 8px;
    }

    .dashboard-brand-logo {
        width: 58px;
        height: 58px;
    }

    .dashboard-nav-item {
        min-height: 36px;
    }

    .dashboard-subnav-item {
        min-height: 29px;
    }

    .sidebar-quick-link {
        min-height: 34px;
        margin-bottom: 6px;
    }

    .dashboard-sidebar-user {
        padding-block: 9px 8px;
    }

    .dashboard-logout {
        min-height: 36px;
    }

    .dashboard-content {
        padding-top: 16px;
        padding-bottom: 18px;
    }
}

@media (max-width: 991.98px) {
    .dashboard-content {
        padding: 20px 16px 24px;
    }

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

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

@media (max-width: 640px) {
    .dashboard-content {
        padding-inline: 12px;
    }

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

/* Compact fit pass: optimize dense internal screens for native 100% browser zoom. */
.dashboard-body {
    font-size: 14px;
}

.dashboard-page-heading,
.dashboard-filter-grid,
.maintenance-filter-grid,
.assigned-filter-grid,
.quality-test-filter-grid,
.concrete-filter-grid,
.app-form-grid,
.maintenance-form-grid,
.dof-grid,
.audit-question-fields,
.audit-detail-grid {
    min-width: 0;
}

.dashboard-table,
.dashboard-table thead,
.dashboard-table tbody,
.dashboard-table tr,
.dashboard-table th,
.dashboard-table td {
    max-width: 100%;
}

.dashboard-table th,
.dashboard-table td {
    overflow-wrap: anywhere;
}

.dashboard-table .btn,
.dashboard-table .badge,
.dashboard-table .status-pill {
    max-width: 100%;
}

.dashboard-row-actions {
    min-width: 0;
}

@media (min-width: 992px) {
    .dashboard-body {
        font-size: 13.25px;
    }

    .dashboard-app {
        grid-template-columns: 220px minmax(0, 1fr);
    }

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

    .dashboard-sidebar .offcanvas-body {
        padding: 10px 10px;
    }

    .dashboard-sidebar-brand {
        min-height: 62px;
        margin-bottom: 8px;
    }

    .dashboard-brand-logo {
        width: 58px;
        height: 58px;
    }

    .dashboard-nav-item {
        min-height: 36px;
        gap: 8px;
        padding: 0 9px;
        font-size: 0.78rem;
    }

    .dashboard-nav-item i {
        width: 18px;
        font-size: 0.92rem;
    }

    .dashboard-subnav {
        padding: 2px 0 4px 24px;
    }

    .dashboard-subnav-item {
        min-height: 28px;
        gap: 7px;
        padding: 0 7px;
        font-size: 0.72rem;
    }

    .sidebar-quick-link {
        min-height: 32px;
        margin-bottom: 6px;
        gap: 8px;
        padding: 0 9px;
        font-size: 0.76rem;
    }

    .dashboard-sidebar-user {
        gap: 8px;
        padding: 8px 2px;
    }

    .dashboard-sidebar-user strong {
        font-size: 0.78rem;
    }

    .dashboard-sidebar-user span {
        font-size: 0.7rem;
    }

    .dashboard-avatar,
    .dashboard-profile-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.76rem;
    }

    .dashboard-logout {
        min-height: 34px;
        gap: 9px;
        padding: 0 9px;
        font-size: 0.76rem;
    }

    .dashboard-page-heading {
        margin-bottom: 14px;
    }

    .dashboard-page-heading h2 {
        font-size: 1.38rem;
        line-height: 1.15;
    }

    .dashboard-page-heading p {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .dashboard-page-heading .btn,
    .btn-lg {
        min-height: 36px;
        padding: 0.38rem 0.7rem;
        font-size: 0.82rem;
    }

    .dashboard-alert-stack {
        gap: 8px;
        margin-bottom: 14px;
    }

    .dashboard-alert-stack .alert {
        min-height: 46px;
        padding: 10px 42px 10px 14px;
        font-size: 0.82rem;
    }

    .dashboard-metrics,
    .dof-dashboard-metrics,
    .audit-dashboard-metrics,
    .maintenance-metrics,
    .quality-test-metrics,
    .documents-summary-grid {
        gap: 10px;
        margin-bottom: 14px;
    }

    .dashboard-stat-card,
    .documents-summary-card {
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 10px;
        min-height: 66px;
        padding: 10px;
    }

    .dashboard-stat-card::after,
    .documents-summary-card::after {
        display: none;
    }

    .dashboard-stat-card .stat-icon,
    .documents-summary-icon {
        width: 38px;
        height: 38px;
        border-radius: 9px;
        font-size: 1.05rem;
    }

    .dashboard-stat-card .stat-label,
    .documents-summary-label {
        font-size: 0.72rem;
        line-height: 1.15;
    }

    .dashboard-stat-card strong,
    .documents-summary-card strong {
        font-size: 1.28rem;
        line-height: 1;
    }

    .dashboard-stat-card small,
    .documents-summary-card small {
        font-size: 0.68rem;
    }

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

    .dashboard-filter-grid,
    .maintenance-filter-grid,
    .quality-test-filter-grid,
    .concrete-filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
        gap: 10px;
    }

    .assigned-filter-grid {
        grid-template-columns: minmax(160px, 1.25fr) repeat(5, minmax(96px, 0.72fr)) auto;
        gap: 8px;
    }

    .dashboard-filter-card .form-label {
        margin-bottom: 4px;
        font-size: 0.72rem;
    }

    .dashboard-filter-card .form-control,
    .dashboard-filter-card .form-select {
        min-height: 34px;
        padding: 0.35rem 0.58rem;
        font-size: 0.78rem;
    }

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

    .dashboard-search-control i {
        left: 11px;
    }

    .dashboard-filter-actions {
        gap: 7px;
    }

    .dashboard-filter-actions .btn {
        min-width: 76px;
        min-height: 34px;
        padding-inline: 9px;
        font-size: 0.76rem;
    }

    .dashboard-table thead th {
        padding: 8px 9px;
        font-size: 0.72rem;
        line-height: 1.15;
        white-space: normal;
    }

    .dashboard-table tbody td {
        padding: 8px 9px;
        font-size: 0.76rem;
        line-height: 1.22;
    }

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

    .dashboard-action-title-cell a {
        line-height: 1.2;
    }

    .dashboard-action-title-cell span {
        margin-top: 3px;
        line-height: 1.28;
    }

    .status-pill,
    .badge {
        min-height: 22px;
        padding: 4px 7px;
        font-size: 0.68rem;
        line-height: 1.1;
        white-space: normal;
    }

    .dashboard-row-actions {
        gap: 4px;
        justify-content: flex-end;
    }

    .dashboard-row-actions .btn,
    .dof-dashboard-table .dashboard-row-actions .btn {
        min-height: 28px;
        padding: 4px 6px;
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .dof-dashboard-table .dof-approval-request-btn {
        min-width: 112px;
    }

    .dashboard-table-footer {
        padding: 10px 12px;
        font-size: 0.78rem;
    }

    .app-card,
    .app-form-card,
    .maintenance-form-card,
    .dof-form-card,
    .dof-side-card,
    .audit-question-card,
    .audit-history-card,
    .audit-builder-card,
    .quality-test-form-card,
    .quality-parameters-card,
    .company-admin-card,
    .company-form-card {
        padding: 14px;
    }

    .app-form-grid,
    .maintenance-form-grid,
    .dof-grid,
    .audit-question-fields,
    .audit-detail-grid {
        grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
        gap: 12px;
    }

    .dof-layout,
    .dof-detail-layout,
    .maintenance-detail-layout,
    .audit-layout,
    .documents-detail-layout {
        gap: 14px;
    }

    .dof-layout,
    .dof-detail-layout,
    .maintenance-detail-layout {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
    }

    .assigned-table {
        min-width: 960px;
    }

    .assigned-page-col-module {
        width: 92px;
    }

    .assigned-page-col-task {
        width: 34%;
    }

    .assigned-page-col-department {
        width: 116px;
    }

    .assigned-page-col-date,
    .assigned-page-col-status {
        width: 110px;
    }

    .assigned-page-col-priority {
        width: 76px;
    }

    .assigned-page-col-actions {
        width: 50px;
    }

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

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

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

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

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

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

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

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

    .quality-test-table {
        min-width: 980px;
    }

    .concrete-table {
        min-width: 1020px;
    }

    .company-admin-table {
        min-width: 1320px;
    }
}

@media (min-width: 992px) and (max-width: 1280px) {
    .dashboard-body {
        font-size: 12.5px;
    }

    .dashboard-app {
        grid-template-columns: 204px minmax(0, 1fr);
    }

    .dashboard-content {
        padding: 12px 14px 16px;
    }

    .dashboard-brand-logo {
        width: 50px;
        height: 50px;
    }

    .dashboard-nav-item {
        min-height: 33px;
        font-size: 0.72rem;
    }

    .dashboard-subnav-item {
        font-size: 0.68rem;
    }

    .dashboard-metrics,
    .dof-dashboard-metrics,
    .audit-dashboard-metrics,
    .maintenance-metrics,
    .quality-test-metrics,
    .documents-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .dashboard-stat-card,
    .documents-summary-card {
        min-height: 58px;
        padding: 9px;
    }

    .dashboard-table thead th {
        padding: 7px;
        font-size: 0.68rem;
    }

    .dashboard-table tbody td {
        padding: 7px;
        font-size: 0.72rem;
    }

    .dashboard-row-actions .btn,
    .dof-dashboard-table .dashboard-row-actions .btn {
        padding-inline: 5px;
        font-size: 0.64rem;
    }

    .dashboard-filter-grid,
    .maintenance-filter-grid,
    .quality-test-filter-grid,
    .concrete-filter-grid,
    .assigned-filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    }
}

@media (max-width: 991.98px) {
    html,
    body {
        overflow-x: hidden;
    }

    .dashboard-body {
        font-size: 14px;
    }

    .dashboard-content {
        width: 100%;
        max-width: 100vw;
        padding: 64px 14px 20px;
    }

    .dashboard-filter-grid,
    .maintenance-filter-grid,
    .quality-test-filter-grid,
    .concrete-filter-grid,
    .assigned-filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
    }

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

    .dashboard-filter-actions .btn,
    .assigned-filter-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .dashboard-table:not(.assigned-table):not(.dof-dashboard-table) {
        min-width: 760px;
    }
}

@media (max-width: 576px) {
    .dashboard-body {
        font-size: 13px;
    }

    .dashboard-content {
        padding: 58px 10px 16px;
    }

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

    .dashboard-stat-card,
    .documents-summary-card {
        min-height: 78px;
        padding: 12px;
    }

    .dashboard-filter-card,
    .dashboard-table-card {
        border-radius: 10px;
    }

    .dashboard-filter-grid,
    .maintenance-filter-grid,
    .quality-test-filter-grid,
    .concrete-filter-grid,
    .assigned-filter-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-filter-actions,
    .assigned-filter-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-table:not(.assigned-table):not(.dof-dashboard-table) {
        min-width: 620px;
    }
}

/* Keep the sidebar brand visible after compact density rules. */
@media (min-width: 992px) {
    .dashboard-sidebar-brand {
        min-height: 92px;
        margin-bottom: 12px;
        padding: 12px 8px 16px;
    }

    .dashboard-brand-logo {
        width: min(100%, 178px);
        max-width: 178px;
        height: auto;
    }
}

@media (min-width: 992px) and (max-width: 1280px) {
    .dashboard-sidebar-brand {
        min-height: 84px;
        padding-block: 10px 14px;
    }

    .dashboard-brand-logo {
        width: min(100%, 164px);
        max-width: 164px;
        height: auto;
    }
}

/* Final typography and viewport balance pass for the internal app shell. */
.dashboard-body {
    color: var(--vp-text-primary);
    font-family: Inter, Manrope, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13.5px;
    line-height: 1.45;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.dashboard-body *,
.dashboard-body *::before,
.dashboard-body *::after {
    box-sizing: border-box;
}

.dashboard-app,
.dashboard-content,
.dashboard-page-heading,
.app-page-header,
.app-page-title,
.dashboard-filter-card,
.dashboard-table-card,
.app-card,
.dashboard-table-wrapper,
.table-responsive {
    min-width: 0;
}

.dashboard-content {
    color: #15233a;
}

.dashboard-page-heading,
.app-page-header {
    gap: 14px;
}

.dashboard-page-heading h2,
.app-page-header h2 {
    color: #0f1f38;
    font-size: clamp(1.38rem, 1.08rem + 0.6vw, 1.78rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.dashboard-page-heading p,
.app-page-header p,
.app-section-header p {
    color: #5f6f87;
    max-width: 82ch;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.42;
}

.app-page-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.05rem;
}

.dashboard-filter-card,
.dashboard-table-card,
.app-card,
.quality-parameters-card,
.document-detail-card,
.documents-summary-card,
.dashboard-stat-card {
    border-color: #dbe5f1;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dashboard-stat-card,
.documents-summary-card {
    min-width: 0;
}

.dashboard-stat-card h3,
.documents-summary-card h3,
.documents-category-card h3,
.app-card h3,
.app-section-header h3 {
    color: #13223a;
    font-size: 0.92rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.dashboard-stat-card p,
.documents-summary-card p,
.documents-category-card p,
.app-card p {
    color: #63738b;
    font-size: 0.8rem;
    line-height: 1.35;
}

.dashboard-stat-value,
.documents-summary-value {
    color: #1160ff;
    font-size: clamp(1.28rem, 1rem + 0.55vw, 1.78rem);
    line-height: 1;
}

.form-label,
.dashboard-filter-card label,
.app-form-label {
    color: #12223a;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: 0;
}

.form-control,
.form-select,
.input-group-text,
textarea.form-control {
    min-width: 0;
    min-height: 36px;
    color: #172033;
    font-size: 0.82rem;
    line-height: 1.35;
    border-color: #cfdae8;
    border-radius: 9px;
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: #8a98ab;
}

.btn {
    min-width: 0;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.btn-sm,
.dashboard-row-actions .btn,
.dof-dashboard-table .dashboard-row-actions .btn {
    font-size: 0.72rem;
    line-height: 1.15;
}

.btn i,
.btn svg {
    flex: 0 0 auto;
}

.badge,
.status-pill,
.document-status,
.assigned-page-status,
.dof-due-status,
.quality-strength-pill {
    max-width: 100%;
    line-height: 1.15;
    letter-spacing: 0;
}

.vp-status-badge,
.status-pill,
.document-status,
.assigned-page-status,
.dof-due-status {
    min-height: 25px;
    padding: 4px 8px;
    gap: 5px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
}

.vp-status-badge.is-long {
    max-width: 176px;
}

.vp-status-badge span,
.status-pill span,
.document-status span,
.assigned-page-status span,
.dof-due-status span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-table-wrapper,
.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.dashboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.dashboard-table thead th {
    color: #0f1f38;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: normal;
    word-break: normal;
}

.dashboard-table tbody td {
    color: #15233a;
    font-size: 0.78rem;
    line-height: 1.32;
    vertical-align: middle;
}

.dashboard-table a:not(.btn),
.dashboard-action-title-cell a,
.assigned-task-title,
.documents-table-title {
    color: #075fe8;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.26;
    text-decoration-thickness: 1px;
    overflow-wrap: anywhere;
}

.dashboard-action-title-cell span,
.dashboard-action-title-cell small,
.assigned-task-description,
.documents-table-meta,
.quality-test-muted-line {
    color: #5f6f87;
    font-size: 0.75rem;
    line-height: 1.32;
}

.table-disclosure-title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.table-disclosure-title > a,
.table-disclosure-title > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-disclosure-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    color: #64748b;
    background: transparent;
    border: 0;
    border-radius: 999px;
    line-height: 1;
    transition: color 140ms ease, background 140ms ease, transform 140ms ease;
}

.table-disclosure-toggle:hover {
    color: #075fe8;
    background: #eaf3ff;
}

.table-disclosure-toggle i {
    font-size: 0.78rem;
    transition: transform 140ms ease;
}

.table-disclosure-toggle:not(.collapsed) i {
    transform: rotate(90deg);
}

.table-disclosure-body {
    margin: 8px 0 0 28px;
    padding: 8px 10px;
    color: #53657d;
    background: #f8fbff;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.42;
    white-space: normal;
    overflow-wrap: anywhere;
}

.table-disclosure-body p {
    margin: 0;
}

.table-disclosure-body p + .sub-action-inline-progress,
.table-disclosure-body p + .dof-meta-line {
    margin-top: 7px;
}

.dashboard-row-actions {
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
}

.dashboard-row-actions .btn {
    min-width: 0;
    padding: 6px 8px;
    white-space: nowrap;
}

.action-dashboard-table .dashboard-action-title-cell {
    min-width: 260px;
}

.action-dashboard-table th:first-child,
.action-dashboard-table td:first-child {
    width: 44%;
}

.action-dashboard-table th:last-child,
.action-dashboard-table td:last-child {
    min-width: 132px;
}

.dashboard-table td,
.dashboard-table th {
    overflow-wrap: anywhere;
}

.dashboard-table td:has(.dashboard-row-actions),
.dashboard-table th:last-child {
    overflow-wrap: normal;
}

.assigned-table,
.dof-dashboard-table,
.quality-test-table,
.concrete-table,
.maintenance-table,
.vehicle-table,
.documents-table {
    table-layout: fixed;
}

.assigned-page-col-module {
    width: 112px;
}

.assigned-page-col-task {
    width: 36%;
}

.assigned-page-col-department {
    width: 140px;
}

.assigned-page-col-date,
.assigned-page-col-status {
    width: 126px;
}

.assigned-page-col-priority {
    width: 92px;
}

.assigned-page-col-actions {
    width: 64px;
}

.dof-dashboard-table .dashboard-row-actions,
.maintenance-table .dashboard-row-actions,
.vehicle-table .dashboard-row-actions {
    flex-wrap: wrap;
}

.dof-dashboard-table .dof-evidence-count-btn,
.dashboard-table .dof-evidence-count-btn {
    max-width: 100%;
    overflow: hidden;
}

.dof-dashboard-table .dof-evidence-count-btn span,
.dashboard-table .dof-evidence-count-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-quick-link,
.dashboard-nav-item,
.dashboard-subnav-item {
    letter-spacing: 0;
}

.dashboard-nav-item {
    color: #18304f;
    font-size: 0.82rem;
    font-weight: 750;
}

.dashboard-subnav-item {
    color: #21415f;
    font-size: 0.78rem;
    font-weight: 700;
}

.sidebar-quick-link {
    color: #172b47;
    font-size: 0.8rem;
    font-weight: 750;
}

.dashboard-sidebar-user strong,
.dashboard-sidebar-user span {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 992px) {
    .dashboard-content {
        padding: 18px 20px 22px;
    }
}

@media (min-width: 992px) and (max-width: 1366px) {
    .dashboard-body {
        font-size: 12.6px;
    }

    .dashboard-app {
        grid-template-columns: 216px minmax(0, 1fr);
    }

    .dashboard-content {
        padding: 12px 14px 16px;
    }

    .dashboard-page-heading,
    .app-page-header {
        margin-bottom: 14px;
    }

    .dashboard-page-heading h2,
    .app-page-header h2 {
        font-size: clamp(1.26rem, 1rem + 0.45vw, 1.52rem);
    }

    .dashboard-page-heading p,
    .app-page-header p {
        font-size: 0.78rem;
    }

    .dashboard-filter-card {
        padding: 12px;
    }

    .dashboard-filter-grid,
    .maintenance-filter-grid,
    .quality-test-filter-grid,
    .concrete-filter-grid,
    .assigned-filter-grid {
        gap: 10px;
    }

    .form-control,
    .form-select,
    .input-group-text {
        min-height: 34px;
        font-size: 0.76rem;
    }

    .btn {
        font-size: 0.75rem;
    }

    .dashboard-table thead th {
        padding: 7px;
        font-size: 0.68rem;
    }

    .dashboard-table tbody td {
        padding: 7px;
        font-size: 0.72rem;
    }

    .vp-status-badge,
    .status-pill,
    .document-status,
    .assigned-page-status,
    .dof-due-status {
        min-height: 24px;
        padding: 4px 7px;
        font-size: 0.66rem;
    }

    .vp-status-badge.is-long {
        max-width: 142px;
    }

    .dashboard-row-actions .btn {
        padding: 5px 6px;
        font-size: 0.65rem;
    }
}

@media (max-width: 991.98px) {
    .dashboard-body {
        font-size: 13.5px;
    }

    .dashboard-page-heading,
    .app-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-page-heading h2,
    .app-page-header h2 {
        font-size: clamp(1.28rem, 5vw, 1.65rem);
    }

    .dashboard-page-heading p,
    .app-page-header p {
        font-size: 0.84rem;
    }

    .app-page-actions,
    .app-section-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .app-page-actions .btn,
    .app-section-actions .btn {
        width: auto;
    }

    .vp-status-badge.is-long {
        max-width: 190px;
    }
}

@media (max-width: 576px) {
    .dashboard-body {
        font-size: 12.8px;
    }

    .app-page-icon {
        width: 38px;
        height: 38px;
    }

    .dashboard-filter-card,
    .dashboard-table-card,
    .app-card {
        border-radius: 10px;
    }

    .dashboard-stat-card h3,
    .documents-summary-card h3,
    .app-card h3 {
        font-size: 0.86rem;
    }

    .dashboard-table thead th {
        font-size: 0.66rem;
    }

    .dashboard-table tbody td {
        font-size: 0.72rem;
    }

    .vp-status-badge.is-long {
        max-width: 150px;
    }
}

/* Softer correction after the global balance pass: keep tables readable. */
.dashboard-page-heading h2,
.app-page-header h2 {
    font-weight: 760;
}

.dashboard-stat-card h3,
.documents-summary-card h3,
.documents-category-card h3,
.app-card h3,
.app-section-header h3,
.dashboard-table thead th,
.form-label,
.dashboard-filter-card label,
.app-form-label {
    font-weight: 700;
}

.btn,
.vp-status-badge,
.status-pill,
.document-status,
.assigned-page-status,
.dof-due-status {
    font-weight: 700;
}

.dashboard-table a:not(.btn),
.dashboard-action-title-cell a,
.assigned-task-title,
.documents-table-title,
.maintenance-ref-link,
.maintenance-title-cell a {
    font-weight: 700;
}

.dashboard-table tbody td {
    font-size: 0.8rem;
    line-height: 1.42;
}

.dashboard-action-title-cell span,
.dashboard-action-title-cell small,
.assigned-task-description,
.documents-table-meta,
.quality-test-muted-line,
.maintenance-title-cell span,
.maintenance-muted-line {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.maintenance-table,
.vehicle-table {
    table-layout: auto;
    min-width: 980px;
}

.maintenance-table th,
.maintenance-table td,
.vehicle-table th,
.vehicle-table td {
    overflow-wrap: normal;
    word-break: normal;
}

.maintenance-title-cell,
.vehicle-table td {
    min-width: 0;
}

.maintenance-title-cell a,
.maintenance-title-cell span {
    max-width: 100%;
}

.maintenance-table td[data-label="Bildiren Departman"] {
    min-width: 132px;
    white-space: normal;
}

.maintenance-table td[data-label="Makine"] {
    min-width: 190px;
}

.maintenance-table td[data-label="Arıza Başlığı"] {
    min-width: 260px;
}

.vehicle-due-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.2;
}

.vehicle-due-summary > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-reminder-panel {
    grid-column: span 2;
}

.vehicle-reminder-panel small {
    display: block;
    margin-top: 6px;
    font-size: 0.76rem;
    line-height: 1.35;
}

.vehicle-reminder-dropdown {
    width: 100%;
}

.vehicle-reminder-toggle {
    display: flex;
    align-items: center;
    min-height: 38px;
    color: #0f172a;
    background-color: #ffffff;
}

.vehicle-reminder-menu {
    width: 100%;
    max-height: 260px;
    padding: 6px;
    overflow-y: auto;
    border: 1px solid #cbd8ea;
    border-radius: 10px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.vehicle-reminder-option {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    margin: 0;
    color: #0f172a;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.25;
    cursor: pointer;
}

.vehicle-reminder-option:hover {
    background: #eff6ff;
    color: #0d6efd;
}

.vehicle-reminder-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-reminder-option .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}

.vehicle-fuel-table {
    min-width: 520px;
}

.vehicle-fuel-table th:first-child,
.vehicle-fuel-table td:first-child {
    width: 180px;
}

.vehicle-fuel-table .form-control {
    max-width: 220px;
}

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

.suggestion-form-card {
    gap: 22px;
}

.suggestion-score-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: #f8fbff;
    border: 1px solid #dce7f5;
    border-radius: 14px;
}

.suggestion-score-panel h3 {
    margin: 0;
    color: #10233f;
    font-size: 1rem;
    font-weight: 680;
}

.suggestion-score-panel p {
    margin: 4px 0 0;
    color: #66768d;
    font-size: 0.84rem;
}

.suggestion-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.suggestion-score-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #d8e4f2;
    border-radius: 12px;
    cursor: pointer;
}

.suggestion-score-option:hover {
    border-color: #a9c7ff;
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.08);
}

.suggestion-score-option span {
    min-width: 0;
    color: #17233a;
    font-size: 0.88rem;
    font-weight: 560;
}

.suggestion-score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    padding: 0 12px;
    color: #067647;
    background: #dcfae6;
    border: 1px solid #abefc6;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 720;
}

.suggestion-score-pill.is-negative {
    color: #b42318;
    background: #fee4e2;
    border-color: #fecdca;
}

.suggestion-score-list {
    display: grid;
    gap: 8px;
}

.suggestion-score-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    color: #66768d;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.84rem;
}

.suggestion-score-list > div.is-selected {
    color: #10233f;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.suggestion-evaluation-form {
    display: grid;
    gap: 14px;
}

.suggestion-evaluator-note {
    align-items: center;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 14px;
    color: #0f3f7a;
    display: inline-flex;
    font-size: 0.92rem;
    gap: 8px;
    padding: 10px 13px;
    width: fit-content;
}

.suggestion-evaluator-note i {
    color: #0d6efd;
}

.suggestion-rating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.suggestion-rating-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fbff;
    border: 1px solid #dce7f5;
    border-radius: 12px;
}

.suggestion-rating-item strong,
.suggestion-rating-item span,
.suggestion-evaluation-list span,
.suggestion-evaluation-list strong,
.suggestion-evaluation-list small {
    display: block;
}

.suggestion-rating-item strong {
    color: #10233f;
    font-size: 0.88rem;
    font-weight: 650;
}

.suggestion-rating-item span,
.suggestion-evaluation-list small {
    color: #66768d;
    font-size: 0.78rem;
}

.suggestion-evaluation-list {
    display: grid;
    gap: 8px;
}

.suggestion-evaluation-list > div {
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.suggestion-evaluation-list span {
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 700;
}

.suggestion-evaluation-list strong {
    color: #10233f;
    font-size: 0.84rem;
    font-weight: 650;
}

.suggestion-detail-page {
    display: grid;
    gap: 18px;
}

.suggestion-hero-card,
.suggestion-definition-card,
.suggestion-evaluation-card,
.suggestion-side-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
    border: 1px solid rgba(191, 219, 254, 0.85);
    border-radius: 20px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.suggestion-hero-card {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 118px;
    padding: 24px 28px;
}

.suggestion-hero-card::after,
.suggestion-definition-card::after,
.suggestion-evaluation-card::after,
.suggestion-side-card::after {
    background-image:
        linear-gradient(90deg, rgba(34, 211, 238, 0.25) 1px, transparent 1px),
        linear-gradient(180deg, rgba(37, 99, 235, 0.14) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
    position: absolute;
}

.suggestion-hero-main,
.suggestion-hero-actions,
.suggestion-card-heading,
.suggestion-side-title {
    align-items: center;
    display: flex;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.suggestion-hero-icon {
    align-items: center;
    background: linear-gradient(145deg, #eff6ff, #ffffff);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
    color: #0d6efd;
    display: inline-flex;
    font-size: 1.55rem;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.suggestion-hero-title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.suggestion-hero-title-row h2 {
    color: #07163a;
    font-size: clamp(1.6rem, 2.1vw, 2.4rem);
    font-weight: 760;
    letter-spacing: 0;
    margin: 0;
}

.suggestion-hero-main p,
.suggestion-card-heading p,
.suggestion-side-card p {
    color: #587096;
    margin: 0;
}

.suggestion-detail-layout-v2 {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.suggestion-detail-main-v2 {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.suggestion-definition-card,
.suggestion-evaluation-card,
.suggestion-side-card {
    padding: 24px;
}

.suggestion-card-accent {
    background: linear-gradient(180deg, #0d6efd, #22d3ee);
    border-radius: 999px;
    bottom: 22px;
    left: 22px;
    position: absolute;
    top: 22px;
    width: 5px;
}

.suggestion-card-icon {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
    color: #0d6efd;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.18rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.suggestion-card-heading {
    margin-left: 34px;
}

.suggestion-card-heading h3,
.suggestion-side-title h3 {
    color: #07163a;
    font-size: 1.14rem;
    font-weight: 720;
    margin: 0;
}

.suggestion-definition-text {
    color: #203452;
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 18px 0 0 34px;
    position: relative;
    z-index: 1;
}

.suggestion-evaluation-card {
    min-height: 520px;
}

.suggestion-evaluation-bg {
    align-items: center;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.14), rgba(34, 211, 238, 0.12));
    border: 1px solid rgba(147, 197, 253, 0.42);
    border-radius: 28px;
    color: rgba(13, 110, 253, 0.28);
    display: flex;
    font-size: 4.8rem;
    height: 132px;
    justify-content: center;
    position: absolute;
    right: 70px;
    top: 46px;
    transform: rotate(-8deg);
    width: 132px;
}

.suggestion-evaluation-form-v2 {
    display: grid;
    gap: 16px;
    margin-left: 34px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.suggestion-rating-grid-v2 {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.suggestion-rating-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #dbe7f6;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 10px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
}

.suggestion-rating-card .form-select {
    grid-column: 1 / -1;
    min-height: 38px;
}

.suggestion-rating-icon {
    align-items: center;
    background: linear-gradient(145deg, #eff6ff, #ffffff);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    color: #0d6efd;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.suggestion-rating-copy {
    min-width: 0;
}

.suggestion-rating-copy strong,
.suggestion-rating-copy span {
    display: block;
}

.suggestion-rating-copy strong {
    color: #07163a;
    font-size: 0.9rem;
    font-weight: 680;
    line-height: 1.25;
}

.suggestion-rating-copy span {
    color: #4b6390;
    font-size: 0.8rem;
    margin-top: 7px;
}

.suggestion-comment-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #dbe7f6;
    border-radius: 16px;
    padding: 14px;
}

.suggestion-comment-label {
    align-items: center;
    color: #07163a;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.suggestion-comment-label .suggestion-rating-icon {
    height: 36px;
    width: 36px;
}

.suggestion-char-note {
    color: #64748b;
    display: block;
    font-size: 0.78rem;
    margin-top: 8px;
    text-align: right;
}

.suggestion-submit-row {
    display: flex;
    justify-content: flex-end;
}

.suggestion-submit-row .btn {
    min-width: 260px;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.24);
}

.suggestion-detail-side-v2 {
    display: grid;
    gap: 18px;
    align-content: start;
}

.suggestion-side-title {
    margin-bottom: 18px;
}

.suggestion-side-title.has-arrow {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
}

.suggestion-side-title.has-arrow > .bi-chevron-right {
    color: #2563eb;
}

.suggestion-score-ring {
    align-items: center;
    background:
        radial-gradient(circle, #ffffff 54%, transparent 56%),
        conic-gradient(#0d6efd var(--score-angle), #bfdbfe 0);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    height: 168px;
    justify-content: center;
    margin: 8px auto 18px;
    position: relative;
    width: 168px;
    z-index: 1;
}

.suggestion-score-ring strong {
    color: #07163a;
    font-size: 2rem;
    font-weight: 760;
}

.suggestion-score-ring span {
    color: #435779;
    font-size: 0.82rem;
    font-weight: 650;
}

.suggestion-score-list-v2,
.suggestion-evaluation-list-v2 {
    display: grid;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.suggestion-score-list-v2 > div,
.suggestion-evaluation-list-v2 > div {
    background: rgba(248, 251, 255, 0.9);
    border: 1px solid #dbe7f6;
    border-radius: 14px;
    padding: 12px;
}

.suggestion-score-list-v2 > div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.suggestion-score-list-v2 span,
.suggestion-evaluation-list-v2 span,
.suggestion-evaluation-list-v2 small {
    color: #587096;
    font-size: 0.82rem;
}

.suggestion-score-list-v2 strong,
.suggestion-evaluation-list-v2 strong {
    color: #07163a;
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
}

.suggestion-score-list-done > div {
    align-items: center;
    display: grid;
    gap: 4px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.suggestion-score-list-done strong {
    align-items: center;
    background: #dcfae6;
    border: 1px solid #abefc6;
    border-radius: 999px;
    color: #067647;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 5px;
    padding: 5px 9px;
    white-space: nowrap;
}

.suggestion-score-list-done > div.is-waiting strong {
    background: #fef3c7;
    border-color: #fde68a;
    color: #b45309;
}

.suggestion-evaluation-locked {
    align-items: center;
    background: rgba(248, 251, 255, 0.86);
    border: 1px dashed #bfdbfe;
    border-radius: 18px;
    color: #435779;
    display: grid;
    gap: 10px;
    justify-items: center;
    margin: 24px 0 0 34px;
    min-height: 180px;
    padding: 28px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.suggestion-evaluation-locked i {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    color: #0d6efd;
    display: inline-flex;
    font-size: 1.5rem;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.suggestion-evaluation-locked strong {
    color: #07163a;
    font-size: 1rem;
}

.suggestion-evaluation-locked span {
    max-width: 520px;
}

.suggestion-evaluator-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.suggestion-evaluator-option {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dbe7f6;
    border-radius: 14px;
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 42px minmax(0, 1fr);
    padding: 12px;
}

.suggestion-evaluator-option:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.suggestion-evaluator-avatar {
    align-items: center;
    background: linear-gradient(145deg, #0d6efd, #22d3ee);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.suggestion-evaluator-option strong,
.suggestion-evaluator-option small {
    display: block;
}

.suggestion-evaluator-option strong {
    color: #10233f;
    font-size: 0.93rem;
    font-weight: 650;
}

.suggestion-evaluator-option small {
    color: #66768d;
    font-size: 0.8rem;
    margin-top: 2px;
}

.suggestion-file-card,
.suggestion-empty-upload-card {
    align-items: center;
    background: rgba(248, 251, 255, 0.88);
    border: 1px dashed #bcd4f6;
    border-radius: 18px;
    color: #0d6efd;
    display: grid;
    gap: 8px;
    justify-items: center;
    min-height: 150px;
    padding: 20px;
    position: relative;
    text-align: center;
    text-decoration: none;
    z-index: 1;
}

.suggestion-file-card i,
.suggestion-empty-upload-card i {
    font-size: 2rem;
}

.suggestion-file-card span,
.suggestion-empty-upload-card strong {
    color: #0d6efd;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.suggestion-file-card small,
.suggestion-empty-upload-card span {
    color: #64748b;
    font-size: 0.82rem;
}

@media (max-width: 1180px) {
    .suggestion-detail-layout-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .suggestion-hero-card,
    .suggestion-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .suggestion-card-heading,
    .suggestion-definition-text,
    .suggestion-evaluation-form-v2,
    .suggestion-evaluation-locked {
        margin-left: 0;
    }

    .suggestion-card-accent,
    .suggestion-evaluation-bg {
        display: none;
    }

    .suggestion-submit-row .btn {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .grid-span-2 {
        grid-column: span 1;
    }

    .suggestion-rating-item {
        grid-template-columns: 1fr;
    }
}

/* Desktop hover sidebar: compact by default, expanded while hovered/focused. */
@media (min-width: 992px) {
    .dashboard-app {
        grid-template-columns: 76px minmax(0, 1fr);
        transition: grid-template-columns 180ms ease;
    }

    .dashboard-app:has(.dashboard-sidebar:hover),
    .dashboard-app:has(.dashboard-sidebar:focus-within) {
        grid-template-columns: 248px minmax(0, 1fr);
    }

    .dashboard-sidebar {
        width: 76px;
        overflow: visible;
        transition: width 180ms ease, box-shadow 180ms ease;
    }

    .dashboard-sidebar:hover,
    .dashboard-sidebar:focus-within {
        width: 248px;
    }

    .dashboard-sidebar .offcanvas-body {
        padding: 14px 10px;
        overflow-x: hidden;
    }

    .dashboard-sidebar-brand {
        justify-content: center;
        min-height: 74px;
        padding: 10px 0 14px;
    }

    .dashboard-brand-logo {
        width: 42px;
        max-width: 42px;
        transition: width 180ms ease, max-width 180ms ease, filter 180ms ease;
    }

    .dashboard-sidebar:hover .dashboard-sidebar-brand,
    .dashboard-sidebar:focus-within .dashboard-sidebar-brand {
        justify-content: flex-start;
        min-height: 92px;
        padding: 12px 8px 16px;
    }

    .dashboard-sidebar:hover .dashboard-brand-logo,
    .dashboard-sidebar:focus-within .dashboard-brand-logo {
        width: min(100%, 178px);
        max-width: 178px;
    }

    .dashboard-nav-item,
    .sidebar-quick-link,
    .dashboard-logout {
        justify-content: center;
        gap: 0;
        padding-inline: 0;
    }

    .dashboard-nav-item i,
    .sidebar-quick-link i,
    .dashboard-logout i {
        flex: 0 0 auto;
        margin: 0;
    }

    .dashboard-nav-item span,
    .dashboard-subnav,
    .sidebar-quick-link span:not(.assigned-count-badge):not(.sidebar-count-badge),
    .dashboard-logout span,
    .dashboard-sidebar-user > div:not(.dashboard-avatar),
    .dashboard-nav-chevron {
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        pointer-events: none;
        transition: max-width 160ms ease, opacity 120ms ease;
    }

    .dashboard-sidebar:hover .dashboard-nav-item,
    .dashboard-sidebar:focus-within .dashboard-nav-item,
    .dashboard-sidebar:hover .sidebar-quick-link,
    .dashboard-sidebar:focus-within .sidebar-quick-link,
    .dashboard-sidebar:hover .dashboard-logout,
    .dashboard-sidebar:focus-within .dashboard-logout {
        justify-content: flex-start;
        gap: 10px;
        padding-inline: 10px;
    }

    .dashboard-sidebar:hover .dashboard-nav-item span,
    .dashboard-sidebar:focus-within .dashboard-nav-item span,
    .dashboard-sidebar:hover .sidebar-quick-link span:not(.assigned-count-badge):not(.sidebar-count-badge),
    .dashboard-sidebar:focus-within .sidebar-quick-link span:not(.assigned-count-badge):not(.sidebar-count-badge),
    .dashboard-sidebar:hover .dashboard-logout span,
    .dashboard-sidebar:focus-within .dashboard-logout span,
    .dashboard-sidebar:hover .dashboard-sidebar-user > div:not(.dashboard-avatar),
    .dashboard-sidebar:focus-within .dashboard-sidebar-user > div:not(.dashboard-avatar),
    .dashboard-sidebar:hover .dashboard-nav-chevron,
    .dashboard-sidebar:focus-within .dashboard-nav-chevron {
        max-width: 180px;
        opacity: 1;
        pointer-events: auto;
    }

    .dashboard-sidebar:hover .dashboard-nav-item-wrap,
    .dashboard-sidebar:focus-within .dashboard-nav-item-wrap {
        min-height: 52px;
        padding-block: 6px;
    }

    .dashboard-sidebar:hover .dashboard-nav-item .dashboard-nav-label-wrap,
    .dashboard-sidebar:focus-within .dashboard-nav-item .dashboard-nav-label-wrap {
        max-width: 168px;
        overflow: visible;
        white-space: normal;
        line-height: 1.2;
    }

    .dashboard-sidebar:hover .dashboard-nav-toggle .dashboard-nav-group-label,
    .dashboard-sidebar:focus-within .dashboard-nav-toggle .dashboard-nav-group-label {
        max-width: 136px;
    }

    .dashboard-sidebar:hover .dashboard-subnav,
    .dashboard-sidebar:focus-within .dashboard-subnav {
        max-width: none;
        opacity: 1;
        overflow: visible;
        pointer-events: auto;
    }

    .dashboard-sidebar-user {
        justify-content: center;
        padding-inline: 0;
    }

    .dashboard-sidebar:hover .dashboard-sidebar-user,
    .dashboard-sidebar:focus-within .dashboard-sidebar-user {
        justify-content: flex-start;
        padding-inline: 4px;
    }

    .assigned-count-badge,
    .sidebar-count-badge {
        margin-left: 0;
    }

    .dashboard-sidebar:hover .assigned-count-badge,
    .dashboard-sidebar:focus-within .assigned-count-badge,
    .dashboard-sidebar:hover .sidebar-count-badge,
    .dashboard-sidebar:focus-within .sidebar-count-badge {
        margin-left: auto;
    }
}

/* Refined expanded sidebar navigation. Keeps the compact hover behavior intact. */
@media (min-width: 992px) {
    .dashboard-app:has(.dashboard-sidebar:hover),
    .dashboard-app:has(.dashboard-sidebar:focus-within) {
        grid-template-columns: 262px minmax(0, 1fr);
    }

    .dashboard-sidebar:hover,
    .dashboard-sidebar:focus-within {
        width: 262px;
        box-shadow: 12px 0 28px rgba(15, 35, 64, 0.07);
    }

    .dashboard-sidebar:hover .offcanvas-body,
    .dashboard-sidebar:focus-within .offcanvas-body {
        padding: 15px 12px;
    }

    .dashboard-sidebar:hover .dashboard-sidebar-nav,
    .dashboard-sidebar:focus-within .dashboard-sidebar-nav {
        gap: 5px;
    }

    .dashboard-sidebar:hover .dashboard-nav-item,
    .dashboard-sidebar:focus-within .dashboard-nav-item,
    .dashboard-sidebar:hover .sidebar-quick-link,
    .dashboard-sidebar:focus-within .sidebar-quick-link {
        position: relative;
        min-height: 43px;
        gap: 12px;
        padding: 0 13px;
        color: #11243f;
        font-size: 0.9rem;
        font-weight: 560;
        letter-spacing: 0;
        border-radius: 11px;
    }

    .dashboard-sidebar:hover .dashboard-nav-item span,
    .dashboard-sidebar:focus-within .dashboard-nav-item span,
    .dashboard-sidebar:hover .sidebar-quick-link span:not(.assigned-count-badge):not(.sidebar-count-badge),
    .dashboard-sidebar:focus-within .sidebar-quick-link span:not(.assigned-count-badge):not(.sidebar-count-badge) {
        max-width: 168px;
    }

    .dashboard-sidebar:hover .dashboard-nav-item i:first-child,
    .dashboard-sidebar:focus-within .dashboard-nav-item i:first-child,
    .dashboard-sidebar:hover .sidebar-quick-link i:first-child,
    .dashboard-sidebar:focus-within .sidebar-quick-link i:first-child {
        width: 23px;
        font-size: 1.08rem;
        color: #172d4f;
    }

    .dashboard-sidebar:hover .dashboard-nav-item:hover,
    .dashboard-sidebar:focus-within .dashboard-nav-item:hover,
    .dashboard-sidebar:hover .dashboard-nav-item.active,
    .dashboard-sidebar:focus-within .dashboard-nav-item.active,
    .dashboard-sidebar:hover .sidebar-quick-link:hover,
    .dashboard-sidebar:focus-within .sidebar-quick-link:hover,
    .dashboard-sidebar:hover .sidebar-quick-link.active,
    .dashboard-sidebar:focus-within .sidebar-quick-link.active {
        color: #0a66ff;
        background: linear-gradient(90deg, #edf5ff 0%, #f8fbff 100%);
        border-color: #b8d3ff;
        box-shadow: inset 4px 0 0 #1773ff;
    }

    .dashboard-sidebar:hover .dashboard-nav-item .bi-house-door,
    .dashboard-sidebar:focus-within .dashboard-nav-item .bi-house-door {
        color: #1d6fff;
    }

    .dashboard-sidebar:hover .dashboard-nav-item .bi-people,
    .dashboard-sidebar:focus-within .dashboard-nav-item .bi-people {
        color: #21365d;
    }

    .dashboard-sidebar:hover .dashboard-nav-item .bi-buildings,
    .dashboard-sidebar:focus-within .dashboard-nav-item .bi-buildings,
    .dashboard-sidebar:hover .dashboard-nav-item .bi-diagram-3,
    .dashboard-sidebar:focus-within .dashboard-nav-item .bi-diagram-3 {
        color: #15866f;
    }

    .dashboard-sidebar:hover .dashboard-nav-item .bi-shield-lock,
    .dashboard-sidebar:focus-within .dashboard-nav-item .bi-shield-lock,
    .dashboard-sidebar:hover .dashboard-nav-item .bi-car-front,
    .dashboard-sidebar:focus-within .dashboard-nav-item .bi-car-front {
        color: #5642b6;
    }

    .dashboard-sidebar:hover .dashboard-nav-item .bi-wrench-adjustable,
    .dashboard-sidebar:focus-within .dashboard-nav-item .bi-wrench-adjustable {
        color: #c97906;
    }

    .dashboard-sidebar:hover .dashboard-nav-item .bi-person-vcard,
    .dashboard-sidebar:focus-within .dashboard-nav-item .bi-person-vcard {
        color: #0f7c8a;
    }

    .dashboard-sidebar:hover .dashboard-nav-item .bi-box-seam,
    .dashboard-sidebar:focus-within .dashboard-nav-item .bi-box-seam,
    .dashboard-sidebar:hover .dashboard-subnav-item .bi-box-seam,
    .dashboard-sidebar:focus-within .dashboard-subnav-item .bi-box-seam {
        color: #1169ff;
    }

    .dashboard-sidebar:hover .dashboard-nav-item .bi-shield-check,
    .dashboard-sidebar:focus-within .dashboard-nav-item .bi-shield-check {
        color: #0f7c8a;
    }

    .dashboard-sidebar:hover .dashboard-nav-item .bi-clipboard-check,
    .dashboard-sidebar:focus-within .dashboard-nav-item .bi-clipboard-check {
        color: #5d46b4;
    }

    .dashboard-sidebar:hover .dashboard-nav-item .bi-file-earmark-text,
    .dashboard-sidebar:focus-within .dashboard-nav-item .bi-file-earmark-text {
        color: #1970d9;
    }

    .dashboard-sidebar:hover .dashboard-nav-chevron,
    .dashboard-sidebar:focus-within .dashboard-nav-chevron {
        width: auto !important;
        margin-left: auto;
        font-size: 0.9rem !important;
    }

    .dashboard-sidebar:hover .dashboard-subnav,
    .dashboard-sidebar:focus-within .dashboard-subnav {
        margin: 5px 0 4px 36px;
        padding: 6px;
        background: rgba(255, 255, 255, 0.86);
        border: 1px solid #cbd8ea;
        border-radius: 12px;
        box-shadow: 0 10px 22px rgba(15, 35, 64, 0.04);
    }

    .dashboard-sidebar:hover .dashboard-subnav-item,
    .dashboard-sidebar:focus-within .dashboard-subnav-item {
        min-height: 36px;
        gap: 10px;
        padding: 0 10px;
        color: #1c2f4e;
        font-size: 0.82rem;
        font-weight: 540;
        border-radius: 9px;
    }

    .dashboard-sidebar:hover .dashboard-subnav-item i,
    .dashboard-sidebar:focus-within .dashboard-subnav-item i {
        width: 19px;
        font-size: 0.98rem;
    }

    .dashboard-sidebar:hover .dashboard-subnav-item:hover,
    .dashboard-sidebar:focus-within .dashboard-subnav-item:hover,
    .dashboard-sidebar:hover .dashboard-subnav-item.active,
    .dashboard-sidebar:focus-within .dashboard-subnav-item.active {
        color: #0a66ff;
        background: linear-gradient(90deg, #eaf3ff 0%, #f5f9ff 100%);
        border-color: #d7e7ff;
        box-shadow: inset 4px 0 0 #1773ff;
    }

    .dashboard-sidebar:hover .dashboard-subnav-item .bi-droplet,
    .dashboard-sidebar:focus-within .dashboard-subnav-item .bi-droplet,
    .dashboard-sidebar:hover .dashboard-subnav-item .bi-moisture,
    .dashboard-sidebar:focus-within .dashboard-subnav-item .bi-moisture {
        color: #596477;
    }

    .dashboard-sidebar:hover .dashboard-subnav-item .bi-grid-3x3-gap,
    .dashboard-sidebar:focus-within .dashboard-subnav-item .bi-grid-3x3-gap,
    .dashboard-sidebar:hover .dashboard-subnav-item .bi-bezier2,
    .dashboard-sidebar:focus-within .dashboard-subnav-item .bi-bezier2 {
        color: #667085;
    }

    .dashboard-sidebar:hover .dashboard-sidebar-bottom,
    .dashboard-sidebar:focus-within .dashboard-sidebar-bottom {
        gap: 5px;
        padding-top: 12px;
    }

    .dashboard-sidebar:hover .sidebar-quick-link,
    .dashboard-sidebar:focus-within .sidebar-quick-link {
        min-height: 42px;
        margin-bottom: 0;
    }

    .dashboard-sidebar:hover .notification-sidebar-link i:first-child,
    .dashboard-sidebar:focus-within .notification-sidebar-link i:first-child {
        color: #c97906;
    }

    .dashboard-sidebar:hover .assigned-sidebar-link i:first-child,
    .dashboard-sidebar:focus-within .assigned-sidebar-link i:first-child {
        color: #137988;
    }

    .dashboard-sidebar:hover .assigned-count-badge,
    .dashboard-sidebar:focus-within .assigned-count-badge,
    .dashboard-sidebar:hover .sidebar-count-badge,
    .dashboard-sidebar:focus-within .sidebar-count-badge {
        min-width: 25px;
        height: 25px;
        padding: 0 7px;
        border-radius: 9px;
        font-size: 0.76rem;
        box-shadow: 0 10px 18px rgba(13, 110, 253, 0.18);
    }
}

@media (max-width: 991.98px) {
    .dashboard-nav-item,
    .sidebar-quick-link {
        min-height: 52px;
        gap: 16px;
        color: #11243f;
        font-size: 1rem;
        font-weight: 560;
        border-radius: 14px;
    }

    .dashboard-nav-item i:first-child,
    .sidebar-quick-link i:first-child {
        width: 28px;
        font-size: 1.28rem;
    }

    .dashboard-subnav {
        margin: 8px 0 8px 46px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid #cbd8ea;
        border-radius: 16px;
    }

    .dashboard-subnav-item {
        min-height: 44px;
        gap: 14px;
        border-radius: 12px;
    }
}

.company-module-panel {
    margin-top: 24px;
    padding: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #dce7f5;
    border-radius: 14px;
}

.company-package-panel {
    margin-top: 24px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #dce7f5;
    border-radius: 14px;
}

.company-module-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.company-module-panel-header h3 {
    margin: 0;
    color: #10233f;
    font-size: 1rem;
    font-weight: 760;
    line-height: 1.2;
}

.company-module-panel-header p {
    max-width: 760px;
    margin: 5px 0 0;
    color: #66768d;
    font-size: 0.82rem;
    line-height: 1.45;
}

.company-module-note {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #075fe8;
    background: #edf5ff;
    border: 1px solid #c9ddff;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.company-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

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

.company-module-toggle {
    display: grid;
    grid-template-columns: auto 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 76px;
    margin: 0;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #d8e4f2;
    border-radius: 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.company-package-option {
    display: grid;
    grid-template-columns: auto 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 88px;
    margin: 0;
    padding: 12px;
    background: #fbfdff;
    border: 1px solid #d8e4f2;
    border-radius: 12px;
}

.company-package-option:has(input:checked) {
    background: #edf5ff;
    border-color: #9ec5fe;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.08);
}

.company-package-option .form-check-input {
    margin: 0;
}

.company-module-toggle:hover {
    border-color: #a9c7ff;
    box-shadow: 0 10px 24px rgba(30, 91, 255, 0.08);
    transform: translateY(-1px);
}

.company-module-toggle .form-check-input {
    margin: 0;
}

.company-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #0d6efd;
    background: #eef5ff;
    border: 1px solid #cfe1ff;
    border-radius: 10px;
    font-size: 1rem;
}

.company-module-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.company-module-copy strong {
    color: #12233c;
    font-size: 0.86rem;
    font-weight: 730;
    line-height: 1.22;
}

.company-module-copy small {
    color: #66768d;
    font-size: 0.74rem;
    line-height: 1.32;
}

.company-module-toggle-child {
    min-height: 66px;
    margin-left: 20px;
    background: #fbfdff;
    border-style: dashed;
}

.company-module-toggle-child .company-module-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.company-module-toggle.is-disabled {
    opacity: 0.52;
    transform: none;
}

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

.onboarding-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.onboarding-next-card {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 20px;
}

.onboarding-preset-row {
    display: grid;
    gap: 10px;
}

.onboarding-preset-row .btn {
    justify-content: flex-start;
    min-height: 46px;
    gap: 10px;
    font-weight: 720;
}

.onboarding-preset-row .btn.active {
    color: #0d6efd;
    background: #edf5ff;
    border-color: #9ec5fe;
}

.onboarding-department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.onboarding-check-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 0;
    padding: 10px 12px;
    color: #13243e;
    background: #ffffff;
    border: 1px solid #dbe6f4;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
}

.onboarding-role-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2eaf5;
}

.onboarding-role-panel h3,
.onboarding-summary-section h3 {
    margin: 0 0 10px;
    color: #10233f;
    font-size: 0.96rem;
    font-weight: 780;
}

.onboarding-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

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

.onboarding-status-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 112px;
}

.onboarding-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #0d6efd;
    background: #eef5ff;
    border: 1px solid #cfe1ff;
    border-radius: 14px;
    font-size: 1.25rem;
}

.onboarding-status-card small,
.onboarding-company-summary span {
    display: block;
    color: #66768d;
    font-size: 0.78rem;
    font-weight: 700;
}

.onboarding-status-card strong {
    display: block;
    margin-top: 2px;
    color: #10233f;
    font-size: 1.55rem;
    font-weight: 820;
    line-height: 1;
}

.onboarding-status-card p {
    margin: 6px 0 0;
    color: #66768d;
    font-size: 0.76rem;
    line-height: 1.35;
}

.onboarding-status-result {
    font-size: 1.2rem;
}

.onboarding-status-card.is-ready .onboarding-status-result {
    color: #059669;
}

.onboarding-status-card.is-missing .onboarding-status-result {
    color: #f59e0b;
}

.onboarding-company-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.onboarding-company-summary > div {
    min-height: 76px;
    padding: 14px;
    background: #f8fbff;
    border: 1px solid #dbe6f4;
    border-radius: 12px;
}

.onboarding-company-summary strong {
    display: block;
    margin-top: 5px;
    color: #10233f;
    font-size: 0.96rem;
    font-weight: 780;
}

.onboarding-summary-section {
    margin-top: 18px;
}

.onboarding-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.onboarding-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    color: #11335f;
    background: #f4f8ff;
    border: 1px solid #d7e5fb;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.onboarding-user-list {
    display: grid;
    gap: 8px;
}

.onboarding-user-list span {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #dbe6f4;
    border-radius: 12px;
}

.onboarding-user-list strong {
    color: #10233f;
    font-size: 0.86rem;
}

.onboarding-user-list small {
    color: #66768d;
    font-size: 0.76rem;
}

@media (max-width: 768px) {
    .company-module-panel-header {
        flex-direction: column;
    }

    .company-module-note {
        white-space: normal;
    }

    .company-module-grid {
        grid-template-columns: 1fr;
    }

    .company-package-grid {
        grid-template-columns: 1fr;
    }

    .company-module-toggle-child {
        margin-left: 0;
    }

    .onboarding-layout,
    .onboarding-status-grid,
    .onboarding-company-summary {
        grid-template-columns: 1fr;
    }

    .onboarding-next-card {
        position: static;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .onboarding-layout {
        grid-template-columns: 1fr;
    }

    .onboarding-next-card {
        position: static;
    }

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

@media (min-width: 992px) and (max-width: 1366px) {
    .dashboard-page-heading h2,
    .app-page-header h2 {
        font-weight: 740;
    }

    .dashboard-table tbody td {
        font-size: 0.74rem;
        line-height: 1.42;
    }

    .dashboard-table a:not(.btn),
    .dashboard-action-title-cell a,
    .assigned-task-title,
    .documents-table-title,
    .maintenance-ref-link,
    .maintenance-title-cell a {
        font-size: 0.76rem;
    }

    .dashboard-action-title-cell span,
    .dashboard-action-title-cell small,
    .assigned-task-description,
    .documents-table-meta,
    .quality-test-muted-line,
    .maintenance-title-cell span,
    .maintenance-muted-line {
        font-size: 0.72rem;
    }
}

/* IF management table: compact, readable, full-width fit. */
.dof-table-card {
    overflow: hidden;
    border-radius: 16px;
}

.dof-table-card .table-responsive {
    overflow-x: auto;
}

.dof-dashboard-table {
    min-width: 1120px;
    color: #17233c;
    border-collapse: separate;
    border-spacing: 0;
}

.dof-dashboard-table thead th {
    padding: 13px 14px;
    color: #283750;
    background: #f8fafc;
    border-bottom: 1px solid #dde7f3;
    font-size: 0.79rem;
    font-weight: 760;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
}

.dof-dashboard-table tbody td {
    height: 66px;
    padding: 11px 14px;
    color: #1f2f47;
    border-bottom: 1px solid #e4ebf5;
    font-size: 0.82rem;
    font-weight: 560;
    line-height: 1.28;
    text-align: center;
    vertical-align: middle;
}

.dof-dashboard-table tbody tr:hover td {
    background: #f8fbff;
}

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

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

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

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

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

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

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

.dof-dashboard-table .dashboard-action-title-cell {
    text-align: left;
}

.dof-dashboard-table .dashboard-action-title-cell a {
    color: #0d6efd;
    font-size: 0.86rem;
    font-weight: 800;
}

.dof-dashboard-table .table-disclosure-title {
    justify-content: flex-start;
}

.dof-dashboard-table .dof-nonconformity-cell {
    color: #24344d;
    overflow: hidden;
    text-align: left;
    text-overflow: clip;
    white-space: normal;
}

.dof-dashboard-table .dof-nonconformity-cell .table-disclosure-title {
    justify-content: flex-start;
}

.dof-dashboard-table .dof-title-text {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    color: #263650;
    font-size: 0.83rem;
    font-weight: 650;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dof-dashboard-table .table-disclosure-body {
    max-width: 100%;
    margin: 8px 0 0 28px;
    color: #5f6f86;
    background: #f8fbff;
}

.dof-dashboard-table .dof-responsible-cell {
    color: #2f3f58;
    font-weight: 620;
}

.dof-dashboard-table .dof-responsible-name {
    display: inline-block;
    max-width: 100%;
}

.dof-dashboard-table .dof-responsible-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dof-dashboard-table .status-pill,
.dof-dashboard-table .if-status-badge,
.dof-dashboard-table .vp-status-badge {
    max-width: 100%;
    min-height: 30px;
    height: auto;
    padding: 6px 10px;
    gap: 6px;
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1.1;
}

.dof-dashboard-table .status-pill span,
.dof-dashboard-table .if-status-badge span,
.dof-dashboard-table .vp-status-badge span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.dof-dashboard-table .dof-due-status {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 780;
}

.dof-dashboard-table .dof-evidence-count-btn {
    max-width: 88px;
    min-height: 30px;
    padding: 5px 8px;
    border-color: #cfe0ff;
    background: #f4f8ff;
    font-size: 0.76rem;
    font-weight: 760;
}

.dof-dashboard-table .dashboard-row-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.dof-dashboard-table .dashboard-row-actions .btn {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 0.76rem;
    font-weight: 720;
    line-height: 1.1;
}

.dof-dashboard-table .dof-approval-request-btn {
    min-width: 0;
    max-width: 100%;
}

.dof-dashboard-table .dof-disclosure-row td {
    height: auto;
    padding: 0 14px 12px;
    background: #fbfdff;
    border-bottom: 1px solid #e4ebf5;
    text-align: left;
    white-space: normal;
}

.dof-dashboard-table tbody tr.dof-disclosure-row:hover td {
    background: #fbfdff;
}

.dof-row-disclosure-content {
    margin-left: 26px;
    padding: 12px 14px;
    color: #51627a;
    background: #ffffff;
    border: 1px solid #dbe7f6;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.dof-row-disclosure-content strong {
    display: block;
    color: #10203a;
    font-size: 0.86rem;
    font-weight: 740;
    line-height: 1.3;
}

.personnel-list-card {
    background: #ffffff;
    border: 1px solid #e2eaf5;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.personnel-list-card .document-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid #e5edf7;
}

.personnel-list-card .document-list-toolbar h2 {
    margin: 0;
    color: #071b45;
    font-size: 1.25rem;
    font-weight: 700;
}

.personnel-list-card .document-list-toolbar p {
    margin: 4px 0 0;
    color: #607196;
}

.personnel-list-card .document-list-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.personnel-list-card .document-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(420px, 34vw);
    min-height: 44px;
    padding: 0 14px;
    color: #66789d;
    background: #ffffff;
    border: 1px solid #d7e3f3;
    border-radius: 10px;
}

.personnel-list-card .document-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #071b45;
    background: transparent;
}

.personnel-list-card .document-filter-select {
    min-height: 44px;
    min-width: 190px;
    border-color: #d7e3f3;
    border-radius: 10px;
}

.personnel-list-card .personnel-table th {
    color: #30405f;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: none;
    text-align: center;
    background: #f8fbff;
}

.personnel-list-card .personnel-table td {
    color: #102344;
    text-align: center;
    vertical-align: middle;
}

.personnel-list-card .document-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 10px 0 8px;
    color: #11366f;
    background: #f2f7ff;
    border: 1px solid #cfe0fb;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 650;
}

.personnel-list-card .document-category-pill i {
    color: #176bff;
    font-size: 1rem;
}

.personnel-list-card .document-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.personnel-list-card .document-row-actions form {
    margin: 0;
}

.personnel-list-card .document-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #176bff;
    background: #ffffff;
    border: 1px solid #bfd4ff;
    border-radius: 999px;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.personnel-list-card .document-action-btn:hover {
    color: #ffffff;
    background: #176bff;
    border-color: #176bff;
}

.personnel-list-card .document-action-delete {
    color: #e9354f;
    border-color: #ffc5ce;
}

.personnel-list-card .document-action-delete:hover {
    color: #ffffff;
    background: #e9354f;
    border-color: #e9354f;
}

.personnel-name-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 210px;
}

.personnel-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 0.72rem;
}

.personnel-phone-link {
    color: #0a66ff;
    font-weight: 650;
    text-decoration: none;
}

.personnel-phone-link:hover {
    text-decoration: underline;
}

.personnel-form-card {
    max-width: 980px;
}

@media (max-width: 991.98px) {
    .personnel-list-card .document-list-toolbar,
    .personnel-list-card .document-list-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .personnel-list-card .document-search {
        min-width: 0;
        width: 100%;
    }
}

.if-sortable-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
}

.if-due-sort-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #6f8199;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.if-due-sort-link:hover,
.if-due-sort-link.active {
    color: #0d6efd;
    background: #eef5ff;
    border-color: #cfe0ff;
}

.if-due-sort-link i {
    font-size: 0.9rem;
    line-height: 1;
}

.dof-row-disclosure-content p {
    margin: 7px 0 0;
    color: #5d6e86;
    font-size: 0.78rem;
    line-height: 1.45;
}

@media (min-width: 992px) and (max-width: 1480px) {
    .dof-dashboard-table {
        min-width: 1060px;
    }

    .dof-dashboard-table thead th,
    .dof-dashboard-table tbody td {
        padding-inline: 10px;
    }

    .dof-dashboard-table .dashboard-row-actions .btn span {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .dof-dashboard-table {
        min-width: 0;
    }

    .dof-dashboard-table tbody td {
        height: auto;
        text-align: left;
    }

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

/* Unified internal app type scale: keep pages visually consistent at 100% zoom. */
.dashboard-body {
    font-size: 13.25px;
    line-height: 1.42;
}

.dashboard-page-heading,
.app-page-header {
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-page-heading h2,
.app-page-header h2 {
    font-size: clamp(1.28rem, 1.05rem + 0.45vw, 1.56rem);
    font-weight: 740;
    line-height: 1.16;
}

.dashboard-page-heading p,
.app-page-header p,
.app-section-header p {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
}

.app-page-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 1rem;
}

.dashboard-metrics {
    gap: 10px;
    margin-bottom: 14px;
}

.dashboard-stat-card,
.dof-dashboard-metrics .dashboard-stat-card {
    min-height: 72px;
    padding: 12px 14px;
    gap: 10px;
}

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

.dashboard-stat-card .stat-label,
.dof-dashboard-metrics .dashboard-stat-card .stat-label {
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.22;
}

.dashboard-stat-card strong,
.dof-dashboard-metrics .dashboard-stat-card strong {
    font-size: 1.38rem;
    font-weight: 740;
    line-height: 1;
}

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

.dashboard-filter-card .form-label,
.form-label,
.app-form-label {
    font-size: 0.74rem;
    font-weight: 680;
}

.dashboard-filter-card .form-control,
.dashboard-filter-card .form-select,
.form-control,
.form-select {
    min-height: 34px;
    font-size: 0.78rem;
}

.btn {
    font-size: 0.76rem;
    font-weight: 690;
}

.btn-lg {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 0.8rem;
}

.btn-sm,
.dashboard-row-actions .btn,
.dof-dashboard-table .dashboard-row-actions .btn {
    min-height: 28px;
    padding: 4px 7px;
    font-size: 0.7rem;
    font-weight: 680;
}

.dashboard-table-card {
    overflow: hidden;
}

.dashboard-table thead th,
.dof-dashboard-table thead th {
    padding: 10px 11px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.18;
}

.dashboard-table tbody td,
.dof-dashboard-table tbody td {
    height: 54px;
    padding: 9px 11px;
    font-size: 0.75rem;
    font-weight: 480;
    line-height: 1.3;
}

.dashboard-table a:not(.btn),
.dashboard-action-title-cell a,
.assigned-task-title,
.documents-table-title,
.dof-dashboard-table .dashboard-action-title-cell a {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.26;
}

.dashboard-action-title-cell span,
.dashboard-action-title-cell small,
.assigned-task-description,
.documents-table-meta,
.quality-test-muted-line {
    font-size: 0.72rem;
    font-weight: 480;
}

.vp-status-badge,
.status-pill,
.document-status,
.assigned-page-status,
.dof-due-status,
.dof-dashboard-table .vp-status-badge,
.dof-dashboard-table .status-pill,
.dof-dashboard-table .if-status-badge,
.dof-dashboard-table .dof-due-status {
    min-height: 26px;
    padding: 4px 8px;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 680;
    line-height: 1.12;
}

.dof-dashboard-table .dof-responsible-cell {
    font-weight: 520;
}

.dof-dashboard-table .dof-evidence-count-btn,
.dashboard-table .dof-evidence-count-btn {
    min-height: 28px;
    max-width: 82px;
    padding: 4px 7px;
    font-size: 0.7rem;
    font-weight: 680;
}

.dof-row-disclosure-content {
    padding: 10px 12px;
}

.dof-row-disclosure-content strong {
    font-size: 0.78rem;
    font-weight: 700;
}

.dof-meta-line {
    font-size: 0.7rem;
    font-weight: 600;
}

@media (min-width: 992px) and (max-width: 1480px) {
    .dashboard-body {
        font-size: 12.75px;
    }

    .dashboard-table thead th,
    .dof-dashboard-table thead th {
        font-size: 0.68rem;
    }

    .dashboard-table tbody td,
    .dof-dashboard-table tbody td {
        font-size: 0.72rem;
    }
}

/* Concrete test table: keep core sample data in the row, measurements in disclosure. */
.concrete-table {
    min-width: 920px;
}

.concrete-table th:nth-child(1),
.concrete-table td:nth-child(1) {
    width: 15%;
}

.concrete-table th:nth-child(2),
.concrete-table td:nth-child(2) {
    width: 22%;
}

.concrete-table th:nth-child(3),
.concrete-table td:nth-child(3) {
    width: 15%;
}

.concrete-table th:nth-child(4),
.concrete-table td:nth-child(4) {
    width: 18%;
}

.concrete-table th:nth-child(5),
.concrete-table td:nth-child(5) {
    width: 14%;
}

.concrete-table th:nth-child(6),
.concrete-table td:nth-child(6) {
    width: 16%;
}

.concrete-table .table-disclosure-title {
    justify-content: flex-start;
}

.concrete-table .dashboard-action-title-cell span {
    max-width: 100%;
}

.concrete-detail-row td {
    height: auto;
    padding: 0 12px 12px;
    background: #fbfdff;
    white-space: normal;
}

.concrete-table tbody tr.concrete-detail-row:hover td {
    background: #fbfdff;
}

.concrete-measurement-detail-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(140px, 0.7fr);
    margin: 0 0 4px 28px;
    padding: 12px;
    border-radius: 12px;
}

.concrete-measurement-detail-grid div {
    min-width: 0;
}

.concrete-measurement-detail-grid .quality-strength-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.concrete-measurement-detail-grid .quality-strength-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 27px;
    padding: 4px 8px;
    font-size: 0.72rem;
    line-height: 1.1;
}

.concrete-measurement-detail-grid .vp-status-badge {
    width: fit-content;
    max-width: 100%;
    margin-top: 7px;
}

.concrete-measurement-detail-grid .quality-test-row-actions {
    justify-content: flex-start;
    margin-top: 7px;
}

@media (max-width: 991.98px) {
    .concrete-table {
        min-width: 0;
    }

    .concrete-detail-row td {
        padding: 0 10px 12px;
    }

    .concrete-measurement-detail-grid {
        grid-template-columns: 1fr;
        margin-left: 0;
    }
}

/* Concrete record expanded panel inspired by a laboratory summary sheet. */
.concrete-detail-panel {
    display: grid;
    gap: 12px;
    margin: 0 12px 6px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #dbe7f6;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.concrete-strength-summary {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 1.05fr);
    gap: 16px;
    align-items: stretch;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe7f6;
    border-radius: 14px;
}

.concrete-detail-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #61728a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.concrete-strength-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.concrete-strength-metric {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 4px 20px 4px 0;
    border-right: 1px solid #dfe8f4;
}

.concrete-strength-metric:last-child {
    border-right: 0;
}

.concrete-table .concrete-strength-metric > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 42px;
    padding: 0 9px;
    border: 1px solid currentColor;
    border-radius: 16px;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
}

.concrete-strength-metric strong {
    display: block;
    color: currentColor;
    font-size: clamp(1.35rem, 1rem + 0.9vw, 1.9rem);
    font-weight: 760;
    line-height: 1;
}

.concrete-strength-metric strong small {
    color: #51627a;
    font-size: 0.76rem;
    font-weight: 600;
}

.concrete-strength-metric em {
    grid-column: 2;
    margin-top: 4px;
    color: #66768e;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 600;
}

.concrete-strength-metric.quality-strength-success {
    color: #059669;
}

.concrete-strength-metric.quality-strength-warning {
    color: #b7791f;
}

.concrete-strength-metric.quality-strength-danger {
    color: #e11d48;
}

.concrete-strength-metric.quality-strength-muted {
    color: #64748b;
}

.concrete-meta-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.concrete-meta-summary div {
    min-width: 0;
}

.concrete-meta-summary i {
    display: block;
    margin-bottom: 7px;
    color: #7890b5;
    font-size: 1.2rem;
}

.concrete-meta-summary span {
    display: block;
    color: #66768e;
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.25;
}

.concrete-meta-summary strong {
    display: block;
    margin-top: 4px;
    color: #10203a;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
}

.concrete-detail-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
    gap: 12px;
}

.concrete-measurement-status-card,
.concrete-measurement-action-card {
    display: grid;
    align-items: center;
    min-width: 0;
    padding: 16px 18px;
    border-radius: 14px;
}

.concrete-measurement-status-card {
    grid-template-columns: auto minmax(0, 1fr) minmax(260px, 0.82fr);
    gap: 18px;
    color: #087f5b;
    background: linear-gradient(135deg, #f0fdf7 0%, #ffffff 100%);
    border: 1px solid #b7f0d1;
}

.concrete-status-orb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    color: #10a775;
    background: radial-gradient(circle, #ffffff 0 34%, #dbfbea 35% 100%);
    border-radius: 999px;
    font-size: 2rem;
}

.concrete-measurement-status-card strong,
.concrete-measurement-action-card strong {
    display: block;
    color: #10203a;
    font-size: 1rem;
    font-weight: 760;
    line-height: 1.25;
}

.concrete-measurement-status-card > div:nth-child(2) strong {
    color: #087f5b;
}

.concrete-measurement-status-card > div:nth-child(2) span,
.concrete-measurement-action-card span {
    display: block;
    margin-top: 5px;
    color: #5f6f87;
    font-size: 0.8rem;
    font-weight: 520;
    line-height: 1.45;
}

.concrete-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    position: relative;
}

.concrete-stepper::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: #b7f0d1;
}

.concrete-table .concrete-stepper span {
    display: grid;
    justify-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    color: #7b8aa2;
}

.concrete-table .concrete-stepper i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #9aa9bd;
    background: #ffffff;
    border: 2px solid #d5e0ec;
    border-radius: 999px;
    font-size: 1rem;
}

.concrete-stepper .is-complete i {
    color: #10a775;
    border-color: #35d489;
}

.concrete-stepper small {
    color: #4e6078;
    font-size: 0.76rem;
    font-weight: 650;
}

.concrete-measurement-action-card {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.42fr);
    gap: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #cfe0ff;
}

.concrete-action-buttons {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.concrete-measurement-action-card .btn {
    justify-content: center;
    min-height: 46px;
    width: 100%;
    padding-inline: 16px;
    font-size: 0.82rem;
    font-weight: 760;
    white-space: nowrap;
}

.concrete-measurement-action-card .btn-outline-secondary {
    color: #10203a;
    background: #ffffff;
    border-color: #b9c8dc;
}

.concrete-measurement-action-card small {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
    color: #6c7d94;
    font-size: 0.76rem;
    font-weight: 600;
}

.concrete-measurement-action-card small i {
    color: #3478f6;
}

.concrete-measurement-action-card > div:first-child span {
    color: #43546c;
    font-size: 0.8rem;
    font-weight: 570;
}

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

@media (max-width: 1280px) {
    .concrete-strength-summary,
    .concrete-detail-bottom {
        grid-template-columns: 1fr;
    }

    .concrete-measurement-status-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .concrete-stepper {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .concrete-detail-panel {
        margin-inline: 0;
        padding: 10px;
    }

    .concrete-strength-summary {
        padding: 12px;
    }

    .concrete-strength-metrics,
    .concrete-meta-summary,
    .concrete-measurement-action-card,
    .quality-measurement-edit-grid {
        grid-template-columns: 1fr;
    }

    .concrete-strength-metric {
        border-right: 0;
        border-bottom: 1px solid #dfe8f4;
        padding: 8px 0 12px;
    }

    .concrete-strength-metric:last-child {
        border-bottom: 0;
    }

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

    .concrete-status-orb {
        width: 64px;
        height: 64px;
    }

    .concrete-measurement-action-card small {
        justify-self: start;
    }
}

/* Assigned tasks refresh: keep this after general table sizing overrides. */
.assigned-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.assigned-summary-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon value";
    align-items: center;
    gap: 2px 12px;
    min-height: 82px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e1eaf5;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.assigned-summary-icon {
    grid-area: icon;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.05rem;
}

.assigned-summary-label {
    grid-area: label;
    color: #607086;
    font-size: 0.78rem;
    font-weight: 700;
}

.assigned-summary-card strong {
    grid-area: value;
    color: #10203a;
    font-size: 1.35rem;
    font-weight: 760;
    line-height: 1;
}

.assigned-summary-primary .assigned-summary-icon {
    color: #0d6efd;
    background: #eef5ff;
}

.assigned-summary-warning .assigned-summary-icon {
    color: #b76b00;
    background: #fff5db;
}

.assigned-summary-danger .assigned-summary-icon {
    color: #dc3545;
    background: #fdecef;
}

.assigned-summary-success .assigned-summary-icon {
    color: #087443;
    background: #e3f8ec;
}

.assigned-table-simple {
    min-width: 900px;
    table-layout: fixed;
}

.assigned-table-simple .assigned-page-col-module {
    width: 132px;
}

.assigned-table-simple .assigned-page-col-task {
    width: auto;
}

.assigned-table-simple .assigned-page-col-date {
    width: 152px;
}

.assigned-table-simple .assigned-page-col-status {
    width: 190px;
}

.assigned-table-simple .assigned-page-col-actions {
    width: 76px;
}

.assigned-table-simple .assigned-task-cell {
    min-width: 0;
}

.assigned-table-simple .assigned-task-title {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assigned-table-simple .assigned-task-description {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    margin-top: 3px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.assigned-table-simple .assigned-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
}

.assigned-table-simple .assigned-task-meta small {
    margin-top: 0;
}

.assigned-table-simple .assigned-page-status,
.assigned-table-simple .vp-status-badge {
    max-width: 180px;
}

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

@media (max-width: 768px) {
    .assigned-table-simple {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .assigned-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* VolkaPortal UI standard layer: shared primitives for new and refreshed modules. */
.vp-card,
.vp-table-card,
.vp-form-card,
.app-card,
.dashboard-table-card,
.documents-table-card,
.document-list-card {
    color: var(--vp-text-primary);
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 8px;
    box-shadow: var(--vp-shadow-card);
}

.app-page-header,
.dashboard-page-heading {
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.app-page-header h2,
.dashboard-page-heading h2,
.documents-list-title h2,
.calibration-title-block h2 {
    color: var(--vp-text-primary);
    font-size: 1.45rem;
    font-weight: 720;
    line-height: 1.2;
    letter-spacing: 0;
}

.app-page-header p,
.app-section-header p,
.documents-list-title p,
.calibration-title-block p {
    color: var(--vp-text-secondary);
    font-size: 0.9rem;
    font-weight: 520;
    line-height: 1.45;
}

.app-page-icon,
.app-card-icon,
.documents-list-icon {
    border-radius: var(--vp-radius-md);
    box-shadow: var(--vp-shadow-sm);
}

.dashboard-content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: var(--vp-radius-sm);
    font-weight: 640;
    letter-spacing: 0;
    white-space: nowrap;
}

.dashboard-content .btn-lg {
    min-height: 44px;
    padding: 0.58rem 0.95rem;
    font-size: 0.92rem;
}

.dashboard-content .btn-sm {
    min-height: 34px;
    padding: 0.36rem 0.62rem;
    font-size: 0.78rem;
}

.dashboard-content .form-label {
    color: var(--vp-text-primary);
    font-size: 0.84rem;
    font-weight: 650;
}

.dashboard-content .form-control,
.dashboard-content .form-select {
    min-height: 42px;
    color: var(--vp-text-primary);
    border-color: var(--vp-border-strong);
    border-radius: var(--vp-radius-sm);
    font-size: 0.9rem;
    box-shadow: none;
}

.dashboard-content textarea.form-control {
    min-height: auto;
}

.dashboard-content .form-control:focus,
.dashboard-content .form-select:focus {
    border-color: color-mix(in srgb, var(--vp-blue) 62%, var(--vp-border-strong));
    box-shadow: 0 0 0 0.2rem rgba(30, 91, 255, 0.12);
}

.vp-table,
.dashboard-table,
.documents-table,
.document-table {
    color: var(--vp-text-primary);
    font-size: 0.86rem;
}

.vp-table thead th,
.dashboard-table thead th,
.documents-table thead th,
.document-table thead th {
    color: var(--vp-navy);
    background: var(--vp-surface-soft);
    border-bottom: 1px solid var(--vp-border);
    font-size: 0.78rem;
    font-weight: 720;
    letter-spacing: 0;
}

.vp-table tbody td,
.dashboard-table tbody td,
.documents-table tbody td,
.document-table tbody td {
    border-bottom: 1px solid var(--vp-border);
    vertical-align: middle;
}

.vp-table-actions,
.dashboard-row-actions,
.documents-row-actions,
.document-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.vp-action-link {
    color: rgb(var(--vp-action-rgb, 37, 99, 235));
    border-color: rgba(var(--vp-action-rgb, 37, 99, 235), 0.55);
    background: #ffffff;
}

.vp-action-btn,
.documents-action-btn,
.document-action-btn {
    --vp-action-rgb: var(--document-action-rgb, 37, 99, 235);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    color: rgb(var(--vp-action-rgb));
    background: #ffffff;
    border: 1.4px solid rgba(var(--vp-action-rgb), 0.68);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(var(--vp-action-rgb), 0.08);
}

.vp-action-btn i,
.documents-action-btn i,
.document-action-btn i {
    margin: 0;
    font-size: 1rem;
    line-height: 1;
}

.vp-action-link:hover,
.vp-action-link:focus-visible,
.vp-action-btn:hover,
.vp-action-btn:focus-visible,
.documents-action-btn:hover,
.documents-action-btn:focus-visible,
.document-action-btn:hover,
.document-action-btn:focus-visible {
    color: #ffffff;
    background: rgb(var(--vp-action-rgb, 37, 99, 235));
    border-color: rgb(var(--vp-action-rgb, 37, 99, 235));
    box-shadow: 0 12px 24px rgba(var(--vp-action-rgb, 37, 99, 235), 0.2);
}

.vp-action-primary,
.vp-action-preview,
.documents-action-preview {
    --vp-action-rgb: 37, 99, 235;
    --document-action-rgb: 37, 99, 235;
}

.vp-action-secondary {
    --vp-action-rgb: 100, 116, 139;
    --document-action-rgb: 100, 116, 139;
}

.vp-action-info,
.documents-action-info {
    --vp-action-rgb: 13, 148, 136;
    --document-action-rgb: 13, 148, 136;
}

.vp-action-download,
.documents-action-download {
    --vp-action-rgb: 124, 58, 237;
    --document-action-rgb: 124, 58, 237;
}

.vp-action-request,
.documents-action-request {
    --vp-action-rgb: 5, 150, 105;
    --document-action-rgb: 5, 150, 105;
}

.vp-action-success {
    --vp-action-rgb: 8, 116, 67;
    --document-action-rgb: 8, 116, 67;
}

.vp-action-revise,
.documents-action-revise,
.vp-action-edit,
.documents-action-edit,
.document-action-edit {
    --vp-action-rgb: 14, 165, 233;
    --document-action-rgb: 14, 165, 233;
}

.vp-action-archive,
.documents-action-archive {
    --vp-action-rgb: 100, 116, 139;
    --document-action-rgb: 100, 116, 139;
}

.vp-action-warning {
    --vp-action-rgb: 217, 119, 6;
    --document-action-rgb: 217, 119, 6;
}

.vp-action-danger,
.vp-action-delete,
.documents-action-delete,
.document-action-delete {
    --vp-action-rgb: 239, 68, 68;
    --document-action-rgb: 239, 68, 68;
}

.vp-empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 28px 16px;
    color: var(--vp-text-secondary);
    text-align: center;
    white-space: normal;
}

.system-admin-metrics .dashboard-stat-card small {
    grid-column: 2;
    color: var(--vp-text-secondary);
    font-size: 0.8rem;
    line-height: 1.25;
}

.system-admin-health-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.system-admin-health-card,
.system-admin-panel-card {
    padding: 22px;
}

.system-admin-health-card {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.system-admin-health-title {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.system-admin-health-title h2,
.system-admin-section-head h2 {
    margin: 0;
    color: var(--vp-text-primary);
    font-size: 1rem;
    font-weight: 720;
    letter-spacing: 0;
}

.system-admin-health-title p,
.system-admin-section-head p {
    margin: 4px 0 0;
    color: var(--vp-text-secondary);
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.system-admin-health-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.system-admin-health-card dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.system-admin-health-card dt {
    color: var(--vp-text-secondary);
    font-size: 0.78rem;
    font-weight: 650;
}

.system-admin-health-card dd {
    margin: 0;
    color: var(--vp-text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: right;
}

.system-admin-meter {
    width: 100%;
}

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

.system-admin-package-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.system-admin-company-table {
    min-width: 1180px;
}

.system-admin-log-list,
.system-admin-audit-list {
    display: grid;
    gap: 10px;
}

.system-admin-log-item,
.system-admin-audit-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    background: #f8fbff;
    border: 1px solid var(--vp-border);
    border-radius: 8px;
}

.system-admin-log-item strong,
.system-admin-audit-item strong {
    color: var(--vp-text-primary);
    font-size: 0.84rem;
}

.system-admin-log-item span,
.system-admin-audit-item span,
.system-admin-audit-item small {
    color: var(--vp-text-secondary);
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.system-admin-audit-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

@media (max-width: 1400px) {
    .system-admin-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .system-admin-health-grid {
        grid-template-columns: 1fr;
    }

    .system-admin-section-head,
    .system-admin-audit-item {
        display: grid;
    }

    .system-admin-package-list {
        justify-content: flex-start;
    }
}

.pilot-metrics {
    margin-bottom: 18px;
}

.pilot-readiness-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
    color: var(--vp-text-primary);
    background: linear-gradient(135deg, rgba(30, 91, 255, 0.08), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(30, 91, 255, 0.18);
    border-radius: 8px;
    box-shadow: var(--vp-shadow-sm);
}

.pilot-readiness-alert.is-complete {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.11), rgba(255, 255, 255, 0.96));
    border-color: rgba(16, 185, 129, 0.24);
}

.pilot-readiness-alert > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    color: var(--vp-blue);
    background: #fff;
    border: 1px solid rgba(30, 91, 255, 0.2);
    border-radius: 8px;
    box-shadow: var(--vp-shadow-sm);
}

.pilot-readiness-alert.is-complete > span {
    color: #059669;
    border-color: rgba(16, 185, 129, 0.24);
}

.pilot-readiness-alert strong,
.pilot-readiness-alert p {
    display: block;
}

.pilot-readiness-alert p {
    margin: 2px 0 0;
    color: var(--vp-text-secondary);
    font-size: 0.9rem;
}

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

.pilot-table td strong,
.pilot-table td small {
    display: block;
}

.pilot-table td small {
    color: var(--vp-text-secondary);
    font-size: 0.78rem;
    line-height: 1.35;
}

.pilot-date-stack {
    display: grid;
    gap: 4px;
    color: var(--vp-text-secondary);
    font-size: 0.82rem;
}

.pilot-date-stack i {
    color: var(--vp-blue);
}

.pilot-module-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 280px;
}

.pilot-module-chip-list span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.22rem 0.55rem;
    color: var(--vp-blue);
    background: rgba(30, 91, 255, 0.08);
    border: 1px solid rgba(30, 91, 255, 0.18);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 650;
}

.pilot-module-chip-list .is-muted {
    color: var(--vp-text-secondary);
    background: var(--vp-surface-soft);
    border-color: var(--vp-border);
}

.pilot-table-actions form {
    margin: 0;
}

.pilot-form-card {
    max-width: 100%;
}

.pilot-form-section {
    margin-top: 24px;
}

.pilot-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.pilot-module-toggle,
.pilot-check-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.pilot-module-toggle {
    min-height: 54px;
    padding: 12px;
    background: var(--vp-surface-soft);
    border: 1px solid var(--vp-border);
    border-radius: 8px;
}

.pilot-module-toggle input,
.pilot-check-toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--vp-blue);
}

.pilot-module-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    color: var(--vp-blue);
    background: #fff;
    border: 1px solid rgba(30, 91, 255, 0.16);
    border-radius: 8px;
}

.pilot-module-toggle strong,
.pilot-check-toggle span {
    color: var(--vp-text-primary);
    font-size: 0.9rem;
    font-weight: 650;
}

.pilot-check-toggle {
    min-height: 42px;
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.16);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .pilot-readiness-alert {
        align-items: flex-start;
    }

    .pilot-table {
        min-width: 1040px;
    }
}

.legal-public-shell {
    max-width: 1180px;
}

.legal-public-grid {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 20px;
}

.legal-nav-panel,
.legal-policy-card,
.legal-acceptance-card {
    background: rgba(255, 255, 255, 0.96);
}

.legal-nav-panel {
    align-self: start;
    padding: 18px;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.legal-brand-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e3edf9;
}

.legal-brand-mini strong,
.legal-brand-mini span,
.legal-doc-nav a span {
    display: block;
}

.legal-brand-mini strong {
    color: #0f1f3d;
    font-weight: 800;
}

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

.legal-doc-nav {
    display: grid;
    gap: 8px;
}

.legal-doc-nav a,
.legal-acceptance-list a,
.legal-accept-check {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #17233f;
    text-decoration: none;
}

.legal-doc-nav a {
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
}

.legal-doc-nav a:hover,
.legal-doc-nav a:focus-visible,
.legal-doc-nav a.active {
    color: #0d6efd;
    background: #f2f7ff;
    border-color: #c9dcff;
}

.legal-policy-card {
    margin-bottom: 0;
}

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

.legal-profile-strip > div {
    padding: 14px;
    background: #f8fbff;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
}

.legal-profile-strip span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.legal-profile-strip strong {
    display: block;
    margin-top: 4px;
    color: #0f1f3d;
    word-break: break-word;
}

.legal-policy-content {
    color: #17233f;
    line-height: 1.75;
    white-space: pre-line;
}

.legal-acceptance-card {
    max-width: 820px;
}

.legal-acceptance-list {
    display: grid;
    gap: 10px;
}

.legal-acceptance-list a {
    justify-content: space-between;
    padding: 14px;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
}

.legal-acceptance-list a > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.legal-acceptance-list strong,
.legal-acceptance-list small {
    display: block;
}

.legal-acceptance-list small {
    color: #64748b;
}

.legal-accept-check {
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    color: #17233f;
    font-weight: 650;
}

.legal-row-preview {
    max-width: 520px;
}

@media (max-width: 991.98px) {
    .legal-public-grid {
        grid-template-columns: 1fr;
    }

    .legal-profile-strip {
        grid-template-columns: 1fr;
    }
}

.vp-empty-state-icon,
.vp-error-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--vp-blue);
    background: color-mix(in srgb, var(--vp-blue) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--vp-blue) 18%, var(--vp-border));
    border-radius: var(--vp-radius-md);
    font-size: 1.25rem;
}

.vp-empty-state strong,
.vp-error-state strong {
    color: var(--vp-text-primary);
    font-size: 0.98rem;
    font-weight: 700;
}

.vp-empty-state span:not(.vp-empty-state-icon),
.vp-error-state span:not(.vp-error-state-icon) {
    max-width: 520px;
    color: var(--vp-text-secondary);
    font-size: 0.86rem;
    line-height: 1.45;
}

.dashboard-empty-row .vp-empty-state,
.documents-empty-row .vp-empty-state {
    padding: 6px 12px;
}

/* Sidebar motion: avoid full-page reflow while the desktop rail expands. */
@media (min-width: 992px) {
    .dashboard-app,
    .dashboard-app:has(.dashboard-sidebar:hover),
    .dashboard-app:has(.dashboard-sidebar:focus-within) {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        transition: none;
    }

    .dashboard-sidebar,
    .dashboard-sidebar:hover,
    .dashboard-sidebar:focus-within {
        width: 262px;
        z-index: 1030;
        overflow: visible;
        contain: layout paint style;
        backface-visibility: hidden;
        transform: translate3d(0, 0, 0);
    }

    .dashboard-sidebar {
        clip-path: inset(0 186px 0 0);
        box-shadow: 8px 0 24px rgba(15, 35, 64, 0.06);
        transition: clip-path 155ms cubic-bezier(0.2, 0.8, 0.2, 1);
        will-change: clip-path;
    }

    .dashboard-sidebar:hover,
    .dashboard-sidebar:focus-within {
        clip-path: inset(0 0 0 0);
        box-shadow: 12px 0 28px rgba(15, 35, 64, 0.09);
    }

    .dashboard-sidebar .offcanvas-body,
    .dashboard-sidebar:hover .offcanvas-body,
    .dashboard-sidebar:focus-within .offcanvas-body {
        padding: 15px 12px;
    }

    .dashboard-sidebar-brand,
    .dashboard-sidebar:hover .dashboard-sidebar-brand,
    .dashboard-sidebar:focus-within .dashboard-sidebar-brand {
        justify-content: flex-start;
        min-height: 82px;
        padding: 12px 8px 16px;
    }

    .dashboard-brand-logo,
    .dashboard-sidebar:hover .dashboard-brand-logo,
    .dashboard-sidebar:focus-within .dashboard-brand-logo {
        width: 178px;
        max-width: 178px;
        filter: none;
        transform-origin: left center;
        transition: transform 155ms cubic-bezier(0.2, 0.8, 0.2, 1);
        will-change: transform;
    }

    .dashboard-brand-logo {
        transform: translate3d(0, 0, 0) scale(0.236);
    }

    .dashboard-sidebar:hover .dashboard-brand-logo,
    .dashboard-sidebar:focus-within .dashboard-brand-logo {
        transform: translate3d(0, 0, 0) scale(1);
    }

    .dashboard-sidebar-nav,
    .dashboard-sidebar:hover .dashboard-sidebar-nav,
    .dashboard-sidebar:focus-within .dashboard-sidebar-nav {
        gap: 5px;
    }

    .dashboard-nav-item,
    .sidebar-quick-link,
    .dashboard-logout,
    .dashboard-sidebar:hover .dashboard-nav-item,
    .dashboard-sidebar:focus-within .dashboard-nav-item,
    .dashboard-sidebar:hover .sidebar-quick-link,
    .dashboard-sidebar:focus-within .sidebar-quick-link,
    .dashboard-sidebar:hover .dashboard-logout,
    .dashboard-sidebar:focus-within .dashboard-logout {
        justify-content: flex-start;
        gap: 12px;
        padding-inline: 13px;
    }

    .dashboard-nav-item span,
    .sidebar-quick-link span:not(.assigned-count-badge):not(.sidebar-count-badge),
    .dashboard-logout span,
    .dashboard-sidebar-user > div:not(.dashboard-avatar),
    .dashboard-nav-chevron {
        max-width: 180px;
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        pointer-events: none;
        transform: translate3d(-6px, 0, 0);
        transition:
            opacity 95ms linear,
            transform 155ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .dashboard-sidebar:hover .dashboard-nav-item span,
    .dashboard-sidebar:focus-within .dashboard-nav-item span,
    .dashboard-sidebar:hover .sidebar-quick-link span:not(.assigned-count-badge):not(.sidebar-count-badge),
    .dashboard-sidebar:focus-within .sidebar-quick-link span:not(.assigned-count-badge):not(.sidebar-count-badge),
    .dashboard-sidebar:hover .dashboard-logout span,
    .dashboard-sidebar:focus-within .dashboard-logout span,
    .dashboard-sidebar:hover .dashboard-sidebar-user > div:not(.dashboard-avatar),
    .dashboard-sidebar:focus-within .dashboard-sidebar-user > div:not(.dashboard-avatar),
    .dashboard-sidebar:hover .dashboard-nav-chevron,
    .dashboard-sidebar:focus-within .dashboard-nav-chevron {
        max-width: 180px;
        opacity: 1;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
        transition-delay: 35ms, 0s;
    }

    .dashboard-sidebar-user,
    .dashboard-sidebar:hover .dashboard-sidebar-user,
    .dashboard-sidebar:focus-within .dashboard-sidebar-user {
        justify-content: flex-start;
        padding-inline: 4px;
    }

    .dashboard-subnav {
        max-width: none;
        opacity: 0;
        pointer-events: none;
        transform: translate3d(-5px, 0, 0);
        transition:
            opacity 90ms linear,
            transform 145ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .dashboard-sidebar:hover .dashboard-subnav,
    .dashboard-sidebar:focus-within .dashboard-subnav {
        max-width: none;
        opacity: 1;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
        transition-delay: 30ms, 0s;
    }

    .dashboard-sidebar:not(:hover):not(:focus-within) .dashboard-subnav.collapse.show {
        display: none;
    }
}

.dashboard-sidebar :is(a, button):focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.dashboard-subnav.collapsing {
    display: grid;
    overflow: hidden;
    contain: layout paint;
    transition: height 145ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* Keep long module lists scrollable while account actions remain reachable. */
.dashboard-sidebar .offcanvas-body {
    min-height: 0;
    overflow: hidden;
}

.dashboard-sidebar-brand,
.dashboard-sidebar-bottom {
    flex: 0 0 auto;
}

.dashboard-sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    padding-right: 2px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(82, 98, 122, 0.42) transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scroll-padding-block: 8px;
    align-content: start;
}

.dashboard-sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(82, 98, 122, 0.36);
    border-radius: 999px;
}

.dashboard-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(48, 68, 96, 0.58);
}

.dashboard-sidebar-nav:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
}

.vp-skip-link {
    position: fixed;
    top: 8px;
    left: 50%;
    z-index: 1090;
    padding: 8px 12px;
    color: #ffffff;
    background: #0d6efd;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(15, 35, 64, 0.2);
    font-weight: 700;
    text-decoration: none;
    transform: translate3d(-50%, calc(-100% - 16px), 0);
    transition: transform 145ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vp-skip-link:focus {
    color: #ffffff;
    transform: translate3d(-50%, 0, 0);
}

@media (min-width: 992px) {
    .dashboard-sidebar {
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
    }

    .dashboard-sidebar .offcanvas-body {
        height: 100%;
    }
}

.dashboard-nav-chevron {
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0) rotate(0deg);
    transition: transform 145ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dashboard-nav-toggle[aria-expanded="true"] .dashboard-nav-chevron {
    transform: translate3d(0, 0, 0) rotate(180deg);
}

@media (max-width: 991.98px) {
    .dashboard-sidebar.offcanvas-lg {
        --bs-offcanvas-transition: transform 175ms cubic-bezier(0.2, 0.8, 0.2, 1);
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        contain: layout paint style;
        backface-visibility: hidden;
        transform: translate3d(-100%, 0, 0);
        transition: var(--bs-offcanvas-transition) !important;
    }

    .dashboard-sidebar.offcanvas-lg.show,
    .dashboard-sidebar.offcanvas-lg.showing {
        transform: translate3d(0, 0, 0);
    }

    .dashboard-sidebar.offcanvas-lg.showing,
    .dashboard-sidebar.offcanvas-lg.hiding {
        will-change: transform;
    }

    .dashboard-sidebar .offcanvas-body {
        flex: 1 1 auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .offcanvas-backdrop {
        transition: opacity 140ms linear;
    }
}

@media (max-width: 991.98px) and (max-height: 600px) {
    .dashboard-sidebar .offcanvas-body {
        padding-block: 8px;
    }

    .dashboard-sidebar .dashboard-sidebar-brand {
        min-height: 54px;
        margin-bottom: 6px;
        padding: 2px 8px 6px;
    }

    .dashboard-sidebar .dashboard-brand-logo {
        width: 120px;
        max-width: 120px;
        max-height: 48px;
        filter: none;
    }

    .dashboard-sidebar-bottom {
        gap: 2px;
        padding-top: 5px;
    }

    .dashboard-sidebar .sidebar-quick-link {
        min-height: 34px;
        margin-bottom: 0;
        font-size: 0.82rem;
    }

    .dashboard-sidebar-user {
        padding-block: 5px;
    }

    .dashboard-sidebar-user span {
        display: none;
    }

    .dashboard-sidebar .dashboard-avatar {
        width: 34px;
        height: 34px;
    }

    .dashboard-sidebar .dashboard-logout {
        min-height: 34px;
    }
}

@media (max-width: 991.98px) and (max-height: 420px) {
    .dashboard-sidebar .dashboard-sidebar-brand,
    .dashboard-sidebar .dashboard-sidebar-user {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-sidebar,
    .dashboard-brand-logo,
    .dashboard-subnav.collapsing,
    .dashboard-nav-chevron,
    .dashboard-nav-item span,
    .sidebar-quick-link span,
    .dashboard-logout span,
    .dashboard-sidebar-user > div:not(.dashboard-avatar) {
        transition: none !important;
    }
}

.vp-loading-state {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--vp-text-secondary);
    font-size: 0.9rem;
    font-weight: 620;
}

.vp-error-state {
    display: grid;
    gap: 8px;
    padding: 18px;
    color: #b4232f;
    background: #fff7f8;
    border: 1px solid #fac5cb;
    border-radius: var(--vp-radius-md);
}

.vp-error-state .vp-error-state-icon {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.vp-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.vp-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--vp-blue);
    background: #eef5ff;
    border: 1px solid #cfe0ff;
    border-radius: var(--vp-radius-md);
}

.vp-modal-header h2 {
    margin: 0;
    color: var(--vp-text-primary);
    font-size: 1.1rem;
    font-weight: 720;
    letter-spacing: 0;
}

.vp-modal-header p {
    margin: 4px 0 0;
    color: var(--vp-text-secondary);
    font-size: 0.86rem;
}

.vp-alert {
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius-md);
    box-shadow: var(--vp-shadow-sm);
}

@media (max-width: 768px) {
    .app-page-header,
    .dashboard-page-heading {
        align-items: flex-start;
    }

    .app-page-header h2,
    .dashboard-page-heading h2,
    .documents-list-title h2,
    .calibration-title-block h2 {
        font-size: 1.25rem;
    }

    .dashboard-content .btn-lg {
        width: 100%;
    }
}
