@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/lib/interfont/Inter-latin-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/lib/interfont/Inter-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/lib/interfont/Inter-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/lib/interfont/Inter-latin-700.woff2') format('woff2');
}

:root {
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --sidebar-bg: #0b1426;
    --sidebar-text: rgba(255, 255, 255, 0.6);
    --sidebar-header-text: rgba(255, 255, 255, 0.4);
    --sidebar-active-bg: rgba(255, 255, 255, 0.1);
    --sidebar-active-text: #ffffff;
    --main-bg: #f8f9fc;
    --primary-blue: #0b509d;


}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--main-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.slider-open {
    overflow: hidden !important;
}

/* Sidebar Styling */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    overflow-x: hidden;
}

#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    z-index: 999;

    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#sidebar::-webkit-scrollbar {
    display: none;
}

#sidebar:not(.active) {
    box-shadow: none;
}

#sidebar.active {
    min-width: var(--sidebar-collapsed-width);
    max-width: var(--sidebar-collapsed-width);
}

#sidebar .sidebar-header {
    padding: 30px 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    background: var(--sidebar-bg);
}

#sidebar.active .sidebar-header {
    padding: 30px 10px;
    justify-content: center;
}

#sidebar .sidebar-logo {
    max-width: 100px;
    transition: all 0.3s;
}

#sidebar.active .sidebar-logo {
    display: none;
}

.toggle-sidebar {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

#sidebar.active .toggle-sidebar {
    margin: 0;
}

#sidebar ul.components {
    padding: 10px 0;
}

#sidebar ul p {
    color: var(--sidebar-header-text);
    padding: 20px 25px 5px 25px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s;
}

#sidebar.active ul p {
    display: none;
}

#sidebar ul li a {
    padding: 12px 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s;
    margin: 2px 15px;
    border-radius: 10px;
}

#sidebar ul li a i {
    margin-right: 15px;
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
    opacity: 0.7;
}

#sidebar.active ul li a {
    padding: 12px 0;
    justify-content: center;
    margin: 2px 10px;
}

#sidebar.active ul li a i {
    margin-right: 0;
}

#sidebar ul li a span {
    white-space: nowrap;
}

#sidebar.active ul li a span {
    display: none;
}

#sidebar.active ul.collapse {
    display: none !important;
}

#sidebar.active .dropdown-arrow {
    display: none !important;
}

#sidebar ul li a:hover {
    color: var(--sidebar-active-text);
    background: var(--sidebar-active-bg);
}

#sidebar ul li.active>a {
    color: var(--sidebar-active-text);
    background: var(--sidebar-active-bg);
    font-weight: 500;
}

#sidebar ul li.active>a i {
    opacity: 1;
}

/* Page Content Styling */
#content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    transition: all 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#sidebar.active+#content {
    width: calc(100% - var(--sidebar-collapsed-width));
    margin-left: var(--sidebar-collapsed-width);
}

.main-navbar {
    padding: 15px 30px;
    background: #fff;
    border-bottom: 1px solid #edf2f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 998;
}

