/* ==========================================================
   HOTEL SHARNAM CRM
   COMMON ADMIN PANEL CSS
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d1b2a;
    --primary-light: #14283c;
    --gold: #d4af37;
    --gold-dark: #b48a15;

    --background: #f4f6f9;
    --white: #ffffff;

    --text: #263238;
    --muted: #6c757d;

    --border: #e5e8ec;

    --success: #198754;
    --danger: #dc3545;
    --warning: #f0ad4e;

    --sidebar-width: 250px;
    --header-height: 70px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}

a {
    text-decoration: none;
}


/* ==========================================================
   TOP HEADER
========================================================== */

.admin-header {
    height: var(--header-height);

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    background: var(--primary);
    color: var(--white);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 25px;

    z-index: 1000;

    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-brand h2 {
    font-size: 22px;
    color: var(--white);
}

.admin-brand span {
    color: var(--gold);
}

.sidebar-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(255,255,255,.25);
    border-radius: 7px;

    background: transparent;
    color: var(--white);

    font-size: 22px;

    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logged-user {
    margin-right: 8px;
    font-size: 14px;
    color: #e8e8e8;
}

.header-btn {
    display: inline-block;

    padding: 10px 15px;

    background: var(--gold);
    color: var(--white);

    border-radius: 6px;

    font-size: 14px;

    transition: .2s;
}

.header-btn:hover {
    background: var(--gold-dark);
}


/* ==========================================================
   SIDEBAR
========================================================== */

.admin-sidebar {
    position: fixed;

    top: var(--header-height);
    left: 0;
    bottom: 0;

    width: var(--sidebar-width);

    background: var(--primary);

    overflow-y: auto;

    z-index: 900;

    transition: .3s;
}

.sidebar-user {
    padding: 22px 20px;

    border-bottom: 1px solid rgba(255,255,255,.08);

    color: var(--white);
}

.sidebar-user strong {
    display: block;
    margin-bottom: 5px;
}

.sidebar-user small {
    color: var(--gold);
    text-transform: capitalize;
}

.sidebar-menu {
    list-style: none;
    padding: 12px 0;
}

.sidebar-menu li {
    margin: 3px 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #d8dde3;

    padding: 13px 15px;

    border-radius: 7px;

    font-size: 15px;

    transition: .2s;
}

.sidebar-menu a:hover {
    background: var(--primary-light);
    color: var(--gold);
}

.sidebar-menu a.active {
    background: var(--gold);
    color: var(--white);
}

.sidebar-menu .icon {
    width: 22px;
    text-align: center;
}


/* ==========================================================
   MAIN CONTENT
========================================================== */

.admin-main {
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);

    min-height: 100vh;
}

.admin-content {
    padding: 30px;
}

.page-header {
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 7px;
}

.page-header p {
    color: var(--muted);
    font-size: 14px;
}


/* ==========================================================
   DASHBOARD CARDS
========================================================== */

.dashboard-cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 30px;
}

.dashboard-card {
    background: var(--white);

    border-radius: 12px;

    padding: 23px;

    box-shadow:
        0 4px 18px rgba(0,0,0,.06);

    border-left: 4px solid var(--gold);
}

.dashboard-card .card-title {
    color: var(--muted);

    font-size: 14px;
    font-weight: 600;

    margin-bottom: 12px;
}

.dashboard-card .card-number {
    font-size: 34px;
    font-weight: 700;

    color: var(--primary);
}


/* ==========================================================
   COMMON CONTENT CARD
========================================================== */

.admin-card {
    background: var(--white);

    border-radius: 12px;

    padding: 25px;

    margin-bottom: 25px;

    box-shadow:
        0 4px 18px rgba(0,0,0,.06);
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;

    padding-bottom: 15px;

    border-bottom: 1px solid var(--border);
}

.admin-card-header h2 {
    font-size: 19px;
    color: var(--primary);
}


/* ==========================================================
   BUTTONS
========================================================== */

.btn {
    display: inline-block;

    border: 0;

    padding: 10px 16px;

    border-radius: 6px;

    cursor: pointer;

    font-size: 14px;

    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn:hover {
    opacity: .9;
}


/* ==========================================================
   FORMS
========================================================== */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;

    color: #333;
}

