:root{
    --space: 20px;
}
body,html,::placeholder{
    font-family: var(--poppins);
}
.px-space{
    padding-inline: var(--space);
}
.py-space{
    padding-block: var(--space);
}
.circle-icon {
    background-color: rgb(245, 245, 245);
    border-radius: 50%;
    padding: 18px;
}
::-webkit-scrollbar {
    width: 4px;
    background-color:  rgb(227, 230, 240);
    height: 6px;
}
.right-0 {
    right: 0;
}
.font-14px {
    font-size: 14px;
}
.font-12px {
    font-size: 12px;
}
.bg-books-data {
    background-color: #b0cbef !important
}
.bg-portal-data {
    background-color: #abe7c8 !important;
}
.text-decoration-none {
    text-decoration: none !important;
}
.page-top-heading h1 {
    color: var(--black);
    font-size: 24px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.form-group [type="file"] {
    padding: 0;
    font-size: 16px;
}
.form-group [type="file"]::-webkit-file-upload-button {
    background: var(--gray-light);
    border: 2px solid var(--gray-light);
    color: var(--black);
    cursor: pointer;
    outline: none;
    padding: 4px 15px;
    transition: all 1s ease;
    text-align: left;
}
table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td.dtr-control:before {
    background-color: var(--primary) !important;
}
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control:before {
    background-color: var(--secondary) !important;
}
.logout-modal .modal-content {
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}
.logout-modal .modal-content img {
    width: auto;
    height: 115px;
}
.logout-modal .modal-dialog {
    max-width: 600px;
}
.logout-modal .modal-dialog .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0;
}
.logout-modal .modal-dialog .modal-body h2 {
    margin-top: 1rem;
    color: rgb(165, 165, 165);
}
.footer-btn .btn {
    width: 100%;
    padding: 12px;
    background: rgb(56, 56, 56);
    border: none;
}
.footer-btn {
    width: 100%;
    display: flex;
    gap: 10px;
}
.footer-btn .btn-primary {
    background: rgb(102, 102, 102);
}
.reco-box h2 {
    font-size: 24px;
}
.reco-list {
    background-color: rgba(var(--sidebar-foreground), .08);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.reco-list:hover {
    box-shadow: -1px 4px 18px rgb(0 0 0 / 7%);
}
.top-pages-btn a.active.nav-item.nav-link {
    color: rgba(var(--sidebar-foreground), .8);
    background-color: rgba(var(--sidebar-foreground), .05);
    font-weight: 500;

}
.top-pages-btn a.nav-item.nav-link {
    background: transparent;
    border: 0;
}
.small-title h1 {
    font-size: 16px;
}
.nav-link.back {
    background: #000 !important;
    color: #fff !important;
}
.view-summary-report span {
    color: var(--gray-dark);
}
.view-summary-report h6 {
    color: var(--black);
    font-weight: 500;
    font-size: 14px;
}
.scrollable-table {
    height: calc(100vh - 250px);
    overflow: auto;
}
.scrollable-table::-webkit-scrollbar {
    width: 5px;
}
.scrollable-table::-webkit-scrollbar-thumb {
    background: rgb(136, 136, 136);
}
.view-ledger-report .table th.bg-light-green,
.table td.bg-light-green {
    background-color: rgb(220, 249, 220);
    border: 1px solid rgb(158, 191, 158);
}
.sticky-table-list thead th {
    position: sticky;
    background-color: rgb(235, 235, 235);
}
.sticky-table-list thead tr:first-child th {
    top: 0;
    z-index: 3;
}
.sticky-table-list thead tr:nth-child(2) th {
    top: 42px;
    z-index: 2;
}
.search-hsn-table thead th,
.gst-list-summary-table thead th {
    position: sticky;
    top: 0;
    background-color: rgb(235, 235, 235);
    z-index: 2;
}
#img-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
#img-loader img {
    width: 55px;
    height: 55px;
    filter: brightness(0.5);
}
.img-loader-text {
    color: rgb(255, 255, 255);
    font-size: 24px;
    text-align: center;
    margin: 15px 0;
}
.card-body:has(.dataTables_wrapper) {
    padding: 1.25rem;
}
.client-row:hover {
    background-color: rgb(240, 248, 255);
    cursor: pointer;
}
.client-row.selected {
    background-color: rgb(214, 250, 255);
}
.table-danger.selected {
    background-color: rgb(248, 215, 218);
}
tr.client-row.table-danger.selected td {
    background-color: rgb(231, 191, 195) !important;
}
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.close-style {
    z-index: 2;
    right: 0;
}
.spinner {
    color: rgb(255, 255, 255);
    font-size: 24px;
    text-align: center;
}
.otp-authentication-modal h3 {
    color: rgb(51, 51, 51);
    font-weight: 600;
}
.otp-authentication-modal .otp-input {
    width: 40px;
    height: 40px;
    font-size: 24px;
    border-radius: 8px;
    border: 1px solid rgb(204, 204, 204);
}
.modal-body h3 {
    color: rgb(51, 51, 51);
    font-weight: 600;
}
#timer {
    color: var(--primary);
    font-weight: bold;
}
.otp-authentication-modal .otp-input:focus {
    border: 1px solid var(--primary);
    outline: none;
}
#dropdownFileType,
#dropdownFileTypetoggle {
    width: 167px;
    text-align: left;
}
.repozrt-dropdown .report-toggle {
    margin-top: 10px;
    padding: 7px 15px;
    max-width: 167px;
    margin: 5px 0;
    border: none;
    background: rgb(152, 154, 166);
    outline: none;
    color: rgb(255, 255, 255);
    border-radius: 5px;
    width: 100%;
}
.eventlist-table .form-control {
    height: 25px;
    padding: 0px 10px;
}
.eventlist-table .btn {
    padding: 2px;
}
.eventlist-table td .particulars-input,
.eventlist-table td .director-input {
    width: 250px;
}
.eventlist-table td .day-input {
    width: 110px;
}
.fs-30 {
    font-size: 30px !important;
}
.gap-5 {
    gap: 10px;
}
.fs-14 {
    font-size: 14px;
}
.max-w-127{
    max-width: 127px;
}
.border-top-left-1 {
    border-top-left-radius: 10px;
}
.border-top-right-1 {
    border-top-right-radius: 10px;
}
.table-style {
    overflow-x: auto;
    height: calc(75vh - 20px);
}
sidebar:hover {
    --sidebarwidth: 280px;
    width: var(--sidebarwidth);
    transition: all .2s ease-in-out;
}
.sidebar:hover .nav-item .nav-link .label,
.sidebar_open .drop-menu  {
    display: inline-block;
}
.h-full{
    height: 100%;
}
.drop-menu {
    display: none;
    width: 100%;
}
.sidebar:hover :is(.sidebar-divider, .sidebar-heading),
.sidebar:hover .nav-item .nav-link[data-toggle=collapse]::after,
.sidebar_open .nav-item .nav-link[data-toggle=collapse]::after {
    display: block;
}
:is(.sidebar-divider, .sidebar-heading),
.nav-item .nav-link[data-toggle=collapse]::after {
    display: none;
}
.drop-menu .collapse-item {
    opacity: .8;
}
.drop-menu .collapse-item:hover,
.collapse-item.active {
    opacity: 1;
}
.edit-profile {
    margin-right: 15px;
}
div .icon-btn,
div .full-btn {
    height: 32px;
    width: 32px;
    justify-content: center;
    background: var(--gray-light);
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: var(--secondary) !important;
    white-space: nowrap;
}
div .full-btn{
    width: auto;
}
div .icon-btn:hover,
div .full-btn:hover {
    filter: brightness(0.95);
}
div .icon-btn span,
div .full-btn span {
    color: rgb(0, 0, 0);
    font-size: 20px;
}
.gap-1 {
    gap: 6px;
}
div .profile_icon {
    font-size: 20px;
}
.profile-icon-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}
.tree-menu,
.tree-menu li {
    list-style: none;
}
.tree-menu {
    position: relative;
    padding-left: 22px;
}
.tree-menu::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 14px;
    width: 2px;
    background: #e5e7eb;
}
.tree-menu li {
    position: relative;
    margin: 6px 0;
}
.tree-menu li::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 14px;
    height: 2px;
    background: #e5e7eb;
    transform: translateY(-50%);
}
.check-with-content .form-group {
    border: solid 1px var(--ui-background-light);
    border-radius: var(--radius);
    padding: 12px;
}
.checkbox-style-fill input[type=radio] {
    width: 22px;
    height: 22px;
}
.checkbox-style-fill {
    display: flex;
    gap: 10px;
}
.check-with-content .form-group p {
    margin: 0;
    padding-left: 33px;
    font-size: 14px;
}
.sync-download {
    font-size: 18px !important;
    vertical-align: middle;
}
.status-sync{
    display:none;
    padding-left: 15px;
    background:#f8f9fa;
    border-radius:5px;
    padding-bottom: 1px;
    padding-top: 15px;
}

