:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #ddd;
    --brand: #2563eb;
    --sidebar: #0b1220;
    --sidebar-hover: #121a2b;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    display: flex;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.4 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial
}

/* ============== Sidebar ============== */

.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--sidebar);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 16px 18px;
    background: #0a1020;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}


.menu {
    list-style: none;
    margin: 8px 0;
    padding: 0
}

.menu-section {
    padding: 10px 18px;
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .08em
}

.has-submenu {
    position: relative
}

.menu-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 12px 16px;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    margin-bottom: 0;
}

.menu-link:hover {
    background: var(--sidebar-hover)
}

.menu-main {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 16px;
}

.menu-ico {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    opacity: .9;
}

.caret {
    transition: transform .2s ease;
    display: inline-grid;
    place-items: center
}

.has-submenu.open>.menu-link .caret {
    transform: rotate(180deg)
}

.submenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: rgba(255, 255, 255, .02)
}

.has-submenu.open>.submenu {
    display: block;
    margin-left: 20px;
}

.submenu a {
    display: block;
    padding: 10px 16px 10px 44px;
    color: #cbd5e1;
    text-decoration: none
}

.submenu a:hover {
    background: #0f1a33;
    color: #fff
}
.sidebar ul {
    list-style: none;
}


.sidebar ul li a {
    text-decoration: none;
    color: #fff;
    padding: 12px 20px;
    display: block;
    transition: 0.3s;
    font-size: 16px;
}

.sidebar ul li a:hover {
    background: #374151;
    border-left: 5px solid #facc15;
    /* yellow highlight */
}
/* ============== Topbar ============== */

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0
}

.topbar {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 5
}


.hamburger {
    display: none;
    background: none;
    border: 0;
    font-size: 22px;
    cursor: pointer
}

.profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: .6rem
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #e5e7eb
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: none;
    border: 0;
    color: #000;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px
}

.profile-btn:hover {
    background: #f3f4f6
}

.dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + -8px);
    width: 150px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    display: none;
    overflow: hidden
}

.dropdown.open {
    display: block
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px
}

.dropdown a:hover {
    background: #f8fafc
}

/* ============== Content ============== */




/* Login page css */

.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("../images/blured-background-2048x1152.jpg") no-repeat center center/cover;
}
.login-page .login-box {
    width: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 40px 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, .4);
    color: white;
    text-align: center;
}

.login-page .login-box h2 {
    font-size: 30px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 25px;
}

.login-page .input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-page .input-group input {
    width: 100%;
    padding: 13px 40px 13px 15px;
    border: none;
    border-radius: 25px;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #000;
}

.login-page .input-group input::placeholder {
    color: #fff;
}

.login-page .input-group i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ddd;
}

.login-page .options {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 20px;
}

.login-page .options label {
    display: flex;
    cursor: pointer;
}

.login-page .options input {
    width: auto;
    margin-right: 5px;
}

.login-page .login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: white;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.login-page .login-btn:hover {
    background: #000;
    color: #fff;
}

/* ============== Content ============== */



@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -270px;
        top: 0;
        bottom: 0;
        z-index: 20;
        box-shadow: 0 10px 40px rgba(0, 0, 0, .35)
    }
    .sidebar.active {
        left: 0
    }
    .hamburger {
        display: block
    }
    .cards {
        grid-template-columns: repeat(6, 1fr)
    }
    .card {
        grid-column: span 6
    }
}

/* focus styles */

.menu-link:focus-visible,
.profile-btn:focus-visible,
.hamburger:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 8px
}

.container {
    margin: 0 auto;
    background: var(--card);
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

h2 {
    margin-bottom: 22px;
    font-weight: 600;
    font-size: 22px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}



label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border .2s;
}
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border .2s;
}

input:focus {
    border-color: var(--brand);
    outline: none;
}
textarea:focus {
    border-color: var(--brand);
    outline: none;
}
/* Limit dropdown height and enable scroll */
select {
  max-height: 200px; /* Adjust height for about 10 options */
  overflow-y: auto;
}

