﻿body {
}
/* =========================================================
   Standard application pages
   ========================================================= */

.ht-page {
    padding: 34px 0 56px;
}

.ht-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

    .ht-page-header h1 {
        margin: 0 0 6px;
        color: var(--ht-primary);
        font-size: clamp(28px, 4vw, 40px);
        line-height: 1.15;
    }

    .ht-page-header p {
        max-width: 760px;
        margin: 0;
    }

.ht-panel {
    margin-bottom: 24px;
    padding: 26px;
    background: var(--ht-surface);
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-lg);
    box-shadow: var(--ht-shadow-sm);
}

.ht-panel-header {
    margin: -26px -26px 24px;
    padding: 18px 26px;
    background: var(--ht-primary);
    border-bottom: 3px solid var(--ht-accent);
    border-radius: var(--ht-radius-lg) var(--ht-radius-lg) 0 0;
}

    .ht-panel-header h2,
    .ht-panel-header h3,
    .ht-panel-header h4,
    .ht-panel-header h5 {
        margin: 0;
        color: #ffffff;
        font-size: 20px;
        letter-spacing: -0.01em;
    }

.ht-section-description {
    margin-bottom: 22px;
}

/* =========================================================
   Form layout
   ========================================================= */

.ht-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px 24px;
}

.ht-field {
    grid-column: span 6;
    min-width: 0;
}

.ht-field-full {
    grid-column: 1 / -1;
}

.ht-field-third {
    grid-column: span 4;
}

.ht-field-quarter {
    grid-column: span 3;
}

.ht-field textarea,
.MyTextArea {
    min-height: 110px;
    resize: vertical;
}

.ht-field select,
.MyDropDown {
    min-height: 44px;
    padding: 10px 38px 10px 12px;
    background-color: #ffffff;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-sm);
}

.ht-field .field-validation-error {
    margin-top: 6px;
}

/* =========================================================
   Checkboxes
   ========================================================= */

.ht-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
}

    .ht-check-row input[type="checkbox"],
    .Checkbox {
        width: 18px;
        height: 18px;
        margin: 3px 0 0;
        accent-color: var(--ht-primary);
        transform: none;
        flex: 0 0 auto;
    }

    .ht-check-row label {
        margin: 0;
        font-weight: 500;
    }

.ht-check-list {
    margin: 0;
    padding: 18px 22px 18px 42px;
    color: var(--ht-text);
    background: var(--ht-surface-muted);
    border-left: 4px solid var(--ht-accent);
    border-radius: var(--ht-radius-sm);
}

    .ht-check-list li {
        margin-bottom: 8px;
    }

        .ht-check-list li:last-child {
            margin-bottom: 0;
        }

/* =========================================================
   Signature controls
   ========================================================= */

.ht-signature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ht-signature-box {
    min-width: 0;
}

    .ht-signature-box h6 {
        margin-bottom: 10px;
        color: var(--ht-primary);
        font-size: 15px;
    }

.ht-signature-canvas {
    display: block;
    width: 100%;
    height: 200px;
    background: #ffffff;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-md);
    touch-action: none;
}

.ht-signature-actions {
    margin-top: 10px;
}

.ht-signature-note {
    padding: 14px 16px;
    background: rgba(148, 193, 31, 0.10);
    border-left: 4px solid var(--ht-accent);
    border-radius: var(--ht-radius-sm);
}

.ht-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--ht-border);
}

    .ht-form-actions .btn-primary {
        min-width: 150px;
    }

/* =========================================================
   Navigation cards
   ========================================================= */

.ht-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.ht-nav-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--ht-border);
    border-top: 4px solid var(--ht-primary);
    border-radius: var(--ht-radius-lg);
    box-shadow: var(--ht-shadow-sm);
    transition: transform var(--ht-transition), box-shadow var(--ht-transition), border-color var(--ht-transition);
}

    .ht-nav-card:hover {
        border-top-color: var(--ht-accent);
        box-shadow: var(--ht-shadow-md);
        transform: translateY(-4px);
    }

.ht-nav-card-image {
    width: 100%;
    height: 155px;
    object-fit: cover;
    background: var(--ht-surface-muted);
    border-bottom: 1px solid var(--ht-border);
}

.ht-nav-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.ht-nav-card h2,
.ht-nav-card h3,
.ht-nav-card h4 {
    margin-bottom: 9px;
    color: var(--ht-primary);
    font-size: 20px;
    line-height: 1.25;
}

.ht-nav-card p {
    flex: 1;
    margin-bottom: 18px;
}

.ht-nav-card-actions {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.ht-card-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--ht-primary);
    font-size: 14px;
    font-weight: 700;
}

    .ht-card-link::after {
        margin-left: 8px;
        color: var(--ht-accent);
        content: "\2192";
        transition: transform var(--ht-transition);
    }

    .ht-card-link:hover::after {
        transform: translateX(4px);
    }

/* =========================================================
   DevExpress grid theme
   ========================================================= */

.ht-grid-panel {
    overflow: hidden;
    padding: 0;
}

    .ht-grid-panel .ht-panel-header {
        margin: 0;
    }

.ht-grid-content {
    overflow-x: auto;
    padding: 22px;
}

.dxgvControl_MaterialCompact,
.dxgvControl {
    width: 100% !important;
    color: var(--ht-text);
    background: #ffffff;
    border: 1px solid var(--ht-border) !important;
    border-radius: var(--ht-radius-md);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.dxgvHeader_MaterialCompact,
.dxgvHeader {
    padding: 12px 14px !important;
    color: #ffffff !important;
    background: var(--ht-primary) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    font-weight: 650 !important;
}

    .dxgvHeader_MaterialCompact a,
    .dxgvHeader a {
        color: #ffffff !important;
    }

.dxgvDataRow_MaterialCompact td,
.dxgvDataRow td {
    padding: 11px 14px !important;
    border-color: var(--ht-border) !important;
}

.dxgvDataRow_MaterialCompact:nth-child(even),
.dxgvDataRow:nth-child(even) {
    background: var(--ht-surface-muted);
}

.dxgvDataRowHover_MaterialCompact,
.dxgvDataRowHover {
    background: rgba(148, 193, 31, 0.12) !important;
}

.dxgvGroupRow_MaterialCompact,
.dxgvGroupRow {
    color: var(--ht-primary) !important;
    background: rgba(7, 81, 82, 0.08) !important;
    font-weight: 650;
}

.dxgvGroupPanel_MaterialCompact,
.dxgvGroupPanel {
    padding: 13px !important;
    color: var(--ht-text-muted) !important;
    background: var(--ht-surface-muted) !important;
    border-bottom: 1px solid var(--ht-border) !important;
}

.dxpLite_MaterialCompact,
.dxpLite {
    padding: 12px !important;
    background: #ffffff;
}

    .dxpLite_MaterialCompact .dxp-current,
    .dxpLite .dxp-current {
        color: #ffffff !important;
        background: var(--ht-primary) !important;
        border-radius: var(--ht-radius-sm);
    }

/* =========================================================
   Responsive rules
   ========================================================= */

@media (max-width: 1199.98px) {
    .ht-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .ht-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ht-signature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .ht-page {
        padding: 22px 0 40px;
    }

    .ht-panel {
        padding: 20px;
    }

    .ht-panel-header {
        margin: -20px -20px 20px;
        padding: 16px 20px;
    }

    .ht-field,
    .ht-field-third,
    .ht-field-quarter,
    .ht-field-full {
        grid-column: 1 / -1;
    }

    .ht-page-header {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .ht-card-grid {
        grid-template-columns: 1fr;
    }

    .ht-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

        .ht-form-actions .btn {
            width: 100%;
        }
}

/* =========================================================
   HUTCHINSON APPLICATIONS LOGIN
   ========================================================= */

.ht-login {
    display: grid;
    width: 100%;
    min-height: 100vh;
    grid-template-columns: minmax(430px, 44%) minmax(500px, 56%);
    background: #ffffff;
}


/* -------------------------
   LEFT IMAGE PANEL
   ------------------------- */

.ht-login-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-image: url("/MyHutchinson/img/visionbanner.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* Dark teal image overlay */

.ht-login-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 180deg, rgba(7, 81, 82, 0.38) 0%, rgba(7, 81, 82, 0.58) 42%, rgba(3, 63, 64, 0.94) 100% );
}


/* Green angled accent like reference */

.ht-login-hero-shape {
    position: absolute;
    z-index: 2;
    top: -13%;
    right: -22%;
    width: 75%;
    height: 67%;
    background: linear-gradient( 135deg, rgba(148, 193, 31, 0.60), rgba(45, 166, 113, 0.72) );
    transform: rotate(0deg);
    clip-path: polygon( 0 0, 100% 0, 100% 100% );
}


/* White logo */

.ht-login-hero-logo {
    position: absolute;
    z-index: 3;
    top: 45px;
    left: 44px;
}

    .ht-login-hero-logo img {
        display: block;
        width: 210px;
        height: auto;
        max-height: 75px;
        filter: brightness(0) invert(1);
    }


/* Welcome copy */

.ht-login-welcome {
    position: absolute;
    z-index: 3;
    right: 50px;
    bottom: 64px;
    left: 50px;
    color: #ffffff;
}

.ht-login-green-line {
    display: block;
    width: 47px;
    height: 4px;
    margin-bottom: 20px;
    background: #94c11f;
    border-radius: 2px;
}

.ht-login-welcome-small {
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 400;
}

.ht-login-welcome h1 {
    margin: 0 0 17px;
    color: #ffffff;
    font-size: clamp(46px, 4vw, 67px);
    font-weight: 700;
    line-height: 0.99;
    letter-spacing: -0.04em;
}

.ht-login-welcome p {
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 15px;
    font-weight: 500;
}


/* -------------------------
   RIGHT LOGIN PANEL
   ------------------------- */

.ht-login-form-panel {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
    background: #ffffff;
}

.ht-login-form-container {
    width: 100%;
    max-width: 440px;
}


/* Logo above Sign in */

.ht-login-form-logo {
    display: block;
    width: 170px;
    height: auto;
    max-height: 65px;
    margin: 0 0 38px;
    object-fit: contain;
    object-position: left center;
}


/* Heading */

.ht-login-form-container h2 {
    margin: 0 0 5px;
    padding: 0;
    color: #075152;
    background: none;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.035em;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #075152;
}

.ht-login-subtitle {
    margin: 0 0 31px;
    color: #667b78;
    font-size: 15px;
    line-height: 1.5;
}


/* -------------------------
   FORM
   ------------------------- */

.ht-login-form {
    width: 100%;
}

.ht-login-field {
    width: 100%;
    margin: 0 0 18px;
}

.ht-login-label {
    display: block;
    margin: 0 0 7px;
    color: #173d3b;
    font-size: 13px;
    font-weight: 650;
}

.ht-login-input.form-control {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 10px 13px;
    color: #173d3b;
    background: #ffffff;
    border: 1px solid #cad7d5;
    border-radius: 3px;
    box-shadow: none;
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

    .ht-login-input.form-control:hover {
        border-color: #96a9a6;
    }

    .ht-login-input.form-control:focus {
        color: #173d3b;
        background: #ffffff;
        border-color: #075152;
        outline: none;
        box-shadow: 0 0 0 3px rgba(148, 193, 31, 0.16);
    }

.ht-login-input::placeholder {
    color: #84928f;
    opacity: 1;
}


/* Password eye */

.ht-login-password {
    position: relative;
}

    .ht-login-password .ht-login-input {
        padding-right: 48px;
    }

.ht-login-password-button {
    position: absolute;
    top: 50%;
    right: 4px;
    display: flex;
    width: 40px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #075152;
    background: transparent;
    border: none;
    border-radius: 3px;
    transform: translateY(-50%);
    cursor: pointer;
}

    .ht-login-password-button:hover {
        color: #94c11f;
        background: #f4f7f6;
    }

    .ht-login-password-button:focus {
        outline: 2px solid #94c11f;
    }


/* Validation */

.ht-login-validation-summary {
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #fff5f5;
    border: 1px solid #eccaca;
    border-left: 4px solid #c83c3c;
    border-radius: 3px;
    font-size: 13px;
}

    .ht-login-validation-summary:empty {
        display: none;
    }

    .ht-login-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

.ht-login-validation {
    display: block;
    margin-top: 6px;
    color: #b62f2f !important;
    font-size: 12px;
}


/* -------------------------
   FORGOT PASSWORD
   ------------------------- */

.ht-login-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 2px 0 20px;
}

.ht-login-forgot {
    color: #075152;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

    .ht-login-forgot:hover {
        color: #94c11f;
        text-decoration: underline;
    }


/* -------------------------
   SIGN IN BUTTON
   ------------------------- */

.ht-login-submit {
    display: block;
    width: 100%;
    height: 47px;
    padding: 10px 20px;
    color: #ffffff !important;
    background: #075152 !important;
    border: 1px solid #075152 !important;
    border-radius: 3px !important;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

    .ht-login-submit:hover {
        color: #ffffff !important;
        background: #043f40 !important;
        border-color: #043f40 !important;
    }

    .ht-login-submit:focus {
        box-shadow: 0 0 0 3px rgba(148, 193, 31, 0.28) !important;
    }


/* -------------------------
   HELP
   ------------------------- */

.ht-login-help {
    margin-top: 22px;
}

    .ht-login-help p {
        margin: 0;
        color: #778784;
        font-size: 12px;
        line-height: 1.5;
    }


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .ht-login {
        grid-template-columns: minmax(360px, 42%) minmax(440px, 58%);
    }

    .ht-login-form-panel {
        padding: 50px 45px;
    }

    .ht-login-welcome {
        right: 35px;
        bottom: 48px;
        left: 35px;
    }

    .ht-login-hero-logo {
        top: 35px;
        left: 35px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .ht-login {
        display: block;
        min-height: 100vh;
        background: #ffffff;
    }

    .ht-login-hero {
        min-height: 250px;
        background-position: center 30%;
    }

    .ht-login-hero-logo {
        top: 25px;
        left: 24px;
    }

        .ht-login-hero-logo img {
            width: 160px;
        }

    .ht-login-welcome {
        right: 24px;
        bottom: 26px;
        left: 24px;
    }

    .ht-login-green-line {
        width: 38px;
        margin-bottom: 12px;
    }

    .ht-login-welcome-small {
        font-size: 15px;
    }

    .ht-login-welcome h1 {
        margin-bottom: 7px;
        font-size: 35px;
        line-height: 1;
    }

    .ht-login-welcome p {
        font-size: 12px;
    }

    .ht-login-form-panel {
        min-height: auto;
        padding: 38px 24px 50px;
    }

    .ht-login-form-container {
        max-width: 100%;
    }

    .ht-login-form-logo {
        width: 145px;
        margin-bottom: 28px;
    }

    .ht-login-form-container h2 {
        font-size: 30px;
    }
}


/* Small phones */

@media (max-width: 420px) {

    .ht-login-hero {
        min-height: 210px;
    }

    .ht-login-welcome h1 {
        font-size: 30px;
    }

    .ht-login-welcome p {
        display: none;
    }

    .ht-login-form-panel {
        padding: 30px 18px 40px;
    }
}

/* Dashboard popup button spacing */

.ht-popup-button {
    margin: 6px !important;
}

.ht-dropdown-heading {
    padding: 7px 11px;
    color: #70827f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ht-dropdown-user {
    display: flex;
    min-width: 220px;
    flex-direction: column;
    padding: 8px 11px;
}

    .ht-dropdown-user span {
        margin-bottom: 2px;
        color: #70827f;
        font-size: 10px;
        text-transform: uppercase;
    }

    .ht-dropdown-user strong {
        overflow: hidden;
        color: #075152;
        font-size: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* =========================================================
   SECONDARY AUTHENTICATION PAGES
   ========================================================= */

.ht-login-secondary .ht-login-form-panel {
    overflow-y: auto;
}

.ht-auth-form-container {
    padding-top: 20px;
    padding-bottom: 20px;
}

    .ht-auth-form-container .ht-login-form-logo {
        margin-bottom: 27px;
    }

.ht-auth-step {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 12px;
    padding: 5px 9px;
    color: #075152;
    background: rgba(148, 193, 31, 0.14);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/*
 * Notice panel
 */

.ht-auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 23px;
    padding: 13px 14px;
    border-radius: 5px;
}

.ht-auth-notice-info {
    color: #173d3b;
    background: #eef6f5;
    border: 1px solid #d2e4e1;
    border-left: 4px solid #075152;
}

.ht-auth-notice-icon {
    display: inline-flex;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    color: #ffffff;
    background: #075152;
    border-radius: 50%;
    font-size: 12px;
}

.ht-auth-notice strong {
    display: block;
    margin-bottom: 2px;
    color: #075152;
    font-size: 13px;
}

.ht-auth-notice p {
    margin: 0;
    color: #5f7470;
    font-size: 12px;
    line-height: 1.5;
}

/*
 * Input icons
 */

.ht-auth-input-wrapper {
    position: relative;
}

.ht-auth-input-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 2;
    display: inline-flex;
    width: 18px;
    align-items: center;
    justify-content: center;
    color: #075152;
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.ht-auth-icon-input.form-control {
    padding-left: 42px;
}

.ht-login-password .ht-auth-icon-input.form-control {
    padding-right: 48px;
}

/*
 * Submit button icon
 */

.ht-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

/*
 * Security-code page
 */

.ht-auth-security-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #075152;
    background: rgba(148, 193, 31, 0.15);
    border-radius: 50%;
    font-size: 24px;
}

.ht-auth-code-input.form-control {
    height: 54px;
    padding-right: 16px;
    padding-left: 16px;
    color: #075152;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-align: center;
}

    .ht-auth-code-input.form-control::placeholder {
        font-size: 14px;
        font-weight: 400;
        letter-spacing: normal;
    }

.ht-auth-code-help {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: -3px 0 21px;
    color: #70827f;
    font-size: 11px;
    line-height: 1.45;
}

    .ht-auth-code-help i {
        margin-top: 2px;
        color: #075152;
    }

/*
 * Password requirements
 */

.ht-password-rules {
    margin-bottom: 23px;
    padding: 15px 17px;
    background: #f4f7f6;
    border: 1px solid #d8e2df;
    border-left: 4px solid #94c11f;
    border-radius: 5px;
}

.ht-password-rules-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: #075152;
    font-size: 13px;
}

    .ht-password-rules-heading i {
        color: #075152;
    }

.ht-password-rules ul {
    margin: 0;
    padding-left: 20px;
    color: #657875;
    font-size: 12px;
    line-height: 1.55;
}

.ht-password-rules li {
    margin-bottom: 4px;
}

    .ht-password-rules li:last-child {
        margin-bottom: 0;
    }

/*
 * Return link
 */

.ht-auth-footer-link {
    margin-top: 20px;
    text-align: center;
}

    .ht-auth-footer-link a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #075152;
        font-size: 12px;
        font-weight: 650;
    }

        .ht-auth-footer-link a:hover,
        .ht-auth-footer-link a:focus {
            color: #94c11f;
        }

/*
 * Shorter screens
 */

@media (max-height: 800px) and (min-width: 768px) {
    .ht-login-secondary .ht-login-form-panel {
        align-items: flex-start;
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .ht-auth-form-container .ht-login-form-logo {
        width: 145px;
        margin-bottom: 20px;
    }

    .ht-auth-form-container h2 {
        font-size: 30px;
    }

    .ht-auth-form-container .ht-login-subtitle {
        margin-bottom: 21px;
    }
}

/*
 * Mobile
 */

@media (max-width: 767.98px) {
    .ht-login-secondary .ht-login-hero {
        min-height: 180px;
    }

    .ht-login-secondary .ht-login-welcome h1 {
        font-size: 28px;
    }

    .ht-login-secondary .ht-login-welcome-small,
    .ht-login-secondary .ht-login-welcome p {
        display: none;
    }

    .ht-login-secondary .ht-login-form-panel {
        padding-top: 30px;
    }

    .ht-auth-form-container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .ht-password-rules {
        padding: 13px 14px;
    }
}

/* =========================================================
   NAVIGATION PAGE EXTENSIONS
   ========================================================= */

.ht-page-introduction {
    margin-bottom: 30px;
    padding: 28px 30px;
    color: #ffffff;
    background: linear-gradient( 115deg, #075152 0%, #075152 72%, #0b6662 100% );
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(17, 56, 53, 0.12);
}

    .ht-page-introduction h1 {
        margin: 0 0 9px;
        color: #ffffff;
        font-size: clamp(30px, 4vw, 43px);
        font-weight: 700;
        letter-spacing: -0.04em;
    }

    .ht-page-introduction p {
        max-width: 780px;
        margin: 0;
        color: rgba(255, 255, 255, 0.84);
        font-size: 15px;
    }

.ht-page-introduction-line {
    display: block;
    width: 45px;
    height: 4px;
    margin-bottom: 17px;
    background: var(--ht-accent);
    border-radius: 2px;
}

.ht-card-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ht-nav-card-featured {
    border-top-color: var(--ht-accent);
}

.ht-nav-card .ht-nav-card-image {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: center;
}

.ht-nav-card .ht-nav-card-image-contain {
    padding: 18px;
    object-fit: contain;
    background: #f4f7f6;
}

.ht-nav-card-actions .ht-card-link + .ht-card-link {
    margin-top: 4px;
}

.ht-card-badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 4px 8px;
    color: #075152;
    background: rgba(148, 193, 31, 0.14);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   CULTURE PAGE
   ========================================================= */

.ht-content-section {
    margin-bottom: 26px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-lg);
    box-shadow: var(--ht-shadow-sm);
}

.ht-content-section-header {
    margin-bottom: 22px;
}

    .ht-content-section-header h2 {
        margin: 0 0 7px;
        color: #075152;
        background: none;
        font-size: 28px;
        font-weight: 700;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: #075152;
    }

    .ht-content-section-header p {
        max-width: 850px;
        margin: 0;
    }

.ht-vision-statement {
    position: relative;
    overflow: hidden;
    padding: 25px 28px;
    color: #ffffff;
    background: #075152;
    border-left: 5px solid #94c11f;
    border-radius: 7px;
}

    .ht-vision-statement::after {
        position: absolute;
        top: -55px;
        right: -55px;
        width: 165px;
        height: 165px;
        background: rgba(148, 193, 31, 0.15);
        border-radius: 50%;
        content: "";
    }

    .ht-vision-statement h2 {
        margin-bottom: 7px;
        color: #ffffff;
        background: none;
        font-size: 24px;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: #ffffff;
    }

    .ht-vision-statement p {
        position: relative;
        z-index: 1;
        margin: 0;
        color: rgba(255, 255, 255, 0.86);
        font-size: 17px;
    }

.ht-culture-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ht-culture-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--ht-border);
    border-top: 4px solid #075152;
    border-radius: 8px;
    box-shadow: var(--ht-shadow-sm);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

    .ht-culture-card:hover {
        border-top-color: #94c11f;
        box-shadow: var(--ht-shadow-md);
        transform: translateY(-4px);
    }

    .ht-culture-card a {
        display: block;
    }

    .ht-culture-card img {
        display: block;
        width: 100%;
        height: 240px;
        padding: 14px;
        object-fit: contain;
        background: #f7f9f8;
    }

.ht-culture-card-body {
    padding: 17px 19px;
}

    .ht-culture-card-body h3 {
        margin: 0;
        color: #075152;
        background: none;
        font-size: 19px;
        font-weight: 700;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: #075152;
    }

.ht-behaviour-levels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ht-behaviour-level {
    padding: 18px;
    background: #f4f7f6;
    border-left: 4px solid #94c11f;
    border-radius: 5px;
}

    .ht-behaviour-level h3 {
        margin: 0 0 6px;
        color: #075152;
        background: none;
        font-size: 17px;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: #075152;
    }

    .ht-behaviour-level p {
        margin: 0;
        font-size: 13px;
    }

/* =========================================================
   IT DOCUMENT LIBRARY
   ========================================================= */

.ht-library-panel {
    overflow: hidden;
    padding: 0;
}

.ht-library-header {
    padding: 25px 28px;
    color: #ffffff;
    background: #075152;
    border-bottom: 4px solid #94c11f;
}

    .ht-library-header h1 {
        margin: 0 0 6px;
        color: #ffffff;
        font-size: 31px;
    }

    .ht-library-header p {
        margin: 0;
        color: rgba(255, 255, 255, 0.80);
    }

.ht-library-content {
    overflow-x: auto;
    padding: 25px;
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {
    .ht-card-grid-compact,
    .ht-culture-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .ht-page-introduction,
    .ht-content-section {
        padding: 22px;
    }

    .ht-card-grid-compact,
    .ht-culture-grid,
    .ht-behaviour-levels {
        grid-template-columns: 1fr;
    }

    .ht-culture-card img {
        height: auto;
        max-height: 290px;
    }

  
}

/* =========================================================
   INNER TILE PAGES
   ========================================================= */

.ht-inner-page {
    min-height: calc(100vh - 140px);
    padding: 34px 0 60px;
    background: #f3f6f5;
}

.ht-inner-header {
    margin-bottom: 25px;
    padding: 27px 30px;
    color: #ffffff;
    background: linear-gradient( 115deg, #075152 0%, #075152 72%, #0b6662 100% );
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(17, 56, 53, 0.12);
}

.ht-inner-header-line {
    display: block;
    width: 45px;
    height: 4px;
    margin-bottom: 16px;
    background: #94c11f;
    border-radius: 2px;
}

.ht-inner-header h1 {
    margin: 0 0 8px;
    color: #ffffff;
    background: none;
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 700;
    letter-spacing: -0.04em;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #ffffff;
}

.ht-inner-header p {
    max-width: 800px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    line-height: 1.55;
}

.ht-inner-panel {
    padding: 27px;
    background: #ffffff;
    border: 1px solid #d8e2df;
    border-radius: 9px;
    box-shadow: 0 4px 15px rgba(17, 56, 53, 0.07);
}

    .ht-inner-panel + .ht-inner-panel {
        margin-top: 22px;
    }

.ht-inner-panel-header {
    margin-bottom: 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid #d8e2df;
}

    .ht-inner-panel-header h2 {
        margin: 0 0 6px;
        color: #075152;
        background: none;
        font-size: 25px;
        font-weight: 700;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: #075152;
    }

    .ht-inner-panel-header p {
        margin: 0;
        color: #687b77;
        font-size: 14px;
    }

/* Forms */

.ht-standard-form {
    max-width: 900px;
}

.ht-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px 24px;
}

.ht-field {
    grid-column: span 6;
    min-width: 0;
}

.ht-field-full {
    grid-column: 1 / -1;
}

.ht-field label {
    display: block;
    margin-bottom: 7px;
    color: #173d3b;
    font-size: 13px;
    font-weight: 650;
}

.ht-field .form-control,
.ht-field .MyDropDown,
.ht-field .MyTextArea {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    color: #173d3b;
    background: #ffffff;
    border: 1px solid #cad7d4;
    border-radius: 4px;
    box-shadow: none;
}

.ht-field textarea,
.ht-field .MyTextArea {
    min-height: 130px;
    resize: vertical;
}

    .ht-field .form-control:focus,
    .ht-field .MyDropDown:focus,
    .ht-field .MyTextArea:focus {
        border-color: #075152;
        outline: none;
        box-shadow: 0 0 0 3px rgba(148, 193, 31, 0.16);
    }

.ht-field .field-validation-error {
    display: block;
    margin-top: 5px;
    color: #b52f2f;
    font-size: 12px;
}

.ht-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 23px;
    padding-top: 20px;
    border-top: 1px solid #d8e2df;
}

.ht-primary-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    color: #ffffff !important;
    background: #075152 !important;
    border: 1px solid #075152 !important;
    border-radius: 4px !important;
    font-size: 13px;
    font-weight: 700;
}

    .ht-primary-button:hover,
    .ht-primary-button:focus {
        color: #ffffff !important;
        background: #043f40 !important;
        border-color: #043f40 !important;
    }