/* ================= POPUP OVERLAY ================= */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.sync-download {
    font-size: 18px !important;
    vertical-align: middle;
}
.status-sync{
    display:none;
    padding-left: 15px;
    background:#f8f9fa;
    border-radius:5px;
    padding-bottom: 1px;
    padding-top: 15px;
}

/* ================= POPUP BOX ================= */
.popup-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    max-width: 1063px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

/* ================= POPUP TITLE ================= */
.popup-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ================= CLOSE BUTTON ================= */
.close-btn {
    position: absolute;
    right: 14px;
    top: 12px;
    font-size: 26px;
    cursor: pointer;
    border: none;
    background: transparent;
}

/* ================= POPUP BODY ================= */
.agenda-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* ================= AGENDA ITEM ================= */
.agenda-item {
    margin-bottom: 18px;
}

.agenda-item label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 15px;
}

/* ================= AGENDA CONTENT ================= */
.agenda-content {
    font-size: 14px;
}

/* ================= POPUP FOOTER ================= */
.popup-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 12px;
    text-align: right;
}

.agenda-serial {
    font-weight: 600;
    color: #555;
    min-width: 24px;
}

.agenda-content table {
    width: 100%;
    margin: 15px 0;
}

.agenda-item-header {
    background: var(--gray-light);
    font-size: 16px;
    border-bottom: 3px solid var(--gray);
}