/* For consistent scroll behavior across browsers */
select option {
  padding: 4px 6px;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th,
td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

th {
    background: #f8fafc;
    font-weight: 600;
}

.btn {
    background: var(--brand);
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 0;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease;
}
table .btn {
    padding: 6px 10px;
    font-size: 14px;
}
.btn:hover {
    background: #1e4fbe;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    text-decoration: none;
}

.btn-danger:hover {
    background: #cc0000;
}
.btn-print {
    background: #16a34a;
    color: #fff;
    border: none;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
}
.btn-print:hover{
    background: #11833b;
}
button{
    padding: 7px 10px;
    border: none;
    cursor: pointer;
}

.summary {
    background: #e4f5ff;
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0;
    align-items: center;
}

.footer-buttons {
    position: sticky;
    bottom: 0;
    background: var(--card);
    padding: 15px 0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid var(--border);
}

/* Purchase page css */
#purchaseForm select{
    width: 300px;
}
#purchaseForm .form-row input{
    width: 300px;
}
#purchaseForm .form-row .date-group{
    display: flex;
    justify-content: end;
}

/* Dashboard page design */
.dashboard-page .main{
    background: url('../images/dashboard-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
}
.dashboard-page .dashboard-logo{
    height: 350px;
    width: 100%;
    position: relative;
}
.dashboard-page .dashboard-logo img{
    opacity: .3;
    width: 220px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, -50%);
}
.dashboard-page .main .content{
    margin-top: 40px;
}
.content {
    padding: 18px;
    min-height: 0;
    overflow: auto
}

.cards {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px
}

.card {
    grid-column: span 3;
    background: #ffffff62;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 25px 20px
}

.card h4 {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: #000;
}

.card .big {
    font-size: 28px;
    font-weight: 700
}

@media (max-width: 1024px) {
    .card {
        grid-column: span 6
    }
}
.dashboard-page .topbar{
    background: #ffffff8a;
}

/* Purchase page css */
.pcs-add-btn{
    text-align: right;
}
.pcs-add-btn .btn{
    background: #009c1a;
    padding: 10px 30px;
}
.pcs-add-btn .btn:hover{
    background: #006d12;
}
.pcs-submit-btn .btn{
    width: 100%;
    padding: 12px;
    font-size: 18px;
}
.recent-box{
    margin-top: 40px;
}
.notice{
    background: #d0ffd7;
    padding: 10px;
    font-size: 17px;
    margin-bottom: 20px;
    text-align: center;
}


.filter-box .flex-box{
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: center;
}

.filter-box .flex-box a{
    display: inline-block;
    border-radius: 5px;
    width: 100px;
    font-size: 16px;
    text-align: center;
}

/* Purchase List page css */
.purchase-list-table .action-btn{
    display: flex;
    gap: 10px;
    justify-content: center;
}
.purchase-list-page .filter-box button{
    padding: 14px;
}
.pcs-list-submit-btn .btn{
    width: 100%;
}
.pcs-list-reset-btn .filter-reset-btn{
    width: 100%;
    border-radius: 6px;
}
.form-group {
    flex: 1;
}
.purchase-list-page .action-btn a{
    display: inline-block;
    padding: 6 12px;
    margin: 0;
}
.purchase-list-page .filter-box .btn {
    background: #0a1020;
    color: #fff;
    padding: 14px 10px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    margin: 0;
 }

.purchase-list-page .btn-danger {
    background: #dc2626;
    text-align: center;
    text-decoration: none;
 }

.purchase-list-page .btn-danger:hover {
    background: #be0303ff;
 }


.purchase-list-page .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    z-index: 1000;
 }

.purchase-list-page .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    width: 800px;
    max-height: 90%;
    overflow: auto;
    position: relative;
 }

.purchase-list-page .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
}
.edit-purchase-modal-submit-btn .btn{
    width: 100%;
    margin-top: 15px;
}



 /* Due payment page css */
 .due-payments-page .filter-box{
    gap: 10px;
}
.due-payments-page .filter-group .due-btn button{
    width: 100%;
    background: #2563eb;
    margin: 0;
    font-size: 16px;
    padding: 14px 30px;
    margin-bottom: 20px;
}
.due-payments-page .filter-group .due-btn button:hover{
    background: #1d4ed8;
}

