
html, body {
    height: 100%;
    overflow: auto;
}

html {
    font-size: 14px;
    font-family: 'Roboto Flex', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Main app container */
.app-container {
    height: 100vh;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 10rem;        /* 160px */
    min-width: 10rem;
    background-color: #0f172a;
    color: #fff;
    flex-shrink: 0;   /* VERY IMPORTANT */
    height: 100vh;
    overflow-y: auto;
}
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;              /* spacing between icon & text */
    white-space: nowrap;      /* prevent text wrapping */
    padding: 0.6rem 0.75rem;  /* tighter padding */
    font-size: 0.9rem;
    color: #e5e7eb;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sidebar .nav-link i {
    min-width: 1.25rem;   /* aligns all icons vertically */
    font-size: 1rem;
    text-align: center;
}

.nav-item a{
    color : white;
}

/* Main wrapper (right side) */
.main-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100vh;
    min-width: 0;
}

/* Header */
.topbar {
    height: 60px;
    flex-shrink: 0;
}

/* Footer */
.footer {
    flex-shrink: 0;
    color:black;
    font-weight:bold;
}

/* Page content should scroll, not the whole page */
.page-content {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding: 1rem;
}


/* Cards */
.info-card {
    background: #ffffff;
    padding: 1rem;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.info-card h6 {
    color: #64748b;
    margin-bottom: 6px;
}


/* =========================
   Login Page Styles
========================= */

.login-body {
    background-color: #f8fafc;
}

/* Left Panel */
.login-left {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a, #2563eb);
    color: #ffffff;
}

.login-left-content {
    padding: 80px;
}

.login-left-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.login-left-content p {
    font-size: 18px;
    opacity: 0.9;
}

/* Login Card */
.login-card {
    background: #ffffff;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.login-card h3 {
    font-weight: 600;
}

.login-card .form-label {
    font-size: 14px;
    color: #374151;
}

.login-card .form-control {
    padding: 10px 14px;
    border-radius: 10px;
}

/* Button override */
.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.form-control,
.form-select {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
}

.btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}



/* Datatable buttons inputs css */
.dataTables_filter input {
    border-radius: 10px;
    padding: 6px 12px;
    border: 1px solid #d1d5db;
}

.dataTables_length select {
    border-radius: 8px;
    /* padding: 4px 8px; */
}

.dataTables_wrapper .btn {
    border-radius: 8px;
    margin-bottom: 5px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
}


.table-scroll {
    width: 100%;
    overflow-x: auto;
    min-width: 0;
}

/* Let DataTables control width */
#invoiceTable {
    width: max-content !important;
    min-width: 1600px;
}

#invoiceTable th,
#invoiceTable td {
    /* white-space: nowrap; */
   font-size: 0.8rem;
}

.bulk-action-bar .form-select,
.bulk-action-bar .btn,
.dt-export-buttons .btn {
    height: 32px;
}

.bulk-action-bar .form-select
{
    width:120px;
}
.dt-export-buttons {
    white-space: nowrap;
}


.dataTables_length label,
.dataTables_filter label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dataTables_filter input {
    width: 100px;
}

#dt-buttons .btn {
    margin-left: 4px;
}

.dataTables_length select {
    min-width: 50px;
    padding-right: 28px; /* space for arrow */
    background-position: right 10px center;
}


.overdue-cell {
    background-color: #ffe5e5 !important;
}

.head-chip {
    background-color: #e9f2ff;
    border: 1px solid #0d6efd;
    color: #0d6efd;
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.head-chip .remove {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* .dt-wrap {
    white-space: normal !important;
    word-wrap: break-word;
    max-width: 25px;   
} */

/* Keep most columns single-line */
.nowrap {
    white-space: nowrap;
}

/* Two-line clamp for long text */
.wrap-2 {
    white-space: normal !important;
    word-break: break-word;
    max-width: 160px;   /* adjust if needed */

    /* display: -webkit-box; */
    /* -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; */

    overflow: hidden;
}

.fsize{
font-size: 11px;
}

.select2-results__options {
    max-height: 50px;
}