/* Editable header - styled like preview */
.block-header-edit {
    background: linear-gradient(135deg, #636364 0%, #808081 100%);
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: text;
    outline: none;
}

.block-header-edit:focus {
    background: linear-gradient(135deg, #828283 0%, #7f7e80 100%);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
}

/* Preview mode styles */
.markdown-content {
    color: #333;
}

.markdown-content h1 {
    font-size: 1.8em;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.markdown-content h2 {
    font-size: 1.5em;
    margin-top: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
}

.markdown-content h3 {
    font-size: 1.3em;
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

.markdown-content h4 {
    font-size: 1.1em;
    margin-top: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.markdown-content strong {
    font-weight: 600;
    color: #000;
}

.markdown-content em {
    font-style: italic;
}

.markdown-content table td,
.markdown-content table th {
    padding: 6px 10px;
    border: 1px solid #e3e6f0;
    font-size: 14px;
    color: var(--gray-dark);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.markdown-content table th {
    font-weight: 600;
    background-color: rgba(var(--sidebar-foreground), 0.08);
}

.markdown-content ul,
.markdown-content ol {
    margin: 10px 0;
    padding-left: 30px;
}

.markdown-content li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.markdown-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 15px;
    margin: 15px 0;
    color: #666;
    font-style: italic;
}

.markdown-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 20px 0;
}

.markdown-content code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.markdown-content pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
}

.notice-year {
    font-size: 0.9rem;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.tiles.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.tiles-link {
    border: 1px solid;
    border-radius: 10px;
}
.tiles-link:hover {
    color: #000;
}
.tiles-link .card-style {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
}
.tiles-hover .tiles-link {
    display: block;     
    border-radius: 12px;  
    transition: all 0.3s ease;
    cursor: pointer;
}
.tiles-hover .tiles-link:hover {
    transform: translateY(-4px);
}

.tiles-link.disabled {
    pointer-events: none;
    opacity: 0.55;
    cursor: not-allowed;
}

.icon-box {
    display: inline-flex;
    padding: 16px;
    border-radius: 999px;
}
.icon-box img {
    height: 36px;
    width: auto;
}
.content-area h6 {
    color: var(--secondary);
    font-size: 1rem;
    opacity: .8;
    padding-bottom: 4px;
}
.content-area h3 {
    color: var(--secondary);
    font-size: 2rem;
    font-weight: 600;
    line-height: .7;
}
.tiles-one {
    --c: 58 128 230;
}
.tiles-two {
    --c: 239 83 81;
}
.tiles-three {
    --c: 90 212 255;
}
.tiles-four {
    --c: 32 193 43;
}
.tiles-five {
    --c: 158 199 27;
}
.tiles-six {
    --c: 244 187 92;
}
.tiles-seven {
    --c: 254 118 168;
}
.tiles-eight {
    --c: 6 146 251;
}
.tiles-nine {
    --c: 255 58 58;
}
.tiles-ten {
    --c: 75 0 130;
}
.tiles-eleven {
    --c: 0 121 107;
}
.tiles-twelve {
    --c: 255 193 7;
}
.tiles-thirteen {
    --c: 96 125 139;
}
[class^="tiles-"] {
    background: rgb(var(--c) / 10%);
    border-color: rgb(var(--c) / 40%);
}
[class^="tiles-"] .icon-box {
    background: rgb(var(--c) / 30%);
}
.pricing-card {
    position: relative;
    transition: all 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-6px);
}
.pricing-card .description .material-symbols-outlined {
    color: var(--white);
    font-size: 20px;
    background: var(--gradient-button);
    border-radius: 50px;
    margin-right: 8px;
}
.pricing-card .fa-ul {
    margin-left: 1.5em !important;
}

/* ---------- Calendar ---------- */
body:has(.tiles),
body:has(.tiles) #wrapper #content-wrapper {
    background: #fff;
}
.calendar-table {
    border-collapse: separate;
    border-spacing: 8px;
}
.calendar-table thead th {
    text-align: center;
    font-weight: 400;
    background-color: transparent;
}
.calendar-table td,
.arrows {
    width: 56px;
    height: 56px;
    background: var(--ui-background-lightest);
    border-radius: 12px;
    font-size: 20px;
    color: #000;
    text-align: center;
}
.arrows:hover {
    background: var(--ui-background-light);
}
.arrows {
    align-content: center;
    text-align: center;
}
.calendar-table .empty-day {
    background: #fdfdfd;
    cursor: not-allowed;
}
.date-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: .9rem;
    font-weight: 600;
    transition: transform .25s ease;
    position: relative;
    text-decoration: none;
}
.date-circle:hover {
    transform: scale(1.08);
}
.issue-circle {
    --c: 13 110 253;
}
.due-circle {
    --c: 220 53 69;
}
.issue-circle,
.due-circle {
    background: rgb(var(--c) / 15%);
    border: 2px solid rgb(var(--c));
    color: rgb(var(--c));
}
.issue-circle.due-circle {
    background: linear-gradient(135deg,rgb(13 110 253 / .2),rgb(220 53 69 / .2));
    border: 2px solid transparent;
}
.issue-circle.due-circle::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #dc3545);
    z-index: -1;
}

