@import url("https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700;1,900&display=swap");

:root {
    --font-brand: "Google Sans", "Product Sans", "Roboto", Arial, Helvetica, sans-serif;
    --font-data: "Roboto", Arial, Helvetica, sans-serif;
    --font-sans: var(--font-data);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

    --background: #f9f9fc;
    --foreground: #1a1c1e;
    --card: #ffffff;
    --card-foreground: #1a1c1e;
    --popover: #ffffff;
    --popover-foreground: #1a1c1e;
    --primary: #00244a;
    --primary-foreground: #ffffff;
    --secondary: #036782;
    --secondary-foreground: #ffffff;
    --muted: #f3f3f6;
    --muted-foreground: #434750;
    --accent: #bbe9ff;
    --accent-foreground: #001f29;
    --destructive: #ba1a1a;
    --destructive-foreground: #ffffff;
    --border: #e2e8f0;
    --input: #c3c6d1;
    --ring: #036782;
    --ring-rgb: 3, 103, 130;
    --destructive-rgb: 186, 26, 26;
    --radius: 0.5rem;

    --surface: #f9f9fc;
    --surface-dim: #dadadc;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f3f3f6;
    --surface-container: #eeeef0;
    --surface-container-high: #e8e8ea;
    --surface-container-highest: #e2e2e5;
    --on-surface: #1a1c1e;
    --on-surface-variant: #434750;
    --inverse-surface: #2f3133;
    --inverse-on-surface: #f0f0f3;
    --outline: #737781;
    --outline-variant: #c3c6d1;
    --surface-tint: #355f97;
    --on-primary: #ffffff;
    --primary-container: #003a70;
    --on-primary-container: #7ea5e2;
    --inverse-primary: #a6c8ff;
    --secondary-container: #95defe;
    --on-secondary-container: #00647e;
    --primary-fixed: #d5e3ff;
    --primary-fixed-dim: #a6c8ff;
    --on-primary-fixed: #001c3b;
    --secondary-fixed: #bbe9ff;
    --secondary-fixed-dim: #87d0ef;
    --on-secondary-fixed: #001f29;
    --primary-action: #0b4d8c;
    --secondary-highlight: #8ccae6;
    --component-border: #d7dce3;
    --page-background: #f6f7f9;

    --vz-font-sans-serif: var(--font-sans);
    --vz-body-font-family: var(--font-sans);
    --vz-font-monospace: var(--font-mono);
    --vz-body-bg: var(--background);
    --vz-body-color: var(--vz-body-color);
    --vz-card-bg: var(--card);
    --vz-card-bg-custom: var(--card);
    --vz-border-color: var(--border);
    --vz-primary: var(--primary);
    --vz-primary-rgb: 0, 36, 74;
    --vz-secondary: var(--secondary);
    --vz-secondary-rgb: 3, 103, 130;
    --vz-link-color: var(--secondary);
    --vz-link-hover-color: var(--primary);
    --vz-border-radius: calc(var(--radius) - 0.125rem);
    --vz-border-radius-sm: 0.25rem;
    --vz-border-radius-lg: var(--radius);
    --vz-primary-bg-subtle: #e2e5ed;
    --vz-secondary-bg-subtle: #e1ebfd;
    --vz-success-bg-subtle: #daf4f0;
    --vz-info-bg-subtle: #dff0fa;
    --vz-warning-bg-subtle: #fef4e4;
    --vz-danger-bg-subtle: #fde8e4;
    --vz-light-bg-subtle: #f9fbfc;
    --vz-dark-bg-subtle: #e9ebec;
    --vz-primary-border-subtle: #b3b9d0;
    --vz-secondary-border-subtle: #aec9f9;
    --vz-success-border-subtle: #9de1d7;
    --vz-info-border-subtle: #a9d7f1;
    --vz-warning-border-subtle: #fce3b7;
    --vz-danger-border-subtle: #f9c1b6;
    --vz-light-border-subtle: #eff2f7;
    --vz-dark-border-subtle: #adb5bd;

    --spacing: .25rem;
}

[data-layout-mode=dark] {
    --background: #1a1d21;
    --vz-body-color: #ced4da;
    --vz-heading-color: #ced4da;
    --vz-secondary-bg: #212529;
    --vz-border-color: #32383e;
}

html,
body {
    background: var(--background);
    color: var(--vz-body-color);
    font-family: var(--font-data) !important;
    letter-spacing: 0;
}

body,
a,
p,
span,
small,
label,
li,
dt,
dd,
button,
input,
optgroup,
select,
textarea,
.form-label,
.form-text,
.form-control,
.form-select,
.dropdown-menu,
.dropdown-item,
.breadcrumb,
.pagination,
.badge,
.alert,
.card,
.table,
.table thead,
.table tbody,
.table tfoot,
.table th,
.table td,
.modal,
.offcanvas,
.toast,
.tooltip,
.popover,
.apexcharts-text,
.apexcharts-legend-text {
    font-family: var(--font-data) !important;
}

