:root {
    --ui-bg: #f2f6fb;
    --ui-bg-soft: #e8f0fa;
    --ui-surface: #ffffff;
    --ui-surface-alt: #f8fbff;
    --ui-border: #dbe5f1;
    --ui-border-strong: #c8d8ea;
    --ui-text: #0f1f36;
    --ui-text-muted: #5f738f;
    --ui-heading: #081a2f;

    --ui-primary: #0f766e;
    --ui-primary-strong: #115e59;
    --ui-secondary: #1d4ed8;
    --ui-warning: #c2410c;
    --ui-danger: #be123c;

    --ui-radius-sm: 10px;
    --ui-radius: 16px;
    --ui-radius-lg: 24px;

    --ui-shadow-sm: 0 8px 20px rgba(12, 35, 64, 0.08);
    --ui-shadow: 0 20px 45px rgba(10, 36, 66, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body,
body.app,
body.login-page {
    font-family: 'Manrope', sans-serif;
    color: var(--ui-text);
    background:
        radial-gradient(1100px 700px at 5% -15%, rgba(29, 78, 216, 0.14), transparent 60%),
        radial-gradient(900px 620px at 95% -20%, rgba(15, 118, 110, 0.18), transparent 62%),
        linear-gradient(180deg, #f6faff 0%, var(--ui-bg) 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.card-header,
.btn,
.nav-link,
.nav-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

a {
    color: var(--ui-secondary);
}

a:hover {
    color: #1b40a9;
    text-decoration: none;
}

.main {
    margin-top: 94px;
}

.app-content-wrap {
    padding: 0 18px 24px;
}

.app-header.navbar {
    position: fixed;
    top: 14px;
    left: 14px;
    right: 14px;
    width: auto;
    z-index: 1040;

    height: 66px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(202, 218, 239, 0.9);
    border-radius: var(--ui-radius-lg);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    box-shadow: var(--ui-shadow-sm);

    padding: 0 16px;
}

.navbar-toggler.sidebar-toggler {
    border: 1px solid #d3e1f3;
    border-radius: 10px;
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1e3f65;
    background: #ffffff;
    padding: 0 10px;
    transition: all 0.2s ease;
}

.navbar-toggler.sidebar-toggler:hover {
    background: #eaf3ff;
    border-color: #c2d6ef;
}

.navbar-toggler.sidebar-toggler.is-collapsed {
    background: #e6f4ff;
    border-color: #b8d6ff;
}

.sidebar-toggle-label {
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ui-heading);
    font-weight: 700;
}

.navbar-brand:hover {
    color: var(--ui-heading);
}

.navbar-brand-logo {
    height: 34px;
    width: auto;
    border-radius: 7px;
}

.navbar-brand-minimized {
    font-size: 12px;
    letter-spacing: 0.08em;
}

.app-public-nav {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.app-public-nav__item {
    margin: 0;
}

.app-public-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px !important;
    border-radius: 999px;
    color: var(--ui-text-muted);
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.app-public-nav__link:hover,
.app-public-nav__link:focus {
    color: var(--ui-heading);
    background: #edf4ff;
}

.app-public-nav__link--accent {
    color: #ffffff;
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-secondary));
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.16);
}

.app-public-nav__link--accent:hover,
.app-public-nav__link--accent:focus {
    color: #ffffff;
    background: linear-gradient(135deg, var(--ui-primary-strong), #1e40af);
}

.header-user-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ui-border);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    background: #fff;
    color: var(--ui-heading);
}

.header-profile-dropdown .dropdown-toggle::after {
    display: none;
}

.header-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d8e6f6;
    border-radius: 999px;
    padding: 6px 10px 6px 6px !important;
    background: #ffffff;
    min-height: 46px;
}

.header-profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #0f766e);
    flex: 0 0 auto;
}

.header-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.15;
    text-align: left;
}

.header-profile-name {
    color: #0c2544;
    font-size: 12px;
    font-weight: 800;
}