/* ---------- Legend ---------- */
.calendar-legend {
    padding-top: 10px;
}
.legend-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}
.legend-circle.issue-circle {
    background: #0d6efd;
}
.legend-circle.due-circle {
    background: #dc3545;
}
.legend-circle.both-circle {
    background: linear-gradient(135deg, #0d6efd, #dc3545);
}

.sticky-layout-container {
    position: relative;
    height: calc(100vh - 260px);
    display: flex;
    flex-direction: column;
}

.sticky-layout-scroll {
    flex: 1;
    overflow-y: auto;
}

.sticky-layout-footer {
    position: sticky;
    bottom: 0;
    background: var(--white);
    border-radius: var(--radius10);
    padding: 12px;
    display: flex;
    justify-content: center;
}

.dashboard-table th,
.dashboard-table td {
    border: 1px solid #dddfeb !important;
}


/* ---------- Responsive ---------- */
@media(max-width:1600px) {
    .main-form{
        zoom: .8;
    }
}

@media (max-width: 1500px) {
    .tiles,
    .calendar-wrapper {
        zoom: .8;
    }
}

.fetch-data-tab {
    pointer-events: none;
    opacity: 0.5;
}

@media(max-width:1040px) {
    .top-pages-btn a.nav-item.nav-link {
        min-width: 230px;
    }
}

@media(max-width:570px) {
    .mob-none {
        display: none;
    }
    .edit-profile {
        padding: 0px;
        background: transparent;
        border-radius: 13px;
    }
    .subtab {
        position: initial;
    }
}

@media (max-width: 768px) {
    .calendar-table td {
        width: 46px;
        height: 46px;
    }
    .date-circle {
        width: 36px;
        height: 36px;
        font-size: .8rem;
    }
    .dashboard-table th,
    .dashboard-table td {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
}

.text-break-word {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}