@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    background-color: #e8e8e8;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 0;
    font-weight: 400;
}

.main-sec {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Dashboard card */
.dashboard-card {
    /* background: #fff; */
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    overflow: visible;
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    border-radius: 4px 4px 0 0;
    overflow: visible;
    background: #fff;
}

.brand-logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-right: 8px;
}

.brand-logo span {
    color: #22c55e;
}

.download-link {
    font-size: 18px;
    color: #000;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 400;
    line-height: 100%;
    font-family: "Poppins", sans-serif;
}

.download-link:hover {
    color: #000;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.btn-filter,
.btn-daterange {
    background: #fff;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 4px;
    font-weight: 400;
    padding: 5px 12px;
    font-size: 15px;
    color: #393939;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: "Poppins", sans-serif;
}

.btn-filter:hover,
.btn-daterange:hover {
    background: #f5f5f5;
}

.search-box {
    position: relative;
}

.search-box input {
    border: 2px solid #E3E3E3;
    border-radius: 5px;
    padding: 11px 12px 11px 42px;
    font-size: 14px;
    width: 303px;
    font-weight: 400;
    outline: none;
    font-family: "Poppins", sans-serif;
    color: #4A4A4A;
}

.search-box input::placeholder {
    font-size: 14px;
    font-weight: 400;
    color: #4A4A4A !important;
}

.search-box input:focus {
    border-color: #22c55e;
}

.search-box .bi-search {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
    font-size: 14px;
}

/* Sidebar */
.sidebar {
    width: 300px;
    min-width: 210px;
    border-right: 1px solid #eee;
    padding: 16px 0;
    background: #fff;
}

.sidebar-btn {
    display: block;
    width: calc(100% - 24px);
    margin: 0 12px 6px;
    padding: 14px 24px;
    border-radius: 4px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 15px;
    font-weight: 400;
    color: #393939;
    line-height: 100%;
    cursor: pointer;
    transition: background 0.15s;
    font-family: "Poppins", sans-serif;
}

.sidebar-btn:hover {
    background: #f0f0f0;
}

.sidebar-btn.active {
    background: rgba(0, 188, 41, 1);
    color: #fff;
    font-weight: 400;
}

.sidebar-btn .badge-count {
    font-size: 11px;
    opacity: 0.8;
    margin-left: 4px;
}

/* Table */
.table-area {
    flex: 1;
    overflow-x: auto;
    padding: 50px 50px 28px 50px;
    background: #f4f4f4;
}

.data-table-block {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #DADADA !important;
    box-shadow: 0px 4px 4px 0 rgba(0, 0, 0, 0.25);
    margin-bottom: 28px;
    overflow: auto;
}

.data-table-block table.data-table {
    border: none;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.data-table thead tr {
    border-top: none;
    border-bottom: 1px solid #ddd;
}

.data-table thead th {
    padding: 34px 10px;
    font-weight: 700;
    color: #393939;
    white-space: nowrap;
    background: #fff;
    font-size: 15px;
    line-height: 100%;
    font-family: "Poppins", sans-serif;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(203, 203, 203, 1);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    border-right: 1px solid rgba(203, 203, 203, 1);
}

.data-table tbody td:last-child {
    border-right: none;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

.data-table tbody td {
    /* padding: 20px; */
    padding: 16px;
    color: #393939;
    vertical-align: middle;
    font-weight: 400;
    font-size: 15px;
    font-family: "Poppins", sans-serif;
}

.data-table thead th,
.data-table tbody td {
    min-width: 85px;
    text-align: center;
}

.data-table tbody td:first-child {
    text-align: left;
}

/* Pagination */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    /* border-top: 1px solid #eee; */
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    background: #f4f4f4;
}

.pagination-bar .pages-listing {
    position: absolute;
    right: 0px;
}

.page-nums {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #fff;
    font-size: 12px;
    color: rgba(72, 72, 72, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-family: "Poppins", sans-serif;
    outline: none;
}

.page-nums .page-btn:first-child,
.page-nums .page-btn:last-child {
    font-size: 22px;
    line-height: 100%;
}

.page-btn:hover {
    background: #eee;
}

.page-btn.active {
    background: #22c55e;
    color: #fff;
}

.page-btn.arrow {
    color: #666;
}

.page-info {
    font-size: 15px;
    color: rgba(74, 74, 74, 1);
    font-weight: 400;
    font-family: "Poppins", sans-serif;
}

.per-page-select {
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 3px 8px;
    color: #333;
    cursor: pointer;
    outline: none;
}

/* FILTER - Step 1: main list */
.filter-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    min-width: 165px;
    padding: 6px 0;
}

.filter-menu.show {
    display: block;
}

.filter-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    font-size: 15px;
    color: rgba(57, 57, 57, 1);
    cursor: pointer;
    gap: 18px;
    user-select: none;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
}

.filter-menu-item:hover,
.filter-menu-item.open {
    background: #f5f5f5;
}

.filter-menu-item .chevron {
    font-size: 10px;
    color: #999;
}

/* FILTER — Step 2: sub-panel */
.filter-sub {
    display: none;
    position: absolute;
    top: -6px;
    left: calc(100% + 4px);
    z-index: 1001;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    padding: 12px 14px;
    min-width: 185px;
    max-height: 350px;
    overflow: auto;
    font-family: "Poppins", sans-serif;
}

.filter-sub.show {
    display: block;
}

.filter-sub-title {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 8px;
    font-family: "Poppins", sans-serif;
    line-height: 100%;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    cursor: pointer;
    font-size: 15px;
    color: rgba(57, 57, 57, 1);
    white-space: nowrap;
    line-height: 100%;
    font-family: "Poppins", sans-serif;
}

.filter-item .count {
    color: #999;
    font-size: 11px;
    margin-left: 2px;
}

.filter-item .link-year {
    color: #1a6bff;
    text-decoration: none;
}

/* Date range dropdown */
.daterange-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    min-width: 140px;
    overflow: hidden;
}