.header-profile-project {
    color: #55708f;
    font-size: 11px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-profile-chevron {
    color: #6984a4;
    font-size: 11px;
}

.header-profile-menu {
    min-width: 250px;
}

.header-profile-menu__top {
    padding: 8px 10px 10px;
    margin: 0 2px 8px;
    border-radius: 10px;
    background: #f3f8ff;
    border: 1px solid #ddeaf9;
}

.header-profile-menu__name {
    margin: 0;
    color: #0c2645;
    font-size: 13px;
    font-weight: 800;
}

.header-profile-menu__email {
    margin: 3px 0 0;
    color: #5b7595;
    font-size: 12px;
}

.dropdown-menu {
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    box-shadow: var(--ui-shadow-sm);
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
}

.dropdown-item:hover {
    background: var(--ui-surface-alt);
}

.sidebar {
    position: fixed;
    top: 92px;
    left: 14px;
    bottom: 14px;
    width: 360px;

    border: 1px solid rgba(200, 216, 234, 0.9);
    border-radius: var(--ui-radius-lg);
    background: linear-gradient(180deg, #0f1f36 0%, #0a1629 100%);
    box-shadow: var(--ui-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: width 0.24s ease, transform 0.24s ease;
}

.sidebar .sidebar-nav {
    padding: 12px 8px 16px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(178, 206, 239, 0.45) transparent;
    padding-bottom: 72px;
}

.sidebar .sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar .sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar .sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(178, 206, 239, 0.35);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.sidebar .nav-title {
    color: rgba(200, 219, 246, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10px;
    margin: 16px 10px 8px;
    padding-left: 6px;
    font-weight: 700;
}

.client-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 8px 14px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(112, 151, 198, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.client-sidebar__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d4ed8, #0f766e);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    flex: 0 0 auto;
}

.client-sidebar__identity {
    min-width: 0;
}

.client-sidebar__name {
    margin: 0;
    color: #eff6ff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-sidebar__project {
    margin: 2px 0 0;
    color: rgba(185, 213, 248, 0.88);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-sidebar__cta {
    margin: 0 8px 8px;
    border-radius: 12px;
    border: 1px solid rgba(136, 185, 244, 0.45);
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.36), rgba(15, 118, 110, 0.3));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    font-weight: 700;
    width: calc(100% - 16px);
}

.client-sidebar__cta:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.5), rgba(15, 118, 110, 0.46));
}

.sidebar .nav-item {
    margin: 4px 4px;
}

.sidebar .nav {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar .nav > .nav-item:last-child {
    margin-top: auto;
}

.sidebar .nav-link {
    color: rgba(226, 236, 251, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: visible;
    min-height: 42px;
}

.sidebar .nav-link .nav-icon {
    color: rgba(177, 206, 242, 0.92);
    width: 18px;
    min-width: 18px;
    text-align: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active,
.sidebar .nav-dropdown.open > .nav-link,
.sidebar .nav-dropdown.show > .nav-link {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.28), rgba(15, 118, 110, 0.26));
    color: #ffffff;
}

.sidebar .nav-link:hover .nav-icon,
.sidebar .nav-link.active .nav-icon {
    color: #ffffff;
}

.nav-dropdown-items {
    padding: 4px 0 10px;
}

.nav-dropdown-items .nav-link {
    margin-left: 8px;
    margin-right: 4px;
    padding: 8px 10px;
    font-size: 13px;
    color: rgba(211, 227, 246, 0.92);
    border-radius: 10px;
}

.sidebar .nav-dropdown-toggle {
    padding-right: 40px;
}

.sidebar .nav-dropdown-toggle::before {
    right: 14px !important;
}

.sidebar-minimizer,
.brand-minimizer {
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
    display: none !important;
}

.app-body .main {
    margin-left: 380px;
    transition: margin-left 0.24s ease;
}

.container-fluid {
    max-width: 100%;
}

@media (min-width: 1200px) {
    body.sidebar-collapsed .sidebar {
        width: 78px;
    }

    body.sidebar-collapsed .sidebar .sidebar-nav {
        padding-left: 8px;
        padding-right: 8px;
    }

    body.sidebar-collapsed .sidebar .nav-title {
        opacity: 0;
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    body.sidebar-collapsed .sidebar .nav-link {
        justify-content: center;
        gap: 0;
        padding-left: 0;
        padding-right: 0;
        font-size: 14px;
        color: transparent !important;
        line-height: 1;
        overflow: hidden;
    }

    body.sidebar-collapsed .sidebar .nav-link .nav-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        line-height: 1;
        width: 22px;
        min-width: 22px;
        color: rgba(209, 226, 250, 0.95) !important;
    }

    body.sidebar-collapsed .sidebar .nav-link:hover .nav-icon,
    body.sidebar-collapsed .sidebar .nav-link.active .nav-icon {
        color: #ffffff !important;
    }

    body.sidebar-collapsed .sidebar .nav-dropdown-toggle::before {
        display: none !important;
    }

    body.sidebar-collapsed .sidebar .nav-dropdown-items {
        display: none !important;
    }

    body.sidebar-collapsed .sidebar .nav-item {
        margin-left: 0;
        margin-right: 0;
    }

    body.sidebar-collapsed .app-body .main {
        margin-left: 96px;
    }
}

.card {
    border: 1px solid rgba(214, 226, 241, 0.95);
    border-radius: var(--ui-radius);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--ui-shadow-sm);
}

.card-header {
    border-bottom: 1px solid var(--ui-border);
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
    color: var(--ui-heading);
    font-weight: 700;
    border-top-left-radius: var(--ui-radius);
    border-top-right-radius: var(--ui-radius);
}

.table {
    color: var(--ui-text);
}

.table th {
    font-weight: 700;
    color: #1a3557;
}

.table td,
.table th {
    border-color: #e5edf6;
    vertical-align: middle;
}

