@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap'
);

:root {
    --primary: #1e3a8a;
    --primary-dark: #172554;
    --primary-light: #edf2f9;

    --teal: #2b6687;
    --teal-dark: #235574;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --success-bg: #dcfce7;
    --success-border: #86efac;
    --success-text: #166534;

    --error-bg: #fee2e2;
    --error-border: #fca5a5;
    --error-text: #991b1b;

    --warning-bg: #fef3c7;
    --warning-border: #fde68a;
    --warning-text: #92400e;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--slate-900);
    background: var(--slate-50);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family:
        'Plus Jakarta Sans',
        Arial,
        sans-serif;
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-page {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    background:
        radial-gradient(circle at top left,
            rgba(30, 58, 138, 0.08),
            transparent 35%),
        radial-gradient(circle at bottom right,
            rgba(43, 102, 135, 0.08),
            transparent 35%),
        var(--slate-50);
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 920px;
    min-height: 580px;
    display: flex;
    overflow: hidden;
    background: #ffffff;
    border-radius: 24px;
    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.18);
    animation: scale-in 0.3s ease-out;
}

/* Left panel */

.login-brand-panel {
    position: relative;
    width: 42%;
    min-height: 580px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: #ffffff;
    background:
        linear-gradient(135deg,
            #172554 0%,
            #1e3a8a 47%,
            #2b6889 100%);
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    width: 270px;
    height: 270px;
    top: -110px;
    left: -100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    width: 310px;
    height: 310px;
    right: -160px;
    bottom: -155px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.login-brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-logo-wrapper {
    width: 100%;
    min-height: 150px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo {
    display: block;
    width: 100%;
    max-width: 290px;
    max-height: 180px;
    object-fit: contain;
}

.login-brand-divider {
    width: 64px;
    height: 8px;
    margin: 12px 0 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.30);
}

.login-brand-description {
    margin: 0;
    max-width: 280px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.login-brand-badge {
    margin-top: 30px;
    padding: 11px 22px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
}

.login-brand-badge span {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.84);
}

.login-copyright {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 22px;
    margin: 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.42);
}

/* Right panel */

.login-form-panel {
    width: 58%;
    min-height: 580px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 380px;
}

.login-heading {
    margin-bottom: 28px;
    text-align: center;
}

.login-heading h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.7px;
    color: var(--slate-900);
}

.login-heading p {
    margin: 7px 0 0;
    font-size: 14px;
    color: var(--slate-500);
}

/* Flash messages */

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.alert-success {
    color: var(--success-text);
    background: var(--success-bg);
    border-color: var(--success-border);
}

.alert-error {
    color: var(--error-text);
    background: var(--error-bg);
    border-color: var(--error-border);
}

.alert-warning {
    color: var(--warning-text);
    background: var(--warning-bg);
    border-color: var(--warning-border);
}

/* Form */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--slate-500);
}

.forgot-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Role selection */

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

.role-option {
    min-height: 89px;
    padding: 10px 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--slate-100);
    border-radius: 16px;
    background: var(--slate-50);
    color: var(--slate-500);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.role-option:hover {
    border-color: var(--slate-200);
    background: var(--slate-100);
    transform: translateY(-1px);
}

.role-option.active {
    color: #172554;
    border-color: #1e3a8a;
    background: rgba(238, 242, 255, 0.65);
    box-shadow:
        0 0 0 1px rgba(30, 58, 138, 0.26);
}

.role-icon-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--slate-100);
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.role-option.active .role-icon-box {
    background: #ffffff;
    box-shadow:
        0 2px 7px rgba(15, 23, 42, 0.09);
}

.role-icon {
    width: 18px;
    height: 18px;
    color: var(--slate-400);
}

.role-option.active .role-icon {
    color: var(--primary);
}

.role-name {
    font-size: 11px;
    font-weight: 700;
}

/* Text inputs */

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    z-index: 1;
    width: 18px;
    height: 18px;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 10px 14px 10px 44px;
    border: 1px solid var(--slate-100);
    border-radius: 12px;
    outline: none;
    background: var(--slate-50);
    color: var(--slate-900);
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: var(--slate-400);
}

.form-input:focus {
    border-color: #6f86b3;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(49, 90, 155, 0.12);
}

/* Sign-in button */

.login-button {
    width: 100%;
    height: 44px;
    margin-top: 1px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background:
        linear-gradient(90deg,
            #1e3a8a,
            #2b6687);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow:
        0 5px 14px rgba(30, 58, 138, 0.24);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}

.login-button:hover {
    filter: brightness(0.97);
    box-shadow:
        0 7px 18px rgba(30, 58, 138, 0.30);
}

.login-button:active {
    transform: scale(0.985);
}

.login-button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

/* Footer links */

.login-signup {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: var(--slate-500);
}

.login-signup a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.login-signup a:hover {
    text-decoration: underline;
}

.login-terms {
    margin: 0;
    padding: 0 16px;
    text-align: center;
    font-size: 10px;
    line-height: 1.55;
    color: var(--slate-400);
}

.login-terms a {
    color: inherit;
    text-decoration: underline;
}

/* Animation */

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */

@media (max-width: 760px) {
    .login-page {
        position: relative;
        min-height: 100vh;
        padding: 20px 12px;
    }

    .login-container {
        max-width: 500px;
        min-height: auto;
        flex-direction: column;
        border-radius: 20px;
    }

    .login-brand-panel,
    .login-form-panel {
        width: 100%;
        min-height: auto;
    }

    .login-brand-panel {
        padding: 28px 22px 40px;
    }

    .login-logo-wrapper {
        min-height: 90px;
        margin-bottom: 5px;
    }

    .login-logo {
        max-width: 230px;
        max-height: 110px;
    }

    .login-brand-divider {
        height: 6px;
        margin: 14px 0 18px;
    }

    .login-brand-description {
        font-size: 13px;
    }

    .login-brand-badge {
        margin-top: 20px;
        padding: 9px 18px;
    }

    .login-copyright {
        bottom: 12px;
    }

    .login-form-panel {
        padding: 32px 22px;
    }

    .login-heading {
        margin-bottom: 24px;
    }
}

@media (max-width: 390px) {
    .role-options {
        gap: 6px;
    }

    .role-option {
        min-height: 82px;
        padding: 8px 4px;
    }

    .login-form-panel {
        padding-left: 17px;
        padding-right: 17px;
    }
}

/* =========================================================
   DASHBOARD LAYOUT
   ========================================================= */

.dashboard-body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #f8fafc;
}

svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Sidebar */

.app-sidebar {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: 256px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(145deg,
            #172554 0%,
            #1e3a8a 48%,
            #2b6889 100%);
    border-right:
        1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        15px 0 40px rgba(15, 23, 42, 0.16);
    transition:
        width 0.3s ease,
        transform 0.3s ease;
}

.sidebar-header {
    position: relative;
    min-height: 122px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.10);
}

.sidebar-logo-wrapper {
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        width 0.3s ease,
        height 0.3s ease;
}

.sidebar-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.06);
    transform-origin: center;
}

.sidebar-header-buttons {
    position: absolute;
    top: 10px;
    right: 8px;
    display: flex;
}

.sidebar-icon-button {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.sidebar-icon-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-icon-button svg {
    width: 17px;
    height: 17px;
}

.sidebar-close-button {
    display: none;
}

.sidebar-navigation {
    flex: 1;
    padding: 24px 12px;
    overflow-y: auto;
}

.sidebar-nav-item {
    position: relative;
    min-height: 48px;
    margin-bottom: 5px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.sidebar-nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
}

.sidebar-nav-item.active {
    color: #172554;
    background: #ffffff;
    font-weight: 700;
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.18);
}

.sidebar-active-marker {
    position: absolute;
    left: 0;
    width: 4px;
    height: 25px;
    border-radius: 0 999px 999px 0;
    background: #2b6889;
}

.sidebar-nav-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav-icon svg {
    width: 20px;
    height: 20px;
}

.sidebar-nav-item.active .sidebar-nav-icon {
    color: #1e3a8a;
}

.sidebar-footer {
    padding: 14px;
    border-top:
        1px solid rgba(255, 255, 255, 0.10);
}

.sidebar-user-card {
    min-height: 63px;
    padding: 11px;
    display: flex;
    align-items: center;
    gap: 11px;
    overflow: hidden;
    border:
        1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.11);
    backdrop-filter: blur(10px);
}

.sidebar-avatar {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #172554;
    background: #ffffff;
    font-size: 13px;
    font-weight: 800;
    box-shadow:
        0 3px 8px rgba(15, 23, 42, 0.12);
}

.sidebar-user-details {
    min-width: 0;
    flex: 1;
}