/* DevExpress tabs */

.ht-tab-panel {
    overflow: hidden;
    padding: 0;
}

    .ht-tab-panel .dxtcLite_MaterialCompact,
    .ht-tab-panel .dxtcLite {
        width: 100% !important;
        background: #ffffff;
        border: 0 !important;
    }

    .ht-tab-panel .dxtc-stripContainer {
        padding: 10px 15px 0;
        background: #f4f7f6;
        border-bottom: 1px solid #d8e2df;
    }

    .ht-tab-panel .dxtc-tab,
    .ht-tab-panel .dxtc-activeTab {
        padding: 11px 17px !important;
        color: #075152 !important;
        background: transparent !important;
        border: 0 !important;
        border-bottom: 3px solid transparent !important;
        font-weight: 650;
    }

    .ht-tab-panel .dxtc-activeTab {
        color: #075152 !important;
        background: #ffffff !important;
        border-bottom-color: #94c11f !important;
    }

    .ht-tab-panel .dxtc-content {
        padding: 25px !important;
        border: 0 !important;
    }

/* File manager */

.ht-library-shell {
    overflow: hidden;
    padding: 0;
}

.ht-library-toolbar {
    padding: 24px 27px;
    color: #ffffff;
    background: #075152;
    border-bottom: 4px solid #94c11f;
}

    .ht-library-toolbar h2 {
        margin: 0 0 6px;
        color: #ffffff;
        background: none;
        font-size: 27px;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: #ffffff;
    }

    .ht-library-toolbar p {
        margin: 0;
        color: rgba(255, 255, 255, 0.80);
    }

.ht-library-manager {
    overflow-x: auto;
    padding: 24px;
}

/* Suggestions */

.ht-suggestion-form {
    max-width: 770px;
}

.ht-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

    .ht-check-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: #075152;
    }

    .ht-check-row label {
        margin: 0;
        color: #173d3b;
        font-size: 13px;
        font-weight: 650;
    }

/* Vacancies */

.ht-vacancy-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

    .ht-vacancy-toolbar p {
        margin: 0;
    }

.ht-vacancy-list {
    display: grid;
    gap: 18px;
}

.ht-vacancy-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8e2df;
    border-left: 5px solid #075152;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(17, 56, 53, 0.06);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

    .ht-vacancy-card:hover {
        border-left-color: #94c11f;
        box-shadow: 0 13px 30px rgba(17, 56, 53, 0.11);
        transform: translateY(-2px);
    }

.ht-vacancy-main {
    padding: 24px;
}

    .ht-vacancy-main h2 {
        margin: 0 0 10px;
        color: #075152;
        background: none;
        font-size: 23px;
        font-weight: 700;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: #075152;
    }

    .ht-vacancy-main p {
        margin: 0 0 18px;
        color: #657875;
        line-height: 1.55;
    }

.ht-vacancy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.ht-vacancy-details {
    padding: 24px;
    color: #173d3b;
    background: #f4f7f6;
    border-left: 1px solid #d8e2df;
}

    .ht-vacancy-details dl {
        display: grid;
        grid-template-columns: 95px 1fr;
        gap: 7px 10px;
        margin: 0;
        font-size: 12px;
    }

    .ht-vacancy-details dt {
        color: #075152;
        font-weight: 700;
    }

    .ht-vacancy-details dd {
        margin: 0;
        overflow-wrap: anywhere;
    }

/* Vacancy detail */

.ht-job-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.6fr);
    overflow: hidden;
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #d8e2df;
    border-radius: 9px;
    box-shadow: 0 5px 17px rgba(17, 56, 53, 0.07);
}

.ht-job-content {
    padding: 29px;
}

    .ht-job-content h2 {
        margin: 25px 0 9px;
        color: #075152;
        background: none;
        font-size: 20px;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: #075152;
    }

        .ht-job-content h2:first-child {
            margin-top: 0;
        }

    .ht-job-content p,
    .ht-job-content .ht-preserve-lines {
        color: #627672;
        line-height: 1.65;
        white-space: pre-line;
    }

.ht-job-facts {
    padding: 29px;
    color: #ffffff;
    background: #075152;
}

    .ht-job-facts h2 {
        margin: 0 0 20px;
        color: #ffffff;
        background: none;
        font-size: 21px;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: #ffffff;
    }

    .ht-job-facts dl {
        margin: 0;
    }

    .ht-job-facts dt {
        margin-top: 14px;
        color: #b5d85e;
        font-size: 11px;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

        .ht-job-facts dt:first-child {
            margin-top: 0;
        }

    .ht-job-facts dd {
        margin: 3px 0 0;
        color: #ffffff;
        font-size: 14px;
        overflow-wrap: anywhere;
    }

.ht-upload-box {
    padding: 20px;
    text-align: center;
    background: #f4f7f6;
    border: 2px dashed #b8c9c5;
    border-radius: 6px;
}

    .ht-upload-box p {
        margin-bottom: 14px;
    }

.ht-file-table {
    margin-top: 14px;
}

/* Responsive */

@media (max-width: 991.98px) {
    .ht-vacancy-card,
    .ht-job-summary {
        grid-template-columns: 1fr;
    }

    .ht-vacancy-details,
    .ht-job-facts {
        border-top: 1px solid #d8e2df;
        border-left: 0;
    }
}

@media (max-width: 767.98px) {
    .ht-inner-page {
        padding: 20px 0 42px;
    }

    .ht-inner-header,
    .ht-inner-panel {
        padding: 21px;
    }

    .ht-field,
    .ht-field-full {
        grid-column: 1 / -1;
    }

    .ht-vacancy-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ht-vacancy-actions,
    .ht-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .ht-vacancy-actions .btn,
        .ht-form-actions .btn {
            width: 100%;
        }

 
}

/* =========================================================
   COMPETENCE AND TRAINING PARTIALS
   ========================================================= */

.ht-partial {
    color: #173d3b;
}

.ht-partial-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid #d8e2df;
}

    .ht-partial-header h2 {
        margin: 0 0 5px;
        color: #075152;
        background: none;
        font-size: 25px;
        font-weight: 700;
        letter-spacing: -0.025em;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: #075152;
    }

    .ht-partial-header p {
        max-width: 750px;
        margin: 0;
        color: #687b77;
        font-size: 13px;
        line-height: 1.55;
    }

.ht-partial-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
}

/* Nested tab controls */

.ht-nested-tabs {
    overflow: hidden;
}

/* =========================================================
   DEVEXPRESS / DEVEXTREME CONTENT FIXES
   FileManager, GridViews and nested tab content
   ========================================================= */



/* ---------------------------------------------------------
   DEVEXPRESS GRIDVIEWS
   --------------------------------------------------------- */

.ht-grid-partial {
    display: block;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding: 3px 0 12px;
}


    .ht-grid-partial
    .dxgvControl_MaterialCompact,
    .ht-grid-partial
    .dxgvControl {
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
        border: 1px solid #d8e2df !important;
        border-radius: 6px;
    }


    /*
 * Main table.
 */

    .ht-grid-partial
    .dxgvTable_MaterialCompact,
    .ht-grid-partial
    .dxgvTable {
        width: 100% !important;
        border-collapse: collapse;
    }


    /*
 * Headers
 */

    .ht-grid-partial
    .dxgvHeader_MaterialCompact,
    .ht-grid-partial
    .dxgvHeader {
        height: auto !important;
        padding: 11px 12px !important;
        color: #ffffff !important;
        background: #075152 !important;
        border-color: rgba(255,255,255,0.15) !important;
        font-size: 12px !important;
        font-weight: 700 !important;
    }


        .ht-grid-partial
        .dxgvHeader_MaterialCompact a,
        .ht-grid-partial
        .dxgvHeader a {
            color: #ffffff !important;
        }


    /*
 * Rows
 */

    .ht-grid-partial
    .dxgvDataRow_MaterialCompact td,
    .ht-grid-partial
    .dxgvDataRow td {
        height: auto !important;
        padding: 10px 12px !important;
        color: #173d3b !important;
        background: #ffffff;
        border-color: #e1e8e6 !important;
        font-size: 12px;
    }


    .ht-grid-partial
    .dxgvDataRow_MaterialCompact:nth-child(even) td,
    .ht-grid-partial
    .dxgvDataRow:nth-child(even) td {
        background: #f7f9f8;
    }


    /*
 * Hover
 */

    .ht-grid-partial
    .dxgvDataRowHover_MaterialCompact td,
    .ht-grid-partial
    .dxgvDataRowHover td {
        color: #075152 !important;
        background: rgba(148, 193, 31, 0.11) !important;
    }


    /*
 * Focused row
 */

    .ht-grid-partial
    .dxgvFocusedRow_MaterialCompact td,
    .ht-grid-partial
    .dxgvFocusedRow td {
        color: #ffffff !important;
        background: #075152 !important;
    }


    /*
 * Group rows
 */

    .ht-grid-partial
    .dxgvGroupRow_MaterialCompact td,
    .ht-grid-partial
    .dxgvGroupRow td {
        color: #075152 !important;
        background: #eef4f2 !important;
        font-weight: 700 !important;
    }


    /*
 * Filter row
 */

    .ht-grid-partial
    .dxgvFilterRow_MaterialCompact td,
    .ht-grid-partial
    .dxgvFilterRow td {
        padding: 7px !important;
        background: #f4f7f6 !important;
    }


    /*
 * Pager
 */

    .ht-grid-partial
    .dxpLite_MaterialCompact,
    .ht-grid-partial
    .dxpLite {
        padding: 10px !important;
        background: #ffffff !important;
    }


/* ---------------------------------------------------------
   DEVEXPRESS TABS
   --------------------------------------------------------- */

.ht-tab-panel,
.ht-nested-tabs {
    width: 100%;
    min-width: 0;
    overflow: visible;
}


    .ht-tab-panel .dxtc-content,
    .ht-nested-tabs .dxtc-content {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 300px;
        box-sizing: border-box !important;
    }


        /*
 * Prevent child grid/table content from forcing the overall page wider.
 */

        .ht-tab-panel .dxtc-content > div,
        .ht-nested-tabs .dxtc-content > div {
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767.98px) {

    .ht-library-manager {
        overflow-x: auto;
    }

    .ht-grid-partial {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* =========================================================
   BOOTSTRAP MODALS
   ========================================================= */

/*
 * Standard Bootstrap modal stacking.
 *
 * Backdrop must ALWAYS be below the modal itself.
 * This applies to Workwear and other Bootstrap modals.
 */

/*.modal-backdrop {
    z-index: 1990 !important;
}*/

    .modal-backdrop.show {
        opacity: 0.40;
    }

.modal {
    z-index: 2000 !important;
}

    .modal.show {
        z-index: 2000 !important;
    }

.modal-dialog {
    position: relative;
    z-index: 2001;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    pointer-events: auto;
}

/*
 * Keep the modal interactive while Bootstrap has
 * body.modal-open applied.
 */
body.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: auto;
}


/* =========================================================
   DOCUMENT OVERLAY
   ========================================================= */

body.ht-document-open {
    overflow: hidden !important;
}


/*
 * Do not use Bootstrap modal for PDF viewer.
 *
 * This overlay sits ABOVE page content but BELOW/independent
 * of the browser's PDF content hierarchy.
 */

.ht-document-overlay {
    position: fixed;
    /*
     * Your application header is roughly 82px high.
     * Start immediately underneath it.
     */

    top: 82px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba( 17, 56, 53, 0.48 );
}


    .ht-document-overlay.is-open {
        display: flex;
    }


/*
 * Preview window
 */

.ht-document-overlay-window {
    display: flex;
    width: min( 1380px, calc(100vw - 50px) );
    height: calc( 100vh - 126px );
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border-radius: 9px;
    box-shadow: 0 24px 75px rgba( 17, 56, 53, 0.38 );
}


/* =========================================================
   PREVIEW HEADER
   ========================================================= */

.ht-document-overlay-header {
    position: relative;
    z-index: 5;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 68px;
    gap: 20px;
    padding: 10px 13px 10px 18px;
    color: #ffffff;
    background: #075152;
    border-bottom: 4px solid #94c11f;
}


.ht-document-overlay-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}


.ht-document-overlay-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    color: #075152;
    background: #b5d85e;
    border-radius: 50%;
    font-size: 15px;
}


.ht-document-overlay-heading {
    min-width: 0;
}


.ht-document-overlay-label {
    display: block;
    margin-bottom: 2px;
    color: rgba( 255, 255, 255, 0.65 );
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}


.ht-document-overlay-heading strong {
    display: block;
    overflow: hidden;
    max-width: 790px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   HEADER BUTTONS
   ========================================================= */

.ht-document-overlay-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}


.ht-document-overlay-button,
.ht-document-overlay-close {
    display: inline-flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}


.ht-document-overlay-button {
    color: #ffffff !important;
    background: rgba( 255, 255, 255, 0.11 );
    border: 1px solid rgba( 255, 255, 255, 0.22 );
    text-decoration: none !important;
}


    .ht-document-overlay-button:hover,
    .ht-document-overlay-button:focus {
        color: #ffffff !important;
        background: rgba( 255, 255, 255, 0.19 );
        border-color: #94c11f;
        text-decoration: none !important;
        outline: none;
    }


.ht-document-overlay-close {
    color: #075152 !important;
    background: #b5d85e;
    border: 1px solid #b5d85e;
}


    .ht-document-overlay-close:hover,
    .ht-document-overlay-close:focus {
        color: #075152 !important;
        background: #c6e878;
        border-color: #c6e878;
        outline: none;
    }


/* =========================================================
   PDF
   ========================================================= */

.ht-document-overlay-content {
    position: relative;
    display: block;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: #e6ebe9;
}


    .ht-document-overlay-content iframe {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        background: #ffffff;
        border: 0;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .ht-document-overlay {
        top: 69px;
        padding: 5px;
    }


    .ht-document-overlay-window {
        width: 100%;
        height: calc( 100vh - 79px );
        border-radius: 6px;
    }


    .ht-document-overlay-header {
        min-height: 60px;
        flex-basis: 60px;
        gap: 7px;
        padding: 8px 8px 8px 11px;
    }


    .ht-document-overlay-icon {
        display: none;
    }


    .ht-document-overlay-heading strong {
        max-width: 44vw;
        font-size: 12px;
    }


    .ht-document-overlay-button span,
    .ht-document-overlay-close span {
        display: none;
    }


    .ht-document-overlay-button,
    .ht-document-overlay-close {
        width: 39px;
        height: 39px;
        padding: 0;
    }
}

/* =========================================================
   RISK ASSESSMENT READER
   ========================================================= */

.ht-risk-layout {
    display: grid;
    grid-template-columns: minmax(300px, 365px) minmax(0, 1fr);
    align-items: stretch;
    min-height: 760px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8e2df;
    border-radius: 9px;
    box-shadow: 0 5px 18px rgba(17, 56, 53, 0.08);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.ht-risk-sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: #ffffff;
    border-right: 1px solid #d8e2df;
}


.ht-risk-sidebar-header {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 19px;
    color: #ffffff;
    background: #075152;
}


.ht-risk-sidebar-label,
.ht-risk-viewer-label {
    display: block;
    margin-bottom: 3px;
    color: rgba( 255, 255, 255, 0.62 );
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}


.ht-risk-sidebar-header h2 {
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: none !important;
    font-size: 19px !important;
    font-weight: 700;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
}


.ht-risk-count {
    display: inline-flex;
    min-width: 55px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 0 0 auto;
    color: #ffffff;
    background: rgba( 255, 255, 255, 0.12 );
    border: 1px solid rgba( 255, 255, 255, 0.17 );
    border-radius: 20px;
    font-size: 12px;
}


    .ht-risk-count strong {
        color: #b5d85e;
        font-size: 15px;
    }


/* Progress */

.ht-risk-progress {
    height: 5px;
    overflow: hidden;
    flex: 0 0 5px;
    background: #dce5e2;
}


.ht-risk-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient( 90deg, #94c11f, #45b27a );
    transition: width 220ms ease;
}


/* Instructions */

.ht-risk-instructions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 17px;
    background: #eef5f3;
    border-bottom: 1px solid #d8e2df;
}


    .ht-risk-instructions i {
        margin-top: 2px;
        color: #075152;
    }


    .ht-risk-instructions p {
        margin: 0;
        color: #607470;
        font-size: 11px;
        line-height: 1.5;
    }


/* Document list */

.ht-risk-document-list {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px;
}


.ht-risk-document {
    display: grid;
    width: 100%;
    grid-template-columns: 39px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 10px;
    margin: 0 0 5px;
    padding: 11px 10px;
    color: #173d3b;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    text-align: left;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}


    .ht-risk-document:hover,
    .ht-risk-document:focus {
        color: #075152;
        background: rgba( 148, 193, 31, 0.10 );
        border-color: rgba( 148, 193, 31, 0.30 );
        outline: none;
    }


    .ht-risk-document.is-active {
        color: #075152;
        background: #eef6f5;
        border-color: #075152;
    }


.ht-risk-document-icon {
    display: inline-flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    color: #075152;
    background: #eef3f2;
    border-radius: 5px;
    font-size: 15px;
}


.ht-risk-document.is-active
.ht-risk-document-icon,
.ht-risk-document.is-complete
.ht-risk-document-icon {
    color: #075152;
    background: rgba( 148, 193, 31, 0.18 );
}


.ht-risk-document-details {
    min-width: 0;
}


    .ht-risk-document-details strong {
        display: block;
        overflow: hidden;
        color: inherit;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.4;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


.ht-risk-document-status {
    display: block;
    margin-top: 3px;
    color: #7a8d89;
    font-size: 10px;
}


.ht-risk-status-complete {
    display: none;
    color: #417a27;
    font-weight: 700;
}


.ht-risk-document.is-complete
.ht-risk-status-pending {
    display: none;
}


.ht-risk-document.is-complete
.ht-risk-status-complete {
    display: inline;
}


/* Checkbox */

.ht-risk-document-check {
    position: relative;
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
}


.risk-document-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}


.ht-risk-custom-check {
    display: inline-flex;
    width: 23px;
    height: 23px;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: #ffffff;
    border: 1px solid #b9c8c5;
    border-radius: 50%;
    font-size: 10px;
}


.risk-document-checkbox:checked +
.ht-risk-custom-check {
    color: #ffffff;
    background: #4f9b38;
    border-color: #4f9b38;
}


/* Empty */

.ht-risk-empty {
    padding: 42px 20px;
    color: #6d7f7b;
    text-align: center;
}


    .ht-risk-empty i {
        margin-bottom: 12px;
        color: #075152;
        font-size: 29px;
    }


    .ht-risk-empty strong {
        display: block;
        margin-bottom: 5px;
        color: #075152;
    }


    .ht-risk-empty p {
        margin: 0;
        font-size: 12px;
    }


/* Footer */

.ht-risk-sidebar-footer {
    flex: 0 0 auto;
    padding: 15px;
    background: #f7f9f8;
    border-top: 1px solid #d8e2df;
}


.ht-risk-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 11px;
    padding: 9px 10px;
    color: #775b16;
    background: #fff7dc;
    border: 1px solid #ead99d;
    border-radius: 4px;
    font-size: 10px;
    line-height: 1.4;
}


    .ht-risk-warning i {
        margin-top: 2px;
    }


.ht-risk-submit {
    width: 100%;
}


.ht-risk-button-count {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 3px;
    padding: 2px 7px;
    color: #075152;
    background: #ffffff;
    border-radius: 10px;
    font-size: 10px;
}


