/* Global resets & typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
* {
    font-family:
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

/* Layout: header + sidebar + content */

body {
    background: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

:root {
    --accent: #2563eb;
    --accent-soft: rgba(59, 130, 246, 0.2);
}

.d-flex.flex-column {
    min-height: 100vh;
}

/* header {
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.06);
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
} */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.06);
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000; /* Add this */
    height: 90px; /* Set a fixed height - adjust as needed */
}

header > div {
    display: flex;
    align-items: center;
}

/* Logo + search + header actions */
.sitelogo {
    width: 18.3%;
    /* border-right: 0.5px solid #1A1A1A; */
    margin-right: 20px;
}

.sitelogo img {
    width: 100%;
    height: 90px;
}

.search-main {
    position: relative;
    width: 16%;
}

.search-main input {
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 10px 40px 10px 10px;
    width: 100%;
    background: #f8f9fa;
    color: #1f2937;
    transition: all 0.3s ease;
}

.search-main input:focus {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    outline: none;
}

.search-main img {
    position: absolute;
    right: 15px;
    top: 12px;
    width: 20px;
}

.header-notifications {
    width: 65.7%;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
    gap: 20px;
}

.header-notifications img,
.filter {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-notifications img:hover,
.filter:hover {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
}

/* Notification Bell & Dropdown */
.notification-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-bell img {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
}

.notification-bell img:hover {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #0f0f0f;
    line-height: 1;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 380px;
    max-height: 480px;
    background: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow: hidden;
}

.notification-dropdown.open {
    display: block;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #1e293b;
}

.notification-dropdown-header h6 {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s;
}

.mark-all-read-btn:hover {
    color: #60a5fa;
}

.notification-dropdown-body {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.6);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(59, 130, 246, 0.08);
}

.notification-item.unread {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid #3b82f6;
}

.notification-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.notification-icon-circle.batch {
    background: rgba(59, 130, 246, 0.2);
}

.notification-icon-circle.convert {
    background: rgba(34, 197, 94, 0.2);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-message {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: #6b7280;
    margin-top: 3px;
}

.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 13px;
}

input[type='search']::-webkit-search-cancel-button {
    display: none;
}

body img,
.map-vectors > svg {
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    position: fixed; /* Changed from sticky */
    top: 90px; /* Height of your header */
    left: 0;
    bottom: 0; /* Stretch to bottom */
    display: flex;
    flex-direction: column;
    width: 18%;
    padding-left: 40px;
    padding-top: 25px;
    gap: 15px;
    border-right: 1px solid #1f2937;
    background-color: #0f172a;
    z-index: 999;
    overflow-y: auto; /* Scroll inside sidebar if needed */
    height: calc(100vh - 90px); /* Full height minus header */
}

.sidebar a {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 400;
    background-color: transparent;
    padding: 8px 10px;
    margin-right: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    transition-duration: 0.2s;
    border-radius: 8px;
    color: #ffffff !important;
}

.sidebar a svg {
    padding: 8px;
    background: #e0e0e0;
    border-radius: 8px;
    box-sizing: content-box;
}

.sidebar a:hover {
    border: 1px solid #374151;
}

.sidebar_active {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
}

/* Main content layout */