.due-action-btn{
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.due-payments-page .due-action-btn a{
    display: inline-block;
    padding: 10px;
    margin: 0;
}


.due-payments-page .due-action-btn .btn-danger {
    padding: 6px 12px;
    background: #dc2626;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
 }

.due-payments-page .due-action-btn .btn-danger:hover {
    background: #be0303ff;
 }
 .due-payments-page .due-action-btn .btn-print{
    padding: 8px 12px;
 }
 .due-payments-page .filter-box select{
    padding: 15px !important;
 }
.due-payments-page .invoice-lookup .input-inline{
    display: flex;
}
.due-payments-page .invoice-lookup .input-inline input{
    padding: 10px;
}






 /* Due Collection page css */
.due-collection-page .filter-box{
    gap: 10px;
}
.due-collection-page .filter-group .due-btn button{
    width: 100%;
    background: #2563eb;
    margin: 0;
    font-size: 16px;
    padding: 14px 30px;
    margin-bottom: 20px;
}
.due-collection-page .filter-group .due-btn button:hover{
    background: #1d4ed8;
}

.due-action-btn{
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.due-collection-page .due-action-btn .btn-print{
    padding: 8px 12px;
}
.due-collection-page .due-action-btn .btn-danger {
    display: inline-block;
    padding: 6px 12px;
    background: #dc2626;
    text-align: center;
    text-decoration: none;
 }

.due-collection-page .due-action-btn .btn-danger:hover {
    background: #be0303ff;
 }




/* Supplier page css */
.topbar-menu-space{
    margin: 0 5px;
}

.supplier-page .btn-secondary {
    background: #6b7280
}
.supplier-page .filter-box .search-form{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
}
.supplier-page .filter-box .search-form input[type=text] {
    padding: 0 14px !important;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 280px;
}
.supplier-page .filter-box .search-form button{
    display: inline-block;
    padding: 14px;
    font-size: 16px;
    border-radius: 7px;
    margin: 0;
}
.supplier-page .search-box .button{
    display: flex;
    justify-content: end;
}
.supplier-page .search-box .button .btn{
    padding: 15px;
    font-size: 18px;
    width: 200px;
    margin: 0;
}

.supplier-page .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center
}

.supplier-page .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    max-width: 95%
}

.supplier-page .modal-content h3 {
    margin-top: 0;
    font-size: 25px;
    margin-bottom: 20px;
}

.supplier-page .close {
    font-size: 30px;
    float: right;
    cursor: pointer;
    font-weight: bold
}
.supplier-page .modal-content button{
    font-size: 18px;
    padding: 10px;
}

.supplier-page .suppliers-action-btn{
    display: flex;
    justify-content: center;
    gap: 10px;
}
.modal .submit-btn{
    width: 100%;
    margin-top: 10px;
}

.action-btn{
    display: flex;
    gap: 10px;
    justify-content: center;
}


/* Global Popup Css for all page ==========-- */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    max-width: 95%
}
.modal-content h3 {
    margin-top: 0;
    font-size: 25px;
    margin-bottom: 20px;
}

.close {
    font-size: 30px;
    float: right;
    cursor: pointer;
    font-weight: bold
}
.modal-content button{
    font-size: 18px;
    padding: 10px;
}

/* Create Expense page css */

.expense-page .expense-list-action-btn{
    display: flex;
    justify-content: center;
    gap: 10px;
}

.expense-page .modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.expense-page .modal-content {
    background: #fff;
    position: relative;
    margin: 10% auto;
    padding: 20px;
    width: 500px !important;
    max-width: 500px;
    border-radius: 8px;
}
.expense-page .form-group{
    margin-bottom: 15px;
}
.expense-page .modal .close-btn button{
    background: none;
    color: #000;
    font-size: 35px;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 23px;
    right: 25px;
}
.expense-page .modal .submit-btn{
    width: 100%;
    margin: 0;
    padding: 15px 40px;
}
.expense-page .modal .edit-close-btn{

}
.expense-page .modal .edit-close-btn button{
    background: none;
    color: #000;
    font-size: 35px;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 23px;
    right: 25px;
}


/* Expense Category page css */
.expense-category-page .create-btn{
    width: 100%;
    display: flex;
    justify-content: right;
}