.table-bordered {
    border: 1px solid #dfe9f5;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(246, 250, 255, 0.7);
}

.table-modern {
    width: 100%;
}

.table-modern thead th {
    background: #f0f6ff;
    color: #16365a;
    border-bottom: 1px solid #dfe9f5;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table-modern tbody td {
    border-top: 1px solid #e7eff8;
    padding: 12px 16px;
}

.alert {
    border-radius: 12px;
    border: 1px solid transparent;
}

.alert-success {
    color: #14532d;
    background: #e8faee;
    border-color: #c8efd5;
}

.alert-danger {
    color: #7f1d1d;
    background: #fef1f2;
    border-color: #ffd6d8;
}

.btn {
    border-radius: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease, border-color 0.2s ease;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.15;
    text-align: center;
    vertical-align: middle;
}

.btn:focus {
    box-shadow: none;
}

.btn i {
    line-height: 1;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    transform: none;
}

.btn-primary,
.btn-success {
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-secondary));
    border: 0;
    color: #fff;
}

.btn-primary:hover,
.btn-success:hover {
    background: linear-gradient(135deg, var(--ui-primary-strong), #1e40af);
}

.btn-info {
    background: #dbebff;
    border-color: #dbebff;
    color: #12457f;
}

.btn-info:hover {
    background: #c8e0ff;
    border-color: #c8e0ff;
    color: #113c6d;
}

.btn-danger {
    border: 0;
    background: var(--ui-danger);
}

.btn-danger:hover {
    background: #9f1239;
}

.btn-default {
    color: #183659;
    background: #eaf3ff;
    border-color: #eaf3ff;
}

.btn-default:hover,
.btn-default:focus {
    color: #102f4f;
    background: #d7e8ff;
    border-color: #d7e8ff;
}

.btn-link {
    color: #20508b;
    font-weight: 600;
}

.btn-link:hover {
    color: #163a65;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 4px 9px;
    font-size: 11px;
    line-height: 1.35;
    border-radius: 8px;
}

.form-control,
.select2-selection,
.select2-selection--single,
.select2-selection--multiple,
.input-group-text {
    border-radius: 11px;
    border: 1px solid var(--ui-border-strong);
    min-height: 44px;
}

.form-group label,
.col-form-label {
    color: #294b74;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.form-modern {
    display: grid;
    gap: 10px;
}

.form-modern.form-compact .form-group {
    margin-bottom: 8px;
}

.form-modern.form-compact .form-group:last-of-type {
    margin-bottom: 0;
}

.form-modern.form-compact .form-control,
.form-modern.form-compact .select2-selection--single,
.form-modern.form-compact .select2-selection--multiple {
    min-height: 42px;
}

.form-modern.form-compact textarea.form-control {
    min-height: 120px;
}

.form-modern.form-compact label {
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4a678b;
}

.form-modern .helper-block {
    margin: 5px 0 0;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.35;
    color: #5a7495;
    background: #f4f8ff;
    border: 1px solid #e1ebf9;
}

.form-modern .invalid-feedback {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
}

.form-modern.form-compact.form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 8px;
}

.form-modern.form-compact.form-grid-2 > .form-group {
    margin-bottom: 0;
}

.form-modern.form-compact.form-grid-2 .form-group-full,
.form-modern.form-compact.form-grid-2 .form-actions {
    grid-column: 1 / -1;
}

.form-modern .form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

@media (max-width: 991.98px) {
    .form-modern.form-compact.form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.form-control {
    color: var(--ui-text);
    background: #ffffff;
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #7ba6df;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.13);
}

.form-control::placeholder {
    color: #8ca1bc;
}

.input-group .input-group-text {
    background: #eef5ff;
    color: #2f527e;
}

.input-group .form-control:not(:first-child) {
    border-left: 0;
}

.input-group .input-group-prepend + .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    color: var(--ui-text) !important;
    line-height: 30px !important;
    padding-left: 12px !important;
}

.select2-selection__arrow {
    height: 42px !important;
    right: 8px !important;
}

.select2-dropdown {
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    overflow: hidden;
}

.select2-results__option {
    padding: 8px 12px;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #e7f1ff !important;
    color: #183a62 !important;
}

.ck-editor__editable,
textarea {
    min-height: 150px;
}

.has-error .invalid-feedback,
.invalid-feedback {
    display: block !important;
}

.datatable,
.datatable-Ticket {
    width: 100% !important;
    border-radius: 12px;
    overflow: hidden;
}

.dataTables_wrapper {
    border: 1px solid #dce9f8;
    border-radius: 14px;
    padding: 10px 12px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dt-buttons,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-top: 6px;
    margin-bottom: 6px;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    color: #4c6687;
    font-weight: 600;
    font-size: 12px;
}

.dataTables_wrapper .dt-buttons .btn {
    margin-right: 6px;
}

