/* Optima CRM — small brand overrides on top of the base CRM theme */

.add-message { color: #16a34a; font-weight: 600; }
.error-message { color: #dc2626; font-weight: 600; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Double-click inline row editing */
tr.crm-row-editing > td { background: rgba(83, 48, 201, 0.07); vertical-align: middle; }
body.crm-dark tr.crm-row-editing > td { background: rgba(124, 92, 240, 0.14); }
.crm-inline-input { min-width: 90px; }

/* Row "⋮" actions menu (replaces separate Edit/Delete buttons) */
.optima-action-btn {
    width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid transparent; background: transparent; color: #5c5876; border-radius: 8px; font-size: 18px; line-height: 1;
}
.optima-action-btn:hover, .optima-action-btn:focus { background: rgba(83, 48, 201, 0.08); color: #5330c9; }
.optima-action-btn::after { display: none; }
.optima-action-menu { min-width: 150px; padding: 6px; box-shadow: 0 10px 30px rgba(36, 27, 69, 0.14); border: none; border-radius: 10px; }
.optima-action-menu .dropdown-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; border-radius: 6px; padding: 7px 10px; }
.optima-action-menu .dropdown-item:hover { background: rgba(83, 48, 201, 0.08); }
.optima-action-menu .dropdown-item.text-danger:hover { background: #fee2e2; color: #dc2626 !important; }
html.crm-dark .optima-action-btn,
body.crm-dark .optima-action-btn { color: #cbd5e1; }
html.crm-dark .optima-action-btn:hover,
body.crm-dark .optima-action-btn:hover { background: rgba(124, 92, 240, 0.16); color: #a78bfa; }
html.crm-dark .optima-action-menu,
body.crm-dark .optima-action-menu { background: #1c2438; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
html.crm-dark .optima-action-menu .dropdown-item,
body.crm-dark .optima-action-menu .dropdown-item { color: #cbd5e1; }
html.crm-dark .optima-action-menu .dropdown-item:hover,
body.crm-dark .optima-action-menu .dropdown-item:hover { background: rgba(124, 92, 240, 0.16); }
html.crm-dark .optima-action-menu .dropdown-item.text-danger:hover,
body.crm-dark .optima-action-menu .dropdown-item.text-danger:hover { background: rgba(220, 38, 38, 0.2); color: #f87171 !important; }

.crm-calendar-dot--joining { background: #0891b2; }
#optimaCalendar .fc-event { cursor: pointer; border: none; }
#optimaCalendar .fc-toolbar h2 { font-size: 18px; font-weight: 700; }
body.crm-dark #optimaCalendar { color: #f1f5f9; }
body.crm-dark #optimaCalendar .fc-toolbar h2 { color: #f1f5f9; }
body.crm-dark #optimaCalendar .fc-day-header,
body.crm-dark #optimaCalendar th { color: #cbd5e1; border-color: rgba(255,255,255,0.08); }
body.crm-dark #optimaCalendar td,
body.crm-dark #optimaCalendar .fc-list-view,
body.crm-dark #optimaCalendar .fc-row,
body.crm-dark #optimaCalendar .fc-body,
body.crm-dark #optimaCalendar .fc-widget-content,
body.crm-dark #optimaCalendar .fc-widget-header { background: #111827; border-color: rgba(255,255,255,0.08); }
body.crm-dark #optimaCalendar .fc-day-number,
body.crm-dark #optimaCalendar .fc-list-item-title,
body.crm-dark #optimaCalendar .fc-list-item-time { color: #e2e8f0; }
body.crm-dark #optimaCalendar .fc-unthemed .fc-today { background: rgba(147,51,234,0.12); }

/* ---- Calendar: keep the grid scrollable instead of clipped on narrow screens.
   Scoped to the view container (not the whole #optimaCalendar root, which also
   holds the toolbar) so the nav buttons stay put while only the day grid scrolls. ---- */
#optimaCalendar .fc-view-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
#optimaCalendar .fc-view-container table {
    min-width: 650px;
}

/* ---- Calendar toolbar: the generic mobile ".btn-group" rule (crm-mobile.css)
   forces FullCalendar's prev/next button pair to wrap onto separate full-width
   lines. Keep the calendar's own nav buttons compact and inline at every size. ---- */
#optimaCalendar .fc-toolbar .btn-group,
#optimaCalendar .fc-toolbar .btn-group.fc-button-group {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    width: auto !important;
}
#optimaCalendar .fc-toolbar .btn-group > .btn,
#optimaCalendar .fc-toolbar > div > .btn {
    flex: 0 0 auto !important;
    width: auto !important;
}
#optimaCalendar .fc-toolbar {
    flex-wrap: wrap;
    row-gap: 10px;
}
#optimaCalendar .fc-toolbar .fc-left,
#optimaCalendar .fc-toolbar .fc-right {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

@media (max-width: 798px) {
    #optimaCalendar .fc-toolbar .fc-left,
    #optimaCalendar .fc-toolbar .fc-center,
    #optimaCalendar .fc-toolbar .fc-right {
        width: 100%;
        display: flex !important;
        justify-content: center;
        margin: 4px 0 !important;
    }
    #optimaCalendar .fc-toolbar .fc-today-button {
        display: inline-block !important;
    }
}

/* Guard against dynamically-populated <select class="form-control"> collapsing
   to a tiny intrinsic width before its options are loaded via JS. */
select.form-control {
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.crm-sidebar-brand { padding: 14px 20px; }
.crm-sidebar-brand a {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 12px;
}
.crm-sidebar-logo { max-height: 40px; width: auto; }
.crm-sidebar-icon { display: none; max-height: 30px; }
.vertical-collpsed .crm-sidebar-brand a { padding: 8px; }
.vertical-collpsed .crm-sidebar-logo { display: none; }
.vertical-collpsed .crm-sidebar-icon { display: inline-block; }

/* Keep the sidebar logo row the same height as the top header bar so the two
   line up cleanly instead of the logo forcing a taller strip above it. */
body.crm-theme .crm-sidebar-brand {
    height: var(--crm-header-height);
    min-height: var(--crm-header-height);
    max-height: var(--crm-header-height);
    padding: 8px 16px;
    box-sizing: border-box;
}
body.crm-theme .crm-sidebar-brand .crm-sidebar-logo {
    min-height: 0;
    max-height: 38px;
    max-width: 150px;
}

/* ---- Dashboard ---- */
.optima-dashboard-subtitle { font-size: 13px; color: #8b87a3; margin: 2px 0 0; }
html.crm-dark .optima-dashboard-subtitle,
body.crm-dark .optima-dashboard-subtitle { color: #94a3b8; }

.optima-chart-subtitle { font-size: 12.5px; color: #8b87a3; margin: -10px 0 16px; }
html.crm-dark .optima-chart-subtitle,
body.crm-dark .optima-chart-subtitle { color: #94a3b8; }

.optima-section-card {
    border-radius: 14px;
    border: none;
    box-shadow: 0 2px 10px rgba(36, 27, 69, 0.06);
    margin-bottom: 0;
}
html.crm-dark .optima-section-card,
body.crm-dark .optima-section-card { background: #131a2e; box-shadow: none; border: 1px solid rgba(255,255,255,0.06); }

.optima-section-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.optima-section-title i { font-size: 18px; color: #5330c9; }
html.crm-dark .optima-section-title i,
body.crm-dark .optima-section-title i { color: #7c5cf0; }

/* ---- Dashboard stat cards ---- */
.optima-stat-row { margin-bottom: 0; }
.optima-stat-card {
    border-radius: 14px;
    border: none;
    border-top: 3px solid transparent;
    box-shadow: 0 2px 10px rgba(36, 27, 69, 0.06);
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.optima-stat-card:hover { box-shadow: 0 6px 18px rgba(36, 27, 69, 0.1); transform: translateY(-1px); }
.optima-card-clickable { cursor: pointer; }
.optima-card-clickable:hover { box-shadow: 0 8px 22px rgba(36, 27, 69, 0.16); transform: translateY(-2px); }
.optima-combo-item.optima-card-clickable:hover { box-shadow: 0 4px 14px rgba(36, 27, 69, 0.14); transform: translateY(-1px); }
html.crm-dark .optima-card-clickable:hover,
body.crm-dark .optima-card-clickable:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.4); }
.optima-stat-card.accent-purple { border-top-color: #5330c9; }
.optima-stat-card.accent-blue   { border-top-color: #4d7bff; }
.optima-stat-card.accent-mint   { border-top-color: #4fd2c0; }
.optima-stat-card.accent-amber  { border-top-color: #f5a524; }
.optima-stat-card.accent-cyan   { border-top-color: #14b8c4; }
.optima-stat-card.accent-rose   { border-top-color: #e0355b; }

.optima-stat-card .card-body {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 96px;
}
.optima-stat-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff; flex-shrink: 0;
}
.optima-stat-icon.bg-purple { background: linear-gradient(135deg, #5330c9, #7c5cf0); }
.optima-stat-icon.bg-blue   { background: linear-gradient(135deg, #4d7bff, #6a90ff); }
.optima-stat-icon.bg-mint   { background: linear-gradient(135deg, #4fd2c0, #7fe9d8); }
.optima-stat-icon.bg-amber  { background: linear-gradient(135deg, #f5a524, #ffca7a); }
.optima-stat-icon.bg-cyan   { background: linear-gradient(135deg, #14b8c4, #5fd8e0); }
.optima-stat-icon.bg-rose   { background: linear-gradient(135deg, #e0355b, #ff7a97); }
.optima-stat-text { min-width: 0; }

.optima-combo-card .card-body.optima-combo-body { padding: 18px 22px; min-height: 0; display: block; }
.optima-combo-heading {
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    color: #8b87a3; margin: 0 0 12px;
}
.optima-combo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}
.optima-combo-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px; min-width: 0;
}
.optima-combo-item .optima-stat-icon { width: 44px; height: 44px; font-size: 20px; }
.optima-combo-item .optima-stat-value { font-size: 22px; }
.optima-combo-item .optima-stat-text { min-width: 0; overflow: hidden; }
.optima-combo-item .optima-stat-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.optima-combo-item.tone-blue { background: rgba(77, 123, 255, 0.08); }
.optima-combo-item.tone-cyan { background: rgba(20, 184, 196, 0.08); }
.optima-combo-item.tone-rose { background: rgba(224, 53, 91, 0.08); }
.optima-combo-item.tone-mint { background: rgba(79, 210, 192, 0.1); }
.optima-combo-item.tone-amber { background: rgba(245, 165, 36, 0.1); }
.optima-combo-item.tone-purple { background: rgba(83, 48, 201, 0.08); }
html.crm-dark .optima-combo-item.tone-blue, body.crm-dark .optima-combo-item.tone-blue { background: rgba(77, 123, 255, 0.14); }
html.crm-dark .optima-combo-item.tone-cyan, body.crm-dark .optima-combo-item.tone-cyan { background: rgba(20, 184, 196, 0.14); }
html.crm-dark .optima-combo-item.tone-rose, body.crm-dark .optima-combo-item.tone-rose { background: rgba(224, 53, 91, 0.14); }
html.crm-dark .optima-combo-item.tone-mint, body.crm-dark .optima-combo-item.tone-mint { background: rgba(79, 210, 192, 0.16); }
html.crm-dark .optima-combo-item.tone-amber, body.crm-dark .optima-combo-item.tone-amber { background: rgba(245, 165, 36, 0.16); }
html.crm-dark .optima-combo-item.tone-purple, body.crm-dark .optima-combo-item.tone-purple { background: rgba(83, 48, 201, 0.16); }

html.crm-dark .optima-combo-heading,
body.crm-dark .optima-combo-heading { color: #94a3b8; }

@media (max-width: 420px) {
    .optima-combo-grid { grid-template-columns: 1fr; }
}
.optima-stat-value { font-size: 26px; font-weight: 700; line-height: 1.1; margin: 0; white-space: nowrap; }
.optima-stat-label {
    font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
    color: #8b87a3; margin: 4px 0 0;
}

html.crm-dark .optima-stat-card,
body.crm-dark .optima-stat-card {
    background: #131a2e; box-shadow: none;
    border-left: 1px solid rgba(255,255,255,0.06);
    border-right: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
html.crm-dark .optima-stat-card:hover,
body.crm-dark .optima-stat-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
html.crm-dark .optima-stat-label,
body.crm-dark .optima-stat-label { color: #94a3b8; }

.optima-table thead th {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    color: #ffffff; background: #27306f; border-bottom: 1px solid #27306f;
    padding: 10px 12px;
}
.optima-table thead th:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.optima-table thead th:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.optima-table tbody td { padding-top: 12px; padding-bottom: 12px; vertical-align: middle; }
.optima-table tbody tr:not(:last-child) td { border-bottom: 1px solid rgba(36, 27, 69, 0.06); }
html.crm-dark .optima-table thead th,
body.crm-dark .optima-table thead th { color: #e2e8f0; background: #0f172a; border-bottom-color: #0f172a; }
html.crm-dark .optima-table tbody tr:not(:last-child) td,
body.crm-dark .optima-table tbody tr:not(:last-child) td { border-bottom-color: rgba(255,255,255,0.06); }

.optima-badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; }
.optima-badge-searching { background: #eef2ff; color: #4338ca; }
.optima-badge-closed { background: #dcfce7; color: #166534; }
.optima-badge-hold { background: #fef3c7; color: #92400e; }
.optima-badge-refine { background: #fee2e2; color: #991b1b; }
.optima-badge-default { background: #f1f5f9; color: #475569; }

html.crm-dark .optima-badge-default,
body.crm-dark .optima-badge-default { background: rgba(255,255,255,0.08); color: #cbd5e1; }

/* These four never had a dark-mode override, so the theme's generic
   `body.crm-dark span { color: var(--crm-text) }` rule (which outranks a
   plain single-class selector) was winning and rendering the badge text
   near-invisible — white on a still-light pastel background. */
html.crm-dark .optima-badge-searching,
body.crm-dark .optima-badge-searching { background: rgba(99, 102, 241, 0.18); color: #a5b4fc; }
html.crm-dark .optima-badge-closed,
body.crm-dark .optima-badge-closed { background: rgba(34, 197, 94, 0.18); color: #86efac; }
html.crm-dark .optima-badge-hold,
body.crm-dark .optima-badge-hold { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
html.crm-dark .optima-badge-refine,
body.crm-dark .optima-badge-refine { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }

/* Requirement open more than 15 days with no resolution yet — needs attention. */
.optima-badge-warning { background: #f59e0b; color: #78350f; margin-left: 6px; }
html.crm-dark .optima-badge-warning,
body.crm-dark .optima-badge-warning { background: #fbbf24; color: #451a03; }

/* Baseline: works as-is on any plain (non-striped) table, e.g. the Dashboard's
   Recent Requirements widget. */
tr.optima-row-warning > td { background: #fffbeb; border-left: 3px solid #f59e0b; }
html.crm-dark tr.optima-row-warning > td,
body.crm-dark tr.optima-row-warning > td { background: rgba(245, 158, 11, 0.16); border-left: 3px solid #fbbf24; }

/* Bootstrap 5's .table-striped (used by #datatable) paints its zebra stripe as
   an inset box-shadow driven by --bs-table-accent-bg, layered ON TOP of any
   background-color — so the plain `background` above is invisible on every
   striped (odd) row there. Overriding the variable itself, at higher
   specificity than .table-striped's own rule via the #datatable id, makes the
   highlight paint consistently across every row regardless of striping. */
#datatable tbody tr.optima-row-warning { --bs-table-accent-bg: #fffbeb; }
html.crm-dark #datatable tbody tr.optima-row-warning,
body.crm-dark #datatable tbody tr.optima-row-warning { --bs-table-accent-bg: rgba(245, 158, 11, 0.16); }

/* Requirement open more than a month with no resolution yet — critical. */
.optima-badge-critical { background: #ea580c; color: #ffffff; margin-left: 6px; }
html.crm-dark .optima-badge-critical,
body.crm-dark .optima-badge-critical { background: #f97316; color: #ffffff; }

tr.optima-row-critical > td { background: #fff7ed; border-left: 3px solid #ea580c; }
html.crm-dark tr.optima-row-critical > td,
body.crm-dark tr.optima-row-critical > td { background: rgba(234, 88, 12, 0.18); border-left: 3px solid #f97316; }

#datatable tbody tr.optima-row-critical { --bs-table-accent-bg: #fff7ed; }
html.crm-dark #datatable tbody tr.optima-row-critical,
body.crm-dark #datatable tbody tr.optima-row-critical { --bs-table-accent-bg: rgba(234, 88, 12, 0.18); }

/* The vendor theme's app.min.css hardcodes ApexCharts legend text to a
   light-mode-only color with !important; override it for dark mode so
   chart legends stay readable instead of near-invisible on a dark page. */
html.crm-dark .apexcharts-legend-text,
body.crm-dark .apexcharts-legend-text {
    color: #cbd5e1 !important;
}

/* ============================================================
   Select2 — searchable dropdowns, styled to match .form-control
   ============================================================ */
.select2-container { width: 100% !important; }

/* Select2 replaces the <select> with a sibling span — when that select sat
   in a flex row next to a fixed-width button (e.g. the "+ Add Post"
   shortcut), a hard width:100% fights the sibling for space and overflows.
   Let it behave like a normal flexible flex item there instead. */
.d-flex > .select2-container {
    width: auto !important;
    flex: 1 1 0%;
    min-width: 0;
}

.select2-container--default .select2-selection--single {
    border: 1px solid var(--crm-border, #e2e0f0) !important;
    border-radius: 8px !important;
    min-height: 40px !important;
    padding: 9px 14px !important;
    background-color: var(--crm-surface, #ffffff) !important;
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: normal !important;
    color: var(--crm-text, #1e1b4b);
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 8px;
}
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--crm-primary, #0d9488) !important;
    box-shadow: 0 0 0 3px rgba(var(--crm-primary-rgb, 13, 148, 136), 0.15);
}
.select2-dropdown {
    border: 1px solid var(--crm-border, #e2e0f0) !important;
    border-radius: 8px !important;
    overflow: hidden;
    background-color: var(--crm-surface, #ffffff);
    z-index: 2000;
}
.select2-search--dropdown {
    padding: 8px !important;
    background-color: var(--crm-surface, #ffffff);
}
.select2-search--dropdown .select2-search__field {
    border: 1px solid var(--crm-border, #e2e0f0) !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    outline: none;
    background-color: var(--crm-surface, #ffffff);
    color: var(--crm-text, #1e1b4b);
}
.select2-results__option {
    padding: 8px 14px !important;
    color: var(--crm-text, #1e1b4b);
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--crm-primary, #0d9488) !important;
    color: #fff !important;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: var(--crm-primary-soft, #ecfdfb);
}
.select2-container--disabled .select2-selection--single {
    background-color: var(--crm-surface-2, #f4f3fb) !important;
    cursor: not-allowed;
}

body.crm-dark .select2-container--default .select2-selection--single,
body.crm-dark .select2-dropdown,
body.crm-dark .select2-search--dropdown,
body.crm-dark .select2-search--dropdown .select2-search__field {
    background-color: var(--crm-surface-2, #1a1730) !important;
    border-color: var(--crm-border, rgba(255,255,255,0.12)) !important;
    color: var(--crm-text, #f1f5f9) !important;
}
body.crm-dark .select2-container--default .select2-selection--single .select2-selection__rendered,
body.crm-dark .select2-results__option {
    color: var(--crm-text, #f1f5f9) !important;
}
body.crm-dark .select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: rgba(255,255,255,0.06);
}
body.crm-dark .select2-container--default.select2-container--open .select2-selection--single {
    box-shadow: 0 0 0 3px rgba(249,115,22,0.18);
}
body.crm-dark .select2-selection__arrow b,
body.crm-dark .select2-selection__rendered {
    color: var(--crm-text, #f1f5f9) !important;
}

/* DataTables pagination — crm-theme.css sets .page-link text to the teal
   theme color globally (fine on the white inactive buttons), but the active
   page's rule only swaps the background to a teal gradient without also
   resetting the text to white, leaving teal-on-teal invisible page numbers.
   Applies to every list page's pagination since they all share this markup. */
body.crm-theme .page-item.active .page-link {
    color: #ffffff !important;
}

/* ---- Top Horizontal Scrollbar for All Tables ---- */
.crm-top-scrollbar-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    height: 12px;
    margin-bottom: 4px;
    display: none;
    -webkit-overflow-scrolling: touch;
}
.crm-top-scrollbar-inner {
    height: 1px;
}
.crm-top-scrollbar-wrapper::-webkit-scrollbar {
    height: 8px;
}
.crm-top-scrollbar-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
}
.crm-top-scrollbar-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}
.crm-top-scrollbar-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.45);
}
body.crm-dark .crm-top-scrollbar-wrapper::-webkit-scrollbar-track,
html.crm-dark .crm-top-scrollbar-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}
body.crm-dark .crm-top-scrollbar-wrapper::-webkit-scrollbar-thumb,
html.crm-dark .crm-top-scrollbar-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
}
body.crm-dark .crm-top-scrollbar-wrapper::-webkit-scrollbar-thumb:hover,
html.crm-dark .crm-top-scrollbar-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.48);
}

/* ============================================================
   Password Visibility Toggle
   ============================================================ */
.btn-password-toggle {
    border-color: #ced4da;
    color: #6c757d;
    background-color: #f8f9fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.47rem 0.85rem;
    z-index: 2;
    cursor: pointer;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.btn-password-toggle:hover,
.btn-password-toggle:focus {
    color: #212529;
    background-color: #e9ecef;
    border-color: #ced4da;
    box-shadow: none;
}
body.crm-dark .btn-password-toggle {
    border-color: #32394e;
    color: #a6b0cf;
    background-color: #2e3446;
}
body.crm-dark .btn-password-toggle:hover,
body.crm-dark .btn-password-toggle:focus {
    border-color: #3a4259;
    color: #ffffff;
    background-color: #384055;
    box-shadow: none;
}