.ht-risk-submit.is-ready {
    background: linear-gradient( 135deg, #075152, #0a6863 ) !important;
}


/* =========================================================
   PDF VIEWER
   ========================================================= */

.ht-risk-viewer {
    display: flex;
    min-width: 0;
    min-height: 760px;
    flex-direction: column;
    background: #dfe6e4;
}


.ht-risk-viewer-header {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex: 0 0 70px;
    padding: 12px 17px;
    color: #ffffff;
    background: #075152;
    border-bottom: 4px solid #94c11f;
}


    .ht-risk-viewer-header h2 {
        overflow: hidden;
        max-width: 750px;
        margin: 0 !important;
        padding: 0 !important;
        color: #ffffff !important;
        background: none !important;
        font-size: 15px !important;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: #ffffff !important;
    }


.ht-risk-viewer-link {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 7px 12px;
    color: #ffffff !important;
    background: rgba( 255, 255, 255, 0.11 );
    border: 1px solid rgba( 255, 255, 255, 0.20 );
    border-radius: 5px;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none !important;
}


    .ht-risk-viewer-link:hover,
    .ht-risk-viewer-link:focus {
        color: #ffffff !important;
        background: rgba( 255, 255, 255, 0.18 );
        border-color: #94c11f;
        outline: none;
    }


.ht-risk-viewer-content {
    position: relative;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: #dfe6e4;
}


    .ht-risk-viewer-content iframe {
        display: none;
        width: 100%;
        height: 100%;
        min-height: 690px;
        background: #ffffff;
        border: 0;
    }


.ht-risk-viewer-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    color: #657975;
    text-align: center;
}


.ht-risk-viewer-placeholder-icon {
    display: inline-flex;
    width: 74px;
    height: 74px;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    color: #075152;
    background: rgba( 255, 255, 255, 0.75 );
    border: 1px solid #cad7d4;
    border-radius: 50%;
    font-size: 29px;
}


.ht-risk-viewer-placeholder h3 {
    margin: 0 0 7px;
    color: #075152;
    background: none;
    font-size: 20px;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #075152;
}


.ht-risk-viewer-placeholder p {
    max-width: 420px;
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .ht-risk-layout {
        grid-template-columns: 1fr;
        overflow: visible;
    }


    .ht-risk-sidebar {
        border-right: 0;
        border-bottom: 1px solid #d8e2df;
    }


    .ht-risk-document-list {
        max-height: 420px;
    }


    .ht-risk-viewer {
        min-height: 720px;
    }


    .ht-risk-viewer-content iframe {
        min-height: 650px;
    }
}


@media (max-width: 767.98px) {

    .ht-risk-layout {
        border-radius: 6px;
    }


    .ht-risk-sidebar-header {
        min-height: 72px;
    }


    .ht-risk-document-list {
        max-height: none;
    }


    .ht-risk-document-details strong {
        white-space: normal;
    }


    .ht-risk-viewer {
        min-height: 620px;
    }


    .ht-risk-viewer-header {
        min-height: 64px;
        align-items: flex-start;
        flex-basis: auto;
        flex-direction: column;
        gap: 8px;
    }


        .ht-risk-viewer-header h2 {
            max-width: 82vw;
            white-space: normal;
        }


    .ht-risk-viewer-link {
        width: 100%;
    }


    .ht-risk-viewer-content iframe {
        min-height: 550px;
    }
}

/* =========================================================
   HOUSEKEEPING AUDIT PAGES
   ========================================================= */

.ht-workflow-container {
    max-width: 1700px;
    padding-right: 28px;
    padding-left: 28px;
}

.ht-chart-panel {
    overflow: hidden;
}

.ht-housekeeping-chart,
.ht-chart-container {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
}

    .ht-chart-container > div,
    .ht-chart-container > table {
        width: 100% !important;
        max-width: 100% !important;
    }

.dxc-tooltip {
    z-index: 10000 !important;
}

.ht-results-popup-content {
    min-height: 180px;
    padding: 18px;
}

.ht-popup-loading {
    display: flex;
    min-height: 160px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #075152;
    font-size: 13px;
}

.ht-audit-panel {
    overflow: hidden;
    padding: 0;
}

.ht-audit-toolbar {
    padding: 6px;
    background: #f4f7f6;
    border-bottom: 1px solid #d8e2df;
}

    .ht-audit-toolbar .dx-toolbar {
        background: transparent;
    }

.toolbar-label {
    color: #075152;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

.ht-audit-grid {
    overflow-x: auto;
    padding: 20px;
    background: #ffffff;
}

    .ht-audit-grid .dx-datagrid {
        color: #173d3b;
        background: #ffffff;
    }

    .ht-audit-grid .dx-datagrid-headers {
        color: #ffffff;
        background: #075152;
    }

    .ht-audit-grid .dx-header-row > td {
        color: #ffffff !important;
        background: #075152 !important;
        border-color: rgba(255, 255, 255, 0.14) !important;
        font-weight: 700;
    }

    .ht-audit-grid .dx-row-alt > td {
        background: #f7f9f8 !important;
    }

    .ht-audit-grid .dx-row-focused > td,
    .ht-audit-grid .dx-selection > td {
        color: #075152 !important;
        background: rgba(148, 193, 31, 0.14) !important;
    }

    .ht-audit-grid .dx-datagrid-save-button {
        color: #ffffff !important;
        background: #075152 !important;
        border-radius: 4px;
    }

.small-text {
    overflow-wrap: break-word;
    white-space: normal;
    font-size: 12px !important;
    line-height: 1.45;
}

/* Popup forms */

.ht-popup-form {
    padding: 5px;
}

.ht-popup-field {
    margin-bottom: 18px;
}

    .ht-popup-field > label {
        display: block;
        margin-bottom: 7px;
        color: #173d3b;
        font-size: 12px;
        font-weight: 700;
    }

.ht-popup-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #d8e2df;
}

/* DevExpress GridView action */

.ht-grid-action {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    background: #075152;
    border-radius: 50%;
    text-decoration: none !important;
}

    .ht-grid-action:hover,
    .ht-grid-action:focus {
        color: #075152 !important;
        background: #b5d85e;
        text-decoration: none !important;
    }

@media (max-width: 991.98px) {
    .ht-workflow-container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .ht-audit-toolbar .dx-toolbar {
        min-height: 110px;
    }

    .toolbar-label {
        font-size: 14px;
    }
}

@media (max-width: 767.98px) {
    .ht-audit-grid {
        padding: 10px;
    }

    .ht-audit-toolbar .dx-toolbar-items-container {
        height: auto !important;
    }

    .ht-popup-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ht-housekeeping-chart {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* =========================================================
   BUSINESS IMPROVEMENT REQUEST SHELL
   ========================================================= */

.ht-request-selector {
    margin-bottom: 22px;
    border-top: 4px solid #94c11f;
}


/* New request selector */

.ht-request-selector-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 370px);
    align-items: center;
    gap: 35px;
}


.ht-request-selector-copy h2 {
    margin: 8px 0 7px;
    color: #075152;
    background: none;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #075152;
}


.ht-request-selector-copy p {
    max-width: 700px;
    margin: 0;
    color: #657874;
    font-size: 13px;
    line-height: 1.55;
}


.ht-request-selector-control {
    padding: 17px;
    background: #f4f7f6;
    border: 1px solid #d8e2df;
    border-radius: 6px;
}


    .ht-request-selector-control > label {
        display: block;
        margin-bottom: 7px;
        color: #173d3b;
        font-size: 12px;
        font-weight: 700;
    }


    /*
 * DevExpress ComboBox
 */

    .ht-request-selector-control
    .dxeButtonEditSys {
        width: 100% !important;
    }


    .ht-request-selector-control
    .dxeButtonEdit_MaterialCompact,
    .ht-request-selector-control
    .dxeButtonEdit {
        width: 100% !important;
        background: #ffffff;
        border-color: #cad7d4;
    }


/* =========================================================
   EXISTING REQUEST
   ========================================================= */

.ht-request-existing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


.ht-request-existing-info {
    display: flex;
    align-items: center;
    gap: 18px;
}


    .ht-request-existing-info
    .ht-card-badge {
        margin: 0;
    }


.ht-request-existing-label {
    display: block;
    margin-bottom: 2px;
    color: #738681;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.ht-request-existing-info strong {
    display: block;
    color: #075152;
    font-size: 21px;
    font-weight: 700;
}


/* =========================================================
   DYNAMIC FORM CONTAINER
   ========================================================= */

.ht-request-form-container {
    width: 100%;
    min-height: 200px;
}


    .ht-request-form-container > .ht-inner-panel:first-child {
        margin-top: 0;
    }


/* =========================================================
   PLACEHOLDER
   ========================================================= */

.ht-request-placeholder {
    display: flex;
    min-height: 390px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 45px 30px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #d8e2df;
    border-radius: 9px;
    box-shadow: 0 4px 15px rgba( 17, 56, 53, 0.06 );
}


.ht-request-placeholder-icon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #075152;
    background: rgba( 148, 193, 31, 0.15 );
    border-radius: 50%;
    font-size: 28px;
}


.ht-request-placeholder h2 {
    margin: 0 0 8px;
    color: #075152;
    background: none;
    font-size: 25px;
    font-weight: 700;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #075152;
}


.ht-request-placeholder > p {
    max-width: 570px;
    margin: 0 auto 27px;
    color: #667a76;
    font-size: 13px;
    line-height: 1.55;
}


/* KPI / CAR explanation */

.ht-request-type-help {
    display: grid;
    width: 100%;
    max-width: 720px;
    grid-template-columns: repeat( 2, minmax(0, 1fr) );
    gap: 14px;
}


    .ht-request-type-help > div {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
        text-align: left;
        background: #f4f7f6;
        border: 1px solid #d8e2df;
        border-radius: 6px;
    }


.ht-request-type-icon {
    display: inline-flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    flex: 0 0 39px;
    color: #ffffff;
    background: #075152;
    border-radius: 50%;
    font-size: 14px;
}


.ht-request-type-help strong {
    display: block;
    margin-bottom: 3px;
    color: #075152;
    font-size: 13px;
}


.ht-request-type-help p {
    margin: 0;
    color: #687b77;
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   LOADING / ERROR
   ========================================================= */

.ht-request-loading,
.ht-request-error {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #d8e2df;
    border-radius: 9px;
}


.ht-request-loading-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    color: #075152;
    background: rgba( 148, 193, 31, 0.14 );
    border-radius: 50%;
}


.ht-request-loading strong,
.ht-request-error strong {
    display: block;
    margin-bottom: 3px;
    color: #075152;
    font-size: 14px;
}


.ht-request-loading p,
.ht-request-error p {
    margin: 0;
    color: #687b77;
    font-size: 12px;
}


.ht-request-error {
    color: #a22e2e;
    background: #fff7f7;
    border-color: #e6c5c5;
}


    .ht-request-error > i {
        color: #b93434;
        font-size: 26px;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .ht-request-selector-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .ht-request-existing {
        align-items: stretch;
        flex-direction: column;
    }


        .ht-request-existing
        .ht-primary-button {
            width: 100%;
        }


    .ht-request-type-help {
        grid-template-columns: 1fr;
    }


    .ht-request-placeholder {
        min-height: 330px;
        padding: 32px 18px;
    }
}

/* =========================================================
   CAR / KPI FORM LAYOUT
   ========================================================= */

#FormContainer {
    width: 100%;
    padding-bottom: 92px;
}


    /* Main dynamically loaded form */

    #FormContainer .container {
        width: 100% !important;
        max-width: 1380px !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }


    /*
 * Fix Bootstrap rows inside the dynamically loaded forms.
 */

    #FormContainer .row {
        display: flex;
        width: auto !important;
        margin-right: -15px !important;
        margin-left: -15px !important;
    }


        #FormContainer .row > .col,
        #FormContainer .row > [class*="col-"] {
            min-width: 0;
        }


    /* =========================================================
   SECTION HEADINGS
   ========================================================= */

    #FormContainer h3,
    #FormContainer h5 {
        color: #075152 !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: #075152 !important;
    }


    #FormContainer h3 {
        margin: 0 0 14px;
        font-size: 22px;
        font-weight: 700;
    }


    #FormContainer h5 {
        margin: 0 0 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid #d8e2df;
        font-size: 18px;
        font-weight: 700;
    }


    /* =========================================================
   NORMAL FORM CONTROLS
   ========================================================= */

    #FormContainer .form-group {
        width: 100% !important;
        margin-bottom: 18px !important;
    }


        #FormContainer .form-group > label {
            display: block;
            margin-bottom: 6px;
            color: #173d3b;
            font-size: 12px;
            font-weight: 650;
        }


    #FormContainer .form-control {
        display: block;
        width: 100%;
        min-height: 40px;
        margin-bottom: 0 !important;
        padding: 8px 12px;
        color: #173d3b;
        background: #ffffff;
        border: 1px solid #cbd7d5;
        border-radius: 4px;
        box-shadow: none;
    }


        #FormContainer .form-control:focus {
            border-color: #075152;
            outline: none;
            box-shadow: 0 0 0 3px rgba(148, 193, 31, 0.14);
        }


    #FormContainer textarea.form-control {
        min-height: 125px;
        resize: vertical;
    }


    /* Disabled calculated fields */

    #FormContainer .form-control:disabled,
    #FormContainer .form-control[readonly] {
        color: #536762;
        background: #e9eeec;
    }


    /* =========================================================
   EXISTING INLINE PAIRS
   ========================================================= */

    /*
 * Your old forms use:
 *
 * label 49.5%
 * label 49.5%
 * control .inline
 * control .inline
 *
 * These rules restore the original two-column relationship.
 */

    #FormContainer .form-group > label[style*="49.5"] {
        display: inline-block !important;
        width: calc(50% - 7px) !important;
        margin-right: 10px;
        vertical-align: bottom;
    }


        #FormContainer .form-group > label[style*="49.5"]:nth-of-type(2) {
            margin-right: 0;
        }


    #FormContainer .form-control.inline {
        display: inline-block !important;
        width: calc(50% - 8px) !important;
        margin-right: 11px !important;
        vertical-align: top;
    }


        #FormContainer .form-control.inline:nth-of-type(2),
        #FormContainer select.form-control.inline:last-child,
        #FormContainer input.form-control.inline:last-child {
            margin-right: 0 !important;
        }


/* =========================================================
   BETTER TWO-FIELD COMPONENT
   ========================================================= */

/*
 * Use this on forms as we update them.
 */

.ht-form-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}


    .ht-form-pair .form-group {
        margin-bottom: 0 !important;
    }


/* =========================================================
   CHECKBOX PANEL
   ========================================================= */

#FormContainer .checkbox,
#FormContainer input[type="checkbox"] {
    width: 18px !important;
    height: 18px;
    margin: 0;
    accent-color: #075152;
}


.ht-kpi-check-option,
#FormContainer .form-group:has( #KPI_FutureWorkloadEffecting ) {
    padding: 15px 17px;
    background: #f4f7f6;
    border: 1px solid #d8e2df;
    border-left: 4px solid #94c11f;
    border-radius: 5px;
}


    #FormContainer .form-group:has( #KPI_FutureWorkloadEffecting ) p {
        max-width: 680px;
        margin: 7px 0 0;
        color: #61746f;
        font-size: 11px;
        line-height: 1.5;
    }


/* =========================================================
   GREEN DETAILS / RESOLUTION AREA
   ========================================================= */

#FormContainer .row[style*="147, 192, 32"] {
    margin-top: 10px !important;
    padding: 24px 10px !important;
    background: #ffffff !important;
    border: 1px solid #d8e2df;
    border-top: 4px solid #94c11f;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(17, 56, 53, 0.06);
}


/* =========================================================
   FIXED ACTION BAR
   Restores the clear buttons along the bottom
   ========================================================= */

#FormContainer #toolbar {
    position: fixed !important;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 11px 24px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border-top: 1px solid #d8e2df;
    box-shadow: 0 -8px 24px rgba(17, 56, 53, 0.12);
    backdrop-filter: blur(7px);
}


    #FormContainer #toolbar .wrapper {
        display: flex;
        width: 100%;
        max-width: 1380px;
        align-items: center;
        justify-content: flex-end;
        margin: 0 auto;
    }


    #FormContainer #toolbar .btn-group {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }


    /*
 * All workflow actions
 */

    #FormContainer #toolbar .btn {
        display: inline-flex;
        min-height: 42px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin: 0 !important;
        padding: 8px 15px !important;
        color: #075152 !important;
        background: #ffffff !important;
        border: 1px solid #bdcbc8 !important;
        border-radius: 5px !important;
        box-shadow: none !important;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
        text-decoration: none !important;
    }


        #FormContainer #toolbar .btn:hover,
        #FormContainer #toolbar .btn:focus {
            color: #075152 !important;
            background: rgba(148, 193, 31, 0.13) !important;
            border-color: #94c11f !important;
            text-decoration: none !important;
        }


        /*
 * Icons
 */

        #FormContainer #toolbar .btn i {
            color: #075152 !important;
        }


    /*
 * Save / Issue button
 *
 * Your old code has both:
 * .btn-success
 * and the typo .btn-succes
 */

    #FormContainer #toolbar .btn-success,
    #FormContainer #toolbar .btn-succes {
        color: #ffffff !important;
        background: #075152 !important;
        border-color: #075152 !important;
    }


        #FormContainer #toolbar .btn-success:hover,
        #FormContainer #toolbar .btn-succes:hover {
            color: #ffffff !important;
            background: #043f40 !important;
            border-color: #043f40 !important;
        }


        #FormContainer #toolbar .btn-success i,
        #FormContainer #toolbar .btn-succes i {
            color: #ffffff !important;
        }


    /*
 * Disabled actions
 */

    #FormContainer #toolbar .btn[disabled],
    #FormContainer #toolbar .btn.disabled {
        color: #83928f !important;
        background: #eef2f1 !important;
        border-color: #d6dfdd !important;
        pointer-events: none;
        opacity: 0.7;
    }


/* =========================================================
   RESOLUTION PROGRESS
   ========================================================= */

#FormContainer .dxeProgressBar_MaterialCompact,
#FormContainer .dxeProgressBar {
    width: 100% !important;
    overflow: hidden;
    background: #e5ebe9 !important;
    border: 0 !important;
    border-radius: 20px !important;
}


#FormContainer .dxePBMainCell_MaterialCompact {
    border-radius: 20px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    #FormContainer {
        padding-bottom: 190px;
    }


        #FormContainer .row {
            display: block;
            margin-right: 0 !important;
            margin-left: 0 !important;
        }


            #FormContainer .row > .col,
            #FormContainer .row > [class*="col-"] {
                width: 100%;
                max-width: 100%;
                padding-right: 0;
                padding-left: 0;
            }


        #FormContainer .form-group > label[style*="49.5"] {
            display: block !important;
            width: 100% !important;
            margin-right: 0;
        }


        #FormContainer .form-control.inline {
            display: block !important;
            width: 100% !important;
            margin-right: 0 !important;
            margin-bottom: 16px !important;
        }


    .ht-form-pair {
        grid-template-columns: 1fr;
    }


    #FormContainer #toolbar {
        padding: 9px 12px !important;
    }


        #FormContainer #toolbar .wrapper {
            display: block;
        }


        #FormContainer #toolbar .btn-group {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 7px;
        }


        #FormContainer #toolbar .btn {
            width: 100%;
            min-width: 0;
        }


        #FormContainer #toolbar .btn-success,
        #FormContainer #toolbar .btn-succes {
            grid-column: 1 / -1;
        }
}

/* =========================================================
   DYNAMIC CAR / KPI FINAL ALIGNMENT
   ========================================================= */

.ht-dynamic-request-form {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding-bottom: 90px;
}

    .ht-dynamic-request-form .ht-inner-panel {
        margin-top: 0;
        margin-bottom: 22px;
    }

    .ht-dynamic-request-form .ht-field {
        display: flex;
        min-width: 0;
        flex-direction: column;
    }

        .ht-dynamic-request-form .ht-field > label {
            display: block;
            min-height: 18px;
            margin: 0 0 6px;
            color: #173d3b;
            font-size: 12px;
            font-weight: 650;
        }

        .ht-dynamic-request-form .ht-field .form-control {
            width: 100%;
            min-height: 42px;
            margin: 0;
        }

        .ht-dynamic-request-form .ht-field textarea.form-control {
            min-height: 130px;
        }

    .ht-dynamic-request-form .ht-form-pair {
        align-items: start;
        margin-bottom: 18px;
    }

        .ht-dynamic-request-form .ht-form-pair > div {
            min-width: 0;
        }

.ht-effect-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}

.ht-effect-check {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    background: #f4f7f6;
    border: 1px solid #d8e2df;
    border-radius: 4px;
}

    .ht-effect-check label {
        margin: 0;
        color: #173d3b;
        font-size: 12px;
        font-weight: 650;
    }

    .ht-effect-check input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: #075152;
    }

/* Fixed bottom action bar */

#carSection,
#kpiSection {
    padding-bottom: 82px;
}

    #carSection #toolbar,
    #kpiSection #toolbar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1050;
        width: 100%;
        padding: 11px 24px;
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid #d8e2df;
        box-shadow: 0 -8px 24px rgba(17, 56, 53, 0.14);
    }

        #carSection #toolbar .wrapper,
        #kpiSection #toolbar .wrapper {
            display: flex;
            width: 100%;
            max-width: 1380px;
            justify-content: flex-end;
            margin: 0 auto;
        }

        #carSection #toolbar .btn-group,
        #kpiSection #toolbar .btn-group {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        #carSection #toolbar .btn,
        #kpiSection #toolbar .btn {
            display: inline-flex;
            min-height: 42px;
            align-items: center;
            justify-content: center;
            gap: 7px;
            margin: 0;
            padding: 8px 15px;
            color: #075152;
            background: #ffffff;
            border: 1px solid #bdcbc8;
            border-radius: 5px;
            font-size: 12px;
            font-weight: 700;
            text-decoration: none;
        }

        #carSection #toolbar .btn-success,
        #kpiSection #toolbar .btn-success {
            color: #ffffff;
            background: #075152;
            border-color: #075152;
        }

            #carSection #toolbar .btn-success:hover,
            #kpiSection #toolbar .btn-success:hover {
                color: #ffffff;
                background: #043f40;
                border-color: #043f40;
            }

        #carSection #toolbar .disabled,
        #kpiSection #toolbar .disabled {
            color: #82918e;
            background: #edf1f0;
            border-color: #d4dddb;
            pointer-events: none;
        }

@media (max-width: 767.98px) {

    .ht-dynamic-request-form {
        padding-bottom: 180px;
    }

        .ht-dynamic-request-form .ht-form-pair,
        .ht-effect-row {
            grid-template-columns: 1fr;
        }

    #carSection,
    #kpiSection {
        padding-bottom: 165px;
    }

        #carSection #toolbar,
        #kpiSection #toolbar {
            padding: 8px 10px;
        }

            #carSection #toolbar .wrapper,
            #kpiSection #toolbar .wrapper {
                display: block;
            }

            #carSection #toolbar .btn-group,
            #kpiSection #toolbar .btn-group {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            #carSection #toolbar .btn,
            #kpiSection #toolbar .btn {
                width: 100%;
                min-width: 0;
            }

            #carSection #toolbar .btn-success,
            #kpiSection #toolbar .btn-success {
                grid-column: 1 / -1;
            }
}

/* =========================================================
   ACCIDENT FORM
   ========================================================= */

#accidentSection {
    padding-bottom: 84px;
}

.ht-accident-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.75fr);
    align-items: start;
    gap: 22px;
}

    .ht-accident-grid .ht-inner-panel {
        margin-bottom: 22px;
    }

.ht-accident-resolution {
    position: sticky;
    top: 95px;
    border-top: 4px solid #94c11f;
}

.ht-accident-status {
    margin-bottom: 22px;
}

.ht-panel-header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}

    .ht-panel-header-actions > div {
        min-width: 0;
    }

/* Fixed accident toolbar */

