:root {
    --dh-navy: #0d1b2a;
    --dh-navy-light: #172a3f;
    --dh-gold: #c5a35a;
    --dh-gold-dark: #a98743;
    --dh-bg: #f4f5f7;
    --dh-white: #ffffff;
    --dh-text: #24313d;
    --dh-muted: #73808c;
    --dh-border: #e2e6ea;
    --dh-success: #287a55;
    --dh-success-bg: #edf8f2;
    --dh-danger: #a83b3b;
    --dh-danger-bg: #fdf0f0;
    --dh-shadow: 0 8px 30px rgba(13, 27, 42, 0.08);
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--dh-text);
    background: var(--dh-bg);
    line-height: 1.5;
}


/* =========================================================
   APPLICATION HEADER
   ========================================================= */

.dh-header {
    height: 112px;
    background: var(--dh-white);
    border-bottom: 3px solid var(--dh-gold);
    display: flex;
    align-items: center;
    padding: 0 36px;
    color: var(--dh-navy);
    box-shadow: 0 3px 14px rgba(13, 27, 42, 0.08);
}

.dh-header-inner {
    width: 100%;
    max-width: 1440px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.dh-brand {
    display: flex;
    align-items: center;
    gap: 34px;
}

.dh-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dh-logo {
    display: block;
    width: 220px;
    max-width: 220px;
    max-height: 82px;
    object-fit: contain;
}

.dh-app-name {
    padding-left: 34px;
    border-left: 1px solid var(--dh-gold);
}

.dh-app-name strong {
    display: block;
    color: var(--dh-navy);
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.dh-app-name span {
    display: block;
    color: var(--dh-gold-dark);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.7px;
    margin-top: 5px;
}

.dh-user {
    display: flex;
    align-items: center;
    gap: 22px;
}

.dh-user-details {
    text-align: right;
}

.dh-user-details strong {
    display: block;
    color: var(--dh-navy);
    font-size: 14px;
    line-height: 1.3;
}

.dh-user-details span {
    display: block;
    color: var(--dh-muted);
    font-size: 12px;
    margin-top: 3px;
}


/* =========================================================
   MAIN APPLICATION AREA
   ========================================================= */

.dh-main {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 42px 36px;
}

.dh-page-heading {
    margin-bottom: 30px;
}

.dh-page-heading h1 {
    color: var(--dh-navy);
    font-size: 30px;
    line-height: 1.25;
    font-weight: 600;
    margin: 0 0 8px;
}

.dh-page-heading p {
    color: var(--dh-muted);
    margin: 0;
    font-size: 15px;
}

.dh-page-heading::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    background: var(--dh-gold);
    margin-top: 17px;
}


/* =========================================================
   CARDS
   ========================================================= */

.dh-card {
    background: var(--dh-white);
    border: 1px solid var(--dh-border);
    border-radius: 11px;
    box-shadow: var(--dh-shadow);
    overflow: hidden;
}

.dh-card-body {
    padding: 32px;
}


/* =========================================================
   FORMS
   ========================================================= */

.dh-form-row {
    display: flex;
    gap: 26px;
    align-items: flex-end;
}

.dh-field {
    flex: 1;
}

.dh-field label {
    display: block;
    color: var(--dh-navy);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dh-input {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid #ccd3da;
    border-radius: 6px;
    background: var(--dh-white);
    color: var(--dh-text);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.dh-input::placeholder {
    color: #8d98a3;
}

.dh-input:hover {
    border-color: #b8c0c8;
}

.dh-input:focus {
    border-color: var(--dh-gold);
    box-shadow: 0 0 0 3px rgba(197, 163, 90, 0.15);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.dh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--dh-navy);
    color: var(--dh-white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.1s ease;
}

.dh-button:hover {
    background: var(--dh-navy-light);
}

.dh-button:active {
    transform: translateY(1px);
}

.dh-button-gold {
    background: var(--dh-gold);
    color: var(--dh-navy);
}

.dh-button-gold:hover {
    background: var(--dh-gold-dark);
    color: var(--dh-white);
}


/* Header logout button */

.dh-button-outline {
    background: transparent;
    border: 1px solid var(--dh-gold);
    color: var(--dh-gold-dark);
}

.dh-button-outline:hover {
    background: var(--dh-gold);
    border-color: var(--dh-gold);
    color: var(--dh-white);
}


/* =========================================================
   TABLES
   ========================================================= */

.dh-table-wrap {
    margin-top: 28px;
    border: 1px solid var(--dh-border);
    border-radius: 7px;
    overflow: hidden;
    background: var(--dh-white);
}

.dh-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dh-white);
}

.dh-table th {
    padding: 13px 16px;
    background: #f0f2f4;
    color: var(--dh-navy);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    border-bottom: 1px solid var(--dh-border);
}

.dh-table td {
    padding: 13px 16px;
    color: var(--dh-text);
    font-size: 14px;
    border-bottom: 1px solid #edf0f2;
}

.dh-table tbody tr {
    cursor: pointer;
    transition:
        background 0.12s ease,
        color 0.12s ease;
}

.dh-table tbody tr:hover {
    background: #faf8f2;
}

.dh-table tbody tr:last-child td {
    border-bottom: none;
}


/* =========================================================
   MESSAGES
   ========================================================= */

.dh-message {
    padding: 13px 16px;
    border-radius: 6px;
    margin-top: 22px;
    font-size: 14px;
    font-weight: 600;
}

.dh-success {
    color: var(--dh-success);
    background: var(--dh-success-bg);
    border: 1px solid #cce9da;
}

.dh-error {
    color: var(--dh-danger);
    background: var(--dh-danger-bg);
    border: 1px solid #efcccc;
}


/* =========================================================
   LOGIN PAGE
   ========================================================= */

.dh-login-page {
    min-height: 100vh;
    display: flex;

    /*
       Light area on the LEFT for the corporate logo.
       Navy area on the RIGHT behind the login panel.
    */

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7f7f5 47%,
            var(--dh-navy) 47%,
            #13283c 100%
        );
}

