/* ============================================================
   PBO REGISTRATION & RECORDS MANAGEMENT SYSTEM
   COMPLETE APPLICATION STYLESHEET

   Institutional palette:
   - Blue: primary / authority / navigation
   - Red: staff / alerts / secondary accent
   - Gold: emphasis / institutional accent
   - White: primary working surface
   ============================================================ */


/* ============================================================
   1. DESIGN VARIABLES
   ============================================================ */

:root {
    /* Primary institutional blue */
    --blue: #123b69;
    --blue-dark: #092b50;
    --blue-deep: #061f3b;
    --blue-medium: #2d628f;
    --blue-light: #edf4fb;
    --blue-soft: #f6f9fc;

    /* Red accent */
    --red: #b5222a;
    --red-dark: #8f1720;
    --red-medium: #c94a51;
    --red-light: #fbeaec;
    --red-soft: #fff7f7;

    /* Gold accent */
    --gold: #c99a2e;
    --gold-dark: #9d741d;
    --gold-light: #fff8e5;
    --gold-soft: #fffdf6;

    /* Success */
    --green: #27784a;
    --green-dark: #1c6039;
    --green-light: #eaf6ef;

    /* Neutral surfaces */
    --white: #ffffff;
    --page-bg: #f4f6f8;
    --soft-bg: #f8f9fb;
    --soft-blue-grey: #f1f5f8;

    /* Borders */
    --border: #dfe3e8;
    --border-dark: #c9cfd6;

    /* Typography */
    --text: #26313d;
    --text-secondary: #66717e;
    --text-muted: #89929c;
    --heading: #15283b;

    /* Layout */
    --sidebar-width: 240px;
    --topbar-height: 68px;

    /* Radius */
    --radius-sm: 5px;
    --radius: 7px;
    --radius-lg: 10px;

    /* Shadows */
    --shadow-sm:
        0 1px 3px rgba(20, 35, 50, .07);

    --shadow:
        0 5px 18px rgba(20, 35, 50, .08);

    --shadow-lg:
        0 14px 38px rgba(20, 35, 50, .12);

    --transition: 160ms ease;
}


/* ============================================================
   2. RESET / BASE
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-height: 100vh;

    font-family:
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;

    font-size: 15px;
    line-height: 1.55;

    color: var(--text);
    background: var(--page-bg);

    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--blue-dark);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading);
    line-height: 1.25;
}

h1 {
    margin: 0 0 8px;

    font-size: 29px;
    font-weight: 700;
}

h2 {
    margin: 0 0 18px;

    font-size: 20px;
    font-weight: 700;
}

h3 {
    font-size: 17px;
}

p {
    margin-top: 0;
}

.text-muted {
    color: var(--text-muted);
}

.required {
    color: var(--red);
}


/* ============================================================
   3. LOGIN / AUTHENTICATION
   ============================================================ */

.login-body {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(18, 59, 105, .055),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(201, 154, 46, .07),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #ffffff,
            #f5f7f9
        );
}


/* Institutional tricolour accent */

.login-body::before {
    content: "";

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--red) 0 33.33%,
            var(--gold) 33.33% 66.66%,
            var(--blue) 66.66% 100%
        );
}


.login-card {
    position: relative;

    width: 100%;
    max-width: 445px;

    padding: 38px 40px 32px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);
}


.login-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 32px;
    right: 32px;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--gold),
            var(--red)
        );

    border-radius: 0 0 5px 5px;
}


.login-header {
    margin-bottom: 28px;

    text-align: center;
}


.system-mark {
    position: relative;

    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 19px;

    background: var(--white);

    border: 3px solid var(--blue);
    border-radius: 50%;

    color: var(--blue);

    font-size: 18px;
    font-weight: 800;

    letter-spacing: .5px;
}


.system-mark::after {
    content: "";

    position: absolute;

    bottom: -5px;

    width: 29px;
    height: 4px;

    background: var(--gold);

    border-radius: 10px;
}


.login-header h1 {
    margin: 0;

    color: var(--blue-dark);

    font-size: 23px;
}


.login-header p {
    margin: 8px 0 0;

    color: var(--text-secondary);

    font-size: 14px;
}


.login-notice {
    margin: 24px 0 0;

    padding-top: 17px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 12px;

    text-align: center;
}


/* ============================================================
   4. FORMS
   ============================================================ */

.form-group {
    margin-bottom: 20px;
}


.form-group label,
.form-label {
    display: block;

    margin-bottom: 7px;

    color: var(--heading);

    font-size: 14px;
    font-weight: 600;
}


.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    display: block;

    width: 100%;

    padding: 11px 12px;

    background: var(--white);

    border: 1px solid var(--border-dark);
    border-radius: 6px;

    color: var(--text);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0a8b1;
}


.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover,
.form-control:hover {
    border-color: #aeb7c1;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none;

    background: #ffffff;

    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(18, 59, 105, .10);
}


.form-group textarea {
    min-height: 110px;

    resize: vertical;
}


.form-help {
    display: block;

    margin-top: 5px;

    color: var(--text-muted);

    font-size: 12px;
}


.form-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.form-row-3 {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* ============================================================
   5. PASSWORD REQUIREMENTS
   ============================================================ */

.password-requirements {
    margin: -5px 0 22px;

    padding: 13px 15px;

    background:
        linear-gradient(
            100deg,
            var(--gold-light),
            #ffffff
        );

    border: 1px solid #ead9a8;
    border-left: 4px solid var(--gold);

    border-radius: 6px;

    color: var(--text-secondary);

    font-size: 13px;
}


.password-requirements strong {
    color: var(--heading);
}


.password-requirements ul {
    margin: 7px 0;

    padding-left: 19px;
}


.password-requirements li {
    margin: 3px 0;
}


.password-example {
    margin: 9px 0 0;

    color: var(--text-secondary);
}


/* ============================================================
   6. CHECKBOXES / RADIO
   ============================================================ */

.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}


.checkbox-option,
.radio-option {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 9px 12px;

    background: var(--soft-bg);

    border: 1px solid var(--border);
    border-radius: 6px;

    cursor: pointer;
}


.checkbox-option:hover,
.radio-option:hover {
    background: var(--blue-light);

    border-color: #c5d7e7;
}


.checkbox-option input,
.radio-option input {
    width: 17px;
    height: 17px;

    accent-color: var(--blue);
}


/* ============================================================
   7. BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 41px;

    padding: 9px 17px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 650;

    cursor: pointer;

    text-decoration: none;

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}


.btn:hover {
    transform: translateY(-1px);

    text-decoration: none;
}


.btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--blue-dark)
        );

    border-color: var(--blue-dark);

    color: var(--white);

    box-shadow:
        0 3px 8px rgba(18, 59, 105, .15);
}


.btn-primary:hover {
    background: var(--blue-dark);

    color: var(--white);

    box-shadow:
        0 5px 12px rgba(18, 59, 105, .20);
}


.btn-secondary {
    background: var(--white);

    border-color: var(--border-dark);

    color: var(--text);
}


.btn-secondary:hover {
    background: var(--soft-bg);

    color: var(--heading);
}


.btn-danger {
    background: var(--red);

    border-color: var(--red);

    color: var(--white);
}


.btn-danger:hover {
    background: var(--red-dark);

    color: var(--white);
}


.btn-success {
    background: var(--green);

    border-color: var(--green);

    color: var(--white);
}


.btn-gold {
    background: var(--gold);

    border-color: var(--gold-dark);

    color: #30250c;
}


.btn-full {
    width: 100%;
}


.btn-sm {
    min-height: 32px;

    padding: 6px 10px;

    font-size: 11px;
}


/* ============================================================
   8. ALERTS
   ============================================================ */

.alert {
    margin-bottom: 20px;

    padding: 13px 15px;

    border: 1px solid;
    border-radius: 6px;

    font-size: 13px;
}


.alert-error {
    background: var(--red-light);

    border-color: #ecc5c8;

    color: #872029;
}