#accidentSection #toolbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    padding: 11px 24px;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #d8e2df;
    box-shadow: 0 -8px 24px rgba(17, 56, 53, 0.14);
}

    #accidentSection #toolbar .wrapper {
        display: flex;
        width: 100%;
        max-width: 1600px;
        justify-content: flex-end;
        margin: 0 auto;
    }

    #accidentSection #toolbar .btn-group {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    #accidentSection #toolbar .btn {
        display: inline-flex;
        min-height: 42px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin: 0;
        padding: 8px 15px;
        color: #075152;
        background: #ffffff;
        border: 1px solid #bdcbc8;
        border-radius: 5px;
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
    }

    #accidentSection #toolbar .btn-success {
        color: #ffffff;
        background: #075152;
        border-color: #075152;
    }

    #accidentSection #toolbar .btn-info {
        color: #075152;
        background: #eef5f3;
        border-color: #a9bfba;
    }

    #accidentSection #toolbar .disabled {
        color: #82918e;
        background: #edf1f0;
        border-color: #d4dddb;
        pointer-events: none;
    }

/* Reporting landing cards */

.ht-reporting-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ht-reporting-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 17px;
    min-height: 155px;
    padding: 23px;
    color: #173d3b !important;
    background: #ffffff;
    border: 1px solid #d8e2df;
    border-top: 4px solid #94c11f;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(17, 56, 53, 0.07);
    text-decoration: none !important;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

    .ht-reporting-card:hover,
    .ht-reporting-card:focus {
        color: #173d3b !important;
        border-color: #94c11f;
        box-shadow: 0 10px 25px rgba(17, 56, 53, 0.13);
        text-decoration: none !important;
        transform: translateY(-2px);
    }

.ht-reporting-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #075152;
    border-radius: 50%;
    font-size: 21px;
}

.ht-reporting-icon-danger {
    background: #a64235;
}

.ht-reporting-card h2 {
    margin: 8px 0 6px;
    color: #075152;
    background: none;
    font-size: 19px;
    font-weight: 700;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #075152;
}

.ht-reporting-card p {
    margin: 0;
    color: #687b77;
    font-size: 12px;
    line-height: 1.55;
}

.ht-reporting-arrow {
    color: #94c11f;
    font-size: 18px;
}

/* Data table */

.ht-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.ht-data-table {
    width: 100%;
    border-collapse: collapse;
}

    .ht-data-table th,
    .ht-data-table td {
        padding: 13px 15px;
        border-bottom: 1px solid #dfe7e5;
        color: #173d3b;
        font-size: 12px;
    }

    .ht-data-table thead th {
        color: #ffffff;
        background: #075152;
        font-weight: 700;
    }

    .ht-data-table tbody tr:nth-child(even) td {
        background: #f7f9f8;
    }

    .ht-data-table tbody tr:hover td {
        background: rgba(148, 193, 31, 0.10);
    }

    .ht-data-table tfoot th {
        color: #075152;
        background: #eef4f2;
        border-top: 2px solid #075152;
        font-weight: 700;
    }

.ht-number-column {
    text-align: center !important;
}

.ht-percentage-badge {
    display: inline-flex;
    min-width: 59px;
    min-height: 27px;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    color: #075152;
    background: rgba(148, 193, 31, 0.18);
    border-radius: 14px;
    font-weight: 700;
}

.printHeader {
    display: none;
}

@media (max-width: 991.98px) {

    .ht-accident-grid {
        grid-template-columns: 1fr;
    }

    .ht-accident-resolution {
        position: static;
    }

    .ht-reporting-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {

    #accidentSection {
        padding-bottom: 180px;
    }

    .ht-panel-header-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .ht-panel-header-actions .btn {
            width: 100%;
        }

    #accidentSection #toolbar {
        padding: 8px 10px;
    }

        #accidentSection #toolbar .wrapper {
            display: block;
        }

        #accidentSection #toolbar .btn-group {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        #accidentSection #toolbar .btn {
            width: 100%;
            min-width: 0;
        }

        #accidentSection #toolbar .btn-success {
            grid-column: 1 / -1;
        }

    .ht-reporting-card {
        grid-template-columns: 48px minmax(0, 1fr) 22px;
        padding: 17px;
    }

    .ht-reporting-icon {
        width: 46px;
        height: 46px;
        font-size: 17px;
    }
}

/* Print */

@media print {

    @page {
        size: A4;
        margin: 15mm;
    }

    body {
        color: #000 !important;
        background: #fff !important;
        font-size: 11px;
    }

    .printHeader {
        display: block;
        margin-bottom: 25px;
        border-bottom: 3px solid #000;
        padding-bottom: 14px;
    }

        .printHeader h1 {
            margin: 0 0 15px;
            font-size: 24px;
        }

    #accidentSection #toolbar,
    .ht-inner-header,
    .noPrint,
    .navbar,
    footer,
    .dxeProgressBar_MaterialCompact {
        display: none !important;
    }

    #accidentSection {
        padding: 0;
    }

    .ht-workflow-container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }

    .ht-accident-grid,
    .ht-form-pair {
        display: block;
    }

    .ht-inner-panel {
        margin-bottom: 18px;
        padding: 0;
        border: 0;
        box-shadow: none;
        page-break-inside: auto;
    }

    .ht-inner-panel-header {
        margin-bottom: 10px;
        padding: 7px;
        background: #efefef !important;
        border: 1px solid #ccc;
    }

        .ht-inner-panel-header h2 {
            font-size: 15px !important;
        }

    .ht-field,
    .ht-option-panel {
        margin-bottom: 10px;
        page-break-inside: avoid;
    }

    input,
    textarea,
    select {
        width: 100% !important;
        color: #000 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        appearance: none;
        -webkit-appearance: none;
    }

    textarea {
        height: auto !important;
        overflow: visible !important;
        resize: none;
    }
}

/* =========================================================
   TIMESHEETS
   ========================================================= */

.ht-timesheet-page {
    padding-bottom: 35px;
}

.ht-timesheet-editor {
    overflow: hidden;
    padding: 0;
}

    .ht-timesheet-editor
    .ht-inner-panel-header {
        margin: 0;
        padding: 22px 24px;
    }

.ht-timesheet-grid {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding: 18px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

    .ht-timesheet-grid .dx-datagrid {
        width: 100%;
        color: #173d3b;
        background: #ffffff;
        border-radius: 5px;
    }

    .ht-timesheet-grid .dx-datagrid-headers {
        color: #ffffff;
        background: #075152;
    }

    .ht-timesheet-grid
    .dx-header-row > td {
        color: #ffffff !important;
        background: #075152 !important;
        border-color: rgba( 255, 255, 255, 0.14 ) !important;
        font-size: 12px;
        font-weight: 700;
    }

    .ht-timesheet-grid
    .dx-data-row > td {
        padding-top: 11px;
        padding-bottom: 11px;
        border-color: #e0e8e6;
        font-size: 12px;
    }

    .ht-timesheet-grid
    .dx-row-alt > td {
        background: #f7f9f8 !important;
    }

    .ht-timesheet-grid
    .dx-row-focused > td,
    .ht-timesheet-grid
    .dx-selection > td {
        color: #075152 !important;
        background: rgba( 148, 193, 31, 0.14 ) !important;
    }

.ht-timesheet-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #075152 !important;
    font-weight: 700;
    text-decoration: none !important;
}

    .ht-timesheet-link:hover,
    .ht-timesheet-link:focus {
        color: #69930d !important;
        text-decoration: underline !important;
    }

/* Status */

.ht-status-badge {
    display: inline-flex;
    min-width: 92px;
    min-height: 27px;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

    .ht-status-badge.AUTHORISED,
    .AUTHORISED {
        color: #27631f !important;
        background: rgba( 78, 154, 55, 0.15 );
    }

    .ht-status-badge.UNAUTHORISED,
    .UNAUTHORISED {
        color: #9f2929 !important;
        background: rgba( 190, 55, 55, 0.13 );
    }

/* Week popup */

.ht-week-selector {
    padding: 8px 4px;
}

    .ht-week-selector > p {
        margin: 0 0 14px;
        color: #5e726d;
        font-size: 12px;
    }

    .ht-week-selector
    .dx-radiobutton {
        min-height: 46px;
        line-height: 1.4;
    }

.ht-week-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding: 11px 12px;
    color: #705719;
    background: #fff6d8;
    border: 1px solid #ead79a;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.45;
}

/* Detail grids */

.ht-timesheet-grid
.dx-master-detail-cell {
    padding: 12px !important;
    background: #eef4f2 !important;
}

.ht-timesheet-grid
.dx-datagrid-total-footer {
    color: #075152;
    background: #eef4f2;
    font-weight: 700;
}

/* Popups */

.dx-popup-wrapper
.dx-popup-content {
    -webkit-overflow-scrolling: touch;
}

.dx-popup-wrapper
.dx-field-item-label {
    color: #173d3b;
    font-size: 12px;
    font-weight: 650;
}

/* DevExpress authorisation detail */

.ht-grid-partial
.dxgvDetailCell_MaterialCompact,
.ht-grid-partial
.dxgvDetailCell {
    padding: 12px !important;
    background: #eef4f2 !important;
}

/* Mobile */

@media (max-width: 767.98px) {

    .ht-timesheet-editor
    .ht-inner-panel-header {
        padding: 17px 15px;
    }

    .ht-timesheet-grid {
        padding: 8px;
    }

        .ht-timesheet-grid
        .dx-datagrid {
            font-size: 11px;
        }

        .ht-timesheet-grid
        .dx-header-row > td,
        .ht-timesheet-grid
        .dx-data-row > td {
            font-size: 11px !important;
        }

        .ht-timesheet-grid
        .dx-datagrid-search-panel {
            width: 100% !important;
            margin: 6px 0 !important;
        }

    .ht-status-badge {
        min-width: 78px;
        font-size: 9px;
    }

    .dx-popup-fullscreen
    .dx-popup-content {
        padding: 12px;
    }

    .dx-popup-fullscreen
    .dx-form-group-with-caption {
        padding: 0;
    }

    .dx-popup-fullscreen
    .dx-field-item {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .dx-fab {
        right: 14px !important;
        bottom: 18px !important;
    }
}

/* =========================================================
   HOLIDAY MANAGEMENT
   ========================================================= */

.ht-holiday-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.ht-holiday-summary-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 17px;
    background: #ffffff;
    border: 1px solid #d8e2df;
    border-radius: 7px;
    box-shadow: 0 3px 12px rgba(17, 56, 53, 0.06);
}

.ht-holiday-summary-primary {
    border-top: 4px solid #94c11f;
}

.ht-holiday-summary-icon {
    display: inline-flex;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    color: #ffffff;
    background: #075152;
    border-radius: 50%;
    font-size: 16px;
}

.ht-holiday-summary-card span {
    display: block;
    color: #687b77;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ht-holiday-summary-card strong {
    display: inline-block;
    margin-top: 3px;
    color: #075152;
    font-size: 25px;
    font-weight: 750;
}

.ht-holiday-summary-card small {
    margin-left: 3px;
    color: #687b77;
    font-size: 10px;
}

.ht-holiday-information {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 20px;
    padding: 13px 15px;
    color: #705719;
    background: #fff7dc;
    border: 1px solid #ebd99f;
    border-radius: 5px;
}

    .ht-holiday-information i {
        margin-top: 2px;
    }

    .ht-holiday-information p {
        margin: 0;
        font-size: 11px;
        line-height: 1.5;
    }

.ht-holiday-calendar-panel {
    overflow: hidden;
    padding: 0;
}

    .ht-holiday-calendar-panel
    .ht-inner-panel-header {
        margin: 0;
        padding: 21px 23px;
    }

.ht-holiday-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 11px 23px;
    background: #f4f7f6;
    border-top: 1px solid #d8e2df;
    border-bottom: 1px solid #d8e2df;
}

    .ht-holiday-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #526763;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
    }

.ht-holiday-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

    .ht-holiday-dot.is-requested {
        background: #d98d22;
    }

    .ht-holiday-dot.is-authorised {
        background: #27814a;
    }

    .ht-holiday-dot.is-declined {
        background: #717a7a;
    }

    .ht-holiday-dot.is-cancelled {
        background: #ad342d;
    }

.ht-scheduler-container {
    width: 100%;
    min-width: 0;
    padding: 15px;
    background: #ffffff;
}

    .ht-scheduler-container .dx-scheduler {
        width: 100% !important;
    }

.holiday-appointment {
    width: 100%;
    min-height: 22px;
    overflow: hidden;
    padding: 3px 5px;
    color: #ffffff;
    border-radius: 4px;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ht-mobile-holiday-dot {
    width: 11px;
    height: 11px;
    margin: auto;
    border-radius: 50%;
}

.ht-holiday-collector {
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
}

.dx-scheduler-appointment-collector {
    background: transparent !important;
    box-shadow: none !important;
}

.ht-calendar-weekend {
    color: #7a8885;
    background: #f1f3f2;
}

.ht-holiday-request-form {
    padding: 5px;
}

    .ht-holiday-request-form
    .ht-popup-field {
        margin-bottom: 17px;
    }

        .ht-holiday-request-form
        .ht-popup-field > label {
            display: block;
            margin-bottom: 6px;
            color: #173d3b;
            font-size: 12px;
            font-weight: 700;
        }

        .ht-holiday-request-form
        .ht-popup-field > small {
            display: block;
            margin-top: 5px;
            color: #71837f;
            font-size: 10px;
        }

.ht-holiday-half-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
    padding: 13px 14px;
    background: #f4f7f6;
    border: 1px solid #d8e2df;
    border-left: 4px solid #94c11f;
    border-radius: 5px;
}

    .ht-holiday-half-day strong {
        color: #075152;
        font-size: 12px;
    }

    .ht-holiday-half-day p {
        margin: 2px 0 0;
        color: #687b77;
        font-size: 10px;
    }

.ht-holiday-request-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
    padding: 12px 14px;
    color: #075152;
    background: rgba(148, 193, 31, 0.14);
    border-radius: 5px;
}

    .ht-holiday-request-total span {
        font-size: 11px;
        font-weight: 700;
    }

    .ht-holiday-request-total strong {
        font-size: 16px;
    }

@media (max-width: 1199.98px) {

    .ht-holiday-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {

    .ht-holiday-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .ht-holiday-summary-card {
        align-items: flex-start;
        padding: 12px;
    }

    .ht-holiday-summary-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 13px;
    }

    .ht-holiday-summary-card strong {
        font-size: 20px;
    }

    .ht-holiday-calendar-panel
    .ht-inner-panel-header {
        padding: 16px 14px;
    }

    .ht-holiday-legend {
        gap: 10px;
        padding: 10px 14px;
    }

    .ht-scheduler-container {
        padding: 5px;
    }

        .ht-scheduler-container
        .dx-scheduler-header {
            flex-wrap: wrap;
        }

        .ht-scheduler-container
        .dx-scheduler-navigator {
            width: 100%;
        }

        .ht-scheduler-container
        .dx-scheduler-view-switcher {
            margin-top: 5px;
        }

        .ht-scheduler-container
        .dx-scheduler-date-table-cell {
            min-width: 42px;
        }

        .ht-scheduler-container
        .dx-scheduler-date-table-cell-text {
            font-size: 10px;
        }

    .dx-scheduler-appointment {
        min-height: 13px;
    }
}

@media (max-width: 479.98px) {

    .ht-holiday-summary {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   HOLIDAY AUTHORISATION
   ========================================================= */

.ht-holiday-authorisation-calendar {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
}


    .ht-holiday-authorisation-calendar
    .dxscControl_MaterialCompact,
    .ht-holiday-authorisation-calendar
    .dxscControl {
        width: 100% !important;
    }


/*
 * Request grid
 */

.ht-holiday-authorisation-grid {
    width: 100%;
    min-width: 0;
}


    /*
 * Command links
 */

    .ht-holiday-authorisation-grid
    .dxgvCommandColumn_MaterialCompact a,
    .ht-holiday-authorisation-grid
    .dxgvCommandColumn a {
        display: inline-flex;
        min-height: 34px;
        align-items: center;
        justify-content: center;
        margin: 3px 4px;
        padding: 5px 11px;
        color: #075152 !important;
        background: #ffffff;
        border: 1px solid #b8c7c4;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 700;
        text-decoration: none !important;
    }


        .ht-holiday-authorisation-grid
        .dxgvCommandColumn_MaterialCompact a:hover,
        .ht-holiday-authorisation-grid
        .dxgvCommandColumn a:hover {
            color: #075152 !important;
            background: rgba( 148, 193, 31, 0.14 );
            border-color: #94c11f;
        }


        /*
 * Give Accept a positive visual treatment where supported
 * by generated markup/order.
 */

        .ht-holiday-authorisation-grid
        .dxgvCommandColumn a:first-child {
            color: #ffffff !important;
            background: #075152;
            border-color: #075152;
        }


/* Mobile */

@media (max-width: 767.98px) {

    .ht-holiday-authorisation-calendar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }


    .ht-holiday-authorisation-grid
    .dxgvCommandColumn_MaterialCompact,
    .ht-holiday-authorisation-grid
    .dxgvCommandColumn {
        white-space: normal !important;
    }


        .ht-holiday-authorisation-grid
        .dxgvCommandColumn_MaterialCompact a,
        .ht-holiday-authorisation-grid
        .dxgvCommandColumn a {
            display: flex;
            width: 100%;
            margin: 4px 0;
        }
}

/* =========================================================
   HOLIDAY AUTHORISATION PAGE
   ========================================================= */

.ht-holiday-authorisation-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.8fr) minmax(560px, 1.2fr);
    align-items: start;
    gap: 20px;
}

    .ht-holiday-authorisation-layout
    .ht-inner-panel {
        min-width: 0;
        margin: 0;
        overflow: hidden;
        padding: 0;
    }

    .ht-holiday-authorisation-layout
    .ht-inner-panel-header {
        margin: 0;
        padding: 20px 22px;
    }

.ht-holiday-authorisation-grid,
.ht-holiday-authorisation-calendar {
    width: 100%;
    min-width: 0;
    padding: 14px;
    background: #ffffff;
}

    .ht-holiday-authorisation-grid > table,
    .ht-holiday-authorisation-calendar > table {
        width: 100% !important;
        max-width: 100% !important;
    }


    /* =========================================================
   REQUEST LIST ACTION BUTTONS
   ========================================================= */

    .ht-holiday-authorisation-grid
    .dxgvCommandColumn_MaterialCompact,
    .ht-holiday-authorisation-grid
    .dxgvCommandColumn {
        white-space: nowrap;
    }

        .ht-holiday-authorisation-grid
        .dxgvCommandColumn_MaterialCompact a,
        .ht-holiday-authorisation-grid
        .dxgvCommandColumn a {
            display: inline-flex;
            min-width: 72px;
            min-height: 34px;
            align-items: center;
            justify-content: center;
            margin: 3px;
            padding: 5px 10px;
            color: #075152 !important;
            background: #ffffff;
            border: 1px solid #b8c7c4;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 700;
            text-decoration: none !important;
        }

            .ht-holiday-authorisation-grid
            .dxgvCommandColumn_MaterialCompact a:hover,
            .ht-holiday-authorisation-grid
            .dxgvCommandColumn a:hover {
                color: #075152 !important;
                background: rgba(148, 193, 31, 0.14);
                border-color: #94c11f;
            }


/* =========================================================
   POPUPS
   ========================================================= */

.ht-holiday-decision-popup {
    padding: 6px;
}

.ht-holiday-decision-intro {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 18px;
    padding: 14px;
    background: #f4f7f6;
    border: 1px solid #d8e2df;
    border-radius: 5px;
}

.ht-holiday-decision-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    color: #ffffff;
    border-radius: 50%;
    font-size: 15px;
}

    .ht-holiday-decision-icon.is-decline {
        background: #a33b35;
    }

    .ht-holiday-decision-icon.is-authorise {
        background: #075152;
    }

.ht-holiday-decision-intro strong {
    display: block;
    margin-bottom: 3px;
    color: #075152;
    font-size: 13px;
}

.ht-holiday-decision-intro p {
    margin: 0;
    color: #657874;
    font-size: 11px;
    line-height: 1.5;
}

.ht-holiday-popup-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 13px;
    padding-top: 15px;
    border-top: 1px solid #d8e2df;
}

.ht-danger-button {
    color: #ffffff !important;
    background: #a33b35 !important;
    border-color: #a33b35 !important;
}

.ht-authorise-button {
    color: #ffffff !important;
    background: #075152 !important;
    border-color: #075152 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199.98px) {

    .ht-holiday-authorisation-layout {
        grid-template-columns: 1fr;
    }

    .ht-holiday-authorisation-calendar-panel {
        order: 1;
    }

    .ht-holiday-authorisation-list-panel {
        order: 2;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .ht-holiday-authorisation-layout {
        display: block;
    }

        .ht-holiday-authorisation-layout
        .ht-inner-panel {
            margin-bottom: 16px;
        }

        .ht-holiday-authorisation-layout
        .ht-inner-panel-header {
            padding: 16px 14px;
        }

    .ht-holiday-authorisation-grid,
    .ht-holiday-authorisation-calendar {
        overflow-x: auto;
        padding: 6px;
        -webkit-overflow-scrolling: touch;
    }

        .ht-holiday-authorisation-grid
        .dxgvCommandColumn_MaterialCompact,
        .ht-holiday-authorisation-grid
        .dxgvCommandColumn {
            white-space: normal !important;
        }

            .ht-holiday-authorisation-grid
            .dxgvCommandColumn_MaterialCompact a,
            .ht-holiday-authorisation-grid
            .dxgvCommandColumn a {
                display: flex;
                width: 100%;
                min-width: 0;
                margin: 4px 0;
            }

    .ht-holiday-popup-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

        .ht-holiday-popup-actions > div,
        .ht-holiday-popup-actions table {
            width: 100% !important;
        }
}

.ht-form-panel {
    overflow: hidden;
}

.ht-form-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #d8e2df;
}

    .ht-form-section h3 {
        margin: 0 0 5px;
        color: #075152;
        font-size: 17px;
        font-weight: 700;
    }

    .ht-form-section > p {
        margin: 0 0 17px;
        color: #687b77;
        font-size: 11px;
    }

.ht-account-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ht-check-card {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 13px;
    background: #f4f7f6;
    border: 1px solid #d8e2df;
    border-radius: 5px;
    cursor: pointer;
}

    .ht-check-card input {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: #075152;
    }

    .ht-check-card span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #075152;
        font-size: 12px;
        font-weight: 700;
    }

.ht-file-picker {
    display: flex;
    min-height: 85px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    color: #075152;
    background: #f4f7f6;
    border: 2px dashed #aac0bb;
    border-radius: 6px;
    cursor: pointer;
}

    .ht-file-picker i {
        font-size: 25px;
    }

.ht-hidden-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.ht-selected-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 11px;
    padding: 10px 12px;
    background: #eef4f2;
    border: 1px solid #d8e2df;
    border-radius: 4px;
}

.ht-verification-popup {
    padding: 6px;
}

.ht-verification-intro {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 17px;
    padding: 14px;
    background: #f4f7f6;
    border: 1px solid #d8e2df;
    border-radius: 5px;
}

.ht-verification-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    color: #ffffff;
    background: #075152;
    border-radius: 50%;
}

.ht-verification-intro strong {
    display: block;
    color: #075152;
    font-size: 13px;
}

.ht-verification-intro p {
    margin: 3px 0 0;
    color: #687b77;
    font-size: 11px;
}

.ht-popup-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #d8e2df;
}

@media (max-width: 767.98px) {

    .ht-account-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ht-popup-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

        .ht-popup-actions .dxbButton {
            width: 100% !important;
        }
}

@media (max-width: 479.98px) {

    .ht-account-options {
        grid-template-columns: 1fr;
    }

    .ht-selected-file {
        align-items: stretch;
        flex-direction: column;
    }
}

/* =========================================================
   HR / EMPLOYEE ADMIN
   ========================================================= */

.ht-calendar-filter {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

    .ht-calendar-filter label {
        color: #173d3b;
        font-size: 11px;
        font-weight: 700;
    }

    .ht-calendar-filter .form-control {
        min-width: 165px;
    }


/* Planner legend */

.ht-planner-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 11px 18px;
    background: #f4f7f6;
    border-top: 1px solid #d8e2df;
    border-bottom: 1px solid #d8e2df;
}

    .ht-planner-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #596d68;
        font-size: 10px;
        font-weight: 700;
    }