.datatable-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.datatable .btn-xs,
.datatable-Ticket .btn-xs,
.datatable-actions .btn-xs {
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    transform: none !important;
    box-shadow: none !important;
}

.datatable .btn-xs.btn-primary,
.datatable-Ticket .btn-xs.btn-primary,
.datatable-actions .btn-xs.btn-primary {
    background: #e6f0ff;
    border: 1px solid #d4e4ff;
    color: #17436f;
}

.datatable .btn-xs.btn-primary:hover,
.datatable-Ticket .btn-xs.btn-primary:hover,
.datatable-actions .btn-xs.btn-primary:hover {
    background: #dbe9ff;
    border-color: #c8ddff;
}

.datatable .btn-xs.btn-info,
.datatable-Ticket .btn-xs.btn-info,
.datatable-actions .btn-xs.btn-info {
    background: #e7f9ff;
    border: 1px solid #d0f1ff;
    color: #0e5675;
}

.datatable .btn-xs.btn-info:hover,
.datatable-Ticket .btn-xs.btn-info:hover,
.datatable-actions .btn-xs.btn-info:hover {
    background: #daf5ff;
    border-color: #bfeeff;
}

.datatable .btn-xs.btn-danger,
.datatable-Ticket .btn-xs.btn-danger,
.datatable-actions .btn-xs.btn-danger {
    background: #ffecef;
    border: 1px solid #ffd6dd;
    color: #8d1737;
}

.datatable .btn-xs.btn-danger:hover,
.datatable-Ticket .btn-xs.btn-danger:hover,
.datatable-actions .btn-xs.btn-danger:hover {
    background: #ffe3e8;
    border-color: #ffc5d0;
}

.datatable thead th,
.datatable-Ticket thead th,
table.dataTable thead th {
    border-top: 1px solid #e1ebf7;
    border-bottom: 1px solid #d7e4f3;
    background: #f1f7ff;
    color: #17375a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.datatable tbody tr,
.datatable-Ticket tbody tr {
    background: #fff;
    transition: background-color 0.2s ease;
}

.datatable tbody tr:hover,
.datatable-Ticket tbody tr:hover {
    background: #f7fbff;
}

.datatable td,
.datatable th,
.datatable-Ticket td,
.datatable-Ticket th {
    padding: 12px 14px;
    border-color: #e6eef8;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.5rem;
    margin-top: 0.2rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--ui-border-strong);
    border-radius: 10px;
    height: 36px;
    padding: 4px 10px;
    background: #ffffff;
}

.dataTables_wrapper .dataTables_length select {
    min-width: 72px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid transparent !important;
    border-radius: 8px;
    margin: 0 2px;
    padding: 3px 9px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--ui-secondary) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #dfebff !important;
    color: #153964 !important;
}

.dataTables_wrapper .dataTables_info {
    color: var(--ui-text-muted);
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #dce8f6;
}

.dataTables_wrapper .dataTables_scroll {
    border: 1px solid #e0ebfa;
    border-radius: 12px;
    overflow: hidden;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.searchable-title {
    font-weight: 700;
}

.searchable-fields {
    padding-left: 5px;
}

.searchable-link {
    padding: 0 5px;
}

.searchable-link:hover {
    cursor: pointer;
    background: #e8f1fb;
}

.ticket-page {
    padding-top: 96px;
}

.ticket-card {
    border-radius: 22px;
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow);
    overflow: hidden;
}

.ticket-card .card-body {
    padding: 24px 26px;
}

.ticket-card h3,
.ticket-card h4,
.ticket-card h5 {
    color: var(--ui-heading);
    font-weight: 700;
}

.ticket-card label,
.ticket-detail__label {
    font-weight: 700;
    color: #2a4669;
}

.ticket-card .form-control,
.ticket-card .dropzone {
    border-radius: 12px;
}

.ticket-card .form-control {
    min-height: 48px;
}

.ticket-card textarea.form-control {
    min-height: 140px;
}

.ticket-form-main .ticket-detail__label {
    font-size: 13px;
}

.ticket-form-main .ticket-detail__row {
    margin-bottom: 10px;
}

.ticket-help-card {
    position: sticky;
    top: 108px;
}

.ticket-help-list {
    margin: 0;
    padding-left: 20px;
    color: #3f5e83;
    display: grid;
    gap: 8px;
    font-size: 13px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
    gap: 20px;
}

.ticket-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.ticket-detail__badge {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #ddf4f3;
    color: #0f766e;
}

.ticket-detail__row {
    margin-bottom: 12px;
}

.ticket-detail__value {
    color: #24456d;
}

.ticket-detail__content {
    margin: 12px 0 20px;
    line-height: 1.65;
    color: #1f3a5e;
}

.ticket-detail__section {
    margin-bottom: 20px;
}

.ticket-detail__link {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 6px;
    padding: 6px 10px;
    border: 1px solid #d7e5f7;
    border-radius: 999px;
    color: #184679;
    background: #f4f9ff;
}