.search-container {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.search-container i {
    color: #a0aec0;
    font-size: 0.9rem;
}

.search-container input {
    border: none;
    background: transparent;
    padding-left: 10px;
    width: 100%;
    outline: none;
    color: #4a5568;
    font-size: 0.9rem;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-btn {
    color: #a0aec0;
    font-size: 1.2rem;
    position: relative;
    cursor: pointer;
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #f56565;
    border-radius: 50%;
    border: 2px solid #fff;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0b509d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
    /* Prevent distortion on zoom */
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3748;
}

/* Page Header */
.page-header {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.page-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.page-title p {
    color: #718096;
    margin: 5px 0 0 0;
    font-size: 0.95rem;
}

.btn-new-deal {
    background: #0b509d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-new-deal:hover {
    background: #083d7a;
    box-shadow: 0 4px 12px rgba(11, 80, 157, 0.2);
}

/* Stats Section */
.stats-container {
    padding: 0 30px 30px 30px;
}

.stats-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #edf2f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.stats-info span {
    display: block;
    color: #718096;
    font-size: 0.85rem;
    font-weight: 500;
}

.stats-info h2 {
    margin: 5px 0 0 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
}

.stats-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    /* Prevent distortion on zoom */
}

.icon-blue {
    background: #ebf8ff;
    color: #3182ce;
}

.icon-purple {
    background: #faf5ff;
    color: #805ad5;
}

.icon-green {
    background: #f0fff4;
    color: #38a169;
}

/* Filter Section */
.filter-section {
    padding: 0 30px 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-activities {
    background: #fff;
    border: 1px solid #edf2f9;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    min-width: 160px;
    max-width: 160px;
    width: auto;
}

.search-activities i {
    color: #a0aec0;
}

.search-activities input {
    border: none;
    outline: none;
    margin-left: 10px;
    font-size: 0.9rem;
    width: 100%;
}

/* Premium Search Bar Redesign */
.search-activities-premium {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #edf2f9;
    border-radius: 10px;
    height: 42px;
    width: 340px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-activities-premium:focus-within {
    border-color: #0b509d;
    box-shadow: 0 0 0 3px rgba(11, 80, 157, 0.1);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
    height: 100%;
}

.search-input-wrapper input {
    border: none !important;
    outline: none !important;
    width: 100%;
    font-size: 0.95rem;
    color: #1e293b;
    padding-right: 35px !important;
    background: transparent !important;
    height: 100%;
}

.search-input-wrapper input::placeholder {
    color: #94a3b8;
}

.search-input-wrapper i {
    position: absolute;
    right: 15px;
    color: #cbd5e1;
    font-size: 1.25rem;
    pointer-events: none;
}

.btn-advanced-search {
    background: #0b509d;
    color: #fff;
    border: none;
    height: 100%;
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-advanced-search:hover {
    background: #083d7a;
}

.btn-advanced-search i {
    font-size: 1.2rem;
}

.status-filter select,
.product-filter select {
    border: 1px solid #edf2f9;
    border-radius: 8px;
    padding: 8px 30px 8px 15px;
    font-size: 0.9rem;
    color: #4a5568;
    outline: none;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234a5568' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C2.185 5.355 2.401 5 2.827 5h9.435c.427 0 .642.355.376.658l-4.796 5.482a.5.5 0 0 1-.748 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

/* Table Section */
.table-container {
    padding: 0 30px 5px 30px;
}

.custom-table-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #edf2f9;
    overflow-x: auto;
}

/* Audit Trail Header Styling */
.audit-header-group {
    background: #f8f9fc;
    border: 1px solid #edf2f9;
    border-bottom: 1px solid #edf2f9;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.audit-header-group+.custom-table-card {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th {
    text-align: left;
    padding: 15px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2d3748;
    background: #f8f9fc;
    border-bottom: 1px solid #edf2f9;
    text-transform: capitalize;
}

.custom-table td {
    padding: 15px 20px;
    font-size: 0.85rem;
    color: #4a5568;
    border-bottom: 1px solid #f7fafc;
}

/* Pagination Styles */
.pagination-premium {
    gap: 5px;
}

.pagination-premium .page-link {
    cursor: pointer !important;
    transition: all 0.2s ease;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-premium .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1 !important;
}

.pagination-premium .page-item.active .page-link {
    background-color: #0b509d !important;
    border-color: #0b509d !important;
    color: #fff !important;
}

.pagination-premium .page-item.disabled .page-link {
    background-color: #f8fafc;
    color: #cbd5e1;
    border-color: #f1f5f9 !important;
    cursor: not-allowed !important;
}

.page-input {
    border-radius: 8px !important;
    border: 1.5px solid #e2e8f0 !important;
    height: 40px !important;
    text-align: center;
    font-weight: 600;
}

.custom-table tbody tr {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.custom-table tbody tr:hover {
    background-color: #f8fafc !important;
}

.badge-status,
.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-new,
.badge-new {
    background-color: #f1f5f9;
    color: #475569;
}

.status-progress,
.badge-inprogress {
    background-color: #fef3c7;
    color: #d97706;
}

.status-negotiation,
.badge-negotiation {
    background-color: #e0f2fe;
    color: #0284c7;
}

.status-won,
.badge-won {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-lost,
.badge-lost {
    background-color: #fee2e2;
    color: #dc2626;
}

.file-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0b509d;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    background: #f0f7ff;
    border-radius: 6px;
    width: fit-content;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff5f5;
    color: #e53e3e;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.action-btn:hover {
    background: #fed7d7;
}

.btn-view-details {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
    text-decoration: none !important;
}

.btn-view-details:hover {
    background: #bae6fd;
    color: #0c4a6e;
    transform: translateY(-1px);
}

/* Sidebar Sub-menu */
#sidebar ul ul a {
    padding-left: 55px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid transparent;
}

#sidebar ul ul a:hover,
#sidebar ul ul a.active-sub {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left: 3px solid #3b82f6;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-arrow {
    transition: transform 0.3s;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(90deg);
}

/* Kanban Board Styles */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.board-container {
    display: flex;
    gap: 20px;
    padding: 0 30px 30px 30px;
    overflow-x: auto;
    align-items: flex-start;
    max-height: calc(100vh - 160px);
    min-height: calc(100vh - 180px);

    scrollbar-width: none;
    -ms-overflow-style: none;

    cursor: grab;
}

.board-container.dragging-active {
    cursor: grabbing;
    user-select: none;
}

.board-column.drag-over {
    background-color: #f1f5f9;
    border: 2px dashed #3b82f6;
    box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.05);
}

.kanban-card.dragging {
    opacity: 0.4;
    transform: scale(0.95);
    cursor: grabbing;
}

.board-container::-webkit-scrollbar {
    display: none;
}

.board-column {
    min-width: 340px;
    max-width: 340px;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #edf2f9;
    cursor: default;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.editable-status-title {
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: text;
    border: 1px solid transparent;
}

.editable-status-title:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.editable-status-title:focus {
    background: #fff;
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-delete-status-column {
    transition: all 0.2s;
}

.btn-delete-status-column:hover {
    color: #ef4444 !important;
}

.column-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 60px;
    text-align: center;
}

/* Dynamic Palette Status 0-9 */
.status-0 {
    background-color: #e0f2fe;
    color: #0369a1;
}

.status-1 {
    background-color: #ffedd5;
    color: #9a3412;
}

.status-2 {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.status-3 {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-4 {
    background-color: #fee2e2;
    color: #dc2626;
}

.status-5 {
    background-color: #ecfeff;
    color: #0891b2;
}

.status-6 {
    background-color: #fef9c3;
    color: #a16207;
}

.status-7 {
    background-color: #fce7f3;
    color: #db2777;
}

.status-8 {
    background-color: #e0e7ff;
    color: #4338ca;
}

.status-9 {
    background-color: #f1f5f9;
    color: #475569;
}

.column-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.05rem;
}

.column-indicator {
    width: 3px;
    height: 20px;
    border-radius: 2px;
}

.editable-status-title {
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.editable-status-title:hover {
    background-color: #f1f5f9;
}

.editable-status-title:hover::after {
    content: "\f303";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.75rem;
    color: #94a3b8;
}

.editable-status-title:focus {
    outline: none;
    background-color: #eff6ff;
    border-bottom-color: #3b82f6;
    color: #1e3a8a;
    box-shadow: 0 4px 12px -4px rgba(59, 130, 246, 0.15);
}

.editable-status-title.save-success {
    border-bottom-color: #10b981 !important;
    color: #059669 !important;
}

.indicator-meeting {
    background: #8b5cf6;
}

.indicator-spec {
    background: #f97316;
}

.indicator-quote {
    background: #3b82f6;
}

.indicator-decision {
    background: #10b981;
}

.column-count {
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.status-new {
    background: #f5f3ff;
    color: #8b5cf6;
}

.status-progress {
    background: #fff7ed;
    color: #f97316;
}

.status-negotiation {
    background: #eff6ff;
    color: #3b82f6;
}

.status-won {
    background: #ecfdf5;
    color: #10b981;
}

.status-lost {
    background: #fdf2f2;
    color: #ef4444;
}

.phase-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.phase-new-biz {
    background: #e0f2fe;
    color: #0369a1;
}

.phase-upsell {
    background: #fef3c7;
    color: #b45309;
}

.phase-renewal {
    background: #dcfce7;
    color: #15803d;
}

.phase-replacement {
    background: #e0e7ff;
    color: #4338ca;
}

.phase-test {
    background: #ccfbf1;
    color: #0d9488;
}

.phase-warranty {
    background: #ffe4e6;
    color: #e11d48;
}

.phase-pilot {
    background: #f5f3ff;
    color: #7c3aed;
}

.card-priority {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
}

.add-card-btn {
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 1.1rem;
}

.add-card-btn:hover {
    color: #475569;
}

.kanban-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    user-select: none;
    position: relative;
    border: 1px solid transparent;
}

.kanban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
}

.card-priority {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-priority::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.priority-high {
    background: #fee2e2;
    color: #ef4444;
}

.priority-high::before {
    background: #ef4444;
}

.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.priority-medium::before {
    background: #d97706;
}

.priority-low {
    background: #dcfce7;
    color: #16a34a;
}

.priority-low::before {
    background: #16a34a;
}

.card-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-details {
    font-size: 0.85rem;
    color: #64748b;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    align-items: center;
}

.detail-label {
    color: #475569;
    font-weight: 600;
    font-size: 0.8rem;
}

.detail-value {
    color: #1e293b;
    font-weight: 500;
    font-size: 0.85rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.card-team {
    display: flex;
}

.team-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: -10px;
    object-fit: cover;
    background: #e2e8f0;
}

.card-actions {
    display: flex;
    gap: 15px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-item i {
    font-size: 0.9rem;
}

/* Nav Tabs for Board */
.board-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.board-tab {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.report-filter-select {
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filter-select:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.text-purple {
    color: #8b5cf6 !important;
}

.text-primary {
    color: #3b82f6 !important;
}


.board-tab.active {
    background: #0b1426;
    color: #fff;
}

/* Drag and Drop Feedback */
.kanban-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
    transform: scale(0.98);
}

.board-column.drag-over {
    background-color: #eff6ff !important;
    border: 2px dashed #3b82f6 !important;
}

/* Notification Dropdown */
.notification-btn {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: 45px;
    right: -10px;
    width: 380px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: none;
    border: 1px solid #edf2f7;
    overflow: hidden;
    text-align: left;
}

.notification-dropdown.active {
    display: block;
    animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-header {
    padding: 18px 24px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header span {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a202c;
}

.mark-as-read {
    font-size: 0.85rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.dropdown-body {
    max-height: 450px;
    overflow-y: auto;
}

.activity-item {
    padding: 16px 24px;
    display: flex;
    gap: 16px;
    border-bottom: 1px solid #f7fafc;
    transition: all 0.2s;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: #f8fafc;
}

.activity-item.unread {
    background: #f0f7ff;
}

.activity-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
}

.activity-info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a5568;
}

.activity-info strong {
    color: #1a202c;
}

.activity-info span {
    color: #3b82f6;
    font-weight: 500;
}

.activity-time {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 6px;
    display: block;
}

.dropdown-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #edf2f7;
    background: #f8fafc;
}

.dropdown-footer a {
    font-size: 0.9rem;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
}

/* Activity Icon Colors */
.bg-blue-light {
    background: #e6f0ff;
}

.bg-green-light {
    background: #ecfdf5;
}

.bg-orange-light {
    background: #fff7ed;
}

.bg-purple-light {
    background: #f5f3ff;
}

.text-blue {
    color: #2563eb;
}

.text-green {
    color: #059669;
}

.text-orange {
    color: #d97706;
}

.text-purple {
    color: #7c3aed;
}

@keyframes slideInDown {
    from {
        transform: translateY(-15px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Modal Custom Styling */
.custom-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.custom-modal .modal-xl {
    max-width: 1100px;
}

.text-dark-blue {
    color: #0b1426;
}

.form-label-custom {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.form-control-custom {
    width: 100%;
    padding: 10px 15px;
    background: #f4f6f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2d3748;
    transition: all 0.2s;
}

.form-control-custom:focus {
    background: #fff;
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control-custom[readonly] {
    background: #f4f6f9;
    color: #a0aec0;
}

.form-select-custom {
    width: 100%;
    padding: 10px 15px;
    background: #f4f6f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2d3748;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234a5568' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C2.185 5.355 2.401 5 2.827 5h9.435c.427 0 .642.355.376.658l-4.796 5.482a.5.5 0 0 1-.748 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-select-custom:disabled {
    background-color: #f4f6f9;
    color: #a0aec0;
    opacity: 1;
}

/* Tags in Modal */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 10px;
    background: #f4f6f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-height: 43px;
    align-items: center;
}

.tag-item {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.close-tag {
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.6;
}

.close-tag:hover {
    opacity: 1;
    color: #e53e3e;
}

.tag-add {
    margin-left: auto;
    color: #4a5568;
    cursor: pointer;
}

/* Input Group Icon */
.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-text-custom {
    position: absolute;
    right: 15px;
    color: #a0aec0;
    pointer-events: none;
}

/* File Upload UI */
.file-upload-custom {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-file-upload {
    padding: 8px 15px;
    background: #0b1426;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-file-upload.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.file-name {
    padding: 10px 15px;
    background: #f4f6f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #a0aec0;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Buttons */
.btn-dark-custom {
    background: #0b1426;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
}

.btn-dark-custom:hover {
    background: #1a2a44;
    color: #fff;
}

.btn-primary-custom {
    background: #0b509d;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
}

.btn-primary-custom:hover {
    background: #0d60be;
    color: #fff;
}

.btn-next-custom {
    background: #0b509d;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 45px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-next-custom:hover {
    background: #0d60be;
    color: #fff;
}

.system-collapsed-row {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.system-collapsed-row:hover {
    background: #f1f5f9;
}

/* Deal Details Page Styles */
.bg-soft-primary {
    background-color: #e6f0ff;
}

.bg-soft-purple {
    background-color: #f3e8ff;
}

.bg-soft-pink {
    background-color: #fce7f3;
}

.bg-soft-green {
    background-color: #dcfce7;
}

.bg-soft-yellow {
    background-color: #fef9c3;
}

.bg-soft-orange {
    background-color: #ffedd5;
}

.bg-soft-info {
    background-color: #e0f2fe;
}

.bg-soft-indigo {
    background-color: #e0e7ff;
}

.text-purple {
    color: #9333ea;
}

.text-pink {
    color: #db2777;
}

.text-green {
    color: #16a34a;
}

.text-yellow {
    color: #ca8a04;
}

.text-orange {
    color: #ea580c;
}

.text-indigo {
    color: #4f46e5;
}

.text-premium-grey {
    color: #64748b !important;
}


.info-item-custom {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-label {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-bottom: 2px;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0;
}

/* Timeline */
.timeline-custom {
    position: relative;
    padding-left: 8px;
}

/* Single timeline entry */
.timeline-item {
    position: relative;
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
    border-radius: 14px;
    padding: 2px 4px 2px 0;
}

/* Vertical line segment per item */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -20px;
    width: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 0;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:hover {
    transform: translateX(3px);
    opacity: 0.95;
}

.timeline-item:hover .timeline-content {
    border-color: #bfdbfe;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.10);
}

/* Icon circle */
.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    flex-shrink: 0;
    font-size: 0.95rem;
    border: 2.5px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.18);
}

/* Content card */
.timeline-content {
    flex: 1;
    background: #ffffff;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid #e8edf5;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    min-width: 0;
}

/* Small left connector notch */
.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 14px;
    width: 8px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
}

/* Typography inside the card */
.timeline-content h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-content .timeline-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.timeline-content .timeline-amount {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

/* Status badge — small pill */
.timeline-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    line-height: 1.6;
    letter-spacing: 0.01em;
}


/* Attachments */
.attachment-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #edf2f7;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.attachment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.attachment-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-size {
    font-size: 0.7rem;
    color: #a0aec0;
}

/* Misc Detail Page */
.rounded-4 {
    border-radius: 1rem !important;
}

.bg-soft-primary {
    background-color: #e0f2fe !important;
}

.opacity-10 {
    opacity: 0.1 !important;
}

/* Sales Forecast Report Styles */
.report-page-container {
    padding: 30px;
    background-color: #f8f9fc;
}

.report-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.report-title-area h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}

.report-title-area p {
    color: #718096;
    font-size: 0.95rem;
}

.report-filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.report-filter-select {
    min-width: 220px;
    background-color: #fff;
    border: 1px solid #edf2f9;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234a5568' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C2.185 5.355 2.401 5 2.827 5h9.435c.427 0 .642.355.376.658l-4.796 5.482a.5.5 0 0 1-.748 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Multi-select Dropdown Styles */
.report-filter-multiselect {
    position: relative;
    min-width: auto;
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 220px;
    background: #fff;
    border: 1px solid #edf2f9;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    display: none;
}

.multiselect-dropdown.active {
    display: block;
}

.multiselect-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.multiselect-item:hover {
    background: #f8fafc;
}

.multiselect-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

.multiselect-item label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    flex-grow: 1;
}


/* Multi-select Search Styles */
.multiselect-dropdown {
    padding-top: 0 !important;
}

.multiselect-search-container {
    padding: 10px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-bottom: 1px solid #edf2f9;
    margin-bottom: 5px;
}

.multiselect-search-input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1px solid #edf2f9;
    border-radius: 8px;
    font-size: 0.8rem;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0aec0' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 13px;
    transition: all 0.2s;
}

.multiselect-search-input:focus {
    border-color: #3b82f6;
    background-color: #f8fbff;
}

.report-stats-card {
    background: #fff;
    border-radius: 15px;
    padding: 24px;
    border: none;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.report-stats-card:hover {
    transform: translateY(-3px);
}

.stats-label {
    display: block;
    color: #718096;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.stats-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.trend-indicator {
    font-size: 0.85rem;
    font-weight: 600;
}

.trend-up {
    color: #38a169;
}

.trend-down {
    color: #e53e3e;
}

.report-chart-card {
    background: #fff;
    border-radius: 15px;
    padding: 24px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.chart-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 25px;
}

.progress-group-report {
    margin-bottom: 20px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-label-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
}

.progress-label-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a202c;
}

.progress-bar-container {
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #0b509d;
    border-radius: 10px;
}

.stage-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.stage-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
}

.stage-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.stage-count {
    font-size: 0.85rem;
    color: #64748b;
}

.export-btn {
    background: #0b509d;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.export-btn:hover {
    background: #0d60be;
    box-shadow: 0 4px 12px rgba(11, 80, 157, 0.2);
}

.modal-premium .modal-content {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: visible;
}

.modal-premium .modal-header {
    background: linear-gradient(to right, #f8fafc, #ffffff);
    padding: 25px 30px;
    position: relative;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.modal-premium .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(to right, #e2e8f0, transparent);
}

.modal-section-title {
    font-size: 0.95rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #1e293b;
    margin: 35px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f1f5f9;
}

.input-group-premium {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-premium i {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.2s;
    z-index: 10;
}

.form-control-premium {
    padding: 12px 15px 12px 42px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #fcfdfe !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease-in-out !important;
    width: 100%;
}

.form-control-premium:focus {
    background-color: #fff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    transform: translateY(-1px);
}

/* Searchable Input (Datalist) */
input[list].form-control-premium {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e293b' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 0.9rem !important;
    padding-right: 2.8rem !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all 0.2s ease;
}

input[list].form-control-premium:hover {
    background-color: #f8fafc !important;
}

/* Custom Combobox (Select-or-Type) Styles */
.combobox-container {
    position: relative;
    width: 100%;
}

.combobox-container .form-control-premium {
    padding-right: 40px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C2.185 5.355 2.401 5 2.827 5h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 15px) center !important;
    background-size: 14px !important;
    cursor: pointer;
}

.combobox-container .error-icon-premium {
    right: 35px !important;
}

.combobox-container.is-invalid-premium .form-control-premium {
    padding-right: 60px !important;
}

.combobox-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    padding: 0;
    animation: comboboxFadeIn 0.2s ease-out;
}

@keyframes comboboxFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.combobox-dropdown.active {
    display: block;
}

/* Fixed Premium Select Dropdown (Escape overflow:hidden) */
.premium-select-dropdown {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    z-index: 3000;
    /* Ensure stays above all modals */
    max-height: 250px;
    overflow-y: auto;
    display: none;
    padding: 0;
    animation: comboboxFadeIn 0.2s ease-out;
}

.premium-select-dropdown.active {
    display: block;
}

.combobox-search-container {
    padding: 10px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-bottom: 1px solid #edf2f9;
}

.combobox-options {
    padding: 5px 8px 8px 8px;
}

.combobox-search-input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1px solid #edf2f9;
    border-radius: 8px;
    font-size: 0.8rem;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0aec0' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 13px;
    transition: all 0.2s;
}

.combobox-search-input:focus {
    border-color: #3b82f6;
    background-color: #f8fbff;
}

.combobox-item {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.combobox-item:hover {
    background: #f1f5f9;
    color: #1a202c;
    padding-left: 20px;
}

.combobox-item.no-results {
    color: #94a3b8;
    cursor: default;
    background: transparent !important;
    text-align: center;
    padding: 20px;
}

.input-group-premium:focus-within i {
    color: #3b82f6;
}

.premium-btn-save {
    background: linear-gradient(135deg, #0b509d 0%, #3b82f6 100%);
    border: none;
    color: #fff;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(11, 80, 157, 0.3);
}

.premium-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(11, 80, 157, 0.4);
    filter: brightness(1.1);
}

.premium-btn-cancel {
    background: #ffffff;
    border: 1.5px solid #dc3545;
    color: #dc3545;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.premium-btn-cancel:hover {
    background: #dc3545;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.premium-btn-grey {
    border: none;
    background: #64748b;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.premium-btn-grey:hover {
    background: #546478;
    color: #ffffff;
}

.premium-btn-delete {
    border: none;
    background: #dc3545;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-btn-delete:hover {
    background: #bb2d3b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.premium-icon-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0b509d 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 8px 20px -4px rgba(11, 80, 157, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.premium-icon-box:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 12px 24px -5px rgba(11, 80, 157, 0.5);
}

.premium-icon-box:hover::before {
    transform: translateX(100%);
}

.premium-icon-box i {
    z-index: 1;
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Modal Animations */
.modal.fade .modal-dialog {
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

.side-slider-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    display: none;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.side-slider {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    height: 100%;
    background: #ffffff;
    z-index: 1060;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
}

.side-slider.active {
    transform: translateX(0);
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.08);
}

.side-slider-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-slider-body {
    padding: 2rem;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: visible;
    background: #ffffff;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.side-slider-body::-webkit-scrollbar {
    width: 6px;
}

.side-slider-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.side-slider-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.side-slider-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 12px;
    background: #ffffff;
}

.slider-section-label {
    font-size: 0.95rem;
    font-weight: 850;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 2.5rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(to right, #f8fafc, transparent);
    border-left: 4px solid var(--primary-blue);
    border-radius: 4px 12px 12px 4px;
}

.slider-section-label:first-of-type,
form>div:first-child .slider-section-label {
    margin-top: 0.5rem;
}

.slider-section-label i {
    color: var(--primary-blue);
    font-size: 1rem;
    background: #e0f2fe;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(11, 80, 157, 0.1);
}

.slider-section-label::after {
    display: none;
}

.form-label-premium {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label-premium i {
    color: var(--primary-blue);
    font-size: 0.8rem;
    opacity: 0.7;
}

.input-slider-premium {
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 500;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.2s ease;
}

.input-slider-premium:disabled {
    background: #e9ecef !important;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

select.input-slider-premium,
input.input-slider-premium[readonly],
input[list].input-slider-premium {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
    cursor: pointer;
}

input[list].input-slider-premium::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 3rem;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}

.input-slider-premium:focus {
    background-color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(11, 80, 157, 0.12);
    outline: none;
    position: relative;
    z-index: 5;
}

/* Global Premium Button Styles */
.btn-primary {
    background: var(--primary-blue) !important;
    border: none !important;
    padding: 0.9rem 1.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(11, 80, 157, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-primary:hover {
    background: #09407d !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 15px rgba(11, 80, 157, 0.3) !important;
    color: #ffffff !important;
}

.activity-type-selector {
    display: flex;
    gap: 12px;
}

.activity-type-card {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-type-card i {
    font-size: 1.2rem;
    color: #64748b;
}

.activity-type-card span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
}

.activity-type-card:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.activity-type-card.active {
    background: #f0f7ff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.activity-type-card.active i,
.activity-type-card.active span {
    color: #3b82f6;
}

.remark-color-selector {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: #f8fafc;
    border-radius: 10px;
}

.remark-color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.remark-color-option:hover {
    transform: scale(1.1);
}

.remark-color-option.active {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 2px #fff inset;
}

/* Override global button styles specifically for the confirmation modal */
.btn-generic-confirm-primary {
    display: inline-block !important;
    border-radius: var(--bs-border-radius-sm) !important;
    padding: 6px 25px !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
}

/* Mandatory Field & Validation Styles */
.mandatory-star {
    color: #ef4444;
    font-weight: bold;
}

.invalid-feedback-premium {
    display: none;
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 5px;
    padding-left: 2px;
}

.is-invalid-premium .input-group-premium,
.is-invalid-premium .form-control-premium,
.is-invalid-premium .input-slider-premium,
.is-invalid-premium .form-select.input-slider-premium {
    border-color: #ef4444 !important;
}

.char-counter {
    font-size: 0.75rem;
    margin-top: 4px;
    height: 18px;
    transition: color 0.3s ease;
    color: #6c757d;
    /* Default gray */
}

.char-counter.warning {
    color: #fd7e14 !important;
    /* Orange */
}

.char-counter.danger {
    color: #dc3545 !important;
    /* Red */
}

.error-icon-premium {
    display: none;
    color: #ef4444 !important;
    position: absolute;
    right: 15px !important;
    left: auto !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.is-invalid-premium .error-icon-premium {
    display: block;
}

.is-invalid-premium .form-control-premium {
    padding-right: 40px !important;
}

/* Updated Filter Section Layout */
.filter-section {
    padding: 0 30px 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /* Keep on one row for hand-scroll */
    gap: 12px;
    cursor: grab;
    transition: transform 0.1s ease-out;
    will-change: transform;
    position: relative;
    overflow: visible;
}

.filter-section.dragging {
    cursor: grabbing;
    user-select: none;
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.filter-right-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    position: relative;
    flex-shrink: 0;
}

.filter-right-group.dragging {
    cursor: grabbing;
    user-select: none;
}

@media (max-width: 1300px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
        /* Ensure dropdowns can escape */
    }

    .filter-left,
    .filter-right-group {
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .filter-right-group {
        flex-direction: column;
        width: 100%;
    }

    .filter-right-group .report-filter-multiselect,
    .filter-right-group .search-activities,
    .filter-right-group .search-activities-premium {
        width: 100%;
    }

    .report-filter-select {
        width: 100%;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(400px, auto);
    /* Allow rows to grow beyond 400px if needed */
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-grid .report-chart-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #edf2f9;
    overflow: hidden;
    min-height: 0;
    /* enable children to shrink inside flex */
    overflow: visible;
    /* Allow card to grow with content */
    min-height: 0;
}

.dashboard-grid .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

/* make inner body fill the card so canvases expand to same height */
.dashboard-grid .card-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* canvas stretch to fill available area */
.dashboard-grid canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* product list and latest deals layout */
#latestDealsCard {
    min-height: 550px !important;
    /* Specific expansion for 5 items */
}

#revenueByProductList,
#latestDealsList {
    min-height: 0;
}

@media (max-width: 1300px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .dashboard-grid .report-chart-card {
        min-height: 400px;
    }
}

/* Remove underline for small "View All / See All" links inside dashboard cards */
.report-chart-card a,
.report-chart-card .text-primary {
    text-decoration: none !important;
}

.report-chart-card a:hover,
.report-chart-card .text-primary:hover,
.report-chart-card a:focus,
.report-chart-card .text-primary:focus {
    text-decoration: none !important;
}

/* Table Scrolling Utilities */
.table-scroll-premium {
    max-height: 450px;
    overflow: auto;
    position: relative;
}

.table-scroll-premium::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-scroll-premium::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 10px;
}

.table-scroll-premium::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.table-scroll-premium::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.table-scroll-premium th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8f9fc !important;
}

.adv-modal-content {
    border: none;
    border-radius: 18px;
    overflow: visible;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.adv-modal-header {
    background: #ffffff;
    color: #02101f;
    padding: 24px 28px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.adv-modal-header .btn-close {
    filter: none;
    opacity: 0.8;
    margin-top: 2px;
}

.adv-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #02101f;
    margin: 0;
}

.adv-modal-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 4px 0 0;
}

.adv-modal-body {
    padding: 24px 28px;
    background: #f9fafb;
}

.adv-presets-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #edf2f9;
    margin-bottom: 20px;
}

.adv-presets-bar-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.adv-presets-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #4b5563;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adv-presets-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.adv-no-presets {
    font-size: 0.75rem;
    color: #9ca3af;
    font-style: italic;
}

.adv-preset-select {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    font-size: 0.875rem;
    color: #334155;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.adv-preset-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #d1d5db;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.adv-preset-delete-btn:hover:not(:disabled) {
    color: #ef4444;
    border-color: #fecaca;
    background: #fef2f2;
}

.adv-btn-save-preset {
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px !important;
    background: #0b509d;
    border: 1px solid #09407e;
    color: #fff;
    border-radius: 9999px;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.adv-btn-save-preset:hover {
    background: #09407e;
    border-color: #07305e;
    color: #fff;
}

.adv-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 16px 0;
}

.adv-label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4b5563 !important;
}

.adv-date-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.adv-date-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.adv-date-input {
    padding-left: 36px !important;
}

.adv-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.adv-input-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.adv-icon-input {
    padding-left: 36px !important;
}

.adv-modal-footer {
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.adv-btn-reset {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    background: transparent;
    border: 1px solid #d1d5db;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.adv-btn-reset:hover {
    background: #f9fafb;
    color: #111827;
    border-color: #9ca3af;
}

.adv-btn-apply {
    min-width: 130px;
}

.active-filter-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    flex: 1 1 0;
    min-width: 0;
    border-radius: var(--input-radius);
}

.chips-divider {
    width: 1px;
    height: 16px;
    background: #e1e7f0;
    flex-shrink: 0;
    margin: 0 4px;
}

.chips-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.chips-inner::-webkit-scrollbar {
    height: 4px;
}

.chips-inner::-webkit-scrollbar-track {
    background: transparent;
}

.chips-inner::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.chips-inner::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.filter-chip {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 12px;
    background: #e7f0fa;
    color: #07305e;
    border: 1px solid #a0c0ec;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: chipIn 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes chipIn {
    from {
        transform: scale(0.75);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.filter-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #a0c0ec;
    color: #07305e;
    font-size: 8px;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.filter-chip-remove:hover {
    background: #0b509d;
    color: #fff;
}

.chip-clear-all {
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    padding: 3px 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.chip-clear-all:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #ef4444;
}

/* Dashboard Settings - Premium Toggle Switches */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider-toggle {
    background-color: #3b82f6;
}

input:checked+.slider-toggle:before {
    transform: translateX(22px);
}

.customization-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.customization-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.customization-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

/* Monthly Trend Analysis - Activity Report Transitions */
.ar-chart-toggle {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
}

.ar-toggle-btn {
    border: none;
    background: transparent;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ar-toggle-btn.active {
    background: #fff;
    color: #0b509d;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.ar-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ar-chart-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border-radius: 15px;
}

/* Dashboard Settings Redesign Styles */
.customization-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Attachment Management in Edit Slider */
.edit-attachment-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.edit-attachment-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.edit-attachment-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.edit-attachment-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.edit-attachment-info {
    flex: 1;
    min-width: 0;
}

.edit-attachment-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edit-attachment-size {
    font-size: 0.75rem;
    color: #94a3b8;
}

.edit-attachment-actions {
    display: flex;
    gap: 8px;
}

.btn-edit-attachment-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-attachment-action:hover {
    background: #f1f5f9;
    color: #3b82f6;
    border-color: #bfdbfe;
}

.btn-edit-attachment-action.delete-attachment-btn:hover {
    color: #ef4444;
    border-color: #fecaca;
    background: #fef2f2;
}

.edit-attachment-upload-zone {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-attachment-upload-zone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.edit-attachment-upload-zone i {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.edit-attachment-upload-zone p {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.edit-attachment-upload-zone span {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Bulk Attachment Actions */
.edit-attachment-bulk-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.bulk-selection-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.bulk-actions-btns {
    display: flex;
    gap: 8px;
}

.btn-bulk-action {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-bulk-delete {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}

.btn-bulk-delete:hover {
    background: #fee2e2;
}

.btn-bulk-select-all {
    background: #fff;
    color: #64748b;
    border-color: #e2e8f0;
}

.btn-bulk-select-all:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.edit-attachment-checkbox-wrapper {
    margin-right: 8px;
}

.edit-attachment-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    accent-color: #3b82f6;
}

.slider-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 4px;
    margin-bottom: 12px;
}