.form-control {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #d8dde3;

    border-radius: 6px;

    font-size: 14px;

    background: var(--white);

    outline: none;
}

.form-control:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px rgba(212,175,55,.12);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}


/* ==========================================================
   TABLE
========================================================== */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 13px 12px;

    border-bottom:
        1px solid var(--border);

    text-align: left;

    font-size: 14px;
}

.admin-table th {
    background: #f8f9fb;

    color: var(--primary);

    font-weight: 600;
}

.admin-table tr:hover td {
    background: #fafbfc;
}


/* ==========================================================
   STATUS BADGES
========================================================== */

.badge {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #dff3e7;
    color: #14733b;
}

.badge-warning {
    background: #fff1cc;
    color: #916b00;
}

.badge-danger {
    background: #fde2e2;
    color: #a31d1d;
}

.badge-info {
    background: #e1efff;
    color: #175c9e;
}


/* ==========================================================
   ALERTS
========================================================== */

.alert {
    padding: 13px 15px;

    border-radius: 7px;

    margin-bottom: 20px;

    font-size: 14px;
}

.alert-success {
    background: #e5f8e9;
    color: #176b2c;
}

.alert-danger {
    background: #ffe5e5;
    color: #a50000;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}


/* ==========================================================
   EMPTY STATE
========================================================== */

.empty-state {
    padding: 35px 20px;

    text-align: center;

    color: var(--muted);
}


/* ==========================================================
   MOBILE OVERLAY
========================================================== */

.sidebar-overlay {
    display: none;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

    .dashboard-cards {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    :root {
        --header-height: 65px;
    }

    .admin-header {
        padding: 0 15px;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .admin-brand h2 {
        font-size: 18px;
    }

    .admin-sidebar {
        width: 260px;

        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;

        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;

        background: rgba(0,0,0,.45);

        z-index: 850;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-content {
        padding: 20px 15px;
    }

    .logged-user {
        display: none;
    }

    .header-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .dashboard-cards {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 12px;
    }

    .dashboard-card {
        padding: 17px;
    }

    .dashboard-card .card-number {
        font-size: 27px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .admin-brand span {
        display: none;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .header-right {
        gap: 6px;
    }

    .header-btn {
        padding: 7px 8px;
        font-size: 11px;
    }

}




/* ==========================================================
   USER PERMISSIONS
========================================================== */

.permission-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0,1fr));
    gap: 12px;
}

.permission-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #fafbfc;

    cursor: pointer;

    transition: .2s;
}

.permission-item:hover {
    border-color: var(--gold);
    background: #fffdf6;
}

.permission-item input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--gold);
}

.permission-item span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.permission-item strong {
    font-size: 14px;
    color: var(--primary);
}

.permission-item small {
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 1000px) {

    .permission-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

}

@media (max-width: 600px) {

    .permission-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   PAYMENT FORM - FINAL FIX
========================================================= */

.admin-card form .form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 35px !important;
    row-gap: 25px !important;
    width: 100% !important;
}

.admin-card form .form-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
}

.admin-card form .form-group.full {
    grid-column: 1 / -1 !important;
}

.admin-card form .form-group label {
    display: block !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;

    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;

    color: #17202a !important;
}


/* INPUT */

.admin-card form input[type="text"],
.admin-card form input[type="number"],
.admin-card form input[type="email"],
.admin-card form input[type="tel"],
.admin-card form input[type="date"] {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    height: 50px !important;
    min-height: 50px !important;

    padding: 11px 14px !important;

    margin: 0 !important;

    border: 1px solid #d2d9e2 !important;
    border-radius: 7px !important;

    background: #ffffff !important;
    color: #17202a !important;

    font-family: inherit !important;
    font-size: 15px !important;

    box-sizing: border-box !important;

    outline: none !important;
}


/* SELECT */