code,
kbd,
pre,
samp {
    font-family: var(--font-mono) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.page-title-box h4,
.card-title,
.modal-title,
.navbar-menu .menu-link,
.menu-title,
.app-menu .navbar-nav .nav-link,
.nav-tabs .nav-link,
.nav-pills .nav-link,
.btn-primary,
.btn-soft-primary,
.btn-outline-primary,
.weekly-title h4,
.team-member-header h4,
.member-profile-main h4,
.project-member-info h4,
.project-summary-head h5,
.project-detail-tabs a,
.task-tabs a,
.apexcharts-title-text {
    font-family: var(--font-brand) !important;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: var(--vz-heading-color);
}

.navbar-landing .navbar-nav .nav-item .nav-link {
    font-family: var(--font-brand) !important;
}

.card,
.modal-content,
.offcanvas,
.dropdown-menu,
.toast,
.popover {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
    color: var(--card-foreground);
}


.bg-primary-subtle {
    background-color: var(--vz-primary-bg-subtle)!important
}

.bg-secondary-subtle {
    background-color: var(--vz-secondary-bg-subtle)!important
}

.bg-success-subtle {
    background-color: var(--vz-success-bg-subtle)!important
}

.bg-info-subtle {
    background-color: var(--vz-info-bg-subtle)!important
}

.bg-warning-subtle {
    background-color: var(--vz-warning-bg-subtle)!important
}

.bg-danger-subtle {
    background-color: var(--vz-danger-bg-subtle)!important
}

.bg-light-subtle {
    background-color: var(--vz-light-bg-subtle)!important
}

.bg-dark-subtle {
    background-color: var(--vz-dark-bg-subtle)!important
}

.bg-gradient {
    background-image: var(--vz-gradient)!important
}


.btn {
    border-radius: calc(var(--radius) - 0.25rem);
    font-weight: 500;
}

.btn-primary,
.btn-secondary,
.btn-success {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--primary-foreground) !important;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-primary:focus,
.btn-secondary:focus,
.btn-success:focus {
    background-color: #003a70 !important;
    border-color: #003a70 !important;
    color: var(--primary-foreground) !important;
}

.btn-outline-primary,
.btn-outline-secondary {
    background-color: transparent;
    border-color: var(--input);
    color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-light:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:focus,
.btn-light:focus {
    background-color: var(--accent);
    border-color: var(--ring);
    color: var(--accent-foreground);
}

.form-control,
.form-select,
.choices__inner,
.input-group-text {
    min-height: 2.25rem;
    background-color: transparent;
    border-color: var(--input) !important;
    border-radius: calc(var(--radius) - 0.125rem) !important;
    box-shadow: 0 1px 2px rgba(0, 36, 74, 0.05);
    color: var(--vz-body-color);
    font-size: 0.875rem;
    transition: color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-control,
.form-select {
    padding: 0.25rem 0.75rem;
}

.dt-length .form-select {
    background-position: right 0rem center !important;
    min-width: 3.5rem;
}

.dt-empty-footer .row {
    align-items: center;
}

textarea.form-control {
    min-height: 5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.form-control::placeholder {
    color: var(--vz-secondary-color);
    opacity: 1;
}

.form-control::selection,
.form-select::selection,
.ui-input::selection,
.ui-select::selection,
.ui-textarea::selection {
    background: var(--primary);
    color: var(--primary-foreground);
}

.form-control::file-selector-button {
    height: 1.75rem;
    margin: -0.25rem 0.75rem -0.25rem -0.75rem;
    border: 0;
    background: transparent;
    color: var(--vz-body-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-control:focus,
.form-select:focus,
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
    border-color: var(--ring) !important;
    box-shadow: 0 0 0 3px rgba(var(--ring-rgb), 0.5) !important;
    outline: 0;
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled,
.choices.is-disabled .choices__inner {
    cursor: not-allowed;
    opacity: 0.5;
}

.form-control[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--destructive) !important;
    box-shadow: 0 0 0 3px rgba(var(--destructive-rgb), 0.2) !important;
}

.form-label,
.form-text,
.text-muted {
    color: var(--vz-secondary-color) !important;
}

.table {
    --vz-table-bg: transparent;
    --vz-table-color: var(--vz-body-color);
    --vz-table-border-color: var(--border);
    width: 100%;
    border-color: var(--border);
    caption-side: bottom;
    color: var(--vz-body-color);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.table thead th,
.table-light,
.table> :not(caption)>*>* {
    border-color: var(--border);
}

.table-responsive,
.table-card {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.125rem);
    overflow: hidden;
}

.table-card .table-responsive {
    border: 0;
    border-radius: 0;
}

.table thead th,
.table th {
    height: 2.5rem;
    background: transparent;
    color: var(--vz-body-color) !important;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    padding: 0 0.5rem;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.table td {
    border-bottom: 1px solid var(--border);
    color: var(--vz-body-color);
    line-height: 1.25rem;
    padding: 0.5rem;
    vertical-align: middle;
    white-space: nowrap;
}

.table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.16s ease, color 0.16s ease;
}

.table tbody tr:hover,
.table-hover>tbody>tr:hover>* {
    --vz-table-hover-bg: rgba(243, 243, 246, 0.5);
    background-color: rgba(243, 243, 246, 0.5);
    color: var(--vz-body-color);
}

.table tbody tr[data-state="selected"],
.table tbody tr[aria-selected="true"] {
    background-color: var(--muted);
}

.table tbody tr:last-child,
.table tbody tr:last-child>* {
    border-bottom: 0;
}

.table-light {
    --vz-table-bg: transparent;
    --vz-table-color: var(--vz-body-color);
    background: transparent;
    color: var(--vz-body-color);
}

.dropdown-item {
    border-radius: calc(var(--radius) - 0.25rem);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.badge {
    border-radius: 9999px;
    font-weight: 500;
}

.badge-soft-success {
    background-color: #e7f6ed;
    color: #168a57;
}

.badge-soft-warning {
    background-color: #fff0e5;
    color: #b35416;
}

.badge-soft-danger {
    background-color: #ffdad6;
    color: #93000a;
}

.badge-soft-info,
.badge-soft-secondary {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.alert {
    border-color: var(--border);
    border-radius: var(--radius);
}

.page-content {
    background-color: var(--background);
}

.required-label {
    position: relative;
}

.required-label:before {
    right: -5px;
    content: ':';
    position: absolute;
}

.required-label:after {
    right: -12px;
    color: red;
    content: '*';
    position: absolute;
}

.default-progress-line {
    background-color: #c5c6d1;
    height: 2px;
    top: 1rem;
    left: 0;
    position: absolute;
}

.success-progress-line {
    background-color: rgb(0 107 92 / var(1, 1));
    height: 2px;
    top: 1rem;
    left: 0;
    position: absolute;
}

.w-33 {
    width: 33.3333333333%;
}

.choices__inner {
    padding-right: .5rem;
}

.choices__placeholder {
    color: var(--vz-secondary-color);
}

/* shadcn-style templ component primitives */
.ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    font-family: var(--font-brand);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.ui-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(3, 103, 130, 0.18);
}

.ui-btn-md {
    min-height: 2rem;
    padding: 0 1rem;
    font-size: 0.875rem;
}

.ui-btn-sm {
    min-height: 1.75rem;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
}

.ui-btn-lg {
    min-height: 2.75rem;
    padding: 0 1.5rem;
    font-size: 0.9375rem;
}

.ui-btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}

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

.ui-btn-primary:hover {
    background: #003a70;
    border-color: #003a70;
    color: var(--primary-foreground);
}

.ui-btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--secondary-foreground);
}

.ui-btn-secondary:hover {
    background: #004d63;
    border-color: #004d63;
    color: var(--secondary-foreground);
}

.ui-btn-outline,
.ui-btn-ghost {
    background: transparent;
    color: var(--primary);
}

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

.ui-btn-outline:hover,
.ui-btn-ghost:hover {
    background: var(--accent);
    border-color: var(--ring);
    color: var(--accent-foreground);
}

.ui-btn-destructive {
    background: var(--destructive);
    border-color: var(--destructive);
    color: var(--destructive-foreground);
}

.ui-card {
    background: var(--vz-secondary-bg);
    border: 1px solid var(--vz-border-color);
    border-radius: var(--radius);
    color: var(--vz-body-color);
}

.ui-card-header {
    padding: 1.5rem 1.5rem 0;
}

.ui-card-title {
    margin: 0;
    color: var(--vz-heading-color);
    font-family: var(--font-brand);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5rem;
}

.ui-card-description {
    color: var(--vz-secondary-color);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

.ui-card-content {
    padding: 1.5rem;
}

.ui-card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
}

.ui-field {
    display: grid;
    gap: 0.5rem;
}

.ui-label {
    color: var(--vz-body-color);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
}

.ui-required {
    color: var(--destructive);
    margin-left: 0.25rem;
}

.ui-input,
.ui-select,
.ui-textarea {
    width: 100%;
    min-width: 0;
    min-height: 2.438rem;
    border: 1px solid var(--input);
    border-radius: calc(var(--radius) - 0.125rem);
    background: transparent;
    box-shadow: 0 1px 2px rgba(0, 36, 74, 0.05);
    color: var(--vz-body-color);
    font-family: var(--font-data);
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    transition: color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ui-input::placeholder,
.ui-textarea::placeholder {
    color: var(--muted-foreground);
    opacity: 1;
}

.ui-input::file-selector-button {
    height: 1.75rem;
    margin: -0.25rem 0.75rem -0.25rem -0.75rem;
    border: 0;
    background: transparent;
    color: var(--vz-body-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.ui-textarea {
    min-height: 5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    resize: vertical;
}

.ui-input:focus,
.ui-select:focus,
.ui-textarea:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(var(--ring-rgb), 0.5);
    outline: 0;
}

.ui-input:disabled,
.ui-select:disabled,
.ui-textarea:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.ui-input[aria-invalid="true"],
.ui-select[aria-invalid="true"],
.ui-textarea[aria-invalid="true"] {
    border-color: var(--destructive);
    box-shadow: 0 0 0 3px rgba(var(--destructive-rgb), 0.2);
}

.ui-field-help {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    margin: 0;
}

.ui-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 9999px;
    min-height: 1.5rem;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
    white-space: nowrap;
}

.ui-badge-default {
    background: var(--primary);
    color: var(--primary-foreground);
}

.ui-badge-secondary {
    background: var(--accent);
    color: var(--accent-foreground);
}

.ui-badge-outline {
    border-color: var(--border);
    color: var(--vz-body-color);
}

.ui-badge-success {
    background: #e7f6ed;
    color: #168a57;
}

.ui-badge-warning {
    background: #fff0e5;
    color: #b35416;
}

.ui-badge-destructive {
    background: #ffdad6;
    color: #93000a;
}

.ui-table-wrap {
    position: relative;
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--vz-border-color);
    border-radius: calc(var(--radius) - 0.125rem);
}

.ui-table {
    width: 100%;
    caption-side: bottom;
    border-collapse: collapse;
    color: var(--vz-body-color);
    font-size: 0.875rem;
}

.ui-table-header {
    background: transparent;
    color: var(--vz-body-color);
}

.ui-table-row {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.16s ease, color 0.16s ease;
}

.ui-table-body .ui-table-row:last-child {
    border-bottom: 0;
}

.ui-table-head,
.ui-table-cell {
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.ui-table-head {
    height: 2.5rem;
    color: var(--vz-body-color);
    font-weight: 500;
    padding: 0 0.5rem;
}

.ui-table-cell {
    padding: 0.5rem;
}

.ui-table-row:hover .ui-table-cell {
    background: rgba(243, 243, 246, 0.5);
}

.ui-table-row[data-state="selected"] .ui-table-cell,
.ui-table-row[aria-selected="true"] .ui-table-cell {
    background: var(--muted);
}

.ui-table caption,
.table caption {
    margin-top: 1rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* shadcn-style adapter for jQuery DataTables */
.ui-table-wrap .dt-container,
.ui-table-wrap .dataTables_wrapper {
    color: var(--vz-body-color);
    font-size: 0.875rem;
    /* Allow native <select> dropdown to escape the card boundary */
    overflow: visible;
}

/* Horizontal scroll lives on the table zone only, not the whole wrapper */
.ui-table-wrap .pm-dt-table,
.ui-table-wrap div.dt-layout-table,
.ui-table-wrap .dataTables_scrollBody {
    width: 100%;
    overflow-x: auto;
}

/* The outer card-content wrapper must also allow overflow so the select
   dropdown is not clipped */
.ui-card-content {
    overflow: visible;
}

.ui-table-wrap table.dataTable,
.ui-table-wrap table.ui-table.dataTable {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 0 !important;
}

.ui-table-wrap table.dataTable thead th,
.ui-table-wrap table.dataTable thead td {
    height: 2.5rem;
    border-bottom: 1px solid var(--border) !important;
    background: transparent !important;
    color: var(--vz-body-color) !important;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    padding: 0 0.75rem !important;
    vertical-align: middle;
    white-space: nowrap;
}

.ui-table-wrap table.dataTable tbody th,
.ui-table-wrap table.dataTable tbody td {
    height: 2.5rem;
    border-bottom: 1px solid var(--border) !important;
    background: transparent !important;
    color: var(--vz-body-color);
    line-height: 1.25rem;
    padding: 0.5rem 0.75rem !important;
    vertical-align: middle;
    white-space: nowrap;
}

.ui-table-wrap table.dataTable tbody tr {
    transition: background-color 0.16s ease, color 0.16s ease;
}

.ui-table-wrap table.dataTable tbody tr:hover>* {
    background: rgba(243, 243, 246, 0.5) !important;
}

.ui-table-wrap table.dataTable tbody tr.table-active>*,
.ui-table-wrap table.dataTable tbody tr.selected>*,
.ui-table-wrap table.dataTable tbody tr[aria-selected="true"]>* {
    background: var(--muted) !important;
}

.ui-table-wrap table.dataTable tbody tr:last-child>* {
    border-bottom: 0 !important;
}

/* Checkbox column: fixed narrow width, centered */
.ui-table-wrap table.dataTable th:first-child,
.ui-table-wrap table.dataTable td:first-child {
    width: 2.5rem !important;
    min-width: 2.5rem !important;
    max-width: 2.5rem !important;
    padding-left: 0.75rem !important;
    text-align: center;
}

/* Action column: always left-aligned */
.ui-table-wrap table.dataTable th:nth-child(2),
.ui-table-wrap table.dataTable td:nth-child(2) {
    text-align: left !important;
    white-space: nowrap;
}

.ui-table-wrap table.dataTable th.text-center,
.ui-table-wrap table.dataTable td.text-center {
    text-align: center;
}

/* Only orderable columns get extra right-padding for the sort icon */
.ui-table-wrap table.dataTable thead>tr>th.dt-orderable-asc,
.ui-table-wrap table.dataTable thead>tr>th.dt-orderable-desc {
    padding-right: 1.5rem !important;
}

/* Hide sort icon on non-orderable columns (checkbox, action) */
.ui-table-wrap table.dataTable thead th.dt-orderable-none span.dt-column-order,
.ui-table-wrap table.dataTable thead th:not(.dt-orderable-asc):not(.dt-orderable-desc) span.dt-column-order {
    display: none !important;
}

.ui-table-wrap table.dataTable thead span.dt-column-title {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ui-table-wrap table.dataTable thead span.dt-column-order {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    opacity: 0.45;
    vertical-align: middle;
}

.ui-table-wrap table.dataTable thead span.dt-column-order::before,
.ui-table-wrap table.dataTable thead span.dt-column-order::after {
    position: static !important;
    display: inline !important;
    color: var(--muted-foreground) !important;
    font-size: 0.75rem;
    line-height: 1;
    opacity: 1 !important;
}

.ui-table-wrap table.dataTable thead span.dt-column-order::before {
    content: "↑" !important;
}

.ui-table-wrap table.dataTable thead span.dt-column-order::after {
    content: "↓" !important;
    margin-left: 0.0625rem;
}

.ui-table-wrap table.dataTable thead .dt-ordering-asc span.dt-column-order,
.ui-table-wrap table.dataTable thead .dt-ordering-desc span.dt-column-order {
    opacity: 1;
}

.ui-table-wrap table.dataTable thead .dt-ordering-asc span.dt-column-order::before,
.ui-table-wrap table.dataTable thead .dt-ordering-desc span.dt-column-order::after {
    color: var(--vz-body-color) !important;
}

/*.ui-table-wrap .form-check-input,*/
/*.ui-table-wrap table.dataTable input[type="checkbox"] {*/
/*    width: 1rem;*/
/*    height: 1rem;*/
/*    margin: 0;*/
/*    border: 1px solid var(--foreground);*/
/*    border-radius: 0.25rem;*/
/*    box-shadow: none;*/
/*    cursor: pointer;*/
/*}*/

/*.ui-table-wrap .form-check-input:checked,*/
/*.ui-table-wrap table.dataTable input[type="checkbox"]:checked {*/
/*    background-color: #000;*/
/*    border-color: #000;*/
/*}*/

.ui-table-wrap .form-check-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── DataTable footer row ────────────────────────────────── */
/* Bootstrap dom footer row */
.ui-table-wrap .dataTables_wrapper>.row:last-child,
.ui-table-wrap .dataTables_wrapper .row.p-2 {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center !important;
    border-top: 1px solid var(--border);
    margin: 0 !important;
    padding: 0.625rem 0.75rem !important;
    gap: 0.75rem;
    /* allow select dropdown to overflow */
    overflow: visible;
}

/* All footer columns become flex items, vertically centered */
.ui-table-wrap .dataTables_wrapper .row.p-2>[class*="col-"] {
    display: flex;
    align-items: center;
    padding: 0;
    float: none;
}

/* Info text */
.ui-table-wrap .pm-dt-info,
.ui-table-wrap .dt-info,
.ui-table-wrap .dataTables_info {
    color: var(--vz-body-color);
    font-size: 0.8125rem;
    padding: 0 !important;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

/* Pagination wrapper */
.ui-table-wrap .pm-dt-paging,
.ui-table-wrap .dt-paging,
.ui-table-wrap .dataTables_paginate {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.ui-table-wrap .pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
}

.ui-table-wrap .dt-paging button,
.ui-table-wrap .paginate_button,
.ui-table-wrap .page-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: auto;
    min-height: 2rem;
    border: 1px solid var(--border) !important;
    border-radius: calc(var(--radius) - 0.125rem) !important;
    background: var(--vz-secondary-bg) !important;
    box-shadow: none !important;
    color: var(--vz-body-color) !important;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1;
    margin: 0 !important;
    padding: 0 0.75rem !important;
    text-decoration: none !important;
}

.ui-table-wrap .dt-paging button:hover,
.ui-table-wrap .paginate_button:hover,
.ui-table-wrap .page-link:hover {
    background: var(--muted) !important;
    color: var(--vz-body-color) !important;
}

.ui-table-wrap .dt-paging button.disabled,
.ui-table-wrap .dt-paging button:disabled,
.ui-table-wrap .paginate_button.disabled,
.ui-table-wrap .page-item.disabled .page-link {
    cursor: not-allowed;
    opacity: 0.5;
}

.ui-table-wrap .dt-paging button.current,
.ui-table-wrap .paginate_button.current,
.ui-table-wrap .page-item.active .page-link {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--primary-foreground) !important;
}

.ui-dialog-content {
    border-radius: var(--radius);
    overflow: hidden;
}

.ui-dialog-sm {
    max-width: 420px;
}

.ui-dialog-md {
    max-width: 560px;
}

.ui-dialog-lg {
    max-width: 760px;
}

.ui-dialog-xl {
    max-width: 980px;
}

.ui-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}

.ui-dialog-title {
    color: var(--vz-body-color);
    font-family: var(--font-brand);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5rem;
    margin: 0;
}

.ui-dialog-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

.ui-dialog-body {
    padding: 1.5rem;
}

.ui-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid var(--border);
    padding: 1rem 0 0.5rem;
}

.ui-tabs-list {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: var(--radius);
    background: var(--muted);
    padding: 0.25rem;
}

.ui-tabs-trigger {
    min-height: 2rem;
    border: 0;
    border-radius: calc(var(--radius) - 0.25rem);
    background: transparent;
    color: var(--muted-foreground);
    font-family: var(--font-brand);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0 0.75rem;
}

.ui-tabs-trigger.is-active {
    background: var(--card);
    color: var(--vz-body-color);
    box-shadow: 0 1px 2px rgba(0, 36, 74, 0.08);
}

.ui-dropdown-menu {
    padding: 0.25rem;
}

.ui-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2rem;
    border-radius: calc(var(--radius) - 0.25rem);
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
}

/* Shadcn-style light sidebar */
:is([data-layout=vertical], [data-layout=semibox])[data-sidebar-size=sm] .navbar-menu {
    position: absolute;
    width: 70px !important;
    padding-top: 51px;
}

:is([data-layout=vertical], [data-layout=semibox])[data-sidebar-size=sm] .navbar-brand-box {
    width: 70px !important;
}

@media (min-width: 768px) {
    [data-layout=vertical]:is([data-sidebar-size=sm], [data-sidebar-size=sm-hover]) #page-topbar {
        left: 70px !important;
    }
}

@media (min-width: 768px) {
    :is([data-layout=vertical], [data-layout=semibox])[data-sidebar-size=sm] .main-content {
        margin-left: 70px !important;
    }
}

.navbar-header {
    height: 51px !important;
}

.header-item {
    height: 51px !important;
}

.navbar-brand-box .logo {
    line-height: 51px !important;
}

.app-search {
    padding: calc(12px / 2) 0 !important;
}

.app-search input {
    height: 36px !important;
    border-radius: 3.40282e38px !important;
}

.app-menu.navbar-menu {
    --sidebar-bg: var(--primary);
    --sidebar-border: var(--primary-container);
    --sidebar-item-hover: var(--primary-container);
    --sidebar-item-active: var(--secondary-container);
    --sidebar-text: var(--primary-fixed);
    --sidebar-strong-text: var(--on-primary);
    --sidebar-muted-text: var(--primary-fixed-dim);
    --sidebar-active-text: var(--on-secondary-fixed);
    --sidebar-icon: var(--inverse-primary);
    --sidebar-line: var(--surface-tint);
    --sidebar-title: var(--on-primary-container);

    background: var(--sidebar-bg) !important;
    border-right: 1px solid var(--sidebar-border);
    box-shadow: none;
}

.app-menu .navbar-brand-box {
    background: var(--sidebar-bg) !important;
    border-bottom: 1px solid var(--sidebar-border);
    box-shadow: none;
}

.app-menu .navbar-brand-box .logo-lg img {
    max-height: 34px;
    object-fit: contain;
}

.app-menu .navbar-brand-box .logo-sm img {
    max-height: 32px;
    object-fit: contain;
}

.app-menu .btn-vertical-sm-hover {
    color: var(--sidebar-icon);
}

.app-menu .btn-vertical-sm-hover:hover {
    color: var(--secondary-container);
}

.app-menu #scrollbar {
    background: var(--sidebar-bg);
}