.alert-success {
    background: var(--green-light);

    border-color: #c3dfce;

    color: #1b603b;
}


.alert-warning {
    background: var(--gold-light);

    border-color: #ead79d;

    color: #745513;
}


.alert-info {
    background: var(--blue-light);

    border-color: #ccdfef;

    color: var(--blue-dark);
}


/* ============================================================
   12. MAIN CONTENT
   ============================================================ */

.content {
    flex: 1;

    min-width: 0;

    padding: 34px;

    background:
        linear-gradient(
            135deg,
            #f6f7f9 0%,
            #f4f6f8 60%,
            #f3f6f9 100%
        );
}


.content > * {
    max-width: 1450px;
}


.subtitle,
.page-subtitle {
    color: var(--text-secondary);
}


/* ============================================================
   13. GENERIC PAGE HEADER
   ============================================================ */

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 22px;

    margin-bottom: 27px;

    padding: 21px 23px;

    background:
        linear-gradient(
            110deg,
            var(--blue-light),
            #ffffff 65%,
            var(--gold-light)
        );

    border: 1px solid #d6e1eb;
    border-left: 5px solid var(--blue);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);
}


.page-header h1 {
    margin: 0 0 5px;

    color: var(--blue-dark);
}


.page-header .subtitle {
    margin: 0;
}


/* ============================================================
   14. DASHBOARD QUICK ACTIONS
   ============================================================ */

.quick-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(210px, 1fr));

    gap: 18px;
}


.quick-card {
    position: relative;

    min-height: 130px;

    overflow: hidden;

    padding: 22px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #ffffff 70%,
            var(--blue-light) 100%
        );

    border: 1px solid var(--border);
    border-radius: var(--radius);

    color: var(--text);

    box-shadow: var(--shadow-sm);

    text-decoration: none;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}


.quick-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: var(--gold);
}


.quick-card:nth-child(1)::before {
    background: var(--blue);
}


.quick-card:nth-child(2)::before {
    background: var(--gold);
}


.quick-card:nth-child(3)::before {
    background: var(--red);
}


.quick-card:nth-child(4)::before {
    background: var(--blue);
}


.quick-card:hover {
    transform: translateY(-2px);

    border-color: #bccbd9;

    box-shadow: var(--shadow);

    color: var(--text);
}


.quick-card strong {
    display: block;

    margin-bottom: 8px;

    color: var(--blue-dark);

    font-size: 16px;
}


.quick-card span {
    color: var(--text-secondary);

    font-size: 13px;
}


/* ============================================================
   15. DASHBOARD STATISTICS
   ============================================================ */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));

    gap: 17px;

    margin-bottom: 28px;
}


.stat-card {
    position: relative;

    overflow: hidden;

    min-height: 105px;

    padding: 19px 20px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);
}


.stat-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 5px;
    height: 100%;

    background: var(--blue);
}


.stat-card:nth-child(2)::before {
    background: var(--gold);
}


.stat-card:nth-child(3)::before {
    background: var(--red);
}


.stat-card:nth-child(4)::before {
    background: var(--green);
}


.stat-label {
    display: block;

    margin-bottom: 7px;

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .4px;

    text-transform: uppercase;
}


.stat-number {
    display: block;

    color: var(--blue-dark);

    font-size: 29px;
    font-weight: 750;
}


/* ============================================================
   16. NOTICES
   ============================================================ */

.notices-section {
    margin-top: 38px;

    padding: 22px;

    background:
        linear-gradient(
            135deg,
            #fafcfd,
            var(--blue-light)
        );

    border: 1px solid #d7e2ec;
    border-radius: var(--radius-lg);
}


.notices-section h2 {
    position: relative;

    margin-bottom: 19px;

    padding-bottom: 10px;

    color: var(--blue-dark);
}


.notices-section h2::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 45px;
    height: 3px;

    background: var(--gold);

    border-radius: 5px;
}


.notice {
    margin-bottom: 13px;

    padding: 17px 19px;

    background: var(--white);

    border: 1px solid var(--border);
    border-left: 4px solid var(--blue);

    border-radius: 6px;

    box-shadow: var(--shadow-sm);
}


.notice:nth-of-type(3n + 2) {
    border-left-color: var(--gold);
}


.notice:nth-of-type(3n + 3) {
    border-left-color: var(--red);
}


.notice strong {
    color: var(--heading);
}


.notice p {
    margin: 5px 0 0;

    color: var(--text-secondary);
}


/* ============================================================
   17. GENERIC FORM CARD
   ============================================================ */

.form-card {
    overflow: hidden;

    max-width: 950px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}


.form-section-header {
    padding: 21px 24px;

    background:
        linear-gradient(
            100deg,
            var(--blue-light),
            #ffffff
        );

    border-top: 4px solid var(--blue);
    border-bottom: 1px solid #d6e2ee;
}


.form-section-header h2 {
    margin: 0 0 5px;

    color: var(--blue-dark);
}


.form-section-header p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
}


.form-card > form {
    padding: 25px;
}


.form-card > .alert {
    margin: 22px 25px 0;
}


.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 28px;

    padding-top: 20px;

    border-top: 1px solid var(--border);
}


/* ============================================================
   18. GENERIC DATA TABLE
   ============================================================ */

.table-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}


.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 22px;

    background:
        linear-gradient(
            100deg,
            var(--blue-light),
            #ffffff 65%,
            var(--gold-light)
        );

    border-top: 4px solid var(--blue);
    border-bottom: 1px solid #d7e1eb;
}


.table-card-header h2 {
    margin: 0 0 4px;

    color: var(--blue-dark);

    font-size: 18px;
}


.table-card-header p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
}


.table-responsive {
    width: 100%;

    overflow-x: auto;
}


.data-table {
    width: 100%;

    border-collapse: collapse;

    background: var(--white);
}


.data-table thead {
    background: #f3f6f9;
}


.data-table th {
    padding: 13px 15px;

    border-bottom: 2px solid #d7dde4;

    color: var(--blue-dark);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .5px;

    text-align: left;
    text-transform: uppercase;

    white-space: nowrap;
}


.data-table td {
    padding: 14px 15px;

    border-bottom: 1px solid #e8ebef;

    color: var(--text);

    font-size: 13px;

    vertical-align: middle;
}


.data-table tbody tr:hover {
    background: #f7fafd;
}


.data-table tbody tr:last-child td {
    border-bottom: 0;
}


.table-actions {
    display: flex;
    align-items: center;

    gap: 7px;

    flex-wrap: wrap;
}


.empty-state {
    padding: 45px 20px !important;

    background: #fbfcfd;

    color: var(--text-muted) !important;

    text-align: center;
}


/* ============================================================
   19. GENERIC BADGES
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;

    min-height: 25px;

    padding: 4px 9px;

    border: 1px solid transparent;
    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}


.badge-success {
    background: var(--green-light);

    border-color: #bfdfcc;

    color: #1d6840;
}


.badge-danger {
    background: var(--red-light);

    border-color: #efc4c7;

    color: var(--red-dark);
}


.badge-warning {
    background: var(--gold-light);

    border-color: #ead79d;

    color: #765510;
}


.badge-info {
    background: var(--blue-light);

    border-color: #c7daec;

    color: var(--blue-dark);
}


/* ============================================================
   20. USER MANAGEMENT PAGE
   ============================================================ */

.users-page {
    width: 100%;

    max-width: 1450px;
}


/* ============================================================
   21. USER MANAGEMENT HERO
   ============================================================ */

.users-hero {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    overflow: hidden;

    margin-bottom: 25px;

    padding: 27px 28px;

    background:
        linear-gradient(
            115deg,
            #ffffff 0%,
            #ffffff 54%,
            var(--blue-light) 100%
        );

    border: 1px solid var(--border);
    border-radius: 10px;

    box-shadow:
        0 4px 14px rgba(20, 35, 50, .06);
}


