html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
.table-fixed-header {
    border: 1px solid #a9cfe5;
    background-color: #fff;
}

/* body scroll area */
.table-body-scroll {
    max-height: 350px; /* jitna chahe utna height */
    overflow-y: auto;
    overflow-x: auto;
}

/* header & body tables same width / layout */
.table-fixed-header table,
.table-fixed-header .table-body-scroll table {
    table-layout: fixed;
    width: 100%;
}

/* optional: thoda compact look */
.table-fixed-header th,
.table-fixed-header td {
    white-space: nowrap;
}
/* -------- Login Page Styling -------- */

body.login-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #4dabf7 0, #1e3c72 40%, #141e30 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 28px 26px 26px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.login-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d9bf0, #005bea);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto;
}

.login-btn {
    font-weight: 600;
    border-radius: 10px;
}

.login-card .form-control {
    border-radius: 10px;
}

.login-card .input-group-text {
    border-radius: 10px 0 0 10px;
}

.login-card .input-group .form-control {
    border-radius: 0 10px 10px 0;
}

/* small screens */
@media (max-width: 576px) {
    .login-card {
        padding: 22px 18px 20px;
    }
}

.content-area {
    height: calc(100vh - 0px);
    overflow: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontal center */
    justify-content: flex-start; /* vertical top — change to center if needed */
}
.table-body-scroll {
    max-height: 350px;
    overflow-y: auto;
}
/* Blue Theme */
.rent-modal .modal-content {
    background: #f2f8ff;
    border: 1px solid #cfe2ff;
}

.rent-modal-header {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    padding: 18px 22px;
}

.rent-modal-header .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.rent-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.rent-table-wrapper {
    background: #ffffff;
    border: 1px solid #d9e6ff;
    border-radius: 10px;
}

.rent-modal thead tr {
    background: #e4efff;
}

.rent-modal tbody tr:nth-child(even) {
    background: #f9fcff;
}

.rent-modal tbody tr:hover {
    background: #e2edff !important;
}

.modal-footer {
    background: #e9f1ff;
}

.modal-footer .btn {
    border-radius: 6px;
}
/*//customer-add*/
/* right side content ko center karne ke liye */
/* ---------- MAIN RIGHT AREA (for all pages using _SearchLayout) ---------- */
/* ===========================
   NEW CUSTOMER FORM (ONLY)
   =========================== */

/* Outer wrapper */
.customer-form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Main card */
.customer-form-card {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 34px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    font-size: 0.95rem;
}

/* Form Title */
.customer-form-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.customer-form-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

/* Section headers */
.customer-form-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 22px;
    margin-bottom: 6px;
    color: #374151;
}

/* Labels */
.customer-form-card .form-label {
    font-weight: 500;
    font-size: 0.85rem;
}

/* Input styling */
.customer-form-card .form-control,
.customer-form-card .form-select {
    border-radius: 10px;
    padding: 0.52rem 0.65rem;
    font-size: 0.9rem;
}

/* Validation text */
.customer-form-card .text-danger {
    font-size: 0.75rem;
    margin-top: 3px;
}

/* Bottom action buttons */
.customer-form-actions {
    border-top: 1px solid #e5e7eb;
    padding-top: 18px;
    margin-top: 25px;
    text-align: center;
}

/* Buttons */
.customer-form-card button {
    min-width: 110px;
}

/* Adjust spacing between rows */
.customer-form-card .row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.9rem;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */

/* Tablets 992px – 768px */
@media (max-width: 992px) {
    .customer-form-card {
        max-width: 760px;
        padding: 24px;
    }
}

/* Small Tablets 768px – 576px */
@media (max-width: 768px) {
    .customer-form-card {
        max-width: 100%;
        padding: 20px;
        border-radius: 14px;
    }

    .customer-form-title {
        font-size: 1.45rem;
    }

    .customer-form-card .row.g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
}