.ht-planner-key {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 2px;
}

    .ht-planner-key.is-authorised {
        background: #94c11f;
    }

    .ht-planner-key.is-requested {
        background: #e49b2b;
    }

    .ht-planner-key.is-sickness {
        background: #bb3731;
    }

    .ht-planner-key.is-nonworking {
        background: #d6dcda;
    }

    .ht-planner-key.is-half {
        background: linear-gradient( 135deg, #94c11f 50%, #ffffff 50% );
        border: 1px solid #94c11f;
    }


/* Wide holiday planner */

.ht-holiday-planner-scroll {
    width: 100%;
    overflow-x: auto;
    margin: 18px 0 26px;
    border: 1px solid #d8e2df;
    -webkit-overflow-scrolling: touch;
}

.ht-holiday-planner {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    .ht-holiday-planner th,
    .ht-holiday-planner td {
        width: 27px;
        min-width: 27px;
        height: 28px;
        padding: 0;
        border: 1px solid #dde5e3;
        text-align: center;
    }

    .ht-holiday-planner thead th {
        color: #ffffff;
        background: #075152;
        font-size: 9px;
        font-weight: 700;
    }

    .ht-holiday-planner .ht-planner-month {
        height: 34px;
        color: #ffffff;
        background: #075152;
        font-size: 11px;
    }

    .ht-holiday-planner .ht-planner-day {
        background: #0a6462;
    }

    .ht-holiday-planner .ht-planner-employee {
        position: sticky;
        left: 0;
        z-index: 4;
        width: 175px;
        min-width: 175px;
        padding: 0 9px;
        color: #173d3b;
        background: #ffffff;
        text-align: left;
        font-size: 10px;
    }

    .ht-holiday-planner thead
    .ht-planner-employee {
        z-index: 6;
        color: #ffffff;
        background: #075152;
    }

    .ht-holiday-planner .ht-planner-balance {
        position: sticky;
        left: 175px;
        z-index: 3;
        width: 55px;
        min-width: 55px;
        background: #f4f7f6;
        font-size: 10px;
    }

    .ht-holiday-planner thead
    .ht-planner-balance {
        z-index: 6;
        color: #ffffff;
        background: #075152;
    }

.ht-planner-cell.is-authorised {
    background: #94c11f;
}

.ht-planner-cell.is-requested {
    background: #e49b2b;
}

.ht-planner-cell.is-sickness {
    background: #bb3731;
}

.ht-planner-cell.is-nonworking {
    background: #d6dcda;
}

.ht-planner-cell.is-half-authorised {
    background: linear-gradient( 135deg, #94c11f 50%, #ffffff 50% );
}

.ht-planner-cell.is-half-requested {
    background: linear-gradient( 135deg, #e49b2b 50%, #ffffff 50% );
}


/* Standard themed Bootstrap modal */

.ht-standard-modal .modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 20px 65px rgba(17, 56, 53, 0.25);
}

.ht-standard-modal .modal-header {
    align-items: center;
    color: #ffffff;
    background: #075152;
    border-bottom: 4px solid #94c11f;
}

    .ht-standard-modal .modal-header h2 {
        margin: 2px 0 0;
        color: #ffffff !important;
        background: none !important;
        font-size: 17px !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    .ht-standard-modal .modal-header .close {
        position: static;
        margin: 0 0 0 auto;
        color: #ffffff;
        opacity: 1;
    }

.ht-modal-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.68;
}

.ht-standard-modal .modal-body {
    padding: 20px;
}

.ht-standard-modal .modal-footer {
    border-top: 1px solid #d8e2df;
}


@media (max-width: 767.98px) {

    .ht-calendar-filter {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

        .ht-calendar-filter .form-control,
        .ht-calendar-filter .btn {
            width: 100%;
        }

    .ht-planner-legend {
        gap: 9px 13px;
        padding: 10px 12px;
    }

    .ht-holiday-planner
    .ht-planner-employee {
        width: 145px;
        min-width: 145px;
    }

    .ht-holiday-planner
    .ht-planner-balance {
        left: 145px;
        width: 45px;
        min-width: 45px;
    }

    .ht-standard-modal .modal-dialog {
        width: calc(100vw - 12px);
        max-width: none;
        margin: 6px auto;
    }

    .ht-standard-modal .modal-body {
        padding: 13px;
    }
}

/* =========================================================
   BUSINESS AREA HOLIDAY PLANNER - FINAL SIZING
   ========================================================= */

.ht-holiday-planner-panel {
    overflow: hidden;
    padding: 0;
}


    .ht-holiday-planner-panel
    .ht-inner-panel-header {
        margin: 0;
        padding: 20px 22px;
    }


/* =========================================================
   TABLE CONTAINER
   ========================================================= */

.ht-holiday-planner-block {
    width: calc(100% - 28px);
    margin: 18px 14px 28px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d3dfdc;
    border-radius: 5px;
}


/* =========================================================
   TABLE
   ========================================================= */

.ht-holiday-planner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}


    .ht-holiday-planner th,
    .ht-holiday-planner td {
        box-sizing: border-box !important;
        height: 30px;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid #d8e2df;
        font-size: 8px;
        line-height: 1;
        text-align: center;
        white-space: nowrap;
    }


    /* =========================================================
   FIRST HEADER ROW
   ========================================================= */

    .ht-holiday-planner
    .ht-planner-corner {
        padding: 0;
        background: #075152;
        border-color: rgba( 255, 255, 255, 0.20 );
    }


    .ht-holiday-planner
    .ht-planner-month {
        height: 34px;
        padding: 0 3px;
        color: #ffffff;
        background: #075152;
        border-color: rgba( 255, 255, 255, 0.20 );
        font-size: 10px;
        font-weight: 700;
        line-height: 34px;
        text-align: center;
    }


    /* =========================================================
   EMPLOYEE
   ========================================================= */

    .ht-holiday-planner
    .ht-planner-employee {
        /*
     * Width comes from COLGROUP.
     * Do NOT define a CSS width here.
     */

        padding: 0 7px;
        overflow: hidden;
        color: #173d3b;
        background: #ffffff;
        font-size: 10px;
        line-height: 30px;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    .ht-holiday-planner thead
    .ht-planner-employee {
        color: #ffffff;
        background: #075152;
        font-size: 9px;
        font-weight: 700;
    }


    /* =========================================================
   HOLIDAY BALANCE
   ========================================================= */

    .ht-holiday-planner
    .ht-planner-balance {
        /*
     * Width comes from COLGROUP.
     */

        padding: 0;
        color: #173d3b;
        background: #f1f5f4;
        font-size: 9px;
        line-height: 30px;
        text-align: center;
    }


    .ht-holiday-planner thead
    .ht-planner-balance {
        color: #ffffff;
        background: #075152;
        font-size: 9px;
    }


    /* =========================================================
   DAYS
   ========================================================= */

    .ht-holiday-planner
    .ht-planner-day {
        /*
     * CRITICAL:
     * Never specify a width here.
     *
     * The COLGROUP handles it.
     */

        min-width: 0 !important;
        padding: 0 !important;
        overflow: hidden;
        color: #ffffff;
        background: #0b6764;
        font-size: 7px;
        font-weight: 700;
        line-height: 30px;
        text-align: center;
    }


        .ht-holiday-planner
        .ht-planner-day.is-weekend {
            background: #517572;
        }


    /* =========================================================
   BODY DAY CELLS
   ========================================================= */

    .ht-holiday-planner
    .ht-planner-cell {
        min-width: 0 !important;
        padding: 0 !important;
        background: #ffffff;
    }


        /* Authorised holiday */

        .ht-holiday-planner
        .ht-planner-cell.is-authorised {
            background: #94c11f;
        }


        /* Requested / pending holiday */

        .ht-holiday-planner
        .ht-planner-cell.is-requested {
            background: #e49b2b;
        }


        /* Sickness */

        .ht-holiday-planner
        .ht-planner-cell.is-sickness {
            background: #bb3731;
        }


        /* Weekend / bank holiday */

        .ht-holiday-planner
        .ht-planner-cell.is-nonworking {
            background: #d4dcda;
        }


        /* Half day */

        .ht-holiday-planner
        .ht-planner-cell.is-half-authorised {
            background: linear-gradient( 135deg, #94c11f 0%, #94c11f 49%, #ffffff 50%, #ffffff 100% );
        }


        .ht-holiday-planner
        .ht-planner-cell.is-half-requested {
            background: linear-gradient( 135deg, #e49b2b 0%, #e49b2b 49%, #ffffff 50%, #ffffff 100% );
        }


    /* =========================================================
   ROW HOVER
   ========================================================= */

    .ht-holiday-planner
    tbody tr:hover
    .ht-planner-employee,
    .ht-holiday-planner
    tbody tr:hover
    .ht-planner-balance {
        background: #edf4f2;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .ht-holiday-planner-block {
        width: calc( 100% - 12px );
        margin: 10px 6px 18px;
    }


    .ht-holiday-planner th,
    .ht-holiday-planner td {
        height: 27px;
        font-size: 7px;
    }


    .ht-holiday-planner
    .ht-planner-month {
        height: 31px;
        font-size: 9px;
        line-height: 31px;
    }


    .ht-holiday-planner
    .ht-planner-employee {
        padding: 0 3px;
        font-size: 8px;
        line-height: 27px;
    }


    .ht-holiday-planner
    .ht-planner-balance {
        font-size: 7px;
        line-height: 27px;
    }


    .ht-holiday-planner
    .ht-planner-day {
        font-size: 6px;
        line-height: 27px;
    }
}

/* =========================================================
   ADMIN OVERLAY
   ========================================================= */

body.ht-document-open {
    overflow: hidden !important;
}

.ht-admin-overlay {
    position: fixed;
    top: 82px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba( 17, 56, 53, 0.48 );
}

    .ht-admin-overlay.is-open {
        display: flex;
    }

.ht-admin-overlay-window {
    display: flex;
    width: min( 1000px, calc(100vw - 50px) );
    max-height: calc( 100vh - 126px );
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border-radius: 9px;
    box-shadow: 0 24px 75px rgba( 17, 56, 53, 0.38 );
}

.ht-admin-overlay-header {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 20px;
    padding: 10px 14px 10px 20px;
    color: #ffffff;
    background: #075152;
    border-bottom: 4px solid #94c11f;
}

.ht-admin-overlay-label {
    display: block;
    margin-bottom: 2px;
    color: rgba( 255, 255, 255, 0.65 );
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ht-admin-overlay-header h2 {
    margin: 0 !important;
    color: #ffffff !important;
    background: none !important;
    font-size: 17px !important;
    font-weight: 700;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
}

.ht-admin-overlay-close {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 13px;
    color: #075152;
    background: #b5d85e;
    border: 1px solid #b5d85e;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

    .ht-admin-overlay-close:hover {
        background: #c6e878;
        border-color: #c6e878;
    }

.ht-admin-overlay-content {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.ht-admin-overlay-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 9px;
    padding: 13px 18px;
    background: #f7f9f8;
    border-top: 1px solid #d8e2df;
}


/*
 * DevExpress dropdowns/token boxes inside the overlay
 * need to stay above it.
 */

.ht-admin-overlay
.dx-overlay-wrapper {
    z-index: 2250 !important;
}


@media (max-width: 767.98px) {

    .ht-admin-overlay {
        top: 69px;
        padding: 5px;
    }

    .ht-admin-overlay-window {
        width: 100%;
        max-height: calc( 100vh - 79px );
        border-radius: 6px;
    }

    .ht-admin-overlay-header {
        min-height: 60px;
        padding: 8px 9px 8px 13px;
    }

    .ht-admin-overlay-close span {
        display: none;
    }

    .ht-admin-overlay-close {
        width: 39px;
        padding: 0;
    }

    .ht-admin-overlay-content {
        padding: 12px;
    }

    .ht-admin-overlay-footer {
        align-items: stretch;
        flex-direction: column-reverse;
        padding: 10px;
    }

        .ht-admin-overlay-footer .btn {
            width: 100%;
        }
}

/* =========================================================
   BUSINESS AREA HOLIDAY PLANNER
   ========================================================= */

.ht-ba-planner-panel {
    overflow: hidden;
    padding: 0;
}


    .ht-ba-planner-panel
    .ht-inner-panel-header {
        margin: 0;
        padding: 20px 22px;
    }


/* =========================================================
   FILTER
   ========================================================= */

.ht-ba-planner-filter {
    display: flex;
    align-items: flex-end;
    gap: 9px;
}


    .ht-ba-planner-filter label {
        display: block;
        margin-bottom: 5px;
        color: #173d3b;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
    }


    .ht-ba-planner-filter
    .form-control {
        width: 175px;
        min-height: 39px;
    }


/* =========================================================
   LEGEND
   ========================================================= */

.ht-ba-planner-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 11px 18px;
    background: #f4f7f6;
    border-top: 1px solid #d8e2df;
    border-bottom: 1px solid #d8e2df;
}


    .ht-ba-planner-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #566b66;
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
    }


.ht-ba-key {
    display: inline-block;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 2px;
}


.ht-ba-key-authorised {
    background: #94c11f;
}


.ht-ba-key-requested {
    background: #e89727;
}


.ht-ba-key-sickness {
    background: #bc3c34;
}


.ht-ba-key-nonworking {
    background: #d5dddb;
}


.ht-ba-key-half {
    background: linear-gradient( 135deg, #94c11f 0%, #94c11f 49%, #ffffff 50%, #ffffff 100% );
    border: 1px solid #94c11f;
}


/* =========================================================
   PLANNER
   ========================================================= */

.ht-ba-planner-content {
    width: 100%;
    padding: 14px;
}


.ht-ba-planner-table-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 0 26px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d3dfdc;
    border-radius: 5px;
}


table.ht-ba-planner-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}


    /*
 * IMPORTANT:
 * Override any old global table sizing.
 */

    table.ht-ba-planner-table th,
    table.ht-ba-planner-table td {
        box-sizing: border-box !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 30px;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
        border: 1px solid #d7e1df !important;
        font-size: 8px;
        line-height: 1;
        text-align: center !important;
        white-space: nowrap;
    }


    /* =========================================================
   CORNER / MONTH
   ========================================================= */

    table.ht-ba-planner-table
    .ht-ba-corner {
        color: #ffffff;
        background: #075152;
        border-color: rgba( 255, 255, 255, 0.17 ) !important;
    }


    table.ht-ba-planner-table
    .ht-ba-month {
        height: 34px;
        padding: 0 3px !important;
        color: #ffffff;
        background: #075152;
        border-color: rgba( 255, 255, 255, 0.17 ) !important;
        font-size: 10px;
        font-weight: 700;
        line-height: 34px;
        text-align: center !important;
    }


    /* =========================================================
   EMPLOYEE COLUMN
   ========================================================= */

    table.ht-ba-planner-table
    .ht-ba-employee {
        /*
     * Width comes from the COLGROUP.
     */

        padding: 0 7px !important;
        color: #173d3b;
        background: #ffffff;
        font-size: 9px;
        font-weight: 600;
        line-height: 30px;
        text-align: left !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    table.ht-ba-planner-table thead
    .ht-ba-employee {
        color: #ffffff;
        background: #075152;
        font-size: 9px;
        font-weight: 700;
    }


    /* =========================================================
   BALANCE
   ========================================================= */

    table.ht-ba-planner-table
    .ht-ba-balance {
        /*
     * Width comes from the COLGROUP.
     */

        color: #173d3b;
        background: #f3f7f6;
        font-size: 8px;
        line-height: 30px;
        text-align: center !important;
    }


    table.ht-ba-planner-table thead
    .ht-ba-balance {
        color: #ffffff;
        background: #075152;
        font-weight: 700;
    }


    /* =========================================================
   DAY HEADERS
   ========================================================= */

    table.ht-ba-planner-table
    .ht-ba-day {
        padding: 0 !important;
        color: #ffffff;
        background: #0a6562;
        font-size: 7px;
        font-weight: 700;
        line-height: 30px;
        text-align: center !important;
    }


        table.ht-ba-planner-table
        .ht-ba-day.is-weekend {
            background: #547774;
        }


    /* =========================================================
   DATE CELLS
   ========================================================= */

    table.ht-ba-planner-table
    .ht-ba-cell {
        padding: 0 !important;
        background: #ffffff;
    }


        table.ht-ba-planner-table
        .ht-ba-cell.is-authorised {
            background: #94c11f;
        }


        table.ht-ba-planner-table
        .ht-ba-cell.is-requested {
            background: #e89727;
        }


        table.ht-ba-planner-table
        .ht-ba-cell.is-sickness {
            background: #bc3c34;
        }


        table.ht-ba-planner-table
        .ht-ba-cell.is-nonworking {
            background: #d5dddb;
        }


        table.ht-ba-planner-table
        .ht-ba-cell.is-half-authorised {
            background: linear-gradient( 135deg, #94c11f 0%, #94c11f 49%, #ffffff 50%, #ffffff 100% );
        }


        table.ht-ba-planner-table
        .ht-ba-cell.is-half-requested {
            background: linear-gradient( 135deg, #e89727 0%, #e89727 49%, #ffffff 50%, #ffffff 100% );
        }


    /* =========================================================
   ROW HOVER
   ========================================================= */

    table.ht-ba-planner-table
    tbody tr:hover
    .ht-ba-employee,
    table.ht-ba-planner-table
    tbody tr:hover
    .ht-ba-balance {
        background: #edf4f2;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .ht-ba-planner-panel
    .ht-inner-panel-header {
        padding: 15px 12px;
    }


    .ht-ba-planner-filter {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }


        .ht-ba-planner-filter
        .form-control,
        .ht-ba-planner-filter
        .btn {
            width: 100%;
        }


    .ht-ba-planner-legend {
        gap: 8px 12px;
        padding: 9px 10px;
    }


    .ht-ba-planner-content {
        padding: 6px;
    }


    .ht-ba-planner-table-wrap {
        margin-bottom: 15px;
    }


    table.ht-ba-planner-table th,
    table.ht-ba-planner-table td {
        height: 27px;
        font-size: 6px;
    }


    table.ht-ba-planner-table
    .ht-ba-month {
        height: 31px;
        font-size: 9px;
        line-height: 31px;
    }


    table.ht-ba-planner-table
    .ht-ba-employee {
        padding: 0 3px !important;
        font-size: 8px;
        line-height: 27px;
    }


    table.ht-ba-planner-table
    .ht-ba-balance {
        font-size: 7px;
        line-height: 27px;
    }


    table.ht-ba-planner-table
    .ht-ba-day {
        font-size: 6px;
        line-height: 27px;
    }
}

/* Core behaviours */

.ht-core-behaviour-results {
    display: grid;
    gap: 12px;
}

.ht-core-behaviour-card {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #d8e2df;
    border-left: 4px solid #94c11f;
    border-radius: 5px;
}

    .ht-core-behaviour-card header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 15px;
    }

    .ht-core-behaviour-card h3 {
        margin: 6px 0 0;
        color: #075152;
        font-size: 15px;
    }

    .ht-core-behaviour-card time {
        color: #687b77;
        font-size: 10px;
    }

.ht-core-behaviour-reason {
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid #e0e7e5;
}

    .ht-core-behaviour-reason strong {
        color: #173d3b;
        font-size: 10px;
        text-transform: uppercase;
    }

    .ht-core-behaviour-reason p {
        margin: 4px 0 0;
        color: #536762;
        font-size: 12px;
        line-height: 1.55;
    }


/* Announcements */

.ht-announcement-list {
    display: grid;
    gap: 13px;
}

.ht-announcement-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8e2df;
    border-radius: 6px;
}

    .ht-announcement-card header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: #f4f7f6;
    }

.ht-announcement-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    color: #ffffff;
    background: #075152;
    border-radius: 50%;
}

.ht-announcement-card h3 {
    margin: 0;
    color: #075152;
    font-size: 14px;
}

.ht-announcement-meta {
    margin: 3px 0 0;
    color: #71827f;
    font-size: 9px;
}

    .ht-announcement-meta span {
        margin-left: 7px;
    }

.ht-announcement-body {
    padding: 17px;
    color: #435954;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-line;
}

.ht-announcement-card footer {
    padding: 10px 17px;
    border-top: 1px solid #e0e7e5;
}

    .ht-announcement-card footer a {
        color: #075152;
        font-size: 11px;
        font-weight: 700;
    }


/* Admin centre */

.ht-admin-centre-layout {
    display: grid;
    grid-template-columns: minmax(450px, 0.9fr) minmax(550px, 1.1fr);
    align-items: start;
    gap: 20px;
}

    .ht-admin-centre-layout
    .ht-inner-panel {
        min-width: 0;
        margin: 0;
    }

.ht-admin-partial {
    width: 100%;
    min-width: 0;
}


/* Holiday overview */

.ht-holiday-overview-scroll {
    max-height: 720px;
    overflow: auto;
}

.ht-holiday-overview-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}

.ht-holiday-overview-table small {
    font-size: 8px;
    opacity: 0.8;
}

.ht-balance-badge {
    display: inline-flex;
    min-width: 48px;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    color: #075152;
    background: rgba(148, 193, 31, 0.17);
    border-radius: 13px;
    font-weight: 700;
}


/* DevExtreme file manager */

.ht-file-manager {
    width: 100%;
    min-width: 0;
    padding: 12px;
}

    .ht-file-manager
    .dx-filemanager {
        width: 100% !important;
    }


/* Admin tabs */

.ht-admin-tabs-panel {
    overflow: hidden;
    padding: 0;
}

.ht-admin-tab-content {
    width: 100%;
    min-width: 0;
    padding: 20px;
}


@media (max-width: 991.98px) {

    .ht-admin-centre-layout {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 767.98px) {

    .ht-core-behaviour-card header {
        flex-direction: column;
        gap: 7px;
    }

    .ht-holiday-overview-scroll {
        max-height: none;
        overflow-x: auto;
    }

    .ht-file-manager {
        padding: 4px;
    }

    .ht-admin-tab-content {
        padding: 10px;
    }
}

/* =========================================================
   EMPLOYEE APPLICATION
   ========================================================= */

.ht-employee-record {
    width: 100%;
    min-width: 0;
}

.ht-employee-record-header {
    margin-bottom: 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid #d8e2df;
}

    .ht-employee-record-header h2 {
        margin: 7px 0 0;
        color: #075152;
        font-size: 20px;
        font-weight: 700;
    }

.ht-admin-accordion {
    display: grid;
    gap: 9px;
}

.ht-admin-accordion-section {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8e2df;
    border-radius: 6px;
}

.ht-admin-accordion-button {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 14px;
    color: #075152;
    background: #f4f7f6;
    border: 0;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

    .ht-admin-accordion-button > span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .ht-admin-accordion-button > span > i {
            width: 20px;
            color: #69930d;
            text-align: center;
        }

    .ht-admin-accordion-button:hover {
        background: #eaf1ef;
    }

    .ht-admin-accordion-button[aria-expanded="true"] {
        color: #ffffff;
        background: #075152;
    }

        .ht-admin-accordion-button[aria-expanded="true"] > span > i {
            color: #b9dc60;
        }

.ht-admin-accordion-content {
    padding: 18px;
}

.ht-bank-declarations {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

    .ht-bank-declarations label {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        margin: 0;
        padding: 11px 12px;
        background: #f4f7f6;
        border: 1px solid #d8e2df;
        border-radius: 4px;
    }

    .ht-bank-declarations input[type="checkbox"] {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        margin: 0;
        accent-color: #075152;
    }

    .ht-bank-declarations span {
        color: #435954;
        font-size: 11px;
        line-height: 1.45;
    }

.ht-acceptance-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
    padding: 12px 14px;
    color: #075152;
    background: rgba(148, 193, 31, 0.13);
    border-left: 4px solid #94c11f;
    border-radius: 4px;
}

    .ht-acceptance-status strong {
        font-size: 11px;
    }

    .ht-acceptance-status span {
        font-size: 11px;
        font-weight: 700;
    }

.ht-signature-preview {
    width: 100%;
    max-width: 600px;
    padding: 11px;
    background: #ffffff;
    border: 1px solid #d8e2df;
    border-radius: 5px;
}

    .ht-signature-preview img {
        display: block;
        width: 100%;
        height: auto;
    }

.ht-signature-canvas {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    background: #ffffff;
    border: 1px solid #075152;
    border-radius: 4px;
}

@media (max-width: 767.98px) {

    .ht-admin-accordion-content {
        padding: 11px;
    }

    .ht-employee-record-header h2 {
        font-size: 17px;
    }

    .ht-acceptance-status {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

/* =========================================================
   EMPLOYEE ADMIN LISTS
   ========================================================= */

.ht-employee-admin-lists {
    display: grid;
    gap: 24px;
}


.ht-employee-admin-section {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8e2df;
    border-radius: 6px;
}


.ht-employee-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 17px;
    background: #f4f7f6;
    border-bottom: 1px solid #d8e2df;
}


    .ht-employee-admin-header h2 {
        margin: 0 !important;
        color: #075152 !important;
        background: none !important;
        font-size: 15px !important;
        font-weight: 700;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: #075152 !important;
    }


    .ht-employee-admin-header p {
        margin: 4px 0 0;
        color: #687b77;
        font-size: 10px;
    }


.ht-count-badge {
    display: inline-flex;
    min-width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 9px;
    color: #ffffff;
    background: #075152;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 800;
}


.ht-employee-admin-table {
    margin: 0 !important;
}


.ht-employee-name {
    display: flex;
    align-items: center;
    gap: 10px;
}


    .ht-employee-name strong {
        display: block;
        color: #173d3b;
        font-size: 11px;
    }


    .ht-employee-name small {
        display: block;
        margin-top: 2px;
        color: #71827f;
        font-size: 9px;
    }


.ht-employee-avatar {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    color: #ffffff;
    background: #075152;
    border-radius: 50%;
    font-size: 12px;
}


    .ht-employee-avatar.is-published {
        background: #5d810f;
    }


.ht-action-column,
.ht-status-column {
    text-align: center !important;
}


.ht-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}


.ht-table-action {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 9px;
    color: #075152 !important;
    background: #ffffff;
    border: 1px solid #bdcbc8;
    border-radius: 4px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
}


    .ht-table-action:hover {
        color: #075152 !important;
        background: rgba( 148, 193, 31, 0.14 );
        border-color: #94c11f;
    }


    .ht-table-action.is-primary {
        color: #ffffff !important;
        background: #075152;
        border-color: #075152;
    }


        .ht-table-action.is-primary:hover {
            color: #ffffff !important;
            background: #043f40;
            border-color: #043f40;
        }


    .ht-table-action:disabled {
        cursor: wait;
        opacity: 0.55;
    }


.ht-status-pill {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}


    .ht-status-pill.is-complete {
        color: #326000;
        background: rgba(148, 193, 31, 0.18);
    }


    .ht-status-pill.is-pending {
        color: #7c5912;
        background: #fff1ce;
    }


    .ht-status-pill.is-warning {
        color: #8e312c;
        background: #f9dedb;
    }


    .ht-status-pill.is-neutral {
        color: #51635f;
        background: #e9efed;
    }


.ht-empty-table {
    padding: 30px 20px !important;
    color: #6d7f7b !important;
    text-align: center !important;
}


    .ht-empty-table i,
    .ht-empty-table strong,
    .ht-empty-table span {
        display: block;
    }


    .ht-empty-table i {
        margin-bottom: 8px;
        color: #94c11f;
        font-size: 22px;
    }


    .ht-empty-table strong {
        color: #075152;
        font-size: 12px;
    }


    .ht-empty-table span {
        margin-top: 4px;
        font-size: 10px;
    }


/* =========================================================
   EMPLOYEE DOCUMENT OVERLAY
   ========================================================= */

.ht-admin-overlay-small {
    max-width: 560px;
}


.ht-document-viewer-window {
    width: min( 1200px, calc(100vw - 42px) );
    height: calc( 100vh - 120px );
}


.ht-document-viewer-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: #343b39;
}


.ht-document-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .ht-employee-admin-header {
        align-items: flex-start;
        padding: 13px;
    }


    .ht-table-responsive {
        overflow: visible;
    }


    .ht-employee-admin-table,
    .ht-employee-admin-table tbody,
    .ht-employee-admin-table tr,
    .ht-employee-admin-table td {
        display: block;
        width: 100%;
    }


        .ht-employee-admin-table thead {
            display: none;
        }


        .ht-employee-admin-table tr {
            padding: 12px;
            border-bottom: 1px solid #d8e2df;
        }


            .ht-employee-admin-table tr:last-child {
                border-bottom: 0;
            }


        .ht-employee-admin-table td {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 13px;
            padding: 7px 0 !important;
            border: 0 !important;
            text-align: right !important;
        }


            .ht-employee-admin-table td::before {
                content: attr(data-label);
                flex: 0 0 88px;
                color: #61746f;
                font-size: 9px;
                font-weight: 700;
                text-align: left;
                text-transform: uppercase;
            }


            .ht-employee-admin-table td:first-child {
                display: block;
                padding-top: 0 !important;
                padding-bottom: 11px !important;
                border-bottom: 1px solid #e0e7e5 !important;
                text-align: left !important;
            }


                .ht-employee-admin-table td:first-child::before {
                    display: none;
                }


    .ht-status-column,
    .ht-action-column {
        text-align: right !important;
    }


    .ht-row-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }


    .ht-table-action {
        width: 100%;
        min-height: 38px;
    }


    .ht-document-viewer-window {
        width: 100%;
        height: calc( 100vh - 79px );
    }
}

/* =========================================================
   DOCUMENT MANAGEMENT
   ========================================================= */

.ht-document-management-panel {
    overflow: hidden;
    padding: 0;
}


    .ht-document-management-panel
    .ht-inner-panel-header {
        margin: 0;
        padding: 20px 22px;
    }


.ht-document-grid {
    width: 100%;
    min-width: 0;
    padding: 14px;
}


    .ht-document-grid
    .dx-datagrid {
        width: 100% !important;
        max-width: none !important;
    }


    .ht-document-grid
    .dx-datagrid-container,
    .ht-document-grid
    .dx-datagrid-headers,
    .ht-document-grid
    .dx-datagrid-rowsview,
    .ht-document-grid
    .dx-datagrid-total-footer {
        width: 100% !important;
    }


    .ht-document-grid
    .dx-toolbar {
        padding: 8px 4px 13px;
    }


    .ht-document-grid
    .dx-toolbar-before {
        white-space: normal;
    }


    .ht-document-grid
    .dx-datagrid-group-panel {
        min-height: 43px;
        padding: 8px;
        color: #61736f;
        background: #f4f7f6;
        border: 1px dashed #bdcbc8;
        border-radius: 4px;
    }


    .ht-document-grid
    .dx-datagrid-header-panel {
        border-bottom: 1px solid #d8e2df;
    }


    .ht-document-grid
    .dx-datagrid-headers {
        color: #ffffff;
        background: #075152;
    }


        .ht-document-grid
        .dx-datagrid-headers
        .dx-datagrid-text-content {
            color: #ffffff;
            font-size: 10px;
            font-weight: 700;
        }


    .ht-document-grid
    .dx-row-alt > td {
        background: #f7f9f8;
    }


    .ht-document-grid
    .dx-row-focused > td {
        color: #173d3b !important;
        background: rgba( 148, 193, 31, 0.17 ) !important;
    }


    .ht-document-grid
    .dx-command-edit
    .dx-link {
        margin: 0 4px;
        color: #075152;
    }


        .ht-document-grid
        .dx-command-edit
        .dx-link:hover {
            color: #69930d;
        }


/* =========================================================
   DOCUMENT PREVIEW
   ========================================================= */

.ht-document-preview-window {
    width: min( 1250px, calc(100vw - 44px) );
    height: calc( 100vh - 120px );
}


.ht-document-preview-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: #313735;
}