.sidebar-user-name {
    overflow: hidden;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-role {
    margin-top: 3px;
    color: #ccfbf1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sidebar-logout-form {
    margin: 7px 0 0;
}

.sidebar-logout-button {
    width: 100%;
    min-height: 39px;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.sidebar-logout-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
}

.sidebar-logout-button svg {
    width: 17px;
    height: 17px;
}

/* Collapsed sidebar */

.sidebar-collapsed .app-sidebar {
    width: 80px;
}

.sidebar-collapsed .dashboard-main {
    margin-left: 80px;
}

.sidebar-collapsed .sidebar-header {
    min-height: 86px;
}

.sidebar-collapsed .sidebar-logo-wrapper {
    width: 50px;
    height: 50px;
}

.sidebar-collapsed .sidebar-collapse-button svg {
    transform: rotate(180deg);
}

.sidebar-collapsed .sidebar-navigation {
    padding-left: 10px;
    padding-right: 10px;
}

.sidebar-collapsed .sidebar-nav-item {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

.sidebar-collapsed .sidebar-active-marker,
.sidebar-collapsed .sidebar-nav-label,
.sidebar-collapsed .sidebar-user-details,
.sidebar-collapsed .sidebar-logout-button span {
    display: none;
}

.sidebar-collapsed .sidebar-user-card {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
}

.sidebar-collapsed .sidebar-logout-button {
    padding-left: 0;
    padding-right: 0;
}

/* Main area */

.dashboard-main {
    min-height: 100vh;
    margin-left: 256px;
    transition: margin-left 0.3s ease;
}

.app-header {
    position: sticky;
    z-index: 30;
    top: 0;
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-button {
    width: 39px;
    height: 39px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    color: #64748b;
    background: #f8fafc;
}

.mobile-menu-button svg {
    width: 19px;
    height: 19px;
}

.workspace-label {
    margin: 0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.app-header-user {
    padding-left: 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-left: 1px solid #e2e8f0;
}

.header-user-text {
    text-align: right;
}

.header-user-name {
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
}

.header-user-role {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    text-transform: capitalize;
}

.header-avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background:
        linear-gradient(135deg,
            #1e3a8a,
            #2b6889);
    font-size: 13px;
    font-weight: 700;
    box-shadow:
        0 4px 10px rgba(30, 58, 138, 0.20);
}

.dashboard-content {
    min-height: calc(100vh - 64px);
    padding: 24px;
    background:
        linear-gradient(135deg,
            #f8fafc 0%,
            #ffffff 48%,
            rgba(240, 253, 250, 0.78) 100%);
}

/* Dashboard page */

.dashboard-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-welcome-card {
    position: relative;
    min-height: 190px;
    padding: 32px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border:
        1px solid rgba(255, 255, 255, 0.72);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow:
        0 18px 38px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(12px);
}

.dashboard-welcome-card::after {
    content: '';
    position: absolute;
    inset: 0 0 0 auto;
    width: 50%;
    background:
        linear-gradient(270deg,
            rgba(204, 251, 241, 0.70),
            transparent);
}

.welcome-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(32px);
}

.welcome-decoration-one {
    top: -65px;
    right: -55px;
    width: 165px;
    height: 165px;
    background: rgba(224, 231, 255, 0.82);
}

.welcome-decoration-two {
    right: 90px;
    bottom: -90px;
    width: 180px;
    height: 180px;
    background: rgba(204, 251, 241, 0.92);
}

.dashboard-welcome-content {
    position: relative;
    z-index: 2;
}

.dashboard-welcome-content h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 39px);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.dashboard-welcome-content p {
    max-width: 600px;
    margin: 13px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.dashboard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.primary-action-button,
.secondary-action-button {
    min-height: 42px;
    padding: 10px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.primary-action-button svg,
.secondary-action-button svg {
    width: 17px;
    height: 17px;
}

.primary-action-button {
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(90deg,
            #1e3a8a,
            #2b6687);
    box-shadow:
        0 6px 15px rgba(30, 58, 138, 0.25);
}

.secondary-action-button {
    border: 1px solid #e2e8f0;
    color: #334155;
    background: #ffffff;
    box-shadow:
        0 3px 8px rgba(15, 23, 42, 0.05);
}

.primary-action-button:hover,
.secondary-action-button:hover {
    transform: translateY(-1px);
}

/* Statistics */

.statistics-grid {
    display: grid;
    gap: 16px;
}

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

.statistics-grid-four {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

.stat-card {
    min-height: 145px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border: 1px solid;
    border-radius: 28px;
    box-shadow:
        0 13px 29px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 17px 36px rgba(15, 23, 42, 0.11);
}

.stat-card-primary {
    border-color: #dce6f3;
    background:
        linear-gradient(135deg,
            #ffffff,
            rgba(238, 242, 255, 0.86),
            rgba(224, 231, 255, 0.64));
}

.stat-card-success {
    border-color: #d1fae5;
    background:
        linear-gradient(135deg,
            #ffffff,
            rgba(236, 253, 245, 0.86),
            rgba(209, 250, 229, 0.66));
}

.stat-card-warning {
    border-color: #fef3c7;
    background:
        linear-gradient(135deg,
            #ffffff,
            rgba(255, 251, 235, 0.88),
            rgba(254, 243, 199, 0.66));
}

.stat-card-draft {
    border-color: #dbe4ee;
    background:
        linear-gradient(135deg,
            #ffffff,
            rgba(248, 250, 252, 0.92),
            rgba(226, 232, 240, 0.74));
}

.stat-card-danger {
    border-color: #ffe4e6;
    background:
        linear-gradient(135deg,
            #ffffff,
            rgba(255, 241, 242, 0.88),
            rgba(255, 228, 230, 0.68));
}

.stat-card-review {
    border-color: #ccfbf1;
    background:
        linear-gradient(135deg,
            #ffffff,
            rgba(240, 253, 250, 0.88),
            rgba(204, 251, 241, 0.68));
}

.stat-card-revision {
    border-color: #ede9fe;
    background:
        linear-gradient(135deg,
            #ffffff,
            rgba(245, 243, 255, 0.90),
            rgba(237, 233, 254, 0.72));
}

.stat-card-title {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.stat-card-value {
    margin: 9px 0 0;
    color: #0f172a;
    font-family:
        'Plus Jakarta Sans',
        Arial,
        sans-serif;
    font-size: 31px;
    font-weight: 800;
}

.stat-card-icon {
    width: 49px;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    color: #ffffff;
}

.stat-card-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon-primary {
    background:
        linear-gradient(135deg,
            #1e3a8a,
            #315a9b);
}

.stat-icon-draft {
    background:
        linear-gradient(135deg,
            #64748b,
            #475569);
}

.stat-icon-success {
    background:
        linear-gradient(135deg,
            #10b981,
            #2b6889);
}

.stat-icon-warning {
    background:
        linear-gradient(135deg,
            #fbbf24,
            #fb923c);
}

.stat-icon-danger {
    background:
        linear-gradient(135deg,
            #f43f5e,
            #f87171);
}

.stat-icon-review {
    background:
        linear-gradient(135deg,
            #0f766e,
            #14b8a6);
}

.stat-icon-revision {
    background:
        linear-gradient(135deg,
            #7c3aed,
            #8b5cf6);
}

/* Recent submissions */

.recent-submissions-panel {
    padding: 24px;
    border:
        1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.87);
    box-shadow:
        0 14px 32px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.recent-panel-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.recent-panel-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
}

.recent-panel-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
}

.item-count-badge {
    padding: 6px 12px;
    border-radius: 999px;
    color: #64748b;
    background: #f1f5f9;
    font-size: 11px;
    font-weight: 700;
}

.recent-submissions-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.recent-submission-item {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
}

.submission-item-details {
    min-width: 0;
    flex: 1;
}

.submission-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submission-title-row h3 {
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.submission-metadata {
    margin-top: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #64748b;
    font-size: 11px;
}

.status-badge {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-approved {
    color: #047857;
    background: #d1fae5;
}

.status-rejected {
    color: #be123c;
    background: #ffe4e6;
}

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

.status-review {
    color: #172554;
    background: #dce6f3;
}

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

.status-pending {
    color: #0369a1;
    background: #e0f2fe;
}

.view-details-button {
    min-width: 118px;
    min-height: 37px;
    padding: 8px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    color: #334155;
    background: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.view-details-button:hover {
    background: #f1f5f9;
}

/* Empty state */

.empty-state {
    min-height: 210px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center;
}

.empty-state-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #6f86b3;
    background: #edf2f9;
}

.empty-state-icon svg {
    width: 26px;
    height: 26px;
}

.empty-state h3 {
    margin: 0;
    color: #334155;
    font-size: 15px;
}

.empty-state p {
    max-width: 360px;
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.6;
}

/* Mobile overlay */

.sidebar-overlay {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: none;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(3px);
}

/* Toast */

.system-toast {
    position: fixed;
    z-index: 100;
    right: 24px;
    bottom: 24px;
    max-width: 360px;
    padding: 13px 17px;
    border-radius: 13px;
    color: #ffffff;
    background: #1e293b;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.22);
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.system-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dashboard responsive */

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

@media (max-width: 900px) {
    .app-sidebar {
        width: 256px;
        transform: translateX(-100%);
    }

    .dashboard-main,
    .sidebar-collapsed .dashboard-main {
        margin-left: 0;
    }

    .sidebar-collapsed .app-sidebar {
        width: 256px;
    }

    .sidebar-collapsed .sidebar-nav-label,
    .sidebar-collapsed .sidebar-user-details,
    .sidebar-collapsed .sidebar-logout-button span {
        display: block;
    }

    .sidebar-collapsed .sidebar-nav-item {
        justify-content: flex-start;
    }

    .sidebar-collapsed .sidebar-user-card {
        justify-content: flex-start;
    }

    .sidebar-collapse-button {
        display: none;
    }

    .sidebar-close-button {
        display: inline-flex;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .sidebar-mobile-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-mobile-open .sidebar-overlay {
        display: block;
    }

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

@media (max-width: 650px) {
    .app-header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .workspace-label {
        display: none;
    }

    .header-user-text {
        display: none;
    }

    .dashboard-content {
        padding: 16px;
    }

    .dashboard-welcome-card {
        min-height: 180px;
        padding: 24px;
        border-radius: 25px;
    }

    .dashboard-welcome-content h1 {
        font-size: 27px;
    }

    .statistics-grid-three,
    .statistics-grid-four {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 128px;
        border-radius: 23px;
    }

    .recent-submissions-panel {
        padding: 18px;
        border-radius: 23px;
    }

    .recent-panel-header {
        align-items: flex-start;
    }

    .recent-submission-item {
        align-items: stretch;
        flex-direction: column;
    }

    .submission-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .view-details-button {
        width: 100%;
    }

    .dashboard-actions {
        justify-content: stretch;
    }

    .primary-action-button,
    .secondary-action-button {
        width: 100%;
    }

    .system-toast {
        right: 15px;
        bottom: 15px;
        left: 15px;
        max-width: none;
    }
}

/* =========================================================
   REGISTRATION
   ========================================================= */

.register-container {
    max-width: 1050px;
}

.register-form-panel {
    padding-top: 28px;
    padding-bottom: 28px;
}

.register-form-wrapper {
    max-width: 560px;
}

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

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

.register-input {
    padding-left: 14px;
}

.password-requirements {
    margin: -6px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}

.form-error-list {
    margin: 8px 0 0;
    padding-left: 20px;
}

@media (max-width: 700px) {
    .registration-grid {
        grid-template-columns: 1fr;
    }

    .registration-full {
        grid-column: auto;
    }
}

/* =========================================================
   ADMIN — USER MANAGEMENT INTERFACE REFINEMENT
   ========================================================= */

.admin-users-page-v2 {
    --users-navy: #17365f;
    --users-blue: #315a9b;
    --users-teal: #337886;
    --users-gold: #e2b84b;
    --users-border: #d8e3ed;
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    gap: 20px;
}

.admin-users-page-v2 .admin-users-heading {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 25px 27px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 0%, rgba(226, 184, 75, 0.20), transparent 30%),
        linear-gradient(135deg, #132d50 0%, #234f81 62%, #2d7180 100%);
    box-shadow: 0 17px 36px rgba(23, 54, 95, 0.16);
}

.admin-users-page-v2 .admin-users-heading::after {
    content: "";
    position: absolute;
    right: -88px;
    bottom: -140px;
    width: 220px;
    height: 220px;
    border: 27px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
    pointer-events: none;
}

.admin-users-page-v2 .admin-users-heading > * {
    position: relative;
    z-index: 1;
}

.admin-users-page-v2 .admin-users-heading-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-users-page-v2 .admin-users-heading-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
}

.admin-users-page-v2 .admin-users-heading-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-users-page-v2 .admin-users-heading .page-eyebrow {
    margin-bottom: 5px;
    color: #f4d77e;
    font-size: 11.5px;
    letter-spacing: 0.12em;
}

.admin-users-page-v2 .admin-users-heading h1 {
    color: #ffffff;
    font-size: clamp(26px, 3vw, 32px);
    letter-spacing: -0.025em;
}

.admin-users-page-v2 .admin-users-heading .page-description {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13.5px;
}

.admin-users-page-v2 .admin-users-heading .page-action-link {
    min-height: 43px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #17365f;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.admin-users-page-v2 .admin-users-heading .page-action-link:hover {
    color: #17365f;
    background: #f7e6aa;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.20);
}

.admin-users-page-v2 .admin-user-summary-grid {
    gap: 14px;
}

.admin-users-page-v2 .admin-user-summary-card {
    position: relative;
    overflow: hidden;
    min-height: 104px;
    padding: 19px 21px;
    border-color: var(--users-border);
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-users-page-v2 .admin-user-summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--summary-accent, var(--users-blue));
}

.admin-users-page-v2 .admin-user-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.admin-users-page-v2 .summary-total-users {
    --summary-accent: #315a9b;
}

.admin-users-page-v2 .summary-submitters {
    --summary-accent: #4f63a8;
}

.admin-users-page-v2 .summary-reviewers {
    --summary-accent: #d19a22;
}

.admin-users-page-v2 .summary-administrators {
    --summary-accent: #2e8061;
}

.admin-users-page-v2 .admin-user-summary-card span {
    font-size: 13px;
    font-weight: 700;
}

.admin-users-page-v2 .admin-user-summary-card strong {
    margin-top: 4px;
    font-size: 27px;
}

.admin-users-page-v2 .admin-user-summary-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 14px;
}

.admin-users-page-v2 .admin-users-directory-panel {
    padding: 22px;
    overflow: hidden;
    border-color: var(--users-border);
    border-radius: 20px;
    box-shadow: 0 11px 28px rgba(15, 23, 42, 0.06);
}

.admin-users-page-v2 .admin-users-panel-heading {
    margin-bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-users-page-v2 .admin-users-panel-heading h2 {
    margin: 0;
    color: #172a43;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.3;
}

.admin-users-page-v2 .admin-users-panel-heading p {
    margin: 4px 0 0;
    color: #718096;
    font-size: 12.5px;
    line-height: 1.5;
}

.admin-users-page-v2 .admin-users-result-count {
    flex: 0 0 auto;
    padding: 6px 11px;
    border: 1px solid #d7e2ed;
    border-radius: 999px;
    color: #475b73;
    background: #f7f9fc;
    font-size: 11.5px;
    font-weight: 800;
}

.admin-users-page-v2 .admin-users-filter-form {
    margin-bottom: 19px;
    padding: 15px;
    grid-template-columns:
        minmax(250px, 1fr)
        minmax(145px, 180px)
        minmax(145px, 180px)
        auto
        minmax(44px, auto);
    gap: 11px;
    border: 1px solid #e0e8f0;
    border-radius: 14px;
    background: #f7f9fc;
}

.admin-users-page-v2 .admin-users-filter-form label {
    margin-bottom: 6px;
    color: #42566d;
    font-size: 12.5px;
    font-weight: 800;
}

.admin-users-page-v2 .admin-users-filter-form input,
.admin-users-page-v2 .admin-users-filter-form select {
    min-height: 43px;
    border-color: #cbd7e3;
    border-radius: 10px;
    color: #172a43;
    background: #ffffff;
    font-size: 13.5px;
}

.admin-users-page-v2 .admin-users-search-input {
    position: relative;
}

.admin-users-page-v2 .admin-users-search-input svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8a9aae;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.admin-users-page-v2 .admin-users-search-input input {
    padding-left: 38px;
}

.admin-users-page-v2 .admin-users-filter-form .filter-button,
.admin-users-page-v2 .admin-users-filter-form .clear-filter-link {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-users-page-v2 .admin-users-filter-form .filter-button {
    gap: 7px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #1e3a8a, #2b6687);
    box-shadow: 0 5px 12px rgba(30, 58, 138, 0.17);
}

.admin-users-page-v2 .admin-users-filter-form .filter-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.admin-users-page-v2 .admin-users-filter-form .clear-filter-link {
    padding: 8px 4px;
    color: #5f7084;
}

.admin-users-page-v2 .admin-users-filter-form .clear-filter-link:hover {
    color: #1e3a8a;
}

.admin-users-page-v2 .admin-users-clear-placeholder {
    width: 44px;
    min-height: 43px;
}

.admin-users-page-v2 .admin-users-table-wrap {
    overflow-x: auto;
    border: 1px solid #cbd7e3;
    border-radius: 14px;
    background: #ffffff;
}

.admin-users-page-v2 .admin-users-table {
    min-width: 1060px;
    margin: 0 !important;
    table-layout: fixed;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.admin-users-page-v2 .admin-users-col-user {
    width: 24%;
}

.admin-users-page-v2 .admin-users-col-staff {
    width: 10%;
}

.admin-users-page-v2 .admin-users-col-department {
    width: 16%;
}

.admin-users-page-v2 .admin-users-col-role {
    width: 10%;
}

.admin-users-page-v2 .admin-users-col-status {
    width: 9%;
}

.admin-users-page-v2 .admin-users-col-login {
    width: 14%;
}

.admin-users-page-v2 .admin-users-col-actions {
    width: 17%;
}

.admin-users-page-v2 .admin-users-table thead th {
    padding: 13px 14px !important;
    border-top: 0 !important;
    border-bottom: 2px solid #14295a !important;
    background: linear-gradient(180deg, #234783 0%, #1e3a8a 100%) !important;
    font-size: 11.5px !important;
    letter-spacing: 0.05em !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.admin-users-page-v2 .admin-users-table .table-actions-heading {
    text-align: center !important;
}

.admin-users-page-v2 .admin-users-table thead th:first-child,
.admin-users-page-v2 .admin-users-table thead th:last-child {
    border-radius: 0 !important;
}

.admin-users-page-v2 .admin-users-table tbody td {
    padding: 14px !important;
    border-right-color: #e5ebf1 !important;
    border-bottom-color: #e0e7ef !important;
    font-size: 13px !important;
}

.admin-users-page-v2 .admin-users-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.admin-users-page-v2 .admin-users-table tbody tr.is-current-user td {
    background: #f2f7fd !important;
}

.admin-users-page-v2 .table-user-cell {
    min-width: 0;
    gap: 12px;
}

.admin-users-page-v2 .table-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, #315a9b, #337886);
    box-shadow: 0 5px 12px rgba(49, 90, 155, 0.16);
}

.admin-users-page-v2 .admin-users-identity-copy {
    min-width: 0;
}

.admin-users-page-v2 .admin-users-name-line {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-users-page-v2 .admin-users-name-line strong {
    overflow: hidden;
    color: #172a43 !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-users-page-v2 .table-user-cell > div:last-child > span {
    max-width: 100%;
    overflow: hidden;
    color: #718096 !important;
    font-size: 11.8px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-users-page-v2 .admin-users-you-badge {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 3px 7px;
    border-radius: 999px;
    color: #315a9b !important;
    background: #e8f0fa;
    font-size: 9.5px !important;
    font-weight: 850;
    line-height: 1.2 !important;
    text-transform: uppercase;
}

.admin-users-page-v2 .admin-users-staff-id {
    color: #34485f;
    font-weight: 750;
}

.admin-users-page-v2 .admin-users-department {
    display: block;
    color: #4e6075;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.admin-users-page-v2 .user-role-badge,
.admin-users-page-v2 .account-status-badge {
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    font-size: 10px !important;
    letter-spacing: 0.025em;
}

.admin-users-page-v2 .account-status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.58);
}

.admin-users-page-v2 .admin-users-login-time strong,
.admin-users-page-v2 .admin-users-login-time span {
    display: block;
}

.admin-users-page-v2 .admin-users-login-time strong {
    color: #34485f;
    font-size: 12.5px;
    font-weight: 750;
}

.admin-users-page-v2 .admin-users-login-time span {
    margin-top: 2px;
    color: #8492a5;
    font-size: 11.5px;
}

.admin-users-page-v2 .admin-users-never-login {
    color: #8a97a8;
    font-size: 11.8px;
    font-style: italic;
}

.admin-users-page-v2 .table-actions {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
}

.admin-users-page-v2 .table-edit-button,
.admin-users-page-v2 .table-delete-button {
    min-height: 34px;
    padding: 7px 9px;
    gap: 6px;
    border-radius: 9px;
    font-size: 11.5px !important;
    white-space: nowrap;
    flex: 0 0 auto;
}

.admin-users-page-v2 .table-edit-button svg,
.admin-users-page-v2 .table-delete-button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-users-page-v2 .table-edit-button:hover {
    border-color: #9fb5d0;
    background: #e2ecf8;
}

.admin-users-page-v2 .table-delete-button:hover {
    border-color: #f0a9a9;
    background: #fde7e7;
}

.admin-users-page-v2 .admin-users-empty-state {
    min-height: 235px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #64748b;
    text-align: center;
}

.admin-users-page-v2 .admin-users-empty-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 13px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #315a9b;
    background: #eaf1f8;
}

.admin-users-page-v2 .admin-users-empty-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

.admin-users-page-v2 .admin-users-empty-state strong {
    color: #263b53;
    font-size: 15px;
}

.admin-users-page-v2 .admin-users-empty-state > span:not(.admin-users-empty-icon) {
    margin-top: 5px;
    font-size: 12.5px;
}

.admin-users-page-v2 .admin-users-empty-state a {
    margin-top: 12px;
    color: #315a9b;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
}

.admin-users-page-v2 .admin-users-panel-footer {
    min-height: 38px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.admin-users-page-v2 .admin-users-panel-footer > span {
    color: #718096;
    font-size: 12px;
    font-weight: 650;
}

.admin-users-page-v2 .admin-users-pagination {
    margin-top: 0;
}

.admin-users-page-v2 .admin-users-pagination a {
    width: 35px;
    height: 35px;
    border-color: #d5e0eb;
    border-radius: 9px;
    font-size: 11.5px;
}

.admin-users-page-v2 .admin-users-pagination a.active {
    border-color: #315a9b;
    background: #315a9b;
    box-shadow: 0 5px 11px rgba(49, 90, 155, 0.18);
}

@media (max-width: 1120px) {
    .admin-users-page-v2 .admin-users-filter-form {
        grid-template-columns: minmax(260px, 1fr) 1fr 1fr;
    }

    .admin-users-page-v2 .admin-users-filter-form .filter-button,
    .admin-users-page-v2 .admin-users-filter-form .clear-filter-link,
    .admin-users-page-v2 .admin-users-clear-placeholder {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .admin-users-page-v2 .admin-users-heading {
        min-height: 0;
        padding: 21px;
        align-items: stretch;
    }

    .admin-users-page-v2 .admin-users-heading-copy {
        align-items: flex-start;
    }

    .admin-users-page-v2 .admin-users-heading .page-action-link {
        width: 100%;
    }

    .admin-users-page-v2 .admin-user-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-users-page-v2 .admin-users-directory-panel {
        padding: 16px;
        border-radius: 17px;
    }

    .admin-users-page-v2 .admin-users-filter-form {
        grid-template-columns: 1fr 1fr;
        padding: 13px;
    }

    .admin-users-page-v2 .admin-users-filter-form .filter-search {
        grid-column: 1 / -1;
    }

    .admin-users-page-v2 .admin-users-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .admin-users-page-v2 .admin-users-table {
        min-width: 0;
        background: transparent !important;
    }

    .admin-users-page-v2 .admin-users-table colgroup,
    .admin-users-page-v2 .admin-users-table thead {
        display: none;
    }

    .admin-users-page-v2 .admin-users-table tbody {
        display: grid;
        gap: 12px;
    }

    .admin-users-page-v2 .admin-users-table tbody tr {
        padding: 15px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        border: 1px solid #d8e3ed;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 6px 15px rgba(15, 23, 42, 0.045);
    }

    .admin-users-page-v2 .admin-users-table tbody tr.is-current-user {
        border-color: #b9cfe6;
        background: #f5f9fd;
    }

    .admin-users-page-v2 .admin-users-table tbody td {
        min-width: 0;
        padding: 9px 0 !important;
        display: block;
        border: 0 !important;
        background: transparent !important;
    }

    .admin-users-page-v2 .admin-users-table tbody td::before {
        content: attr(data-label);
        margin-bottom: 5px;
        display: block;
        color: #8492a5;
        font-size: 9.5px;
        font-weight: 850;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .admin-users-page-v2 .admin-users-table tbody td:first-child,
    .admin-users-page-v2 .admin-users-table tbody td:nth-child(6),
    .admin-users-page-v2 .admin-users-table tbody td:last-child {
        grid-column: 1 / -1;
    }

    .admin-users-page-v2 .admin-users-table tbody td:first-child {
        margin-bottom: 3px;
        padding-bottom: 13px !important;
        border-bottom: 1px solid #e6edf3 !important;
    }

    .admin-users-page-v2 .admin-users-table tbody td:first-child::before,
    .admin-users-page-v2 .admin-users-table .table-empty-message::before {
        display: none;
    }

    .admin-users-page-v2 .admin-users-table tbody td:nth-child(6) {
        padding-top: 11px !important;
        border-top: 1px solid #edf1f5 !important;
    }

    .admin-users-page-v2 .admin-users-table tbody td:last-child {
        padding-top: 11px !important;
    }

    .admin-users-page-v2 .table-actions {
        justify-content: center;
    }

    .admin-users-page-v2 .table-empty-message {
        grid-column: 1 / -1;
        padding: 0 !important;
    }

    .admin-users-page-v2 .admin-users-empty-state {
        min-height: 210px;
    }
}

@media (max-width: 520px) {
    .admin-users-page-v2 .admin-users-heading-copy {
        gap: 12px;
    }

    .admin-users-page-v2 .admin-users-heading-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    .admin-users-page-v2 .admin-users-heading h1 {
        font-size: 24px;
    }

    .admin-users-page-v2 .admin-user-summary-grid,
    .admin-users-page-v2 .admin-users-filter-form {
        grid-template-columns: 1fr;
    }

    .admin-users-page-v2 .admin-users-filter-form .filter-search {
        grid-column: auto;
    }

    .admin-users-page-v2 .admin-users-panel-heading,
    .admin-users-page-v2 .admin-users-panel-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-users-page-v2 .admin-users-table tbody tr {
        grid-template-columns: 1fr;
    }

    .admin-users-page-v2 .admin-users-table tbody td {
        grid-column: 1 / -1 !important;
    }
}

/* =========================================================
   ADMIN — SUBMISSIONS INTERFACE REFINEMENT
   ========================================================= */

.admin-submissions-page-v2 {
    --submissions-blue: #315a9b;
    --submissions-teal: #337886;
    --submissions-border: #d8e3ed;
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    gap: 20px;
}

.admin-submissions-page-v2 .admin-submissions-heading {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 25px 27px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 0%, rgba(226, 184, 75, 0.20), transparent 30%),
        linear-gradient(135deg, #132d50 0%, #234f81 62%, #2d7180 100%);
    box-shadow: 0 17px 36px rgba(23, 54, 95, 0.16);
}

.admin-submissions-page-v2 .admin-submissions-heading::after {
    content: "";
    position: absolute;
    right: -88px;
    bottom: -140px;
    width: 220px;
    height: 220px;
    border: 27px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
    pointer-events: none;
}

.admin-submissions-page-v2 .admin-submissions-heading > * {
    position: relative;
    z-index: 1;
}

.admin-submissions-page-v2 .admin-submissions-heading-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-submissions-page-v2 .admin-submissions-heading-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
}

.admin-submissions-page-v2 .admin-submissions-heading-icon svg,
.admin-submissions-page-v2 .admin-submissions-heading .page-action-link svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-submissions-page-v2 .admin-submissions-heading-icon svg {
    width: 26px;
    height: 26px;
}

.admin-submissions-page-v2 .admin-submissions-heading .page-eyebrow {
    margin-bottom: 5px;
    color: #f4d77e;
    font-size: 11.5px;
    letter-spacing: 0.12em;
}

.admin-submissions-page-v2 .admin-submissions-heading h1 {
    color: #ffffff;
    font-size: clamp(26px, 3vw, 32px);
    letter-spacing: -0.025em;
}

.admin-submissions-page-v2 .admin-submissions-heading .page-description {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13.5px;
}

.admin-submissions-page-v2 .admin-submissions-heading .page-action-link {
    min-height: 43px;
    padding: 10px 16px;
    border-color: rgba(255, 255, 255, 0.24);
    color: #17365f;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.admin-submissions-page-v2 .admin-submissions-heading .page-action-link:hover {
    border-color: #f7e6aa;
    color: #17365f;
    background: #f7e6aa;
}

.admin-submissions-page-v2 .admin-submissions-summary-v2 {
    gap: 14px;
}

.admin-submissions-page-v2 .admin-submissions-summary-v2 .stat-card {
    position: relative;
    overflow: hidden;
    min-height: 106px;
    padding: 19px 20px;
    border-color: var(--submissions-border);
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-submissions-page-v2 .admin-submissions-summary-v2 .stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--submission-summary-accent, #315a9b);
}

.admin-submissions-page-v2 .admin-submissions-summary-v2 .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.admin-submissions-page-v2 .admin-submissions-summary-v2 .stat-card-primary {
    --submission-summary-accent: #315a9b;
}

.admin-submissions-page-v2 .admin-submissions-summary-v2 .stat-card-warning {
    --submission-summary-accent: #d19a22;
}

.admin-submissions-page-v2 .admin-submissions-summary-v2 .stat-card-review {
    --submission-summary-accent: #337886;
}

.admin-submissions-page-v2 .admin-submissions-summary-v2 .stat-card-revision {
    --submission-summary-accent: #c27832;
}

.admin-submissions-page-v2 .admin-submissions-summary-v2 .stat-card-success {
    --submission-summary-accent: #2e8061;
}

.admin-submissions-page-v2 .admin-submissions-summary-v2 .stat-card-title {
    font-size: 13px;
    font-weight: 750;
}

.admin-submissions-page-v2 .admin-submissions-summary-v2 .stat-card-value {
    margin-top: 5px;
    font-size: 27px;
}

.admin-submissions-page-v2 .admin-submissions-summary-v2 .stat-card-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 14px;
}

.admin-submissions-page-v2 .admin-submissions-directory-panel {
    padding: 22px;
    overflow: hidden;
    border-color: var(--submissions-border);
    border-radius: 20px;
    box-shadow: 0 11px 28px rgba(15, 23, 42, 0.06);
}

.admin-submissions-page-v2 .admin-submissions-panel-heading {
    margin-bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-submissions-page-v2 .admin-submissions-panel-heading h2 {
    margin: 0;
    color: #172a43;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.3;
}

.admin-submissions-page-v2 .admin-submissions-panel-heading p {
    margin: 4px 0 0;
    color: #718096;
    font-size: 12.5px;
    line-height: 1.5;
}

.admin-submissions-page-v2 .admin-submissions-result-count {
    flex: 0 0 auto;
    padding: 6px 11px;
    border: 1px solid #d7e2ed;
    border-radius: 999px;
    color: #475b73;
    background: #f7f9fc;
    font-size: 11.5px;
    font-weight: 800;
}

.admin-submissions-page-v2 .admin-submissions-filter-v2 {
    margin-bottom: 19px;
    padding: 15px;
    grid-template-columns:
        minmax(250px, 1fr)
        minmax(150px, 180px)
        minmax(180px, 220px)
        minmax(150px, 180px)
        auto
        minmax(44px, auto);
    gap: 11px;
    border: 1px solid #e0e8f0;
    border-radius: 14px;
    background: #f7f9fc;
}

.admin-submissions-page-v2 .admin-submissions-filter-v2 label {
    margin-bottom: 6px;
    color: #42566d;
    font-size: 12.5px;
    font-weight: 800;
}

.admin-submissions-page-v2 .admin-submissions-filter-v2 input,
.admin-submissions-page-v2 .admin-submissions-filter-v2 select {
    min-height: 43px;
    border-color: #cbd7e3;
    border-radius: 10px;
    color: #172a43;
    background: #ffffff;
    font-size: 13.5px;
}

.admin-submissions-page-v2 .admin-submissions-search-input {
    position: relative;
}

.admin-submissions-page-v2 .admin-submissions-search-input svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8a9aae;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.admin-submissions-page-v2 .admin-submissions-search-input input {
    padding-left: 38px;
}

.admin-submissions-page-v2 .admin-submissions-filter-v2 .filter-button,
.admin-submissions-page-v2 .admin-submissions-filter-v2 .clear-filter-link {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-submissions-page-v2 .admin-submissions-filter-v2 .filter-button {
    gap: 7px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #1e3a8a, #2b6687);
    box-shadow: 0 5px 12px rgba(30, 58, 138, 0.17);
}

.admin-submissions-page-v2 .admin-submissions-filter-v2 .filter-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.admin-submissions-page-v2 .admin-submissions-filter-v2 .clear-filter-link {
    padding: 8px 4px;
    color: #5f7084;
}

.admin-submissions-page-v2 .admin-submissions-clear-placeholder {
    width: 44px;
    min-height: 43px;
}

.admin-submissions-page-v2 .admin-submissions-table-shell {
    overflow-x: hidden;
    border: 1px solid #cbd7e3;
    border-radius: 14px;
    background: #ffffff;
}

.admin-submissions-page-v2 .admin-submissions-table-v2 {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    table-layout: fixed;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.admin-submissions-page-v2 .admin-submissions-col-submission {
    width: 19%;
}

.admin-submissions-page-v2 .admin-submissions-col-submitter {
    width: 15%;
}

.admin-submissions-page-v2 .admin-submissions-col-document {
    width: 14%;
}

.admin-submissions-page-v2 .admin-submissions-col-status {
    width: 10%;
}

.admin-submissions-page-v2 .admin-submissions-col-reviewer {
    width: 21.5%;
}

.admin-submissions-page-v2 .admin-submissions-col-submitted {
    width: 11.5%;
}

.admin-submissions-page-v2 .admin-submissions-col-action {
    width: 9%;
}

.admin-submissions-page-v2 .admin-submissions-table-v2 thead th {
    padding: 12px !important;
    border-top: 0 !important;
    border-bottom: 2px solid #14295a !important;
    background: linear-gradient(180deg, #234783 0%, #1e3a8a 100%) !important;
    font-size: 11.5px !important;
    letter-spacing: 0.045em !important;
    text-align: left !important;
    vertical-align: middle !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.admin-submissions-page-v2 .admin-submissions-table-v2 .table-actions-heading {
    text-align: center !important;
}

.admin-submissions-page-v2 .admin-submissions-table-v2 thead th:first-child,
.admin-submissions-page-v2 .admin-submissions-table-v2 thead th:last-child {
    border-radius: 0 !important;
}

.admin-submissions-page-v2 .admin-submissions-table-v2 tbody td {
    min-width: 0;
    padding: 12px !important;
    border-right-color: #e5ebf1 !important;
    border-bottom-color: #e0e7ef !important;
    font-size: 13px !important;
    overflow-wrap: anywhere;
}

.admin-submissions-page-v2 .admin-submissions-table-v2 tbody td:last-child {
    padding-right: 8px !important;
    padding-left: 8px !important;
}

.admin-submissions-page-v2 .admin-submissions-table-v2 tbody tr:last-child td {
    border-bottom: 0 !important;
}

.admin-submissions-page-v2 .admin-submissions-table-v2 .admin-submission-title-cell {
    min-width: 0;
}

.admin-submissions-page-v2 .admin-submissions-table-v2 .admin-submission-title-cell strong,
.admin-submissions-page-v2 .admin-submissions-table-v2 td > strong {
    color: #172a43 !important;
    font-size: 13.2px !important;
    font-weight: 780 !important;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.admin-submissions-page-v2 .admin-submissions-table-v2 .admin-submission-title-cell span,
.admin-submissions-page-v2 .admin-submissions-table-v2 .admin-table-secondary-text {
    color: #718096 !important;
    font-size: 11.5px !important;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.admin-submissions-page-v2 .admin-submitter-cell-v2 {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-submissions-page-v2 .admin-submitter-avatar-v2 {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(145deg, #315a9b, #337886);
    box-shadow: 0 4px 10px rgba(49, 90, 155, 0.14);
    font-size: 12px;
    font-weight: 850;
}

.admin-submissions-page-v2 .admin-document-method-badge {
    width: fit-content;
    margin-top: 7px;
    padding: 5px 8px;
    color: #315a9b;
    background: #eaf1f8;
    font-size: 9.5px !important;
}

.admin-submissions-page-v2 .admin-submissions-table-v2 .status-badge {
    max-width: 100%;
    padding: 6px 9px;
    font-size: 10px !important;
    line-height: 1.25 !important;
    white-space: normal;
    text-align: center;
}

.admin-submissions-page-v2 .admin-assignment-inline {
    width: 100%;
    min-width: 0;
    gap: 7px;
}

.admin-submissions-page-v2 .admin-assignment-inline select {
    min-width: 0;
    min-height: 38px !important;
    flex: 1 1 auto;
    border-color: #cbd7e3;
    border-radius: 9px;
    font-size: 12px !important;
}

.admin-submissions-page-v2 .admin-assignment-inline button {
    min-height: 38px !important;
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 11.5px !important;
}

.admin-submissions-page-v2 .admin-reviewer-display {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 9px;
    color: #475b73;
    background: #f0f4f8;
    font-size: 11.5px;
}

.admin-submissions-page-v2 .admin-submitted-time-v2 strong,
.admin-submissions-page-v2 .admin-submitted-time-v2 span {
    display: block;
}

.admin-submissions-page-v2 .admin-submitted-time-v2 strong {
    color: #34485f;
    font-size: 12.5px;
    font-weight: 750;
}

.admin-submissions-page-v2 .admin-submitted-time-v2 span {
    margin-top: 2px;
    color: #8492a5;
    font-size: 11.5px;
}

.admin-submissions-page-v2 .admin-submissions-table-v2 .table-actions {
    justify-content: center;
}

.admin-submissions-page-v2 .admin-submission-view-button-v2 {
    min-height: 35px;
    padding: 7px 10px;
    gap: 6px;
    border-color: #b8cbe0;
    color: #244b7d;
    background: #edf3fa;
    font-size: 11.5px !important;
    white-space: nowrap;
}

.admin-submissions-page-v2 .admin-submission-view-button-v2 svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-submissions-page-v2 .admin-submissions-empty-state {
    min-height: 235px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #64748b;
    text-align: center;
}

.admin-submissions-page-v2 .admin-submissions-empty-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 13px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #315a9b;
    background: #eaf1f8;
}

.admin-submissions-page-v2 .admin-submissions-empty-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-submissions-page-v2 .admin-submissions-empty-state strong {
    color: #263b53;
    font-size: 15px;
}

.admin-submissions-page-v2 .admin-submissions-empty-state > span:not(.admin-submissions-empty-icon) {
    margin-top: 5px;
    font-size: 12.5px;
}

.admin-submissions-page-v2 .admin-submissions-empty-state a {
    margin-top: 12px;
    color: #315a9b;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
}

.admin-submissions-page-v2 .admin-submissions-panel-footer {
    min-height: 38px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.admin-submissions-page-v2 .admin-submissions-panel-footer > span {
    color: #718096;
    font-size: 12px;
    font-weight: 650;
}

.admin-submissions-page-v2 .admin-submissions-pagination {
    margin-top: 0;
}

.admin-submissions-page-v2 .admin-submissions-pagination a {
    width: 35px;
    height: 35px;
    border-color: #d5e0eb;
    border-radius: 9px;
    font-size: 11.5px;
}

.admin-submissions-page-v2 .admin-submissions-pagination a.active {
    border-color: #315a9b;
    background: #315a9b;
    box-shadow: 0 5px 11px rgba(49, 90, 155, 0.18);
}

@media (max-width: 1280px) {
    .admin-submissions-page-v2 .admin-submissions-summary-v2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-submissions-page-v2 .admin-submissions-filter-v2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-submissions-page-v2 .admin-submissions-filter-v2 .filter-button,
    .admin-submissions-page-v2 .admin-submissions-filter-v2 .clear-filter-link,
    .admin-submissions-page-v2 .admin-submissions-clear-placeholder {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .admin-submissions-page-v2 .admin-submissions-heading {
        min-height: 0;
        padding: 21px;
        align-items: stretch;
    }

    .admin-submissions-page-v2 .admin-submissions-heading-copy {
        align-items: flex-start;
    }

    .admin-submissions-page-v2 .admin-submissions-heading .page-action-link {
        width: 100%;
    }

    .admin-submissions-page-v2 .admin-submissions-summary-v2,
    .admin-submissions-page-v2 .admin-submissions-filter-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-submissions-page-v2 .admin-submissions-search-field {
        grid-column: 1 / -1;
    }

    .admin-submissions-page-v2 .admin-submissions-directory-panel {
        padding: 16px;
        border-radius: 17px;
    }

    .admin-submissions-page-v2 .admin-submissions-table-shell {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .admin-submissions-page-v2 .admin-submissions-table-v2 {
        min-width: 0;
        background: transparent !important;
    }

    .admin-submissions-page-v2 .admin-submissions-table-v2 colgroup,
    .admin-submissions-page-v2 .admin-submissions-table-v2 thead {
        display: none;
    }

    .admin-submissions-page-v2 .admin-submissions-table-v2 tbody {
        display: grid;
        gap: 12px;
    }

    .admin-submissions-page-v2 .admin-submissions-table-v2 tbody tr {
        padding: 15px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        border: 1px solid #d8e3ed;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 6px 15px rgba(15, 23, 42, 0.045);
    }

    .admin-submissions-page-v2 .admin-submissions-table-v2 tbody td {
        min-width: 0;
        padding: 9px 0 !important;
        display: block;
        border: 0 !important;
        background: transparent !important;
    }

    .admin-submissions-page-v2 .admin-submissions-table-v2 tbody tr:nth-child(even) td,
    .admin-submissions-page-v2 .admin-submissions-table-v2 tbody tr:hover td {
        background: transparent !important;
    }

    .admin-submissions-page-v2 .admin-submissions-table-v2 tbody td::before {
        content: attr(data-label);
        margin-bottom: 5px;
        display: block;
        color: #8492a5;
        font-size: 9.5px;
        font-weight: 850;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .admin-submissions-page-v2 .admin-submissions-table-v2 tbody td:first-child,
    .admin-submissions-page-v2 .admin-submissions-table-v2 tbody td:nth-child(2),
    .admin-submissions-page-v2 .admin-submissions-table-v2 tbody td:nth-child(5) {
        grid-column: 1 / -1;
    }

    .admin-submissions-page-v2 .admin-submissions-table-v2 tbody td:first-child {
        padding-bottom: 13px !important;
        border-bottom: 1px solid #e6edf3 !important;
    }

    .admin-submissions-page-v2 .admin-submissions-table-v2 .table-empty-message {
        grid-column: 1 / -1;
        padding: 0 !important;
        border-bottom: 0 !important;
    }

    .admin-submissions-page-v2 .admin-submissions-table-v2 .table-empty-message::before {
        display: none;
    }

    .admin-submissions-page-v2 .admin-submissions-empty-state {
        min-height: 210px;
    }
}

@media (max-width: 520px) {
    .admin-submissions-page-v2 .admin-submissions-heading-copy {
        gap: 12px;
    }

    .admin-submissions-page-v2 .admin-submissions-heading-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    .admin-submissions-page-v2 .admin-submissions-heading h1 {
        font-size: 24px;
    }

    .admin-submissions-page-v2 .admin-submissions-summary-v2,
    .admin-submissions-page-v2 .admin-submissions-filter-v2 {
        grid-template-columns: 1fr;
    }

    .admin-submissions-page-v2 .admin-submissions-search-field {
        grid-column: auto;
    }

    .admin-submissions-page-v2 .admin-submissions-panel-heading,
    .admin-submissions-page-v2 .admin-submissions-panel-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-submissions-page-v2 .admin-submissions-table-v2 tbody tr {
        grid-template-columns: 1fr;
    }

    .admin-submissions-page-v2 .admin-submissions-table-v2 tbody td {
        grid-column: 1 / -1 !important;
    }

    .admin-submissions-page-v2 .admin-assignment-inline {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-submissions-page-v2 .admin-assignment-inline button {
        width: 100%;
    }
}

/* =========================================================
   REVIEWER — SMART TEMPLATE PREVIEW LOWER CANVAS
   ========================================================= */

.review-detail-page .reviewer-manual-editor-card {
    position: relative;
}

.review-detail-page .reviewer-document-preview-end {
    position: absolute;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    height: 34px;
    margin: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 0 0 21px 21px;
    background: #ffffff;
    pointer-events: none;
}

.review-detail-page .reviewer-document-preview-end::before {
    content: none;
}

.review-detail-page .reviewer-official-document-preview .tox.tox-tinymce,
.review-detail-page .reviewer-official-document-preview
    .reviewer-manual-editor-preview-source {
    border-radius: 14px;
}

@media (max-width: 700px) {
    .review-detail-page .reviewer-document-preview-end {
        height: 28px;
        border-radius: 0 0 17px 17px;
    }
}

/* =========================================================
   USER MANAGEMENT
   ========================================================= */

.management-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.page-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.page-eyebrow {
    margin: 0 0 6px;
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.page-heading-row h1 {
    margin: 0;
    color: #0f172a;
    font-size: 30px;
    font-weight: 800;
}

.page-description {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
}

.page-action-link {
    text-decoration: none;
}

.user-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mini-summary-card {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.05);
}

.mini-summary-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.mini-summary-card strong {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-family:
        'Plus Jakarta Sans',
        Arial,
        sans-serif;
    font-size: 25px;
}

.management-panel,
.form-panel {
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-form {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr) minmax(140px, 180px) minmax(140px, 180px) auto auto;
    align-items: end;
    gap: 12px;
}

.filter-form label,
.system-field label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.filter-form input,
.filter-form select,
.system-field input,
.system-field select,
.system-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: #0f172a;
}

.filter-form input:focus,
.filter-form select:focus,
.system-field input:focus,
.system-field select:focus,
.system-field textarea:focus {
    border-color: #6f86b3;
    box-shadow:
        0 0 0 3px rgba(49, 90, 155, 0.11);
}

.filter-button {
    min-height: 42px;
    padding: 10px 15px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: #1e3a8a;
    font-size: 12px;
    font-weight: 700;
}

.clear-filter-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.management-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}

.management-table th {
    padding: 12px 13px;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    background: #f8fafc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.management-table td {
    padding: 14px 13px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 12px;
    vertical-align: middle;
}

.table-user-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.table-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ffffff;
    background:
        linear-gradient(135deg,
            #1e3a8a,
            #2b6687);
    font-weight: 800;
}

.table-user-cell strong {
    display: block;
    color: #1e293b;
    font-size: 12px;
}

.table-user-cell span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10px;
}

.user-role-badge,
.account-status-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.role-admin {
    color: #7e22ce;
    background: #f3e8ff;
}

.role-reviewer {
    color: #0369a1;
    background: #e0f2fe;
}

.role-submitter {
    color: #047857;
    background: #d1fae5;
}

.account-active {
    color: #166534;
    background: #dcfce7;
}

.account-inactive {
    color: #991b1b;
    background: #fee2e2;
}

.table-actions-heading {
    text-align: right !important;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.table-actions form {
    margin: 0;
}

.table-edit-button,
.table-delete-button {
    min-height: 32px;
    padding: 7px 11px;
    display: inline-flex;
    align-items: center;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.table-edit-button {
    border: 1px solid #c2d0e4;
    color: #172554;
    background: #edf2f9;
}

.table-delete-button {
    border: 1px solid #fecaca;
    color: #b91c1c;
    background: #fef2f2;
}

.table-empty-message {
    padding: 40px !important;
    color: #64748b !important;
    text-align: center;
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.pagination a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    background: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.pagination a.active {
    color: #ffffff;
    border-color: #1e3a8a;
    background: #1e3a8a;
}

.system-form {
    max-width: 850px;
}

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

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

.system-field small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 10px;
}

.form-action-row {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

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

@media (max-width: 650px) {
    .page-heading-row {
        align-items: stretch;
        flex-direction: column;
    }

    .page-action-link {
        width: 100%;
    }

    .user-summary-grid,
    .filter-form,
    .system-form-grid {
        grid-template-columns: 1fr;
    }

    .system-field-full {
        grid-column: auto;
    }

    .form-action-row {
        flex-direction: column-reverse;
    }

    .form-action-row a,
    .form-action-row button {
        width: 100%;
    }
}

/* =========================================================
   SUBMISSIONS
   ========================================================= */

.submission-form-panel {
    width: 100%;
    max-width: 1250px;
}

.submission-system-form {
    max-width: none;
}

.submission-system-form textarea {
    min-height: 280px;
    resize: vertical;
    line-height: 1.7;
}

.submission-form-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.submission-filter-form {
    margin-bottom: 22px;
    display: grid;
    grid-template-columns:
        minmax(240px, 1fr) minmax(170px, 220px) auto auto;
    align-items: end;
    gap: 12px;
}

.submission-filter-form label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.submission-filter-form input,
.submission-filter-form select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: #0f172a;
}

.submission-filter-form input:focus,
.submission-filter-form select:focus {
    border-color: #6f86b3;
    box-shadow:
        0 0 0 3px rgba(49, 90, 155, 0.11);
}

.submission-card-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.submission-list-card {
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 19px;
    background: #f8fafc;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.submission-list-card:hover {
    border-color: #c2d0e4;
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.submission-card-main {
    min-width: 0;
    flex: 1;
}

.submission-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.submission-reference {
    margin: 0 0 5px;
    color: #1e3a8a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.submission-card-top h2 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.submission-card-metadata {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: #64748b;
    font-size: 11px;
}

.submission-card-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.submission-card-actions form {
    margin: 0;
}

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

.submission-detail-grid {
    display: grid;
    grid-template-columns:
        minmax(300px, 0.75fr) minmax(400px, 1.25fr);
    gap: 20px;
}

.submission-detail-card {
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.06);
}

.submission-detail-card>h2,
.submission-detail-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.submission-detail-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.submission-information-list div {
    min-width: 0;
}

.submission-information-list dt {
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.submission-information-list dd {
    margin: 0;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}


/* =========================================================
   REVIEWER — SAME A4 DOCUMENT CANVAS AS MANUAL EDITOR
   Keeps reviewer preview visually aligned with submitter editor.
   ========================================================= */
.sapms-a4-document-preview {
    width: 8.5in;
    min-height: 11in;
    box-sizing: border-box;
    margin: 20px auto;
    padding: 1in;
    background: #ffffff;
    color: #000000;
    font-family:
        'Century Gothic',
        CenturyGothic,
        Arial,
        sans-serif;
    font-size: 12pt;
    line-height: 16pt;
    border: 1px solid #dbe4ef;
}

.sapms-a4-document-preview table {
    width: 100%;
    border-collapse: collapse;
}

.sapms-a4-document-preview td,
.sapms-a4-document-preview th {
    vertical-align: top;
}

.basic-document-preview {
    min-height: 250px;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    color: #334155;
    background: #f8fafc;
    font-family:
        Georgia,
        'Times New Roman',
        serif;
    font-size: 14px;
    line-height: 1.8;
    white-space: normal;
}

.document-empty-message {
    margin-top: 18px;
    padding: 25px;
    border: 1px dashed #cbd5e1;
    border-radius: 15px;
    color: #64748b;
    background: #f8fafc;
    font-size: 12px;
    text-align: center;
}

.feedback-box {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid #fde68a;
    border-radius: 14px;
    color: #78350f;
    background: #fffbeb;
}

.feedback-box h3 {
    margin: 0 0 8px;
    font-size: 13px;
}

.feedback-box p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
}

.status-history-list {
    position: relative;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.status-history-item {
    position: relative;
    padding-left: 28px;
}

.status-history-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 14px;
    bottom: -22px;
    left: 7px;
    width: 2px;
    background: #e2e8f0;
}

.history-marker {
    position: absolute;
    top: 4px;
    left: 0;
    width: 16px;
    height: 16px;
    border: 4px solid #dce6f3;
    border-radius: 50%;
    background: #1e3a8a;
}

.status-history-item h3 {
    margin: 0;
    color: #1e293b;
    font-size: 13px;
}

.status-history-item p {
    margin: 5px 0;
    color: #64748b;
    font-size: 12px;
}

.status-history-item span {
    color: #94a3b8;
    font-size: 10px;
}

@media (max-width: 950px) {
    .submission-detail-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 650px) {

    .submission-form-actions,
    .submission-heading-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .submission-form-actions a,
    .submission-form-actions button,
    .submission-heading-actions a {
        width: 100%;
    }

    .submission-filter-form {
        grid-template-columns: 1fr;
    }

    .submission-list-card {
        align-items: stretch;
        flex-direction: column;
    }

    .submission-card-top {
        flex-direction: column;
    }

    .submission-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .submission-card-actions a,
    .submission-card-actions button,
    .submission-card-actions form {
        width: 100%;
    }

    .submission-card-actions a,
    .submission-card-actions button {
        justify-content: center;
    }

    .submission-information-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SUBMISSION METHOD CARDS AND TINYMCE
   ========================================================= */

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

.submission-mode-card {
    position: relative;
    min-height: 155px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.submission-mode-card:hover {
    border-color: #c2d0e4;
    background: #ffffff;
    transform: translateY(-2px);
}

.submission-mode-card.active {
    border-color: #315a9b;
    background:
        linear-gradient(135deg,
            #ffffff,
            #edf2f9);
    box-shadow:
        0 0 0 2px rgba(49, 90, 155, 0.10),
        0 12px 24px rgba(15, 23, 42, 0.07);
}

.submission-mode-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.submission-mode-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #1e3a8a;
    background: #edf2f9;
}

.submission-mode-card.active .submission-mode-icon {
    color: #ffffff;
    background:
        linear-gradient(135deg,
            #1e3a8a,
            #2b6687);
}

.submission-mode-icon svg {
    width: 22px;
    height: 22px;
}

.submission-mode-text {
    display: block;
}

.submission-mode-text strong {
    display: block;
    color: #1e293b;
    font-size: 14px;
}

.submission-mode-text small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}

.submission-mode-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.submission-mode-tag.ready {
    color: #047857;
    background: #d1fae5;
}

.submission-current-status {
    min-height: 42px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
}

.submission-mode-section[hidden] {
    display: none !important;
}

.mode-information-panel {
    min-height: 180px;
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    border: 1px dashed #c2d0e4;
    border-radius: 20px;
    background:
        linear-gradient(135deg,
            #f8fafc,
            #edf2f9);
}

.mode-information-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    color: #1e3a8a;
    background: #ffffff;
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.08);
}

.mode-information-icon svg {
    width: 25px;
    height: 25px;
}

.mode-information-panel h2 {
    margin: 3px 0 8px;
    color: #1e293b;
    font-size: 17px;
}

.mode-information-panel p {
    max-width: 650px;
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.8;
}

.submission-mode-warning {
    margin-top: 22px;
}

.primary-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    box-shadow: none;
    transform: none;
}

.tox.tox-tinymce {
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.05);
}

.tox .tox-editor-header {
    box-shadow:
        0 1px 0 #e2e8f0 !important;
}

@media (max-width: 900px) {
    .submission-mode-grid {
        grid-template-columns: 1fr;
    }

    .submission-mode-card {
        min-height: 125px;
    }
}

@media (max-width: 550px) {
    .mode-information-panel {
        flex-direction: column;
        padding: 20px;
    }
}

/* =========================================================
   REVIEWER WORKSPACE
   ========================================================= */

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

.reviewer-filter-form {
    grid-template-columns:
        minmax(260px, 1fr) minmax(190px, 240px) auto auto;
}

.review-assignment-row {
    margin-top: 12px;
}

.review-assignment-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.review-assignment-badge.available {
    color: #047857;
    background: #d1fae5;
}

.review-assignment-badge.mine {
    color: #172554;
    background: #dce6f3;
}

.review-assignment-badge.occupied {
    color: #92400e;
    background: #fef3c7;
}

.secondary-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.review-workspace-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr) minmax(320px, 0.65fr);

    align-items: start;
    gap: 20px;
}

.review-document-panel {
    min-width: 0;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.06);
}

.review-panel-heading {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.review-panel-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
}

.review-control-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-information-list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-information-list div {
    padding-bottom: 13px;
    border-bottom: 1px solid #f1f5f9;
}

.review-information-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.review-information-list dt {
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.review-information-list dd {
    margin: 0;
    color: #334155;
    font-size: 12px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.review-action-grid {
    margin-top: 18px;
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.review-action-grid button {
    min-height: 42px;
    justify-content: center;
}

.review-action-button {
    min-height: 42px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.review-action-warning {
    background: #d97706;
}

.review-action-danger {
    background: #dc2626;
}

.review-action-success {
    background: #059669;
}

.review-action-button:hover {
    filter: brightness(0.94);
}

.review-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-history-item {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.review-history-item strong {
    display: block;
    color: #1e293b;
    font-size: 12px;
}

.review-history-item span {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 9px;
}

.review-history-item p {
    margin: 10px 0 0;
    color: #475569;
    font-size: 11px;
    line-height: 1.7;
}

.review-file-list {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.review-file-list h3 {
    margin: 0 0 12px;
    color: #1e293b;
    font-size: 13px;
}

.review-file-item {
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.review-file-item strong,
.review-file-item span {
    display: block;
}

.review-file-item strong {
    color: #334155;
    font-size: 11px;
}

.review-file-item span {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 9px;
}

@media (max-width: 1100px) {
    .review-workspace-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {

    .reviewer-summary-grid,
    .reviewer-filter-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 550px) {

    .review-panel-heading,
    .review-file-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-action-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ADMIN SUBMISSION MANAGEMENT
   ========================================================= */

.admin-submission-summary-grid {
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
}

.admin-submission-filter-form {
    margin-bottom: 22px;
    display: grid;

    grid-template-columns:
        minmax(230px, 1fr) minmax(145px, 180px) minmax(180px, 230px) minmax(150px, 190px) auto auto;

    align-items: end;
    gap: 12px;
}

.admin-submission-filter-form label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.admin-submission-filter-form input,
.admin-submission-filter-form select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
}

.admin-submission-filter-form input:focus,
.admin-submission-filter-form select:focus {
    border-color: #6f86b3;

    box-shadow:
        0 0 0 3px rgba(49, 90, 155, 0.11);
}

.admin-submissions-table {
    min-width: 1450px;
}

.admin-submission-title-cell {
    min-width: 190px;
}

.admin-submission-title-cell strong {
    display: block;
    color: #1e293b;
    font-size: 12px;
    line-height: 1.45;
}

.admin-submission-title-cell span,
.admin-table-secondary-text {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 10px;
}

.admin-assignment-inline {
    min-width: 265px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-assignment-inline select {
    min-width: 190px;
    min-height: 35px;
    padding: 7px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    outline: none;
    color: #334155;
    background: #ffffff;
    font-size: 10px;
}

.admin-assignment-inline button {
    min-height: 35px;
    padding: 7px 11px;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    background: #1e3a8a;
    font-size: 10px;
    font-weight: 800;
}

.admin-reviewer-display {
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.admin-submission-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.45fr) minmax(320px, 0.55fr);

    align-items: start;
    gap: 20px;
}

.admin-submission-detail-main,
.admin-submission-detail-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-document-method-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #172554;
    background: #edf2f9;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-document-preview {
    max-height: 850px;
    overflow: auto;
}

.admin-review-record-list,
.admin-file-record-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-review-record {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.admin-review-record-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-review-record-heading strong {
    display: block;
    color: #1e293b;
    font-size: 12px;
}

.admin-review-record-heading span {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 9px;
}

.admin-review-record p {
    margin: 12px 0 0;
    color: #475569;
    font-size: 11px;
    line-height: 1.75;
}

.admin-muted-text {
    color: #94a3b8 !important;
    font-style: italic;
}

.admin-file-record {
    padding: 13px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.admin-file-record:last-child {
    border-bottom: 0;
}

.admin-file-record strong {
    display: block;
    color: #334155;
    font-size: 11px;
}

.admin-file-record span {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 9px;
}

.admin-assignment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-assignment-save-button {
    width: 100%;
}

.admin-current-reviewer-card {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #f8fafc;
}

.admin-current-reviewer-card>span {
    display: block;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-current-reviewer-card strong {
    display: block;
    margin-top: 7px;
    color: #1e293b;
    font-size: 13px;
}

.admin-current-reviewer-card small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 10px;
}

.admin-current-reviewer-card p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.6;
}

.admin-feedback-box {
    margin-top: 20px;
}

.admin-status-history-list {
    max-height: 550px;
    overflow-y: auto;
}

a.view-details-button {
    text-decoration: none;
}

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

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

@media (max-width: 1050px) {
    .admin-submission-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .admin-submission-summary-grid,
    .admin-submission-filter-form {
        grid-template-columns: 1fr;
    }

    .admin-file-record,
    .admin-review-record-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   SECURE SUBMISSION FILES
   ========================================================= */

.upload-document-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.upload-field-grid input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px dashed #a5b4fc;
    border-radius: 12px;
    color: #475569;
    background: #f8fafc;
}

.upload-field-grid input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: #1e3a8a;
    font-weight: 700;
    cursor: pointer;
}

.existing-upload-list {
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.existing-upload-list h3 {
    margin: 0 0 12px;
    color: #1e293b;
    font-size: 14px;
}

.existing-upload-item,
.submission-file-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid #f1f5f9;
}

.existing-upload-item:last-child,
.submission-file-card:last-child {
    border-bottom: 0;
}

.existing-upload-item>div:first-child {
    flex: 1;
    min-width: 0;
}

.existing-upload-item strong,
.submission-file-information strong {
    display: block;
    color: #334155;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.existing-upload-item span,
.submission-file-information span {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.5;
}

.submission-file-list {
    display: flex;
    flex-direction: column;
}

.submission-file-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #172554;
    background: #edf2f9;
    font-size: 10px;
    font-weight: 900;
}

.submission-file-information {
    flex: 1;
    min-width: 0;
}

.file-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid #c2d0e4;
    border-radius: 10px;
    color: #172554;
    background: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.file-download-button:hover {
    color: #ffffff;
    background: #1e3a8a;
    border-color: #1e3a8a;
}

@media (max-width: 750px) {
    .upload-field-grid {
        grid-template-columns: 1fr;
    }

    .existing-upload-item,
    .submission-file-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .file-download-button {
        width: 100%;
    }
}

.submission-fixed-document-name {
    min-height: 44px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    color: #334155;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 750;
}

/* =========================================================
   SMART TEMPLATE
   ========================================================= */

.smart-template-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.smart-template-section {
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
}

.smart-template-section-heading {
    margin-bottom: 17px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.smart-template-section-heading>span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: #1e3a8a;
    font-size: 12px;
    font-weight: 900;
}

.smart-template-section-heading h3 {
    margin: 0;
    color: #1e293b;
    font-size: 15px;
    font-weight: 850;
}

.smart-template-section-heading p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}

.smart-template-section textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    resize: vertical;
    color: #0f172a;
    background: #ffffff;
    font: inherit;
    line-height: 1.7;
}

.smart-template-section textarea:focus {
    border-color: #6f86b3;

    box-shadow:
        0 0 0 3px rgba(49, 90, 155, 0.11);
}

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

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

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

@media (max-width: 760px) {

    .smart-template-two-column,
    .smart-template-grid {
        grid-template-columns: 1fr;
    }

    .smart-template-full-field {
        grid-column: auto;
    }

    .smart-template-section {
        padding: 17px;
    }
}

/* =========================================================
   SMART TEMPLATE APPROVAL COVER
   ========================================================= */

.approval-cover-section {
    border-color: #bdd1e5;
    background: #f8fbff;
}

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

.approval-role-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.approval-role-card {
    padding: 17px;
    border: 1px solid #dce8f4;
    border-radius: 15px;
    background: #ffffff;
}

.approval-role-card h4 {
    margin: 0 0 14px;
    color: #183b68;
    font-size: 13px;
    font-weight: 850;
}

.approval-role-card .system-field+.system-field {
    margin-top: 13px;
}

.approval-office-notice {
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    color: #92400e;
    background: #fffbeb;
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 850px) {
    .approval-cover-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .approval-role-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SMART TEMPLATE — LAMPIRAN 1
   ========================================================= */

.atur-cara-section {
    border-color: #bdd1e5;
    background: #f8fbff;
}

.atur-cara-section-header {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.atur-cara-section-header .smart-template-section-heading {
    margin-bottom: 0;
}

.atur-cara-add-button {
    min-height: 38px;
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: #1e4f85;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.atur-cara-add-button:hover {
    background: #183b68;
}

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

.atur-cara-section .atur-cara-meta-grid input {
    min-height: 42px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.atur-cara-table-wrapper {
    width: 100%;
    overflow-x: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    background: #ffffff;
}

.atur-cara-input-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.atur-cara-input-table th {
    padding: 12px 8px;
    border: 1px solid #94a3b8;
    color: #0f172a;
    background: #9cc2e5;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
}

.atur-cara-input-table th:nth-child(1) {
    width: 24%;
}

.atur-cara-input-table th:nth-child(2) {
    width: 30%;
}

.atur-cara-input-table th:nth-child(3) {
    width: 36%;
}

.atur-cara-input-table th:nth-child(4) {
    width: 10%;
}

.atur-cara-input-table td {
    padding: 9px;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
}

.atur-cara-input-table input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.atur-cara-input-table input:focus {
    border-color: #6f86b3;

    box-shadow:
        0 0 0 3px rgba(49, 90, 155, 0.10);
}

.atur-cara-remove-button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 8px 6px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    background: #fff1f2;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    white-space: normal;
}

.atur-cara-remove-button:hover {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
}

.atur-cara-remove-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

@media (max-width: 850px) {
    .atur-cara-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .atur-cara-section-header {
        flex-direction: column;
    }

    .atur-cara-add-button {
        width: 100%;
    }
}

/* =========================================================
   SMART TEMPLATE — LAMPIRAN 2
   ========================================================= */

.jawatankuasa-section {
    border-color: #fde68a;
    background: #fffdf5;
}

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

.jawatankuasa-section-header .smart-template-section-heading {
    margin-bottom: 0;
}

.jawatankuasa-add-button {
    min-height: 38px;
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: #b45309;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.jawatankuasa-add-button:hover {
    background: #92400e;
}

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

.jawatankuasa-section .jawatankuasa-meta-grid input {
    min-height: 42px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.jawatankuasa-table-wrapper {
    width: 100%;
    overflow-x: hidden;
    border: 1px solid #d1d5db;
    border-radius: 13px;
    background: #ffffff;
}

.jawatankuasa-input-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.jawatankuasa-input-table th {
    padding: 12px 7px;
    border: 1px solid #d1a500;
    color: #111827;
    background: #ffc000;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    text-align: center;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.jawatankuasa-input-table th small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.35;
}

.jawatankuasa-input-table th:nth-child(1) {
    width: 5%;
}

.jawatankuasa-input-table th:nth-child(2) {
    width: 15%;
}

.jawatankuasa-input-table th:nth-child(3) {
    width: 27%;
}

.jawatankuasa-input-table th:nth-child(4) {
    width: 23%;
}

.jawatankuasa-input-table th:nth-child(5) {
    width: 19%;
}

.jawatankuasa-input-table th:nth-child(6) {
    width: 11%;
}

.jawatankuasa-input-table td {
    min-width: 0;
    padding: 7px;
    border: 1px solid #e2e8f0;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.jawatankuasa-bil {
    padding-top: 18px !important;
    text-align: center;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.jawatankuasa-input-table input,
.jawatankuasa-input-table textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.jawatankuasa-input-table input {
    min-height: 42px;
}

.jawatankuasa-input-table textarea {
    min-height: 72px;
    resize: vertical;
}

.jawatankuasa-input-table input:focus,
.jawatankuasa-input-table textarea:focus {
    border-color: #f59e0b;

    box-shadow:
        0 0 0 3px rgba(245, 158, 11, 0.12);
}

.jawatankuasa-remove-button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 8px 5px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    background: #fff1f2;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    white-space: normal;
}

.jawatankuasa-remove-button:hover {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
}

.jawatankuasa-remove-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

@media (max-width: 850px) {
    .jawatankuasa-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .jawatankuasa-section-header {
        flex-direction: column;
    }

    .jawatankuasa-add-button {
        width: 100%;
    }
}

/* =========================================================
   SMART TEMPLATE — LAMPIRAN 3
   Old frontend colour scheme: green table header + blue action.
   ========================================================= */

.peserta-section {
    border-color: #bbf7d0;
    background: #f7fdf8;
}

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

.peserta-section-header .smart-template-section-heading {
    margin-bottom: 0;
}

.peserta-add-button {
    min-height: 38px;
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: #1e4f85;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.peserta-add-button:hover {
    background: #183b68;
}

.peserta-add-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

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

.peserta-section .peserta-meta-grid input {
    min-height: 42px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.peserta-table-wrapper {
    width: 100%;
    overflow-x: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    background: #ffffff;
}

.peserta-input-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.peserta-input-table th {
    padding: 12px 7px;
    border: 1px solid #9fbd8b;
    color: #111827;
    background: #c5e0b3;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    text-align: center;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.peserta-input-table th small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

.peserta-input-table th:nth-child(1) { width: 5%; }
.peserta-input-table th:nth-child(2) { width: 16%; }
.peserta-input-table th:nth-child(3) { width: 16%; }
.peserta-input-table th:nth-child(4) { width: 27%; }
.peserta-input-table th:nth-child(5) { width: 25%; }
.peserta-input-table th:nth-child(6) { width: 11%; }

.peserta-input-table td {
    min-width: 0;
    padding: 7px;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.peserta-bil {
    text-align: center;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.peserta-input-table input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.peserta-input-table input:focus {
    border-color: #65a30d;
    box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.12);
}

.peserta-remove-button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 8px 5px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    background: #fff1f2;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    white-space: normal;
}

.peserta-remove-button:hover {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
}

.peserta-remove-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

@media (max-width: 850px) {
    .peserta-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .peserta-section-header {
        flex-direction: column;
    }

    .peserta-add-button {
        width: 100%;
    }
}

/* =========================================================
   SMART TEMPLATE — LAMPIRAN 4
   Restores the original grey financial-table interface.
   ========================================================= */

.anggaran-section {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.anggaran-section-header {
    margin-bottom: 18px;
}

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

.anggaran-section .anggaran-meta-grid input {
    min-height: 42px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.anggaran-card {
    padding: 20px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #f8fafc;
}

.anggaran-subsection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.anggaran-subsection-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 14px;
    font-weight: 850;
}

.anggaran-expense-heading {
    margin-top: 26px;
}

.anggaran-add-button {
    min-height: 38px;
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: #1e3a8a;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.anggaran-add-button:hover {
    background: #172554;
}

.anggaran-add-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.anggaran-table-wrapper {
    width: 100%;
    overflow-x: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
}

.anggaran-input-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.anggaran-input-table th {
    padding: 12px 7px;
    border: 1px solid #b8c0ca;
    color: #111827;
    background: #d9d9d9;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
}

.anggaran-input-table th:nth-child(1) { width: 48%; }
.anggaran-input-table th:nth-child(2) { width: 13%; }
.anggaran-input-table th:nth-child(3) { width: 12%; }
.anggaran-input-table th:nth-child(4) { width: 17%; }
.anggaran-input-table th:nth-child(5) { width: 10%; }

.anggaran-input-table td {
    min-width: 0;
    padding: 7px;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.anggaran-input-table input,
.anggaran-input-table select,
.anggaran-input-table textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.anggaran-input-table input,
.anggaran-input-table select {
    min-height: 42px;
}

.anggaran-input-table textarea {
    min-height: 64px;
    resize: vertical;
}

.anggaran-input-table input:focus,
.anggaran-input-table select:focus,
.anggaran-input-table textarea:focus {
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
}

.anggaran-calculated-cell,
.anggaran-total-row td:nth-last-child(2) {
    text-align: center;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.anggaran-total-row {
    background: #d5dce4;
    font-weight: 800;
}

.anggaran-balance-row {
    border-top: 8px solid #ffffff;
}

.anggaran-contingency-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.anggaran-contingency-label label {
    margin: 0;
    color: #334155;
    font-size: 12px;
    font-weight: 650;
}

.anggaran-percent-control {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 112px;
    flex: 0 0 auto;
}

.anggaran-percent-control input {
    text-align: center;
}

.anggaran-percent-control span {
    font-size: 13px;
    font-weight: 750;
}

.anggaran-remove-button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 8px 5px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    background: #fff1f2;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    white-space: normal;
}

.anggaran-remove-button:hover {
    color: #ffffff;
    border-color: #dc2626;
    background: #dc2626;
}

.anggaran-remove-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

@media (max-width: 900px) {
    .anggaran-meta-grid {
        grid-template-columns: 1fr;
    }

    .anggaran-card {
        padding: 15px;
    }

    .anggaran-input-table th:nth-child(1) { width: 42%; }
    .anggaran-input-table th:nth-child(2) { width: 15%; }
    .anggaran-input-table th:nth-child(3) { width: 13%; }
    .anggaran-input-table th:nth-child(4) { width: 19%; }
    .anggaran-input-table th:nth-child(5) { width: 11%; }
}

@media (max-width: 650px) {
    .anggaran-subsection-header {
        align-items: stretch;
        flex-direction: column;
    }

    .anggaran-add-button {
        width: 100%;
    }

    .anggaran-contingency-label {
        align-items: flex-start;
        flex-direction: column;
    }

    .anggaran-percent-control {
        width: 100%;
    }
}

/* =========================================================
   REVIEW WORKFLOW COMPLETION AND NOTIFICATIONS
   ========================================================= */

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

.header-notification-button {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #64748b;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.header-notification-button:hover {
    color: #1e3a8a;
    border-color: #c2d0e4;
    transform: translateY(-1px);
}

.header-notification-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    background: #dc2626;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

.review-feedback-label-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.review-feedback-label-row label {
    margin: 0;
}

.review-feedback-label-row span {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
}

.review-decision-notice {
    margin-top: 16px;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #dce8f4;
    border-radius: 13px;
    background: #f0f5fa;
}

.review-decision-notice strong {
    color: #183b68;
    font-size: 10px;
}

.review-decision-notice span {
    color: #475569;
    font-size: 10px;
    line-height: 1.55;
}

.review-final-decision {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #f8fafc;
}

.review-final-decision strong,
.review-final-decision span {
    display: block;
}

.review-final-decision strong {
    font-size: 14px;
}

.review-final-decision span {
    margin-top: 4px;
    color: #64748b;
    font-size: 9px;
}

.review-final-decision p {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    color: #475569;
    font-size: 11px;
    line-height: 1.7;
}

.review-final-decision.status-approved {
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.review-final-decision.status-approved strong {
    color: #047857;
}

.review-final-decision.status-rejected {
    border-color: #fecaca;
    background: #fef2f2;
}

.review-final-decision.status-rejected strong {
    color: #b91c1c;
}

.review-final-decision.status-revision {
    border-color: #fde68a;
    background: #fffbeb;
}

.review-final-decision.status-revision strong {
    color: #b45309;
}

.notification-mark-all-button {
    min-height: 42px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(90deg, #1e3a8a, #2b6687);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 7px 18px rgba(30, 58, 138, 0.22);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.notification-mark-all-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(30, 58, 138, 0.27);
}

.notification-mark-all-button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.notification-summary-card {
    min-width: 0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 19px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.notification-summary-card > div:last-child {
    min-width: 0;
}

.notification-summary-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.notification-summary-card strong {
    display: block;
    margin-top: 5px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.notification-summary-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.notification-summary-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-summary-unread {
    color: #172554;
    background: #dce6f3;
}

.notification-summary-total {
    color: #0f766e;
    background: #ccfbf1;
}

.notification-panel {
    padding: 0;
    overflow: hidden;
}

.notification-filter-tabs {
    margin: 0;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.notification-filter-tabs a {
    position: relative;
    min-height: 54px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.notification-filter-tabs a::after {
    content: '';
    position: absolute;
    right: 14px;
    bottom: -1px;
    left: 14px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: transparent;
}

.notification-filter-tabs a:hover {
    color: #172554;
    background: rgba(49, 90, 155, 0.05);
}

.notification-filter-tabs a.active {
    color: #172554;
}

.notification-filter-tabs a.active::after {
    background: #1e3a8a;
}

.notification-panel .empty-state {
    margin: 0;
    padding: 58px 24px;
}

.notification-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-card {
    position: relative;
    min-width: 0;
    padding: 17px 18px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.notification-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.notification-card.unread {
    border-color: #c2d0e4;
    background: linear-gradient(90deg, #fafaff 0%, #ffffff 62%);
    box-shadow: 0 7px 20px rgba(30, 58, 138, 0.07);
}

.notification-card.unread::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #1e3a8a;
}

.notification-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.notification-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-success {
    color: #047857;
    background: #d1fae5;
}

.notification-danger {
    color: #b91c1c;
    background: #fee2e2;
}

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

.notification-information {
    color: #172554;
    background: #dce6f3;
}

.notification-content {
    min-width: 0;
}

.notification-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.notification-card-heading > div {
    min-width: 0;
}

.notification-type-label {
    display: inline-block;
    color: #315a9b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.notification-card h2 {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: #1e293b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.notification-card p {
    margin: 8px 0 0;
    overflow-wrap: anywhere;
    color: #475569;
    font-size: 11px;
    line-height: 1.7;
}

.notification-unread-dot {
    width: 9px;
    height: 9px;
    margin-top: 5px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #1e3a8a;
    box-shadow: 0 0 0 4px #dce6f3;
}

.notification-submission-reference {
    margin-top: 10px;
    padding: 7px 9px;
    display: inline-flex;
    max-width: 100%;
    border-radius: 9px;
    overflow-wrap: anywhere;
    color: #475569;
    background: #f8fafc;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.45;
}

.notification-footer {
    margin-top: 14px;
    padding-top: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid #f1f5f9;
}

.notification-footer > span {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.notification-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.notification-actions form {
    margin: 0;
}

.notification-action-button {
    min-height: 34px;
    padding: 8px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.notification-action-button:hover {
    transform: translateY(-1px);
}

.notification-action-button svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-action-secondary {
    border: 1px solid #cbd5e1;
    color: #475569;
    background: #ffffff;
}

.notification-action-secondary:hover {
    border-color: #a5b4fc;
    color: #172554;
    box-shadow: 0 5px 12px rgba(30, 58, 138, 0.10);
}

.notification-action-primary {
    border: 0;
    color: #ffffff;
    background: #1e3a8a;
    box-shadow: 0 5px 12px rgba(30, 58, 138, 0.19);
}

.notification-action-primary:hover {
    background: #172554;
    box-shadow: 0 7px 15px rgba(30, 58, 138, 0.24);
}

@media (max-width: 850px) {
    .notification-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .notification-footer {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 650px) {
    .header-user-text {
        display: none;
    }

    .app-header-user {
        padding-left: 0;
        border-left: 0;
    }

    .notification-mark-all-button {
        width: 100%;
    }

    .notification-summary-grid {
        grid-template-columns: 1fr;
    }

    .notification-filter-tabs {
        padding: 0 12px;
        overflow-x: auto;
    }

    .notification-filter-tabs a {
        flex: 1 0 auto;
    }

    .notification-list {
        padding: 14px;
    }

    .notification-card {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
        padding: 15px;
    }

    .notification-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .notification-actions,
    .notification-actions form,
    .notification-action-button {
        width: 100%;
    }
}

/* =========================================================
   Supporting document management
   ========================================================= */

.document-management-card {
    overflow: hidden;
}

.document-management-header {
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 22px;
}

.document-management-header>div:first-child {
    min-width: 0;
}

.document-management-header h2 {
    margin: 0;
}

.document-management-header p:not(.document-management-eyebrow) {
    max-width: 720px;
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.65;
}

.document-management-eyebrow {
    margin: 0 0 5px;
    color: #6f4cff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.supporting-upload-form {
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid #e7e3f4;
    border-radius: 16px;
    background: linear-gradient(135deg, #fbfaff 0%, #f5fbfa 100%);
}

.supporting-upload-dropzone {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 112px;
    padding: 20px;
    border: 1.5px dashed #b7a8ea;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.supporting-upload-dropzone:hover,
.supporting-upload-dropzone.is-dragging {
    border-color: #7052d8;
    background: #faf8ff;
    box-shadow: 0 8px 24px rgba(94, 71, 173, 0.09);
    transform: translateY(-1px);
}

.supporting-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7253da, #3d9d91);
    color: #ffffff;
}

.supporting-upload-icon svg,
.document-management-readonly-notice svg,
.document-management-empty-icon svg,
.managed-file-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.supporting-upload-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
    flex: 1;
}

.supporting-upload-copy strong {
    color: #242035;
    font-size: 15px;
}

.supporting-upload-copy span {
    color: #737080;
    font-size: 12px;
    line-height: 1.55;
}

.supporting-upload-choose {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid #d9d2ef;
    border-radius: 10px;
    background: #ffffff;
    color: #5d45b5;
    font-size: 12px;
    font-weight: 800;
}

.supporting-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.supporting-upload-status {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
}

.supporting-upload-status>div:first-child {
    display: grid;
    gap: 3px;
}

.supporting-upload-status strong {
    color: #34303f;
    font-size: 12px;
}

.supporting-upload-status span {
    color: #807b8a;
    font-size: 11px;
}

.supporting-selected-files {
    max-width: 58%;
    color: #8a8591;
    font-size: 11px;
    line-height: 1.5;
    text-align: right;
    word-break: break-word;
}

.supporting-selected-files.has-files {
    color: #4d3ca0;
    font-weight: 700;
}

.supporting-upload-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.supporting-upload-actions .primary-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.document-management-readonly-notice {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid #e5e1ef;
    border-radius: 13px;
    background: #faf9fc;
}

.document-management-readonly-notice>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eeeaf7;
    color: #6958a1;
}

.document-management-readonly-notice strong {
    color: #393442;
    font-size: 13px;
}

.document-management-readonly-notice p {
    margin: 4px 0 0;
    color: #77717f;
    font-size: 12px;
    line-height: 1.55;
}

.document-management-empty {
    display: grid;
    justify-items: center;
    padding: 38px 20px;
    border: 1px dashed #ddd8e8;
    border-radius: 14px;
    background: #fcfbfd;
    text-align: center;
}

.document-management-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #f0edf7;
    color: #77679d;
}

.document-management-empty strong {
    color: #3b3643;
    font-size: 14px;
}

.document-management-empty p {
    margin: 5px 0 0;
    color: #85808b;
    font-size: 12px;
}

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

.managed-file-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #ebe8f1;
    border-radius: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.managed-file-card:hover {
    border-color: #d9d0ef;
    box-shadow: 0 8px 22px rgba(48, 39, 75, 0.06);
    transform: translateY(-1px);
}

.managed-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #f0edf7;
    color: #675b89;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.managed-file-icon.pdf {
    background: #fff0f0;
    color: #b33b3b;
}

.managed-file-icon.doc,
.managed-file-icon.docx {
    background: #edf4ff;
    color: #3768ad;
}

.managed-file-information {
    min-width: 0;
    flex: 1;
}

.managed-file-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.managed-file-title-row strong {
    min-width: 0;
    overflow: hidden;
    color: #302b38;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.managed-file-category {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.managed-file-category.supporting {
    background: #ecf8f5;
    color: #27796f;
}

.managed-file-category.document {
    background: #f0ecfb;
    color: #634ca4;
}

.managed-file-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-top: 6px;
    color: #7d7884;
    font-size: 10px;
}

.managed-file-metadata span {
    position: relative;
}

.managed-file-metadata span:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -8px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c8c3ce;
    content: '';
    transform: translateY(-50%);
}

.managed-file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.managed-file-delete-form {
    margin: 0;
}

.managed-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.managed-file-button svg {
    width: 15px;
    height: 15px;
}

.managed-file-button.download {
    border-color: #dcd4ef;
    background: #f8f6fd;
    color: #6049ad;
}

.managed-file-button.download:hover {
    border-color: #c7b8ea;
    background: #f1edfb;
    color: #4d3995;
    transform: translateY(-1px);
}

.managed-file-button.delete {
    border-color: #f0d4d4;
    background: #fff8f8;
    color: #b04444;
}

.managed-file-button.delete:hover {
    border-color: #e6baba;
    background: #fff0f0;
    color: #963434;
    transform: translateY(-1px);
}

@media (max-width: 760px) {

    .document-management-header,
    .supporting-upload-status {
        align-items: stretch;
        flex-direction: column;
    }

    .supporting-upload-dropzone {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .supporting-upload-copy {
        min-width: calc(100% - 68px);
    }

    .supporting-upload-choose {
        margin-left: 64px;
    }

    .supporting-selected-files {
        max-width: none;
        text-align: left;
    }

    .supporting-upload-actions .primary-action-button {
        width: 100%;
    }

    .managed-file-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .managed-file-information {
        min-width: calc(100% - 66px);
    }

    .managed-file-actions {
        width: 100%;
        padding-left: 62px;
    }

    .managed-file-actions .managed-file-button,
    .managed-file-delete-form {
        flex: 1;
    }

    .managed-file-delete-form .managed-file-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .supporting-upload-copy {
        min-width: calc(100% - 64px);
    }

    .supporting-upload-choose {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .managed-file-information {
        min-width: 0;
        width: calc(100% - 64px);
    }

    .managed-file-title-row strong {
        width: 100%;
        white-space: normal;
        word-break: break-word;
    }

    .managed-file-actions {
        padding-left: 0;
    }
}

/* =========================================================
   Reviewer and administrator file records
   ========================================================= */

.review-document-file-panel {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #ebe8f1;
}

.document-management-header.compact {
    margin-bottom: 16px;
}

.document-management-header.compact h3 {
    margin: 0;
    color: #2f2938;
    font-size: 16px;
}

.managed-file-category.generated {
    background: #fff4df;
    color: #9a651b;
}

.managed-file-category.review {
    background: #edf5ff;
    color: #35689f;
}

.managed-file-button.view {
    border-color: #cfe7e3;
    background: #f1faf8;
    color: #26786f;
}

.managed-file-button.view:hover {
    border-color: #a9d7d0;
    background: #e5f6f2;
    color: #1d675f;
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .review-document-file-panel {
        margin-top: 20px;
        padding-top: 18px;
    }
}

/* =========================================================
   Generated document version management
   ========================================================= */

.generated-document-tools {
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid #ded8eb;
    border-radius: 14px;
    background: linear-gradient(135deg, #fbfaff 0%, #f4faf9 100%);
}

.generated-document-tools-copy {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.generated-document-tools-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #30283c;
    font-size: 15px;
}

.generated-document-tools-copy p {
    margin: 0;
    max-width: 760px;
    color: #6b6475;
    font-size: 13px;
    line-height: 1.55;
}

.generated-document-tools-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #5d4b85;
    background: #ece7f8;
}

.generated-document-tools-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.generated-document-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.generated-document-action {
    min-height: 38px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.generated-document-action:hover {
    transform: translateY(-1px);
}

.generated-document-action.primary {
    color: #fff;
    background: linear-gradient(135deg, #6d57a5, #3f8c83);
    box-shadow: 0 7px 16px rgba(79, 78, 128, .16);
}

.generated-document-action.secondary {
    border-color: #d7d0e4;
    color: #514466;
    background: #fff;
}

.generated-document-action.register {
    white-space: nowrap;
    color: #fff;
    background: #3f8179;
}

.generated-pdf-register-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2ddea;
}

.generated-pdf-register-form>label {
    display: block;
    margin-bottom: 8px;
    color: #4f465a;
    font-size: 12px;
    font-weight: 700;
}

.generated-pdf-register-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.generated-pdf-register-row input[type="file"] {
    min-width: 0;
    flex: 1;
    padding: 8px;
    border: 1px solid #d9d3e1;
    border-radius: 9px;
    color: #5f5868;
    background: #fff;
    font-size: 12px;
}

@media (max-width: 700px) {

    .generated-document-primary-actions,
    .generated-pdf-register-row {
        align-items: stretch;
        flex-direction: column;
    }

    .generated-document-action {
        width: 100%;
    }
}

.generated-document-latest-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #24675f;
    background: #dff4ef;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .35px;
    text-transform: uppercase;
}

/* =========================================================
   Stage 4A: document backup management
   ========================================================= */

.backup-management-page {
    display: grid;
    gap: 24px;
}

.backup-heading-row {
    align-items: flex-end;
}

.backup-create-form {
    flex: 0 0 auto;
}

.backup-create-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
}

.backup-create-button svg,
.backup-record-actions svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.backup-warning-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid #f1d39a;
    border-radius: 14px;
    background: #fff8e8;
    color: #79551b;
}

.backup-warning-card span {
    line-height: 1.55;
}

.backup-warning-card code {
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(121, 85, 27, 0.09);
}

.storage-overview-card {
    overflow: hidden;
}

.storage-overview-header {
    align-items: flex-start;
}

.storage-overview-header p:last-child {
    margin: 6px 0 0;
    color: #82798c;
}

.storage-health-badge {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #e9f7f1;
    color: #27745e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.storage-health-badge.medium {
    background: #fff5df;
    color: #91631d;
}

.storage-health-badge.high,
.storage-health-badge.critical {
    background: #fff0f0;
    color: #a64049;
}

.storage-meter-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
}

.storage-meter-summary div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.storage-meter-summary strong {
    color: #342c3d;
    font-size: 17px;
}

.storage-meter-summary span {
    color: #82798c;
    font-size: 12px;
}

.storage-meter-track {
    height: 12px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eeeaf2;
}

.storage-meter-fill {
    display: block;
    min-width: 2px;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #54a789, #39866d);
}

.storage-meter-fill.medium {
    background: linear-gradient(90deg, #e7b84b, #c88823);
}

.storage-meter-fill.high,
.storage-meter-fill.critical {
    background: linear-gradient(90deg, #dc7a7e, #b64d55);
}

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

.storage-stat-grid > div {
    min-width: 0;
    padding: 14px;
    border: 1px solid #eee9f3;
    border-radius: 13px;
    background: #fbfafd;
}

.storage-stat-grid span,
.storage-stat-grid strong {
    display: block;
}

.storage-stat-grid span {
    color: #82798c;
    font-size: 11px;
}

.storage-stat-grid strong {
    margin-top: 5px;
    overflow-wrap: anywhere;
    color: #3b3344;
    font-size: 15px;
}

.storage-management-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 15px;
    border: 1px solid #dfe9e6;
    border-radius: 14px;
    background: #f7fbfa;
}

.storage-management-note strong {
    color: #315f55;
}

.storage-management-note p {
    max-width: 760px;
    margin: 5px 0 0;
    color: #687d78;
    font-size: 12px;
    line-height: 1.55;
}

.storage-cleanup-form {
    flex: 0 0 auto;
    margin: 0;
}

.storage-cleanup-form button:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.storage-estimate-disclaimer {
    margin: 12px 0 0;
    color: #918998;
    font-size: 11px;
    line-height: 1.5;
}

.backup-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.backup-summary-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e7e2ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(55, 42, 73, 0.05);
}

.backup-summary-label {
    display: block;
    margin-bottom: 10px;
    color: #7c7487;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.backup-summary-card strong {
    display: block;
    overflow-wrap: anywhere;
    color: #30283a;
    font-size: 27px;
    line-height: 1.15;
}

.backup-summary-card strong.backup-summary-date {
    font-size: 17px;
    line-height: 1.35;
}

.backup-summary-card small {
    display: block;
    margin-top: 8px;
    color: #8b8493;
    line-height: 1.45;
}

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

.backup-content-item {
    display: flex;
    gap: 13px;
    padding: 16px;
    border: 1px solid #eee9f3;
    border-radius: 14px;
    background: #fbfafd;
}

.backup-content-number {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #eee9f8;
    color: #654c87;
    font-size: 12px;
    font-weight: 800;
}

.backup-content-item strong {
    color: #352e3e;
}

.backup-content-item p {
    margin: 5px 0 0;
    color: #7d7586;
    font-size: 13px;
    line-height: 1.55;
}

.backup-history-header p:last-child {
    margin: 6px 0 0;
    color: #82798c;
}

.backup-record-list {
    display: grid;
    gap: 12px;
}

.backup-record-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 17px;
    border: 1px solid #e8e3ee;
    border-radius: 16px;
    background: #ffffff;
}

.backup-record-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #f0edf4;
    color: #685f72;
}

.backup-record-icon.completed {
    background: #e9f7f1;
    color: #27745e;
}

.backup-record-icon.failed {
    background: #fff0f0;
    color: #b34d55;
}

.backup-record-icon.processing {
    background: #fff5df;
    color: #9a681e;
}

.backup-record-icon.deleted {
    background: #f0edf4;
    color: #746b7d;
}

.backup-record-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.backup-record-main {
    min-width: 0;
}

.backup-record-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.backup-record-title-row h3 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #342c3d;
    font-size: 15px;
}

.backup-record-title-row p {
    margin: 5px 0 0;
    color: #81798a;
    font-size: 12px;
}

.backup-status-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f0edf4;
    color: #675e71;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.backup-status-badge.completed {
    background: #e9f7f1;
    color: #27745e;
}

.backup-status-badge.failed {
    background: #fff0f0;
    color: #b34d55;
}

.backup-status-badge.processing {
    background: #fff5df;
    color: #9a681e;
}

.backup-status-badge.deleted {
    background: #f0edf4;
    color: #746b7d;
}

.backup-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 11px;
    color: #756d7e;
    font-size: 12px;
}

.backup-record-remarks {
    margin: 11px 0 0;
    overflow-wrap: anywhere;
    color: #867d90;
    font-size: 11px;
    line-height: 1.5;
}

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

.backup-file-missing {
    color: #a45c62;
    font-size: 12px;
    font-weight: 700;
}

.backup-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 32px;
    text-align: center;
}

.backup-empty-state svg {
    width: 43px;
    height: 43px;
    margin-bottom: 13px;
    fill: none;
    stroke: #8b7c9c;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.backup-empty-state h3 {
    margin: 0;
    color: #393142;
}

.backup-empty-state p {
    margin: 8px 0 0;
    color: #837b8c;
}

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

    .backup-content-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .backup-heading-row {
        align-items: stretch;
    }

    .backup-create-form,
    .backup-create-button {
        width: 100%;
    }

    .backup-summary-grid {
        grid-template-columns: 1fr;
    }

    .backup-record-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: flex-start;
    }

    .backup-record-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .backup-record-actions .managed-file-button {
        width: 100%;
        justify-content: center;
    }

    .backup-record-title-row {
        flex-direction: column;
    }

    .storage-stat-grid {
        grid-template-columns: 1fr;
    }

    .storage-management-note {
        align-items: stretch;
        flex-direction: column;
    }

    .storage-cleanup-form,
    .storage-cleanup-form .managed-file-button {
        width: 100%;
    }
}

/* =========================================================
   Stage 4B: database and complete backup management
   ========================================================= */

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

.backup-action-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border: 1px solid #e8e3ee;
    border-radius: 19px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(47, 39, 58, 0.055);
}

.backup-action-card.database {
    border-top: 4px solid #6577a7;
}

.backup-action-card.files {
    border-top: 4px solid #6e9a8f;
}

.backup-action-card.complete {
    border-top: 4px solid #8060a6;
    background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
}

.backup-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 17px;
    border-radius: 15px;
    background: #f1eef5;
    color: #62596d;
}

.backup-action-card.database .backup-action-icon {
    background: #edf1fb;
    color: #536895;
}

.backup-action-card.files .backup-action-icon {
    background: #ebf6f2;
    color: #3d776b;
}

.backup-action-card.complete .backup-action-icon {
    background: #f1eafb;
    color: #76529d;
}

.backup-action-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.backup-action-copy {
    flex: 1;
}

.backup-action-kicker {
    display: inline-flex;
    margin-bottom: 7px;
    color: #8a8193;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.backup-action-card.complete .backup-action-kicker {
    color: #76529d;
}

.backup-action-copy h2 {
    margin: 0;
    color: #352e3e;
    font-size: 18px;
}

.backup-action-copy p {
    margin: 9px 0 0;
    color: #7d7586;
    font-size: 13px;
    line-height: 1.58;
}

.backup-action-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}

.backup-action-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f4f1f7;
    color: #756d7e;
    font-size: 10px;
    font-weight: 700;
}

.backup-action-card .backup-create-form {
    width: 100%;
    margin-top: 20px;
}

.backup-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 43px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.backup-action-button.database {
    background: linear-gradient(135deg, #6577a7, #52648f);
}

.backup-action-button.files {
    background: linear-gradient(135deg, #538b7f, #3e756a);
}

.backup-action-button.complete {
    background: linear-gradient(135deg, #8761ad, #6d4a94);
}

.backup-action-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(66, 53, 81, 0.17);
}

.backup-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.backup-action-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.backup-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 17px;
    padding: 13px 15px;
    border: 1px solid #f0dfb8;
    border-radius: 13px;
    background: #fff9ec;
    color: #7a632d;
    font-size: 12px;
    line-height: 1.55;
}

.backup-security-note strong {
    flex: 0 0 auto;
}

.backup-record-type-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.backup-type-badge {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf5f2;
    color: #397468;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.backup-type-badge.database {
    background: #edf1fb;
    color: #536895;
}

.backup-type-badge.complete {
    background: #f1eafb;
    color: #76529d;
}

.backup-record-icon.database {
    background: #edf1fb;
    color: #536895;
}

.backup-record-icon.complete {
    background: #f1eafb;
    color: #76529d;
}

.backup-record-icon.failed {
    background: #fff0f0;
    color: #b34d55;
}

.backup-record-icon.processing {
    background: #fff5df;
    color: #9a681e;
}

@media (max-width: 1100px) {
    .backup-action-grid {
        grid-template-columns: 1fr;
    }

    .backup-action-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) minmax(220px, 0.45fr);
        align-items: center;
        gap: 18px;
    }

    .backup-action-icon {
        margin: 0;
    }

    .backup-action-card .backup-create-form {
        margin: 0;
    }
}

@media (max-width: 760px) {
    .backup-action-card {
        display: flex;
        align-items: stretch;
    }

    .backup-action-icon {
        margin-bottom: 15px;
    }

    .backup-action-card .backup-create-form {
        margin-top: 18px;
    }

    .backup-security-note {
        flex-direction: column;
        gap: 4px;
    }
}

/* Compact backup page refinement */
.backup-management-page {
    gap: 18px;
}

.storage-overview-header,
.backup-create-header,
.backup-history-header {
    align-items: center;
}

.storage-overview-header p,
.backup-create-header p {
    margin: 4px 0 0;
    color: #82798c;
    font-size: 12px;
}

.storage-meter-summary {
    margin-top: 16px;
}

.storage-remaining-value {
    justify-content: flex-end;
    text-align: right;
}

.storage-meter-track {
    height: 9px;
    margin-top: 8px;
}

.storage-stat-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.storage-stat-grid.compact > div {
    padding: 12px 14px;
    background: #fcfbfd;
}

.storage-stat-grid.compact small {
    display: block;
    margin-top: 3px;
    color: #9a929f;
    font-size: 10px;
}

.storage-management-note.compact {
    align-items: center;
    margin-top: 14px;
    padding: 13px 0 0;
    border: 0;
    border-top: 1px solid #ebe7ef;
    border-radius: 0;
    background: transparent;
}

.storage-management-note.compact p {
    margin: 0;
    color: #746c7c;
}

.storage-management-note.compact p strong {
    color: #44394e;
}

.storage-cleanup-button {
    border-color: #ded7e7;
    background: #faf8fc;
    color: #62546f;
}

.storage-cleanup-button:hover:not(:disabled) {
    border-color: #c9bdd7;
    background: #f3eff7;
    color: #493956;
    transform: translateY(-1px);
}

.storage-cleanup-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.backup-create-panel {
    overflow: hidden;
}

.backup-action-grid.compact {
    gap: 12px;
    margin: 16px 0 0;
}

.backup-action-grid.compact .backup-action-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border-top-width: 3px;
    border-radius: 14px;
    box-shadow: none;
}

.backup-action-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.backup-action-grid.compact .backup-action-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 11px;
}

.backup-action-grid.compact .backup-action-icon svg {
    width: 20px;
    height: 20px;
}

.backup-action-grid.compact .backup-action-copy h3 {
    margin: 1px 0 0;
    color: #352e3e;
    font-size: 15px;
}

.backup-action-grid.compact .backup-action-copy p {
    margin: 4px 0 0;
    font-size: 11.5px;
    line-height: 1.45;
}

.backup-action-grid.compact .backup-create-form {
    margin-top: 14px;
}

.backup-action-grid.compact .backup-action-button {
    min-height: 37px;
    border-radius: 10px;
    font-size: 11px;
}

.backup-recommended-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    background: #efe8f8;
    color: #704d97;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.backup-action-card.complete .backup-action-heading {
    padding-right: 76px;
}

.backup-privacy-note {
    margin: 12px 0 0;
    color: #8a7a60;
    font-size: 11px;
    line-height: 1.5;
}

.backup-history-count {
    color: #8b8392;
    font-size: 11px;
    font-weight: 700;
}

.backup-record-list {
    gap: 8px;
}

.backup-record-card.compact {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 12px;
}

.backup-record-card.compact .backup-record-title-row {
    align-items: center;
}

.backup-record-card.compact .backup-record-title-row h3 {
    font-size: 13px;
}

.backup-record-card.compact .backup-record-meta {
    gap: 5px 15px;
    margin-top: 6px;
    font-size: 10.5px;
}

.backup-record-card.compact .backup-record-remarks {
    margin-top: 7px;
    color: #a14a52;
}

@media (max-width: 760px) {
    .storage-overview-header,
    .backup-create-header,
    .backup-history-header {
        align-items: flex-start;
    }

    .storage-stat-grid.compact,
    .backup-action-grid.compact {
        grid-template-columns: 1fr;
    }

    .storage-management-note.compact {
        align-items: stretch;
    }

    .backup-action-card.complete .backup-action-heading {
        padding-right: 72px;
    }

    .backup-record-card.compact {
        grid-template-columns: 1fr;
    }

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

    .backup-record-card.compact .managed-file-delete-form,
    .backup-record-card.compact .managed-file-button {
        width: 100%;
    }

    .backup-record-card.compact .backup-file-missing {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   Stage 5A: administrator reports and activity tracking
   ========================================================= */

.reports-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.reports-heading-row {
    align-items: flex-start;
    gap: 24px;
}

.reports-export-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.report-export-button {
    min-height: 42px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.report-export-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-export-button.primary {
    border: 1px solid #172554;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a, #2b6687);
    box-shadow: 0 10px 22px rgba(30, 58, 138, 0.17);
}

.report-export-button.secondary {
    border: 1px solid #d7dbea;
    color: #172554;
    background: #ffffff;
}

.report-export-button:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.reports-filter-panel,
.report-panel {
    border: 1px solid #e4e7ef;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.reports-filter-panel {
    padding: 18px;
}

.reports-filter-form {
    display: grid;
    grid-template-columns:
        minmax(135px, 160px) minmax(135px, 160px) minmax(145px, 180px) minmax(160px, 200px) minmax(190px, 1fr) auto auto;
    align-items: end;
    gap: 11px;
}

.report-filter-field label {
    display: block;
    margin-bottom: 7px;
    color: #5d6679;
    font-size: 11px;
    font-weight: 800;
}

.report-filter-field input,
.report-filter-field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #cfd5e2;
    border-radius: 11px;
    outline: none;
    color: #222a38;
    background: #ffffff;
    font-size: 11px;
}

.report-filter-field input:focus,
.report-filter-field select:focus {
    border-color: #6f86b3;
    box-shadow: 0 0 0 3px rgba(49, 90, 155, 0.11);
}

.reports-filter-button {
    min-height: 42px;
    padding: 10px 15px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: #1e3a8a;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.reports-clear-link {
    min-height: 42px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    color: #697386;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.reports-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.report-summary-card {
    position: relative;
    min-height: 142px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #e6e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.045);
}

.report-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #315a9b;
}

.report-summary-card.approved::before {
    background: #0f9f78;
}

.report-summary-card.active::before {
    background: #2878c8;
}

.report-summary-card.revision::before {
    background: #d78a21;
}

.report-summary-card.duration::before {
    background: #8b5cf6;
}

.report-summary-card span,
.report-summary-card small {
    display: block;
}

.report-summary-card span {
    color: #697386;
    font-size: 11px;
    font-weight: 800;
}

.report-summary-card strong {
    display: block;
    margin-top: 12px;
    color: #182033;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    font-size: 27px;
    line-height: 1.1;
}

.report-summary-card.duration strong {
    font-size: 21px;
}

.report-summary-card small {
    margin-top: 10px;
    color: #929bad;
    font-size: 10px;
    line-height: 1.5;
}

.reports-main-grid,
.reports-lower-grid {
    display: grid;
    gap: 18px;
}

.reports-main-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.6fr);
}

.reports-lower-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}

.report-panel {
    padding: 21px;
}

.report-panel-heading {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.report-panel-heading h2 {
    margin: 3px 0 0;
    color: #20283a;
    font-size: 16px;
}

.report-panel-heading>span,
.report-panel-heading>a {
    color: #8791a5;
    font-size: 10px;
    font-weight: 700;
}

.report-panel-heading>a {
    color: #1e3a8a;
    text-decoration: none;
}

.report-panel-kicker {
    margin: 0;
    color: #7c8395;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.report-bar-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.report-bar-row {
    display: grid;
    grid-template-columns: minmax(145px, 0.8fr) minmax(180px, 1.5fr) 48px;
    align-items: center;
    gap: 12px;
}

.report-bar-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.report-bar-label span {
    color: #4d5668;
    font-size: 10px;
    font-weight: 700;
}

.report-bar-label strong {
    color: #222b3c;
    font-size: 11px;
}

.report-bar-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef1f6;
}

.report-bar-fill {
    height: 100%;
    min-width: 0;
    display: block;
    border-radius: inherit;
    background: #7c83ee;
}

.report-bar-fill.status-approved {
    background: #22a67a;
}

.report-bar-fill.status-rejected {
    background: #dc5a65;
}

.report-bar-fill.status-revision {
    background: #e2a13c;
}

.report-bar-fill.status-review {
    background: #3b82c4;
}

.report-bar-fill.status-draft {
    background: #9da5b4;
}

.report-bar-fill.status-pending {
    background: #7d69d8;
}

.report-bar-row small {
    color: #929aac;
    font-size: 9px;
    text-align: right;
}

.report-mode-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-mode-item {
    padding: 14px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    border: 1px solid #e7e9f0;
    border-radius: 15px;
    background: #fafbfc;
}

.report-mode-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ffffff;
    background: #5b5bd6;
    font-size: 13px;
    font-weight: 900;
}

.report-mode-item.mode-2 .report-mode-icon {
    background: #209b83;
}

.report-mode-item.mode-3 .report-mode-icon {
    background: #c9832b;
}

.report-mode-item strong,
.report-mode-item span {
    display: block;
}

.report-mode-item strong {
    color: #2d3546;
    font-size: 11px;
}

.report-mode-item span {
    margin-top: 4px;
    color: #8b94a6;
    font-size: 9px;
}

.report-mode-item b {
    color: #1e3a8a;
    font-size: 12px;
}

.report-trend-chart {
    min-height: 260px;
    padding: 20px 5px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    align-items: end;
    gap: 12px;
    border-top: 1px solid #eef0f5;
}

.report-trend-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.report-trend-value {
    margin-bottom: 8px;
    color: #596274;
    font-size: 10px;
    font-weight: 800;
}

.report-trend-bar-area {
    width: min(42px, 70%);
    height: 160px;
    display: flex;
    align-items: flex-end;
    border-radius: 11px 11px 5px 5px;
    background: linear-gradient(to top, #f4f5fa, #fbfbfd);
}

.report-trend-bar {
    width: 100%;
    display: block;
    border-radius: 9px 9px 4px 4px;
    background: linear-gradient(to top, #1e3a8a, #2b6687);
    box-shadow: 0 7px 15px rgba(30, 58, 138, 0.15);
}

.report-trend-column strong {
    margin-top: 10px;
    color: #454e60;
    font-size: 9px;
    text-align: center;
}

.report-trend-column small {
    margin-top: 4px;
    color: #9aa2b2;
    font-size: 8px;
    text-align: center;
}

.report-reviewer-table {
    min-width: 1050px;
}

.report-reviewer-table td>strong {
    color: #262f40;
}

.report-record-list,
.report-activity-list {
    display: flex;
    flex-direction: column;
}

.report-record-item {
    padding: 13px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #eef0f4;
    text-decoration: none;
}

.report-record-item:last-child,
.report-activity-item:last-child {
    border-bottom: 0;
}

.report-record-main {
    min-width: 0;
}

.report-record-main .status-badge {
    margin-bottom: 7px;
}

.report-record-main strong,
.report-record-main small,
.report-record-meta span,
.report-record-meta small {
    display: block;
}

.report-record-main strong {
    overflow: hidden;
    color: #273042;
    font-size: 11px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-record-main small,
.report-record-meta small {
    margin-top: 4px;
    color: #949cad;
    font-size: 9px;
}

.report-record-meta {
    flex: 0 0 auto;
    text-align: right;
}

.report-record-meta span {
    color: #626b7d;
    font-size: 9px;
    font-weight: 700;
}

.report-activity-item {
    position: relative;
    padding: 12px 0 12px 23px;
    border-bottom: 1px solid #eef0f4;
}

.report-activity-dot {
    position: absolute;
    top: 16px;
    left: 0;
    width: 10px;
    height: 10px;
    border: 3px solid #dce8ff;
    border-radius: 50%;
    background: #4b79bf;
}

.report-activity-dot.success {
    border-color: #d4f3e7;
    background: #159b75;
}

.report-activity-dot.warning {
    border-color: #fff0cf;
    background: #d28a27;
}

.report-activity-dot.danger {
    border-color: #ffe0e3;
    background: #d95662;
}

.report-activity-copy strong {
    display: block;
    color: #30394b;
    font-size: 10px;
}

.report-activity-copy p {
    margin: 5px 0 0;
    color: #667084;
    font-size: 9px;
    line-height: 1.55;
}

.report-activity-copy small {
    display: block;
    margin-top: 6px;
    color: #9aa2b1;
    font-size: 8px;
}

.report-empty-state {
    margin: 0;
    padding: 30px 12px;
    color: #8a93a4;
    font-size: 11px;
    text-align: center;
}

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

    .report-filter-field.reviewer {
        grid-column: span 2;
    }

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

@media (max-width: 980px) {

    .reports-main-grid,
    .reports-lower-grid {
        grid-template-columns: 1fr;
    }

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

    .report-bar-row {
        grid-template-columns: minmax(125px, 0.75fr) minmax(150px, 1.25fr) 44px;
    }
}

@media (max-width: 760px) {
    .reports-heading-row {
        flex-direction: column;
    }

    .reports-export-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .reports-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .report-filter-field.reviewer {
        grid-column: span 2;
    }

    .reports-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .report-bar-row {
        grid-template-columns: 1fr 48px;
    }

    .report-bar-label {
        grid-column: 1 / -1;
    }

    .report-record-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-record-meta {
        text-align: left;
    }
}

@media (max-width: 520px) {

    .reports-export-actions,
    .report-export-button {
        width: 100%;
    }

    .reports-filter-form,
    .reports-summary-grid {
        grid-template-columns: 1fr;
    }

    .report-filter-field.reviewer {
        grid-column: auto;
    }

    .reports-filter-button,
    .reports-clear-link {
        width: 100%;
        justify-content: center;
    }

    .report-panel,
    .reports-filter-panel,
    .report-summary-card {
        border-radius: 17px;
    }

    .report-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-trend-chart {
        overflow-x: auto;
        grid-template-columns: repeat(auto-fit, minmax(72px, 82px));
        justify-content: flex-start;
    }
}

/* =========================================================
   Stage 5A: administrator reports and activity tracking
   ========================================================= */

.reports-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.reports-heading-row {
    align-items: flex-start;
    gap: 24px;
}

.reports-export-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.report-export-button {
    min-height: 42px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.report-export-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-export-button.primary {
    border: 1px solid #172554;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a, #2b6687);
    box-shadow: 0 10px 22px rgba(30, 58, 138, 0.17);
}

.report-export-button.secondary {
    border: 1px solid #d7dbea;
    color: #172554;
    background: #ffffff;
}

.report-export-button:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.reports-filter-panel,
.report-panel {
    border: 1px solid #e4e7ef;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.reports-filter-panel {
    padding: 18px;
}

.reports-filter-form {
    display: grid;
    grid-template-columns:
        minmax(135px, 160px) minmax(135px, 160px) minmax(145px, 180px) minmax(160px, 200px) minmax(190px, 1fr) auto auto;
    align-items: end;
    gap: 11px;
}

.report-filter-field label {
    display: block;
    margin-bottom: 7px;
    color: #5d6679;
    font-size: 11px;
    font-weight: 800;
}

.report-filter-field input,
.report-filter-field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #cfd5e2;
    border-radius: 11px;
    outline: none;
    color: #222a38;
    background: #ffffff;
    font-size: 11px;
}

.report-filter-field input:focus,
.report-filter-field select:focus {
    border-color: #6f86b3;
    box-shadow: 0 0 0 3px rgba(49, 90, 155, 0.11);
}

.reports-filter-button {
    min-height: 42px;
    padding: 10px 15px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: #1e3a8a;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.reports-clear-link {
    min-height: 42px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    color: #697386;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.reports-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.report-summary-card {
    position: relative;
    min-height: 142px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #e6e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.045);
}

.report-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #315a9b;
}

.report-summary-card.approved::before {
    background: #0f9f78;
}

.report-summary-card.active::before {
    background: #2878c8;
}

.report-summary-card.revision::before {
    background: #d78a21;
}

.report-summary-card.duration::before {
    background: #8b5cf6;
}

.report-summary-card span,
.report-summary-card small {
    display: block;
}

.report-summary-card span {
    color: #697386;
    font-size: 11px;
    font-weight: 800;
}

.report-summary-card strong {
    display: block;
    margin-top: 12px;
    color: #182033;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    font-size: 27px;
    line-height: 1.1;
}

.report-summary-card.duration strong {
    font-size: 21px;
}

.report-summary-card small {
    margin-top: 10px;
    color: #929bad;
    font-size: 10px;
    line-height: 1.5;
}

.reports-main-grid,
.reports-lower-grid {
    display: grid;
    gap: 18px;
}

.reports-main-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.6fr);
}

.reports-lower-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}

.report-panel {
    padding: 21px;
}

.report-panel-heading {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.report-panel-heading h2 {
    margin: 3px 0 0;
    color: #20283a;
    font-size: 16px;
}

.report-panel-heading>span,
.report-panel-heading>a {
    color: #8791a5;
    font-size: 10px;
    font-weight: 700;
}

.report-panel-heading>a {
    color: #1e3a8a;
    text-decoration: none;
}

.report-panel-kicker {
    margin: 0;
    color: #7c8395;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.report-bar-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.report-bar-row {
    display: grid;
    grid-template-columns: minmax(145px, 0.8fr) minmax(180px, 1.5fr) 48px;
    align-items: center;
    gap: 12px;
}

.report-bar-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.report-bar-label span {
    color: #4d5668;
    font-size: 10px;
    font-weight: 700;
}

.report-bar-label strong {
    color: #222b3c;
    font-size: 11px;
}

.report-bar-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef1f6;
}

.report-bar-fill {
    height: 100%;
    min-width: 0;
    display: block;
    border-radius: inherit;
    background: #7c83ee;
}

.report-bar-fill.status-approved {
    background: #22a67a;
}

.report-bar-fill.status-rejected {
    background: #dc5a65;
}

.report-bar-fill.status-revision {
    background: #e2a13c;
}

.report-bar-fill.status-review {
    background: #3b82c4;
}

.report-bar-fill.status-draft {
    background: #9da5b4;
}

.report-bar-fill.status-pending {
    background: #7d69d8;
}

.report-bar-row small {
    color: #929aac;
    font-size: 9px;
    text-align: right;
}

.report-mode-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-mode-item {
    padding: 14px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    border: 1px solid #e7e9f0;
    border-radius: 15px;
    background: #fafbfc;
}

.report-mode-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ffffff;
    background: #5b5bd6;
    font-size: 13px;
    font-weight: 900;
}

.report-mode-item.mode-2 .report-mode-icon {
    background: #209b83;
}

.report-mode-item.mode-3 .report-mode-icon {
    background: #c9832b;
}

.report-mode-item strong,
.report-mode-item span {
    display: block;
}

.report-mode-item strong {
    color: #2d3546;
    font-size: 11px;
}

.report-mode-item span {
    margin-top: 4px;
    color: #8b94a6;
    font-size: 9px;
}

.report-mode-item b {
    color: #1e3a8a;
    font-size: 12px;
}

.report-trend-chart {
    min-height: 260px;
    padding: 20px 5px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    align-items: end;
    gap: 12px;
    border-top: 1px solid #eef0f5;
}

.report-trend-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.report-trend-value {
    margin-bottom: 8px;
    color: #596274;
    font-size: 10px;
    font-weight: 800;
}

.report-trend-bar-area {
    width: min(42px, 70%);
    height: 160px;
    display: flex;
    align-items: flex-end;
    border-radius: 11px 11px 5px 5px;
    background: linear-gradient(to top, #f4f5fa, #fbfbfd);
}

.report-trend-bar {
    width: 100%;
    display: block;
    border-radius: 9px 9px 4px 4px;
    background: linear-gradient(to top, #1e3a8a, #2b6687);
    box-shadow: 0 7px 15px rgba(30, 58, 138, 0.15);
}

.report-trend-column strong {
    margin-top: 10px;
    color: #454e60;
    font-size: 9px;
    text-align: center;
}

.report-trend-column small {
    margin-top: 4px;
    color: #9aa2b2;
    font-size: 8px;
    text-align: center;
}

.report-reviewer-table {
    min-width: 1050px;
}

.report-reviewer-table td>strong {
    color: #262f40;
}

.report-record-list,
.report-activity-list {
    display: flex;
    flex-direction: column;
}

.report-record-item {
    padding: 13px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #eef0f4;
    text-decoration: none;
}

.report-record-item:last-child,
.report-activity-item:last-child {
    border-bottom: 0;
}

.report-record-main {
    min-width: 0;
}

.report-record-main .status-badge {
    margin-bottom: 7px;
}

.report-record-main strong,
.report-record-main small,
.report-record-meta span,
.report-record-meta small {
    display: block;
}

.report-record-main strong {
    overflow: hidden;
    color: #273042;
    font-size: 11px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-record-main small,
.report-record-meta small {
    margin-top: 4px;
    color: #949cad;
    font-size: 9px;
}

.report-record-meta {
    flex: 0 0 auto;
    text-align: right;
}

.report-record-meta span {
    color: #626b7d;
    font-size: 9px;
    font-weight: 700;
}

.report-activity-item {
    position: relative;
    padding: 12px 0 12px 23px;
    border-bottom: 1px solid #eef0f4;
}

.report-activity-dot {
    position: absolute;
    top: 16px;
    left: 0;
    width: 10px;
    height: 10px;
    border: 3px solid #dce8ff;
    border-radius: 50%;
    background: #4b79bf;
}

.report-activity-dot.success {
    border-color: #d4f3e7;
    background: #159b75;
}

.report-activity-dot.warning {
    border-color: #fff0cf;
    background: #d28a27;
}

.report-activity-dot.danger {
    border-color: #ffe0e3;
    background: #d95662;
}

.report-activity-copy strong {
    display: block;
    color: #30394b;
    font-size: 10px;
}

.report-activity-copy p {
    margin: 5px 0 0;
    color: #667084;
    font-size: 9px;
    line-height: 1.55;
}

.report-activity-copy small {
    display: block;
    margin-top: 6px;
    color: #9aa2b1;
    font-size: 8px;
}

.report-empty-state {
    margin: 0;
    padding: 30px 12px;
    color: #8a93a4;
    font-size: 11px;
    text-align: center;
}

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

    .report-filter-field.reviewer {
        grid-column: span 2;
    }

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

@media (max-width: 980px) {

    .reports-main-grid,
    .reports-lower-grid {
        grid-template-columns: 1fr;
    }

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

    .report-bar-row {
        grid-template-columns: minmax(125px, 0.75fr) minmax(150px, 1.25fr) 44px;
    }
}

@media (max-width: 760px) {
    .reports-heading-row {
        flex-direction: column;
    }

    .reports-export-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .reports-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .report-filter-field.reviewer {
        grid-column: span 2;
    }

    .reports-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .report-bar-row {
        grid-template-columns: 1fr 48px;
    }

    .report-bar-label {
        grid-column: 1 / -1;
    }

    .report-record-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-record-meta {
        text-align: left;
    }
}

@media (max-width: 520px) {

    .reports-export-actions,
    .report-export-button {
        width: 100%;
    }

    .reports-filter-form,
    .reports-summary-grid {
        grid-template-columns: 1fr;
    }

    .report-filter-field.reviewer {
        grid-column: auto;
    }

    .reports-filter-button,
    .reports-clear-link {
        width: 100%;
        justify-content: center;
    }

    .report-panel,
    .reports-filter-panel,
    .report-summary-card {
        border-radius: 17px;
    }

    .report-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-trend-chart {
        overflow-x: auto;
        grid-template-columns: repeat(auto-fit, minmax(72px, 82px));
        justify-content: flex-start;
    }
}

/* =========================================================
   Stage 5B: profile and account security
   ========================================================= */

.app-header-profile-link {
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.app-header-profile-link:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.sidebar-user-profile-link {
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-user-profile-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.profile-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-error-alert strong {
    display: block;
}

.profile-identity-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: radial-gradient(circle at top right, rgba(30, 58, 138, 0.10), transparent 34%), #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.profile-identity-avatar {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a, #2b6687);
    box-shadow: 0 14px 28px rgba(30, 58, 138, 0.22);
    font-size: 30px;
    font-weight: 900;
}

.profile-identity-copy {
    min-width: 0;
}

.profile-identity-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.profile-identity-title-row h2 {
    margin: 0 6px 0 0;
    color: #0f172a;
    font-size: 23px;
    font-weight: 850;
}

.profile-identity-copy>p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
}

.profile-identity-meta {
    margin-top: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: #64748b;
    font-size: 11px;
}

.profile-identity-meta strong {
    color: #334155;
}

.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.profile-summary-card {
    padding: 18px 19px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.profile-summary-card.accent {
    border-color: #c2d0e4;
    background: linear-gradient(135deg, #edf2f9, #f0fdfa);
}

.profile-summary-card span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.profile-summary-card strong {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.45;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: start;
    gap: 18px;
}

.profile-panel {
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.profile-panel.security {
    border-color: #dbe4ff;
}

.profile-panel-heading {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.profile-panel-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
}

.profile-panel-icon.account {
    color: #172554;
    background: #edf2f9;
}

.profile-panel-icon.security {
    color: #047857;
    background: #ecfdf5;
}

.profile-panel-icon.activity {
    color: #0369a1;
    background: #e0f2fe;
}

.profile-panel-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.profile-panel-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    font-weight: 850;
}

.profile-panel-heading p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}

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

.profile-form-grid.single-column {
    grid-template-columns: 1fr;
}

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

.profile-password-input-wrap {
    position: relative;
}

.profile-password-input-wrap input {
    padding-right: 66px;
}

.profile-password-toggle {
    min-width: 48px;
    height: 30px;
    padding: 0 9px;
    position: absolute;
    top: 50%;
    right: 6px;
    border: 0;
    border-radius: 8px;
    color: #172554;
    background: #edf2f9;
    font-size: 9px;
    font-weight: 850;
    transform: translateY(-50%);
    cursor: pointer;
}

.profile-password-toggle:hover {
    background: #dce6f3;
}

.profile-password-rules {
    margin-top: -4px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.profile-password-rules span {
    position: relative;
    padding-left: 17px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
}

.profile-password-rules span::before {
    content: '';
    width: 8px;
    height: 8px;
    position: absolute;
    top: 2px;
    left: 0;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
}

.profile-password-rules span.valid {
    color: #047857;
}

.profile-password-rules span.valid::before {
    border-color: #10b981;
    background: #10b981;
    box-shadow: inset 0 0 0 2px #ffffff;
}

.profile-security-note {
    margin-top: 18px;
    padding: 12px 13px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid #dce8f4;
    border-radius: 13px;
    color: #475569;
    background: #f8fbff;
    font-size: 10px;
    line-height: 1.6;
}

.profile-security-note svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: #245b91;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.profile-form-actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
}

.profile-security-button {
    min-height: 42px;
    padding: 10px 17px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #047857, #0f766e);
    box-shadow: 0 9px 18px rgba(15, 118, 110, 0.18);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.profile-security-button:hover {
    transform: translateY(-1px);
}

.profile-security-button:disabled,
.profile-form-actions .primary-action-button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.profile-activity-panel {
    overflow: hidden;
}

.profile-activity-list {
    display: flex;
    flex-direction: column;
}

.profile-activity-item {
    padding: 13px 0;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
}

.profile-activity-item:first-child {
    border-top: 0;
}

.profile-activity-dot {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #2b6687);
}

.profile-activity-copy strong {
    display: block;
    color: #334155;
    font-size: 11px;
}

.profile-activity-copy p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.55;
}

.profile-activity-item time {
    color: #94a3b8;
    font-size: 9px;
    white-space: nowrap;
}

.profile-activity-empty {
    padding: 25px 0 5px;
    color: #64748b;
    font-size: 11px;
    text-align: center;
}

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

    .profile-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .profile-identity-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-identity-avatar {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        border-radius: 21px;
        font-size: 25px;
    }

    .profile-summary-grid,
    .profile-form-grid,
    .profile-password-rules {
        grid-template-columns: 1fr;
    }

    .profile-field-full {
        grid-column: auto;
    }

    .profile-panel {
        padding: 19px;
    }

    .profile-form-actions button {
        width: 100%;
    }

    .profile-activity-item {
        grid-template-columns: 10px minmax(0, 1fr);
    }

    .profile-activity-item time {
        grid-column: 2;
        white-space: normal;
    }
}

/* =========================================================
   Smart Template official DOCX draft download
   ========================================================= */

.download-draft-button {
    border-color: #86b99f;
    color: #23764d;
    background: #f4fbf7;
}

.download-draft-button:hover {
    border-color: #5f9f7b;
    color: #185f3c;
    background: #eaf7ef;
    box-shadow: 0 7px 16px rgba(35, 118, 77, 0.13);
}

.download-draft-button[hidden] {
    display: none !important;
}

/* =========================================================
   Smart Template page-one fields — old-system layout
   ========================================================= */

.smart-template-page-one-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.smart-template-section textarea[name="template[tujuan]"],
.smart-template-section textarea[name="template[latar_belakang]"],
.smart-template-section textarea[name="template[cadangan]"],
.smart-template-section textarea[name="template[justifikasi]"],
.smart-template-section textarea[name="template[kpi]"] {
    min-height: 0;
    color: #0f172a;
    background: #ffffff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

#approval_ref_no[readonly] {
    cursor: not-allowed;
    color: #475569;
    background: #f8fafc;
}


/* =========================================================
   Smart Template 5.0 — Jenis Program reference and dropdown
   ========================================================= */

.smart-template-field-label-row {
    margin-bottom: 7px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 9px;
}

.smart-template-field-label-row label {
    margin-bottom: 0;
}

.smart-template-reference-link {
    color: #1e4f85;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.smart-template-reference-link:hover {
    color: #1e3a8a;
}

.smart-template-program-type-field select {
    font-family: inherit;
    cursor: pointer;
}

/*
 * Section 5: standardised programme-detail field sizes.
 */
.pelaksanaan-program-section .system-field label,
.pelaksanaan-program-section .smart-template-reference-link {
    font-size: 12px;
    line-height: 1.4;
}

.pelaksanaan-program-section input,
.pelaksanaan-program-section select,
.pelaksanaan-program-section textarea {
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.pelaksanaan-program-section input::placeholder,
.pelaksanaan-program-section textarea::placeholder {
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
}


/* Section 5 — explicit 12-hour programme time range */
.pelaksanaan-time-range {
    display: grid;
    gap: 10px;
}

.pelaksanaan-time-slot {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.pelaksanaan-time-slot-label {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.pelaksanaan-time-picker {
    min-width: 0;
}

.pelaksanaan-time-picker select {
    min-height: 42px;
    font-size: 14px;
}

@media (max-width: 640px) {
    .pelaksanaan-time-slot {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* =========================================================
   SMART TEMPLATE — 5.0 PELAKSANAAN PROGRAM REDESIGN
   ========================================================= */

/*
 * Keep Section 5 on the same standard section/header treatment as the
 * other Smart Template sections. Only the inner form content is grouped
 * into cards for readability.
 */
.pelaksanaan-program-layout {
    padding: 0;
    display: grid;
    gap: 16px;
}

.pelaksanaan-program-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 5px 16px rgba(15, 23, 42, 0.035);
}

.pelaksanaan-program-card-title {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
}

.pelaksanaan-program-card-title > span {
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-transform: uppercase;
}

.pelaksanaan-card-grid {
    display: grid;
    gap: 14px 16px;
}

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

.pelaksanaan-program-section .system-field {
    min-width: 0;
}

.pelaksanaan-program-section .system-field label {
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.pelaksanaan-program-section input[type="text"],
.pelaksanaan-program-section input[type="date"],
.pelaksanaan-program-section select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
    border-color: #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    background: #ffffff;
    font-size: 14px;
}

.pelaksanaan-program-section input[type="text"]:focus,
.pelaksanaan-program-section input[type="date"]:focus,
.pelaksanaan-program-section select:focus {
    border-color: #6f86b3;
    box-shadow:
        0 0 0 3px rgba(49, 90, 155, 0.10);
}

.pelaksanaan-program-section .smart-template-field-label-row {
    margin-bottom: 7px;
    align-items: center;
    justify-content: space-between;
}

.pelaksanaan-program-section .smart-template-reference-link {
    padding: 3px 8px;
    border-radius: 999px;
    color: #1e4f85;
    background: #eff6ff;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
}

.pelaksanaan-program-section .smart-template-reference-link:hover {
    color: #1e3a8a;
    background: #dbeafe;
}

.pelaksanaan-program-card--time .pelaksanaan-time-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pelaksanaan-program-card--time .pelaksanaan-time-slot {
    padding: 12px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.pelaksanaan-program-card--time .pelaksanaan-time-slot-label {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.pelaksanaan-program-card--time .pelaksanaan-time-picker {
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr)
        minmax(0, 1.2fr);
    gap: 6px;
}

.pelaksanaan-program-card--time .pelaksanaan-time-picker select {
    min-height: 42px;
    padding-left: 7px;
    padding-right: 5px;
    border-radius: 9px;
    font-size: 13px;
}

@media (max-width: 760px) {
    .pelaksanaan-program-card {
        padding: 16px;
    }

    .pelaksanaan-card-grid--two,
    .pelaksanaan-program-card--time .pelaksanaan-time-range {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .pelaksanaan-program-card--time .pelaksanaan-time-slot {
        grid-template-columns: 1fr;
        gap: 7px;
    }
}

/* =========================================================
   Smart Template 6.0 — Additional activity information
   ========================================================= */

.maklumat-tambahan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    padding: 20px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #f8fafc;
}

.maklumat-tambahan-section .system-field label,
.maklumat-tambahan-section .smart-template-reference-link,
.maklumat-tambahan-group-title,
.maklumat-choice {
    font-size: 12px;
    line-height: 1.4;
}

.maklumat-tambahan-section input,
.maklumat-tambahan-section select,
.maklumat-tambahan-section textarea {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.maklumat-tambahan-section select,
.maklumat-tambahan-section input[type="text"],
.maklumat-tambahan-section input[type="number"] {
    min-height: 42px;
}

.maklumat-tambahan-section textarea {
    min-height: 86px;
    resize: vertical;
}

.maklumat-tambahan-section input::placeholder,
.maklumat-tambahan-section textarea::placeholder {
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
}

.maklumat-tambahan-full {
    grid-column: 1 / -1;
}

.maklumat-tambahan-grid > .system-field,
.maklumat-tambahan-group {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 11px;
    background: #ffffff;
}

.maklumat-tambahan-grid > .system-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.maklumat-tambahan-grid > .system-field > label,
.maklumat-tambahan-grid > .system-field > .smart-template-field-label-row {
    margin-bottom: 8px;
}

.maklumat-tambahan-group-title {
    margin-bottom: 10px;
    color: #334155;
    font-weight: 800;
}

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

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

.maklumat-choice {
    min-height: 42px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    color: #334155;
    background: #ffffff;
    font-weight: 650;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.maklumat-choice:hover {
    border-color: #bdd1e5;
    background: #f0f5fa;
}

.maklumat-choice:has(input:checked) {
    border-color: #8cafcf;
    background: #f0f5fa;
    box-shadow: 0 0 0 1px rgba(36, 91, 145, 0.08);
}

.maklumat-choice input[type="checkbox"],
.maklumat-choice input[type="radio"] {
    width: 16px;
    height: 16px;
    min-height: 16px;
    flex: 0 0 16px;
    margin: 0;
    accent-color: #245b91;
}

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

@media (max-width: 780px) {
    .maklumat-tambahan-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .maklumat-tambahan-full {
        grid-column: auto;
    }

    .maklumat-tambahan-choice-grid,
    .maklumat-single-choice {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .smart-template-field-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}



/* =========================================================
   SMART TEMPLATE — 7.0 PENGANJUR
   ========================================================= */

.penganjur-section {
    border-color: #bdd1e5;
    background: #f8fbff;
}

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

.penganjur-section-header .smart-template-section-heading {
    margin-bottom: 0;
}

.penganjur-add-button {
    min-height: 40px;
    padding: 9px 15px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: #1e4f85;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.penganjur-add-button:hover {
    background: #183b68;
}

.penganjur-add-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.penganjur-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    background: #ffffff;
}

.penganjur-input-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
    table-layout: fixed;
}

.penganjur-input-table th,
.penganjur-input-table td {
    border: 1px solid #cbd5e1;
}

.penganjur-main-header th {
    padding: 11px 9px;
    color: #ffffff;
    background: #183b68;
    font-size: 11px;
    font-weight: 850;
    text-align: center;
}

.penganjur-info-header th {
    padding: 9px;
    color: #475569;
    background: #f1f5f9;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    vertical-align: top;
}

.penganjur-input-table th:nth-child(1) {
    width: 6%;
}

.penganjur-input-table th:nth-child(2) {
    width: 18%;
}

.penganjur-input-table th:nth-child(3) {
    width: 34%;
}

.penganjur-input-table th:nth-child(4) {
    width: 32%;
}

.penganjur-input-table th:nth-child(5) {
    width: 10%;
}

.penganjur-input-table td {
    padding: 9px;
    vertical-align: middle;
    background: #ffffff;
}

.penganjur-bil {
    text-align: center;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.penganjur-input-table input {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.penganjur-input-table input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.penganjur-input-table input:focus {
    border-color: #5f8fbd;
    box-shadow:
        0 0 0 3px rgba(36, 91, 145, 0.11);
}

.penganjur-remove-button {
    width: 100%;
    min-height: 38px;
    padding: 8px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    background: #fff1f2;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.penganjur-remove-button:hover {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
}

.penganjur-remove-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.penganjur-row-note {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 650px) {
    .penganjur-section-header {
        flex-direction: column;
    }

    .penganjur-add-button {
        width: 100%;
    }
}

/* =========================================================
   Smart Template guidance and reviewer-only reference number
   ========================================================= */

.smart-template-reference-note {
    display: grid;
    gap: 4px;
    margin: 0 0 10px;
    padding: 11px 13px;
    border: 1px solid #ddd7ea;
    border-radius: 8px;
    background: #f8f6fb;
    color: #51485f;
    font-size: 12px;
    line-height: 1.45;
}

.smart-template-reference-note strong {
    color: #30283a;
    font-size: 12px;
}

.smart-template-reference-note em {
    color: #71677f;
}

.reviewer-reference-field {
    margin-bottom: 18px;
}

.reviewer-reference-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 440px;
}

.reviewer-reference-input-group>span {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid #d7d1df;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #f3f0f7;
    color: #403649;
    font-weight: 700;
    white-space: nowrap;
}

.reviewer-reference-input-group input {
    min-width: 90px;
    max-width: 150px;
    border-radius: 0 8px 8px 0;
}

@media (max-width: 560px) {
    .reviewer-reference-input-group {
        max-width: none;
    }

    .reviewer-reference-input-group>span {
        padding: 0 9px;
        font-size: 12px;
    }
}

/* =========================================================
   SMART TEMPLATE — 8.0 KEBERHASILAN PROGRAM
   ========================================================= */
.keberhasilan-program-section .system-field label {
    font-size: 12px;
    line-height: 1.4;
}
.keberhasilan-program-section textarea {
    min-height: 118px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

/* =========================================================
   SMART TEMPLATE — 9.0 IMPLIKASI KEWANGAN + 10.0 SYOR
   Old frontend layout: side-by-side on desktop
   ========================================================= */
.smart-template-financial-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 20px;
    align-items: stretch;
}

.smart-template-financial-layout > .smart-template-section {
    min-width: 0;
    margin: 0;
}

.implikasi-kewangan-section {
    border-color: #dce8f4;
    background: #f8fbff;
}

.implikasi-kewangan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 20px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #f8fafc;
}

.implikasi-kewangan-grid > .system-field {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 11px;
    background: #ffffff;
}

.implikasi-kewangan-section .system-field label {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.implikasi-kewangan-section input,
.implikasi-kewangan-section select,
.implikasi-kewangan-section textarea {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.implikasi-kewangan-section input,
.implikasi-kewangan-section select {
    min-height: 42px;
}

.implikasi-kewangan-section select {
    cursor: pointer;
}

.implikasi-kewangan-section input[readonly] {
    background: #f1f5f9;
    color: #0f172a;
    cursor: default;
}

.implikasi-kewangan-section textarea {
    min-height: 88px;
    resize: vertical;
}

.implikasi-kewangan-full {
    grid-column: 1 / -1;
}

.syor-section {
    display: flex;
    flex-direction: column;
    border-color: #c2d0e4;
    background: #f8faff;
}

.syor-preview-card {
    display: flex;
    flex: 1;
    align-items: center;
    min-height: 260px;
    padding: 24px;
    border: 0;
    border-radius: 14px;
    background: #1e3a8a;
    box-shadow: 0 12px 26px rgba(30, 58, 138, 0.18);
}

.syor-preview-text {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.8;
}

.syor-preview-text strong,
.syor-preview-text span {
    color: #ffffff;
}

.syor-preview-text strong {
    font-weight: 700;
}

@media (max-width: 1050px) {
    .smart-template-financial-layout {
        grid-template-columns: 1fr;
    }

    .syor-preview-card {
        min-height: 180px;
    }
}

@media (max-width: 780px) {
    .implikasi-kewangan-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .implikasi-kewangan-full {
        grid-column: auto;
    }

    .syor-preview-card {
        min-height: 0;
        padding: 18px;
    }
}



/* =========================================================
   SMART TEMPLATE — SEMAKAN DAN PERAKUAN
   Old frontend layout and field grouping
   ========================================================= */
.semakan-perakuan-section {
    margin-top: 64px;
    border-color: #bdd1e5;
    background: #ffffff;
}

.semakan-perakuan-title-card {
    padding: 16px 20px;
    border: 1px solid #1e3a8a;
    border-radius: 14px;
    background: #1e3a8a;
    text-align: center;
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.24);
}

.semakan-perakuan-title-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.semakan-perakuan-title-card p {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.semakan-perakuan-form-card {
    display: grid;
    gap: 20px;
    margin-top: 16px;
    padding: 22px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #f8fafc;
}

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

.semakan-perakuan-section .system-field {
    min-width: 0;
}

.semakan-perakuan-section .system-field label,
.semakan-decision-fieldset legend {
    margin-bottom: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.semakan-perakuan-section input,
.semakan-perakuan-section select,
.semakan-perakuan-section textarea {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.semakan-perakuan-section input,
.semakan-perakuan-section select {
    min-height: 42px;
}

.semakan-perakuan-section select {
    cursor: pointer;
}

.semakan-perakuan-section input[readonly] {
    background: #f1f5f9;
    color: #0f172a;
    cursor: default;
}

.semakan-perakuan-section textarea {
    min-height: 104px;
    resize: vertical;
}

.semakan-decision-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

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

.semakan-decision-option {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    cursor: pointer;
}

.semakan-decision-option:hover {
    border-color: #8cafcf;
    background: #f0f5fa;
}

.semakan-decision-option:has(input:checked) {
    border-color: #245b91;
    background: #dce8f4;
    color: #1e3a8a;
}

.semakan-decision-option input {
    width: 16px;
    min-height: auto;
    height: 16px;
    margin: 0;
    accent-color: #245b91;
}

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

@media (max-width: 900px) {
    .semakan-decision-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .semakan-perakuan-section {
        margin-top: 36px;
    }

    .semakan-perakuan-title-card {
        padding: 14px 16px;
    }

    .semakan-perakuan-form-card {
        padding: 16px;
    }

    .semakan-perakuan-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   UPLOADED MAIN DOCUMENT — INLINE VIEW
   ========================================================= */
.uploaded-main-document-preview {
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #ffffff;
}

.uploaded-main-document-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid #dbe3ee;
    background: #f8fafc;
}

.uploaded-main-document-identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.uploaded-main-document-identity > div {
    min-width: 0;
}

.uploaded-main-document-identity strong,
.uploaded-main-document-identity span {
    display: block;
}

.uploaded-main-document-identity strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uploaded-main-document-identity span:not(.uploaded-main-document-icon) {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.uploaded-main-document-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.uploaded-main-document-icon.doc,
.uploaded-main-document-icon.docx {
    background: #dce8f4;
    color: #1e4f85;
}

.uploaded-main-document-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.uploaded-main-document-frame-wrap {
    min-height: 720px;
    background: #e5e7eb;
}

.uploaded-main-document-frame {
    display: block;
    width: 100%;
    height: 760px;
    border: 0;
    background: #ffffff;
}

.uploaded-main-document-unavailable {
    padding: 28px;
    text-align: center;
}

.uploaded-main-document-unavailable strong {
    color: #0f172a;
}

.uploaded-main-document-unavailable p {
    max-width: 620px;
    margin: 8px auto 0;
    color: #64748b;
    line-height: 1.65;
}

@media (max-width: 780px) {
    .uploaded-main-document-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .uploaded-main-document-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .uploaded-main-document-frame-wrap {
        min-height: 480px;
    }

    .uploaded-main-document-frame {
        height: 540px;
    }
}
/* =========================================================
   UUM-INSPIRED DARK NAVY THEME REFINEMENT
   Dominant navy with restrained gold navigation accents.
   ========================================================= */
.sidebar-active-marker {
    background: #f2b705;
}

.sidebar-user-role {
    color: #fde7a3;
}

.login-brand-divider {
    background: rgba(242, 183, 5, 0.72);
}

.app-sidebar {
    background: linear-gradient(145deg, #0f2342 0%, #1e3a6d 54%, #275f7f 100%);
}

.login-brand-panel {
    background: linear-gradient(135deg, #0f2342 0%, #1e3a6d 55%, #275f7f 100%);
}


/* =========================================================
   LOGIN / REGISTER BRAND SEPARATOR REFINEMENT
   Replaces the solid gold pill with a lighter document-style
   divider: two subtle lines and one restrained UUM-gold diamond.
   ========================================================= */
.login-brand-divider {
    position: relative;
    width: 112px;
    height: 18px;
    margin: 10px 0 22px;
    border-radius: 0;
    background: transparent;
}

.login-brand-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.30) 18%,
        rgba(255, 255, 255, 0.48) 42%,
        rgba(255, 255, 255, 0.48) 58%,
        rgba(255, 255, 255, 0.30) 82%,
        rgba(255, 255, 255, 0) 100%
    );
}

.login-brand-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: #f2b705;
    box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.10);
    transform: translate(-50%, -50%) rotate(45deg);
}

@media (max-width: 780px) {
    .login-brand-divider {
        width: 96px;
        height: 16px;
        margin: 10px 0 18px;
    }

    .login-brand-divider::after {
        width: 6px;
        height: 6px;
    }
}

/* =========================================================
   BALANCED INTERFACE TYPOGRAPHY
   Improves readability across SAPMS without changing the
   official kertas kerja/document output font specifications.
   ========================================================= */

/* Login and registration */
.login-brand-badge span,
.form-label,
.role-name {
    font-size: 12px;
}

.login-copyright,
.login-terms {
    font-size: 11px;
}

.forgot-link,
.password-requirements {
    font-size: 13px;
}

.alert,
.login-signup {
    font-size: 14px;
}

/* Global application navigation and header */
.sidebar-user-role {
    font-size: 10px;
    letter-spacing: 0.15em;
}

.sidebar-logout-button,
.workspace-label,
.header-user-role {
    font-size: 13px;
}

.sidebar-user-name,
.header-user-name,
.sidebar-avatar,
.header-avatar {
    font-size: 14px;
}

/* General interface labels, supporting text and controls */
.page-eyebrow,
.filter-form label,
.system-field label,
.submission-filter-form label,
.admin-submission-filter-form label,
.report-filter-field label,
.profile-panel-heading p,
.smart-template-section-heading > span,
.smart-template-section-heading p,
.smart-template-reference-link,
.smart-template-reference-note,
.smart-template-reference-note strong,
.reviewer-reference-input-group > span {
    font-size: 13px;
}

.system-field small,
.submission-reference,
.status-history-item span,
.submission-mode-text small,
.submission-information-list dt,
.review-information-list dt,
.admin-submission-title-cell span,
.admin-table-secondary-text,
.existing-upload-item span,
.submission-file-information span,
.profile-security-note,
.profile-activity-copy p,
.profile-activity-item time {
    font-size: 11.5px;
    line-height: 1.5;
}

.filter-button,
.clear-filter-link,
.view-details-button,
.review-action-button,
.notification-mark-all-button,
.notification-filter-tabs a,
.generated-document-action,
.backup-action-button,
.report-export-button,
.reports-filter-button,
.reports-clear-link,
.profile-security-button,
.atur-cara-add-button,
.jawatankuasa-add-button,
.peserta-add-button,
.penganjur-add-button {
    font-size: 13px;
}

/* Dashboard cards and submission lists */
.stat-card-title,
.recent-panel-header p,
.submission-title-row h3 {
    font-size: 14px;
}

.item-count-badge,
.submission-metadata,
.empty-state p,
.system-toast {
    font-size: 12.5px;
}

.status-badge {
    font-size: 10.5px;
    padding: 5px 10px;
}

/* Management and submission tables */
.management-table th,
.admin-submission-table th {
    font-size: 11.5px;
}

.management-table td,
.admin-submission-table td,
.table-user-cell strong,
.admin-submission-title-cell strong {
    font-size: 13px;
}

.table-user-cell span,
.table-edit-button,
.table-delete-button,
.admin-assignment-inline select,
.admin-assignment-inline button,
.file-download-button,
.managed-file-button {
    font-size: 11.5px;
}

.user-role-badge,
.account-status-badge,
.review-assignment-badge,
.admin-document-method-badge,
.backup-type-badge,
.backup-status-badge,
.generated-document-latest-badge {
    font-size: 10.5px;
}

.pagination a,
.submission-card-metadata,
.admin-reviewer-display,
.review-file-item strong,
.admin-file-record strong {
    font-size: 12px;
}

/* Submission, review and administrative details */
.submission-information-list dd,
.review-information-list dd,
.document-empty-message,
.feedback-box p,
.status-history-item p,
.mode-information-panel p,
.review-history-item strong,
.admin-review-record-heading strong,
.existing-upload-item strong,
.submission-file-information strong,
.submission-fixed-document-name {
    font-size: 13px;
}

.review-history-item span,
.review-file-item span,
.admin-review-record-heading span,
.admin-file-record span,
.admin-current-reviewer-card > span,
.admin-current-reviewer-card small,
.admin-current-reviewer-card p,
.review-decision-notice strong,
.review-decision-notice span,
.review-final-decision span {
    font-size: 10.5px;
}

.review-history-item p,
.admin-review-record p,
.review-final-decision p {
    font-size: 12px;
    line-height: 1.55;
}

.submission-mode-tag,
.header-notification-count {
    font-size: 10px;
}

/* Smart Template appendix interfaces only */
.atur-cara-input-table th,
.jawatankuasa-input-table th,
.peserta-input-table th,
.penganjur-main-header th {
    font-size: 13px;
}

.jawatankuasa-input-table th small,
.peserta-input-table th small,
.penganjur-info-header th,
.penganjur-row-note {
    font-size: 12px;
    line-height: 1.35;
}

.atur-cara-remove-button,
.jawatankuasa-remove-button,
.peserta-remove-button,
.penganjur-remove-button,
.jawatankuasa-bil,
.peserta-bil {
    font-size: 12px;
}

.pelaksanaan-program-section .system-field label,
.pelaksanaan-program-section .smart-template-reference-link,
.maklumat-tambahan-section .system-field label,
.maklumat-tambahan-section .smart-template-reference-link,
.maklumat-tambahan-group-title,
.maklumat-choice,
.keberhasilan-program-section .system-field label,
.implikasi-kewangan-section .system-field label,
.semakan-perakuan-section .system-field label,
.semakan-decision-fieldset legend,
.semakan-perakuan-title-card p {
    font-size: 13px;
}

/* Notifications */
.notification-summary-card span,
.notification-card p {
    font-size: 12.5px;
    line-height: 1.55;
}

.notification-type-label,
.notification-submission-reference,
.notification-footer > span,
.notification-action-button {
    font-size: 10.5px;
}

/* Uploaded and generated document management */
.document-management-eyebrow,
.supporting-upload-status span,
.supporting-selected-files,
.document-management-readonly-notice p,
.document-management-empty p,
.uploaded-main-document-identity span:not(.uploaded-main-document-icon) {
    font-size: 12px;
    line-height: 1.5;
}

.supporting-upload-copy span,
.supporting-upload-choose,
.supporting-upload-status strong,
.generated-pdf-register-form > label,
.generated-pdf-register-row input[type="file"] {
    font-size: 13px;
}

.managed-file-icon,
.managed-file-metadata,
.managed-file-category,
.uploaded-main-document-icon {
    font-size: 11px;
}

/* Backup, reports and profile */
.backup-summary-label,
.backup-content-number,
.backup-record-title-row p,
.backup-record-meta,
.backup-record-remarks,
.backup-file-missing,
.backup-security-note,
.report-summary-card span,
.report-mode-item strong,
.report-record-main strong,
.profile-identity-meta,
.profile-summary-card span,
.profile-activity-copy strong,
.profile-activity-empty {
    font-size: 12px;
    line-height: 1.5;
}

.backup-action-kicker,
.backup-action-meta span,
.report-summary-card small,
.report-panel-heading > span,
.report-panel-heading > a,
.report-bar-label span,
.report-trend-value,
.report-activity-copy strong,
.profile-password-toggle,
.profile-password-rules span {
    font-size: 11px;
}

.report-filter-field input,
.report-filter-field select {
    font-size: 13px;
}

.report-panel-kicker,
.report-bar-row small,
.report-mode-item span,
.report-trend-column strong,
.report-record-main small,
.report-record-meta small,
.report-record-meta span,
.report-activity-copy p,
.report-activity-copy small {
    font-size: 10.5px;
    line-height: 1.45;
}

.report-trend-column small {
    font-size: 10px;
}

/* Keep compact badges compact on small screens. */
@media (max-width: 650px) {
    .workspace-label {
        font-size: 12px;
    }

    .sidebar-nav-item,
    .form-input,
    .login-button {
        font-size: 14px;
    }

    .management-table th,
    .admin-submission-table th,
    .atur-cara-input-table th,
    .jawatankuasa-input-table th,
    .peserta-input-table th {
        font-size: 12px;
    }
}


/* =========================================================
   TYPOGRAPHY REFINEMENT — SECOND READABILITY PASS
   Slightly enlarges interface text that still appears small.
   This does not affect the official kertas kerja/PDF/DOCX.
   ========================================================= */
body {
    font-size: 15px;
    line-height: 1.5;
}

/* Login and registration branding */
.login-brand-description {
    max-width: 310px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
}

.login-brand-badge span,
.form-label,
.role-name {
    font-size: 13px;
}

.login-copyright,
.login-terms {
    font-size: 12px;
}

/* Navigation and header details */
.sidebar-user-role {
    font-size: 11px;
}

.sidebar-logout-button,
.workspace-label,
.header-user-role {
    font-size: 13.5px;
}

/* Common labels, descriptions and compact controls */
.page-eyebrow,
.filter-form label,
.system-field label,
.submission-filter-form label,
.admin-submission-filter-form label,
.report-filter-field label,
.profile-panel-heading p,
.smart-template-section-heading > span,
.smart-template-section-heading p,
.smart-template-reference-link,
.smart-template-reference-note,
.smart-template-reference-note strong,
.reviewer-reference-input-group > span {
    font-size: 13.5px;
}

.system-field small,
.submission-reference,
.status-history-item span,
.submission-mode-text small,
.submission-information-list dt,
.review-information-list dt,
.admin-submission-title-cell span,
.admin-table-secondary-text,
.existing-upload-item span,
.submission-file-information span,
.profile-security-note,
.profile-activity-copy p,
.profile-activity-item time {
    font-size: 12px;
}

.filter-button,
.clear-filter-link,
.view-details-button,
.review-action-button,
.notification-mark-all-button,
.notification-filter-tabs a,
.generated-document-action,
.backup-action-button,
.report-export-button,
.reports-filter-button,
.reports-clear-link,
.profile-security-button,
.atur-cara-add-button,
.jawatankuasa-add-button,
.peserta-add-button,
.penganjur-add-button {
    font-size: 13.5px;
}

/* Cards, tables and status text */
.item-count-badge,
.submission-metadata,
.empty-state p,
.system-toast {
    font-size: 13px;
}

.status-badge,
.user-role-badge,
.account-status-badge,
.review-assignment-badge,
.admin-document-method-badge,
.backup-type-badge,
.backup-status-badge,
.generated-document-latest-badge {
    font-size: 11px;
}

.management-table th,
.admin-submission-table th {
    font-size: 12px;
}

.table-user-cell span,
.table-edit-button,
.table-delete-button,
.admin-assignment-inline select,
.admin-assignment-inline button,
.file-download-button,
.managed-file-button {
    font-size: 12px;
}

/* Smart Template interface only */
.atur-cara-input-table th,
.jawatankuasa-input-table th,
.peserta-input-table th,
.penganjur-main-header th {
    font-size: 13.5px;
}

.jawatankuasa-input-table th small,
.peserta-input-table th small,
.penganjur-info-header th,
.penganjur-row-note {
    font-size: 12.5px;
}

.atur-cara-remove-button,
.jawatankuasa-remove-button,
.peserta-remove-button,
.penganjur-remove-button,
.jawatankuasa-bil,
.peserta-bil {
    font-size: 12.5px;
}

/* Notifications and document management */
.notification-summary-card span,
.notification-card p {
    font-size: 13px;
}

.notification-type-label,
.notification-submission-reference,
.notification-footer > span,
.notification-action-button,
.managed-file-icon,
.managed-file-metadata,
.managed-file-category,
.uploaded-main-document-icon {
    font-size: 11px;
}

/* Reports, backup and profile supporting text */
.backup-action-kicker,
.backup-action-meta span,
.report-summary-card small,
.report-panel-heading > span,
.report-panel-heading > a,
.report-bar-label span,
.report-trend-value,
.report-activity-copy strong,
.profile-password-toggle,
.profile-password-rules span {
    font-size: 11.5px;
}

.report-panel-kicker,
.report-bar-row small,
.report-mode-item span,
.report-trend-column strong,
.report-record-main small,
.report-record-meta small,
.report-record-meta span,
.report-activity-copy p,
.report-activity-copy small {
    font-size: 11px;
}

.report-trend-column small {
    font-size: 10.5px;
}


/* =========================================================
   MY SUBMISSIONS — STATUS AND ACTION ALIGNMENT
   Keeps Draft/Revision Required/etc. on the same row as
   View, Edit and Delete instead of floating beside the title.
   ========================================================= */
.submission-card-actions {
    align-self: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.submission-card-actions .submission-action-status,
.submission-card-actions .table-edit-button,
.submission-card-actions .table-delete-button {
    min-height: 36px;
}

.submission-action-status {
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 650px) {
    .submission-card-actions .submission-action-status {
        width: 100%;
    }
}

/* =========================================================
   MY SUBMISSIONS — RESTORE ORIGINAL STATUS BADGE SIZE
   Keep badge aligned with View/Edit/Delete without matching
   the full button height.
   ========================================================= */
.submission-card-actions .submission-action-status {
    min-height: 0;
    height: auto;
    padding: 4px 9px;
    font-size: 9px;
    line-height: 1;
    align-self: center;
}

/* =========================================================
   SMART TEMPLATE — CHECKBOX / RADIO TEXT ALIGNMENT
   ========================================================= */
.maklumat-choice {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    column-gap: 9px;
}

.maklumat-choice input[type="checkbox"],
.maklumat-choice input[type="radio"] {
    display: block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
    align-self: center;
    justify-self: center;
    vertical-align: middle;
    transform: none;
}

.maklumat-choice > span {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 18px;
    margin: 0;
    line-height: 1.35;
}

/* =========================================================
   SMART TEMPLATE — CHECKBOX / RADIO LEFT ALIGNMENT FIX
   Keep the control immediately beside its label text.
   ========================================================= */
.maklumat-choice {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    text-align: left;
}

.maklumat-choice input[type="checkbox"],
.maklumat-choice input[type="radio"] {
    display: block;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px;
    max-height: 16px;
    flex: 0 0 16px;
    margin: 0;
    padding: 0;
    align-self: center;
    position: static;
    transform: none;
}

.maklumat-choice > span {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    line-height: 1.35;
    text-align: left;
}

/* =========================================================
   AUTHENTICATION — FORGOT / RESET PASSWORD
   ========================================================= */
.password-recovery-panel .login-form-wrapper {
    max-width: 410px;
}

.password-recovery-heading {
    margin-bottom: 24px;
}

.password-recovery-heading p {
    max-width: 370px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.password-recovery-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd8ea;
    border-radius: 16px;
    background: #edf2f9;
    color: #1e3a8a;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.10);
}

.password-recovery-icon svg {
    width: 25px;
    height: 25px;
}

.auth-back-link {
    width: fit-content;
    margin: 2px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.auth-back-link:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.local-reset-preview {
    margin: 0 0 20px;
    padding: 15px 16px;
    border: 1px solid #f3d47a;
    border-radius: 12px;
    background: #fffbeb;
    color: #713f12;
}

.local-reset-preview strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.local-reset-preview p {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.5;
}

.local-reset-preview small {
    display: block;
    margin-top: 9px;
    font-size: 10.5px;
    line-height: 1.45;
    color: #854d0e;
}

.local-reset-preview-button {
    min-height: 36px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #1e3a8a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.local-reset-preview-button:hover {
    background: #172554;
}

.password-reset-account {
    padding: 11px 13px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 12.5px;
    line-height: 1.45;
    text-align: center;
}

.password-reset-account strong {
    color: #172554;
}

.password-reset-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
}

.password-reset-rules span {
    position: relative;
    padding-left: 15px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.password-reset-rules span::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1e3a8a;
    font-weight: 900;
}

.password-reset-error-list {
    margin: 0;
    padding-left: 18px;
}

.password-reset-error-list li + li {
    margin-top: 4px;
}

.password-reset-invalid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}

.password-reset-invalid > strong {
    color: #991b1b;
    font-size: 15px;
}

.password-reset-invalid > p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.password-reset-invalid .login-button {
    text-decoration: none;
}

@media (max-width: 650px) {
    .password-reset-rules {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   NOTIFICATIONS — BALANCED READABILITY SCALE
   Standardises notification-page text so supporting details
   remain readable without making the interface oversized.
   ========================================================= */
.notification-mark-all-button,
.notification-filter-tabs a {
    font-size: 13.5px;
}

.notification-summary-card span {
    font-size: 13.5px;
    line-height: 1.45;
}

.notification-summary-card strong {
    font-size: 26px;
}

.notification-type-label {
    font-size: 11.5px;
    line-height: 1.35;
}

.notification-card h2 {
    font-size: 15.5px;
    line-height: 1.45;
}

.notification-card p {
    font-size: 13.5px;
    line-height: 1.65;
}

.notification-submission-reference {
    font-size: 12px;
    line-height: 1.5;
}

.notification-footer > span {
    font-size: 11.5px;
    line-height: 1.4;
}

.notification-action-button {
    min-height: 36px;
    padding: 9px 12px;
    font-size: 12px;
}

.notification-action-button svg {
    width: 15px;
    height: 15px;
}

.notification-panel .empty-state h3 {
    font-size: 16px;
}

.notification-panel .empty-state p {
    font-size: 13.5px;
    line-height: 1.6;
}

@media (max-width: 650px) {
    .notification-mark-all-button,
    .notification-filter-tabs a {
        font-size: 13px;
    }

    .notification-summary-card span {
        font-size: 13px;
    }

    .notification-card h2 {
        font-size: 15px;
    }

    .notification-card p {
        font-size: 13px;
    }

    .notification-submission-reference,
    .notification-action-button {
        font-size: 11.5px;
    }

    .notification-footer > span {
        font-size: 11px;
    }
}


/* =========================================================
   ADMIN INTERFACE — READABILITY & TABLE CLARITY
   Keeps the darker UUM theme while improving legibility.
   ========================================================= */
.user-role-admin .dashboard-content {
    font-size: 15px;
}

.user-role-admin .page-heading-row h1 {
    font-size: 31px;
    line-height: 1.2;
}

.user-role-admin .page-eyebrow {
    font-size: 12.5px;
}

.user-role-admin .page-description {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.65;
}

.user-role-admin .primary-action-button,
.user-role-admin .secondary-action-button,
.user-role-admin .page-action-link,
.user-role-admin .filter-button,
.user-role-admin .clear-filter-link {
    font-size: 13.5px;
}

.user-role-admin .filter-form label,
.user-role-admin .admin-submission-filter-form label,
.user-role-admin .report-filter-field label {
    font-size: 13.5px;
}

.user-role-admin .filter-form input,
.user-role-admin .filter-form select,
.user-role-admin .admin-submission-filter-form input,
.user-role-admin .admin-submission-filter-form select {
    min-height: 44px;
    font-size: 14px;
}

/* User statistics — follows the old system's icon-card pattern. */
.admin-user-summary-grid {
    gap: 16px;
}

.admin-user-summary-card {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-color: #d9e2ef;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.admin-user-summary-copy {
    min-width: 0;
}

.admin-user-summary-card span {
    color: #5b6b82;
    font-size: 14px;
    font-weight: 650;
}

.admin-user-summary-card strong {
    margin-top: 5px;
    font-size: 28px;
    line-height: 1.15;
}

.admin-user-summary-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.admin-user-summary-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.summary-total-users .admin-user-summary-icon {
    color: #1e3a8a;
    background: #e8eef9;
}

.summary-submitters .admin-user-summary-icon {
    color: #344f9e;
    background: #edf0fb;
}

.summary-reviewers .admin-user-summary-icon {
    color: #9a6700;
    background: #fff4d6;
}

.summary-administrators .admin-user-summary-icon {
    color: #166534;
    background: #e5f5e9;
}

.summary-total-submitted .admin-user-summary-icon {
    color: #1e3a8a;
    background: #e8eef9;
}

.summary-waiting-queue .admin-user-summary-icon {
    color: #7c3aed;
    background: #f1ebff;
}

.summary-under-review .admin-user-summary-icon {
    color: #0f766e;
    background: #e6fffb;
}

.summary-revision-required .admin-user-summary-icon {
    color: #b45309;
    background: #fff4d6;
}

.summary-approved-submissions .admin-user-summary-icon {
    color: #166534;
    background: #e5f5e9;
}

/* Users + All Submissions tables — clearer visual separation. */
.user-role-admin .management-panel {
    border-color: #d3ddea;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.user-role-admin .admin-users-table,
.user-role-admin .admin-submissions-table {
    border: 1px solid #cbd7e5;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.user-role-admin .admin-users-table thead th,
.user-role-admin .admin-submissions-table thead th {
    padding: 13px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom: 1px solid #172f61;
    color: #ffffff;
    background: #1e3a8a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1.35;
    text-transform: uppercase;
}

.user-role-admin .admin-users-table thead th:last-child,
.user-role-admin .admin-submissions-table thead th:last-child {
    border-right: 0;
}

.user-role-admin .admin-users-table tbody td,
.user-role-admin .admin-submissions-table tbody td {
    padding: 14px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #dfe7f1;
    color: #344155;
    background: #ffffff;
    font-size: 13.5px;
    line-height: 1.5;
    vertical-align: middle;
}

.user-role-admin .admin-users-table tbody td:last-child,
.user-role-admin .admin-submissions-table tbody td:last-child {
    border-right: 0;
}

.user-role-admin .admin-users-table tbody tr:nth-child(even) td,
.user-role-admin .admin-submissions-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.user-role-admin .admin-users-table tbody tr:hover td,
.user-role-admin .admin-submissions-table tbody tr:hover td {
    background: #eef4fb;
}

.user-role-admin .admin-users-table .table-user-cell strong,
.user-role-admin .admin-submissions-table .admin-submission-title-cell strong,
.user-role-admin .admin-submissions-table td > strong {
    color: #172033;
    font-size: 13.5px;
    font-weight: 750;
}

.user-role-admin .admin-users-table .table-user-cell span,
.user-role-admin .admin-submissions-table .admin-submission-title-cell span,
.user-role-admin .admin-submissions-table .admin-table-secondary-text {
    color: #718096;
    font-size: 12px;
}

.user-role-admin .admin-users-table .user-role-badge,
.user-role-admin .admin-users-table .account-status-badge,
.user-role-admin .admin-submissions-table .status-badge {
    font-size: 10.5px;
    line-height: 1.2;
}

.user-role-admin .admin-assignment-inline select {
    min-height: 38px;
    font-size: 12.5px;
}

.user-role-admin .admin-assignment-inline button,
.user-role-admin .table-edit-button,
.user-role-admin .table-delete-button {
    font-size: 12.5px;
}

.user-role-admin .admin-reviewer-display {
    font-size: 12.5px;
}

/* Dashboard/admin supporting text. */
.user-role-admin .dashboard-welcome-content p,
.user-role-admin .recent-panel-header p,
.user-role-admin .submission-metadata {
    font-size: 13.5px;
}

.user-role-admin .stat-card-title {
    font-size: 14px;
}

.user-role-admin .recent-submission-item h3 {
    font-size: 14px;
}

@media (max-width: 1050px) {
    .admin-user-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .admin-user-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-summary-card {
        min-height: 100px;
    }
}

/* =========================================================
   ADMIN USERS + ALL SUBMISSIONS — GUARANTEED TABLE CONTRAST FIX
   These selectors target the actual table classes directly so
   the appearance does not depend on a parent/body role selector.
   ========================================================= */
.admin-users-table,
.admin-submissions-table {
    border: 1px solid #b9c8da !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.06);
}

.admin-users-table thead th,
.admin-submissions-table thead th {
    padding: 14px 15px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.20) !important;
    border-bottom: 2px solid #14295a !important;
    color: #ffffff !important;
    background: #1e3a8a !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.045em !important;
    line-height: 1.35 !important;
    text-transform: uppercase !important;
    white-space: nowrap;
}

.admin-users-table thead th:first-child,
.admin-submissions-table thead th:first-child {
    border-top-left-radius: 8px;
}

.admin-users-table thead th:last-child,
.admin-submissions-table thead th:last-child {
    border-right: 0 !important;
    border-top-right-radius: 8px;
}

.admin-users-table tbody td,
.admin-submissions-table tbody td {
    padding: 15px !important;
    border-right: 1px solid #dbe4ee !important;
    border-bottom: 1px solid #d3deea !important;
    color: #2f3b4d !important;
    background: #ffffff !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    vertical-align: middle !important;
}

.admin-users-table tbody td:last-child,
.admin-submissions-table tbody td:last-child {
    border-right: 0 !important;
}

.admin-users-table tbody tr:nth-child(even) td,
.admin-submissions-table tbody tr:nth-child(even) td {
    background: #f4f7fb !important;
}

.admin-users-table tbody tr:hover td,
.admin-submissions-table tbody tr:hover td {
    background: #e9f1fb !important;
}

.admin-users-table .table-user-cell strong,
.admin-submissions-table .admin-submission-title-cell strong,
.admin-submissions-table td > strong {
    color: #172033 !important;
    font-size: 14px !important;
    font-weight: 750 !important;
}

.admin-users-table .table-user-cell span,
.admin-submissions-table .admin-submission-title-cell span,
.admin-submissions-table .admin-table-secondary-text {
    color: #66758a !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
}

.admin-users-table .table-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    font-size: 14px;
}

.admin-users-table .user-role-badge,
.admin-users-table .account-status-badge,
.admin-submissions-table .status-badge,
.admin-submissions-table .admin-document-method-badge,
.admin-submissions-table .review-assignment-badge {
    font-size: 11px !important;
    line-height: 1.2 !important;
}

.admin-submissions-table .admin-assignment-inline select {
    min-height: 40px !important;
    font-size: 13px !important;
}

.admin-submissions-table .admin-assignment-inline button,
.admin-users-table .table-edit-button,
.admin-users-table .table-delete-button,
.admin-submissions-table .table-edit-button {
    min-height: 36px;
    font-size: 12.5px !important;
}

/* Slightly stronger separation between the filters and the table. */
.admin-users-table,
.admin-submissions-table {
    margin-top: 2px;
}

/* The body class is restored too, so the admin-wide readability rules
   from the earlier patch now activate on all administrator pages. */
.user-role-admin .dashboard-content {
    font-size: 15px;
}


/* =========================================================
   REVIEWER — REVIEWED SUBMISSIONS
   Dashboard-style statistics + clean admin-inspired table.
   ========================================================= */
.reviewer-reviewed-page {
    --reviewed-navy: #1e3a8a;
    --reviewed-navy-dark: #172554;
    --reviewed-border: #d7e0ec;
    --reviewed-muted: #64748b;
}

.reviewer-reviewed-heading {
    align-items: flex-start;
}

.reviewer-reviewed-heading h1 {
    font-size: 30px;
    line-height: 1.2;
}

.reviewer-reviewed-heading .page-description {
    max-width: 710px;
    font-size: 14px;
    line-height: 1.6;
}

.reviewer-reviewed-queue-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    font-size: 13px;
}

.reviewer-reviewed-queue-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Uses the exact same stat-card system as Reviewer Dashboard. */
.reviewer-reviewed-dashboard-stats {
    margin: 22px 0 24px;
}

.reviewer-reviewed-dashboard-stats .stat-card {
    min-width: 0;
}

.reviewer-reviewed-panel {
    padding: 22px;
    overflow: visible;
    border: 1px solid #d3ddea;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.reviewer-reviewed-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.reviewer-reviewed-panel-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 18px;
    line-height: 1.3;
}

.reviewer-reviewed-panel-heading p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.reviewer-reviewed-record-count {
    flex: 0 0 auto;
    padding: 6px 11px;
    border: 1px solid #d7e0ec;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-size: 11.5px;
    font-weight: 750;
}

.reviewer-reviewed-filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(170px, 210px) auto auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #e0e7f0;
    border-radius: 13px;
    background: #f8fafc;
}

.reviewer-reviewed-filter-form label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.reviewer-reviewed-filter-form input,
.reviewer-reviewed-filter-form select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    color: #172033;
    background: #ffffff;
    font-size: 13.5px;
}

.reviewer-reviewed-filter-form input:focus,
.reviewer-reviewed-filter-form select:focus {
    border-color: #6b8fc2;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.09);
}

.reviewer-reviewed-search-input {
    position: relative;
}

.reviewer-reviewed-search-input svg {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    fill: none;
    stroke: #94a3b8;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.reviewer-reviewed-search-input input {
    padding-left: 38px;
}

.reviewer-reviewed-filter-form .filter-button,
.reviewer-reviewed-filter-form .clear-filter-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
}

/* Table shell owns the rounded corners; the table itself does not. */
.reviewer-reviewed-table-shell {
    width: 100%;
    overflow: hidden;
    border: 1px solid #cbd7e5;
    border-radius: 13px;
    background: #ffffff;
}

.reviewer-reviewed-table {
    width: 100%;
    margin: 0;
    table-layout: fixed;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0 !important;
    background: #ffffff;
    box-shadow: none !important;
}

.reviewer-reviewed-table .reviewed-col-submission {
    width: 34%;
}

.reviewer-reviewed-table .reviewed-col-submitter {
    width: 23%;
}

.reviewer-reviewed-table .reviewed-col-decision {
    width: 15%;
}

.reviewer-reviewed-table .reviewed-col-date {
    width: 16%;
}

.reviewer-reviewed-table .reviewed-col-action {
    width: 12%;
}

.reviewer-reviewed-table thead th {
    padding: 13px 12px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-bottom: 2px solid #172f61 !important;
    color: #ffffff !important;
    background: #1e3a8a !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.045em !important;
    line-height: 1.3 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: nowrap;
}

.reviewer-reviewed-table thead th:first-child,
.reviewer-reviewed-table thead th:last-child {
    border-radius: 0 !important;
}

.reviewer-reviewed-table thead th:last-child {
    border-right: 0 !important;
}

.reviewer-reviewed-table tbody td {
    padding: 15px 13px !important;
    border: 0 !important;
    border-right: 1px solid #e4eaf1 !important;
    border-bottom: 1px solid #dce4ee !important;
    color: #334155 !important;
    background: #ffffff !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    vertical-align: middle !important;
    overflow-wrap: anywhere;
}

.reviewer-reviewed-table tbody td:last-child {
    border-right: 0 !important;
}

.reviewer-reviewed-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.reviewer-reviewed-table tbody tr:hover td {
    background: #f7faff !important;
}

.reviewer-reviewed-submission-cell strong,
.reviewer-reviewed-submitter-cell strong,
.reviewer-reviewed-date-cell strong {
    display: block;
    color: #172033;
    font-size: 13.5px;
    font-weight: 750;
    line-height: 1.4;
}

.reviewer-reviewed-reference {
    display: block;
    margin-top: 5px;
    color: #365d93;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.35;
}

.reviewer-reviewed-document,
.reviewer-reviewed-submitter-cell span,
.reviewer-reviewed-date-cell span {
    display: block;
    margin-top: 3px;
    color: #718096;
    font-size: 11.8px;
    line-height: 1.4;
}

.reviewer-reviewed-document {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reviewer-reviewed-decision-cell,
.reviewer-reviewed-date-cell,
.reviewer-reviewed-action-cell {
    text-align: center;
}

.reviewer-reviewed-decision-cell .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 5px 9px;
    font-size: 10.5px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
}

.reviewer-reviewed-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 35px;
    padding: 8px 11px;
    border: 1px solid #1e3a8a;
    border-radius: 9px;
    color: #ffffff;
    background: #1e3a8a;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.reviewer-reviewed-view-button:hover {
    border-color: #172554;
    background: #172554;
}

.reviewer-reviewed-view-button svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reviewer-reviewed-empty-state {
    padding: 52px 24px 56px;
    border: 1px dashed #cbd7e5;
    border-radius: 13px;
    background: #fbfdff;
    text-align: center;
}

.reviewer-reviewed-empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #1e3a8a;
    background: #e8eef9;
}

.reviewer-reviewed-empty-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reviewer-reviewed-empty-state h3 {
    margin: 0;
    color: #172033;
    font-size: 16px;
}

.reviewer-reviewed-empty-state p {
    max-width: 430px;
    margin: 7px auto 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 1050px) {
    .reviewer-reviewed-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reviewer-reviewed-filter-form {
        grid-template-columns: minmax(240px, 1fr) minmax(160px, 200px) auto auto;
    }
}

@media (max-width: 820px) {
    .reviewer-reviewed-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .reviewer-reviewed-table-shell {
        overflow-x: auto;
    }

    .reviewer-reviewed-table {
        min-width: 760px;
    }
}

@media (max-width: 620px) {
    .reviewer-reviewed-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .reviewer-reviewed-panel {
        padding: 16px;
    }

    .reviewer-reviewed-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .reviewer-reviewed-filter-form {
        grid-template-columns: 1fr;
        padding: 14px;
    }
}

/* =========================================================
   REVIEWER — REVIEW QUEUE
   Dashboard-style statistics + clean admin-inspired queue table.
   ========================================================= */
.reviewer-queue-page {
    --queue-navy: #1e3a8a;
    --queue-navy-dark: #172554;
    --queue-border: #d7e0ec;
    --queue-muted: #64748b;
}

.reviewer-queue-heading {
    align-items: flex-start;
}

.reviewer-queue-heading h1 {
    font-size: 30px;
    line-height: 1.2;
}

.reviewer-queue-heading .page-description {
    max-width: 710px;
    font-size: 14px;
    line-height: 1.6;
}

.reviewer-queue-reviewed-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    font-size: 13px;
}

.reviewer-queue-reviewed-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reviewer-queue-dashboard-stats {
    margin: 22px 0 24px;
}

.reviewer-queue-dashboard-stats .stat-card {
    min-width: 0;
}

.reviewer-queue-panel {
    padding: 22px;
    overflow: visible;
    border: 1px solid #d3ddea;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.reviewer-queue-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.reviewer-queue-panel-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 18px;
    line-height: 1.3;
}

.reviewer-queue-panel-heading p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.reviewer-queue-record-count {
    flex: 0 0 auto;
    padding: 6px 11px;
    border: 1px solid #d7e0ec;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-size: 11.5px;
    font-weight: 750;
}

.reviewer-queue-filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px) auto auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #e0e7f0;
    border-radius: 13px;
    background: #f8fafc;
}

.reviewer-queue-filter-form label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.reviewer-queue-filter-form input,
.reviewer-queue-filter-form select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    color: #172033;
    background: #ffffff;
    font-size: 13.5px;
}

.reviewer-queue-filter-form input:focus,
.reviewer-queue-filter-form select:focus {
    border-color: #6b8fc2;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.09);
}

.reviewer-queue-search-input {
    position: relative;
}

.reviewer-queue-search-input svg {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    fill: none;
    stroke: #94a3b8;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.reviewer-queue-search-input input {
    padding-left: 38px;
}

.reviewer-queue-filter-form .filter-button,
.reviewer-queue-filter-form .clear-filter-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
}

.reviewer-queue-table-shell {
    width: 100%;
    overflow: hidden;
    border: 1px solid #cbd7e5;
    border-radius: 13px;
    background: #ffffff;
}

.reviewer-queue-table {
    width: 100%;
    margin: 0;
    table-layout: fixed;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0 !important;
    background: #ffffff;
    box-shadow: none !important;
}

.reviewer-queue-table .queue-col-submission {
    width: 29%;
}

.reviewer-queue-table .queue-col-submitter {
    width: 19%;
}

.reviewer-queue-table .queue-col-status {
    width: 12%;
}

.reviewer-queue-table .queue-col-assignment {
    width: 18%;
}

.reviewer-queue-table .queue-col-date {
    width: 12%;
}

.reviewer-queue-table .queue-col-action {
    width: 10%;
}

.reviewer-queue-table thead th {
    padding: 13px 10px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-bottom: 2px solid #172f61 !important;
    color: #ffffff !important;
    background: #1e3a8a !important;
    font-size: 11.8px !important;
    font-weight: 800 !important;
    letter-spacing: 0.045em !important;
    line-height: 1.3 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: nowrap;
}

.reviewer-queue-table thead th:first-child,
.reviewer-queue-table thead th:last-child {
    border-radius: 0 !important;
}

.reviewer-queue-table thead th:last-child {
    border-right: 0 !important;
}

.reviewer-queue-table tbody td {
    padding: 14px 12px !important;
    border: 0 !important;
    border-right: 1px solid #e4eaf1 !important;
    border-bottom: 1px solid #dce4ee !important;
    color: #334155 !important;
    background: #ffffff !important;
    font-size: 13.2px !important;
    line-height: 1.45 !important;
    vertical-align: middle !important;
    overflow-wrap: anywhere;
}

.reviewer-queue-table tbody td:last-child {
    border-right: 0 !important;
}

.reviewer-queue-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.reviewer-queue-table tbody tr:hover td {
    background: #f7faff !important;
}

.reviewer-queue-submission-cell strong,
.reviewer-queue-submitter-cell strong,
.reviewer-queue-date-cell strong {
    display: block;
    color: #172033;
    font-size: 13.3px;
    font-weight: 750;
    line-height: 1.4;
}

.reviewer-queue-reference {
    display: block;
    margin-top: 4px;
    color: #365d93;
    font-size: 11.4px;
    font-weight: 750;
    line-height: 1.35;
}

.reviewer-queue-document,
.reviewer-queue-submitter-cell span,
.reviewer-queue-date-cell span,
.reviewer-queue-assignee-name {
    display: block;
    margin-top: 3px;
    color: #718096;
    font-size: 11.6px;
    line-height: 1.4;
}

.reviewer-queue-document {
    max-width: 100%;
}

.reviewer-queue-status-cell,
.reviewer-queue-assignment-cell,
.reviewer-queue-date-cell,
.reviewer-queue-action-cell {
    text-align: center;
}

.reviewer-queue-status-cell .status-badge,
.reviewer-queue-assignment-cell .review-assignment-badge {
    max-width: 100%;
    font-size: 10.5px;
    line-height: 1.25;
    white-space: normal;
}

.reviewer-queue-assignment-cell .review-assignment-badge {
    display: inline-flex;
    justify-content: center;
    text-align: center;
}

.reviewer-queue-assignee-name {
    margin-top: 5px;
    text-align: center;
}

.reviewer-queue-action-cell form {
    margin: 0;
}

.reviewer-queue-action-button {
    width: 100%;
    min-height: 36px;
    padding: 8px 9px;
    border-radius: 9px;
    font-size: 11.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.reviewer-queue-action-button[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.reviewer-queue-empty-state {
    padding: 54px 24px;
    text-align: center;
}

.reviewer-queue-empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #315a9b;
    background: #e9f0fb;
}

.reviewer-queue-empty-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reviewer-queue-empty-state h3 {
    margin: 0;
    color: #172033;
    font-size: 16px;
}

.reviewer-queue-empty-state p {
    max-width: 430px;
    margin: 8px auto 0;
    color: #718096;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .reviewer-queue-table-shell {
        overflow-x: auto;
    }

    .reviewer-queue-table {
        min-width: 900px;
    }
}

@media (max-width: 900px) {
    .reviewer-queue-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .reviewer-queue-filter-form .filter-button,
    .reviewer-queue-filter-form .clear-filter-link {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .reviewer-queue-heading,
    .reviewer-queue-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .reviewer-queue-filter-form {
        grid-template-columns: 1fr;
    }

    .reviewer-queue-panel {
        padding: 16px;
    }
}

/* =========================================================
   REVIEWER — REVIEW SUBMISSION DETAIL
   Clearer information hierarchy and decision workflow.
   ========================================================= */
.review-detail-page {
    --review-navy: #1e3a8a;
    --review-navy-dark: #172554;
    --review-border: #d7e0eb;
    --review-muted: #64748b;
    --review-soft: #f7f9fc;
}

.review-detail-page .page-heading-row {
    margin-bottom: 18px;
}

.review-detail-page .page-heading-row h1 {
    font-size: 28px;
    line-height: 1.22;
}

.review-detail-page .page-description {
    max-width: 700px;
    font-size: 13.5px;
    line-height: 1.6;
}

.review-detail-page .submission-heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.review-overview-card {
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--review-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.review-overview-heading {
    padding: 17px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #e4eaf1;
    background: linear-gradient(135deg, #f8fafc 0%, #f3f6fb 100%);
}

.review-section-title-group {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.review-section-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--review-navy);
    background: #e9eff9;
}

.review-section-icon svg,
.review-decision-section-icon svg,
.review-action-grid button svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.review-section-icon svg {
    width: 20px;
    height: 20px;
}

.review-section-kicker {
    margin: 0 0 3px;
    color: #56719a;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.review-section-title-group h2,
.review-overview-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.review-section-title-group p:not(.review-section-kicker),
.review-overview-heading p:not(.review-section-kicker) {
    margin: 4px 0 0;
    color: var(--review-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.review-overview-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.review-overview-item {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #e1e7ef;
    border-radius: 12px;
    background: #fbfcfe;
}

.review-overview-item .review-overview-label {
    display: block;
    margin-bottom: 6px;
    color: #718096;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.review-overview-item strong {
    display: block;
    color: #172033;
    font-size: 13.5px;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.review-overview-item > span:last-child {
    display: block;
    margin-top: 4px;
    color: #68778b;
    font-size: 11.8px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.review-detail-page .review-workspace-grid {
    grid-template-columns: minmax(0, 1.48fr) minmax(390px, 0.72fr);
    gap: 20px;
}

.review-detail-page .review-document-panel,
.review-detail-page .submission-detail-card {
    border-color: var(--review-border);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.review-detail-page .review-document-panel {
    padding: 20px;
}

.review-panel-heading-enhanced {
    margin: -2px -2px 18px;
    padding: 0 0 16px;
    align-items: center;
    border-bottom: 1px solid #e5eaf1;
}

.review-panel-heading-enhanced .review-section-title-group h2 {
    font-size: 18px;
}

.review-section-description {
    max-width: 630px;
}

.review-detail-page .review-assignment-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: 10px;
}

.review-detail-page .review-document-file-panel {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5eaf1;
}

.review-detail-page .document-management-header.compact h3 {
    font-size: 15px;
}

.review-detail-page .document-management-header.compact p {
    font-size: 12.5px;
    line-height: 1.55;
}

.review-detail-page .managed-file-card {
    border-color: #dde5ef;
    border-radius: 12px;
    background: #fbfcfe;
}

.review-detail-page .managed-file-name {
    font-size: 13px;
}

.review-detail-page .managed-file-meta {
    font-size: 11.5px;
}

.review-detail-page .review-control-column {
    gap: 18px;
}

.review-decision-card {
    padding: 0 !important;
    overflow: hidden;
}

.review-decision-card-header {
    margin: 0 !important;
    padding: 18px 19px;
    background: linear-gradient(135deg, var(--review-navy-dark), var(--review-navy));
}

.review-decision-card-header .review-section-icon.decision {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.review-decision-card-header .review-section-kicker {
    color: #cbd9f1;
}

.review-decision-card-header h2 {
    color: #ffffff !important;
    font-size: 18px;
}

.review-decision-card-header .review-section-title-group p:not(.review-section-kicker) {
    color: #dce6f6;
    font-size: 12.3px;
}

.review-decision-form {
    padding: 17px;
    display: grid;
    gap: 13px;
}

.review-decision-section {
    padding: 14px;
    border: 1px solid #dce4ee;
    border-radius: 13px;
    background: #ffffff;
}

.review-decision-section-heading {
    margin-bottom: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.review-decision-section-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #315a9b;
    background: #edf2f9;
}

.review-decision-section-icon svg {
    width: 16px;
    height: 16px;
}

.review-decision-section-heading h3 {
    margin: 0;
    color: #172033;
    font-size: 13.5px;
    font-weight: 800;
}

.review-decision-section-heading p {
    margin: 3px 0 0;
    color: #718096;
    font-size: 11.5px;
    line-height: 1.45;
}

.review-detail-page .review-decision-section .system-field label,
.review-detail-page .reviewer-file-upload-control label {
    margin-bottom: 7px;
    color: #41536b;
    font-size: 12.5px;
    font-weight: 750;
}

.review-detail-page .review-decision-section .system-field input,
.review-detail-page .review-decision-section .system-field textarea,
.review-detail-page .reviewer-file-upload-control input[type="file"] {
    font-size: 13px;
}

.review-detail-page .review-decision-section .system-field small,
.review-detail-page .reviewer-file-upload-help {
    color: #718096;
    font-size: 11.5px;
    line-height: 1.5;
}

.review-detail-page .review-feedback-label-row span {
    font-size: 10.5px;
}

.review-detail-page #comments {
    min-height: 145px;
    resize: vertical;
    line-height: 1.55;
}

.review-detail-page .reviewer-reference-input-group {
    border-radius: 10px;
}

.review-detail-page .reviewer-reference-input-group span {
    font-size: 12.5px;
}

.review-detail-page .reviewer-reference-input-group input {
    font-size: 13px;
}

.review-detail-page .reviewer-file-upload-panel {
    margin: 0;
    padding: 13px;
    border: 1px solid #e0e7f0;
    border-radius: 11px;
    background: #f8fafc;
}

.review-detail-page .reviewer-file-upload-heading {
    margin-bottom: 12px;
    align-items: center;
}

.review-detail-page .reviewer-file-upload-heading p,
.review-detail-page .reviewer-file-upload-help {
    font-size: 11.7px;
}

.review-detail-page .reviewer-latest-file {
    padding: 11px 12px;
    border-radius: 10px;
}

.review-detail-page .reviewer-latest-file strong {
    font-size: 12.5px;
}

.review-detail-page .reviewer-latest-file span,
.review-detail-page .reviewer-file-selected-name {
    font-size: 11.5px;
}

.review-detail-page .reviewer-file-upload-control input[type="file"] {
    padding: 9px;
    border-radius: 9px;
}

.review-detail-page .outcome-section {
    background: #fbfcfe;
}

.review-detail-page .review-decision-notice {
    margin-top: 0;
    padding: 11px 12px;
    border-radius: 10px;
    background: #f1f5fb;
}

.review-detail-page .review-decision-notice strong {
    color: #234a7e;
    font-size: 11.5px;
}

.review-detail-page .review-decision-notice span {
    font-size: 11.5px;
}

.review-detail-page .review-action-grid {
    margin-top: 11px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.review-detail-page .review-action-grid button {
    min-height: 40px;
    padding: 9px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.2;
}

.review-detail-page .review-action-grid button svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.review-detail-page .review-action-grid button:nth-child(1),
.review-detail-page .review-action-grid button:nth-child(2) {
    grid-column: 1 / -1;
}

.review-detail-page .review-action-grid .secondary-action-button {
    border: 1px solid #cbd7e5;
    background: #ffffff;
}

.review-history-card {
    padding: 18px !important;
}

.review-history-card-header {
    margin-bottom: 14px !important;
    padding-bottom: 14px;
    align-items: center;
    border-bottom: 1px solid #e5eaf1;
}

.review-history-card-header .review-section-icon.history {
    color: #5b4da0;
    background: #f0edff;
}

.review-history-card-header .item-count-badge {
    flex: 0 0 auto;
}

.review-detail-page .review-history-list {
    gap: 10px;
}

.review-detail-page .review-history-item {
    padding: 12px 13px;
    border: 1px solid #e0e7ef;
    border-radius: 11px;
    background: #fbfcfe;
}

.review-detail-page .review-history-item > div:first-child strong {
    color: #172033;
    font-size: 12.5px;
}

.review-detail-page .review-history-item > div:first-child span,
.review-detail-page .review-history-item p {
    font-size: 11.5px;
    line-height: 1.5;
}

.review-detail-page .review-history-file {
    border-radius: 9px;
}

@media (max-width: 1180px) {
    .review-detail-page .review-workspace-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
    }

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

@media (max-width: 960px) {
    .review-detail-page .review-workspace-grid {
        grid-template-columns: 1fr;
    }

    .review-detail-page .review-control-column {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .review-overview-heading,
    .review-panel-heading-enhanced,
    .review-history-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-overview-grid {
        grid-template-columns: 1fr;
    }

    .review-detail-page .submission-heading-actions {
        align-items: stretch;
        width: 100%;
    }

    .review-detail-page .submission-heading-actions a {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .review-detail-page .review-document-panel,
    .review-history-card {
        padding: 15px !important;
    }

    .review-decision-form {
        padding: 13px;
    }

    .review-decision-section {
        padding: 12px;
    }

    .review-detail-page .review-action-grid {
        grid-template-columns: 1fr;
    }

    .review-detail-page .review-action-grid button:nth-child(1),
    .review-detail-page .review-action-grid button:nth-child(2) {
        grid-column: auto;
    }
}

/* =========================================================
   SUBMITTER — DOCUMENT CONTENT COMPACT SCROLL PREVIEW
   Keeps long generated/previewed documents from stretching the page.
   ========================================================= */
.submitter-document-content-scroll {
    max-height: 620px;
    margin-top: 20px;
    overflow-x: auto;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

.submitter-document-content-scroll .basic-document-preview {
    min-height: 0;
    margin-top: 0;
}

.submitter-document-content-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.submitter-document-content-scroll::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #eef2f7;
}

.submitter-document-content-scroll::-webkit-scrollbar-thumb {
    border: 2px solid #eef2f7;
    border-radius: 999px;
    background: #94a3b8;
}

.submitter-document-content-scroll::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Uploaded PDF/Word preview already scrolls inside its iframe.
   Reduce the viewport height so Document Content remains compact. */
.submitter-main-document-compact-preview {
    margin-top: 20px;
}

.submitter-main-document-compact-preview .uploaded-main-document-frame-wrap {
    min-height: 0;
}

.submitter-main-document-compact-preview .uploaded-main-document-frame {
    height: 560px;
}

@media (max-width: 780px) {
    .submitter-document-content-scroll {
        max-height: 500px;
    }

    .submitter-main-document-compact-preview .uploaded-main-document-frame {
        height: 480px;
    }
}

/* SMART TEMPLATE — LAMPIRAN 1 12-HOUR TIME PICKER */
.atur-cara-time-picker {
    width: 100%;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1.15fr)
        minmax(0, 1.2fr);
    gap: 6px;
    align-items: center;
}

.atur-cara-time-picker select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    box-sizing: border-box;
    padding: 8px 5px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    cursor: pointer;
}

.atur-cara-time-picker select:focus {
    border-color: #6f86b3;
    box-shadow:
        0 0 0 3px rgba(49, 90, 155, 0.10);
}

/* =========================================================
   REVIEWER — CLEAN DOCUMENT-FIRST REVIEW WORKSPACE
   ========================================================= */
.review-detail-page .reviewer-review-heading {
    margin-bottom: 18px;
    padding: 18px 20px;
    align-items: flex-start;
    border: 1px solid #dbe3ed;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.reviewer-review-heading-main {
    min-width: 0;
    flex: 1 1 auto;
}

.reviewer-review-heading-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.reviewer-review-heading-topline .page-eyebrow {
    margin: 0;
}

.reviewer-review-heading-topline .status-badge {
    margin-left: 2px;
}

.review-detail-page .reviewer-review-heading h1 {
    margin-bottom: 11px;
    font-size: 25px;
}

.review-compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.review-compact-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.review-compact-meta strong {
    margin-right: 5px;
    color: #334155;
    font-weight: 800;
}

.review-detail-page .reviewer-review-heading-actions {
    max-width: 330px;
    gap: 8px;
}

.review-detail-page .reviewer-clean-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(340px, 0.72fr);
    gap: 18px;
    align-items: start;
}

.review-detail-page .reviewer-document-card {
    min-width: 0;
    padding: 18px;
}

.review-detail-page .reviewer-document-heading {
    margin-bottom: 14px;
    padding-bottom: 14px;
}

.review-document-toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.reviewer-document-mode-toggle {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 11.5px;
}

.reviewer-document-preview-shell {
    min-width: 0;
}

.reviewer-upload-document-preview .uploaded-main-document-frame-wrap {
    min-height: 0;
}

.reviewer-upload-document-preview .uploaded-main-document-frame {
    height: 680px;
}

/* =========================================================
   REVIEWER — MANUAL EDITOR MATCHED DOCUMENT CANVAS
   Mirrors submitter/submission_form.php TinyMCE presentation:
   Letter portrait pages on a grey Word-like canvas.
   ========================================================= */
.reviewer-manual-editor-preview-viewport {
    width: 100%;
    max-width: 100%;
    max-height: 740px;
    padding: 24px 18px 40px;
    overflow: auto;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #e9eef5;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    scrollbar-gutter: stable both-edges;
    overscroll-behavior: contain;
}

.reviewer-manual-editor-preview-document {
    width: max-content;
    min-width: 8.5in;
    margin: 0 auto;
    color: #000000;
    font-family:
        'Century Gothic',
        CenturyGothic,
        Arial,
        sans-serif;
    font-size: 12pt;
    line-height: 16pt;
}

.reviewer-manual-editor-preview-document .sapms-approval-cover,
.reviewer-manual-editor-preview-document .sapms-smart-template-document {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 24px !important;
    background: #ffffff !important;
    box-shadow:
        0 0 0 1px #cfd8e3,
        0 8px 24px rgba(15, 23, 42, 0.10);
}

.reviewer-manual-editor-preview-document .sapms-atur-cara-appendix,
.reviewer-manual-editor-preview-document .sapms-jawatankuasa-appendix,
.reviewer-manual-editor-preview-document .sapms-peserta-appendix {
    display: block !important;
    width: 8.5in !important;
    max-width: 8.5in !important;
    min-height: 11in !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 24px !important;
    padding: 1in !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    font-family:
        'Century Gothic',
        CenturyGothic,
        Arial,
        sans-serif !important;
    box-shadow:
        0 0 0 1px #cfd8e3,
        0 8px 24px rgba(15, 23, 42, 0.10);
}

.reviewer-manual-editor-preview-document img,
.reviewer-manual-editor-single-page img {
    max-width: 100%;
}

.reviewer-manual-editor-preview-document table,
.reviewer-manual-editor-single-page table {
    border-collapse: collapse;
}

/* Older/free-form Manual Editor content without official page wrappers. */
.reviewer-manual-editor-single-page {
    width: 8.5in;
    min-height: 11in;
    margin: 0 auto 24px;
    padding: 1in;
    box-sizing: border-box;
    color: #000000;
    background: #ffffff;
    font-family:
        'Century Gothic',
        CenturyGothic,
        Arial,
        sans-serif;
    font-size: 12pt;
    line-height: 16pt;
    box-shadow:
        0 0 0 1px #cfd8e3,
        0 8px 24px rgba(15, 23, 42, 0.10);
}

.reviewer-manual-editor-preview-viewport::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.reviewer-manual-editor-preview-viewport::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #dfe6ef;
}

.reviewer-manual-editor-preview-viewport::-webkit-scrollbar-thumb {
    border: 2px solid #dfe6ef;
    border-radius: 999px;
    background: #94a3b8;
}

.reviewer-manual-editor-preview-viewport::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

#review-document-edit-mode[hidden],
#review-document-preview-mode[hidden] {
    display: none !important;
}

.review-detail-page #review-document-edit-mode .tox-tinymce {
    border-radius: 12px;
    border-color: #cfd8e5;
}

.review-detail-page .review-control-column {
    position: sticky;
    top: 88px;
    align-self: start;
    gap: 0;
}

.review-detail-page .review-decision-card {
    border-radius: 16px;
    background: #ffffff;
}

.review-detail-page .review-decision-card-header {
    margin: 0 !important;
    padding: 16px 17px;
    border-bottom: 1px solid #e5eaf1;
    background: #f8fafc;
}

.review-detail-page .review-decision-card-header .review-section-icon.decision {
    color: #1e3a8a;
    background: #e8eef8;
}

.review-detail-page .review-decision-card-header .review-section-kicker {
    color: #5d7190;
}

.review-detail-page .review-decision-card-header h2 {
    color: #172033 !important;
    font-size: 17px;
}

.review-detail-page .review-decision-card-header .review-section-title-group p:not(.review-section-kicker) {
    color: #64748b;
    font-size: 11.8px;
}

.review-detail-page .review-decision-form {
    padding: 14px;
    gap: 10px;
}

.review-detail-page .review-decision-section {
    padding: 13px;
    border-radius: 12px;
    background: #ffffff;
}

.review-step-number {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #ffffff;
    background: #315a9b;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.review-detail-page .review-decision-section-heading {
    margin-bottom: 11px;
    gap: 9px;
}

.review-detail-page .review-decision-section-heading h3 {
    font-size: 13px;
}

.review-detail-page .review-decision-section-heading p {
    font-size: 11.2px;
}

.review-detail-page #comments {
    min-height: 170px;
}

.review-detail-page .reviewer-file-upload-panel {
    padding: 11px;
}

.review-detail-page .reviewer-file-upload-heading {
    align-items: flex-start;
    gap: 8px;
}

.review-detail-page .reviewer-file-upload-heading .managed-file-category {
    flex: 0 0 auto;
}

.review-detail-page .outcome-section {
    background: #f8fafc;
}

.review-detail-page .review-action-grid {
    gap: 8px;
}

.review-detail-page .review-action-grid button {
    min-height: 42px;
    font-size: 12px;
    font-weight: 750;
}

.review-detail-page .review-below-workspace-files,
.review-detail-page .review-below-workspace-history {
    margin-top: 18px;
}

.review-detail-page .review-below-workspace-files {
    padding: 18px;
}

.review-detail-page .review-below-workspace-files .document-management-header.compact {
    margin-bottom: 14px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e5eaf1;
}

.review-detail-page .review-below-workspace-history {
    padding: 18px !important;
}

@media (max-width: 1120px) {
    .review-detail-page .reviewer-clean-workspace {
        grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
    }
}

@media (max-width: 940px) {
    .review-detail-page .reviewer-clean-workspace {
        grid-template-columns: 1fr;
    }

    .review-detail-page .review-control-column {
        position: static;
        top: auto;
    }

    .review-detail-page .reviewer-review-heading {
        flex-direction: column;
    }

    .review-detail-page .reviewer-review-heading-actions {
        max-width: none;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .review-detail-page .reviewer-review-heading {
        padding: 15px;
    }

    .reviewer-review-heading-topline,
    .review-detail-page .reviewer-document-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-document-toolbar {
        width: 100%;
        justify-content: flex-start;
    }

    .reviewer-manual-editor-preview-viewport {
        max-height: 600px;
        padding: 16px 12px 28px;
    }

    .reviewer-upload-document-preview .uploaded-main-document-frame {
        height: 520px;
    }
}


/* =========================================================
   REVIEWER — SIMPLE ACTION FOOTER
   ========================================================= */
.review-detail-page .review-action-footer {
    margin-top: 2px;
    padding: 15px 0 0;
    border-top: 1px solid #e2e8f0;
}

.review-detail-page .review-action-footer .review-action-grid {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.review-detail-page .review-action-footer .review-action-grid button {
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
}

.review-detail-page .review-action-footer .review-action-grid button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.review-detail-page .review-action-footer .review-action-grid button:nth-child(1),
.review-detail-page .review-action-footer .review-action-grid button:nth-child(2) {
    grid-column: 1 / -1;
}

.review-detail-page .review-action-footer .secondary-action-button {
    border: 1px solid #cbd7e5;
    background: #ffffff;
}

@media (max-width: 520px) {
    .review-detail-page .review-action-footer .review-action-grid {
        grid-template-columns: 1fr;
    }

    .review-detail-page .review-action-footer .review-action-grid button {
        grid-column: 1 / -1;
    }
}

/* REVIEWER — MATCHED SUBMISSION FILES / REVIEW HISTORY HEADERS */
.review-detail-page .reviewer-section-card-header {
    margin-bottom: 14px !important;
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #e5eaf1;
}

.review-history-card-header .review-section-title-group h3,
.review-detail-page .review-below-workspace-files .review-section-title-group h3 {
    margin: 0;
    color: #172033;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.review-detail-page .review-below-workspace-files .review-section-icon.files {
    color: #315a9b;
    background: #eaf1fb;
}

.review-detail-page .reviewer-section-card-header .item-count-badge {
    flex: 0 0 auto;
}

@media (max-width: 700px) {
    .review-detail-page .reviewer-section-card-header {
        align-items: center;
        flex-direction: row;
    }
}

/* REVIEWER — KEEP REVIEW NATURAL HEIGHT / STRETCH DOCUMENT TO MATCH */
@media (min-width: 941px) {
    .review-detail-page .reviewer-clean-workspace {
        align-items: stretch;
    }

    /* Keep the Review column/card at its original natural content height. */
    .review-detail-page .review-control-column {
        align-self: start;
    }

    .review-detail-page .review-decision-card {
        height: auto;
        overflow: hidden;
    }

    .review-detail-page .review-decision-form {
        overflow: visible;
    }

    /* Only Document Content stretches to the grid row established by Review. */
    .review-detail-page .reviewer-document-card {
        min-height: 0;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-sizing: border-box;
    }

    .review-detail-page .reviewer-document-preview-shell {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .review-detail-page #review-document-preview-mode {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .review-detail-page .reviewer-manual-editor-preview-viewport {
        flex: 1 1 0;
        min-height: 0;
        max-height: none;
        box-sizing: border-box;
        overflow: auto;
    }

    .review-detail-page .reviewer-upload-document-preview,
    .review-detail-page .reviewer-upload-document-preview .uploaded-main-document-frame-wrap {
        flex: 1 1 0;
        min-height: 0;
        height: auto;
    }

    .review-detail-page .reviewer-upload-document-preview .uploaded-main-document-frame {
        width: 100%;
        height: 100%;
        min-height: 0;
    }
}


/* REVIEWER — ORGANIZED HEADER ACTION BUTTONS */
.review-detail-page .reviewer-review-heading-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    max-width: none;
}

.review-detail-page .reviewer-top-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    white-space: nowrap;
}

.review-detail-page .reviewer-top-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.review-detail-page .reviewer-top-action-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 760px) {
    .review-detail-page .reviewer-review-heading-actions {
        width: 100%;
        justify-content: stretch;
    }

    .review-detail-page .reviewer-top-action {
        flex: 1 1 100%;
    }
}

/* =========================================================
   REVIEWER — MATCH SUBMITTER MANUAL EDITOR DOCUMENT CONTENT
   The reviewer uses the same form-card treatment and the same
   TinyMCE Letter-page canvas as submitter/submission_form.php.
   ========================================================= */
.review-detail-page .reviewer-manual-editor-card {
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.06);
}

.review-detail-page .reviewer-manual-editor-field-header {
    margin-bottom: 7px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.review-detail-page .reviewer-manual-editor-field-copy {
    min-width: 0;
}

.review-detail-page .reviewer-manual-editor-field-label {
    display: block;
    margin: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.review-detail-page .reviewer-manual-editor-field-note {
    display: block;
    max-width: 660px;
    margin-top: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
}

.review-detail-page .reviewer-manual-editor-readonly-mode,
.review-detail-page #review-document-edit-mode {
    min-width: 0;
}

/* Before TinyMCE replaces the textarea, keep the field sized like the editor. */
.review-detail-page .reviewer-manual-editor-preview-source {
    width: 100%;
    min-height: 680px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #e9eef5;
}

/* Exactly match the Manual Editor shell in submitter/submission_form.php. */
.review-detail-page #review-document-preview-mode .tox.tox-tinymce,
.review-detail-page #review-document-edit-mode .tox.tox-tinymce {
    width: 100%;
    max-width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.05);
}

.review-detail-page #review-document-preview-mode .tox .tox-editor-header,
.review-detail-page #review-document-edit-mode .tox .tox-editor-header {
    box-shadow:
        0 1px 0 #e2e8f0 !important;
}

.review-detail-page #review-document-preview-mode .tox-edit-area,
.review-detail-page #review-document-edit-mode .tox-edit-area {
    background: #e9eef5;
}

@media (max-width: 700px) {
    .review-detail-page .reviewer-manual-editor-field-header {
        flex-direction: column;
        align-items: stretch;
    }

    .review-detail-page .review-document-toolbar {
        justify-content: flex-start;
    }
}


/* =========================================================
   REVIEWER — LARGER / CLEANER DOCUMENT CONTENT WORKSPACE
   Gives the Letter-size document enough breathing room on
   common laptop/desktop widths without squeezing the Review
   form into an unusably narrow side column.
   ========================================================= */
.review-detail-page .reviewer-clean-workspace {
    grid-template-columns: minmax(0, 2.05fr) minmax(320px, 0.72fr);
    gap: 22px;
}

.review-detail-page .reviewer-manual-editor-card {
    width: 100%;
    min-width: 0;
    padding: 24px;
}

.review-detail-page .reviewer-document-preview-shell,
.review-detail-page .reviewer-manual-editor-readonly-mode,
.review-detail-page #review-document-preview-mode,
.review-detail-page #review-document-edit-mode {
    width: 100%;
    min-width: 0;
}

/* A slightly taller editor makes the document area feel like a real
   working canvas instead of a small embedded field. */
.review-detail-page #review-document-preview-mode .tox.tox-tinymce,
.review-detail-page #review-document-edit-mode .tox.tox-tinymce {
    width: 100%;
    min-height: 760px;
    height: clamp(760px, 74vh, 900px) !important;
}

.review-detail-page .reviewer-manual-editor-field-header {
    margin-bottom: 12px;
    align-items: center;
}

.review-detail-page .reviewer-manual-editor-field-label {
    color: #334155;
    font-size: 14px;
    font-weight: 800;
}

.review-detail-page .reviewer-manual-editor-field-note {
    max-width: 780px;
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.55;
}

/*
 * Keep the reviewer workspace side-by-side on normal desktop widths.
 * Below 1200px, give the document the full row and place a comfortably
 * sized Review card below it instead.
 */
@media (max-width: 1200px) {
    .review-detail-page .reviewer-clean-workspace {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }

    .review-detail-page .reviewer-document-card {
        width: 100%;
        align-self: auto;
    }

    .review-detail-page .review-control-column {
        position: static;
        top: auto;
        width: min(100%, 920px);
        justify-self: center;
        align-self: start;
    }
}

@media (max-width: 940px) {
    .review-detail-page .review-control-column {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 700px) {
    .review-detail-page .reviewer-manual-editor-card {
        padding: 16px;
        border-radius: 18px;
    }

    .review-detail-page #review-document-preview-mode .tox.tox-tinymce,
    .review-detail-page #review-document-edit-mode .tox.tox-tinymce {
        min-height: 620px;
        height: 620px !important;
    }

    .review-detail-page .reviewer-manual-editor-field-label {
        font-size: 13px;
    }
}

/* =========================================================
   REVIEWER — TALLER UPLOAD DOCUMENT PREVIEW
   Fixes Upload Document reviews where the converted PDF iframe
   occupies only a short strip at the top of a much taller card.
   ========================================================= */
.review-detail-page .reviewer-document-card {
    min-height: 820px;
}

.review-detail-page .reviewer-document-preview-shell {
    flex: 1 1 auto;
    min-height: 0;
}

.review-detail-page .reviewer-upload-document-preview {
    width: 100%;
    min-height: 720px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
}

.review-detail-page .reviewer-upload-document-preview .uploaded-main-document-toolbar {
    flex: 0 0 auto;
}

.review-detail-page .reviewer-upload-document-preview .uploaded-main-document-frame-wrap {
    min-height: 650px;
    height: clamp(650px, 72vh, 900px);
    display: flex;
    flex: 1 1 auto;
    overflow: hidden;
    background: #e5e7eb;
}

.review-detail-page .reviewer-upload-document-preview .uploaded-main-document-frame {
    width: 100%;
    min-height: 650px;
    height: 100% !important;
    flex: 1 1 auto;
    border: 0;
}

/* On taller desktop layouts, let the document preview use more of the
   available vertical workspace while keeping the review column readable. */
@media (min-width: 941px) {
    .review-detail-page .reviewer-document-card {
        min-height: clamp(820px, 82vh, 1040px);
    }

    .review-detail-page .reviewer-upload-document-preview {
        min-height: 720px;
    }

    .review-detail-page .reviewer-upload-document-preview .uploaded-main-document-frame-wrap {
        min-height: 680px;
        height: clamp(680px, 74vh, 940px);
    }

    .review-detail-page .reviewer-upload-document-preview .uploaded-main-document-frame {
        min-height: 680px;
    }
}

@media (max-width: 940px) {
    .review-detail-page .reviewer-document-card {
        min-height: 0;
    }

    .review-detail-page .reviewer-upload-document-preview {
        min-height: 620px;
    }

    .review-detail-page .reviewer-upload-document-preview .uploaded-main-document-frame-wrap,
    .review-detail-page .reviewer-upload-document-preview .uploaded-main-document-frame {
        min-height: 580px;
        height: 580px !important;
    }
}

@media (max-width: 700px) {
    .review-detail-page .reviewer-upload-document-preview {
        min-height: 520px;
    }

    .review-detail-page .reviewer-upload-document-preview .uploaded-main-document-frame-wrap,
    .review-detail-page .reviewer-upload-document-preview .uploaded-main-document-frame {
        min-height: 500px;
        height: 500px !important;
    }
}


/* =========================================================
   REVIEWER — CLEAN UPLOADED DOCUMENT IDENTITY HEADER
   Replaces the large text-only DOCX tile with a real document
   symbol plus a compact file-type badge. Reviewer only.
   ========================================================= */
.review-detail-page
.reviewer-upload-document-preview
.uploaded-main-document-preview-reviewer-clean {
    border-color: #d7e1ed;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.045);
}

.review-detail-page
.reviewer-upload-document-preview
.uploaded-main-document-preview-reviewer-clean
.uploaded-main-document-toolbar {
    min-height: 78px;
    padding: 14px 16px;
    gap: 16px;
    border-bottom-color: #dce5ef;
    background: #ffffff;
}

.review-detail-page
.reviewer-upload-document-preview
.uploaded-main-document-preview-reviewer-clean
.uploaded-main-document-identity {
    min-width: 0;
    gap: 12px;
}

.review-detail-page .uploaded-main-document-file-symbol {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5e3f2;
    border-radius: 12px;
    color: #315a9b;
    background:
        linear-gradient(145deg, #f7fbff, #e8f1fb);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.review-detail-page .uploaded-main-document-file-symbol svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.review-detail-page .uploaded-main-document-file-symbol.pdf {
    border-color: #f2d6d8;
    color: #b4232c;
    background:
        linear-gradient(145deg, #fffafa, #fdebec);
}

.review-detail-page .uploaded-main-document-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.review-detail-page .uploaded-main-document-name-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-detail-page
.uploaded-main-document-name-row
strong {
    min-width: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-detail-page .uploaded-main-document-type-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 7px;
    border: 1px solid #d5e3f2;
    border-radius: 999px;
    color: #315a9b;
    background: #eef5fc;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.045em;
}

.review-detail-page .uploaded-main-document-type-badge.pdf {
    border-color: #f2d6d8;
    color: #b4232c;
    background: #fff1f2;
}

.review-detail-page .uploaded-main-document-meta {
    margin-top: 0 !important;
    overflow: hidden;
    color: #64748b !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-detail-page
.reviewer-upload-document-preview
.uploaded-main-document-preview-reviewer-clean
.uploaded-main-document-actions {
    gap: 8px;
}

.review-detail-page
.reviewer-upload-document-preview
.uploaded-main-document-preview-reviewer-clean
.managed-file-button {
    min-height: 38px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

@media (max-width: 780px) {
    .review-detail-page
    .reviewer-upload-document-preview
    .uploaded-main-document-preview-reviewer-clean
    .uploaded-main-document-toolbar {
        min-height: 0;
        padding: 13px;
        gap: 12px;
    }

    .review-detail-page
    .reviewer-upload-document-preview
    .uploaded-main-document-preview-reviewer-clean
    .uploaded-main-document-actions {
        width: 100%;
    }

    .review-detail-page
    .reviewer-upload-document-preview
    .uploaded-main-document-preview-reviewer-clean
    .managed-file-button {
        flex: 1 1 150px;
    }
}

@media (max-width: 520px) {
    .review-detail-page .uploaded-main-document-name-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .review-detail-page .uploaded-main-document-meta {
        white-space: normal;
    }
}

/* =========================================================
   SUBMITTER — CLEAN SEPARATED LETTER PAGES INSIDE ORIGINAL VIEW CARD
   Keeps submission_view.php's original interface untouched.
   Each official document wrapper is displayed as its own 8.5 x 11 in
   Letter sheet, separated by a visible grey gap. No PDF/TinyMCE controls.
   ========================================================= */
.submitter-clean-document-viewport {
    max-height: 680px;
    margin-top: 20px;
    padding: 28px 24px 36px;
    overflow: auto;
    box-sizing: border-box;
    border: 1px solid #d7dee8;
    border-radius: 14px;
    background: #e7edf4;
    scrollbar-gutter: stable both-edges;
    overscroll-behavior: contain;
}

.submitter-clean-document-pages {
    width: max-content;
    min-width: 8.5in;
    margin: 0 auto;
    color: #000000;
    font-family:
        'Century Gothic',
        CenturyGothic,
        Arial,
        sans-serif;
    font-size: 12pt;
    line-height: 16pt;
    transform-origin: top center;
}

/*
 * Every official Smart Template wrapper is one physical Letter sheet.
 * These selectors cover the approval cover, main paper pages, continuation
 * pages, Semakan, Sokongan, Kelulusan and other generated official pages.
 */
.submitter-clean-document-pages .sapms-approval-cover,
.submitter-clean-document-pages .sapms-smart-template-document {
    position: relative !important;
    display: block !important;
    width: 8.5in !important;
    min-width: 8.5in !important;
    max-width: 8.5in !important;
    height: 11in !important;
    min-height: 11in !important;
    max-height: 11in !important;
    margin: 0 auto 32px !important;
    box-sizing: border-box !important;
    color: #000000 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    box-shadow:
        0 0 0 1px #cbd5e1,
        0 10px 25px rgba(15, 23, 42, 0.11) !important;
}

/*
 * Lampiran generators historically used different browser pixel widths.
 * In submission_view.php only, normalise them to the same Letter sheet.
 * The saved HTML and generated DOCX are not changed.
 */
.submitter-clean-document-pages .sapms-atur-cara-appendix,
.submitter-clean-document-pages .sapms-jawatankuasa-appendix,
.submitter-clean-document-pages .sapms-peserta-appendix,
.submitter-clean-document-pages .sapms-anggaran-appendix {
    position: relative !important;
    display: block !important;
    width: 8.5in !important;
    min-width: 8.5in !important;
    max-width: 8.5in !important;
    height: 11in !important;
    min-height: 11in !important;
    max-height: 11in !important;
    margin: 0 auto 32px !important;
    padding: 1in !important;
    box-sizing: border-box !important;
    color: #000000 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    font-family:
        'Century Gothic',
        CenturyGothic,
        Arial,
        sans-serif !important;
    box-shadow:
        0 0 0 1px #cbd5e1,
        0 10px 25px rgba(15, 23, 42, 0.11) !important;
}

/*
 * Older/free-form Manual Editor content that has no official page wrappers.
 * It still receives one clean Letter sheet. The stored HTML is untouched.
 */
.submitter-clean-document-pages .sapms-submitter-clean-single-page {
    position: relative;
    display: block;
    width: 8.5in;
    min-width: 8.5in;
    max-width: 8.5in;
    min-height: 11in;
    margin: 0 auto 32px;
    padding: 1in;
    box-sizing: border-box;
    color: #000000;
    background: #ffffff;
    font-family:
        'Century Gothic',
        CenturyGothic,
        Arial,
        sans-serif;
    font-size: 12pt;
    line-height: 16pt;
    box-shadow:
        0 0 0 1px #cbd5e1,
        0 10px 25px rgba(15, 23, 42, 0.11);
}

/* Do not leave an unnecessary grey gap after the final physical page. */
.submitter-clean-document-pages >
.sapms-approval-cover:last-child,
.submitter-clean-document-pages >
.sapms-smart-template-document:last-child,
.submitter-clean-document-pages >
.sapms-atur-cara-appendix:last-child,
.submitter-clean-document-pages >
.sapms-jawatankuasa-appendix:last-child,
.submitter-clean-document-pages >
.sapms-peserta-appendix:last-child,
.submitter-clean-document-pages >
.sapms-anggaran-appendix:last-child,
.submitter-clean-document-pages >
.sapms-submitter-clean-single-page:last-child {
    margin-bottom: 0 !important;
}

.submitter-clean-document-pages img,
.submitter-clean-document-pages .sapms-submitter-clean-single-page img {
    max-width: 100%;
}

.submitter-clean-document-pages table,
.submitter-clean-document-pages .sapms-submitter-clean-single-page table {
    border-collapse: collapse;
}

.submitter-clean-document-viewport::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.submitter-clean-document-viewport::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #dfe6ef;
}

.submitter-clean-document-viewport::-webkit-scrollbar-thumb {
    border: 2px solid #dfe6ef;
    border-radius: 999px;
    background: #94a3b8;
}

.submitter-clean-document-viewport::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

@media (max-width: 780px) {
    .submitter-clean-document-viewport {
        max-height: 560px;
        padding: 20px 18px 28px;
    }

    .submitter-clean-document-pages .sapms-approval-cover,
    .submitter-clean-document-pages .sapms-smart-template-document,
    .submitter-clean-document-pages .sapms-atur-cara-appendix,
    .submitter-clean-document-pages .sapms-jawatankuasa-appendix,
    .submitter-clean-document-pages .sapms-peserta-appendix,
    .submitter-clean-document-pages .sapms-anggaran-appendix,
    .submitter-clean-document-pages .sapms-submitter-clean-single-page {
        margin-bottom: 24px !important;
    }
}

/* =========================================================
   REVIEWER — SOFT BLENDED BLUE REVIEW CARD HUE
   Keeps the Review card visually noticeable without a hard outline.
   The border is semi-transparent and blends into a wider, diffused
   SAPMS-blue halo for a clean and professional emphasis.
   ========================================================= */
.review-detail-page .review-attention-card {
    position: relative;
    border: 1px solid rgba(79, 121, 177, 0.30) !important;
    background: #ffffff;
    box-shadow:
        0 0 0 2px rgba(49, 90, 155, 0.035),
        0 0 18px rgba(49, 90, 155, 0.09),
        0 0 34px rgba(49, 90, 155, 0.055),
        0 14px 32px rgba(15, 23, 42, 0.065) !important;
}

/* Keep the internal divider very light so it merges naturally with
   the surrounding blue hue instead of creating another hard line. */
.review-detail-page
.review-attention-card
.review-decision-card-header {
    border-bottom-color: rgba(121, 154, 196, 0.24);
}

@media (max-width: 700px) {
    .review-detail-page .review-attention-card {
        border-color: rgba(79, 121, 177, 0.27) !important;
        box-shadow:
            0 0 0 2px rgba(49, 90, 155, 0.03),
            0 0 16px rgba(49, 90, 155, 0.085),
            0 0 28px rgba(49, 90, 155, 0.045),
            0 12px 26px rgba(15, 23, 42, 0.06) !important;
    }
}

/* =========================================================
   REVIEWER — REVIEW FORM PROFESSIONAL POLISH
   Improves hierarchy, spacing and decision-action emphasis without
   changing the review workflow or the existing soft blue card hue.
   ========================================================= */
.review-detail-page .review-decision-form {
    padding: 16px;
    gap: 16px;
}

.review-detail-page .review-decision-section {
    padding: 16px;
    border-color: #dfe7f0;
    border-radius: 13px;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfe 100%
        );
    box-shadow:
        0 1px 0 rgba(15, 23, 42, 0.02);
}

.review-detail-page .review-decision-section-heading {
    margin-bottom: 14px;
    align-items: center;
    gap: 10px;
}

.review-detail-page .review-decision-section-heading h3 {
    color: #1f2d3d;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.3;
}

.review-detail-page .review-step-number {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 9px;
    background:
        linear-gradient(
            135deg,
            #315a9b,
            #4f79b1
        );
    box-shadow:
        0 4px 10px rgba(49, 90, 155, 0.14);
}

.review-detail-page .review-decision-section .system-field,
.review-detail-page .reviewer-file-upload-panel {
    margin-top: 0;
}

.review-detail-page .review-feedback-label-row {
    margin-bottom: 8px;
}

.review-detail-page .review-feedback-label-row label,
.review-detail-page .reviewer-file-upload-control label,
.review-detail-page .reviewer-reference-field > label {
    color: #34465d;
    font-weight: 750;
}

.review-detail-page #comments {
    min-height: 180px;
    padding: 12px 13px;
    border-color: #cfdbe8;
    border-radius: 10px;
    background: #ffffff;
    line-height: 1.6;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.review-detail-page #comments:focus,
.review-detail-page .reviewer-reference-input-group:focus-within,
.review-detail-page .reviewer-file-upload-control input[type="file"]:focus {
    border-color: rgba(49, 90, 155, 0.62);
    box-shadow:
        0 0 0 3px rgba(49, 90, 155, 0.08);
    outline: none;
}

.review-detail-page .reviewer-file-upload-panel {
    padding: 13px;
    border-color: #dde6ef;
    border-radius: 11px;
    background: #f8fafc;
}

.review-detail-page .reviewer-file-upload-control {
    margin-top: 10px;
}

.review-detail-page .reviewer-reference-input-group {
    min-height: 42px;
    border-color: #cfdbe8;
    background: #ffffff;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

/* Keep the decision area visually distinct from the input steps. */
.review-detail-page .review-action-footer {
    margin-top: 0;
    padding: 13px;
    border: 1px solid #dfe7f0;
    border-radius: 13px;
    background:
        linear-gradient(
            180deg,
            #f9fbfd 0%,
            #f5f8fb 100%
        );
}

.review-detail-page .review-action-footer .review-action-grid {
    gap: 10px;
}

.review-detail-page .review-action-footer .review-action-grid button {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.2;
    box-shadow: none;
    transition:
        transform 0.14s ease,
        box-shadow 0.14s ease,
        border-color 0.14s ease,
        background 0.14s ease;
}

.review-detail-page .review-action-footer .review-action-grid button:hover {
    transform: translateY(-1px);
}

/* Save Progress: stronger SAPMS blue while remaining secondary to final decisions. */
.review-detail-page .review-action-footer .secondary-action-button {
    color: #ffffff;
    border: 1px solid #315a9b;
    background:
        linear-gradient(
            135deg,
            #416da9,
            #315a9b
        );
    box-shadow:
        0 6px 14px rgba(49, 90, 155, 0.16);
}

.review-detail-page .review-action-footer .secondary-action-button:hover {
    border-color: #274b83;
    background:
        linear-gradient(
            135deg,
            #365f98,
            #274b83
        );
    box-shadow:
        0 8px 17px rgba(49, 90, 155, 0.22);
}

/* Request Revision: medium amber fill so the action is clearly visible. */
.review-detail-page .review-action-footer .review-action-warning {
    color: #ffffff;
    border: 1px solid #c96b08;
    background:
        linear-gradient(
            135deg,
            #e28a16,
            #c96b08
        );
    box-shadow:
        0 6px 14px rgba(201, 107, 8, 0.16);
}

.review-detail-page .review-action-footer .review-action-warning:hover {
    border-color: #ad5806;
    background:
        linear-gradient(
            135deg,
            #d8780c,
            #ad5806
        );
    box-shadow:
        0 8px 17px rgba(173, 88, 6, 0.21);
    filter: none;
}

/* Reject: stronger red fill, clearly destructive but still below Approve. */
.review-detail-page .review-action-footer .review-action-danger {
    color: #ffffff;
    border: 1px solid #c9343e;
    background:
        linear-gradient(
            135deg,
            #de4c56,
            #c9343e
        );
    box-shadow:
        0 6px 14px rgba(201, 52, 62, 0.16);
}

.review-detail-page .review-action-footer .review-action-danger:hover {
    border-color: #ad2630;
    background:
        linear-gradient(
            135deg,
            #ce3b46,
            #ad2630
        );
    box-shadow:
        0 8px 17px rgba(173, 38, 48, 0.21);
    filter: none;
}

/* Approve: strongest final action. */
.review-detail-page .review-action-footer .review-action-success {
    color: #ffffff;
    border: 1px solid #07835f;
    background:
        linear-gradient(
            135deg,
            #0b8f68,
            #087a5a
        );
    box-shadow:
        0 7px 15px rgba(8, 122, 90, 0.17);
}

.review-detail-page .review-action-footer .review-action-success:hover {
    background:
        linear-gradient(
            135deg,
            #087d5d,
            #066c50
        );
    box-shadow:
        0 9px 18px rgba(8, 122, 90, 0.21);
    filter: none;
}

.review-detail-page .review-action-footer .review-action-grid button:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(49, 90, 155, 0.13);
}

@media (max-width: 700px) {
    .review-detail-page .review-decision-form {
        padding: 13px;
        gap: 13px;
    }

    .review-detail-page .review-decision-section {
        padding: 13px;
    }

    .review-detail-page .review-action-footer {
        padding: 11px;
    }
}

/* =========================================================
   PROFILE — CLEAN / ORGANIZED ALIGNMENT POLISH
   Keeps the existing SAPMS profile functionality and visual language,
   while improving hierarchy, alignment, spacing and responsive balance.
   ========================================================= */
.profile-page {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    gap: 20px;
}

.profile-page .profile-heading-row {
    margin-bottom: -2px;
}

/* Identity card: avatar + user information + role/status in clear columns. */
.profile-page .profile-identity-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 24px 26px;
}

.profile-page .profile-identity-copy {
    min-width: 0;
}

.profile-page .profile-identity-copy h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: 23px;
    font-weight: 850;
    line-height: 1.25;
}

.profile-page .profile-identity-copy > p {
    margin-top: 6px;
    overflow: hidden;
    color: #64748b;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-page .profile-identity-meta {
    margin-top: 12px;
    gap: 7px 22px;
}

.profile-page .profile-identity-badges {
    min-width: 128px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

/* Keep the four overview cards visually balanced. */
.profile-page .profile-summary-grid {
    gap: 16px;
}

.profile-page .profile-summary-card {
    min-height: 94px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    border-radius: 18px;
}

.profile-page .profile-summary-card span {
    line-height: 1.35;
}

.profile-page .profile-summary-card strong {
    margin-top: 0;
    overflow-wrap: anywhere;
    font-size: 15px;
}

/* Account Details + Change Password line up as one deliberate row. */
.profile-page .profile-content-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: stretch;
    gap: 20px;
}

.profile-page .profile-panel {
    min-width: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.profile-page .profile-panel-heading {
    min-height: 70px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
}

.profile-page .profile-panel-heading > div:last-child {
    min-width: 0;
}

.profile-page .profile-panel-heading h2 {
    line-height: 1.3;
}

.profile-page .profile-panel-heading p {
    max-width: 580px;
    margin-top: 4px;
    line-height: 1.5;
}

.profile-page .profile-form {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.profile-page .profile-form-grid {
    align-content: start;
    gap: 17px 18px;
}

.profile-page .profile-form .system-field {
    min-width: 0;
}

.profile-page .profile-form .system-field label {
    margin-bottom: 7px;
    color: #3f5065;
}

.profile-page .profile-form .system-field input {
    min-height: 44px;
    border-color: #cfd9e5;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.profile-page .profile-form .system-field input:hover {
    border-color: #b9c8d9;
}

.profile-page .profile-form .system-field input:focus {
    border-color: rgba(49, 90, 155, 0.68);
    box-shadow: 0 0 0 3px rgba(49, 90, 155, 0.09);
}

.profile-page .profile-password-input-wrap {
    width: 100%;
}

.profile-page .profile-password-toggle {
    right: 7px;
}

.profile-page .profile-password-rules {
    margin-top: -2px;
    padding: 10px 11px;
    gap: 7px 12px;
    border: 1px solid #e5ebf2;
    border-radius: 11px;
    background: #f8fafc;
}

.profile-page .profile-security-note {
    margin-top: 17px;
}

/* Align both panel action buttons to the bottom edge. */
.profile-page .profile-form-actions {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid #f0f3f7;
}

.profile-page .profile-form-actions .primary-action-button,
.profile-page .profile-security-button {
    min-width: 154px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Recent activity: clearer row alignment and date column. */
.profile-page .profile-activity-panel .profile-panel-heading {
    min-height: 0;
    margin-bottom: 0;
}

.profile-page .profile-activity-item {
    min-height: 62px;
    padding: 14px 2px;
    grid-template-columns: 10px minmax(0, 1fr) minmax(140px, auto);
    align-items: center;
    gap: 13px;
}

.profile-page .profile-activity-dot {
    margin-top: 0;
}

.profile-page .profile-activity-copy {
    min-width: 0;
}

.profile-page .profile-activity-copy strong,
.profile-page .profile-activity-copy p {
    overflow-wrap: anywhere;
}

.profile-page .profile-activity-item time {
    min-width: 140px;
    text-align: right;
    line-height: 1.45;
}

@media (max-width: 1080px) {
    .profile-page .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .profile-page .profile-panel-heading {
        min-height: 0;
    }

    .profile-page .profile-form-actions {
        margin-top: 22px;
    }
}

@media (max-width: 760px) {
    .profile-page .profile-identity-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        padding: 21px;
    }

    .profile-page .profile-identity-badges {
        grid-column: 1 / -1;
        min-width: 0;
        justify-content: flex-start;
        padding-top: 2px;
    }

    .profile-page .profile-activity-item {
        grid-template-columns: 10px minmax(0, 1fr);
        align-items: start;
    }

    .profile-page .profile-activity-dot {
        margin-top: 5px;
    }

    .profile-page .profile-activity-item time {
        grid-column: 2;
        min-width: 0;
        margin-top: -4px;
        text-align: left;
        white-space: normal;
    }
}

@media (max-width: 680px) {
    .profile-page .profile-identity-card {
        align-items: flex-start;
    }

    .profile-page .profile-identity-copy > p {
        white-space: normal;
    }

    .profile-page .profile-panel {
        padding: 19px;
    }

    .profile-page .profile-panel-heading {
        padding-bottom: 14px;
    }

    .profile-page .profile-form-actions .primary-action-button,
    .profile-page .profile-security-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-page .profile-identity-card {
        grid-template-columns: 1fr;
    }

    .profile-page .profile-identity-avatar {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .profile-page .profile-identity-badges {
        grid-column: auto;
    }
}

/* =========================================================
   PROFILE — PROFESSIONAL IDENTITY REFINEMENT
   ========================================================= */
.profile-page .profile-identity-hero {
    position: relative;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "identity badges"
        "metadata metadata";
    align-items: center;
    gap: 22px 26px;
    padding: 28px;
    border: 0;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 8%, rgba(242, 183, 5, 0.20), transparent 29%),
        linear-gradient(135deg, #0f2342 0%, #1e3a6d 57%, #27647d 100%);
    box-shadow: 0 16px 34px rgba(15, 35, 66, 0.18);
}

.profile-page .profile-identity-hero::after {
    content: '';
    width: 190px;
    height: 190px;
    position: absolute;
    right: -105px;
    bottom: -122px;
    border: 28px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.profile-page .profile-identity-main {
    min-width: 0;
    position: relative;
    z-index: 1;
    grid-area: identity;
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-page .profile-identity-hero .profile-identity-avatar {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 22px;
    color: #17355f;
    background: linear-gradient(145deg, #ffffff, #f8e4a7);
    box-shadow: 0 12px 24px rgba(7, 20, 39, 0.22);
    font-size: 28px;
}

.profile-page .profile-identity-kicker {
    display: block;
    margin-bottom: 5px;
    color: #f9e7ac;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.profile-page .profile-identity-hero .profile-identity-copy h2 {
    color: #ffffff;
    font-size: clamp(20px, 2.3vw, 25px);
}

.profile-page .profile-identity-hero .profile-identity-copy > p {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.72);
}

.profile-page .profile-identity-hero .profile-identity-badges {
    min-width: 0;
    position: relative;
    z-index: 1;
    grid-area: badges;
    align-self: start;
    justify-content: flex-end;
}

.profile-page .profile-identity-hero .user-role-badge,
.profile-page .profile-identity-hero .account-status-badge,
.profile-page .profile-verification-badge {
    min-height: 25px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 999px;
    box-shadow: 0 5px 12px rgba(7, 20, 39, 0.10);
    font-size: 10.5px;
    font-weight: 850;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.profile-page .profile-verification-badge {
    color: #d1fae5;
    background: rgba(6, 95, 70, 0.58);
}

.profile-page .profile-identity-hero .profile-identity-meta {
    margin: 0;
    padding-top: 17px;
    position: relative;
    z-index: 1;
    grid-area: metadata;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-page .profile-identity-hero .profile-identity-meta span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-page .profile-identity-hero .profile-identity-meta small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.profile-page .profile-identity-hero .profile-identity-meta strong {
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 750;
}

.profile-page .profile-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.profile-page .profile-summary-card,
.profile-page .profile-summary-card.accent {
    min-height: 86px;
    padding: 15px 17px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: initial;
    gap: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.profile-page .profile-summary-card .profile-summary-icon {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.profile-page .profile-summary-icon.member {
    color: #315a9b;
    background: #edf2f9;
}

.profile-page .profile-summary-icon.login {
    color: #087a68;
    background: #e8f7f3;
}

.profile-page .profile-summary-icon.activity {
    color: #9a6700;
    background: #fff5d8;
}

.profile-page .profile-summary-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.profile-page .profile-summary-card > div {
    min-width: 0;
}

.profile-page .profile-summary-card > div > span {
    color: #718096;
    font-size: 10.5px;
}

.profile-page .profile-summary-card > div > strong {
    margin-top: 4px;
    color: #172033;
    font-size: 14px;
    line-height: 1.4;
}

.profile-page .profile-panel {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.profile-page .profile-panel::before {
    content: '';
    height: 3px;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background: linear-gradient(90deg, #315a9b, #4d86b6);
}

.profile-page .profile-panel.security::before {
    background: linear-gradient(90deg, #07835f, #2aa58b);
}

.profile-page .profile-activity-panel::before {
    background: linear-gradient(90deg, #27647d, #d5a20b);
}

.profile-page .profile-panel-heading {
    min-height: 0;
    margin-bottom: 18px;
    padding-bottom: 15px;
}

.profile-page .profile-panel-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
}

.profile-page .profile-confirmation-field {
    margin-top: 2px;
    padding: 14px;
    border: 1px solid #e3eaf2;
    border-radius: 13px;
    background: #f8fafc;
}

.profile-page .profile-confirmation-field > small {
    display: block;
    margin-top: 7px;
    color: #718096;
    line-height: 1.45;
}

.profile-page .profile-form-actions {
    padding-top: 19px;
}

.profile-page .profile-activity-heading {
    align-items: center;
}

.profile-page .profile-activity-heading > div:nth-child(2) {
    min-width: 0;
}

.profile-page .profile-activity-count {
    margin-left: auto;
    padding: 5px 9px;
    flex: 0 0 auto;
    border: 1px solid #dbe5ef;
    border-radius: 999px;
    color: #51647a;
    background: #f8fafc;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-page .profile-activity-item {
    padding: 15px 3px;
    transition: background 0.16s ease;
}

.profile-page .profile-activity-item:hover {
    background: #fbfcfe;
}

@media (max-width: 900px) {
    .profile-page .profile-identity-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "identity"
            "badges"
            "metadata";
        gap: 17px;
    }

    .profile-page .profile-identity-hero .profile-identity-badges {
        align-self: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .profile-page .profile-identity-hero {
        padding: 22px;
    }

    .profile-page .profile-summary-grid {
        grid-template-columns: 1fr;
    }

    .profile-page .profile-summary-card,
    .profile-page .profile-summary-card.accent {
        min-height: 76px;
    }

}

@media (max-width: 480px) {
    .profile-page .profile-identity-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-page .profile-identity-hero .profile-identity-avatar {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        border-radius: 19px;
    }

    .profile-page .profile-identity-hero .profile-identity-meta {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .profile-page .profile-activity-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .profile-page .profile-activity-count {
        width: max-content;
    }
}

/* =========================================================
   SMART TEMPLATE — LANGUAGE AND INTERFACE REFINEMENT
   ========================================================= */

.smart-template-form {
    --smart-navy: #17365f;
    --smart-blue: #315a9b;
    --smart-teal: #087f6b;
    --smart-gold: #d4a72c;
    --smart-border: #dbe5ef;
    --smart-muted: #617187;
    gap: 22px;
}

.smart-template-intro-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 24px;
    padding: 27px 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at 92% 10%, rgba(212, 167, 44, 0.2), transparent 28%),
        linear-gradient(135deg, #132d50 0%, #234f81 58%, #276c78 100%);
    box-shadow: 0 18px 38px rgba(23, 54, 95, 0.18);
}

.smart-template-intro-card::after {
    content: '';
    width: 190px;
    height: 190px;
    position: absolute;
    right: -90px;
    bottom: -118px;
    border: 24px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.smart-template-intro-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 17px;
}

.smart-template-intro-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
}

.smart-template-intro-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.smart-template-intro-copy {
    min-width: 0;
}

.smart-template-intro-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #f4ce69;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.smart-template-intro-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(23px, 2.5vw, 29px);
    font-weight: 850;
    letter-spacing: -0.02em;
}

.smart-template-intro-card p {
    max-width: 660px;
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.65;
}

.smart-template-intro-badge {
    position: relative;
    z-index: 1;
    align-self: start;
    padding: 8px 12px;
    border: 1px solid rgba(255, 227, 147, 0.34);
    border-radius: 999px;
    color: #fff2c6;
    background: rgba(212, 167, 44, 0.14);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

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

.smart-template-progress > span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
}

.smart-template-progress b {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #17365f;
    background: #f4ce69;
    font-size: 12px;
}

.smart-template-progress em {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smart-template-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--smart-border);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.smart-template-section-nav a {
    padding: 8px 12px;
    border: 1px solid #d7e1ec;
    border-radius: 999px;
    color: #315477;
    background: #f8fafc;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
    transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.smart-template-section-nav a:hover {
    border-color: #9db8d0;
    color: #17365f;
    background: #edf5fb;
    transform: translateY(-1px);
}

.smart-template-section-nav a:focus-visible {
    outline: 3px solid rgba(49, 90, 155, 0.2);
    outline-offset: 2px;
}

.smart-template-form .smart-template-section {
    position: relative;
    overflow: hidden;
    scroll-margin-top: 90px;
    padding: 24px;
    border-color: var(--smart-border);
    border-radius: 19px;
    box-shadow: 0 9px 26px rgba(15, 23, 42, 0.045);
}

.smart-template-form .smart-template-section::before {
    content: '';
    width: 4px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, var(--smart-blue), var(--smart-teal));
}

.smart-template-form .smart-template-section-heading {
    margin-bottom: 20px;
    align-items: center;
    gap: 14px;
}

.smart-template-form .smart-template-section-heading > span {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, #214879, #327096);
    box-shadow: 0 6px 14px rgba(33, 72, 121, 0.2);
    font-size: 13px;
}

.smart-template-form .smart-template-section-heading h3 {
    color: #172a43;
    font-size: 18px;
    line-height: 1.3;
}

.smart-template-form .smart-template-section-heading p {
    margin-top: 5px;
    color: var(--smart-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.smart-template-form .system-field label,
.smart-template-form .maklumat-tambahan-group-title,
.smart-template-form .semakan-decision-fieldset legend {
    color: #263b53;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.4;
}

.smart-template-form .system-field small,
.smart-template-form .penganjur-row-note {
    color: #6a788c;
    font-size: 12.5px;
    line-height: 1.55;
}

.smart-template-form input:not([type="checkbox"]):not([type="radio"]),
.smart-template-form select,
.smart-template-form textarea {
    font-size: 13.5px;
}

.smart-template-form input:not([type="checkbox"]):not([type="radio"]),
.smart-template-form select {
    min-height: 44px;
}

.smart-template-form input::placeholder,
.smart-template-form textarea::placeholder {
    color: #8996a8;
    font-size: 12.5px;
}

.smart-template-form .smart-template-field-label-row {
    margin-bottom: 7px;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}

.smart-template-form .smart-template-reference-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    color: #1e4f85;
    background: #eff6ff;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.smart-template-form .smart-template-reference-link:hover {
    color: #1e3a8a;
    background: #dbeafe;
    transform: translateY(-1px);
}

.smart-template-form .smart-template-reference-link:focus-visible {
    outline: 3px solid rgba(49, 90, 155, 0.18);
    outline-offset: 2px;
}

.smart-template-form .smart-template-reference-note {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.55;
}

.smart-template-form .approval-role-card,
.smart-template-form .pelaksanaan-program-card,
.smart-template-form .maklumat-tambahan-grid > .system-field,
.smart-template-form .maklumat-tambahan-group,
.smart-template-form .semakan-perakuan-form-card,
.smart-template-form .anggaran-card {
    border-color: #dbe5ef;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.035);
}

.smart-template-form .approval-role-card h4,
.smart-template-form .pelaksanaan-program-card-title > span,
.smart-template-form .anggaran-subsection-header h4 {
    font-size: 13.5px;
}

.smart-template-form .semakan-perakuan-title-card {
    border: 0;
    background: linear-gradient(135deg, #17365f, #275c84);
    box-shadow: 0 8px 20px rgba(23, 54, 95, 0.16);
}

.smart-template-form .semakan-perakuan-title-card h3,
.smart-template-form .semakan-perakuan-title-card p {
    color: #ffffff;
}

.smart-template-form .semakan-perakuan-title-card h3 {
    font-size: 17px;
}

.smart-template-form .semakan-perakuan-title-card p {
    font-size: 13px;
}

.smart-template-form .atur-cara-table-wrapper,
.smart-template-form .jawatankuasa-table-wrapper,
.smart-template-form .peserta-table-wrapper,
.smart-template-form .penganjur-table-wrapper,
.smart-template-form .anggaran-table-wrapper {
    border-color: #cbd8e5;
    border-radius: 13px;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.035);
}

.smart-template-form .atur-cara-input-table th,
.smart-template-form .jawatankuasa-input-table th,
.smart-template-form .peserta-input-table th,
.smart-template-form .penganjur-main-header th,
.smart-template-form .anggaran-input-table th {
    color: #17324f;
    background: #dceaf5;
    font-size: 12.5px;
}

.smart-template-form .penganjur-info-header th {
    color: #53667b;
    background: #f4f7fa;
    font-size: 12px;
    line-height: 1.45;
}

.smart-template-form :is(
    .atur-cara-add-button,
    .jawatankuasa-add-button,
    .peserta-add-button,
    .penganjur-add-button,
    .anggaran-add-button
) {
    min-height: 39px;
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #245283, #277d83);
    box-shadow: 0 5px 12px rgba(36, 82, 131, 0.16);
    font-size: 12.5px;
    font-weight: 800;
}

.smart-template-form :is(
    .atur-cara-add-button,
    .jawatankuasa-add-button,
    .peserta-add-button,
    .penganjur-add-button,
    .anggaran-add-button
):hover {
    background: linear-gradient(135deg, #193e68, #206b70);
}

.smart-template-form :is(
    .atur-cara-remove-button,
    .jawatankuasa-remove-button,
    .peserta-remove-button,
    .penganjur-remove-button,
    .anggaran-remove-button
) {
    border-color: #f0c3c8;
    color: #a53642;
    background: #fff7f7;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .smart-template-intro-card {
        grid-template-columns: 1fr;
    }

    .smart-template-intro-badge {
        width: max-content;
    }
}

@media (max-width: 700px) {
    .smart-template-intro-card {
        padding: 22px;
    }

    .smart-template-progress {
        grid-template-columns: 1fr;
    }

    .smart-template-progress em {
        white-space: normal;
    }

    .smart-template-section-nav a {
        flex: 1 1 calc(50% - 9px);
        text-align: center;
    }

    .smart-template-form .smart-template-section {
        padding: 19px;
    }
}

@media (max-width: 480px) {
    .smart-template-intro-card {
        padding: 19px;
        border-radius: 18px;
    }

    .smart-template-intro-main {
        align-items: flex-start;
    }

    .smart-template-intro-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    .smart-template-section-nav a {
        flex-basis: 100%;
    }

    .smart-template-form .smart-template-section-heading {
        align-items: flex-start;
    }
}

/* =========================================================
   REVIEWER — REVIEW PAGE INTERFACE REFINEMENT
   ========================================================= */

.review-detail-page {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
}

.review-detail-page .reviewer-review-heading {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    padding: 26px 27px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at 92% 6%, rgba(212, 167, 44, 0.2), transparent 27%),
        linear-gradient(135deg, #132d50 0%, #234f81 60%, #276c78 100%);
    box-shadow: 0 18px 38px rgba(23, 54, 95, 0.17);
}

.review-detail-page .reviewer-review-heading::after {
    content: '';
    width: 210px;
    height: 210px;
    position: absolute;
    right: -105px;
    bottom: -140px;
    border: 25px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
    pointer-events: none;
}

.review-detail-page .reviewer-review-heading > * {
    position: relative;
    z-index: 1;
}

.review-detail-page .reviewer-review-heading-topline {
    margin-bottom: 8px;
    gap: 9px;
}

.review-detail-page .reviewer-review-heading-topline .page-eyebrow {
    color: #f4ce69;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.review-detail-page .reviewer-review-heading-topline .status-badge {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.13);
    font-size: 11px;
}

.review-detail-page .reviewer-review-heading h1 {
    max-width: 900px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(25px, 2.5vw, 32px);
    font-weight: 850;
    letter-spacing: -0.025em;
    line-height: 1.24;
}

.review-detail-page .review-compact-meta {
    margin-top: 17px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.review-detail-page .review-compact-meta > span {
    min-height: 52px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.075);
}

.review-detail-page .review-compact-meta strong {
    margin: 0;
    color: #cbdcf0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1.3;
    text-transform: uppercase;
}

.review-detail-page .reviewer-review-heading-actions {
    width: min(100%, 230px);
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 9px;
}

.review-detail-page .reviewer-top-action {
    width: 100%;
    min-height: 41px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 11px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    font-size: 12.5px;
    font-weight: 750;
    backdrop-filter: blur(4px);
}

.review-detail-page .reviewer-top-action:hover {
    border-color: rgba(255, 255, 255, 0.38);
    color: #17365f;
    background: #ffffff;
    transform: translateY(-1px);
}

.review-detail-page .reviewer-review-heading-actions .reviewer-top-action:first-child {
    border-color: rgba(244, 206, 105, 0.4);
    color: #fff2c6;
    background: rgba(212, 167, 44, 0.13);
}

.review-detail-page .reviewer-review-heading-actions .reviewer-top-action:first-child:hover {
    border-color: #f4ce69;
    color: #17365f;
    background: #f4ce69;
}

.review-detail-page .reviewer-manual-editor-card {
    position: relative;
    overflow: hidden;
    padding: 25px;
    border: 1px solid #d8e3ed;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 13px 32px rgba(15, 23, 42, 0.065);
}

.review-detail-page .reviewer-manual-editor-card::before {
    content: '';
    height: 4px;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background: linear-gradient(90deg, #315a9b, #358090);
}

.review-detail-page .reviewer-manual-editor-field-header {
    margin-bottom: 16px;
    padding-bottom: 15px;
    align-items: center;
    border-bottom: 1px solid #e6edf4;
}

.review-detail-page .reviewer-manual-editor-field-copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-detail-page .reviewer-document-heading-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #315a9b;
    background: #eaf1f8;
}

.review-detail-page .reviewer-document-heading-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.review-detail-page .reviewer-manual-editor-field-label {
    color: #172a43;
    font-size: 18px;
    font-weight: 850;
}

.review-detail-page .review-document-toolbar .admin-document-method-badge {
    padding: 7px 10px;
    border-color: #d7e2ed;
    color: #405a77;
    background: #f5f8fb;
    font-size: 11px;
}

.review-detail-page .reviewer-document-mode-toggle {
    min-height: 38px;
    padding: 8px 13px;
    border-color: #b9cadc;
    color: #234f81;
    background: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
}

.review-detail-page .reviewer-document-mode-toggle:hover {
    border-color: #315a9b;
    color: #ffffff;
    background: #315a9b;
}

.review-detail-page .reviewer-manual-editor-field-note {
    margin-top: 11px;
    color: #65758a;
    font-size: 12px;
    line-height: 1.55;
}

.review-detail-page .review-attention-card {
    overflow: hidden;
    border: 1px solid #cfdeea !important;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 13px 30px rgba(23, 54, 95, 0.095) !important;
}

.review-detail-page .review-decision-card-header {
    padding: 19px 20px;
    border: 0;
    background:
        radial-gradient(circle at 92% 0%, rgba(212, 167, 44, 0.15), transparent 32%),
        linear-gradient(135deg, #17365f, #285e82);
}

.review-detail-page .review-decision-card-header .review-section-icon.decision {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
}

.review-detail-page .review-decision-card-header h2 {
    color: #ffffff !important;
    font-size: 19px;
}

.review-detail-page .review-decision-form {
    padding: 17px;
    gap: 14px;
    background: #f7f9fc;
}

.review-detail-page .review-decision-section {
    padding: 16px;
    border-color: #dce5ee;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 13px rgba(15, 23, 42, 0.035);
}

.review-detail-page .review-step-number {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
    background: linear-gradient(145deg, #315a9b, #367989);
    box-shadow: 0 5px 12px rgba(49, 90, 155, 0.16);
    font-size: 12.5px;
}

.review-detail-page .review-decision-section-heading h3 {
    color: #24384f;
    font-size: 14.5px;
}

.review-detail-page .review-decision-section .system-field label,
.review-detail-page .reviewer-file-upload-control label,
.review-detail-page .reviewer-reference-field > label {
    color: #34485f;
    font-size: 13.5px;
    font-weight: 800;
}

.review-detail-page #comments,
.review-detail-page .review-decision-section input,
.review-detail-page .review-decision-section select,
.review-detail-page .review-decision-section textarea,
.review-detail-page .reviewer-file-upload-control input[type="file"] {
    font-size: 13.5px;
}

.review-detail-page #comments {
    min-height: 180px;
    padding: 13px 14px;
}

.review-detail-page .reviewer-file-upload-panel {
    padding: 14px;
    border-color: #dce5ee;
    border-radius: 12px;
    background: #f7f9fc;
}

.review-detail-page .reviewer-file-upload-help,
.review-detail-page .review-decision-section .system-field small {
    font-size: 12px;
}

.review-detail-page .review-action-footer {
    padding: 14px;
    border-color: #d8e3ed;
    border-radius: 14px;
    background: #eef3f8;
}

.review-detail-page .review-action-footer .review-action-grid button {
    min-height: 47px;
    font-size: 13px;
}

.review-detail-page .review-supporting-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    align-items: start;
    gap: 20px;
}

.review-detail-page .review-supporting-grid > .review-below-workspace-files,
.review-detail-page .review-supporting-grid > .review-below-workspace-history {
    min-width: 0;
    margin-top: 0;
    border: 1px solid #d8e3ed;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 11px 27px rgba(15, 23, 42, 0.055);
}

.review-detail-page .reviewer-section-card-header {
    min-height: 48px;
    margin-bottom: 16px !important;
    padding-bottom: 15px !important;
    align-items: center;
    border-bottom: 1px solid #e7edf3 !important;
}

.review-detail-page .reviewer-section-card-header .review-section-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.review-detail-page .reviewer-section-card-header h3 {
    color: #172a43;
    font-size: 17px;
    font-weight: 850;
}

.review-detail-page .reviewer-section-card-header .item-count-badge {
    padding: 6px 10px;
    font-size: 11px;
}

.review-detail-page .managed-file-card,
.review-detail-page .review-history-item {
    border-color: #dde6ef;
    border-radius: 13px;
    background: #fafcfe;
}

.review-detail-page .managed-file-card:hover,
.review-detail-page .review-history-item:hover {
    border-color: #c4d4e3;
    background: #ffffff;
    box-shadow: 0 7px 17px rgba(15, 23, 42, 0.05);
}

.review-detail-page .managed-file-name,
.review-detail-page .review-history-item > div:first-child strong {
    font-size: 13.5px;
}

.review-detail-page .managed-file-meta,
.review-detail-page .review-history-item > div:first-child span,
.review-detail-page .review-history-item p {
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 1300px) {
    .review-detail-page .reviewer-review-heading {
        grid-template-columns: 1fr;
    }

    .review-detail-page .reviewer-review-heading-actions {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    .review-detail-page .reviewer-top-action {
        width: auto;
        flex: 0 1 auto;
    }
}

@media (max-width: 1120px) {
    .review-detail-page .review-compact-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-detail-page .review-supporting-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .review-detail-page .reviewer-review-heading {
        padding: 20px;
        border-radius: 18px;
    }

    .review-detail-page .reviewer-review-heading-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .review-detail-page .reviewer-top-action {
        width: 100%;
    }

    .review-detail-page .reviewer-manual-editor-card {
        padding: 18px;
        border-radius: 18px;
    }

    .review-detail-page .reviewer-manual-editor-field-header {
        align-items: stretch;
    }

    .review-detail-page .review-document-toolbar {
        justify-content: flex-start;
    }

    .review-detail-page .review-attention-card,
    .review-detail-page .review-supporting-grid > .review-below-workspace-files,
    .review-detail-page .review-supporting-grid > .review-below-workspace-history {
        border-radius: 17px;
    }
}

@media (max-width: 520px) {
    .review-detail-page .review-compact-meta {
        grid-template-columns: 1fr;
    }

    .review-detail-page .reviewer-manual-editor-field-copy {
        align-items: flex-start;
    }

    .review-detail-page .reviewer-document-heading-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .review-detail-page .reviewer-manual-editor-field-label {
        font-size: 16px;
    }

    .review-detail-page .review-decision-form {
        padding: 13px;
    }

    .review-detail-page .review-decision-section {
        padding: 13px;
    }
}

/* =========================================================
   REVIEWER — DOCUMENT CONTENT CLEAN BOTTOM EDGE
   ========================================================= */

.review-detail-page .reviewer-manual-editor-card {
    padding-bottom: 0;
}

.review-detail-page .reviewer-document-preview-shell {
    min-width: 0;
    overflow: visible;
}

.review-detail-page #review-document-preview-mode .tox.tox-tinymce,
.review-detail-page #review-document-edit-mode .tox.tox-tinymce,
.review-detail-page .reviewer-upload-document-preview {
    margin-bottom: 0;
}

.review-detail-page .reviewer-manual-editor-field-note {
    width: auto;
    max-width: none;
    min-height: 48px;
    margin: 18px -25px 0;
    padding: 13px 25px 16px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    border-top: 1px solid #e5edf4;
    border-radius: 0 0 21px 21px;
    color: #5f7084;
    background: linear-gradient(180deg, #f9fbfd 0%, #f5f8fb 100%);
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 700px) {
    .review-detail-page .reviewer-manual-editor-card {
        padding: 18px 18px 0;
    }

    .review-detail-page .reviewer-manual-editor-field-note {
        margin-right: -18px;
        margin-left: -18px;
        padding: 13px 18px 15px;
        border-radius: 0 0 17px 17px;
    }
}