.daterange-panel.show {
    display: block;
}

.daterange-item {
    padding: 9px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.daterange-item:hover {
    background: #f5f5f5;
}

.daterange-item.selected {
    font-weight: 600;
}

/* layout */
.content-row {
    display: flex;
    min-height: 520px;
}

/* ─── Custom Checkbox ─── */
.customcheckbox-block {
    min-width: 16px;
    max-width: 16px;
    min-height: 16px;
    max-height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(207, 207, 207, 1);
    border-radius: 1.3px;
    flex-shrink: 0;
}

/* The visual label fills the box */
.customcheckbox-block .customCheckbox-label {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
}

/* The real input sits on top (invisible, fully clickable) */
.customcheckbox-block input[type="checkbox"] {
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: 0;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: pointer;
    margin: 0;
}

.customcheckbox-block input[type="checkbox"]:checked+.customCheckbox-label::after,
.customcheckbox-block .customCheckbox-label.is-checked::after {
    content: "";
    width: 10px;
    height: 8px;
    position: absolute;
    top: 50%;
    left: 2px;
    background: url(/wp-content/themes/srapanycar/assets/dashboard/images/tickIcon.svg);
    background-size: contain;
    z-index: 1;
    opacity: 1;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -5px;
}
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;           /* full screen height */
    position: sticky;
    top: 0;
}

.menu-top {
    flex: 1;
}

.sidebar-bottom {
    padding: 15px;
    border-top: 1px solid #ddd;
    position: fixed;
    bottom: 0;
    min-width: 300px;
}
.logout-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #e74c3c;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}

.logout-btn:hover {
    background: #c0392b;
}
#customDateRange input {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
#applyDate {
    width: 100%;
    padding: 8px;
    background: rgb(0 188 41);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}
#customDateRange {
    padding: 0 10px 15px 10px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    background: #f1f3f5;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tag span {
    cursor: pointer;
    font-weight: bold;
}

.reset-btn {
    margin-left: auto;
    background: #fff;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.reset-btn:hover {
    background: #e74c3c;
    color: #fff;
}
#activeFilters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #fff;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #dadada;
}

.tag span {
    /* margin-left: 8px; */
    cursor: pointer;
    color: red;
}
@media screen and (max-width: 768px) {
    .table-area {
        padding: 14px !important;
    }
}