.ht-document-preview-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}


/* =========================================================
   DELETE CONFIRMATION
   ========================================================= */

.ht-delete-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px;
    color: #4f302d;
    background: #fff3f1;
    border: 1px solid #ecc7c3;
    border-radius: 6px;
}


.ht-delete-warning-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    color: #ffffff;
    background: #a33b35;
    border-radius: 50%;
}


.ht-delete-warning strong {
    display: block;
    margin-bottom: 4px;
    color: #8b302b;
    font-size: 13px;
}


.ht-delete-warning p {
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
}


.ht-delete-document-name {
    margin-top: 9px !important;
    padding: 8px 10px;
    color: #173d3b;
    background: #ffffff;
    border: 1px solid #e4d7d5;
    border-radius: 4px;
    font-weight: 700;
}


.ht-danger-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 13px;
    color: #ffffff !important;
    background: #a33b35;
    border: 1px solid #a33b35;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}


    .ht-danger-action:hover {
        color: #ffffff !important;
        background: #852d28;
        border-color: #852d28;
    }


    .ht-danger-action:disabled {
        cursor: wait;
        opacity: 0.6;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .ht-document-management-panel
    .ht-inner-panel-header {
        padding: 15px 13px;
    }


    .ht-document-grid {
        padding: 5px;
    }


        .ht-document-grid
        .dx-toolbar {
            padding: 7px 2px 10px;
        }


        .ht-document-grid
        .dx-toolbar-items-container {
            height: auto !important;
            min-height: 42px;
        }


        .ht-document-grid
        .dx-toolbar-before,
        .ht-document-grid
        .dx-toolbar-after {
            position: static;
            display: flex;
            width: 100%;
            align-items: stretch;
            float: none;
        }


        .ht-document-grid
        .dx-toolbar-before {
            margin-bottom: 6px;
        }


        .ht-document-grid
        .dx-toolbar-item {
            display: block;
            width: 100%;
            padding: 2px 0;
        }


        .ht-document-grid
        .dx-button {
            width: 100%;
        }


    .ht-document-preview-window {
        width: 100%;
        height: calc( 100vh - 79px );
    }


    .ht-delete-warning {
        flex-direction: column;
    }
}

/* =========================================================
   IT HELP GUIDES
   ========================================================= */

.ht-help-container {
    max-width: 1180px;
}

.ht-guide-intro {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.ht-guide-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    color: #ffffff;
    background: #075152;
    border-radius: 50%;
    font-size: 21px;
}

.ht-guide-intro h2 {
    margin: 0 0 8px;
    color: #075152;
    font-size: 19px;
}

.ht-guide-intro p {
    color: #536762;
    font-size: 12px;
    line-height: 1.65;
}

.ht-guide-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 12px;
    padding: 11px 13px;
    color: #586d68;
    background: #f4f7f6;
    border-left: 4px solid #94c11f;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.5;
}

    .ht-guide-note i {
        margin-top: 2px;
        color: #69930d;
    }

.ht-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 5px;
}

    .ht-alert > i {
        margin-top: 2px;
        font-size: 16px;
    }

    .ht-alert p {
        margin: 3px 0 0;
        font-size: 11px;
        line-height: 1.55;
    }

.ht-alert-warning {
    color: #785315;
    background: #fff4d5;
    border: 1px solid #ebd28a;
}

.ht-alert-info {
    color: #285d68;
    background: #e8f4f5;
    border: 1px solid #bcdadd;
}

.ht-guide-section {
    margin-top: 20px;
}

.ht-guide-steps {
    display: grid;
    gap: 0;
}

.ht-guide-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e7e5;
}

    .ht-guide-step:last-child {
        border-bottom: 0;
    }

.ht-guide-step-number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #075152;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.ht-guide-step h3,
.ht-guide-feature h3 {
    margin: 0 0 7px;
    color: #075152;
    font-size: 15px;
    font-weight: 700;
}

.ht-guide-step p,
.ht-guide-feature p {
    color: #536762;
    font-size: 12px;
    line-height: 1.6;
}

.ht-guide-image {
    margin: 16px 0;
}

    .ht-guide-image img {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        border: 1px solid #cfdad7;
        border-radius: 5px;
        box-shadow: 0 5px 16px rgba(17, 56, 53, 0.10);
    }

    .ht-guide-image figcaption {
        margin-top: 6px;
        color: #71827e;
        font-size: 9px;
        text-align: center;
    }

.ht-guide-image-phone img {
    max-width: 380px;
}

.ht-code-value {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px 12px;
    overflow-wrap: anywhere;
    color: #eff8f6;
    background: #173d3b;
    border-left: 4px solid #94c11f;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 11px;
}

.ht-guide-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.ht-guide-feature {
    min-width: 0;
    padding: 17px;
    background: #f7f9f8;
    border: 1px solid #d8e2df;
    border-radius: 6px;
}

    .ht-guide-feature > span {
        display: inline-flex;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        margin-bottom: 11px;
        color: #ffffff;
        background: #075152;
        border-radius: 50%;
    }

.ht-auth-example {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding: 15px;
    background: #f4f7f6;
    border: 1px solid #d8e2df;
    border-radius: 5px;
}

    .ht-auth-example > div {
        padding: 9px 12px;
        background: #ffffff;
        border: 1px solid #d8e2df;
        border-radius: 4px;
    }

    .ht-auth-example span {
        display: block;
        margin-bottom: 3px;
        color: #71827e;
        font-size: 8px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .ht-auth-example strong {
        color: #075152;
        font-family: Consolas, monospace;
        font-size: 12px;
    }

    .ht-auth-example .is-result {
        background: rgba(148, 193, 31, 0.13);
        border-color: #b9cf7d;
    }


/* =========================================================
   TEAM LEADERBOARD
   ========================================================= */

.ht-leaderboard-panel {
    overflow: hidden;
    padding: 0;
}

    .ht-leaderboard-panel
    .ht-inner-panel-header {
        margin: 0;
        padding: 20px 22px;
    }

.ht-leaderboard-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 18px;
    background: #f4f7f6;
    border-top: 1px solid #d8e2df;
    border-bottom: 1px solid #d8e2df;
}

    .ht-leaderboard-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #5c706b;
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
    }

.ht-leaderboard-key {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

    .ht-leaderboard-key.is-good {
        background: #94c11f;
    }

    .ht-leaderboard-key.is-warning {
        background: #e49b2b;
    }

    .ht-leaderboard-key.is-poor {
        background: #bb3731;
    }

.ht-leaderboard-table {
    margin: 0 !important;
}

    .ht-leaderboard-table thead th {
        min-width: 105px;
        vertical-align: bottom;
    }

        .ht-leaderboard-table thead th:first-child,
        .ht-leaderboard-table thead th:nth-child(2) {
            min-width: 145px;
        }

    .ht-leaderboard-table thead small {
        display: block;
        margin-top: 4px;
        color: rgba(255,255,255,0.72);
        font-size: 8px;
        white-space: nowrap;
    }

.ht-leaderboard-result {
    height: 42px;
    border: 3px solid #ffffff !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .ht-guide-intro {
        flex-direction: column;
    }

    .ht-guide-feature-grid {
        grid-template-columns: 1fr;
    }

    .ht-guide-step {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px;
    }

    .ht-guide-step-number {
        width: 29px;
        height: 29px;
        font-size: 10px;
    }

    .ht-guide-image-phone img {
        max-width: 100%;
    }

    .ht-auth-example {
        align-items: stretch;
        flex-direction: column;
    }

        .ht-auth-example > i {
            align-self: center;
        }

        .ht-auth-example > div {
            width: 100%;
        }

    .ht-leaderboard-table,
    .ht-leaderboard-table tbody,
    .ht-leaderboard-table tr,
    .ht-leaderboard-table td {
        display: block;
        width: 100%;
    }

        .ht-leaderboard-table thead {
            display: none;
        }

        .ht-leaderboard-table tr {
            padding: 11px;
            border-bottom: 1px solid #d8e2df;
        }

        .ht-leaderboard-table td {
            display: flex;
            min-height: 35px;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 6px !important;
            border: 0 !important;
        }

            .ht-leaderboard-table td::before {
                content: attr(data-label);
                flex: 0 0 125px;
                color: #60736e;
                font-size: 9px;
                font-weight: 700;
                text-align: left;
            }

        .ht-leaderboard-table
        .ht-leaderboard-result {
            min-height: 34px;
            border: 2px solid #ffffff !important;
            border-radius: 4px;
        }
}

/* =========================================================
   RISK ASSESSMENT OVERALL GRID
   ========================================================= */

.ht-grid-partial
#RiskAssessGridView {
    width: 100% !important;
}


/*
 * Main grid heading
 */

#RiskAssessGridView
.dxgvHeader_MaterialCompact,
#RiskAssessGridView
.dxgvHeader {
    color: #ffffff !important;
    background: #075152 !important;
    border-color: rgba( 255, 255, 255, 0.14 ) !important;
    font-size: 10px;
    font-weight: 700;
}


    /*
 * Header links
 */

    #RiskAssessGridView
    .dxgvHeader_MaterialCompact a,
    #RiskAssessGridView
    .dxgvHeader a {
        color: #ffffff !important;
        font-weight: 700;
        text-decoration: none !important;
    }


/*
 * Data rows
 */

#RiskAssessGridView
.dxgvDataRow_MaterialCompact td,
#RiskAssessGridView
.dxgvDataRow td {
    padding: 9px 10px;
    color: #173d3b;
    border-color: #dfe7e5;
    font-size: 10px;
}


#RiskAssessGridView
.dxgvDataRowAlt_MaterialCompact td,
#RiskAssessGridView
.dxgvDataRowAlt td {
    background: #f7f9f8;
}


/*
 * Focused row
 */

#RiskAssessGridView
.dxgvFocusedRow_MaterialCompact td,
#RiskAssessGridView
.dxgvFocusedRow td {
    color: #173d3b !important;
    background: rgba( 148, 193, 31, 0.15 ) !important;
}


/*
 * Grouping rows
 */

#RiskAssessGridView
.dxgvGroupRow_MaterialCompact td,
#RiskAssessGridView
.dxgvGroupRow td {
    color: #075152 !important;
    background: #eef4f2 !important;
    border-color: #d5e0dd !important;
    font-size: 11px;
    font-weight: 700;
}


/*
 * Group panel
 */

#RiskAssessGridView
.dxgvGroupPanel_MaterialCompact,
#RiskAssessGridView
.dxgvGroupPanel {
    min-height: 42px;
    padding: 8px 11px;
    color: #61736f;
    background: #f4f7f6;
    border: 1px dashed #bdcbc8;
    font-size: 10px;
}


/*
 * Filter row
 */

#RiskAssessGridView
.dxgvFilterRow_MaterialCompact td,
#RiskAssessGridView
.dxgvFilterRow td {
    padding: 5px;
    background: #eef4f2;
    border-color: #d8e2df;
}


#RiskAssessGridView
.dxgvFilterRow_MaterialCompact input,
#RiskAssessGridView
.dxgvFilterRow input {
    min-height: 31px;
    color: #173d3b;
    background: #ffffff;
    border: 1px solid #cbd8d5;
    border-radius: 3px;
}


/*
 * Export toolbar
 */

#RiskAssessGridView
.dxgvToolbar_MaterialCompact,
#RiskAssessGridView
.dxgvToolbar {
    padding: 8px 10px;
    background: #ffffff;
    border-bottom: 1px solid #d8e2df;
}


/*
 * Pager
 */

#RiskAssessGridView
.dxgvPagerBottomPanel_MaterialCompact,
#RiskAssessGridView
.dxgvPagerBottomPanel {
    padding: 8px 10px;
    background: #f4f7f6;
    border-top: 1px solid #d8e2df;
}


/* =========================================================
   CERTIFICATE ACTION
   ========================================================= */

.ht-risk-document-link {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 8px;
    color: #ffffff !important;
    background: #075152;
    border: 1px solid #075152;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none !important;
}


    .ht-risk-document-link:hover {
        color: #ffffff !important;
        background: #043f40;
        border-color: #043f40;
    }


    .ht-risk-document-link i {
        color: #b9dc60;
    }


.ht-risk-no-document {
    color: #82918e;
    font-size: 9px;
    font-style: italic;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    #RiskAssessGridView
    .dxgvHeader_MaterialCompact,
    #RiskAssessGridView
    .dxgvHeader {
        font-size: 9px;
    }


    #RiskAssessGridView
    .dxgvDataRow_MaterialCompact td,
    #RiskAssessGridView
    .dxgvDataRow td {
        padding: 7px 6px;
        font-size: 9px;
    }


    #RiskAssessGridView
    .dxgvAdaptiveDetailCell_MaterialCompact,
    #RiskAssessGridView
    .dxgvAdaptiveDetailCell {
        padding: 10px !important;
        background: #f7f9f8 !important;
    }


        #RiskAssessGridView
        .dxgvAdaptiveDetailCell_MaterialCompact td,
        #RiskAssessGridView
        .dxgvAdaptiveDetailCell td {
            padding: 6px 4px;
            font-size: 9px;
        }


    .ht-risk-document-link {
        width: 100%;
        min-height: 34px;
    }
}

/* =========================================================
   FULL SCREEN DASHBOARD
   ========================================================= */

.ht-dashboard-page {
    width: 100%;
    min-height: calc( 100vh - 80px );
    padding: 14px;
    background: linear-gradient( 145deg, #edf3f1 0%, #f8faf9 45%, #e9f0ee 100% );
}


.ht-dashboard-header {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
    padding: 15px 22px;
    color: #ffffff;
    background: linear-gradient( 125deg, #043f40 0%, #075152 60%, #0a6865 100% );
    border-bottom: 5px solid #94c11f;
    border-radius: 8px;
    box-shadow: 0 6px 22px rgba( 17, 56, 53, 0.18 );
}


.ht-dashboard-label {
    display: block;
    margin-bottom: 3px;
    color: rgba( 255, 255, 255, 0.68 );
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}


.ht-dashboard-header h1 {
    margin: 0 !important;
    color: #ffffff !important;
    background: none !important;
    font-size: clamp( 21px, 2vw, 34px ) !important;
    font-weight: 700;
    line-height: 1.15;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
}


.ht-dashboard-header p {
    margin: 5px 0 0;
    color: rgba( 255, 255, 255, 0.74 );
    font-size: clamp( 10px, 0.8vw, 13px );
}


.ht-dashboard-header-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}


    .ht-dashboard-header-meta span {
        display: inline-flex;
        min-height: 32px;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 5px 10px;
        color: #ffffff;
        background: rgba( 255, 255, 255, 0.10 );
        border: 1px solid rgba( 255, 255, 255, 0.18 );
        border-radius: 16px;
        font-size: 9px;
        font-weight: 700;
        white-space: nowrap;
    }


/* =========================================================
   DASHBOARD TABS
   ========================================================= */

.ht-dashboard-tabs {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d5e0dd;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba( 17, 56, 53, 0.10 );
}


    .ht-dashboard-tabs
    .dxtcLite_MaterialCompact {
        width: 100% !important;
    }


    .ht-dashboard-tabs
    .dxtc-stripContainer {
        padding: 7px 9px 0;
        background: #f1f5f4;
        border-bottom: 1px solid #d5e0dd;
    }


    .ht-dashboard-tabs
    .dxtc-tab {
        min-width: 145px;
        padding: 10px 18px !important;
        color: #075152 !important;
        background: transparent !important;
        border: 0 !important;
        font-size: 11px;
        font-weight: 700;
        text-align: center;
    }


    .ht-dashboard-tabs
    .dxtc-activeTab {
        color: #ffffff !important;
        background: #075152 !important;
        border-radius: 5px 5px 0 0;
    }


    .ht-dashboard-tabs
    .dxtc-content {
        min-height: calc( 100vh - 220px );
        padding: 0 !important;
        border: 0 !important;
    }


.ht-dashboard-tab-content {
    min-height: calc( 100vh - 220px );
}


/* =========================================================
   DASHBOARD SECTION
   ========================================================= */

.ht-dashboard-section {
    width: 100%;
    padding: 12px;
}


.ht-dashboard-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}


    .ht-dashboard-section-heading > div {
        display: flex;
        align-items: center;
        gap: 10px;
    }