.expense-category-page .excat-action-btn{
    display: flex;
    justify-content: center;
    gap: 10px;
}
.expense-category-page .excat-action-btn button{
    margin: 0;
    padding: 8px;
    font-size: 16px;
    width: 80px;
}
.expense-category-page .excat-action-btn a{
    margin: 0;
    background: #dc2626;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    padding: 8px;
    width: 80px;
}
.expense-category-page .excat-action-btn a:hover{
    background: #b91c1c;
}

/* Expense report page css */
.filter-box {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #bbb;
    background: #eee;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    box-sizing: border-box;
}
.filter-box .form-group{
    margin-bottom: 0;
}
.filter-box input{
    margin: 0;
    padding: 14px;
}
.filter-box select{
    margin: 0;
    padding: 15px;
}
.filter-box button{
    width: 100%;
    background: #0a1020;
    color: #fff;
    margin: 0;
    font-size: 16px;
    padding: 14px 15px;
    border-radius: 7px;
}
.filter-box button:hover{
    background: #000;
}
.filter-box .submit-group{
    display: flex;
    justify-content: right;
}

/* New sale page css */
.sale-add-btn{
    text-align: right;
}
.sale-add-btn .btn{
    background: #009c1a;
    padding: 10px 30px;
    border-radius: 0;
    margin-bottom: 10px;
}
.sale-add-btn .btn:hover{
    background: #006d12;
}
.sale-submit-btn .btn{
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border-radius: 0;
}

/* Sales list page css ------*/
.sales-list-table .action-btn{
    display: flex;
    gap: 10px;
    justify-content: center;
}
.sales-list-table .action-btn a{
    display: inline-block;
    padding: 6px 10px;
    margin: 0;
    height: fit-content;
}

.sales-list-page .filter-box .btn {
    background: #0a1020;
    color: #fff;
    padding: 14px 10px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    margin: 0;
}

.sales-list-page .btn-danger {
    background: #dc2626;
    text-align: center;
    text-decoration: none;
}

.sales-list-page .btn-danger:hover {
    background: rgb(170, 2, 2);
}



.sales-list-page .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.sales-list-page .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 800px;
    max-width: 800px;
    max-height: 90%;
    overflow: auto;
}

.sales-list-page .close-btn {
    float: right;
    cursor: pointer;
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
}


/* Customers page css -----------*/
.customer-page .filter-box .search-form{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
}

.customer-page .filter-box input[type=text] {
    padding: 15px !important;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 280px;
}
.customer-page .filter-box button{
    display: inline-block;
    padding: 14px;
    font-size: 16px;
    margin: 0;
}
.customer-page .search-box .button{
    display: flex;
    justify-content: end;
}
.customer-page .search-box .button .btn{
    padding: 15px;
    font-size: 18px;
    width: 200px;
    margin: 0;
}
.customer-page .suppliers-action-btn{
    display: flex;
    justify-content: center;
    gap: 10px;
}
.customer-page .suppliers-action-btn button{
    margin: 0;
    font-size: 14px;
}
.customer-page .suppliers-action-btn a{
    background: #dc2626;
    margin: 0;
    text-decoration: none;
    text-align: center;

}
.customer-page .suppliers-action-btn a:hover{
    background: #b91c1c;
}


/* Profit loss report page css*/
.filter-box a{
    text-decoration: none;
}
.filter-reset-btn{
    background: #cf7600 !important;
    color: #fff;
}
.filter-reset-btn:hover{
    background: #a55e01 !important;
}
.filter-print-btn{
    background: #16a34a !important;
    text-decoration: none;
}
table tfoot{
    background: #ddffef !important;
}
table tfoot tr td{
    background: #ddffef !important;
    padding: 10px 10px 10px 10px;
}
table thead tr th{
    background: #003a5e !important;
    color: #fff;
}

/* Monthly report page css */
.monthly-report-page .tabs {
    margin-top: 20px;
}
.monthly-report-page .tab-buttons {
    display: flex;
    margin-bottom: 12px;
}
.monthly-report-page .tab-buttons button {
    display: block;
    width: 50%;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    background: #e5e7eb;
    color: #000;
}
.monthly-report-page .tab-buttons button.active {
    background: #23c0cd;
    color: #fff;
}
.monthly-report-page .tab-content {
    display: none;
}
.monthly-report-page .tab-content.active {
    display: block;
}

/* Yearly reprot page css */

