/* Base helpers */
.ck-editor__editable,
textarea {
    min-height: 150px;
}

.proposal-rich-content {
    overflow-wrap: anywhere;
}

.proposal-rich-content table {
    border-collapse: collapse;
    margin: 1rem 0;
    width: 100%;
}

.proposal-rich-content th,
.proposal-rich-content td {
    border: 1px solid #d1d5db;
    padding: 8px;
    vertical-align: top;
}

.proposal-rich-content hr {
    border: 0;
    border-top: 1px solid #d1d5db;
    margin: 1rem 0;
}

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

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

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

.btn-info,
.badge-info {
    color: white;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

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

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

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

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

.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.c-sidebar-brand .c-sidebar-brand-full:hover {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
}

.thin-line {
    border-right: 1px solid black;
}

h2 {
    text-align: center;
}

/* Global command palette */
.command-palette {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
}

.command-palette.is-open {
    display: block;
}

.command-palette__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(3px);
}

.command-palette__panel {
    position: relative;
    width: min(680px, calc(100vw - 28px));
    margin: 8vh auto 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: 14px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, .24);
}

.command-palette__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fbff;
}

.command-palette__title {
    margin: 0;
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
    text-align: left;
}

.command-palette__close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
}

.command-palette__close:hover,
.command-palette__close:focus {
    background: rgba(15, 23, 42, .08);
}

.command-palette__search-wrap {
    position: relative;
    border-bottom: 1px solid #e5e7eb;
}

.command-palette__search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 13px;
}

.command-palette__input {
    width: 100%;
    padding: 12px 12px 12px 34px;
    border: 0;
    outline: 0;
    color: #111827;
    font-size: 14px;
}

.command-palette__input:focus {
    box-shadow: inset 0 -2px #38bdf8;
}

.command-palette__list {
    max-height: 56vh;
    overflow-y: auto;
    padding: 6px;
}

.command-palette__item {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
}

.command-palette__item-main {
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
}

.command-palette__item-meta {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-palette__item:hover,
.command-palette__item.is-active {
    background: rgba(59, 130, 246, .12);
}

.command-palette__empty {
    padding: 12px;
    color: #64748b;
    font-size: 13px;
}

body.command-palette-open {
    overflow: hidden;
}

.command-palette-trigger {
    align-items: center;
    margin-left: 1rem;
    border-radius: 999px;
}

.command-palette-shortcut {
    color: #475569;
    font-size: 11px;
}

.sidebar-nav-section {
    margin: 0.15rem 0 0.4rem;
}

.sidebar-nav-section-label {
    margin: 0.7rem 1rem 0.35rem;
    color: rgba(203, 213, 225, 0.7);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-nav-section-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ------------------------------------------------------------------
   New admin theme: rounded buttons, gradients, glass cards
------------------------------------------------------------------- */
:root {
    --bg-1: #0f172a;
    --bg-2: #0b1020;
    --accent-1: #a855f7;
    --accent-2: #ec4899;
    --accent-3: #22d3ee;
    --muted: #94a3b8;
    --text: #e2e8f0;
    --card: rgba(15, 23, 42, 0.82);
    --border: rgba(148, 163, 184, 0.35);
}

body,
.c-app {
    background: radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.08), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.08), transparent 32%),
        linear-gradient(135deg, #0b1224, #0b1020 35%, #0a0f1c);
    color: var(--text);
}

.c-wrapper {
    background: transparent;
}

.c-header {
    background: rgba(11, 15, 27, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    border-radius: 22px;
    margin: 18px 18px 0;
    padding: 10px 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.c-header .c-header-nav-link {
    color: var(--text);
}

.c-main {
    padding: 22px 18px 34px;
}

.container-fluid {
    padding-left: 4px;
    padding-right: 4px;
}

.c-sidebar {
    background: linear-gradient(180deg, rgba(16, 24, 40, 0.95), rgba(11, 14, 26, 0.95));
    border-right: 1px solid var(--border);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}

.c-sidebar-brand {
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #f8fafc;
}

.c-sidebar-brand .c-sidebar-brand-full.h4 {
    margin: 0;
}

.c-sidebar-nav-item,
.c-sidebar-nav-dropdown {
    border-radius: 14px;
    margin: 2px 8px;
}

.c-sidebar-nav-link,
.c-sidebar-nav-dropdown-toggle {
    border-radius: 14px;
    padding: 0.55rem 0.85rem;
    color: #cbd5e1;
    transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
}

.c-sidebar-nav-link:hover,
.c-sidebar-nav-dropdown-toggle:hover,
.c-sidebar-nav-link.c-active {
    color: #f8fafc !important;
    background: linear-gradient(135deg, #a855f7, #ec4899) !important;
    transform: translateX(2px);
}

.c-sidebar-nav-dropdown.c-show > .c-sidebar-nav-dropdown-toggle {
    background: linear-gradient(135deg, #a855f7, #22d3ee) !important;
    color: #fff !important;
}

.c-sidebar-nav-icon {
    color: #c4c9d4;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.02);
    overflow: hidden;
    color: var(--text);
}

.card-header {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.12));
    border-bottom: 1px solid var(--border);
    font-weight: 700;
}

.card-body {
    color: var(--text);
}

.table thead th {
    border-bottom-color: var(--border);
    color: #cbd5e1;
}

.table tbody td,
.table tbody th {
    color: #f8fafc;
}

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

.table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.04);
}