.users-hero::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--blue) 0 58%,
            var(--gold) 58% 79%,
            var(--red) 79% 100%
        );
}


.users-hero::after {
    content: "";

    position: absolute;

    right: 250px;
    top: -100px;

    width: 220px;
    height: 220px;

    background:
        rgba(18, 59, 105, .025);

    border-radius: 50%;

    pointer-events: none;
}


.users-hero-copy {
    position: relative;

    z-index: 2;
}


.users-eyebrow {
    display: inline-block;

    margin-bottom: 5px;

    color: var(--red);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}


.users-hero h1 {
    margin: 0 0 7px;

    color: var(--blue-dark);

    font-size: 29px;
}


.users-hero p {
    max-width: 600px;

    margin: 0;

    color: var(--text-secondary);
}


/* ============================================================
   22. USER HERO ACTIONS
   ============================================================ */

.users-hero-actions {
    position: relative;

    z-index: 2;

    display: flex;
    align-items: center;

    gap: 17px;

    flex-shrink: 0;
}


.active-user-count {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 9px 13px;

    background: var(--white);

    border: 1px solid #d5dde5;
    border-radius: 30px;

    color: var(--text-secondary);

    font-size: 12px;

    white-space: nowrap;
}


.active-user-count strong {
    color: var(--heading);

    font-size: 14px;
}


.active-user-dot {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    background: var(--green);

    border-radius: 50%;

    box-shadow:
        0 0 0 3px rgba(39, 120, 74, .12);
}


/* ============================================================
   23. PROMINENT CREATE USER BUTTON
   ============================================================ */

.create-user-main {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 195px;

    padding: 11px 17px 11px 11px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--blue-dark)
        );

    border: 1px solid var(--blue-dark);
    border-radius: 8px;

    color: var(--white);

    box-shadow:
        0 5px 13px rgba(18, 59, 105, .18);

    text-decoration: none;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.create-user-main:hover {
    transform: translateY(-2px);

    color: var(--white);

    box-shadow:
        0 8px 18px rgba(18, 59, 105, .23);
}


.create-user-icon {
    width: 37px;
    height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background:
        rgba(255, 255, 255, .12);

    border-radius: 7px;

    color: var(--gold);

    font-size: 27px;
    font-weight: 300;

    line-height: 1;
}


.create-user-text {
    display: block;
}


.create-user-text strong {
    display: block;

    color: var(--white);

    font-size: 14px;
}


.create-user-text small {
    display: block;

    margin-top: 1px;

    color:
        rgba(255, 255, 255, .70);

    font-size: 10px;
}


/* ============================================================
   24. USER DIRECTORY CARD
   ============================================================ */

.user-directory-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 10px;

    box-shadow:
        0 4px 15px rgba(20, 35, 50, .055);
}


.user-directory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 21px 24px;

    background:
        linear-gradient(
            105deg,
            var(--blue-light) 0%,
            #ffffff 55%,
            var(--gold-light) 100%
        );

    border-bottom: 1px solid #d8e0e7;
}


.directory-label {
    display: block;

    margin-bottom: 3px;

    color: var(--red);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


.user-directory-header h2 {
    margin: 0 0 3px;

    color: var(--blue-dark);

    font-size: 19px;
}


.user-directory-header p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 12px;
}
/* ============================================================
   25. USER ROLE LEGEND
   ============================================================ */

.directory-key {
    display: flex;
    align-items: center;

    gap: 17px;

    padding: 8px 12px;

    background:
        rgba(255, 255, 255, .78);

    border: 1px solid
        rgba(205, 213, 221, .85);

    border-radius: 30px;

    color: var(--text-secondary);

    font-size: 11px;

    white-space: nowrap;
}


.directory-key span {
    display: inline-flex;
    align-items: center;

    gap: 6px;
}


.key-dot {
    display: inline-block;

    width: 7px;
    height: 7px;

    border-radius: 50%;
}


.key-blue {
    background: var(--blue);
}


.key-red {
    background: var(--red);
}


/* ============================================================
   26. USER DIRECTORY TABLE WRAPPER
   ============================================================ */

.users-table-wrapper {
    width: 100%;

    overflow-x: auto;

    background: var(--white);
}


/* ============================================================
   27. USER DIRECTORY TABLE
   ============================================================ */

.users-table {
    width: 100%;

    min-width: 1080px;

    border-collapse: collapse;

    background: var(--white);
}


.users-table thead {
    background:
        linear-gradient(
            180deg,
            #f8f9fb,
            #f2f5f7
        );
}


.users-table th {
    padding: 13px 15px;

    border-bottom:
        1px solid #d7dde4;

    color: #526171;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .6px;

    text-align: left;

    text-transform: uppercase;

    white-space: nowrap;
}


.users-table td {
    padding: 15px;

    border-bottom:
        1px solid #e8ebef;

    color: var(--text);

    font-size: 13px;

    vertical-align: middle;
}


.users-table tbody tr:last-child td {
    border-bottom: 0;
}


/*
   Alternating pastel treatments.

   Blue and red are deliberately subtle so
   the table remains suitable for daily use.
*/

.users-table tbody tr:nth-child(odd) {
    background:
        linear-gradient(
            90deg,
            rgba(237, 244, 251, .58),
            rgba(255, 255, 255, 1) 48%
        );
}


.users-table tbody tr:nth-child(even) {
    background:
        linear-gradient(
            90deg,
            rgba(251, 234, 236, .34),
            rgba(255, 255, 255, 1) 48%
        );
}


.users-table tbody tr {
    transition:
        background var(--transition),
        box-shadow var(--transition);
}


.users-table tbody tr:hover {
    background:
        linear-gradient(
            90deg,
            #f2f7fc,
            #ffffff
        );

    box-shadow:
        inset 4px 0 0 var(--gold);
}


/*
   Role-specific row accents
*/

.users-table tbody tr.user-row-admin {
    box-shadow:
        inset 3px 0 0
        rgba(18, 59, 105, .55);
}


.users-table tbody tr.user-row-staff {
    box-shadow:
        inset 3px 0 0
        rgba(181, 34, 42, .38);
}


.users-table tbody tr.user-row-admin:hover,
.users-table tbody tr.user-row-staff:hover {
    box-shadow:
        inset 4px 0 0 var(--gold);
}


/* ============================================================
   28. USER NAME / IDENTITY
   ============================================================ */

.user-name-cell {
    min-width: 225px;

    display: flex;
    align-items: center;

    gap: 11px;
}


.user-avatar {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background:
        linear-gradient(
            145deg,
            var(--blue-light),
            #dceaf7
        );

    border: 1px solid #cadcec;
    border-radius: 9px;

    color: var(--blue-dark);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .5px;
}


.user-row-staff .user-avatar {
    background:
        linear-gradient(
            145deg,
            var(--red-light),
            #f8dfe1
        );

    border-color: #efcdd0;

    color: var(--red-dark);
}


.user-identity {
    min-width: 0;
}


.user-identity strong {
    display: block;

    overflow: hidden;

    color: var(--heading);

    font-size: 13px;
    font-weight: 700;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.you-label {
    display: inline-block;

    margin-top: 3px;

    color: var(--text-muted);

    font-size: 9px;

    letter-spacing: .4px;

    text-transform: uppercase;
}


/* ============================================================
   29. USERNAME DISPLAY
   ============================================================ */

.username-value {
    display: inline-block;

    padding: 5px 8px;

    background: #f3f5f7;

    border: 1px solid #e0e4e8;
    border-radius: 5px;

    color: #44515f;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 11px;
}


/* ============================================================
   30. ROLE PILLS
   ============================================================ */

.role-pill {
    display: inline-flex;
    align-items: center;

    min-height: 27px;

    padding: 5px 10px;

    border: 1px solid transparent;
    border-radius: 20px;

    font-size: 10px;
    font-weight: 750;

    white-space: nowrap;
}


.role-admin {
    background: var(--blue-light);

    border-color: #c9dced;

    color: var(--blue-dark);
}


.role-staff {
    background: var(--red-light);

    border-color: #efcdd0;

    color: var(--red-dark);
}


/* ============================================================
   31. ACCOUNT STATUS
   ============================================================ */

.account-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    min-height: 27px;

    padding: 5px 9px;

    border: 1px solid transparent;
    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}