.ticket-detail__comment {
    background: #f5f9ff;
    border: 1px solid #e0ebf8;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.ticket-detail__comment-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.dashboard-shell {
    padding-bottom: 10px;
}

.dashboard-toolbar {
    border-radius: 16px;
}

.dashboard-toolbar .card-body {
    padding: 14px 16px;
}

.dashboard-toolbar__form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-toolbar .form-group {
    min-width: 180px;
}

.dashboard-toolbar .form-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5d7697;
}

.dashboard-toolbar__actions {
    display: inline-flex;
    gap: 8px;
}

.sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d9e7f7;
    background: #f7fbff;
    color: #2d4e73;
    font-size: 12px;
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0f766e;
    box-shadow: 0 0 0 rgba(15, 118, 110, 0.5);
    animation: sync-pulse 2s infinite;
}

@keyframes sync-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.55);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(15, 118, 110, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 118, 110, 0);
    }
}

.dashboard-hero {
    border-radius: 26px;
    border: 1px solid rgba(182, 207, 236, 0.8);
    overflow: hidden;
}

.dashboard-hero .card-body {
    padding: 28px;
    background:
        radial-gradient(400px 220px at 92% 20%, rgba(29, 78, 216, 0.22), transparent 70%),
        radial-gradient(420px 260px at 15% 85%, rgba(15, 118, 110, 0.22), transparent 70%),
        linear-gradient(135deg, #081a2f 0%, #0f2f5d 100%);
}

.dashboard-hero__content {
    max-width: 860px;
}

.dashboard-eyebrow {
    margin-bottom: 8px;
    color: rgba(196, 220, 249, 0.92);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    font-weight: 800;
}

.dashboard-subtitle {
    margin-top: 10px;
    color: rgba(214, 232, 254, 0.9);
    font-size: 14px;
}

.dashboard-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.dashboard-hero__mini-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 760px;
}

.dashboard-mini-stat {
    border-radius: 14px;
    border: 1px solid rgba(172, 206, 245, 0.35);
    background: rgba(255, 255, 255, 0.06);
    padding: 10px 12px;
}