.admin-card form select {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    height: 50px !important;
    min-height: 50px !important;

    padding: 10px 14px !important;

    margin: 0 !important;

    border: 1px solid #d2d9e2 !important;
    border-radius: 7px !important;

    background-color: #ffffff !important;
    color: #17202a !important;

    font-family: inherit !important;
    font-size: 15px !important;

    box-sizing: border-box !important;

    outline: none !important;
}


/* TEXTAREA */

.admin-card form textarea {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    min-height: 100px !important;

    padding: 12px 14px !important;

    margin: 0 !important;

    border: 1px solid #d2d9e2 !important;
    border-radius: 7px !important;

    background: #ffffff !important;
    color: #17202a !important;

    font-family: inherit !important;
    font-size: 15px !important;

    box-sizing: border-box !important;

    resize: vertical !important;

    outline: none !important;
}


/* FOCUS */

.admin-card form input:focus,
.admin-card form select:focus,
.admin-card form textarea:focus {
    border-color: #dcb32b !important;

    box-shadow:
        0 0 0 3px rgba(220, 179, 43, 0.15) !important;
}


/* RECEIVE PAYMENT BUTTON */

.admin-card form .btn-success {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 7px !important;

    width: auto !important;

    min-height: 46px !important;

    padding: 11px 22px !important;

    border: none !important;
    border-radius: 7px !important;

    background: #198754 !important;
    color: #ffffff !important;

    font-size: 15px !important;
    font-weight: 600 !important;

    cursor: pointer !important;
}


/* MOBILE */

@media (max-width: 768px) {

    .admin-card form .form-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .admin-card form .form-group.full {
        grid-column: auto !important;
    }

    .admin-card form .btn-success {
        width: 100% !important;
    }
}
/* =========================================================
   BOOKING FILTER BUTTONS - SAME LINE
========================================================= */

.filter-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
}

.filter-actions .btn {
    width: auto !important;
    min-width: 100px !important;
    height: 46px !important;
    padding: 10px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
}

/* =========================================================
   BOOKINGS - COMPACT FILTER ROW
========================================================= */

.booking-filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr auto;
    gap: 15px;
    align-items: end;
}

.booking-filter-row .filter-field {
    min-width: 0;
}

.booking-filter-row .filter-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.booking-filter-row .form-control {
    width: 100%;
    height: 46px;
}

.booking-filter-row .filter-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.booking-filter-row .filter-buttons .btn {
    width: auto !important;
    min-width: auto !important;
    height: 46px;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: none !important;
}


/* TABLET */
@media (max-width: 1100px) {

    .booking-filter-row {
        grid-template-columns: 1fr 1fr;
    }

}


/* MOBILE */
@media (max-width: 700px) {

    .booking-filter-row {
        grid-template-columns: 1fr;
    }

    .booking-filter-row .filter-buttons {
        width: 100%;
    }

    .booking-filter-row .filter-buttons .btn {
        flex: 1 !important;
    }

}


/* =========================================================
   CUSTOMERS PAGE
========================================================= */

.customer-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: end;
}

.customer-search-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-search-buttons .btn {
    width: auto !important;
    height: 46px;
    padding: 0 18px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}


/* Empty Customer List */

.empty-state {
    text-align: center;
    padding: 45px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 38px;
    margin-bottom: 12px;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
}


/* Mobile */

@media (max-width: 700px) {

    .customer-search-row {
        grid-template-columns: 1fr;
    }

    .customer-search-buttons {
        width: 100%;
    }

    .customer-search-buttons .btn {
        flex: 1;
    }
}

/* =========================================================
   CUSTOMER DETAILS PAGE
========================================================= */

.customer-page-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}


/* Customer Profile */

.customer-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 40px;
}

.customer-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.customer-detail-item span {
    color: #667085;
    font-size: 14px;
}

.customer-detail-item strong {
    color: #0d1b2a;
    font-size: 16px;
}

.customer-detail-item.full {
    grid-column: 1 / -1;
}


/* Customer Summary */

.customer-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.customer-summary-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    border-left: 4px solid #d4af37;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.customer-summary-card span {
    display: block;
    color: #667085;
    font-weight: 600;
    margin-bottom: 10px;
}