.account-status .status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;
}


.account-status.status-active {
    background: var(--green-light);

    border-color: #c3dfce;

    color: #21653f;
}


.account-status.status-active .status-dot {
    background: var(--green);

    box-shadow:
        0 0 0 2px
        rgba(39, 120, 74, .10);
}


.account-status.status-disabled {
    background: var(--red-light);

    border-color: #edc7ca;

    color: var(--red-dark);
}


.account-status.status-disabled .status-dot {
    background: var(--red);
}


/* ============================================================
   32. PASSWORD STATUS
   ============================================================ */

.password-state {
    display: inline-flex;
    align-items: center;

    min-height: 27px;

    padding: 5px 9px;

    border: 1px solid transparent;
    border-radius: 5px;

    font-size: 10px;
    font-weight: 650;

    white-space: nowrap;
}


.password-pending {
    background: var(--gold-light);

    border-color: #ead9a3;

    color: #795913;
}


.password-set {
    background: var(--blue-light);

    border-color: #cfdeec;

    color: var(--blue-dark);
}


/* ============================================================
   33. LAST LOGIN
   ============================================================ */

.last-login-cell strong {
    display: block;

    color: var(--heading);

    font-size: 11px;
}


.last-login-cell small {
    display: block;

    margin-top: 2px;

    color: var(--text-muted);

    font-size: 10px;
}


.never-login {
    color: var(--text-muted);

    font-size: 11px;

    font-style: italic;
}


/* ============================================================
   34. USER ACCOUNT ACTIONS
   ============================================================ */

.actions-heading {
    text-align: right !important;
}


.user-actions-cell {
    min-width: 205px;

    text-align: right;
}


.user-action-group {
    display: flex;
    justify-content: flex-end;

    gap: 6px;

    flex-wrap: wrap;
}


.user-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 31px;

    padding: 6px 9px;

    border: 1px solid;
    border-radius: 5px;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}


.user-action:hover {
    transform: translateY(-1px);
}


/* Password reset */

.reset-action {
    background: var(--white);

    border-color: #c9d8e6;

    color: var(--blue);
}


.reset-action:hover {
    background: var(--blue-light);

    color: var(--blue-dark);

    box-shadow:
        0 2px 5px
        rgba(18, 59, 105, .10);
}


/* Disable account */

.disable-action {
    background: var(--white);

    border-color: #ebc8cb;

    color: var(--red);
}


.disable-action:hover {
    background: var(--red-light);

    color: var(--red-dark);
}


/* Enable account */

.enable-action {
    background: var(--white);

    border-color: #c5ddcf;

    color: var(--green);
}


.enable-action:hover {
    background: var(--green-light);

    color: var(--green-dark);
}


.current-account-note {
    display: inline-flex;

    padding: 5px 8px;

    background: #f1f3f5;

    border: 1px solid #e1e4e7;
    border-radius: 5px;

    color: var(--text-muted);

    font-size: 10px;
}


/* ============================================================
   35. EMPTY USER DIRECTORY
   ============================================================ */

.users-empty-state {
    padding: 55px 25px;

    text-align: center;
}


.users-empty-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 14px;

    background: var(--blue-light);

    border: 1px solid #d1e0ee;
    border-radius: 50%;

    color: var(--blue);

    font-size: 27px;
}


.users-empty-state h3 {
    margin: 0 0 6px;

    color: var(--blue-dark);
}


.users-empty-state p {
    margin: 0 0 17px;

    color: var(--text-secondary);
}


/* ============================================================
   36. CREATE USER PAGE
   ============================================================ */

.create-user-page {
    width: 100%;

    max-width: 1250px;
}


.create-user-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 26px;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);
}


.create-user-top h1 {
    margin: 3px 0 7px;

    color: var(--blue-dark);
}


.create-user-top p {
    margin: 0;

    color: var(--text-secondary);
}


.back-users-link {
    display: inline-flex;
    align-items: center;

    padding: 9px 13px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 6px;

    color: var(--blue);

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
}


.back-users-link:hover {
    background: var(--blue-light);

    border-color: #cbdbea;

    color: var(--blue-dark);
}


/* ============================================================
   37. CREATE USER TWO-COLUMN LAYOUT
   ============================================================ */

.create-user-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(285px, .75fr);

    gap: 22px;

    align-items: start;
}


/* ============================================================
   38. CREATE USER MAIN CARD
   ============================================================ */

.create-user-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 10px;

    box-shadow: var(--shadow);
}


.create-user-card::before {
    content: "";

    display: block;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--blue) 0 55%,
            var(--gold) 55% 78%,
            var(--red) 78% 100%
        );
}


.create-user-card-heading {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 22px 25px;

    background:
        linear-gradient(
            100deg,
            var(--blue-light),
            #ffffff 72%
        );

    border-bottom: 1px solid var(--border);
}


.form-step-number {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background:
        linear-gradient(
            145deg,
            var(--blue),
            var(--blue-dark)
        );

    border-radius: 50%;

    color: var(--white);

    font-size: 12px;
    font-weight: 750;

    box-shadow:
        0 3px 8px
        rgba(18, 59, 105, .16);
}


.create-user-card-heading h2 {
    margin: 0 0 4px;

    color: var(--blue-dark);

    font-size: 18px;
}


.create-user-card-heading p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
}


.create-user-card form {
    padding: 27px 26px 25px;
}


/* ============================================================
   39. CREATE USER ROLE SELECTOR
   ============================================================ */

.role-selector {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;

    margin-top: 8px;
}


.role-choice {
    position: relative;

    display: block;

    min-height: 115px;

    padding: 17px;

    background: #fafbfd;

    border: 1px solid var(--border);
    border-radius: 8px;

    cursor: pointer;

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}


.role-choice:hover {
    transform: translateY(-1px);

    background: #f7fafd;

    border-color: #b9cadb;
}


.role-choice input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.role-choice-selected {
    background:
        linear-gradient(
            135deg,
            var(--blue-light),
            #ffffff
        );

    border-color: var(--blue);

    box-shadow:
        0 0 0 2px
        rgba(18, 59, 105, .07);
}


.role-choice-content {
    display: block;
}


.role-choice-title {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 7px;

    color: var(--heading);

    font-weight: 700;
}


.role-choice-dot {
    width: 9px;
    height: 9px;

    flex-shrink: 0;

    border-radius: 50%;
}


.staff-dot {
    background: var(--red);
}


.admin-dot {
    background: var(--blue);
}


.role-choice-description {
    display: block;

    color: var(--text-secondary);

    font-size: 12px;

    line-height: 1.5;
}


/* ============================================================
   40. CREATE ACCOUNT ACTION
   ============================================================ */

.create-user-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 29px;

    padding-top: 21px;

    border-top: 1px solid var(--border);
}


.create-account-button {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    min-height: 45px;

    padding: 9px 19px 9px 10px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--blue-dark)
        );

    border: 1px solid var(--blue-dark);
    border-radius: 7px;

    color: var(--white);

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 4px 10px
        rgba(18, 59, 105, .16);

    transition:
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}
.create-account-button:hover {
    transform: translateY(-1px);

    background: var(--blue-dark);

    box-shadow:
        0 6px 14px
        rgba(18, 59, 105, .20);
}
.create-account-plus {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background:
        rgba(255, 255, 255, .13);

    border: 1px solid
        rgba(255, 255, 255, .12);

    border-radius: 5px;

    color: var(--gold);

    font-size: 21px;
    font-weight: 400;

    line-height: 1;
}


/* ============================================================
   41. NEW ACCOUNT INFORMATION CARD
   ============================================================ */