.table-hover tbody tr:hover {
    background: rgba(168, 85, 247, 0.08);
}

.alert {
    border-radius: 16px;
}

/* Buttons */
.btn,
.btn-group .btn,
.dt-buttons .btn {
    border-radius: 999px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 10px 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Standardized compact action buttons (index/list action columns) */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 8px;
}

.btn-xs.btn-action {
    padding: 0.25rem 0.45rem;
    line-height: 1;
}

.btn-action .fa,
.btn-action .fas,
.btn-action .far {
    font-size: 16px;
    line-height: 1;
}

.btn-action.btn-icon {
    width: 30px;
    height: 30px;
    padding: 0;
}

.btn-action-view {
    background-color: transparent;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-action-view:hover {
    background-color: transparent;
    border-color: #94a3b8;
    color: #0f172a;
}

.btn-action-edit {
    background-color: transparent;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-action-edit:hover {
    background-color: transparent;
    border-color: #94a3b8;
    color: #0f172a;
}

.btn-action-delete {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

.btn-action-delete:hover {
    background-color: #c82333;
    border-color: #c82333;
    color: #ffffff;
}

.btn-action-restore {
    background-color: #e0e7ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.btn-action-restore:hover {
    background-color: #c7d2fe;
    border-color: #a5b4fc;
    color: #312e81;
}

/* Backward compatibility for existing icon-only action buttons */
.btn-icon.btn-primary {
    background-color: transparent;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-icon.btn-primary:hover {
    background-color: transparent;
    border-color: #94a3b8;
    color: #0f172a;
}

.btn-icon.btn-secondary,
.btn-icon.btn-info {
    background-color: transparent;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-icon.btn-secondary:hover,
.btn-icon.btn-info:hover {
    background-color: transparent;
    border-color: #94a3b8;
    color: #0f172a;
}

.btn-icon.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

.btn-icon.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    color: #ffffff;
}

.btn-xs.btn-icon {
    width: 30px;
    height: 30px;
}

.btn-icon .fa,
.btn-icon .fas,
.btn-icon .far {
    font-size: 16px;
    line-height: 1;
}

/* Force final action-icon appearance over Bootstrap/CoreUI defaults */
.btn.btn-action.btn-action-view,
.btn.btn-icon.btn-primary {
    background: transparent !important;
    background-color: transparent !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

.btn.btn-action.btn-action-view:hover,
.btn.btn-action.btn-action-view:focus,
.btn.btn-action.btn-action-view:active,
.btn.btn-icon.btn-primary:hover,
.btn.btn-icon.btn-primary:focus,
.btn.btn-icon.btn-primary:active {
    background: transparent !important;
    background-color: transparent !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

.btn.btn-action.btn-action-edit,
.btn.btn-icon.btn-secondary,
.btn.btn-icon.btn-info {
    background: transparent !important;
    background-color: transparent !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

.btn.btn-action.btn-action-edit:hover,
.btn.btn-action.btn-action-edit:focus,
.btn.btn-action.btn-action-edit:active,
.btn.btn-icon.btn-secondary:hover,
.btn.btn-icon.btn-secondary:focus,
.btn.btn-icon.btn-secondary:active,
.btn.btn-icon.btn-info:hover,
.btn.btn-icon.btn-info:focus,
.btn.btn-icon.btn-info:active {
    background: transparent !important;
    background-color: transparent !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

.btn.btn-action.btn-action-delete,
.btn.btn-icon.btn-danger {
    background: transparent !important;
    background-color: transparent !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

.btn.btn-action.btn-action-delete:hover,
.btn.btn-icon.btn-danger:hover,
.btn.btn-action.btn-action-delete:focus,
.btn.btn-action.btn-action-delete:active,
.btn.btn-icon.btn-danger:focus,
.btn.btn-icon.btn-danger:active {
    background: #c82333 !important;
    background-color: #c82333 !important;
    border-color: #c82333 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn.btn-action.btn-action-view:hover,
.btn.btn-action.btn-action-view:focus,
.btn.btn-action.btn-action-view:active,
.btn.btn-icon.btn-primary:hover,
.btn.btn-icon.btn-primary:focus,
.btn.btn-icon.btn-primary:active {
    background: #17a2b8 !important;
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn.btn-action.btn-action-edit:hover,
.btn.btn-action.btn-action-edit:focus,
.btn.btn-action.btn-action-edit:active,
.btn.btn-icon.btn-secondary:hover,
.btn.btn-icon.btn-secondary:focus,
.btn.btn-icon.btn-secondary:active,
.btn.btn-icon.btn-info:hover,
.btn.btn-icon.btn-info:focus,
.btn.btn-icon.btn-info:active {
    background: #f0ad4e !important;
    background-color: #f0ad4e !important;
    border-color: #f0ad4e !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn-primary,
.btn-info,
.btn-success {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #0b1020;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #0b1020;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-secondary,
.btn-default {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #e5e7eb;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 11px;
}

.btn-group-xs > .btn {
    padding: 6px 12px;
    font-size: 11px;
}

.badge {
    border-radius: 999px;
}

/* Pills and info chips */
.stat-chip {
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--muted);
}

/* Dashboard helpers */
.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(120deg, rgba(168, 85, 247, 0.16), rgba(34, 211, 238, 0.12));
    border: 1px solid var(--border);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
    margin-bottom: 18px;
}

.dashboard-hero h1 {
    margin: 0;
    font-weight: 800;
    color: #f8fafc;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.metric-card {
    background: linear-gradient(145deg, rgba(9, 12, 24, 0.9), rgba(16, 24, 40, 0.88));
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 14px 16px;
    color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.2), transparent 40%);
    opacity: 0.35;
    pointer-events: none;
}

.metric-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #f8fafc;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.glass-panel {
    background: rgba(10, 16, 30, 0.82);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.table thead th {
    background: rgba(255, 255, 255, 0.02);
}

.table-wrapper {
    background: rgba(6, 10, 20, 0.85);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(12, 18, 32, 0.95);
}

.top-greeting {
    padding: 8px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(168, 85, 247, 0.14));
    border: 1px solid var(--border);
    color: #f8fafc;
    font-weight: 700;
}

.c-header-toggler i {
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .c-header {
        margin: 12px;
    }

    .c-sidebar-nav-item,
    .c-sidebar-nav-dropdown {
        margin: 2px 4px;
    }
}

.sidebar-profile {
    margin: 12px 14px;
    padding: 12px 12px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: #e2e8f0;
}

.sidebar-profile .name {
    font-weight: 700;
    color: #f8fafc;
}

.sidebar-profile .role {
    font-size: 12px;
    color: var(--muted);
}

/* ------------------------------------------------------------------
   Light admin overrides: softer background, standard buttons
------------------------------------------------------------------- */
:root {
    --bg-1: #f5f7fb;
    --bg-2: #eef2f7;
    --accent-1: #3b82f6;
    --accent-2: #0ea5e9;
    --accent-3: #22c55e;
    --muted: #64748b;
    --text: #1f2937;
    --card: #ffffff;
    --border: #e5e7eb;
}

body,
.c-app {
    background: radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.08), transparent 32%),
        radial-gradient(circle at 75% 10%, rgba(59, 130, 246, 0.07), transparent 30%),
        linear-gradient(180deg, var(--bg-1), var(--bg-2));
    color: var(--text);
}

.c-wrapper {
    background: transparent;
}

.c-header {
    background: #ffffff;
    backdrop-filter: none;
    border-bottom: 1px solid var(--border);
    border-radius: 12px;
    margin: 18px 18px 0;
    padding: 10px 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.c-header .c-header-nav-link {
    color: #334155;
}

.c-main {
    padding-bottom: 22px;
}

.top-greeting {
    background: #e2e8f0;
    border: 1px solid var(--border);
    color: #0f172a;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    color: #1f2937;
}

.card-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    color: #0f172a;
}

.card-body {
    color: #1f2937;
}

.table thead th {
    background: #f8fafc;
    border-bottom-color: var(--border);
    color: #334155;
}

.table tbody td,
.table tbody th {
    color: #1f2937;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8fafc;
}

.table-hover tbody tr:hover {
    background: #e2e8f0;
}

.alert {
    color: inherit;
}

/* Laravel pagination (blade) normalization */
.pagination .page-link {
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 12px;
}

.pagination .page-item.active .page-link {
    color: #ffffff;
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link:focus {
    box-shadow: none;
}

.btn,
.btn-group .btn,
.dt-buttons .btn {
    border-radius: .25rem;
    border: 1px solid transparent;
    font-weight: 400;
    padding: .375rem .75rem;
    box-shadow: none;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn:hover {
    transform: none;
}

.btn:active {
    transform: none;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

.btn-outline-primary {
    background-color: #ffffff;
    border-color: #0056b3;
    color: #0056b3;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #ffffff;
}

.btn-outline-warning {
    background-color: #ffffff;
    border-color: #8a5a00;
    color: #8a5a00;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active {
    background-color: #8a5a00;
    border-color: #8a5a00;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #ffffff;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-secondary,
.btn-default {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover,
.btn-default:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-ghost {
    background-color: transparent;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.btn-ghost:hover {
    background-color: #e2e8f0;
}

.stat-chip {
    background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
    border: 1px solid #f5d0fe;
    color: #4a5568;
}

.dashboard-hero {
    background: linear-gradient(120deg, #e0f2fe, #ede9fe);
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

.dashboard-hero h1 {
    background: linear-gradient(120deg, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.metric-card {
    background: linear-gradient(145deg, #fdf2f8, #ede9fe);
    border: 1px solid #f5d0fe;
    color: #0f172a;
    box-shadow: 0 10px 26px rgba(168, 85, 247, 0.12);
}

.metric-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.16), transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(168, 85, 247, 0.14), transparent 38%);
    opacity: 1;
    pointer-events: none;
}

.metric-label {
    color: #64748b;
}

.metric-value {
    color: #0f172a;
}

.glass-panel {
    background: linear-gradient(145deg, #f8fafc, #fdf2f8);
    border: 1px solid #f5d0fe;
    box-shadow: 0 8px 22px rgba(168, 85, 247, 0.1);
}

.table-wrapper {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
}

.sticky-header {
    background: #f8fafc;
}

.c-header-toggler i {
    color: #0f172a;
}

.sidebar-profile {
    background: #f8fafc;
    border: 1px solid var(--border);
    color: #1f2937;
}

.sidebar-profile .name {
    color: #0f172a;
}

.sidebar-profile .role {
    color: #64748b;
}

/* Keep brand visible and hide search in collapsed sidebar */
.c-sidebar .c-sidebar-brand-minimized {
    display: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #f8fafc;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.c-sidebar.c-sidebar-minimized .c-sidebar-brand-full,
.c-sidebar.c-sidebar-narrow .c-sidebar-brand-full,
.c-sidebar-minimized .c-sidebar .c-sidebar-brand-full,
.c-sidebar-narrow .c-sidebar .c-sidebar-brand-full {
    display: none;
}

.c-sidebar.c-sidebar-minimized .c-sidebar-brand-minimized,
.c-sidebar.c-sidebar-narrow .c-sidebar-brand-minimized,
.c-sidebar-minimized .c-sidebar .c-sidebar-brand-minimized,
.c-sidebar-narrow .c-sidebar .c-sidebar-brand-minimized {
    display: flex;
}

.c-sidebar.c-sidebar-minimized .sidebar-search,
.c-sidebar.c-sidebar-narrow .sidebar-search,
.c-sidebar-minimized .c-sidebar .sidebar-search,
.c-sidebar-narrow .c-sidebar .sidebar-search {
    display: none;
}

.c-sidebar.c-sidebar-minimized .sidebar-nav-section-label,
.c-sidebar.c-sidebar-narrow .sidebar-nav-section-label,
.c-sidebar-minimized .c-sidebar .sidebar-nav-section-label,
.c-sidebar-narrow .c-sidebar .sidebar-nav-section-label {
    display: none !important;
}

/* Structural admin shell and reusable page layout helpers */
.admin-sidebar {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.c-sidebar.admin-sidebar {
    width: 300px;
}

@media (min-width: 992px) {
    .c-sidebar.admin-sidebar:not(.c-sidebar-minimized) ~ .c-wrapper {
        margin-left: 300px;
    }
}

.admin-sidebar-brand {
    min-height: 96px;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 26px 28px 18px;
}

.admin-sidebar-brand .c-sidebar-brand-full {
    white-space: normal;
    line-height: 1.22;
    text-align: left;
}

.admin-sidebar-search {
    display: flex;
    align-items: center;
    position: relative;
    margin: 10px 20px 22px;
    padding: 0;
}

.admin-sidebar-search i {
    position: absolute;
    left: 16px;
    z-index: 1;
    margin: 0;
    pointer-events: none;
}

.admin-sidebar-search input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-left: 44px;
    box-sizing: border-box;
}

.admin-sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 14px 14px;
}

.admin-sidebar-submenu {
    margin-bottom: 8px;
}

.admin-sidebar-submenu .c-sidebar-nav-link {
    padding-left: 2rem;
}

.admin-sidebar .c-sidebar-nav-item,
.admin-sidebar .c-sidebar-nav-dropdown {
    margin-bottom: 8px;
}

.admin-sidebar .c-sidebar-nav-link,
.admin-sidebar .c-sidebar-nav-dropdown-toggle {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    padding: 0 16px 0 20px;
    white-space: nowrap;
}

.admin-sidebar .c-sidebar-nav-icon {
    flex: 0 0 28px;
    width: 28px;
    min-width: 28px;
    margin: 0;
    text-align: center;
    font-size: 1.15rem;
}

.admin-sidebar-upgrade {
    flex: 0 0 auto;
    padding: 12px 20px 28px;
}

.admin-sidebar-upgrade .btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    overflow: hidden;
    white-space: nowrap;
    color: #cbd5e1;
}

.admin-sidebar-upgrade .btn i {
    flex: 0 0 auto;
}

.admin-sidebar-upgrade .btn span {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-page-header h1 {
    margin: 0;
    text-align: left;
    font-weight: 800;
    font-size: 1.75rem;
}

.admin-page-header p {
    margin: 4px 0 0;
}

.admin-page-header > a,
.admin-page-header > button {
    flex: 0 0 auto;
}

.admin-stat-row,
.admin-metric-row {
    margin-bottom: 18px;
}

.admin-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(180px, 320px) auto;
    gap: 14px;
    align-items: end;
}

.admin-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-table-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.users-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.users-stat-section {
    margin-bottom: 14px;
}

.users-stat-card {
    display: grid;
    min-height: 108px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.users-stat-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    font-size: 1.1rem;
}

.users-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 320px) auto;
    gap: 28px;
    align-items: end;
}

.users-filter-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.users-filter-actions .btn {
    min-width: 140px;
}

.users-bulk-bar {
    padding: 0 0 16px;
}

.users-table {
    margin-bottom: 0;
}

.users-table-card {
    overflow: visible;
}

.users-table-card .table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

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

.users-table th:last-child,
.users-table td:last-child {
    text-align: right;
}

.users-user-cell,
.users-action-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.users-user-cell span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.users-user-link {
    color: inherit;
    text-decoration: none;
}

.users-user-link:hover,
.users-user-link:focus {
    color: inherit;
    text-decoration: none;
}

.users-user-cell strong,
.users-user-cell small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.users-avatar {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    text-transform: uppercase;
}

.users-action-cell {
    justify-content: flex-end;
}

.users-action-dropdown {
    display: inline-flex;
}

.users-action-toggle {
    min-width: 34px;
    padding: 4px 8px;
    line-height: 1;
}

.users-action-toggle::after {
    display: none;
}

.users-action-menu {
    min-width: 160px;
    padding: 6px 0;
    z-index: 1060;
}

.users-action-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0;
}

.users-action-menu form {
    margin: 0;
}

.users-pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
}

.pipeline-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.pipeline-page-heading h1 {
    margin: 0;
    font-weight: 800;
    font-size: 1.75rem;
}

.pipeline-page-heading p {
    margin: 4px 0 0;
}

.pipeline-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.pipeline-stat-card {
    display: grid;
    min-height: 118px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.pipeline-stat-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    font-size: 1.35rem;
}

.pipeline-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.pipeline-selection-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pipeline-filter-card .card-body {
    padding-bottom: 16px;
}

.pipeline-view-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.prospect-card-grid,
.lead-card-grid,
.deals-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.prospect-item-card,
.lead-item-card,
.deal-item-card {
    min-height: 260px;
}

.goals-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.goals-page-heading h1 {
    margin: 0;
    font-weight: 800;
    font-size: 1.75rem;
}

.goals-page-heading p {
    margin: 4px 0 0;
}

.goals-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.goals-table-tools {
    display: grid;
    grid-template-columns: minmax(260px, 360px) auto auto;
    gap: 14px;
    align-items: center;
}

.goals-filter-row {
    margin-bottom: 18px;
}

.goals-reference-table {
    margin-bottom: 0;
}

.goals-reference-table th,
.goals-reference-table td {
    vertical-align: middle;
    white-space: nowrap;
}

.goals-table-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.goals-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.goals-user-avatar {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    text-transform: uppercase;
}

.goals-pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
}

.goals-pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-reference-top-action {
    margin-bottom: 22px;
}

.admin-reference-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-reference-heading h1 {
    margin: 0;
    font-weight: 800;
}

.admin-reference-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    font-size: 1.1rem;
}

.admin-reference-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) minmax(180px, .85fr) minmax(180px, .9fr) minmax(140px, .8fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 24px;
}

.admin-reference-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-reference-notice-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.admin-reference-table {
    margin-bottom: 0;
}

.admin-reference-table th,
.admin-reference-table td {
    vertical-align: middle;
    white-space: nowrap;
}

.admin-reference-actions,
.admin-reference-pagination-static {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.admin-reference-pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
}

.calls-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.calls-top-actions .btn {
    border-width: 1px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff !important;
}

.btn-call-add {
    background: #0ea44b;
    border-color: #0ea44b;
}

.btn-call-add:hover,
.btn-call-add:focus {
    background: #0b8a3f;
    border-color: #0b8a3f;
}

.btn-call-import {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-call-import:hover,
.btn-call-import:focus {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-call-deleted {
    background: #dc2626;
    border-color: #dc2626;
}

.btn-call-deleted:hover,
.btn-call-deleted:focus {
    background: #b91c1c;
    border-color: #b91c1c;
}

.calls-filter-card {
    margin-bottom: 28px;
    border-radius: 8px;
}

.calls-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px 24px;
    align-items: end;
}

.calls-filter-search {
    grid-column: span 4;
}

.calls-filter-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 12px;
}

.calls-filter-card .card-body {
    padding: 18px 20px 20px;
}

.calls-filter-card label {
    display: block;
    margin-bottom: 8px;
    font-size: .82rem;
    font-weight: 600;
}

.calls-filter-card .form-control {
    min-height: 38px;
    border-radius: 6px;
}

.calls-table-card {
    overflow: hidden;
}

.calls-table-card .card-header {
    padding: 16px 20px;
    border-bottom: 0;
    font-weight: 700;
    background: rgba(103, 232, 249, .22);
}

.calls-table-card .card-body {
    padding: 22px 20px 20px;
}

.calls-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.calls-table thead th {
    padding: 14px 16px;
    border: 0;
    font-weight: 700;
    background: rgba(103, 232, 249, .22);
}

.calls-table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-top: 0;
    border-right: 0;
    border-left: 0;
}

.calls-table tbody tr + tr td {
    border-top: 1px solid rgba(148, 163, 184, .25);
}

.calls-table th:first-child,
.calls-table td:first-child {
    width: 48px;
    text-align: center;
    padding-right: 10px;
}

.calls-table th:nth-child(2),
.calls-table td:nth-child(2) {
    width: 120px;
}

.calls-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.calls-row-actions {
    gap: 8px;
}

.calls-row-actions .btn-action {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calls-user-cell,
.calls-duration {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.calls-user-avatar {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(6, 182, 212, .2);
    color: #0891b2;
}

.calls-duration {
    gap: 8px;
}

.calls-duration i {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.calls-table-card .admin-reference-pagination-row {
    padding-top: 24px;
}

.calls-table-card .pagination {
    margin-bottom: 0;
}

.task-list-card {
    margin-bottom: 24px;
    overflow: hidden;
}

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

.task-list-card .admin-reference-heading {
    margin-bottom: 26px;
}

.task-list-card .admin-reference-icon {
    color: #fff;
    background: #0891b2;
    border-radius: 8px;
}

.task-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    align-items: end;
}

.task-filter-grid label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.task-filter-grid .form-control,
.task-filter-grid .select2-container--default .select2-selection--single {
    min-height: 42px;
    border-radius: 6px;
}

.task-filter-grid .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
}

.task-filter-grid .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

.task-filter-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.task-filter-actions .btn {
    min-height: 42px;
    padding-right: 18px;
    padding-left: 18px;
    border-radius: 6px;
    font-weight: 700;
}

.task-filter-actions .btn-secondary {
    background: transparent;
    color: #0891b2;
    border-color: #0891b2;
}

.task-table-card {
    overflow: hidden;
}

.task-reference-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.task-reference-table thead th {
    padding: 16px 18px;
    border: 0;
    font-weight: 700;
    background: rgba(103, 232, 249, .22);
}

.task-reference-table tbody td {
    padding: 16px 18px;
    vertical-align: middle;
    border-top: 0;
    border-right: 0;
    border-left: 0;
}

.task-reference-table tbody tr + tr td {
    border-top: 1px solid rgba(148, 163, 184, .25);
}

.task-reference-table th:first-child,
.task-reference-table td:first-child {
    width: 130px;
}

.task-reference-table .task-empty-cell {
    padding: 0;
}

.task-row-actions {
    gap: 8px;
}

.task-row-actions .btn-action {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 6px;
}

.task-empty-state {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.task-empty-state i {
    display: inline-flex;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 2.4rem;
    color: #0891b2;
    background: rgba(103, 232, 249, .22);
}

.task-empty-state h2,
.task-empty-state p {
    margin: 0;
}

.task-empty-state .btn {
    margin-top: 4px;
    border-radius: 6px;
    font-weight: 700;
}

.task-pagination-row {
    padding: 24px 18px;
}

.admin-form-card .card-body {
    padding: 34px;
}

.admin-form-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.admin-form-heading h1 {
    margin: 0;
    font-weight: 800;
    line-height: 1.15;
}

.admin-form-heading p {
    margin: 4px 0 0;
}

.admin-form-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    font-size: 1.35rem;
    color: #fff;
    background: #0891b2;
}

.admin-form-panel {
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 8px;
}

.admin-form-grid {
    display: grid;
    gap: 26px 32px;
}

.admin-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form-field {
    margin-bottom: 28px;
}

.admin-form-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.admin-form-panel .form-control {
    min-height: 48px;
    border-radius: 6px;
}

.admin-form-panel .select2-container--default .select2-selection--single {
    min-height: 48px;
    border-radius: 6px;
}

.admin-form-panel .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
}

.admin-form-panel .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

.admin-form-full {
    width: 100%;
}

.admin-form-panel textarea.form-control {
    min-height: 160px;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
}

.admin-form-actions .btn {
    min-height: 48px;
    padding-right: 22px;
    padding-left: 22px;
    border-radius: 6px;
    font-weight: 700;
}

.admin-form-actions .btn-secondary {
    background: transparent;
    color: #0891b2;
    border-color: #0891b2;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 18px;
}

.admin-dashboard-wide {
    grid-column: 1 / -1;
}

.admin-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-report-grid .card {
    margin-bottom: 0 !important;
}

.reports-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.reports-page-heading h1 {
    margin: 0;
    font-weight: 800;
}

.reports-page-heading p {
    margin: 4px 0 0;
}

.reports-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.reports-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.reports-kpi-card {
    display: grid;
    min-height: 112px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.reports-kpi-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    font-size: 1rem;
}

.reports-kpi-copy {
    min-width: 0;
}

.reports-kpi-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reports-kpi-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.reports-kpi-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.reports-kpi-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.reports-kpi-meta span,
.reports-kpi-meta small {
    font-size: 12px;
    color: #475569;
}

.reports-kpi-meta strong {
    font-size: 15px;
    color: #0f172a;
}

.reports-main-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
    gap: 18px;
}

.reports-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .65fr) minmax(0, 1fr);
    gap: 18px;
}

.reports-funnel-layout,
.reports-revenue-layout,
.reports-source-layout {
    display: grid;
    gap: 18px;
    align-items: stretch;
}

.reports-funnel-layout {
    grid-template-columns: minmax(0, 1fr) minmax(170px, .9fr);
    align-items: start;
    min-width: 0;
    gap: 14px;
}

.reports-revenue-layout {
    grid-template-columns: minmax(180px, .45fr) minmax(0, 1fr);
}

.reports-source-layout {
    grid-template-columns: minmax(220px, .6fr) minmax(0, 1fr);
}

.reports-side-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.reports-funnel-visual {
    display: flex;
    min-height: 230px;
    width: 100%;
    gap: 20px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
}

.reports-funnel-svg {
    flex: 0 1 230px;
    width: 100%;
    height: auto;
    min-width: 170px;
    max-width: 250px;
    display: block;
    overflow: visible;
}

.reports-funnel-segment {
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2;
}

.reports-funnel-segment-1 {
    fill: #2f80ed;
}

.reports-funnel-segment-2 {
    fill: #14b8a6;
}

.reports-funnel-segment-3 {
    fill: #22c55e;
}

.reports-funnel-svg text {
    fill: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
}

.reports-funnel-metrics {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-right: 2px;
    flex: 0 0 54px;
    min-width: 54px;
}

.reports-funnel-metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
}

.reports-funnel-metric strong {
    font-size: 24px;
    line-height: 1.1;
    color: #0f172a;
}

.reports-funnel-metric small {
    font-size: 13px;
    color: #64748b;
}

.reports-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.reports-mini-grid .metric-card {
    min-height: 86px;
}

.reports-chart-frame {
    position: relative;
    width: 100%;
    height: 230px;
    min-height: 0;
}

.reports-donut-frame {
    height: 210px;
}

.reports-chart,
.reports-donut {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
    max-height: 100%;
}

.reports-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reports-user-avatar {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    text-transform: uppercase;
}

.reports-aging-legend {
    display: grid;
    gap: 8px;
}

.admin-metric-icon {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.dashboard-pipeline-grid,
.dashboard-today-grid,
.dashboard-month-grid,
.dashboard-gamification-grid {
    display: grid;
    gap: 14px;
}

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

.dashboard-today-grid,
.dashboard-gamification-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-month-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.2fr);
}

.dashboard-metric-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 104px;
}