.app-menu #scrollbar>.container-fluid {
    padding: 0.75rem 0.5rem 1.25rem;
}

.app-menu .navbar-nav {
    gap: 0.125rem;
}

.app-menu .menu-title {
    color: var(--sidebar-title);
    display: block;
    font-family: var(--font-brand) !important;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1rem;
    margin: 0.875rem 0.25rem 0.375rem;
    padding: 0 0.25rem !important;
    text-transform: uppercase;
}

.app-menu .menu-title span {
    color: inherit;
}

.app-menu .navbar-nav>.nav-item,
.app-menu .simplebar-content>.nav-item {
    margin: 0;
    padding: 0;
}

.app-menu .nav-item:first-child {
    margin-top: 0;
}

.app-menu .navbar-nav>.nav-item+.nav-item,
.app-menu .simplebar-content>.nav-item+.nav-item {
    margin-top: 0.125rem;
}

.navbar-menu .navbar-nav .simplebar-content .nav-sm {
    padding-left: 0;
}

.app-menu.navbar-menu .navbar-nav .nav-link,
.app-menu.navbar-menu .navbar-nav .menu-link {
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-sizing: border-box;
    color: var(--sidebar-muted-text) !important;
    display: flex;
    align-items: center;
    font-family: var(--font-data) !important;
    font-size: 0.875rem !important;
    font-weight: 400;
    height: 2.25rem;
    line-height: 1.25rem;
    min-height: 2.25rem;
    padding: 0 0.5rem !important;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.app-menu.navbar-menu .navbar-nav .menu-link {
    gap: 0.5rem;
    color: var(--sidebar-text) !important;
    margin: 0;
}

.app-menu.navbar-menu .navbar-nav .menu-link>i:not(.menu-caret) {
    color: var(--sidebar-icon);
    flex: 0 0 1rem;
    font-size: 1rem;
    margin-right: 0 !important;
    min-width: 1rem;
    text-align: center;
}

.app-menu.navbar-menu .navbar-nav .menu-link::after {
    display: none !important;
}

.app-menu.navbar-menu .navbar-nav .menu-caret {
    color: var(--sidebar-icon);
    flex: 0 0 auto;
    font-size: 1rem;
    margin-left: auto;
    margin-right: 0 !important;
    min-width: 1rem;
    transition: transform 0.16s ease, color 0.16s ease;
}

.app-menu.navbar-menu .navbar-nav .menu-link[aria-expanded="true"] .menu-caret {
    color: var(--sidebar-strong-text);
    transform: rotate(90deg);
}

.app-menu.navbar-menu .navbar-nav .menu-link:hover,
.app-menu.navbar-menu .navbar-nav .nav-link:hover {
    background: var(--sidebar-item-hover);
    color: var(--sidebar-strong-text) !important;
}

.app-menu.navbar-menu .navbar-nav .menu-link[aria-expanded="true"] {
    background: transparent;
    border-color: transparent;
    color: var(--sidebar-strong-text) !important;
}

.app-menu.navbar-menu .navbar-nav .menu-link.active {
    background: var(--sidebar-item-active);
    border-color: transparent;
    color: var(--sidebar-active-text) !important;
    font-weight: 400;
}

.app-menu.navbar-menu .navbar-nav .menu-link.active[aria-expanded="true"] {
    background: transparent;
    color: var(--sidebar-strong-text) !important;
    font-weight: 400;
}

.app-menu.navbar-menu .navbar-nav .menu-link.active i {
    color: var(--sidebar-active-text);
}

.app-menu.navbar-menu .navbar-nav .menu-link[aria-expanded="true"] i {
    color: var(--sidebar-strong-text);
}

.app-menu .menu-dropdown {
    background: transparent !important;
    margin: 0.125rem 0 0.375rem;
    padding: 0;
    border-left: 0;
    position: relative;
}

.app-menu.navbar-menu .navbar-nav .menu-dropdown .nav {
    /* border-left: 1px solid var(--sidebar-line); */
    gap: 0.125rem;
    margin-left: 1rem;
    padding-left: 0.25rem;
}

.app-menu.navbar-menu .navbar-nav .menu-dropdown .nav-link {
    position: relative;
    height: 2.25rem;
    min-height: 2.25rem;
    margin: 0;
    padding: 0 0.5rem !important;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--sidebar-muted-text) !important;
    font-family: var(--font-data) !important;
    font-size: 0.875rem !important;
    font-weight: 400;
    line-height: 1.25rem;
}