.new-account-info {
    position: relative;

    overflow: hidden;

    padding: 25px 23px;

    background:
        linear-gradient(
            155deg,
            #ffffff 0%,
            var(--gold-soft) 48%,
            var(--gold-light) 100%
        );

    border: 1px solid #eadcad;
    border-radius: 10px;

    box-shadow:
        0 4px 14px
        rgba(90, 68, 15, .06);
}


.account-info-accent {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--gold) 0 55%,
            var(--red) 55% 75%,
            var(--blue) 75% 100%
        );
}


.account-info-label {
    display: inline-block;

    margin-bottom: 5px;

    color: var(--gold-dark);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


.new-account-info h2 {
    margin: 0 0 8px;

    color: var(--blue-dark);

    font-size: 19px;
}


.new-account-info > p {
    margin: 0 0 20px;

    color: var(--text-secondary);

    font-size: 12px;

    line-height: 1.55;
}


/* ============================================================
   42. TEMPORARY PASSWORD DISPLAY
   ============================================================ */

.temporary-password-box {
    margin-bottom: 24px;

    padding: 15px 16px;

    background: var(--white);

    border: 1px solid #e3d39f;
    border-left: 4px solid var(--gold);

    border-radius: 7px;

    box-shadow:
        0 2px 6px
        rgba(90, 68, 15, .05);
}


.temporary-password-box span {
    display: block;

    margin-bottom: 5px;

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .7px;

    text-transform: uppercase;
}


.temporary-password-box strong {
    display: block;

    color: var(--blue-dark);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 20px;
    font-weight: 750;

    letter-spacing: .7px;
}


/* ============================================================
   43. FIRST LOGIN PROCESS
   ============================================================ */

.account-process {
    position: relative;

    margin-top: 5px;
}


.process-item {
    display: flex;
    align-items: flex-start;

    gap: 12px;
}


.process-number {
    position: relative;

    z-index: 2;

    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: var(--white);

    border: 2px solid var(--blue);
    border-radius: 50%;

    color: var(--blue);

    font-size: 10px;
    font-weight: 800;
}


.process-item:nth-of-type(3) .process-number {
    border-color: var(--gold);

    color: var(--gold-dark);
}


.process-item:nth-of-type(5) .process-number {
    border-color: var(--red);

    color: var(--red);
}


.process-item strong {
    display: block;

    margin-top: 2px;

    color: var(--heading);

    font-size: 12px;
}


.process-item p {
    margin: 3px 0 0;

    color: var(--text-secondary);

    font-size: 11px;

    line-height: 1.45;
}


.process-line {
    width: 2px;
    height: 24px;

    margin:
        3px 0
        3px 13px;

    background:
        linear-gradient(
            180deg,
            #cad7e4,
            #e2d5a9
        );
}


/* ============================================================
   44. ACCOUNT SECURITY NOTE
   ============================================================ */

.account-security-note {
    margin-top: 22px;

    padding: 12px 13px;

    background:
        rgba(181, 34, 42, .055);

    border: 1px solid
        rgba(181, 34, 42, .14);

    border-left: 3px solid var(--red);

    border-radius: 6px;

    color: #72464a;

    font-size: 10px;

    line-height: 1.5;
}


/* ============================================================
   45. SEARCH INTERFACE
   ============================================================ */

.search-bar {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 22px;

    padding: 17px;

    background: var(--white);

    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);
}


.search-bar input {
    flex: 1;

    min-width: 0;

    padding: 10px 12px;

    background: var(--white);

    border: 1px solid var(--border-dark);
    border-radius: 6px;

    color: var(--text);
}


.search-bar input:focus {
    outline: none;

    border-color: var(--blue);

    box-shadow:
        0 0 0 3px
        rgba(18, 59, 105, .09);
}


/* ============================================================
   46. APPLICATION / RECORD CARDS
   ============================================================ */

.record-card {
    overflow: hidden;

    margin-bottom: 15px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);
}


.record-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 16px 18px;

    background:
        linear-gradient(
            100deg,
            var(--blue-light),
            #ffffff
        );

    border-bottom: 1px solid var(--border);
}


.record-card-header h3 {
    margin: 0;

    color: var(--blue-dark);

    font-size: 15px;
}


.record-card-body {
    padding: 18px;
}


.record-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));

    gap: 17px;
}


.record-field span {
    display: block;

    margin-bottom: 3px;

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .5px;

    text-transform: uppercase;
}


.record-field strong {
    color: var(--heading);

    font-size: 13px;
}


/* ============================================================
   47. APPLICATION STATUS
   ============================================================ */

.application-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 5px 9px;

    border: 1px solid transparent;
    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}


.status-draft {
    background: var(--gold-light);

    border-color: #e8d496;

    color: #785712;
}


.status-submitted {
    background: var(--blue-light);

    border-color: #c7daec;

    color: var(--blue-dark);
}


/* ============================================================
   48. APPLICATION FORM SECTION
   ============================================================ */

.application-form {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}


.application-section {
    padding: 25px;

    border-bottom: 1px solid var(--border);
}


.application-section:last-child {
    border-bottom: 0;
}


.application-section-heading {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    margin-bottom: 22px;
}


.application-section-number {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: var(--blue-light);

    border: 1px solid #cbddec;
    border-radius: 50%;

    color: var(--blue);

    font-size: 10px;
    font-weight: 800;
}


.application-section-heading h2 {
    margin: 0 0 4px;

    color: var(--blue-dark);

    font-size: 17px;
}


.application-section-heading p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 12px;
}


/* ============================================================
   49. APPLICATION FORM FOOTER / SAVE DRAFT
   ============================================================ */

.application-actions {
    position: sticky;

    bottom: 0;

    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 16px 20px;

    background:
        rgba(255, 255, 255, .96);

    border-top: 1px solid var(--border);

    box-shadow:
        0 -5px 16px
        rgba(20, 35, 50, .06);

    backdrop-filter: blur(5px);
}


.application-actions-left,
.application-actions-right {
    display: flex;
    align-items: center;

    gap: 9px;
}


/* ============================================================
   50. ADMIN INFORMATION BOX
   ============================================================ */

.admin-info {
    margin-bottom: 22px;

    padding: 15px 17px;

    background:
        linear-gradient(
            100deg,
            var(--gold-light),
            #ffffff
        );

    border: 1px solid #ead9a8;
    border-left: 4px solid var(--gold);

    border-radius: var(--radius);

    color: #5c4a1e;

    font-size: 12px;
}


/* ============================================================
   51. FOOTER
   ============================================================ */

.site-footer {
    margin-top: 40px;

    padding: 20px 0;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 11px;
}


.site-footer::before {
    content: "";

    display: block;

    width: 72px;
    height: 3px;

    margin-bottom: 13px;

    background:
        linear-gradient(
            90deg,
            var(--red) 0 33%,
            var(--gold) 33% 66%,
            var(--blue) 66% 100%
        );

    border-radius: 4px;
}


/* ============================================================
   52. RESPONSIVE — LARGE TABLETS
   ============================================================ */

@media (max-width: 1180px) {

    .users-hero {
        align-items: flex-start;
    }


    .users-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }


    .active-user-count {
        justify-content: center;
    }


    .create-user-layout {
        grid-template-columns:
            minmax(0, 1.35fr)
            minmax(260px, .75fr);
    }

}


/* ============================================================
   53. RESPONSIVE — TABLETS
   ============================================================ */