.dashboard-mini-stat__label {
    display: block;
    color: rgba(205, 226, 252, 0.88);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.dashboard-mini-stat__value {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
}

.kpi-card {
    height: 100%;
    border: 1px solid #d8e6f5;
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    box-shadow: 0 14px 28px rgba(16, 45, 78, 0.08);
}

.kpi-card__label {
    margin-bottom: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #607a9a;
    font-weight: 700;
}

.kpi-card__value {
    margin: 0;
    color: #0d2645;
    font-size: 1.9rem;
    font-weight: 800;
}

.analytics-panel {
    border-radius: 18px;
}

.analytics-panel .card-header {
    padding: 13px 16px;
}

.chart-panel {
    height: 280px;
}

.chart-panel canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-panel--donut {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-donut-wrap {
    position: relative;
    width: min(100%, 240px);
    height: 240px;
}

.chart-donut-wrap--sm {
    width: min(100%, 200px);
    height: 200px;
}

.chart-panel--donut canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-panel--priority {
    padding-top: 16px;
}

.insight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #dce8f6;
}

.insight-item__label {
    color: #35567c;
    font-weight: 600;
    font-size: 14px;
}

.insight-item strong {
    color: #08223f;
    font-weight: 800;
    font-size: 15px;
}

.dashboard-shell--advanced {
    animation: dashboard-enter 0.45s ease-out;
}

@keyframes dashboard-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-command {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
    gap: 10px;
}

.dashboard-command__hero {
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(171, 203, 240, 0.52);
    box-shadow: 0 22px 48px rgba(7, 30, 56, 0.22);
}

.dashboard-command__hero .card-body {
    padding: 20px 22px;
    background:
        radial-gradient(460px 230px at 90% 0%, rgba(15, 118, 110, 0.34), transparent 70%),
        radial-gradient(420px 250px at 8% 100%, rgba(29, 78, 216, 0.38), transparent 72%),
        linear-gradient(128deg, #07172e 0%, #0b2a56 52%, #0c1f3d 100%);
}

.dashboard-command__hero .dashboard-title {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    max-width: 680px;
}

.dashboard-command__hero .dashboard-subtitle {
    max-width: 720px;
    margin-top: 8px;
    margin-bottom: 0;
}

.dashboard-command__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.dashboard-command__chips {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 780px;
}

.dashboard-chip {
    border-radius: 14px;
    border: 1px solid rgba(186, 218, 250, 0.3);
    background: rgba(255, 255, 255, 0.07);
    padding: 10px 12px;
    backdrop-filter: blur(2px);
}

.dashboard-chip span {
    display: block;
    color: rgba(205, 227, 252, 0.84);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 4px;
}

.dashboard-chip strong {
    color: #ffffff;
    font-size: 1.16rem;
    font-weight: 800;
}

.dashboard-command__rail {
    border-radius: 24px;
    border: 1px solid #d7e6f7;
    box-shadow: 0 16px 36px rgba(12, 36, 63, 0.11);
}

.dashboard-command__rail .card-body {
    padding: 12px;
    display: grid;
    gap: 10px;
}

.dashboard-rail__block {
    border-radius: 14px;
    border: 1px solid #dce9f8;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 10px;
}

.dashboard-rail__label {
    margin: 0 0 6px;
    font-size: 11px;
    color: #5e7899;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.dashboard-rail__range-form .form-control {
    min-height: 42px;
}

.dashboard-rail__focus {
    border-radius: 14px;
    border: 1px solid #cfe3ff;
    background: linear-gradient(145deg, #ecf4ff 0%, #e8f7f4 100%);
    padding: 10px;
}

.dashboard-rail__focus p {
    margin: 0;
    color: #153f6e;
    font-weight: 800;
}

.dashboard-rail__focus small {
    color: #4f7096;
    display: block;
}

.dashboard-metric-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    border-radius: 18px;
    border: 1px solid #d7e6f7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 26px rgba(13, 36, 62, 0.08);
    padding: 12px;
    display: grid;
    gap: 7px;
}

.metric-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.metric-card__label {
    margin: 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #607a99;
    font-weight: 700;
}

.metric-card__icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    background: linear-gradient(145deg, #e8f0ff, #e3f7f3);
    border: 1px solid #d1e3ff;
    font-size: 13px;
}

.metric-card__value {
    margin: 0;
    color: #0c2748;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.metric-card__meta {
    color: #5f7899;
    font-size: 12px;
    min-height: 16px;
}

.metric-card__bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: #e5eef8;
    overflow: hidden;
}

.metric-card__bar::before {
    content: '';
    position: absolute;
    inset: 0;
    width: var(--metric-fill, 28%);
    background: linear-gradient(90deg, #1d4ed8, #0f766e);
    border-radius: inherit;
}

.dashboard-analytics-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
}

.dashboard-breakdown-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analytics-panel--trend .card-header,
.analytics-panel--action .card-header {
    font-weight: 800;
}

.chart-panel--sm {
    height: 220px;
}

.ticket-list-hero {
    border-radius: 22px;
}

.ticket-empty-state {
    border-radius: 18px;
}

.ticket-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.ticket-list-toolbar__search {
    position: relative;
    flex: 1 1 320px;
}

.ticket-list-toolbar__search .fa-search {
    position: absolute;
    left: 14px;
    top: 14px;
    color: #6f88a7;
}

.ticket-list-toolbar__search .form-control {
    padding-left: 40px;
    min-height: 46px;
}

.ticket-list-toolbar__filters {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
}

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

.ticket-history-toggle-wrap {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.project-ticket-card {
    border-radius: 18px;
    border: 1px solid #d7e6f7;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    padding: 16px;
    box-shadow: 0 12px 26px rgba(16, 45, 78, 0.08);
}

.project-ticket-card__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.project-ticket-card__id {
    margin: 0 0 4px;
    color: #5e7899;
    font-size: 12px;
    font-weight: 700;
}

.project-ticket-card__title {
    margin: 0;
    font-size: 1.03rem;
    color: #0b2748;
    font-weight: 800;
}

.project-ticket-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: #37587e;
    font-size: 13px;
    margin-bottom: 14px;
}

.project-ticket-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-ticket-card__actions {
    display: flex;
    justify-content: flex-end;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #cde5de;
    background: #e8f8f2;
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    line-height: 1.1;
    white-space: nowrap;
}

.status-pill--closed,
.status-pill--resolved,
.status-pill--done {
    background: #ecfdf3;
    border-color: #c9efda;
    color: #157347;
}

.status-pill--open,
.status-pill--in-progress,
.status-pill--in-review {
    background: #e9f2ff;
    border-color: #cfe0ff;
    color: #1d4ed8;
}

.status-pill--pending,
.status-pill--hold,
.status-pill--on-hold {
    background: #fff6e9;
    border-color: #ffe3bf;
    color: #b45309;
}

.status-pill--rejected,
.status-pill--cancelled {
    background: #fff0f3;
    border-color: #ffd4dc;
    color: #b4234d;
}

.ticket-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
    gap: 18px;
    padding-bottom: 12px;
}

.ticket-detail-panel,
.ticket-conversation-panel,
.ticket-side-panel {
    border-radius: 20px;
}

.ticket-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #2a5686;
    margin-bottom: 14px;
}

.ticket-back-link:hover {
    color: #173c66;
}

.ticket-detail-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.ticket-detail-panel__eyebrow {
    margin: 0 0 4px;
    color: #5f7a99;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.ticket-detail-panel__title {
    margin: 0;
    color: #0a2547;
    font-size: clamp(1.2rem, 2.4vw, 1.75rem);
    font-weight: 800;
}

.ticket-detail-panel__subtitle {
    margin: 8px 0 0;
    color: #5d7899;
    font-size: 13px;
}