.app-menu.navbar-menu .navbar-nav .menu-dropdown .nav-link::before {
    display: none;
}

.app-menu.navbar-menu .navbar-nav .menu-dropdown .nav-link.active {
    background: #95defe80;
    /* var(--sidebar-item-active); */
    border-color: transparent;
    /* color: var(--sidebar-active-text) !important; */
    color: var(--sidebar-strong-text) !important;
    font-weight: 400;
    margin-left: -0.5rem;
    padding-left: 1rem !important;
    width: calc(100% + 0.75rem);
    z-index: 1;
}

.app-menu.navbar-menu .navbar-nav .menu-dropdown .nav-link.active::before {
    display: none;
}

.app-menu.navbar-menu .navbar-nav .menu-dropdown .nav-link.active:hover {
    background: var(--sidebar-item-active);
}

.app-menu.navbar-menu .navbar-nav .menu-dropdown .nav-link:hover {
    /* background: var(--sidebar-item-hover);
    color: var(--sidebar-strong-text) !important; */
    background: #95defe80;
    /* var(--sidebar-item-active); */
    border-color: transparent;
    /* color: var(--sidebar-active-text) !important; */
    color: var(--sidebar-strong-text) !important;
    font-weight: 400;
    margin-left: -0.5rem;
    padding-left: 1rem !important;
    width: calc(100% + 0.75rem);
    z-index: 1;
}