.yearly-report-page .tabs {
    margin-top: 20px;
}

.yearly-report-page .tab-buttons {
    display: flex;
    margin-bottom: 12px;
}

.yearly-report-page .tab-buttons button {
    flex: 1;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    background: #e5e7eb;
    color: #000;
}

.yearly-report-page .tab-buttons button.active {
    background: #23c0cd;
    color: #fff;
}

.yearly-report-page .tab-content {
    display: none;
}

.yearly-report-page .tab-content.active {
    display: block;
}


/* Customers ledger page css */
.customer-ledger-page .filter-box input{
    padding: 14px;
    width: 300px;
}
.customer-ledger-page .btn-view{
    display: inline-block;
    margin: 0;
    padding: 6px 12px;
    border-radius: 0;
    text-align: center;
}
.customer-ledger-page table tr td{
    padding: 5px 10px !important;
}



/* Suppliers ledger page css */
.suppliers-ledger-page .filter-box input{
    padding: 14px;
    width: 300px;
}
.dataTables_wrapper .dataTables_length select{
    display: none;
}
.dataTables_length{
    display: none;
}
#ledgerTable_filter{
    display: none;
}
#ledgerTable{
    padding-top: 10px;
}
.suppliers-ledger-page .btn-view{
    display: inline-block;
    margin: 0;
    padding: 6px 12px;
    border-radius: 0;
    text-align: center;
}
table tr td{
    padding: 7px 10px !important;
}






@media(max-width:768px) {
    .container {
        padding: 15px;
    }
    .form-row {
        flex-direction: column;
    }
    th,
    td {
        font-size: 13px;
    }
}

/* Print Styles */

@media print {
    body {
        padding: 0;
        background: #fff;
    }
    .container {
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
    }
    .no-print {
        display: none;
    }
    #invoice-print {
        display: block;
        width: 100%;
        padding: 20px;
    }
    #invoice-print h2 {
        text-align: center;
        margin-bottom: 20px;
    }
    #invoice-print table {
        width: 100%;
        border-collapse: collapse;
        margin: 15px 0;
    }
    #invoice-print th,
    #invoice-print td {
        border: 1px solid #000;
        padding: 8px;
        text-align: center;
    }
    #invoice-print th {
        background: #f0f0f0;
    }
}



@media(max-width:768px) {
    table,
    th,
    td {
        font-size: 13px;
    }
}

/* Print styles */

@media print {
    body {
        padding: 0;
        background: #fff;
    }
}

.form-group {
    margin-bottom: 15px;
}


.success-message {
    display: none;
    margin-top: 15px;
    color: green;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

/* customer list page */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h2 {
    font-weight: 600;
    font-size: 24px;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 220px;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th,
table td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
    font-size: 14px;
}

table th {
    background: var(--bg);
    font-weight: 600;
}


.btn-delete {
    background: #e60000;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background .2s ease;
}

.btn-delete:hover {
    background: #b91c1c;
}

@media print {
    body {
        background: #fff;
        padding: 0;
    }
    .header,
    .search-box,
    .btn-print,
    .btn-delete {
        display: none;
    }
    .container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    table th,
    table td {
        font-size: 12px;
    }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h2 {
    font-weight: 600;
    font-size: 24px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input[type="date"] {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.search-box button {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.table-wrapper {
    overflow-x: auto;
}





@media print {
    body {
        background: #fff;
        padding: 0;
    }
    .header,
    .search-box,
    .btn-print {
        display: none;
    }
    .container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    table th,
    table td {
        font-size: 12px;
    }
}

/* Add expense page css */



/* Expense category page css */


/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: var(--card);
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin-bottom: 15px;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
}
.modal-content input:focus{
    border-color: var(--brand);
}

.close-btn {
    float: right;
    font-size: 18px;
    cursor: pointer;
}

/* Expense report page css */

.search-section {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.search-section input,
.search-section select {
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 140px;
}

.search-section button {
    background: var(--brand);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.search-section button:hover {
    background: #1d4ed8;
}
.expense-rp-page .btn-print{
    padding: 8px 12px;
}


/* Print Style */

@media print {
    body * {
        visibility: hidden;
    }
    #printArea,
    #printArea * {
        visibility: visible;
    }
    #printArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

