/* Global UI refresh layer: safe overrides on top of existing theme */
:root {
    --ui-font: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --ui-bg: #f3f7f6;
    --ui-surface: #ffffff;
    --ui-text: #14333b;
    --ui-muted: #5c7480;
    --ui-primary: #62a288;
    --ui-primary-2: #4f8c73;
    --ui-accent: #f59e0b;
    --ui-border: #d7e3e1;
    --ui-shadow: 0 10px 24px rgba(9, 31, 42, 0.08);
    --ui-radius: 14px;
}

body {
    font-family: var(--ui-font);
    color: var(--ui-text);
    background:
        radial-gradient(circle at 8% 4%, rgba(98, 162, 136, 0.12) 0, rgba(98, 162, 136, 0) 42%),
        radial-gradient(circle at 92% 10%, rgba(245, 158, 11, 0.08) 0, rgba(245, 158, 11, 0) 28%),
        var(--ui-bg);
}

#content-page.content-page {
    padding-top: 120px;
}

.iq-top-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--ui-border);
    border-radius: 22px;
    margin: 20px 30px;
}

.iq-top-navbar .iq-navbar-custom {
    border-radius: 22px;
}

.top_heading {
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #13404a;
}

.iq-card {
    border: 1px solid var(--ui-border);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow);
    overflow: hidden;
}

.iq-card .iq-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
}

.iq-card .iq-card-header .card-title,
.iq-card .iq-card-header h4,
.iq-card .iq-card-header h5 {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.btn {
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.15px;
}

.btn-primary,
.btn.bg-primary,
.bg-primary {
    background-color: var(--ui-primary) !important;
    border-color: var(--ui-primary) !important;
}

.btn-outline-primary {
    color: var(--ui-primary);
    border-color: var(--ui-primary);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--ui-primary);
    border-color: var(--ui-primary);
}

.form-control,
.select2-container--default .select2-selection--single {
    min-height: 40px;
    border-radius: 10px;
    border-color: #c9d8d5;
}

.form-control:focus {
    border-color: var(--ui-primary);
    box-shadow: 0 0 0 0.2rem rgba(98, 162, 136, 0.18);
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    border: 0 !important;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #1f3e45;
}

.table-responsive {
    border-bottom: 2px solid #c5d9d1;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    /* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 8px 20px rgba(15, 40, 53, 0.06); */
}

.table thead th {
    background: linear-gradient(180deg, #eff8f3 0%, #e6f3ec 100%);
    color: #16404a;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 0 !important;
    border-bottom: 1px solid #cfe1d8 !important;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.table thead th:first-child {
    border-top-left-radius: 10px;
}

.table thead th:last-child {
    border-top-right-radius: 10px;
}

.table td,
.table th {
    vertical-align: middle;
}

.table td {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    color: #2d4a51;
    white-space: normal;
    border: 0 !important;
}

.table td.text-right,
.table th.text-right,
.table td.text-center,
.table th.text-center,
.table .text-nowrap {
    white-space: nowrap;
}

.table tbody tr {
    transition: background-color 0.16s ease-in-out;
}

.table tbody tr:last-child td {
    border-bottom: 1px solid #d8e7e2 !important;
}

.table tbody tr:hover {
    background-color: rgba(98, 162, 136, 0.12) !important;
}

.table thead th.sorting,
.table thead th.sorting_asc,
.table thead th.sorting_desc {
    color: #14343d;
}

.table-bordered,
.table-bordered td,
.table-bordered th {
    border: 0 !important;
}

.table tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(98, 162, 136, 0.065);
}

.table tbody tr:nth-of-type(even),
.table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff;
}

.table .btn,
.table .badge {
    vertical-align: middle;
}

div.dataTables_wrapper {
    padding: 0.35rem 0;
}

div.dataTables_wrapper .dataTables_length,
div.dataTables_wrapper .dataTables_filter,
div.dataTables_wrapper .dataTables_info,
div.dataTables_wrapper .dataTables_paginate {
    font-size: 0.88rem;
    color: #47626b;
}

div.dataTables_wrapper .dataTables_length select,
div.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #c8d9d4;
    border-radius: 9px;
    padding: 0.38rem 0.55rem;
    background: #fff;
    color: #20434b;
    min-height: 34px;
}

div.dataTables_wrapper .dataTables_filter input:focus,
div.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--ui-primary);
    outline: none;
    box-shadow: 0 0 0 0.18rem rgba(98, 162, 136, 0.15);
}

div.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid #cde0da !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #31545d !important;
    min-width: 34px;
    padding: 0.34rem 0.64rem !important;
    margin-left: 0.25rem;
}

div.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #ecf6f1 !important;
    border-color: #b7d2c8 !important;
    color: #143942 !important;
}

div.dataTables_wrapper .dataTables_paginate .paginate_button.current,
div.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(180deg, #62a288 0%, #4f8c73 100%) !important;
    border-color: #4f8c73 !important;
    color: #ffffff !important;
}

div.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
div.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.5;
    cursor: not-allowed;
}

.badge {
    border-radius: 999px;
    padding: 0.4rem 0.62rem;
    font-weight: 700;
}

.badge-success {
    background-color: #0d8f57;
}

.badge-warning {
    background-color: #d89117;
    color: #fff;
}

.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 18px rgba(24, 39, 57, 0.1);
}

.modal-content {
    border-radius: 14px;
    border: 1px solid var(--ui-border);
}

.iq-footer {
    border-top: 1px solid var(--ui-border);
    background: #fff;
}