.app-menu .sidebar-background {
    display: none;
}

[data-sidebar-size="sm"] .app-menu .menu-caret,
[data-sidebar-size="sm-hover"] .app-menu .menu-caret {
    display: none;
}

[data-sidebar-size="sm"] .app-menu .menu-title,
[data-sidebar-size="sm-hover"] .app-menu .menu-title {
    display: none;
}

.page-content {
    padding: calc(51px + 1.5rem) calc(1.5rem * .5) 60px calc(1.5rem * .5) !important;
}

/* DataTables dom-based footer row */
.ui-table-wrap .dataTables_wrapper .row.p-2 {
    border-top: 1px solid var(--border);
    margin: 0 !important;
    padding: 0.625rem 0.75rem !important;
    align-items: center;
}

/* Length / entries-per-page */
.ui-table-wrap .dataTables_length {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
}

.ui-table-wrap .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.ui-table-wrap .dataTables_length select {
    appearance: auto;
    display: inline-flex;
    height: 2rem;
    border: 1px solid var(--input) !important;
    border-radius: calc(var(--radius) - 0.125rem);
    background: var(--card) !important;
    color: var(--vz-body-color);
    font-size: 0.8125rem;
    padding: 0 0.5rem;
    box-shadow: none !important;
    outline: none;
    cursor: pointer;
}