.page-content {
    display: flex;
    flex: 1;
    overflow-y: visible;
    background: linear-gradient(to bottom, #0f172a, #020617);
}

.content-main {
    width: 82%;
    background: #020617;
    padding: 5px 40px 40px 40px;
    overflow-x: auto;
    margin-left: 18%; /* Push content to right of sidebar */
    margin-top: 80px; /* Push content below header */
    height: auto; /* Allow natural page height */
    overflow-y: visible; /* Use single page scrollbar */
    color: #000000;
}

/* Dashboard typography */
.dashboard h3 {
    font-size: 28px;
    color: #ffffff;
}
.content-main h3 {
    color: #ffffff;
    padding-top: 18px;
}
.year_sale {
    font-size: 28px;
    font-weight: 500;
    color: #9ca3af;
}

.sales-year {
    font-size: 32px;
    font-weight: 500;
    color: #9ca3af;
    margin: 15px 0;
}

.sales-amount {
    font-size: 32px;
    color: #ffffff;
    text-align: right;
    font-weight: 700;
}

.active_item {
    color: #60a5fa;
}

.sign_in {
    color: #ffffff;
    background-color: #2563eb !important;
}

.forgot-password-link {
    color: #e5e7eb;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.forgot-password-link:hover,
.forgot-password-link:focus {
    color: #93c5fd;
    background-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    text-decoration: none;
    outline: none;
}

/* Cards & graphs */
.sales-main-graph,
.sales-record-main {
    display: flex;
    gap: 1.5%;
}

.sales-main-graph > div,
.region-map-main,
.sales-record-main > div {
    background: linear-gradient(135deg, #0f172a 0%, #1a1f3a 100%);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.sales-main-graph > div:hover,
.region-map-main:hover,
.sales-record-main > div:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 12px 48px rgba(37, 99, 235, 0.15);
}

.content-main > div {
    margin-top: 20px;
}

.sales-main-graph .wd-sm {
    width: 30%;
}

.sales-main-graph .wd-bg {
    width: 40%;
}

.graph-section-icons,
.sales-resp {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar {
    background: #4b5563;
    padding: 5px;
    border-radius: 8px;
}

.filter {
    height: 32px;
    display: block;
}

.filter-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.filter-button {
    background: transparent;
    border: none;
    padding: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Align Sales calendar icon with other block icons */
.sales-main-graph > .wd-sm:first-child .sales-resp {
    align-items: flex-start;
}

.sales-main-graph > .wd-sm:first-child .filter-dropdown {
    margin-top: 2px;
}

.filter-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background: #0f172a;
    border: 1px solid #1f2937;
    border-radius: 8px;
    min-width: 140px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    padding: 6px;
    display: none;
    z-index: 20;
}

.filter-menu.open {
    display: block;
}

.filter-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #e5e7eb;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
}

.filter-menu-item:hover {
    background: #1f2937;
    color: #ffffff;
}

.chart-groups .apexcharts-align-center {
    position: unset !important;
}

.sales-resp h4,
.new-followup-table-main .graph-section-icons h4 {
    font-size: 20px;
    color: #e5e7eb !important;
}

.sales-resp p {
    font-size: 12px;
    color: #9ca3af;
}

.sales-resp h3 {
    font-weight: 700;
    color: #ffffff;
}

/* Region map and reps */
.region-map {
    display: flex;
    align-items: center;
}

.sales-by-region {
    width: 79%;
}

.region-map > div:last-of-type {
    width: 5%;
}

.region-map > div:last-of-type img {
    float: right;
}

.sales-by-region h3 {
    font-size: 18px;
    color: #ffffff;
}

.map-vectors {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-vectors > svg:last-of-type {
    position: relative;
    right: 47px;
    bottom: 87px;
}

.top-representatives {
    width: 60%;
}

.sales-record {
    width: 40%;
}

/* Filters & widths */
.search-employee {
    width: 30% !important;
}

.filter-employee {
    width: 10% !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.representativesales {
    width: 60% !important;
}

.dental-offices {
    width: 40% !important;
}

/* Category table */
.category-search > select {
    padding: 5px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
}

.category-table {
    width: 100%;
}

.category-table tr > td:first-of-type {
    width: 9%;
}

.category-table tr > td:first-of-type img,
.dental-office-name-img img {
    padding: 8px;
    background: #e0e0e0;
    border-radius: 50%;
}

.dental-office-name {
    width: 35%;
    color: white;
}

.dental-office-receptive {
    color: white;
}

.email-button a {
    float: right;
}

.email-button button,
.new-followup-table button {
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 15px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #f3f4f6;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.email-button button:hover,
.new-followup-table button:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.6);
}

.email-button button img {
    margin-right: 5px;
}

.dental-offices-main > div {
    padding: 0 !important;
}

.dental-offices-main > div > div {
    padding: 12px !important;
}

.category-table-main {
    border-top: 1px solid #374151;
    height: 350px;
    overflow-y: auto;
}

.category-table td {
    padding-bottom: 15px !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 20rem;
}

/* Forms & modals */
.form-office-modal-dialog .modal-footer button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #f8f9fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.form-office-modal-dialog .modal-footer button:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.form-office-main {
    display: flex;
    gap: 7%;
    padding: 0 20px;
    flex-wrap: wrap;
}

.form-office-main > div:not(.text-area-parent) {
    width: 46.5%;
}

.form-office-main > div {
    display: flex;
    flex-direction: column;
}

.form-office-main label {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.form-office-main input,
.form-office-main textarea {
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
    color: #1f2937;
    transition: all 0.3s ease;
}

.form-office-main input:focus,
.form-office-main textarea:focus {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    outline: none;
}

.form-office-modal-footer {
    justify-content: center !important;
    border: none !important;
}

.form-office-modal-footer button {
    background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #f3f4f6;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
    width: 50%;
    min-width: fit-content;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-office-modal-footer button:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.text-area-parent {
    width: 100%;
    margin-top: 20px;
}

.description-textarea {
    height: 150px;
    resize: none;
}

.form-office-modal-dialog .close:focus {
    outline: none !important;
}

.form-office-modal-dialog .modal-header {
    border-bottom: 2px solid #374151 !important;
}

/* Dental office tables */
.dental-office-dashboard {
    overflow: hidden !important;
}

.dental-office-parent {
    margin: 12px 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.dental-office-content h3 {
    margin-bottom: 6px;
}

.dental-office-content .dental-office-parent .search-employee {
    width: auto !important;
    flex: 1 1 280px;
    max-width: 360px;
}

.dental-office-content .dental-category {
    padding-left: 0;
    flex: 0 0 200px;
}

.dental-office-content .search-main input,
.dental-office-content .category-search > select {
    height: 40px;
}

.dental-office-content .search-main img {
    top: 50%;
    transform: translateY(-50%);
}

.dental-office-content .dental-table-main {
    margin-top: 6px;
}

.dental-office-content h3 {
    margin-bottom: 6px;
}

.dental-office-content .dental-office-parent .search-employee {
    width: auto !important;
    flex: 1 1 280px;
    max-width: 360px;
}

.dental-office-content .dental-category {
    padding-left: 0;
    flex: 0 0 200px;
}

.dental-office-content .dental-table-main {
    margin-top: 6px;
}

.dental-table-main {
    border: unset !important;
    overflow: auto;
}

.dental-office-table-main {
    display: flex;
    align-items: center;
}

.dental-office-search {
    background-color: unset;
}

.dental-table-header {
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
}

.dental-table-main table {
    background: linear-gradient(135deg, #0f172a 0%, #1a1f3a 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dental-table-main tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.45);
}

.dental-table-main tr {
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    transition: background 0.2s ease;
}

.dental-table-main tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.dental-table-main td {
    padding: 12px;
    color: #f3f4f6;
}

.dental-table-main .empty-table-state {
    text-align: center;
    padding: 24px 12px;
    color: #9ca3af;
    font-weight: 500;
}

.dental-table-main .empty-table-state .empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.dental-table-main .empty-table-state {
    text-align: center;
    padding: 24px 12px;
    color: #9ca3af;
}

.dental-office-table {
    width: 100%;
}

.dental-office-table tr > td:first-of-type {
    width: 6%;
    font-weight: 600;
    padding-left: 20px;
}

.dental-office-name-img {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dental-office-name-img h6 {
    margin-top: 10px;
    color: #e5e7eb;
}

.dental-table-main .email-button a {
    float: left !important;
}

.dental-table-main tr td:last-of-type a {
    color: #9ca3af;
}

/* Pagination */
.main-pagination {
    display: flex;
    padding: 20px 0;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
}

.main-pagination > div:first-of-type {
    width: auto;
    font-size: 14px;
    color: #9ca3af;
}

.main-pagination nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    border-radius: 6px;
    border: 1px solid #1f2937;
    background: #020617;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
}

.pagination .page-item .page-link {
    padding: 8px 14px;
    text-decoration: none;
    font-size: 14px;
    color: #9ca3af;
    background: transparent;
    border: none;
    border-right: 1px solid #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 38px;
    line-height: 1;
    transition: all 0.2s ease;
}

.pagination .page-item:last-child .page-link {
    border-right: none;
}

.pagination .page-item .page-link:hover {
    background: #1e3a5f;
    color: #e5e7eb;
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: #4b5563;
    pointer-events: none;
    opacity: 0.5;
}

/* Fix oversized prev/next SVG icons */
.pagination .page-item .page-link svg {
    width: 16px;
    height: 16px;
}

/* Legacy plain anchor pagination fallback */
.pagination a {
    padding: 8px 14px;
    text-decoration: none;
    font-size: 14px;
    color: #9ca3af;
}

.pagination a:hover,
.pagination a:active {
    background: #1d4ed8;
    color: #e5e7eb;
    font-weight: 600;
    text-decoration: none;
}

/* New follow-up table */
.new-followup-table tbody tr {
    font-size: 18px;
    color: #ffffff;
    font-weight: 500;
}

.new-followup-table {
    overflow-y: auto;
    height: 370px;
}

.map-images {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-images img {
    width: 100%;
}

.new-followup-table table {
    width: 100%;
}

.new-followup-table tr td {
    padding: 10px;
}

.new-followup-table a {
    float: right;
}

.new-followup-table thead tr td {
    font-weight: 500;
    font-size: 18px;
    color: #e5e7eb;
}

.new-followup-table-main > div:first-of-type {
    width: 42% !important;
}

.new-followup-table-main .wd-sm {
    width: 29% !important;
}

.new-followup-table-main .graph-section-icons {
    align-items: center;
}

.new-followup-table-main .activities {
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

.activities-won {
    font-size: 32px;
    color: #ffffff;
    font-weight: 700;
}

.chart-groups {
    margin-bottom: 20px;
}

.form-office-modal-dialog .modal-footer {
    padding-bottom: 20px !important;
}

/* Footer */
.footer-copyright {
    display: flex;
    justify-content: center;
    padding: 20px 0px;
    background-color: #0f172a; /* Match dark theme */
    border-top: 1px solid #1f2937;
    margin-left: 18%; /* Align with content */
    width: 82%; /* Match content width */
    color: #ffffff; /* Add text color */
    margin-top: auto;
}

/* For mobile view */
@media screen and (max-width: 860px) {
    .footer-copyright {
        left: 0; /* Full width on mobile */
    }
}

/* Dental category header */
.dental-category {
    display: flex;
    padding-left: 20px;
}

.add-dental-button {
    width: auto !important;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.add-dental-button button {
    border: none;
    padding: 0 16px;
    height: 40px;
    border-radius: 6px;
    font-weight: 500;
    background: var(--accent);
    color: #ffffff;
}

/* Responsive controls & burger menu */
.burger-menu-button,
.sidebar-overlay,
.overlay-close {
    display: none;
}

/* Utility classes */
.form input {
    border: 1px solid #374151;
    outline: none;
}

select {
    border: 1px solid #374151 !important;
    outline: none;
    border-radius: 4px;
    padding: 10px;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #e0e0e0;
    color: #000000;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 100%;
    background-position-y: 50%;
    margin-right: 2rem;
    padding-right: 2rem !important;
}

span.text-danger {
    font-size: 10px;
    margin-top: 4px;
    color: #f87171;
}

/* Loader overlay */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    z-index: 9999;
}

#loader {
    border: 6px solid #1f2937;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.h-100vh {
    height: 100vh;
}

.whitespace-nowrap {
    white-space: nowrap;
}

/* Inputs */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Responsive breakpoints */
@media (min-width: 576px) {
    .form-office-modal-dialog {
        max-width: 700px !important;
    }
}

@media screen and (max-width: 1024px) and (min-width: 767px) {
    .search-main {
        width: 61.7%;
    }
    .search-main > input {
        width: 40% !important;
        float: right;
    }
    .header-notifications {
        width: 20%;
    }
    .page-content > div {
        width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    .page-content {
        height: unset !important;
        flex-direction: column;
    }
    .sidebar span {
        font-size: 15px !important;
    }
    .sidebar {
        flex-direction: row;
        padding-bottom: 20px;
    }
    header {
        padding: 10px 0;
    }
    .sales-year,
    .sales-amount {
        font-size: 22px;
    }
    .search-employee input {
        width: 100% !important;
    }
    .dental-office-name h5 {
        font-size: 16px !important;
    }
    .sidebar,
    .content-main {
        padding: 20px 10px 20px 20px !important;
    }
}
/* Tablet styles (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    /* Reset sidebar positioning for tablet */
    .sidebar {
        position: relative; /* Change from fixed to relative */
        top: 0; /* Reset top position */
        height: auto; /* Auto height */
        width: 100%; /* Full width */
        flex-direction: row; /* Horizontal layout */
        padding: 15px 20px; /* Adjust padding */
        border-right: none; /* Remove right border */
        border-bottom: 1px solid #1f2937; /* Add bottom border */
        margin-top: 0; /* No margin top */
        justify-content: space-around; /* Space items evenly */
        /* flex-wrap: wrap;  Allow wrapping if needed */
        z-index: 10; /* Keep above content */
    }

    /* Adjust sidebar links for horizontal layout */
    .sidebar a {
        padding: 8px 15px;
        margin: 0 5px;
        white-space: nowrap; /* Prevent text wrapping */
    }

    /* Adjust content area for tablet */
    .content-main {
        width: 100%;
        margin-left: 0;
        margin-top: 0; /* No margin since sidebar is now in flow */
        padding: 20px;
        height: auto;
    }

    /* Adjust page content layout */
    .page-content {
        flex-direction: column; /* Stack sidebar and content vertically */
    }

    /* Adjust footer */
    .footer-copyright {
        width: 100%;
        margin-left: 0;
    }

    /* If you have a fixed header, adjust body padding */
    body {
        padding-top: 0; /* Remove padding if header is not fixed on tablet */
    }

    /* Adjust header if it's fixed */
    header {
        position: relative; /* Make header relative on tablet */
        height: auto;
    }

    /* Ensure sidebar icons are properly sized */
    .sidebar a svg {
        padding: 6px;
        margin-right: 8px;
    }

    /* Optional: Reduce font size for tablet */
    .sidebar a span {
        font-size: 14px;
    }
}

@media screen and (max-width: 767px) {
    .burger-menu-button {
        display: block;
        background: #020617;
        padding: 20px 30px;
        position: absolute;
        right: 0;
        z-index: 90;
    }
    .sidebar-overlay {
        display: block;
        position: fixed;
        height: 100vh;
        top: 0;
        width: 100%;
        right: -100%;
        z-index: 1;
        background: #0000002e;
    }
    .overlay-close {
        display: block;
        border: none;
        background: none;
        font-size: 30px;
        position: absolute;
        right: 20px;
        top: 10px;
    }
    .burger-menu-button button {
        float: right;
        border: none;
    }
    .burger-menu-button button:focus,
    .overlay-close:focus {
        outline: none;
    }
    .page-content > div.content-main {
        width: 100%;
    }
    .map-vectors img {
        width: 100%;
        padding: 20px 0;
    }
    /* .sidebar {
        top: 0;
        width: 60% !important;
        flex-direction: column;
        position: fixed;
        background: #020617;
        height: 100vh;
        z-index: 90;
        gap: 15px;
        left: -60%;
    } */
    .sitelogo {
        width: 30%;
    }
    .search-main {
        width: 40% !important;
    }
    .search-main > input {
        width: 100%;
    }
    .header-notifications {
        width: 30%;
        gap: 5px !important;
    }
    .sales-main-graph,
    .sales-record-main {
        flex-direction: column;
        gap: 10px;
    }
    .sales-main-graph .wd-sm,
    .sales-main-graph .wd-bg,
    .top-representatives,
    .sales-record {
        width: 100%;
    }
    .sales-by-region {
        width: 46% !important;
    }
    .region-map > div:last-of-type {
        width: 14% !important;
    }
    .map-vectors > svg {
        width: 80%;
    }
    .map-vectors > svg:last-of-type {
        right: 37px;
        bottom: 177px;
    }
    .sales-by-region h3 {
        font-size: 16px !important;
    }
    .add-dental-button button {
        font-size: 14px;
    }
    .add-dental-button {
        width: 47% !important;
    }
    .dental-office-table-main {
        flex-wrap: wrap;
        gap: 20px;
    }
    .category-search {
        width: 45% !important;
    }
    .category-search select {
        float: right;
    }
    .dental-search {
        width: 100% !important;
    }
    .email-button button {
        display: flex;
        align-items: center;
    }
    .dental-table-main tr td:last-of-type a {
        font-size: 14px;
    }
    .dental-office-parent {
        flex-wrap: wrap !important;
        gap: 20px;
    }
    .dental-office-parent > div:first-of-type {
        width: 100% !important;
    }
    .dental-category {
        width: 47% !important;
        padding-left: 0;
    }
    .dp-none {
        display: none;
    }
    .dental-office-name-img h6 {
        font-size: 13px !important;
    }
    .dental-office-name h5 {
        font-size: 13px !important;
        padding-top: 20px;
        padding-left: 10px;
    }
    .category-table tr > td:first-of-type {
        padding-top: 20px;
    }
    .main-pagination {
        gap: 15px;
        flex-direction: column;
    }
    .main-pagination > div {
        width: unset !important;
    }
    .form-office-main {
        flex-direction: column;
    }
    .form-office-main > div:not(.text-area-parent) {
        width: 100%;
    }
    .new-followup-table-main > div:first-of-type,
    .new-followup-table-main .wd-sm {
        width: 100% !important;
    }
}
@media screen and (max-width: 767px) {
    /* For mobile, remove fixed positioning */
    header {
        position: relative;
        height: auto;
    }

    .sidebar {
        position: fixed; /* Keep fixed for mobile overlay */
        top: 0; /* Full screen on mobile */
        height: 100vh;
        width: 60% !important;
        left: -60%; /* Hidden by default */
        z-index: 1000;
    }

    .content-main {
        width: 100%;
        margin-left: 0;
        margin-top: 0; /* No header offset on mobile */
        height: auto; /* Auto height on mobile */
    }

    .footer-copyright {
        margin-left: 0;
        width: 100%;
    }

    body {
        padding-top: 0; /* Remove padding on mobile */
    }
}