.ht-dashboard-section-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #075152;
    border-radius: 50%;
    font-size: 14px;
}


.ht-dashboard-section-heading h2 {
    margin: 0 !important;
    color: #075152 !important;
    background: none !important;
    font-size: clamp( 16px, 1.3vw, 23px ) !important;
    font-weight: 700;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #075152 !important;
}


.ht-dashboard-section-heading p {
    margin: 2px 0 0;
    color: #70817d;
    font-size: 9px;
}


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.ht-dashboard-grid {
    display: grid;
    grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
    grid-auto-flow: row;
    gap: 10px;
}


.ht-dashboard-card {
    display: flex;
    min-width: 0;
    min-height: 330px;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d5e0dd;
    border-radius: 7px;
    box-shadow: 0 3px 12px rgba( 17, 56, 53, 0.08 );
}


.ht-dashboard-card-wide {
    grid-column: span 2;
}


.ht-dashboard-card > header {
    display: flex;
    min-height: 55px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: linear-gradient( 90deg, #f2f6f5 0%, #ffffff 100% );
    border-bottom: 1px solid #dce5e3;
}


    .ht-dashboard-card > header h3 {
        margin: 0;
        color: #075152;
        font-size: clamp( 11px, 0.85vw, 15px );
        font-weight: 700;
    }


    .ht-dashboard-card > header p {
        margin: 2px 0 0;
        color: #74847f;
        font-size: clamp( 8px, 0.6vw, 10px );
    }


.ht-dashboard-card-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    color: #ffffff;
    background: #075152;
    border-radius: 50%;
    font-size: 13px;
}


    .ht-dashboard-card-icon.is-people,
    .ht-dashboard-card-icon.is-role {
        background: #075152;
    }


    .ht-dashboard-card-icon.is-absence,
    .ht-dashboard-card-icon.is-safety,
    .ht-dashboard-card-icon.is-accident {
        background: #a7443d;
    }


    .ht-dashboard-card-icon.is-appraisal,
    .ht-dashboard-card-icon.is-training,
    .ht-dashboard-card-icon.is-culture,
    .ht-dashboard-card-icon.is-booking {
        background: #729714;
    }


    .ht-dashboard-card-icon.is-productivity,
    .ht-dashboard-card-icon.is-quality,
    .ht-dashboard-card-icon.is-housekeeping {
        background: #0a6865;
    }


    .ht-dashboard-card-icon.is-orders,
    .ht-dashboard-card-icon.is-overtime,
    .ht-dashboard-card-icon.is-spend {
        background: #496d8a;
    }


.ht-dashboard-chart {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 270px;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    padding: 4px;
    overflow: hidden;
}


    .ht-dashboard-chart > div,
    .ht-dashboard-chart > table {
        max-width: 100% !important;
    }


    .ht-dashboard-chart canvas,
    .ht-dashboard-chart svg {
        max-width: 100% !important;
    }


/* =========================================================
   LOADING AND ERRORS
   ========================================================= */

.ht-dashboard-section-loading,
.ht-dashboard-error {
    display: flex;
    min-height: calc( 100vh - 255px );
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 30px;
    color: #60736e;
    text-align: center;
}


    .ht-dashboard-section-loading i {
        color: #075152;
        font-size: 28px;
    }


    .ht-dashboard-error i {
        color: #a33b35;
        font-size: 28px;
    }


    .ht-dashboard-section-loading strong,
    .ht-dashboard-error strong {
        color: #075152;
        font-size: 14px;
    }


    .ht-dashboard-section-loading span,
    .ht-dashboard-error span {
        font-size: 10px;
    }


.ht-chart-loading,
.ht-chart-error {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    color: #72837f;
    font-size: 10px;
}


    .ht-chart-loading i {
        color: #075152;
        font-size: 20px;
    }


    .ht-chart-error i {
        color: #a33b35;
        font-size: 20px;
    }


/* =========================================================
   DEVEXPRESS DOCK PANEL OVERRIDES
   ========================================================= */

.ht-dashboard-page
.dxpc-mainDiv,
.ht-dashboard-tabs
.dxpc-mainDiv {
    overflow: hidden !important;
    border: 1px solid #d5e0dd !important;
    border-radius: 7px !important;
    box-shadow: 0 3px 12px rgba( 17, 56, 53, 0.08 ) !important;
}


.ht-dashboard-page
.dxpc-header,
.ht-dashboard-tabs
.dxpc-header {
    color: #075152 !important;
    background: #f2f6f5 !important;
    border-bottom: 1px solid #dce5e3 !important;
}


.ht-dashboard-page
.dxpc-headerText,
.ht-dashboard-tabs
.dxpc-headerText {
    color: #075152 !important;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   POPUP
   ========================================================= */

.ht-dashboard-popup-content {
    min-height: 300px;
    padding: 12px;
}


/* =========================================================
   TV / LARGE SCREEN
   ========================================================= */

@media (min-width: 1800px) {

    .ht-dashboard-page {
        padding: 16px;
    }


    .ht-dashboard-header {
        min-height: 105px;
        margin-bottom: 14px;
        padding: 18px 27px;
    }


    .ht-dashboard-grid {
        gap: 13px;
    }


    .ht-dashboard-card {
        min-height: 395px;
    }


        .ht-dashboard-card > header {
            min-height: 65px;
            padding: 10px 15px;
        }


    .ht-dashboard-card-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        font-size: 16px;
    }


    .ht-dashboard-chart {
        min-height: 325px;
    }
}


/* =========================================================
   STANDARD DESKTOP
   ========================================================= */

@media ( min-width: 1200px ) and ( max-width: 1799.98px ) {

    .ht-dashboard-card {
        min-height: 325px;
    }


    .ht-dashboard-chart {
        min-height: 265px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199.98px) {

    .ht-dashboard-grid {
        grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
    }


    .ht-dashboard-card-wide {
        grid-column: span 2;
    }


    .ht-dashboard-card {
        min-height: 330px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .ht-dashboard-page {
        padding: 6px;
    }


    .ht-dashboard-header {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 6px;
        padding: 13px;
    }


    .ht-dashboard-header-meta {
        width: 100%;
        justify-content: flex-start;
    }


    .ht-dashboard-tabs
    .dxtc-stripContainer {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }


    .ht-dashboard-tabs
    .dxtc-tab {
        min-width: 108px;
        padding: 9px 12px !important;
    }


    .ht-dashboard-section {
        padding: 7px;
    }


    .ht-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }


    .ht-dashboard-card-wide {
        grid-column: auto;
    }


    .ht-dashboard-card {
        min-height: 315px;
    }


    .ht-dashboard-chart {
        min-height: 250px;
    }
}

/* =========================================================
   MANAGEMENT REVIEW PRODUCTION AND SAFETY
   ========================================================= */

.ht-management-production-grid,
.ht-management-safety-grid {
    grid-template-columns: repeat( 3, minmax(0, 1fr) );
}


    .ht-management-production-grid
    .ht-dashboard-card-wide,
    .ht-management-safety-grid
    .ht-dashboard-card-wide {
        grid-column: span 2;
    }


.ht-dashboard-card-icon.is-productivity {
    background: linear-gradient( 135deg, #075152, #0b706c );
}


.ht-dashboard-card-icon.is-delivery {
    background: linear-gradient( 135deg, #315f83, #4b83aa );
}


.ht-dashboard-card-icon.is-accident {
    background: linear-gradient( 135deg, #8f302c, #bd4b44 );
}


.ht-dashboard-card-icon.is-safety {
    background: linear-gradient( 135deg, #b05b19, #dc852e );
}


.ht-dashboard-card-icon.is-housekeeping {
    background: linear-gradient( 135deg, #60810f, #88ab22 );
}


.ht-dashboard-card-icon.is-risk {
    background: linear-gradient( 135deg, #79552a, #a4773e );
}


.ht-dashboard-card-icon.is-environment {
    background: linear-gradient( 135deg, #257263, #3b9781 );
}


.ht-dashboard-card-icon.is-quality {
    background: linear-gradient( 135deg, #5c4387, #8366af );
}


.ht-dashboard-card-icon.is-leaderboard {
    background: linear-gradient( 135deg, #856309, #bd941e );
}


.ht-management-safety-grid
.ht-dashboard-card.is-leaderboard {
    min-height: 430px;
}


    .ht-management-safety-grid
    .ht-dashboard-card.is-leaderboard
    .ht-dashboard-chart {
        min-height: 360px;
    }


.ht-dashboard-leaderboard-content {
    align-items: flex-start;
    justify-content: flex-start;
    overflow: auto;
}


/* Make chart wrappers and generated controls stay inside cards */

.ht-management-production-grid
.ht-dashboard-chart > div,
.ht-management-safety-grid
.ht-dashboard-chart > div {
    max-width: 100% !important;
}


.ht-management-production-grid
.ht-dashboard-chart table,
.ht-management-safety-grid
.ht-dashboard-chart table {
    max-width: 100% !important;
}


.ht-management-production-grid
.ht-dashboard-chart img,
.ht-management-safety-grid
.ht-dashboard-chart img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   TV SCREENS
   ========================================================= */

@media (min-width: 1800px) {

    .ht-management-production-grid,
    .ht-management-safety-grid {
        grid-template-columns: repeat( 3, minmax(0, 1fr) );
        gap: 14px;
    }


        .ht-management-production-grid
        .ht-dashboard-card,
        .ht-management-safety-grid
        .ht-dashboard-card {
            min-height: 420px;
        }


        .ht-management-production-grid
        .ht-dashboard-chart,
        .ht-management-safety-grid
        .ht-dashboard-chart {
            min-height: 350px;
        }


        .ht-management-safety-grid
        .ht-dashboard-card.is-leaderboard {
            min-height: 490px;
        }


            .ht-management-safety-grid
            .ht-dashboard-card.is-leaderboard
            .ht-dashboard-chart {
                min-height: 420px;
            }
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 1199.98px) {

    .ht-management-production-grid,
    .ht-management-safety-grid {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
    }


        .ht-management-production-grid
        .ht-dashboard-card-wide,
        .ht-management-safety-grid
        .ht-dashboard-card-wide {
            grid-column: span 2;
        }
}


/* =========================================================
   PHONES
   ========================================================= */

@media (max-width: 767.98px) {

    .ht-management-production-grid,
    .ht-management-safety-grid {
        grid-template-columns: 1fr;
    }


        .ht-management-production-grid
        .ht-dashboard-card-wide,
        .ht-management-safety-grid
        .ht-dashboard-card-wide {
            grid-column: auto;
        }


        .ht-management-production-grid
        .ht-dashboard-card,
        .ht-management-safety-grid
        .ht-dashboard-card,
        .ht-management-safety-grid
        .ht-dashboard-card.is-leaderboard {
            min-height: 320px;
        }


            .ht-management-production-grid
            .ht-dashboard-chart,
            .ht-management-safety-grid
            .ht-dashboard-chart,
            .ht-management-safety-grid
            .ht-dashboard-card.is-leaderboard
            .ht-dashboard-chart {
                min-height: 255px;
            }
}

/* =========================================================
   MANAGEMENT REVIEW DASHBOARD
   ========================================================= */

.ht-management-review-page {
    min-height: calc( 100vh - 80px );
}


.ht-management-review-tabs
.dxtc-tab {
    min-width: 135px;
}


.ht-management-review-tabs
.dxtc-content {
    min-height: calc( 100vh - 220px );
}


/* =========================================================
   MANAGEMENT DASHBOARD CARD VARIANTS
   ========================================================= */

.ht-management-review-page
.ht-dashboard-grid {
    align-items: stretch;
}


.ht-management-review-page
.ht-dashboard-card {
    min-height: 345px;
}


.ht-management-review-page
.ht-dashboard-chart {
    min-height: 280px;
}


.ht-management-review-page
.ht-dashboard-card.is-leaderboard {
    min-height: 430px;
}


    .ht-management-review-page
    .ht-dashboard-card.is-leaderboard
    .ht-dashboard-chart {
        min-height: 365px;
    }


.ht-management-review-page
.ht-dashboard-card.is-financial {
    min-height: 370px;
}


    .ht-management-review-page
    .ht-dashboard-card.is-financial
    .ht-dashboard-chart {
        min-height: 305px;
    }


/* =========================================================
   FINANCIAL CAROUSEL
   ========================================================= */

.ht-management-carousel {
    width: 100%;
    min-height: calc( 100vh - 235px );
    overflow: hidden;
    background: #eef3f1;
    border-radius: 6px;
}


    .ht-management-carousel
    .carousel-inner {
        min-height: calc( 100vh - 235px );
    }


    .ht-management-carousel
    .carousel-item {
        min-height: calc( 100vh - 235px );
        padding: 12px 62px 42px;
    }


.ht-management-carousel-card {
    display: flex;
    width: 100%;
    min-height: calc( 100vh - 300px );
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d5e0dd;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba( 17, 56, 53, 0.13 );
}


    .ht-management-carousel-card > header {
        display: flex;
        min-height: 70px;
        align-items: center;
        gap: 12px;
        padding: 12px 18px;
        background: linear-gradient( 90deg, #043f40 0%, #075152 100% );
        border-bottom: 4px solid #94c11f;
    }


        .ht-management-carousel-card > header h3 {
            margin: 0;
            color: #ffffff;
            font-size: clamp( 15px, 1.3vw, 23px );
            font-weight: 700;
        }


        .ht-management-carousel-card > header p {
            margin: 3px 0 0;
            color: rgba( 255, 255, 255, 0.70 );
            font-size: 10px;
        }


.ht-management-carousel-chart {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    padding: 8px;
    overflow: hidden;
}


    .ht-management-carousel-chart > div,
    .ht-management-carousel-chart > table {
        max-width: 100% !important;
    }


.ht-management-carousel
.carousel-control-prev,
.ht-management-carousel
.carousel-control-next {
    width: 52px;
    opacity: 1;
}


.ht-management-carousel
.carousel-control-prev-icon,
.ht-management-carousel
.carousel-control-next-icon {
    width: 38px;
    height: 38px;
    padding: 8px;
    background-color: #075152;
    background-size: 55%;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba( 17, 56, 53, 0.25 );
}


.ht-management-carousel
.carousel-indicators {
    margin-bottom: 12px;
}


    .ht-management-carousel
    .carousel-indicators button {
        width: 9px;
        height: 9px;
        background-color: #075152;
        border: 0;
        border-radius: 50%;
        opacity: 0.38;
    }


    .ht-management-carousel
    .carousel-indicators
    .active {
        opacity: 1;
    }


/* =========================================================
   MANAGEMENT POPUP
   ========================================================= */

.ht-management-review-page
.dxpc-mainDiv {
    overflow: hidden !important;
    border: 1px solid #075152 !important;
    border-radius: 8px !important;
    box-shadow: 0 20px 65px rgba( 17, 56, 53, 0.30 ) !important;
}


.ht-management-review-page
.dxpc-header {
    color: #ffffff !important;
    background: #075152 !important;
    border-bottom: 4px solid #94c11f !important;
}


.ht-management-review-page
.dxpc-headerText {
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   TV
   ========================================================= */

@media (min-width: 1800px) {

    .ht-management-review-page
    .ht-dashboard-card {
        min-height: 415px;
    }


    .ht-management-review-page
    .ht-dashboard-chart {
        min-height: 345px;
    }


    .ht-management-review-page
    .ht-dashboard-card.is-leaderboard {
        min-height: 485px;
    }


        .ht-management-review-page
        .ht-dashboard-card.is-leaderboard
        .ht-dashboard-chart {
            min-height: 415px;
        }


    .ht-management-carousel-item {
        padding: 14px 72px 44px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .ht-management-review-tabs
    .dxtc-tab {
        min-width: 112px;
    }


    .ht-management-review-page
    .ht-dashboard-card,
    .ht-management-review-page
    .ht-dashboard-card.is-financial,
    .ht-management-review-page
    .ht-dashboard-card.is-leaderboard {
        min-height: 320px;
    }


        .ht-management-review-page
        .ht-dashboard-chart,
        .ht-management-review-page
        .ht-dashboard-card.is-financial
        .ht-dashboard-chart,
        .ht-management-review-page
        .ht-dashboard-card.is-leaderboard
        .ht-dashboard-chart {
            min-height: 255px;
        }


    .ht-management-carousel
    .carousel-item {
        padding: 7px 7px 45px;
    }


    .ht-management-carousel
    .carousel-control-prev,
    .ht-management-carousel
    .carousel-control-next {
        width: 40px;
        align-items: flex-end;
        padding-bottom: 5px;
    }


    .ht-management-carousel
    .carousel-control-prev-icon,
    .ht-management-carousel
    .carousel-control-next-icon {
        width: 32px;
        height: 32px;
    }


    .ht-management-carousel-card {
        min-height: calc( 100vh - 245px );
    }
}

/* =========================================================
   MANAGEMENT REVIEW CARD COLOURS
   ========================================================= */

.ht-dashboard-card-icon.is-risk {
    background: #8a5d25;
}

.ht-dashboard-card-icon.is-environment {
    background: #2f7c68;
}

.ht-dashboard-card-icon.is-leaderboard {
    background: #99720d;
}

.ht-dashboard-card-icon.is-delivery {
    background: #3d6e95;
}

.ht-dashboard-card-icon.is-finance,
.ht-dashboard-card-icon.is-cash {
    background: #075152;
}

.ht-dashboard-card-icon.is-sales,
.ht-dashboard-card-icon.is-orders {
    background: #426f91;
}

.ht-dashboard-card-icon.is-spend,
.ht-dashboard-card-icon.is-hours {
    background: #75632e;
}

.ht-dashboard-card-icon.is-value {
    background: #638a12;
}

.ht-dashboard-card-icon.is-overtime {
    background: #985329;
}

.ht-dashboard-card-icon.is-materials {
    background: #5f6b68;
}


/* =========================================================
   MANAGEMENT GRIDS
   ========================================================= */

.ht-management-people-grid,
.ht-management-safety-grid,
.ht-management-production-grid,
.ht-management-financial-grid {
    grid-template-columns: repeat( 3, minmax(0, 1fr) );
}


    .ht-management-financial-grid
    .ht-dashboard-card-wide {
        grid-column: span 2;
    }


    .ht-management-people-grid
    .is-leaderboard {
        min-height: 410px;
    }


.ht-dashboard-leaderboard-content {
    align-items: flex-start;
    overflow: auto;
}


/* =========================================================
   FINANCIAL PRESENTATION CONTROLS
   ========================================================= */

.ht-financial-presentation-section {
    padding-bottom: 8px;
}


.ht-carousel-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}


.ht-carousel-control-button {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #075152;
    border: 1px solid #075152;
    border-radius: 50%;
    cursor: pointer;
}


    .ht-carousel-control-button:hover {
        background: #043f40;
        border-color: #043f40;
    }


.ht-management-carousel {
    min-height: calc( 100vh - 250px );
    background: linear-gradient( 145deg, #e8efed, #f6f9f8 );
    border: 1px solid #d5e0dd;
    border-radius: 7px;
}


    .ht-management-carousel
    .carousel-inner {
        min-height: calc( 100vh - 250px );
    }


    .ht-management-carousel
    .carousel-item {
        width: 100%;
        min-height: calc( 100vh - 250px );
        margin: 0;
        padding: 12px 64px 42px;
    }


.ht-management-carousel-card {
    display: flex;
    width: 100%;
    min-height: calc( 100vh - 310px );
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d5e0dd;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(17, 56, 53, 0.14);
}


    .ht-management-carousel-card > header {
        display: flex;
        min-height: 68px;
        align-items: center;
        gap: 12px;
        padding: 11px 18px;
        color: #ffffff;
        background: linear-gradient( 100deg, #043f40, #075152 );
        border-bottom: 4px solid #94c11f;
    }


        .ht-management-carousel-card > header h3 {
            margin: 0;
            color: #ffffff;
            font-size: clamp(16px, 1.35vw, 24px);
            font-weight: 700;
        }


        .ht-management-carousel-card > header p {
            margin: 3px 0 0;
            color: rgba(255,255,255,0.72);
            font-size: 10px;
        }


.ht-management-carousel-chart {
    display: flex;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    padding: 8px;
    overflow: hidden;
}


    .ht-management-carousel-chart > div,
    .ht-management-carousel-chart > table {
        max-width: 100% !important;
    }


.ht-management-carousel
.carousel-control-prev,
.ht-management-carousel
.carousel-control-next {
    width: 54px;
    opacity: 1;
}


.ht-management-carousel
.carousel-control-prev-icon,
.ht-management-carousel
.carousel-control-next-icon {
    width: 38px;
    height: 38px;
    background-color: #075152;
    background-size: 55%;
    border-radius: 50%;
    box-shadow: 0 4px 13px rgba(17, 56, 53, 0.28);
}


.ht-management-carousel
.carousel-indicators {
    margin-bottom: 11px;
}


    .ht-management-carousel
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        background-color: #075152;
        border: 0;
        border-radius: 50%;
        opacity: 0.35;
    }


        .ht-management-carousel
        .carousel-indicators button.active {
            opacity: 1;
        }


/* =========================================================
   TV SCREENS
   ========================================================= */

@media (min-width: 1800px) {

    .ht-management-people-grid,
    .ht-management-safety-grid,
    .ht-management-production-grid,
    .ht-management-financial-grid {
        grid-template-columns: repeat( 3, minmax(0, 1fr) );
    }


    .ht-management-review-page
    .ht-dashboard-card {
        min-height: 420px;
    }


    .ht-management-review-page
    .ht-dashboard-chart {
        min-height: 350px;
    }


    .ht-management-carousel
    .carousel-item {
        padding: 14px 76px 46px;
    }
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 1199.98px) {

    .ht-management-people-grid,
    .ht-management-safety-grid,
    .ht-management-production-grid,
    .ht-management-financial-grid {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
    }


        .ht-management-people-grid
        .ht-dashboard-card-wide,
        .ht-management-safety-grid
        .ht-dashboard-card-wide,
        .ht-management-production-grid
        .ht-dashboard-card-wide,
        .ht-management-financial-grid
        .ht-dashboard-card-wide {
            grid-column: span 2;
        }
}


/* =========================================================
   PHONES
   ========================================================= */

@media (max-width: 767.98px) {

    .ht-management-people-grid,
    .ht-management-safety-grid,
    .ht-management-production-grid,
    .ht-management-financial-grid {
        grid-template-columns: 1fr;
    }


        .ht-management-people-grid
        .ht-dashboard-card-wide,
        .ht-management-safety-grid
        .ht-dashboard-card-wide,
        .ht-management-production-grid
        .ht-dashboard-card-wide,
        .ht-management-financial-grid
        .ht-dashboard-card-wide {
            grid-column: auto;
        }


    .ht-carousel-controls {
        display: none;
    }


    .ht-management-carousel
    .carousel-item {
        padding: 7px 7px 46px;
    }


    .ht-management-carousel
    .carousel-control-prev,
    .ht-management-carousel
    .carousel-control-next {
        width: 40px;
        align-items: flex-end;
        padding-bottom: 5px;
    }


    .ht-management-carousel-card {
        min-height: calc( 100vh - 250px );
    }
}

/* =========================================================
   MANAGEMENT DASHBOARD CARD HEADER FIX
   ========================================================= */

.ht-management-review-page
.ht-dashboard-card {
    display: flex !important;
    align-items: stretch !important;
    flex-direction: column !important;
}


    /*
 * Never allow the header to consume the chart area.
 */

    .ht-management-review-page
    .ht-dashboard-card > header {
        display: flex !important;
        width: 100% !important;
        height: 62px !important;
        min-height: 62px !important;
        max-height: 62px !important;
        align-items: center !important;
        flex: 0 0 62px !important;
        gap: 11px;
        padding: 9px 13px !important;
        overflow: hidden;
        background: linear-gradient( 90deg, #f2f6f5 0%, #ffffff 100% ) !important;
        border-bottom: 1px solid #dce5e3 !important;
    }


/*
 * Critical fix for the stretched oval icon.
 */

.ht-management-review-page
.ht-dashboard-card-icon {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    line-height: 38px !important;
}


    .ht-management-review-page
    .ht-dashboard-card-icon i {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1 !important;
    }


/*
 * Header text must also be prevented from stretching.
 */

.ht-management-review-page
.ht-dashboard-card > header > div {
    min-width: 0;
    flex: 1 1 auto;
}


.ht-management-review-page
.ht-dashboard-card > header h3 {
    margin: 0 !important;
    overflow: hidden;
    color: #075152 !important;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1.25 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.ht-management-review-page
.ht-dashboard-card > header p {
    margin: 3px 0 0 !important;
    overflow: hidden;
    color: #71827e;
    font-size: 9px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   CHART AREA
   ========================================================= */

.ht-management-review-page
.ht-dashboard-chart {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    padding: 8px !important;
    overflow: hidden;
}


/*
 * Leaderboards contain wide chart/table output.
 *
 * Keep the header normal and allow only the CONTENT to scroll
 * when absolutely necessary.
 */

.ht-management-review-page
.ht-dashboard-card.is-leaderboard
.ht-dashboard-chart {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    overflow: auto !important;
    padding: 10px !important;
}


    .ht-management-review-page
    .ht-dashboard-card.is-leaderboard
    .ht-dashboard-chart > div {
        width: 100% !important;
        max-width: 100% !important;
    }

/* =========================================================
   DEVEXPRESS CHART SIZING INSIDE DASHBOARD CARDS
   ========================================================= */

.ht-management-review-page
.ht-dashboard-chart
table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    table-layout: auto !important;
}


.ht-management-review-page
.ht-dashboard-chart
td {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
}


.ht-management-review-page
.ht-dashboard-chart
img {
    max-width: 100% !important;
    height: auto;
}


.ht-management-review-page
.ht-dashboard-chart
svg,
.ht-management-review-page
.ht-dashboard-chart
canvas {
    max-width: 100% !important;
}

@media (min-width: 1800px) {

    .ht-management-review-page
    .ht-dashboard-card > header {
        height: 68px !important;
        min-height: 68px !important;
        max-height: 68px !important;
        flex-basis: 68px !important;
        padding: 10px 15px !important;
    }


    .ht-management-review-page
    .ht-dashboard-card-icon {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
        flex-basis: 44px !important;
        line-height: 44px !important;
    }


        .ht-management-review-page
        .ht-dashboard-card-icon i {
            font-size: 16px !important;
        }


    .ht-management-review-page
    .ht-dashboard-card > header h3 {
        font-size: 15px !important;
    }


    .ht-management-review-page
    .ht-dashboard-card > header p {
        font-size: 10px !important;
    }
}

/* =========================================================
   TV DASHBOARD - SCREEN SIZING
   ========================================================= */

body.ht-tv-body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: #243c39;
    background: #eef3f1;
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

.ht-tv-background {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient( 145deg, #e7eeec 0%, #f7f9f8 48%, #e5ecea 100% );
}


/* =========================================================
   QUADRANT GRID
   ========================================================= */


    .ht-team-dashboard-grid.is-three-panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: repeat( 2, minmax(420px, 1fr) );
    }


        .ht-team-dashboard-grid.is-three-panel
        .ht-team-quadrant-performance.is-wide {
            grid-column: 1 / -1;
        }


/*
 * Give each quadrant a subtle identifying
 * accent without changing the complete header.
 */

.ht-team-quadrant-safety {
    border-top: 2px solid #c08a55;
}


.ht-team-quadrant-quality {
    border-top: 2px solid #779fa0;
}


.ht-team-quadrant-performance {
    border-top: 2px solid #769a78;
}


.ht-team-quadrant-people {
    border-top: 2px solid #8297ad;
}


/* =========================================================
   COMMENTS BUTTON
   ========================================================= */

.ht-team-comments-button {
    display: inline-flex;
    min-width: 84px;
    min-height: 29px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 5px;
    padding: 4px 9px;
    color: #ffffff;
    background: rgba( 255, 255, 255, 0.10 );
    border: 1px solid rgba( 255, 255, 255, 0.22 );
    border-radius: 15px;
    font-family: inherit;
    font-size: 8.5px;
    font-weight: 700;
    cursor: pointer;
}


    .ht-team-comments-button:hover {
        background: rgba( 255, 255, 255, 0.20 );
    }


.ht-tv-metric-grid-two {
    grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}


.ht-tv-metric-grid-three {
    grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
}


.ht-tv-performance-split {
    grid-template-columns: minmax( 0, 1.55fr ) minmax( 0, 1fr );
}


.ht-tv-metric-full {
    width: 100%;
    height: 100%;
}


/* =========================================================
   CARD CONTROLS
   ========================================================= */

.ht-tv-card-controls {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 3px;
}


    .ht-tv-card-controls button {
        display: inline-flex;
        width: 23px;
        height: 23px;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: #ffffff;
        background: #51716e;
        border: 0;
        border-radius: 50%;
        font-size: 8px;
        cursor: pointer;
    }


        .ht-tv-card-controls button:hover {
            background: #315653;
        }

/* =========================================================
   LOADING
   ========================================================= */

.ht-tv-loading,
.ht-tv-error {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    color: #647873;
    font-size: 9px;
}


    .ht-tv-loading i {
        color: #527874;
        font-size: 20px;
    }


    .ht-tv-error i {
        color: #a14c46;
        font-size: 20px;
    }


/* =========================================================
   POPUPS
   ========================================================= */

.ht-team-popup-content {
    min-height: 200px;
    padding: 12px;
}

/* =========================================================
   TEAM DASHBOARD POPUPS
   ========================================================= */

.ht-tv-popup.dxpc-mainDiv {
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #bccbc7 !important;
    border-radius: 8px !important;
    box-shadow: 0 22px 70px rgba( 25, 52, 49, 0.30 ) !important;
}


.ht-tv-popup
.dxpc-header {
    min-height: 54px;
    padding: 10px 14px !important;
    color: #ffffff !important;
    background: linear-gradient( 105deg, #315653, #3c6561 ) !important;
    border: 0 !important;
    border-bottom: 3px solid #9ebf50 !important;
}


.ht-tv-popup
.dxpc-headerText {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}


.ht-tv-popup
.dxpc-closeBtn {
    margin-top: 5px;
}


.ht-tv-popup
.dxpc-content {
    padding: 0 !important;
    background: #ffffff !important;
}


/* =========================================================
   TEAM DASHBOARD COMMENTS
   FINAL ISOLATED VERSION
   ========================================================= */

#CommentsContainer {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: calc(100vh - 150px) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}


    #CommentsContainer *,
    #CommentsContainer *::before,
    #CommentsContainer *::after {
        box-sizing: border-box !important;
    }


/* =========================================================
   EDITOR
   ========================================================= */

#tvCommentsEditor {
    display: block !important;
    position: relative !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 22px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    color: #243c39 !important;
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif !important;
}


/* =========================================================
   TOP INTRO
   ========================================================= */

#tvCommentsHeading {
    display: flex !important;
    position: static !important;
    width: 100% !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 18px !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid #dce4e2 !important;
}


#tvCommentsHeadingIcon {
    display: flex !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: #5e7d79 !important;
    border-radius: 50% !important;
    font-size: 14px !important;
}


#tvCommentsHeadingText {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}


    #tvCommentsHeadingText h2 {
        display: block !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #315653 !important;
        background: transparent !important;
        font-family: "Lato", Arial, sans-serif !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        -webkit-text-fill-color: #315653 !important;
    }


    #tvCommentsHeadingText p {
        display: block !important;
        width: auto !important;
        margin: 4px 0 0 !important;
        padding: 0 !important;
        color: #70817d !important;
        font-size: 10px !important;
        line-height: 1.35 !important;
    }


/* =========================================================
   FORM
   ========================================================= */

#tvCommentsEditor #commentsForm {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}


    #tvCommentsEditor #commentsForm > label {
        display: block !important;
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin: 0 0 7px !important;
        padding: 0 !important;
        color: #315653 !important;
        font-family: "Lato", Arial, sans-serif !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        text-align: left !important;
        text-transform: uppercase !important;
    }


/* =========================================================
   THE ACTUAL TEXTAREA
   ========================================================= */

#tvDashboardComments {
    display: block !important;
    position: static !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    height: 245px !important;
    min-height: 245px !important;
    max-height: 245px !important;
    margin: 0 !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    resize: none !important;
    color: #263f3b !important;
    background: #f7f9f8 !important;
    border: 1px solid #c5d2cf !important;
    border-radius: 6px !important;
    outline: 0 !important;
    box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.03 ) !important;
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    text-align: left !important;
    white-space: pre-wrap !important;
}


    #tvDashboardComments:focus {
        background: #ffffff !important;
        border-color: #6d918c !important;
        box-shadow: 0 0 0 3px rgba( 81, 113, 110, 0.12 ) !important;
    }


/* =========================================================
   ACTION BAR
   ========================================================= */

#tvCommentsActions {
    display: flex !important;
    position: static !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: 14px 0 0 !important;
    padding: 14px 0 0 !important;
    border-top: 1px solid #e1e7e5 !important;
}


#tvDashboardComments:focus {
    background-color: #ffffff !important;
    border-color: #668984 !important;
    box-shadow: 0 0 0 3px rgba(81, 113, 110, 0.14) !important;
}

/* =========================================================
   COMMENTS BUTTONS
   ========================================================= */

#tvCommentsActions {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-top: 16px !important;
    padding-top: 14px !important;
    border-top: 1px solid #e1e7e5 !important;
}


/* Shared button styling */

#tvCommentsCancel,
#tvCommentsSave {
    display: inline-flex !important;
    position: static !important;
    float: none !important;
    height: 40px !important;
    min-height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 17px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease !important;
}


/* Cancel */

#tvCommentsCancel {
    min-width: 95px !important;
    color: #49625e !important;
    background: #ffffff !important;
    border: 1px solid #b9c8c5 !important;
}


    #tvCommentsCancel:hover {
        color: #315653 !important;
        background: #f1f5f4 !important;
        border-color: #8ea6a1 !important;
    }


    #tvCommentsCancel:active {
        transform: translateY(1px);
    }