.ui-table-wrap .dataTables_length select:focus {
    border-color: var(--ring) !important;
    box-shadow: 0 0 0 2px rgba(0, 36, 74, 0.12) !important;
}

/* Info text */
.ui-table-wrap .dataTables_info {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    padding: 0 !important;
}

/* Pagination */
.ui-table-wrap .dataTables_paginate {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ui-table-wrap .dataTables_paginate .paginate_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    border: 1px solid var(--border) !important;
    border-radius: calc(var(--radius) - 0.125rem) !important;
    background: var(--card) !important;
    box-shadow: none !important;
    color: var(--vz-body-color) !important;
    font-size: 0.8125rem;
    font-weight: 400;
    padding: 0 0.625rem !important;
    cursor: pointer;
    text-decoration: none !important;
    line-height: 1;
}

.ui-table-wrap .dataTables_paginate .paginate_button:hover {
    background: var(--muted) !important;
    color: var(--vz-body-color) !important;
    border-color: var(--border) !important;
}

.ui-table-wrap .dataTables_paginate .paginate_button.current,
.ui-table-wrap .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    font-weight: 500;
}

.ui-table-wrap .dataTables_paginate .paginate_button.disabled,
.ui-table-wrap .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--card) !important;
    color: var(--muted-foreground) !important;
}

/* DataTables v2 layout row wrappers (layout API) */
.ui-table-wrap div.dt-layout-row {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.75rem;
    gap: 1rem;
    border-top: 1px solid var(--border);
}

.ui-table-wrap div.dt-layout-row:first-child {
    border-top: 0;
    border-bottom: 1px solid var(--border);
}

.ui-table-wrap div.dt-layout-start {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
}

.ui-table-wrap div.dt-layout-end {
    margin-left: auto;
}

/* DataTables v2 paging buttons */
.ui-table-wrap div.dt-paging nav {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ui-table-wrap div.dt-paging button.dt-paging-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    border: 1px solid var(--border) !important;
    border-radius: calc(var(--radius) - 0.125rem) !important;
    background: var(--card) !important;
    box-shadow: none !important;
    color: var(--vz-body-color) !important;
    font-size: 0.8125rem;
    font-weight: 400;
    padding: 0 0.5rem !important;
    cursor: pointer;
}

.ui-table-wrap div.dt-paging button.dt-paging-button:hover:not(:disabled) {
    background: var(--muted) !important;
}

.ui-table-wrap div.dt-paging button.dt-paging-button.current {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    font-weight: 500;
}

.ui-table-wrap div.dt-paging button.dt-paging-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