/* Mobile < 576px */
@media (max-width: 576px) {
    .customer-form-card {
        padding: 14px;
        border-radius: 12px;
        font-size: 0.85rem;
    }

    .customer-form-title {
        font-size: 1.3rem;
    }

    .customer-form-card .form-control,
    .customer-form-card .form-select {
        padding: 0.42rem 0.5rem;
    }

    .customer-form-card .row.g-3 {
        --bs-gutter-x: 0.55rem;
        --bs-gutter-y: 0.6rem;
    }

    .customer-form-actions {
        padding-top: 12px;
    }
}
/*unpaid_customer
*/
.customer-name {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-table tbody tr:hover {
    background-color: #e6f1ff;
}
/* Unpaid rent table – show around 5 rows, rest scroll */
.unpaid-table-wrapper {
    max-height: 260px; /* ~5 rows, adjust thoda upar-neeche if needed */
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

    /* remove extra space under table in wrapper */
    .unpaid-table-wrapper table {
        margin-bottom: 0;
    }

    /* sticky header so scrolling me header fixed rahe */
    .unpaid-table-wrapper thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background-color: #f8fafc;
    }
/*CustomerHistory*/
.history-table-wrapper {
    max-height: 260px; /* approx 5–6 rows; adjust as needed */
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

    .history-table-wrapper table {
        margin-bottom: 0;
    }

    .history-table-wrapper thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background-color: #f8fafc;
    }

.customer-name {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/*CustomerDescription*/
.description-table-wrapper {
    max-height: 260px; /* ~5–6 rows visible, rest scroll */
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

    .description-table-wrapper table {
        margin-bottom: 0;
    }

    .description-table-wrapper thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background-color: #f8fafc;
    }

.customer-name {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.description-cell {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/*TotalDeposit*/
.total-deposit-table-wrapper {
    max-height: 260px; /* ~5–6 rows visible, rest scroll */
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

    .total-deposit-table-wrapper table {
        margin-bottom: 0;
    }

    .total-deposit-table-wrapper thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background-color: #f8fafc;
    }

.customer-name {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/*search_avail_flat*/
.flat-search-results-wrapper {
    max-height: 260px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

    .flat-search-results-wrapper table {
        margin-bottom: 0;
    }

    .flat-search-results-wrapper thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background-color: #f8fafc;
    }
/*search_investor*/
.investor-table-wrapper {
    max-height: 260px; /* 5-6 rows visible, rest scroll */
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

    .investor-table-wrapper table {
        margin-bottom: 0;
    }

    .investor-table-wrapper thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background-color: #f8fafc;
    }

.customer-name {
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Prevent actions from overflowing */
.investor-table-wrapper {
    overflow-x: auto; /* horizontal scroll allow */
}

/* Actions column width fix */
.investor-table th:last-child,
.investor-table td:last-child {
    width: 110px !important;
    white-space: nowrap;
    text-align: right;
}

/* Keep buttons inside boundary */
.investor-table .btn-sm {
    padding: 2px 10px;
    font-size: 0.78rem;
}
/*search_rent_agreement*/
.ra-page-root {
    max-width: 1150px;
    margin: 40px auto 40px;
}

.ra-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    padding: 28px 28px 24px;
}

.ra-header-title {
    font-size: 1.6rem;
    font-weight: 650;
    color: #111827;
    margin-bottom: 4px;
}

.ra-header-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 22px;
}

.ra-search-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.ra-search-box input {
    border-radius: 999px;
    padding-left: 16px;
}

.ra-btn-primary {
    min-width: 110px;
    border-radius: 999px;
    font-weight: 600;
}

.ra-btn-ghost {
    min-width: 90px;
    border-radius: 999px;
    font-weight: 500;
}

.ra-table-wrapper {
    margin-top: 8px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.ra-table-header {
    background: #f3f4ff;
}

    .ra-table-header th {
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        white-space: nowrap;
    }

.ra-table-body {
    max-height: 360px; /* yaha se scroll hoga */
    overflow-y: auto;
}

    .ra-table-body table {
        margin-bottom: 0;
    }

    .ra-table-body tbody tr:nth-child(even) {
        background-color: #f9fafb;
    }

    .ra-table-body tbody tr:hover {
        background-color: #e5f0ff;
    }

.ra-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #6b7280;
}

    .ra-meta-row .total-count {
        font-weight: 600;
    }

    .ra-meta-row .back-link a {
        text-decoration: none;
        font-weight: 500;
    }

@media (max-width: 768px) {
    .ra-card {
        padding: 20px 16px 18px;
    }

    .ra-search-row {
        grid-template-columns: 1fr;
    }

    .ra-table-wrapper {
        margin-top: 14px;
    }
}
/*expense*/
.expenses-wrapper {
    display: flex;
    justify-content: center;
    padding: 32px 16px 40px;
}

.expenses-card {
    width: min(720px, 100%);
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 28px 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.expenses-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 22px;
}

.expenses-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
}

.expenses-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.expenses-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.expenses-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.expenses-field .form-control {
    border-radius: 10px;
    height: 40px;
}

.expenses-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    gap: 12px;
    flex-wrap: wrap;
}

.expenses-total {
    font-size: 0.95rem;
    color: #374151;
}

    .expenses-total span {
        font-weight: 600;
        color: #111827;
    }

.expenses-actions {
    display: flex;
    gap: 10px;
}

.btn-exp-primary {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    border-color: #1d4ed8;
    color: #fff;
    border-radius: 999px;
    padding-inline: 26px;
    font-weight: 500;
}

.btn-exp-secondary {
    border-radius: 999px;
    padding-inline: 22px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .expenses-card {
        padding: 20px 18px 18px;
    }

    .expenses-grid {
        grid-template-columns: 1fr;
    }
}
/*addinvestor*/
.form-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    max-width: 1100px;
    margin: auto;
}

.form-title {
    font-weight: 600;
}

.section-title {
    font-weight: 600;
    margin-top: 20px;
}