@media (max-width: 980px) {

    :root {
        --sidebar-width: 205px;
    }


    .content {
        padding: 25px;
    }


    .page-header {
        flex-direction: column;
    }


    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }


    .users-hero {
        flex-direction: column;
        align-items: stretch;
    }


    .users-hero-actions {
        flex-direction: row;
        justify-content: space-between;
    }


    .create-user-layout {
        grid-template-columns: 1fr;
    }


    .new-account-info {
        max-width: none;
    }


    .role-selector {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ============================================================
   54. RESPONSIVE — SMALL TABLETS / LARGE PHONES
   ============================================================ */

@media (max-width: 760px) {

    .topbar {
        padding: 0 17px;
    }


    .topbar > div:first-child {
        font-size: 13px;
    }


    .app-layout {
        display: block;
    }


    .sidebar {
        width: 100%;

        padding: 10px;

        border-right: 0;
        border-bottom: 1px solid var(--border);
    }


    .sidebar::after {
        display: none;
    }


    .sidebar nav {
        display: flex;

        gap: 5px;

        overflow-x: auto;

        padding-bottom: 3px;
    }


    .sidebar a {
        flex-shrink: 0;

        margin: 0;

        padding: 8px 11px;

        font-size: 12px;
    }


    .sidebar a.active::before {
        top: auto;
        bottom: 0;
        left: 9px;

        width: calc(100% - 18px);
        height: 3px;
    }


    .nav-heading {
        display: none;
    }


    .content {
        padding: 20px 16px;
    }


    .quick-grid {
        grid-template-columns: 1fr;
    }


    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .users-hero {
        padding: 23px 20px;
    }


    .users-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }


    .create-user-main {
        justify-content: center;

        width: 100%;
    }


    .active-user-count {
        justify-content: center;
    }


    .user-directory-header {
        flex-direction: column;
        align-items: flex-start;
    }


    .directory-key {
        align-self: stretch;

        justify-content: center;
    }


    .create-user-top {
        flex-direction: column;
    }


    .role-selector {
        grid-template-columns: 1fr;
    }


    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }


    .application-actions {
        position: static;

        flex-direction: column;
        align-items: stretch;
    }


    .application-actions-left,
    .application-actions-right {
        width: 100%;
    }


    .application-actions .btn {
        flex: 1;
    }

}


/* ============================================================
   55. RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 520px) {

    body {
        font-size: 14px;
    }


    h1 {
        font-size: 24px;
    }


    .login-body {
        padding: 25px 13px;
    }


    .login-card {
        padding: 31px 23px 26px;
    }


    .topbar {
        min-height: 62px;
    }


    .topbar > div:last-child {
        font-size: 11px;
    }


    .content {
        padding: 17px 12px;
    }


    .stats-grid {
        grid-template-columns: 1fr;
    }


    .users-hero h1 {
        font-size: 24px;
    }


    .users-hero {
        padding: 21px 17px;
    }


    .directory-key {
        flex-direction: column;
        align-items: flex-start;

        border-radius: 7px;
    }


    .create-user-card form {
        padding: 21px 18px;
    }


    .create-user-card-heading {
        padding: 19px 18px;
    }


    .create-user-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }


    .create-user-actions .btn,
    .create-account-button {
        width: 100%;
    }


    .create-account-button {
        justify-content: center;
    }


    .new-account-info {
        padding: 22px 18px;
    }


    .record-grid {
        grid-template-columns: 1fr;
    }


    .application-section {
        padding: 20px 17px;
    }


    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }


    .form-actions .btn {
        width: 100%;
    }

}


/* ============================================================
   56. PRINT
   ============================================================ */

@media print {

    body {
        background: white;
    }


    .topbar,
    .sidebar,
    .application-actions,
    .user-action-group,
    .create-user-main,
    .back-users-link {
        display: none !important;
    }


    .app-layout {
        display: block;
    }


    .content {
        padding: 0 !important;

        background: white !important;
    }


    .user-directory-card,
    .table-card,
    .record-card,
    .application-form,
    .form-card {
        border: 1px solid #cccccc;

        box-shadow: none !important;
    }


    .users-table,
    .data-table {
        font-size: 10px;
    }


    a {
        color: black;

        text-decoration: none;
    }

}

/* ============================================================
   TOP NAVIGATION APPLICATION SHELL
   Replaces the retired sidebar navigation
   ============================================================ */

.portal-brand-header {
    position: relative;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    background: var(--white);
    border-bottom: 1px solid #e3e7eb;
}

.portal-brand-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--blue) 0 56%,
        var(--gold) 56% 78%,
        var(--red) 78% 100%
    );
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.portal-brand-mark {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--blue-light);
    border: 2px solid var(--blue);
    border-radius: 50%;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3px;
}

.portal-brand-copy strong {
    display: block;
    color: var(--blue-dark);
    font-size: 15px;
    font-weight: 700;
}

.portal-brand-copy span {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 10px;
}

.portal-system-status {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    background: var(--green-light);
    border: 1px solid #c7e0d1;
    border-radius: 30px;
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 700;
}

.system-status-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(39, 120, 74, .10);
}

/* Main navigation */

.top-navigation {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 55px;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue));
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 12px rgba(9, 43, 80, .12);
}

.top-navigation-inner {
    width: 100%;
    max-width: 1600px;
    min-height: 52px;
    display: flex;
    align-items: stretch;
    margin: 0 auto;
    padding: 0 27px;
}

.top-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 17px;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.top-nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--white);
}

.top-nav-active {
    background: rgba(255, 255, 255, .10);
    color: var(--white);
}

.top-nav-active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 4px 4px 0 0;
}

.top-nav-button {
    appearance: none;
}

.nav-chevron {
    margin-left: 7px;
    font-size: 9px;
    opacity: .75;
}

/* Dropdowns */

.top-nav-dropdown {
    position: relative;
    display: flex;
}

.top-nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
}

.top-nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1100;
    width: 285px;
    padding: 7px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-5px);
    background: var(--white);
    border: 1px solid #d9e0e6;
    border-radius: 9px;
    box-shadow: 0 14px 35px rgba(15, 35, 55, .16);
    transition: opacity 130ms ease, transform 130ms ease, visibility 130ms ease;
}

.top-nav-dropdown:hover > .top-nav-menu,
.top-nav-dropdown:focus-within > .top-nav-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.top-nav-menu::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 28px;
    width: 10px;
    height: 10px;
    background: var(--white);
    border-left: 1px solid #d9e0e6;
    border-top: 1px solid #d9e0e6;
    transform: rotate(45deg);
}

.top-nav-menu > a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border-radius: 6px;
    color: var(--text);
    transition: background 140ms ease, color 140ms ease;
}

.top-nav-menu > a:hover {
    background: var(--blue-light);
    color: var(--blue-dark);
}

.top-nav-menu > a + a {
    margin-top: 3px;
}

.dropdown-copy {
    min-width: 0;
}

.top-nav-menu strong {
    display: block;
    color: inherit;
    font-size: 11px;
    font-weight: 700;
}

.top-nav-menu small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 9px;
}

.dropdown-featured {
    background: linear-gradient(100deg, var(--blue-light), #ffffff);
    border: 1px solid #d9e6f1;
}

.dropdown-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
}

.blue-icon {
    background: var(--blue-light);
    color: var(--blue);
}

.gold-icon {
    background: var(--gold-light);
    color: var(--gold-dark);
}

.red-icon {
    background: var(--red-light);
    color: var(--red);
}

/* Account / logout */

.top-nav-account {
    display: flex;
    align-items: stretch;
    margin-left: auto;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, .10);
}

.account-button {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 185px;
    padding: 5px 10px;
    background: transparent;
    border: 0;
    color: var(--white);
    cursor: pointer;
    transition: background 150ms ease;
}

.account-button:hover {
    background: rgba(255, 255, 255, .07);
}

.account-button-avatar {
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 8px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 800;
}

.account-button-copy {
    min-width: 0;
    text-align: left;
}