.menu-dropdown ul::before {
    /* background-color: oklch(0.92 0.004 286.32);
    border-bottom-color: oklch(0.92 0.004 286.32);
    border-bottom-style: solid;
    border-bottom-width: 0px;
    border-image-outset: 0;
    border-image-repeat: stretch;
    border-image-slice: 100%;
    border-image-source: none;
    border-image-width: 1;
    border-left-color: oklch(0.92 0.004 286.32);
    border-left-style: solid;
    border-left-width: 0px;
    border-right-color: oklch(0.92 0.004 286.32);
    border-right-style: solid;
    border-right-width: 0px;
    border-top-color: oklch(0.92 0.004 286.32);
    border-top-style: solid;
    border-top-width: 0px; */
    background-color: var(--sidebar-line);
    box-sizing: border-box;
    content: "";
    display: block;
    height: 100%;
    inset-block-end: 5px;
    inset-block-start: 0;
    inset-inline-start: calc(var(--spacing) * 4.5);
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0px;
    position: absolute;
    width: 1px;
}

.menu-dropdown ul .nav-item {
    position: relative;
}

.menu-dropdown ul .nav-item:has(a.active)::before {
    background-color: var(--sidebar-strong-text) !important;
    box-sizing: border-box;
    content: "";
    display: block;
    height: 60%;
    inset-block-end: 0;
    inset-block-start: 20%;
    inset-inline-start: 0;
    margin-bottom: 0px;
    margin-left: -2px;
    margin-right: 0px;
    margin-top: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0px;
    position: absolute;
    width: 1px;
}
#bulk-remove-btn {
    display: none;
}

.flatpickr-input[readonly] {
    opacity: 1;
}

/* ───────────────────────────────────────────────────────── */
/* OPERATIONS OVERVIEW DASHBOARD STYLING                      */
/* ───────────────────────────────────────────────────────── */

.dashboard-container {
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 0.75rem;
}

.dashboard-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-header-desc {
    color: #64748b;
    font-size: 0.95rem;
}

/* Metric Cards */
.ops-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.ops-metric-card {
    border-radius: 1rem;
    padding: 1.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    /* min-height: 130px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ops-metric-card .bg-icon {
    position: absolute;
    right: 0.5rem;
    bottom: -0.5rem;
    font-size: 5rem;
    opacity: 0.12;
    pointer-events: none;
    line-height: 1;
}

.ops-metric-card.assigned {
    background: linear-gradient(135deg, #0b57d0, #1b66e3);
}

.ops-metric-card.working {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
}

.ops-metric-card.review {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.ops-metric-card.rejected {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.ops-metric-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.ops-metric-value {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0.25rem 0;
    line-height: 1;
}

.ops-metric-footer {
    display: flex;
    align-items: center;
}

.ops-metric-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.725rem;
    font-weight: 500;
}

/* Circular Chart */
.ops-donut-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100px;
    height: 100px;
}