.customer-summary-card span i {
    margin-right: 5px;
}

.customer-summary-card strong {
    display: block;
    font-size: 27px;
    color: #0d1b2a;
}

.amount-paid {
    color: #198754 !important;
}


/* Booking Status */

.customer-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d1e7dd;
    color: #0f5132;
}

.status-checked_in {
    background: #cff4fc;
    color: #055160;
}

.status-checked_out {
    background: #e2e3e5;
    color: #41464b;
}

.status-cancelled,
.status-rejected {
    background: #f8d7da;
    color: #842029;
}


/* Tablet */

@media (max-width: 1000px) {

    .customer-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* Mobile */

@media (max-width: 700px) {

    .customer-detail-grid {
        grid-template-columns: 1fr;
    }

    .customer-detail-item.full {
        grid-column: auto;
    }

    .customer-summary-grid {
        grid-template-columns: 1fr;
    }

    .customer-page-actions {
        flex-direction: column;
    }

    .customer-page-actions .btn {
        width: 100%;
        justify-content: center;
    }

}

/* =========================================================
   CUSTOMER VIEW - FINAL FORMATTING
========================================================= */

/* Action Buttons */
.customer-page-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 20px 0 !important;
}


/* =========================================================
   GUEST PROFILE
========================================================= */

.customer-detail-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    width: 100% !important;
}

.customer-detail-item {
    display: flex !important;
    flex-direction: column !important;
    padding: 18px 20px !important;
    min-height: 82px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.customer-detail-item span {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #667085 !important;
    margin-bottom: 6px !important;
}

.customer-detail-item strong {
    display: block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #0d1b2a !important;
    line-height: 1.4 !important;
}

.customer-detail-item.full {
    grid-column: 1 / -1 !important;
}


/* =========================================================
   CUSTOMER SUMMARY CARDS
========================================================= */

.customer-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin: 24px 0 !important;
    width: 100% !important;
}

.customer-summary-card {
    display: block !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 22px 24px !important;
    min-height: 125px !important;
    border-left: 4px solid #dcb52f !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06) !important;
}

.customer-summary-card span {
    display: block !important;
    color: #667085 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
}

.customer-summary-card span i {
    color: #0d1b2a !important;
    margin-right: 7px !important;
}

.customer-summary-card strong {
    display: block !important;
    color: #0d1b2a !important;
    font-size: 27px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.customer-summary-card .amount-paid,
.amount-paid {
    color: #198754 !important;
}


/* =========================================================
   CUSTOMER VIEW TABLE
========================================================= */

.table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
}

.admin-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.admin-table thead th {
    background: #f5f7fa !important;
    color: #0d1b2a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 15px 14px !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.admin-table tbody td {
    padding: 15px 14px !important;
    border-bottom: 1px solid #e5e7eb !important;
    vertical-align: middle !important;
    font-size: 14px !important;
}


/* =========================================================
   STATUS BADGES
========================================================= */

.customer-status {
    display: inline-block !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.status-pending {
    background: #fff3cd !important;
    color: #856404 !important;
}

.status-confirmed {
    background: #d1e7dd !important;
    color: #0f5132 !important;
}

.status-checked_in {
    background: #cff4fc !important;
    color: #055160 !important;
}

.status-checked_out {
    background: #e2e3e5 !important;
    color: #41464b !important;
}

.status-cancelled,
.status-rejected,
.status-no_show {
    background: #f8d7da !important;
    color: #842029 !important;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    text-align: center !important;
    padding: 35px 20px !important;
    color: #667085 !important;
}

.empty-state i {
    display: block !important;
    font-size: 30px !important;
    margin-bottom: 10px !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .customer-detail-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .customer-summary-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .customer-detail-grid {
        grid-template-columns: 1fr !important;
    }

    .customer-detail-item.full {
        grid-column: auto !important;
    }

    .customer-summary-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .customer-page-actions {
        flex-wrap: wrap !important;
    }

    .customer-summary-card {
        min-height: auto !important;
    }

}



/* =========================================================
   PAYMENTS PAGE
========================================================= */

.payment-filter-row {
    display: grid;
    grid-template-columns:
        minmax(260px, 2fr)
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        auto;
    gap: 15px;
    align-items: end;
}

.payment-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-filter-actions .btn {
    white-space: nowrap;
}

.payment-mode-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    background: #eef2f6;
    color: #0d1b2a;
    font-size: 12px;
    font-weight: 700;
}