/* Save */

#tvCommentsSave {
    min-width: 145px !important;
    color: #ffffff !important;
    background: linear-gradient( 135deg, #51716e, #3d625e ) !important;
    border: 1px solid #466a66 !important;
    box-shadow: 0 2px 5px rgba(49, 86, 83, 0.18) !important;
}


    #tvCommentsSave:hover {
        color: #ffffff !important;
        background: linear-gradient( 135deg, #456965, #315653 ) !important;
        border-color: #315653 !important;
        box-shadow: 0 3px 8px rgba(49, 86, 83, 0.25) !important;
    }


    #tvCommentsSave:active {
        transform: translateY(1px);
        box-shadow: 0 1px 3px rgba(49, 86, 83, 0.18) !important;
    }


    /* Save icon */

    #tvCommentsSave i {
        margin: 0 !important;
        color: #c6dc8b !important;
        font-size: 11px !important;
    }


    /* Keyboard focus */

    #tvCommentsCancel:focus,
    #tvCommentsSave:focus {
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(81, 113, 110, 0.16) !important;
    }

.ht-team-quadrant {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cdd9d6;
    border-radius: 7px;
    box-shadow: 0 3px 13px rgba(29, 64, 59, 0.10);
}

.ht-team-quadrant-header {
    display: flex;
    width: 100%;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    align-items: center;
    flex: 0 0 52px;
    gap: 9px;
    padding: 6px 11px;
    color: #ffffff;
    background: linear-gradient( 105deg, #315653, #3c6561 );
    border-bottom: 3px solid #9ebf50;
}

.ht-team-quadrant-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    flex: 0 0 34px !important;
}

.ht-tv-metric > header {
    display: flex;
    width: 100%;
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 34px;
    gap: 6px;
    padding: 5px 8px;
    background: #eef3f1;
    border-bottom: 1px solid #d8e1df;
}


    .ht-tv-metric > header h2 {
        margin: 0 !important;
        overflow: hidden;
        color: #315653 !important;
        font-size: 10px !important;
        font-weight: 700;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.ht-team-quadrant-content {
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}


.ht-tv-partial {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 5px;
    overflow: hidden;
}


.ht-tv-metric-grid {
    display: grid;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    gap: 5px;
    overflow: hidden;
}


.ht-tv-metric {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
}


.ht-tv-chart {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    padding: 2px;
    overflow: hidden;
}

/* =========================================================
   TEAM DASHBOARD
   FINAL TV-ONLY LAYOUT

   IMPORTANT:
   Everything is scoped to body.ht-tv-body.
   Normal My Hutchinson pages are unaffected.
   ========================================================= */


/* =========================================================
   TV PAGE ONLY
   ========================================================= */

body.ht-tv-body {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    color: #243c39;
    background: #eef3f1;
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
}


    /* =========================================================
   TV BACKGROUND
   ========================================================= */

    body.ht-tv-body .ht-tv-background {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: -1;
        background: linear-gradient( 145deg, #e7eeec 0%, #f7f9f8 48%, #e5ecea 100% );
    }


    /* =========================================================
   OUTER TV SHELL
   ========================================================= */

    body.ht-tv-body .ht-tv-shell {
        width: 100%;
        height: 100vh;
        margin: 0;
        padding: 6px;
        overflow: hidden;
        box-sizing: border-box;
    }


    body.ht-tv-body .ht-team-dashboard {
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }


    /* =========================================================
   MAIN 2 X 2 GRID
   ========================================================= */

    body.ht-tv-body .ht-team-dashboard-grid {
        display: grid;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
        gap: 6px;
        overflow: hidden;
    }


        /* =========================================================
   BA 130 THREE-PANEL VERSION
   ========================================================= */

        body.ht-tv-body .ht-team-dashboard-grid.is-three-panel {
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
        }


            body.ht-tv-body
            .ht-team-dashboard-grid.is-three-panel
            .ht-team-quadrant-performance.is-wide {
                grid-column: 1 / -1;
            }


    /* =========================================================
   QUADRANTS
   ========================================================= */

    body.ht-tv-body .ht-team-quadrant {
        position: relative;
        display: flex;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
        background: #ffffff;
        border: 1px solid #cdd9d6;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba( 29, 64, 59, 0.08 );
    }


    /* Subtle quadrant accents */

    body.ht-tv-body
    .ht-team-quadrant-safety {
        border-top: 2px solid #c08a55;
    }


    body.ht-tv-body
    .ht-team-quadrant-quality {
        border-top: 2px solid #779fa0;
    }


    body.ht-tv-body
    .ht-team-quadrant-performance {
        border-top: 2px solid #769a78;
    }


    body.ht-tv-body
    .ht-team-quadrant-people {
        border-top: 2px solid #8297ad;
    }


    /* =========================================================
   QUADRANT HEADER
   ========================================================= */

    body.ht-tv-body
    .ht-team-quadrant-header {
        display: flex;
        width: 100%;
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        align-items: center;
        flex: 0 0 48px;
        gap: 8px;
        padding: 5px 10px;
        color: #ffffff;
        background: linear-gradient( 105deg, #315653, #3c6561 );
        border-bottom: 2px solid #9ebf50;
        box-sizing: border-box;
    }


    /* =========================================================
   QUADRANT ICON
   ========================================================= */

    body.ht-tv-body
    .ht-team-quadrant-icon {
        display: inline-flex !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #ffffff;
        background: rgba( 255, 255, 255, 0.10 );
        border: 1px solid rgba( 255, 255, 255, 0.20 );
        border-radius: 50%;
        font-size: 12px;
    }


        body.ht-tv-body
        .ht-team-quadrant-icon i {
            margin: 0 !important;
            font-size: 12px;
            line-height: 1;
        }


    /* =========================================================
   QUADRANT HEADING TEXT
   ========================================================= */

    body.ht-tv-body
    .ht-team-quadrant-header > div {
        min-width: 0;
        flex: 1 1 auto;
    }


    body.ht-tv-body
    .ht-team-quadrant-header h1 {
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
        color: #ffffff !important;
        background: none !important;
        font-size: 14px !important;
        font-weight: 700;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
        -webkit-text-fill-color: #ffffff !important;
    }


    body.ht-tv-body
    .ht-team-quadrant-header p {
        margin: 2px 0 0 !important;
        padding: 0 !important;
        overflow: hidden;
        color: rgba( 255, 255, 255, 0.70 ) !important;
        font-size: 7px !important;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* =========================================================
   COMMENTS BUTTON
   ========================================================= */

    body.ht-tv-body
    .ht-team-comments-button {
        display: inline-flex;
        min-width: 78px;
        height: 27px;
        min-height: 27px;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        gap: 4px;
        margin: 0;
        padding: 3px 8px;
        color: #ffffff;
        background: rgba( 255, 255, 255, 0.10 );
        border: 1px solid rgba( 255, 255, 255, 0.22 );
        border-radius: 14px;
        font-family: inherit;
        font-size: 7px;
        font-weight: 700;
        cursor: pointer;
    }


        body.ht-tv-body
        .ht-team-comments-button:hover {
            background: rgba( 255, 255, 255, 0.20 );
        }


    /* =========================================================
   QUADRANT CONTENT
   ========================================================= */

    body.ht-tv-body
    .ht-team-quadrant-content {
        position: relative;
        width: 100%;
        min-width: 0;
        min-height: 0;
        flex: 1 1 auto;
        overflow: hidden;
        background: #ffffff;
    }


    /* =========================================================
   LOADED PARTIAL
   ========================================================= */

    body.ht-tv-body
    .ht-tv-partial {
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        padding: 4px;
        overflow: hidden;
        box-sizing: border-box;
    }


    /* =========================================================
   INNER METRIC GRIDS
   ========================================================= */

    body.ht-tv-body
    .ht-tv-metric-grid {
        display: grid;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        gap: 4px;
        overflow: hidden;
    }


    body.ht-tv-body
    .ht-tv-metric-grid-two {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
    }


    body.ht-tv-body
    .ht-tv-metric-grid-three {
        grid-template-columns: repeat( 3, minmax(0, 1fr) );
    }


    body.ht-tv-body
    .ht-tv-performance-split {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    }


    /* =========================================================
   INNER METRIC CARDS
   ========================================================= */

    body.ht-tv-body
    .ht-tv-metric {
        display: flex;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
        background: #fafcfb;
        border: 1px solid #d9e2e0;
        border-radius: 4px;
    }


    body.ht-tv-body
    .ht-tv-metric-full {
        width: 100%;
        height: 100%;
    }


    /* =========================================================
   INNER METRIC HEADERS
   ========================================================= */

    body.ht-tv-body
    .ht-tv-metric > header {
        display: flex;
        width: 100%;
        height: 31px;
        min-height: 31px;
        max-height: 31px;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 31px;
        gap: 5px;
        padding: 4px 7px;
        background: #eef3f1;
        border-bottom: 1px solid #d8e1df;
        box-sizing: border-box;
    }


        body.ht-tv-body
        .ht-tv-metric > header h2 {
            margin: 0 !important;
            padding: 0 !important;
            overflow: hidden;
            color: #315653 !important;
            background: none !important;
            font-size: 8px !important;
            font-weight: 700;
            line-height: 1;
            text-overflow: ellipsis;
            white-space: nowrap;
            -webkit-text-fill-color: #315653 !important;
        }


    /* =========================================================
   METRIC NEXT / BACK CONTROLS
   ========================================================= */

    body.ht-tv-body
    .ht-tv-card-controls {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 3px;
    }


        body.ht-tv-body
        .ht-tv-card-controls button {
            display: inline-flex;
            width: 21px;
            height: 21px;
            align-items: center;
            justify-content: center;
            margin: 0;
            padding: 0;
            color: #ffffff;
            background: #51716e;
            border: 0;
            border-radius: 50%;
            font-size: 7px;
            cursor: pointer;
        }


            body.ht-tv-body
            .ht-tv-card-controls button:hover {
                background: #315653;
            }


    /* =========================================================
   CHART AREA
   ========================================================= */

    body.ht-tv-body
    .ht-tv-chart {
        display: flex;
        width: 100%;
        min-width: 0;
        min-height: 0;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
        padding: 1px;
        overflow: hidden;
    }


        body.ht-tv-body
        .ht-tv-chart > div {
            max-width: 100% !important;
        }


        body.ht-tv-body
        .ht-tv-chart table {
            width: 100% !important;
            max-width: 100% !important;
            table-layout: auto !important;
        }


        body.ht-tv-body
        .ht-tv-chart td {
            width: auto !important;
            min-width: 0 !important;
            padding: 0 !important;
        }


        body.ht-tv-body
        .ht-tv-chart img,
        body.ht-tv-body
        .ht-tv-chart svg,
        body.ht-tv-body
        .ht-tv-chart canvas {
            max-width: 100% !important;
            max-height: 100% !important;
        }


    /* =========================================================
   LOADING / ERROR
   ========================================================= */

    body.ht-tv-body
    .ht-tv-loading,
    body.ht-tv-body
    .ht-tv-error {
        display: flex;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        color: #647873;
        font-size: 9px;
    }


        body.ht-tv-body
        .ht-tv-loading i {
            color: #527874;
            font-size: 20px;
        }


        body.ht-tv-body
        .ht-tv-error i {
            color: #a14c46;
            font-size: 20px;
        }


/* =========================================================
   VERY LARGE TV SCREENS
   Keep proportions rather than making panels taller.
   ========================================================= */

@media (min-width: 2200px) {

    body.ht-tv-body
    .ht-tv-shell {
        padding: 8px;
    }


    body.ht-tv-body
    .ht-team-dashboard-grid {
        gap: 8px;
    }


    body.ht-tv-body
    .ht-team-quadrant-header {
        height: 54px;
        min-height: 54px;
        max-height: 54px;
        flex-basis: 54px;
    }


    body.ht-tv-body
    .ht-team-quadrant-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        flex-basis: 36px !important;
    }


    body.ht-tv-body
    .ht-team-quadrant-header h1 {
        font-size: 16px !important;
    }


    body.ht-tv-body
    .ht-team-quadrant-header p {
        font-size: 8px !important;
    }


    body.ht-tv-body
    .ht-tv-metric > header {
        height: 34px;
        min-height: 34px;
        max-height: 34px;
        flex-basis: 34px;
    }


        body.ht-tv-body
        .ht-tv-metric > header h2 {
            font-size: 9px !important;
        }
}

/* =========================================================
   WORKWEAR MODAL - ISOLATED FIX
   ========================================================= */

#cancelmodal,
#pickedmodal {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    pointer-events: none;
}

    #cancelmodal.show,
    #pickedmodal.show,
    #cancelmodal.in,
    #pickedmodal.in {
        display: block !important;
        pointer-events: auto !important;
    }

    /* Modal window */
    #cancelmodal .modal-dialog,
    #pickedmodal .modal-dialog {
        position: relative !important;
        z-index: 1000001 !important;
        margin: 8vh auto 30px !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    /* Actual white modal */
    #cancelmodal .modal-content,
    #pickedmodal .modal-content {
        position: relative !important;
        z-index: 1000002 !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

        /* Everything inside must remain clickable */
        #cancelmodal .modal-content *,
        #pickedmodal .modal-content * {
            pointer-events: auto;
        }

/* Bootstrap backdrop MUST remain behind Workwear */
body.modal-open > .modal-backdrop,
.modal-backdrop {
    z-index: 999990 !important;
}

/* Explicitly put these modals above it */
body > #cancelmodal,
body > #pickedmodal {
    z-index: 999999 !important;
}

.ht-popup-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.ht-popup-print-btn {
    appearance: none;
    border: 0;
    outline: 0;
    background: #00897b;
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

    .ht-popup-print-btn:hover {
        background: #00695c;
    }

    .ht-popup-print-btn:active {
        transform: translateY(1px);
    }

    .ht-popup-print-btn:focus {
        box-shadow: 0 0 0 3px rgba(0, 137, 123, .2);
    }