.ticket-detail-panel__content {
    border-radius: 14px;
    border: 1px solid #dfebf9;
    background: #f9fcff;
    padding: 14px;
    color: #1d3e65;
    line-height: 1.7;
}

.ticket-detail-panel__attachments {
    margin-top: 18px;
}

.ticket-attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.ticket-attachment-pill {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #d3e3fb;
    color: #1f4a7c;
    font-size: 12px;
    font-weight: 600;
}

.ticket-attachment-pill:hover {
    background: #e5f0ff;
    color: #163a64;
}

.ticket-attachment-preview {
    border-radius: 14px;
    border: 1px solid #d7e5f7;
    background: #f8fbff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 158px;
}

.ticket-attachment-preview img {
    width: 100%;
    height: 118px;
    object-fit: cover;
    display: block;
}

.ticket-attachment-preview__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    color: #1f4a7c;
    font-size: 12px;
    font-weight: 600;
    min-width: 0;
}

.ticket-attachment-preview__meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-attachment-file {
    border-radius: 14px;
    border: 1px solid #d7e5f7;
    background: #f8fbff;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 58px;
}

.ticket-attachment-file__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    background: #e7f0ff;
}

.ticket-attachment-file__name {
    color: #1f4a7c;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-attachment-file__cta {
    color: #496d95;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ticket-attachment-preview:hover,
.ticket-attachment-file:hover {
    border-color: #b9d2f1;
    box-shadow: 0 8px 18px rgba(19, 57, 97, 0.12);
}

.ticket-conversation-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.ticket-conversation-panel__count {
    color: #5d7899;
    font-size: 12px;
    font-weight: 700;
}

.conversation-thread {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.conversation-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.conversation-item__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    background: #476e9f;
    flex: 0 0 auto;
}

.conversation-item.is-agent .conversation-item__avatar {
    background: linear-gradient(135deg, #1d4ed8, #0f766e);
}

.conversation-item__bubble {
    flex: 1 1 auto;
    border-radius: 14px;
    border: 1px solid #ddeaf8;
    background: #f7fbff;
    padding: 10px 12px;
}

.conversation-item.is-agent .conversation-item__bubble {
    background: #f0f6ff;
    border-color: #d5e6ff;
}

.conversation-item.is-me .conversation-item__bubble {
    background: #eefaf6;
    border-color: #cfeede;
}

.conversation-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 5px;
}

.conversation-item__meta strong {
    color: #0a284a;
    font-size: 13px;
}

.conversation-item__role,
.conversation-item__time {
    color: #637e9e;
    font-size: 11px;
    font-weight: 600;
}

.conversation-item__bubble p {
    color: #1f4168;
    line-height: 1.6;
    font-size: 14px;
}

.conversation-empty-state {
    border: 1px dashed #d3e3f7;
    border-radius: 14px;
    background: #f9fcff;
    padding: 20px 16px;
    text-align: center;
    color: #5d7899;
}

.conversation-empty-state i {
    font-size: 24px;
    margin-bottom: 10px;
}

.ticket-comment-composer {
    border-radius: 16px;
    border: 1px solid #dbe9f8;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    padding: 14px;
}

.ticket-comment-composer .form-control {
    min-height: 130px;
}

.ticket-side-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.ticket-side-panel__list li {
    border-radius: 12px;
    border: 1px solid #dce9f8;
    background: #f8fbff;
    padding: 10px;
    display: grid;
    gap: 3px;
}

.ticket-side-panel__list span {
    color: #5e7899;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.ticket-side-panel__list strong {
    color: #12365f;
    font-size: 14px;
}

.auth-shell {
    min-height: 100vh;
    background:
        radial-gradient(600px 280px at 14% 6%, rgba(29, 78, 216, 0.2), transparent 70%),
        radial-gradient(660px 300px at 90% 90%, rgba(15, 118, 110, 0.23), transparent 70%);
}

.login-page .card {
    border-radius: 22px;
    border: 1px solid #d6e4f5;
    box-shadow: var(--ui-shadow);
}

.login-page .card-body {
    padding: 26px;
}

.login-page h1 {
    margin-bottom: 6px;
    color: var(--ui-heading);
    font-size: 27px;
    font-weight: 800;
}

.login-page .text-muted {
    color: #6580a2 !important;
}

.login-page .btn-primary {
    min-height: 44px;
}

.login-page .form-check-input {
    margin-top: 0.22rem;
}

.login-page .client-login-note {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid #d6e9f6;
    border-radius: 18px;
    background: rgba(226, 244, 251, 0.92);
    color: #45667d;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 12px 30px rgba(22, 58, 98, 0.08);
}

.login-page .client-login-note strong {
    color: #305369;
}

.login-page .client-login-note__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ffffff;
    color: #2b5d78;
    box-shadow: 0 8px 18px rgba(22, 58, 98, 0.08);
}