/* Tablet */

@media (max-width: 1200px) {

    .payment-filter-row {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* Mobile */

@media (max-width: 700px) {

    .payment-filter-row {
        grid-template-columns: 1fr;
    }

    .payment-filter-actions {
        width: 100%;
    }

    .payment-filter-actions .btn {
        flex: 1;
    }

}

/* =========================================================
   PAYMENTS - SUMMARY CARDS FIX
========================================================= */

.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin: 25px 0 30px !important;
    width: 100% !important;
}

.stat-card {
    display: block !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 22px 25px !important;
    min-height: 125px !important;
    border-left: 4px solid #dcb52f !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.06) !important;
}

.stat-title {
    display: block !important;
    color: #667085 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
}

.stat-value {
    display: block !important;
    color: #0d1b2a !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}


/* Payment filter row */

.payment-filter-row {
    display: grid !important;
    grid-template-columns:
        minmax(280px, 2fr)
        minmax(160px, 1fr)
        minmax(160px, 1fr)
        minmax(160px, 1fr)
        auto !important;

    gap: 15px !important;
    align-items: end !important;
}

.payment-filter-row .form-group {
    margin: 0 !important;
}

.payment-filter-row input,
.payment-filter-row select {
    width: 100% !important;
    height: 48px !important;
}

.payment-filter-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.payment-filter-actions .btn {
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* Tablet */

@media (max-width: 1200px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .payment-filter-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }

}


/* Mobile */

@media (max-width: 700px) {

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .payment-filter-row {
        grid-template-columns: 1fr !important;
    }

    .payment-filter-actions {
        width: 100% !important;
    }

    .payment-filter-actions .btn {
        flex: 1 !important;
    }

}

/* =========================================================
   REPORTS PAGE
========================================================= */

.report-filter-row {
    display: grid !important;
    grid-template-columns:
        minmax(160px, 1fr)
        minmax(160px, 1fr)
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        auto !important;

    gap: 15px !important;
    align-items: end !important;
}

.report-filter-row .form-group {
    margin: 0 !important;
}

.report-filter-row input,
.report-filter-row select {
    width: 100% !important;
    height: 48px !important;
}

.report-filter-actions {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}

.report-filter-actions .btn {
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}


/* PAYMENT MODE CARDS */

.report-payment-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 15px !important;
}

.report-payment-card {
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 20px !important;
}

.report-payment-card span {
    display: block !important;
    color: #667085 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
}

.report-payment-card span i {
    color: #d4af37 !important;
    margin-right: 6px !important;
}

.report-payment-card strong {
    display: block !important;
    color: #0d1b2a !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}


/* TABLET */

@media (max-width: 1200px) {

    .report-filter-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .report-payment-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

}


/* MOBILE */

@media (max-width: 700px) {

    .report-filter-row {
        grid-template-columns: 1fr !important;
    }

    .report-filter-actions {
        width: 100% !important;
    }

    .report-filter-actions .btn {
        flex: 1 !important;
    }

    .report-payment-grid {
        grid-template-columns: 1fr !important;
    }

}

/* =========================================================
   HOUSEKEEPING
========================================================= */

.housekeeping-stats {
    margin-top: 20px !important;
    margin-bottom: 25px !important;
}

.housekeeping-filter-row {
    display: grid !important;
    grid-template-columns:
        minmax(300px, 2fr)
        minmax(220px, 1fr)
        auto !important;
    gap: 15px !important;
    align-items: end !important;
}

.housekeeping-filter-row .form-group {
    margin: 0 !important;
}

.housekeeping-filter-row input,
.housekeeping-filter-row select {
    width: 100% !important;
    height: 48px !important;
}

.housekeeping-filter-actions {
    display: flex !important;
    gap: 8px !important;
}

.housekeeping-filter-actions .btn {
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.housekeeping-update-form {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 !important;
}

.housekeeping-update-form select {
    width: 145px !important;
    min-width: 145px !important;
    height: 40px !important;
}

.housekeeping-update-form .btn {
    height: 40px !important;
    white-space: nowrap !important;
}

.house-room-number {
    font-size: 17px !important;
    color: #0d1b2a !important;
}


@media (max-width: 900px) {

    .housekeeping-filter-row {
        grid-template-columns: 1fr !important;
    }

    .housekeeping-filter-actions {
        width: 100% !important;
    }

    .housekeeping-filter-actions .btn {
        flex: 1 !important;
    }

}

/* =========================================================
   LIVE DASHBOARD
========================================================= */

.dashboard-main-cards,
.dashboard-today-cards {
    margin-bottom: 22px !important;
}

.dashboard-card small {
    display: block;
    margin-top: 8px;
    color: #667085;
    font-size: 13px;
}


/* FINANCE */

.dashboard-finance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-money-card {
    display: flex !important;
    align-items: center;
    gap: 18px;
    margin-bottom: 0 !important;
}

.dashboard-money-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    border-radius: 12px;
    background: #fff7db;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.dashboard-money-card span {
    display: block;
    color: #667085;
    font-weight: 600;
    margin-bottom: 5px;
}

.dashboard-money-card strong {
    display: block;
    color: #0d1b2a;
    font-size: 27px;
}


/* QUICK ACTIONS */

.dashboard-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* ARRIVAL / DEPARTURE */

.dashboard-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-two-column .admin-card {
    min-width: 0;
}

.dashboard-empty {
    color: #667085;
    padding: 12px 0;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .dashboard-two-column,
    .dashboard-finance-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .dashboard-quick-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-quick-actions .btn {
        width: 100%;
        justify-content: center;
    }

}

/* =========================================================
   DASHBOARD QUICK ACTION BUTTON FIX
========================================================= */

.dashboard-quick-actions .btn {
    min-height: 46px !important;
    padding: 0 18px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 7px !important;

    border-radius: 7px !important;

    text-decoration: none !important;

    font-size: 15px !important;
    font-weight: 600 !important;

    white-space: nowrap !important;
}


/* Housekeeping */

.dashboard-quick-actions .btn-warning {
    background: #dcb52f !important;
    border: 1px solid #dcb52f !important;
    color: #0d1b2a !important;
}

.dashboard-quick-actions .btn-warning:hover {
    background: #c9a323 !important;
    border-color: #c9a323 !important;
    color: #0d1b2a !important;
}


/* Primary */

.dashboard-quick-actions .btn-primary {
    background: #0d1b2a !important;
    border-color: #0d1b2a !important;
    color: #ffffff !important;
}


/* Payment */

.dashboard-quick-actions .btn-success {
    background: #198754 !important;
    border-color: #198754 !important;
    color: #ffffff !important;
}

/* =========================================================
   USER PERMISSIONS
========================================================= */

.permission-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.permission-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 15px;

    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 9px;

    cursor: pointer;
}

.permission-item:hover {
    border-color: #dcb52f;
}

.permission-item input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.permission-item span {
    display: block;
}

.permission-item strong {
    display: block;
    color: #0d1b2a;
    font-size: 14px;
}

.permission-item small {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
}

@media (max-width: 1000px) {

    .permission-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 650px) {

    .permission-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   HOTEL SETTINGS
========================================================= */

.settings-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.settings-info-box {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.settings-info-box span {
    display: block;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

.settings-info-box strong {
    display: block;
    color: #0d1b2a;
    font-size: 17px;
}

.settings-save-bar {
    display: flex;
    justify-content: flex-end;

    background: #ffffff;
    padding: 18px 20px;

    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);

    margin-bottom: 25px;
}

.settings-save-bar .btn {
    min-width: 170px;
    height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

@media (max-width: 900px) {

    .settings-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .settings-info-grid {
        grid-template-columns: 1fr;
    }

    .settings-save-bar .btn {
        width: 100%;
    }

}