.dashboard-metric-card > div {
    min-width: 0;
}

.dashboard-metric-card .admin-metric-icon {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.dashboard-metric-link {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-metric-link:hover,
.dashboard-metric-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
    outline: none;
}

.dashboard-glance-card {
    display: flex;
    min-height: 156px;
    flex-direction: column;
    padding: 16px 16px 14px;
}

.dashboard-glance-card__label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    max-width: 96px;
}

.dashboard-glance-card__body {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dashboard-glance-card__value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.dashboard-glance-card__icon {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.95;
}

.dashboard-glance-card__footer {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 575.98px) {
    .dashboard-glance-card {
        min-height: 140px;
    }

    .dashboard-glance-card__value {
        font-size: 28px;
    }

    .dashboard-glance-card__icon {
        font-size: 1.35rem;
    }
}

.dashboard-summary-grid,
.dashboard-bottom-grid {
    display: grid;
    gap: 18px;
}

.dashboard-summary-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
}

.dashboard-bottom-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}

.dashboard-activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-activity-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.dashboard-activity-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
}

.dashboard-activity-item span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.dashboard-activity-item strong,
.dashboard-activity-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-activity-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .admin-page-header,
    .admin-table-action-bar {
        flex-direction: column;
    }

    .admin-page-header > a,
    .admin-page-header > button,
    .admin-table-action-bar > * {
        width: 100%;
    }

    .admin-filter-toolbar,
    .users-stat-grid,
    .users-filter-toolbar,
    .admin-dashboard-grid,
    .reports-page-heading,
    .reports-main-grid,
    .reports-bottom-grid,
    .reports-funnel-layout,
    .reports-revenue-layout,
    .reports-source-layout,
    .dashboard-summary-grid,
    .dashboard-bottom-grid,
    .dashboard-pipeline-grid,
    .dashboard-today-grid,
    .dashboard-month-grid,
    .dashboard-gamification-grid,
    .dashboard-activity-layout,
    .admin-report-grid,
    .calls-filter-grid {
        grid-template-columns: 1fr;
    }

    .reports-page-heading {
        flex-direction: column;
    }

    .reports-toolbar,
    .reports-toolbar .btn,
    .reports-kpi-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .reports-kpi-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .reports-kpi-value {
        font-size: 22px;
    }

    .reports-funnel-layout {
        gap: 14px;
    }

    .reports-funnel-visual {
        min-height: 0;
        gap: 14px;
        flex-direction: column;
    }

    .reports-funnel-svg {
        max-width: 100%;
    }

    .reports-funnel-metrics {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        padding-right: 0;
    }

    .reports-mini-grid {
        grid-template-columns: 1fr;
    }

    .users-filter-actions,
    .pipeline-page-heading,
    .pipeline-selection-bar,
    .goals-page-heading,
    .goals-table-toolbar,
    .users-pagination-row {
        flex-direction: column;
        align-items: stretch;
    }

    .users-filter-actions .btn {
        width: 100%;
    }

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

@media (max-width: 575.98px) {
    .pipeline-stat-grid {
        grid-template-columns: 1fr;
    }

    .pipeline-page-heading > div:last-child,
    .pipeline-selection-actions,
    .prospects-top-actions,
    .leads-top-actions,
    .deals-top-actions {
        width: 100%;
    }

    .goals-table-tools {
        grid-template-columns: 1fr;
    }

    .admin-reference-filter-grid {
        grid-template-columns: 1fr;
    }

    .task-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-grid-3 {
        grid-template-columns: 1fr;
    }

    .admin-reference-filter-actions,
    .admin-reference-notice-row,
    .calls-filter-actions,
    .task-filter-actions,
    .admin-form-heading,
    .admin-form-actions,
    .admin-reference-pagination-row {
        flex-direction: column;
        align-items: stretch;
    }

    .calls-filter-search {
        grid-column: auto;
    }

    .goals-pagination-row,
    .goals-pagination-controls {
        flex-direction: column;
        align-items: stretch;
    }
}