.dh-login-wrapper {
    width: 100%;
    max-width: 1120px;
    margin: auto;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: 90px;
    align-items: center;
}


/* Login left side */

.dh-login-brand {
    color: var(--dh-navy);
}

.dh-login-logo {
    display: block;
    width: 330px;
    max-width: 100%;
    max-height: 135px;
    object-fit: contain;
    margin-bottom: 42px;
}

.dh-login-brand h1 {
    color: var(--dh-navy);
    font-size: 38px;
    line-height: 1.15;
    font-weight: 500;
    margin: 0 0 16px;
}

.dh-login-brand h1 span {
    color: var(--dh-gold-dark);
}

.dh-login-brand p {
    max-width: 430px;
    color: var(--dh-muted);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}


/* Login card */

.dh-login-card {
    background: var(--dh-white);
    padding: 40px;
    border-radius: 12px;
    border-top: 4px solid var(--dh-gold);
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.24);
}

.dh-login-card h2 {
    color: var(--dh-navy);
    font-size: 25px;
    font-weight: 600;
    margin: 0 0 5px;
}

.dh-login-subtitle {
    color: var(--dh-muted);
    font-size: 13px;
    margin-bottom: 28px;
}

.dh-login-card .dh-field {
    margin-bottom: 19px;
}

.dh-login-button {
    width: 100%;
    height: 48px;
    margin-top: 7px;
    background: var(--dh-navy);
    color: var(--dh-white);
}

.dh-login-button:hover {
    background: var(--dh-gold);
    color: var(--dh-navy);
}


/* =========================================================
   FOOTER
   ========================================================= */

.dh-footer {
    text-align: center;
    color: #9aa4ad;
    font-size: 11px;
    padding: 12px 30px 30px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .dh-header {
        height: auto;
        min-height: 90px;
        padding: 15px 20px;
    }

    .dh-header-inner {
        gap: 18px;
    }

    .dh-brand {
        gap: 20px;
    }

    .dh-logo {
        width: 180px;
        max-height: 65px;
    }

    .dh-app-name {
        padding-left: 20px;
    }

    .dh-app-name strong {
        font-size: 17px;
    }

    .dh-main {
        padding: 30px 22px;
    }

    .dh-login-wrapper {
        gap: 45px;
        padding: 35px;
        grid-template-columns: 1fr 390px;
    }
}


@media (max-width: 720px) {

    .dh-header-inner {
        flex-wrap: wrap;
    }

    .dh-app-name {
        display: none;
    }

    .dh-user {
        margin-left: auto;
    }

    .dh-main {
        padding: 24px 16px;
    }

    .dh-page-heading h1 {
        font-size: 25px;
    }

    .dh-card-body {
        padding: 22px;
    }

    .dh-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .dh-table-wrap {
        overflow-x: auto;
    }

    /*
       On phones remove the diagonal split.
       The login card remains clean and readable.
    */

    .dh-login-page {
        background: var(--dh-bg);
    }

    .dh-login-wrapper {
        display: block;
        padding: 25px 18px;
    }

    .dh-login-brand {
        text-align: center;
        margin-bottom: 28px;
    }

    .dh-login-logo {
        width: 250px;
        margin: 0 auto 24px;
    }

    .dh-login-brand h1 {
        font-size: 28px;
    }

    .dh-login-brand p {
        display: none;
    }

    .dh-login-card {
        max-width: 430px;
        margin: auto;
        padding: 30px 25px;
    }
}


@media (max-width: 480px) {

    .dh-header {
        padding: 13px 15px;
    }

    .dh-logo {
        width: 145px;
    }

    .dh-user-details {
        display: none;
    }

    .dh-button {
        padding: 7px 13px;
    }

    .dh-main {
        padding: 20px 12px;
    }

    .dh-card-body {
        padding: 18px;
    }

    .dh-page-heading {
        margin-bottom: 22px;
    }

    .dh-page-heading h1 {
        font-size: 23px;
    }
}