.account-button-copy strong {
    display: block;
    max-width: 125px;
    overflow: hidden;
    color: var(--white);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-button-copy small {
    display: block;
    margin-top: 1px;
    color: rgba(255, 255, 255, .64);
    font-size: 8px;
}

.account-menu {
    left: auto;
    right: 0;
    width: 265px;
}

.account-menu::before {
    left: auto;
    right: 27px;
}

.account-menu-header {
    margin-bottom: 6px;
    padding: 10px;
    background: linear-gradient(100deg, var(--blue-light), #ffffff);
    border-radius: 6px;
}

.account-menu-header strong {
    color: var(--blue-dark);
    font-size: 11px;
}

.account-menu-header span {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 9px;
}

.logout-menu-item {
    border-top: 1px solid var(--border);
}

/* Main top-navigation content */

.top-layout-content {
    width: 100%;
    min-height: calc(100vh - 127px);
    padding: 31px 34px 45px;
    background: linear-gradient(135deg, #f7f8fa, #f3f6f8);
}

.top-layout-content > * {
    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.top-layout-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 34px;
    background: var(--white);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 9px;
}

/* Responsive top navigation */

@media (max-width: 900px) {
    .portal-brand-header {
        padding: 0 20px;
    }

    .top-navigation-inner {
        overflow-x: auto;
        padding: 0 15px;
    }

    .top-nav-link {
        padding: 0 12px;
    }

    .account-button {
        min-width: 150px;
    }

    .top-layout-content {
        padding: 25px 20px 40px;
    }
}

@media (max-width: 700px) {
    .portal-brand-header {
        height: 64px;
        padding: 0 14px;
    }

    .portal-brand-mark {
        width: 38px;
        height: 38px;
    }

    .portal-brand-copy strong {
        font-size: 12px;
    }

    .portal-brand-copy span,
    .portal-system-status {
        display: none;
    }

    .top-navigation-inner {
        padding: 0 8px;
    }

    .top-nav-link {
        min-height: 48px;
        padding: 0 11px;
        font-size: 11px;
    }

    .account-button {
        min-width: auto;
        padding: 5px 8px;
    }

    .account-button-copy {
        display: none;
    }

    .top-nav-account {
        padding-left: 5px;
    }

    .top-nav-menu {
        position: fixed;
        top: 116px;
        left: 12px;
        right: 12px;
        width: auto;
    }

    .account-menu {
        left: 12px;
        right: 12px;
        width: auto;
    }

    .top-nav-menu::before {
        display: none;
    }

    .top-layout-content {
        min-height: calc(100vh - 115px);
        padding: 20px 14px 35px;
    }

    .top-layout-footer {
        padding: 12px 14px;
    }
}

@media print {
    .portal-brand-header,
    .top-navigation,
    .top-layout-footer {
        display: none !important;
    }

    .top-layout-content {
        min-height: 0;
        padding: 0 !important;
        background: #ffffff !important;
    }
}


/* ============================================================
   END OF FILE
   ============================================================ */
/* ============================================================
   DASHBOARD V2
   ============================================================ */

.dashboard-page {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
}


/* Welcome */

.dashboard-welcome {
    position: relative;

    overflow: hidden;

    margin-bottom: 28px;

    padding: 28px 30px;

    background:
        linear-gradient(
            110deg,
            var(--blue-light) 0%,
            #ffffff 58%,
            var(--gold-light) 100%
        );

    border: 1px solid #d5e1ec;
    border-left: 5px solid var(--blue);

    border-radius: 10px;

    box-shadow: var(--shadow-sm);
}


.dashboard-welcome::after {
    content: "";

    position: absolute;

    right: -40px;
    top: -100px;

    width: 250px;
    height: 250px;

    border: 35px solid
        rgba(18, 59, 105, .035);

    border-radius: 50%;
}


.dashboard-eyebrow,
.section-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: var(--red);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


.dashboard-welcome h1 {
    position: relative;

    z-index: 1;

    margin: 0 0 5px;

    color: var(--blue-dark);
}


.dashboard-welcome p {
    position: relative;

    z-index: 1;

    margin: 0;

    color: var(--text-secondary);
}


/* Sections */

.dashboard-section {
    margin-bottom: 32px;
}


.dashboard-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 15px;
}


.dashboard-section-heading h2 {
    margin: 0;

    color: var(--blue-dark);

    font-size: 18px;
}


/* Quick cards */

.dashboard-page .quick-grid {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 17px;
}


.dashboard-page .quick-card {
    min-height: 145px;

    display: flex;
    align-items: flex-start;

    gap: 15px;

    padding: 22px;

    border-radius: 9px;
}


.dashboard-page .quick-card::before {
    height: 4px;
}


.quick-card-icon {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 800;
}


/* Blue */

.quick-card-blue {
    background:
        linear-gradient(
            140deg,
            #ffffff 20%,
            var(--blue-light) 100%
        ) !important;
}


.quick-card-blue::before {
    background: var(--blue) !important;
}


.quick-card-blue .quick-card-icon {
    background: var(--blue);

    color: white;
}


/* Gold */

.quick-card-gold {
    background:
        linear-gradient(
            140deg,
            #ffffff 20%,
            var(--gold-light) 100%
        ) !important;
}


.quick-card-gold::before {
    background: var(--gold) !important;
}


.quick-card-gold .quick-card-icon {
    background: var(--gold);

    color: #3e300d;
}


/* Red */

.quick-card-red {
    background:
        linear-gradient(
            140deg,
            #ffffff 20%,
            var(--red-light) 100%
        ) !important;
}


.quick-card-red::before {
    background: var(--red) !important;
}


.quick-card-red .quick-card-icon {
    background: var(--red);

    color: white;
}


/* Navy */

.quick-card-navy {
    background:
        linear-gradient(
            140deg,
            #ffffff 20%,
            #e8f0f7 100%
        ) !important;
}


.quick-card-navy::before {
    background: var(--blue-dark) !important;
}


.quick-card-navy .quick-card-icon {
    background: var(--blue-dark);

    color: var(--gold);
}


/* Notices */

.dashboard-notices {
    padding: 23px;

    background:
        linear-gradient(
            135deg,
            #eef5fb,
            #f8fafc
        );

    border: 1px solid #d3e0ec;

    border-radius: 10px;
}


.notice-list {
    display: grid;

    gap: 10px;
}


.dashboard-notice {
    position: relative;

    display: flex;

    gap: 14px;

    padding: 18px;

    background: white;

    border: 1px solid #dce3e9;

    border-radius: 7px;

    box-shadow: var(--shadow-sm);
}


.notice-marker {
    width: 4px;

    flex-shrink: 0;

    background: var(--blue);

    border-radius: 5px;
}


.dashboard-notice strong {
    color: var(--blue-dark);
}


.dashboard-notice p {
    margin: 4px 0 0;

    color: var(--text-secondary);

    font-size: 13px;
}


@media (max-width: 1000px) {

    .dashboard-page .quick-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .dashboard-page .quick-grid {
        grid-template-columns: 1fr;
    }


    .dashboard-welcome {
        padding: 22px 20px;
    }

}
.delete-action {
    border: 0;
    background: transparent;

    color: var(--red);

    font: inherit;
    font-size: inherit;
    font-weight: inherit;

    cursor: pointer;
}


.delete-action:hover {
    text-decoration: underline;
}/* ============================================================
   Forgot / reset password (add to the end of assets/css/style.css)
   ============================================================ */

.login-links {
    margin: 16px 0 0;

    color: var(--text-secondary);

    font-size: 13px;

    text-align: center;
}


.login-links a,
.alert a {
    color: var(--blue);

    font-weight: 650;

    text-decoration: none;

    white-space: nowrap;
}


.login-links a:hover,
.alert a:hover {
    text-decoration: underline;
}


.form-group input.code-input {
    font-size: 22px;
    font-weight: 700;

    letter-spacing: .4em;

    text-align: center;

    font-variant-numeric: tabular-nums;
}
/* ============================================================
   Admin sign-in code page (add to the end of assets/css/style.css)
   ============================================================ */

.trust-device {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin: -4px 0 20px;

    color: var(--text);

    font-size: 13px;

    cursor: pointer;
}


.trust-device input {
    width: 16px;
    height: 16px;

    margin-top: 2px;

    flex: 0 0 auto;
}


.trust-device small {
    display: block;

    margin-top: 2px;

    color: var(--text-muted);

    font-size: 12px;
}


.link-button {
    padding: 0;

    background: none;
    border: 0;

    color: var(--blue);

    font-size: inherit;
    font-weight: 650;

    cursor: pointer;
}


.link-button:hover {
    text-decoration: underline;
}
/* ============================================================
   PBORA LOGO HEADER + INSTITUTIONAL FOOTER
   (add to the end of assets/css/style.css)
   ============================================================ */

.portal-brand-header {
    height: 84px;
}

.portal-brand {
    color: inherit;
    text-decoration: none;
}

.portal-brand:hover {
    text-decoration: none;
}

.portal-brand-logo {
    display: block;
    width: auto;
    height: 58px;
}

.portal-brand-divider {
    width: 1px;
    height: 38px;
    margin: 0 4px;
    background: var(--border-dark);
}

.portal-brand-copy strong {
    font-size: 14px;
}

.portal-brand-copy span {
    font-size: 11px;
}


/* Footer */

.portal-footer {
    position: relative;
    margin-top: 0;
    background: var(--blue-deep);
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
}

.portal-footer::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--blue-medium) 0 56%,
        var(--gold) 56% 78%,
        var(--red) 78% 100%
    );
}