.login-page .client-login-note__content {
    min-width: 0;
}

.login-page .client-login-note__title,
.login-page .client-login-note__text {
    margin: 0;
}

.login-page .client-login-note__title {
    margin-bottom: 4px;
    color: #2f4f66;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-page .password-toggle {
    min-width: 52px;
    border-color: #c5d8ee;
    color: #5a7390;
    background: #edf4ff;
}

.login-page .password-toggle:hover,
.login-page .password-toggle:focus {
    color: #2f4e73;
    background: #e1edff;
    border-color: #b5cdec;
    box-shadow: none;
}

.login-page .password-toggle i {
    font-size: 15px;
}

.error-page {
    position: relative;
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0 36px;
    overflow: hidden;
}

.error-page__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(520px 280px at 18% 20%, rgba(29, 78, 216, 0.14), transparent 70%),
        radial-gradient(500px 260px at 82% 12%, rgba(15, 118, 110, 0.16), transparent 72%),
        radial-gradient(540px 320px at 50% 100%, rgba(194, 65, 12, 0.09), transparent 70%);
}

.error-page__panel {
    position: relative;
    width: min(760px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(216, 229, 243, 0.95);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 28px 60px rgba(12, 35, 64, 0.12);
    backdrop-filter: blur(8px);
}

.error-page__panel .card-body {
    padding: 44px;
    text-align: center;
}

.error-page__eyebrow {
    margin: 0 0 12px;
    color: var(--ui-secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.error-page__title {
    margin: 0;
    color: var(--ui-heading);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
}

.error-page__message {
    margin: 18px auto 0;
    max-width: 560px;
    color: #4f6784;
    font-size: 1.05rem;
    line-height: 1.75;
}

.error-page__details {
    margin: 12px auto 0;
    max-width: 620px;
    color: #7085a0;
    font-size: 0.96rem;
    line-height: 1.7;
}

.error-page__actions {
    margin-top: 28px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

@media (min-width: 992px) and (max-width: 1440px) {
    .login-page .client-login-panel {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
}

.app-public-main {
    margin-left: 0 !important;
}

.dropzone {
    border: 1px dashed #9cb8d8;
    background: #f8fbff;
    border-radius: 12px;
}

.dropzone .dz-message {
    color: #43658f;
}

@media (max-width: 1199.98px) {
    .app-body .main {
        margin-left: 0;
    }

    .sidebar,
    .sidebar-lg-show .sidebar {
        left: -380px;
    }

    .sidebar-show .sidebar {
        left: 14px;
    }

    .sidebar {
        width: min(360px, calc(100vw - 28px));
    }

    .ticket-grid {
        grid-template-columns: 1fr;
    }

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

    .ticket-workspace {
        grid-template-columns: 1fr;
    }

    .dashboard-command {
        grid-template-columns: 1fr;
    }

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

    .dashboard-analytics-grid,
    .dashboard-breakdown-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .app-header.navbar {
        left: 8px;
        right: 8px;
        top: 8px;
        height: auto;
        min-height: 62px;
        border-radius: 16px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .main {
        margin-top: 122px;
    }

    .app-content-wrap {
        padding: 0 10px 18px;
    }

    .navbar-brand-full {
        font-size: 14px;
    }

    .navbar-brand-logo {
        height: 28px;
    }

    .app-public-nav {
        width: 100%;
        justify-content: stretch;
        gap: 8px;
        margin-top: 8px;
    }

    .app-public-nav__item {
        flex: 1 1 calc(50% - 8px);
    }

    .app-public-nav__link {
        width: 100%;
        padding: 0 12px !important;
    }

    .js-sidebar-desktop-toggle .sidebar-toggle-label {
        display: none;
    }

    .dashboard-hero .card-body {
        padding: 20px;
    }

    .header-profile-meta,
    .header-profile-chevron {
        display: none;
    }

    .dashboard-toolbar__form {
        align-items: stretch;
    }

    .dashboard-toolbar .form-group,
    .dashboard-toolbar__actions,
    .sync-pill {
        width: 100%;
    }

    .dashboard-toolbar__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sync-pill {
        justify-content: center;
    }

    .kpi-card__value {
        font-size: 1.5rem;
    }

    .dashboard-hero__mini-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-command__hero .card-body {
        padding: 20px;
    }

    .dashboard-command__chips {
        grid-template-columns: 1fr;
    }

    .dashboard-command__hero-actions .btn {
        width: 100%;
    }

    .dashboard-metric-grid {
        grid-template-columns: 1fr;
    }

    .error-page {
        min-height: calc(100vh - 110px);
        padding-top: 18px;
    }

    .error-page__panel .card-body {
        padding: 32px 24px;
    }

    .error-page__actions {
        display: grid;
        width: 100%;
    }

    .error-page__actions .btn {
        width: 100%;
    }

    .ticket-list-toolbar__filters {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .chart-panel {
        height: 250px;
    }
}