.ops-donut-chart {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(#0b57d0 0% 70%, #f1f5f9 70% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ops-donut-chart-inner {
    width: 72px;
    height: 72px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

/* Activity Feed Timeline */
.ops-activity-timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e2e8f0;
    margin-left: 0.75rem;
}

.ops-activity-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.ops-activity-item:last-child {
    margin-bottom: 0;
}

.ops-activity-badge {
    position: absolute;
    left: -2.625rem;
    top: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
    font-size: 0.7rem;
}

.ops-activity-badge.success {
    background-color: #ecfdf5;
    border-color: #10b981;
    color: #10b981;
}

.ops-activity-badge.info {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

.ops-activity-badge.danger {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.ops-activity-time {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

/* Deadlines & Active Tasks List */
.dashboard-deadlines-scroll {
    max-height: 22rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.5rem;
    scrollbar-gutter: stable;
}

.dashboard-actions-scroll {
    max-height: 24rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.leader-summary-card {
    min-height: 132px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.04);
}

.leader-period-select-wrap {
    position: relative;
    min-width: 160px;
}

.leader-period-select-wrap > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    color: #0b57d0;
    font-size: 1.1rem;
    pointer-events: none;
}

.leader-period-select-wrap .form-select {
    min-height: 44px;
    padding-left: 2.5rem;
    border-color: #cbd5e1;
    border-radius: 0.65rem;
    color: #0f172a;
    font-weight: 600;
    background-color: #fff;
}

#leader-custom-range .form-control {
    width: 150px;
    min-height: 44px;
}

.leader-summary-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.leader-dashboard-scroll {
    max-height: 330px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.leader-dashboard .table > :not(caption) > * > * {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.leader-member-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf2ff;
    color: #0b57d0;
    font-weight: 700;
}

.staff-summary-card {
    min-height: 128px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 0.9rem;
    box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.04);
    overflow: hidden;
    position: relative;
}

.staff-summary-row > div:nth-child(1) .staff-summary-card {
    border-top: 3px solid #2563eb;
    background: linear-gradient(135deg, #ffffff 45%, #eff6ff);
}

.staff-summary-row > div:nth-child(2) .staff-summary-card {
    border-top: 3px solid #f59e0b;
    background: linear-gradient(135deg, #ffffff 45%, #fff7ed);
}

.staff-summary-row > div:nth-child(3) .staff-summary-card {
    border-top: 3px solid #ef4444;
    background: linear-gradient(135deg, #ffffff 45%, #fef2f2);
}

.staff-summary-row > div:nth-child(4) .staff-summary-card {
    border-top: 3px solid #8b5cf6;
    background: linear-gradient(135deg, #ffffff 45%, #f5f3ff);
}

.staff-summary-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.staff-summary-arrow {
    color: #0f326f;
    font-size: 1.4rem;
    text-decoration: none;
}

.staff-dashboard-scroll {
    max-height: 310px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.staff-panel {
    --staff-accent: #2563eb;
    --staff-soft: #eff6ff;
    --staff-stripe: rgba(37, 99, 235, 0.035);
    border-top: 3px solid var(--staff-accent) !important;
    background: linear-gradient(180deg, var(--staff-soft) 0, #fff 3.6rem);
    overflow: hidden;
}

.staff-panel-primary {
    --staff-accent: #2563eb;
    --staff-soft: #eff6ff;
    --staff-stripe: rgba(37, 99, 235, 0.04);
}

.staff-panel-violet {
    --staff-accent: #7c3aed;
    --staff-soft: #f5f3ff;
    --staff-stripe: rgba(124, 58, 237, 0.04);
}

.staff-panel-warning {
    --staff-accent: #ea580c;
    --staff-soft: #fff7ed;
    --staff-stripe: rgba(234, 88, 12, 0.04);
}

.staff-panel-info {
    --staff-accent: #0891b2;
    --staff-soft: #ecfeff;
    --staff-stripe: rgba(8, 145, 178, 0.04);
}

.staff-panel-danger {
    --staff-accent: #dc2626;
    --staff-soft: #fef2f2;
    --staff-stripe: rgba(220, 38, 38, 0.04);
}

.staff-panel-success {
    --staff-accent: #16a34a;
    --staff-soft: #f0fdf4;
    --staff-stripe: rgba(22, 163, 74, 0.04);
}

.staff-panel h5,
.staff-panel > .d-flex > h5 {
    color: var(--staff-accent);
}

.staff-panel .table {
    --bs-table-bg: transparent;
}

.staff-panel .table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.staff-panel .table thead th {
    color: var(--staff-accent);
    background: var(--staff-soft);
    border-bottom-color: color-mix(in srgb, var(--staff-accent) 20%, transparent);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.staff-panel .table tbody tr:nth-child(even) > * {
    background: var(--staff-stripe);
}

.staff-panel .table tbody tr {
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.staff-panel .table tbody tr:hover > * {
    background: var(--staff-soft);
}

.staff-panel .table tbody a:not(.btn) {
    color: #172554 !important;
}

.staff-panel .btn-outline-primary {
    border-color: var(--staff-accent);
    color: var(--staff-accent);
}

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

.staff-dashboard .table > :not(caption) > * > * {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    white-space: nowrap;
}

.staff-calendar-list {
    position: relative;
    padding-left: 1.2rem;
}

.staff-calendar-item {
    position: relative;
    padding: 0 0 1rem 1rem;
    border-left: 2px solid #0d6efd;
}

.staff-calendar-item:last-child {
    padding-bottom: 0;
}

.staff-calendar-dot {
    position: absolute;
    left: -0.42rem;
    top: 0.2rem;
    width: 0.72rem;
    height: 0.72rem;
    border: 2px solid #0d6efd;
    border-radius: 50%;
    background: #fff;
}

.staff-action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #e9eef5;
}

.staff-action-item:last-child {
    border-bottom: 0;
}

#staff-custom-range .form-control {
    width: 150px;
    min-height: 44px;
}

@media (min-width: 1200px) and (min-height: 760px) {
    .staff-dashboard {
        height: calc(100vh - 8rem);
        min-height: 650px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .staff-dashboard > .d-flex:first-child {
        flex: 0 0 auto;
        margin-bottom: 0.75rem !important;
    }

    .staff-dashboard .dashboard-header-title {
        font-size: 1.5rem;
        margin-bottom: 0.35rem !important;
    }

    .staff-dashboard .leader-period-select-wrap .form-select {
        min-height: 38px;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .staff-summary-row {
        flex: 0 0 96px;
    }

    .staff-summary-card {
        min-height: 96px;
        padding: 0.75rem 0.9rem;
    }

    .staff-summary-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 1.25rem;
    }

    .staff-summary-card h2 {
        font-size: 1.55rem;
        line-height: 1;
    }

    .staff-main-row {
        flex: 1 1 auto;
        min-height: 235px;
        overflow: hidden;
    }

    .staff-bottom-row {
        flex: 0 0 208px;
        min-height: 0;
        overflow: hidden;
    }

    .staff-main-row > [class*="col-"],
    .staff-bottom-row > [class*="col-"] {
        height: 100%;
    }

    .staff-dashboard .staff-panel {
        padding: 0.75rem !important;
    }

    .staff-dashboard .staff-panel > .d-flex {
        margin-bottom: 0.55rem !important;
    }

    .staff-dashboard .staff-panel h5 {
        font-size: 0.96rem;
    }

    .staff-dashboard .table {
        font-size: 0.76rem;
    }

    .staff-dashboard .table > :not(caption) > * > * {
        padding: 0.43rem 0.42rem;
    }

    .staff-main-row .staff-dashboard-scroll {
        max-height: calc(100% - 2rem);
    }

    .staff-bottom-row .staff-dashboard-scroll {
        max-height: 155px;
    }

    .staff-action-item {
        padding: 0.55rem 0;
        font-size: 0.78rem;
    }

    .staff-calendar-item {
        padding-bottom: 0.65rem;
        font-size: 0.78rem;
    }

    .staff-panel-success h2 {
        font-size: 1.55rem;
    }

    .staff-panel-success .row {
        margin-top: 0 !important;
    }

    .staff-panel-success .text-muted.small.mt-3 {
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 767.98px) {
    .leader-dashboard .btn {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    #leader-custom-range {
        width: 100%;
        flex-wrap: wrap;
    }

    #leader-custom-range .form-control {
        width: calc(50% - 1.5rem);
    }

    #staff-custom-range {
        width: 100%;
        flex-wrap: wrap;
    }

    #staff-custom-range .form-control {
        width: calc(50% - 1.5rem);
    }
}

.deadline-icon-box {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 1.15rem;
}

.task-progress-card {
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    padding: 1rem;
    background-color: #ffffff;
}

.choices__list--dropdown {
    z-index: 1002;
    width: max-content;
}

.search-box input {
    min-height: 39px;
}

.d-none {
    display: none;
}

.breadcrumb-blk {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.breadcrumb-blk__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #6c757d;
}

.breadcrumb-blk__breadcrumb > :last-child {
    color: var(--vz-heading-color);
    font-weight: 500;
}

.breadcrumb-blk__breadcrumb .item-status-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #e9f0fe;
    color: #3b5bdb;
    border: 1px solid #c5d3fa;
}

.breadcrumb-blk__breadcrumb .item-bc-sep {
    color: #6c757d;
}

.breadcrumb-blk__breadcrumb .item-bc-sep:hover {
    color: var(--vz-heading-color);
}

.breadcrumb-blk__header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.breadcrumb-blk__header-row .item-detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vz-heading-color);
    margin: 0;
    line-height: 1.2;
}

.breadcrumb-blk__header-row .item-detail-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.link {
    color: var(--vz-heading-color);
}

.link:hover {
    color: var(--vz-body-color);
}

.choices[data-type*=select-multiple] .choices__input {
    width: auto!important;
}