.portal-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 34px 34px 26px;
}

.portal-footer-about strong {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-size: 15px;
}

.portal-footer-about p {
    max-width: 420px;
    margin: 0;
    line-height: 1.6;
}

.portal-footer-column h2 {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-footer-column a,
.portal-footer-column span {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.portal-footer-column a:hover {
    color: var(--white);
    text-decoration: underline;
}

.portal-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 34px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
}

@media (max-width: 900px) {
    .portal-brand-logo {
        height: 48px;
    }

    .portal-footer-inner {
        grid-template-columns: 1fr 1fr;
        padding: 28px 20px 20px;
    }

    .portal-footer-about {
        grid-column: 1 / -1;
    }

    .portal-footer-bottom {
        padding: 14px 20px;
    }
}

@media (max-width: 700px) {
    .portal-brand-header {
        height: 66px;
    }

    .portal-brand-logo {
        height: 40px;
    }

    .portal-brand-divider,
    .portal-brand-copy {
        display: none;
    }

    .portal-footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 24px 16px 18px;
    }

    .portal-footer-bottom {
        flex-direction: column;
        gap: 4px;
        padding: 12px 16px;
    }

    .top-nav-menu {
        top: 118px;
    }
}

@media print {
    .portal-footer {
        display: none !important;
    }
}
/* ============================================================
   PBORA BRAND: header, footer and sign-in pages
   Add to the END of assets/css/style.css
   (remove any earlier "PBORA LOGO HEADER" block first)
   ============================================================ */

:root {
    --pbora-blue: #2e4a9c;
    --pbora-blue-dark: #233a7d;
    --pbora-gold: #c0952f;
    --pbora-red: #c8202f;
}


/* ------------------------------------------------------------
   Header: logo and navigation share one white bar
   ------------------------------------------------------------ */

.top-navigation {
    min-height: 84px;
    background: var(--white);
    border-bottom: 1px solid #e3e7ee;
    box-shadow: 0 6px 18px rgba(20, 35, 70, .06);
}

.top-navigation::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--pbora-red) 0 33.33%,
        var(--pbora-gold) 33.33% 66.66%,
        var(--pbora-blue) 66.66% 100%
    );
}

.top-navigation-inner {
    min-height: 84px;
    align-items: center;
    gap: 6px;
    padding: 0 34px;
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 26px;
}

.nav-brand img {
    display: block;
    width: auto;
    height: 60px;
}

.top-nav-dropdown {
    align-self: stretch;
    align-items: center;
}

.top-nav-link {
    min-height: 44px;
    padding: 0 13px;
    border-radius: 6px;
    color: var(--pbora-blue);
    font-size: 14px;
    font-weight: 650;
}

.top-nav-link:hover {
    background: #eef2fb;
    color: var(--pbora-blue-dark);
}

.top-nav-active {
    background: transparent;
    color: var(--pbora-blue-dark);
}

.top-nav-active::after {
    left: 13px;
    right: 13px;
    bottom: -4px;
    height: 3px;
    background: var(--pbora-gold);
    border-radius: 3px;
}

.top-nav-account {
    align-self: stretch;
    border-left: 1px solid #e3e7ee;
}

.account-button {
    color: var(--text);
}

.account-button:hover {
    background: #f3f5fa;
}

.account-button-avatar {
    background: var(--pbora-blue);
    color: var(--white);
}

.account-button-copy strong {
    color: var(--heading);
    font-size: 12px;
}

.account-button-copy small {
    color: var(--text-muted);
    font-size: 10px;
}


/* ------------------------------------------------------------
   Footer (after www.pbora.go.ke)
   ------------------------------------------------------------ */

.top-layout-footer {
    display: none;
}

.pbora-footer {
    margin-top: 40px;
    background: var(--pbora-blue);
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
}

.pbora-footer-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr 1.3fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 34px 34px 30px;
}

.pbora-footer-logo {
    display: inline-flex;
    padding: 10px 14px;
    background: var(--white);
    border-radius: 8px;
}

.pbora-footer-logo img {
    display: block;
    width: auto;
    height: 48px;
}

.pbora-footer-about p {
    max-width: 330px;
    margin: 14px 0 0;
    line-height: 1.6;
}

.pbora-footer-column h2 {
    display: inline-block;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4f7be8;
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
}

.pbora-footer-links,
.pbora-footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pbora-footer-links li {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.pbora-footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    color: var(--white);
    text-decoration: none;
}

.pbora-footer-links a::before {
    content: "";
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border: 2px solid var(--pbora-gold);
    border-radius: 50%;
}

.pbora-footer-links a:hover,
.pbora-footer-contact a:hover {
    color: #ffe7a8;
    text-decoration: underline;
}

.pbora-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 6px 0;
    line-height: 1.55;
}

.pbora-footer-contact svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 2px;
    fill: var(--pbora-gold);
}

.pbora-footer-contact a {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.pbora-footer-copyright {
    padding: 14px 34px;
    background: var(--pbora-gold);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}


/* ------------------------------------------------------------
   Sign-in pages: logo, live background, copyright
   ------------------------------------------------------------ */

.login-body::before {
    z-index: 2;
    background: linear-gradient(
        90deg,
        var(--pbora-red) 0 33.33%,
        var(--pbora-gold) 33.33% 66.66%,
        var(--pbora-blue) 66.66% 100%
    );
}

.login-network {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.login-card {
    z-index: 1;
    backdrop-filter: blur(2px);
}

.login-logo {
    display: block;
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto 18px;
}

.login-copyright {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 11px;
    text-align: center;
    pointer-events: none;
}


/* ------------------------------------------------------------
   Smaller screens
   ------------------------------------------------------------ */

@media (max-width: 1100px) {
    .nav-brand {
        margin-right: 10px;
    }

    .nav-brand img {
        height: 50px;
    }

    .top-nav-link {
        padding: 0 10px;
        font-size: 13px;
    }

    .pbora-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .pbora-footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .top-navigation,
    .top-navigation-inner {
        min-height: 64px;
    }

    .top-navigation-inner {
        padding: 0 8px;
    }

    .nav-brand img {
        height: 40px;
    }

    .top-nav-link {
        min-height: 40px;
        font-size: 12px;
    }

    .top-nav-menu {
        top: 70px;
    }

    .pbora-footer-inner {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 28px 18px 24px;
    }

    .pbora-footer-copyright {
        padding: 12px 18px;
        font-size: 12px;
    }

    .login-body {
        flex-direction: column;
    }

    .login-copyright {
        position: static;
        margin-top: 18px;
    }
}

@media print {
    .pbora-footer,
    .login-network {
        display: none !important;
    }
}
