
/* =====================================================
   TeHoMS - MAIN STYLESHEET
   RESPONSIVE VERSION
   Desktop + iPad + Mobile
===================================================== */

/* =====================================================
   GENERAL
===================================================== */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: #f6f2eb;
    color: #2d2925;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: Arial, sans-serif;
}

img {
    max-width: 100%;
}

/* =====================================================
   TOP NAVIGATION
===================================================== */

.nav {
    background: #fff;
    padding: 16px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px #0001;
    position: relative;
    z-index: 5;
}

.nav .links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.nav .links a {
    margin-left: 0;
}

.brand {
    font-weight: 800;
    letter-spacing: 2px;
}

/* =====================================================
   MAIN CONTAINER
===================================================== */

.container {
    width: min(1100px, 92%);
    margin: 32px auto;
}

/* =====================================================
   HOME HERO
===================================================== */

.hero {
    min-height: 72vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px;
    background:
        linear-gradient(#0007, #0007),
        url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1600&q=80")
        center/cover;
    color: #fff;
}

.hero-card {
    max-width: 720px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 70px);
    margin: 0 0 10px;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    padding: 13px 22px;
    margin: 6px;
    background: #3e6547;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.btn:hover {
    opacity: .92;
}

.btn.secondary {
    background: #fff;
    color: #3e6547;
}

.btn.danger {
    background: #9b3d3d;
}

/* =====================================================
   ADMIN LINK
===================================================== */

.admin-link {
    display: block;
    margin-top: 48px;
    font-size: 12px;
    opacity: .35;
}

.admin-link:hover {
    opacity: .9;
}

/* =====================================================
   CARDS
===================================================== */

.card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 5px 20px #0000000d;
    margin: 16px 0;
}

/* =====================================================
   GRID
===================================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

/* =====================================================
   HOMESTAY / ROOM CARDS
===================================================== */

.room img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 12px;
}

/* =====================================================
   STANDARD FORM
===================================================== */

.form {
    max-width: 580px;
    margin: 35px auto;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 12px;
    margin: 7px 0 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* =====================================================
   ALERT / STATUS
===================================================== */

.alert {
    padding: 12px;
    border-radius: 8px;
    background: #fff1c9;
    margin: 12px 0;
}

.success {
    background: #dff3e4;
}

.status {
    font-weight: 700;
}

.badge {
    padding: 5px 9px;
    border-radius: 20px;
    background: #eee;
    font-size: 12px;
}

.stat {
    font-size: 30px;
    font-weight: 800;
}

.muted {
    color: #777;
}

/* =====================================================
   ADMIN LAYOUT
===================================================== */

.sidebar-layout {
    display: block;
    width: 100%;
    min-height: 100vh;
}

.main {
    min-width: 0;
    width: auto;
    min-height: 100vh;
    margin-left: 265px;
    padding: 28px;
}

/* =====================================================
   ADMIN SIDEBAR - DESKTOP
===================================================== */

.sidebar {
    width: 265px;
    min-width: 265px;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    flex-shrink: 0;
    padding: 25px 17px;
    background:
        linear-gradient(
            180deg,
            #203d2a 0%,
            #294d35 65%,
            #203c2a 100%
        );
    color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
}

.sidebar::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    right: -100px;
    bottom: -80px;
    border-radius: 50%;
    background: #ffffff08;
    pointer-events: none;
}

.sidebar-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 5px 22px;
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff18;
    border: 1px solid #ffffff20;
    border-radius: 12px;
    font-size: 20px;
}

.sidebar-brand h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: .5px;
}

.sidebar-brand small {
    display: block;
    margin-top: 4px;
    color: #b8cbbd;
    font-size: 9px;
    letter-spacing: .3px;
}

.sidebar-subtitle {
    position: relative;
    z-index: 2;
    margin: 2px 6px 12px;
    color: #9db4a2;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.sidebar-nav {
    position: relative;
    z-index: 2;
}

.sidebar-nav a,
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    margin: 5px 0;
    border-radius: 11px;
    color: #e3ece5;
    font-size: 13px;
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.sidebar-nav a span:first-child,
.sidebar-logout span:first-child {
    width: 21px;
    min-width: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b7cbbb;
    font-size: 17px;
}

.sidebar-nav a:hover {
    background: #ffffff12;
    color: #fff;
    transform: translateX(2px);
}

.sidebar-nav a:hover span:first-child {
    color: #fff;
}

.sidebar-nav a.active {
    background: linear-gradient(90deg, #6f9878, #557860);
    color: #fff;
    box-shadow: 0 7px 18px #10261825;
}

.sidebar-nav a.active span:first-child {
    color: #fff;
}

.sidebar-bottom {
    position: relative;
    z-index: 2;
    margin-top: 18px;
}

.sidebar-divider {
    height: 1px;
    margin: 12px 5px 14px;
    background: #ffffff18;
}

.sidebar-logout {
    color: #dfe9e1;
}

.sidebar-logout:hover {
    background: #ffffff10;
    color: #fff;
}

.sidebar-branding {
    position: absolute;
    z-index: 2;
    left: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    color: #9eb5a2;
    font-family: Georgia, serif;
    font-style: italic;
}

.sidebar-branding span {
    font-size: 18px;
}

.sidebar-branding strong {
    font-size: 21px;
    font-weight: 400;
}

/* =====================================================
   MOBILE NAV - DEFAULT HIDDEN
===================================================== */

.mobile-bottom-nav,
.mobile-more-menu,
.mobile-more-overlay {
    display: none;
}

/* =====================================================
   HOMESTAY DETAILS
===================================================== */

.detail-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 22px;
    align-items: start;
}

.cover-image {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 16px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-item {
    background: #f8f8f8;
    padding: 14px;
    border-radius: 10px;
}

.price-big {
    font-size: 28px;
    font-weight: 800;
    color: #3e6547;
}

/* =====================================================
   ADMIN HOMESTAY FORM
===================================================== */

.room-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.room-form-grid .full {
    grid-column: 1 / -1;
}

.admin-form input:not([type="checkbox"]):not([type="radio"]),
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 6px;
}

.admin-form textarea {
    min-height: 90px;
}

.thumb {
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
}

/* =====================================================
   PAYMENT DISPLAY / SETTINGS
===================================================== */

.payment-box {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 18px;
    margin: 18px 0;
}

.qr-image {
    max-width: 260px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 8px;
    background: #fff;
}

.payment-settings-form {
    width: 100%;
}

.payment-settings-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin: 20px 0 28px;
    box-shadow: 0 5px 20px #0000000d;
}

.payment-settings-card h2 {
    margin: 0 0 14px;
    font-size: 27px;
}

.payment-settings-card .section-description {
    margin: 0 0 22px;
    line-height: 1.5;
}

.payment-settings-form .form-group {
    margin-bottom: 18px;
}

.payment-settings-form .form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.payment-settings-form .form-group input[type="text"] {
    display: block;
    width: 100%;
    padding: 13px 16px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    outline: none;
}

.payment-settings-form .form-group input[type="text"]:focus {
    border-color: #3e6547;
}

.payment-settings-form .checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 18px;
    margin-top: 22px;
    background: #f8f8f8;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.payment-settings-form .checkbox-row input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    margin: 0 !important;
    padding: 0;
    flex: 0 0 20px;
    cursor: pointer;
}

.payment-settings-form .current-qr {
    margin: 20px 0;
}

.payment-settings-form .current-qr > label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
}

.payment-settings-form .qr-preview {
    display: inline-block;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px;
}

.payment-settings-form .qr-preview img {
    display: block;
    width: auto;
    max-width: 250px;
    max-height: 250px;
    object-fit: contain;
}

.payment-settings-form .file-input {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.payment-settings-form .save-settings-btn {
    margin: 0 0 30px;
}

/* =====================================================
   ADMIN PAYMENT VERIFICATION
===================================================== */

.payments-page {
    padding: 12px 0;
}

.payments-page > h1 {
    margin: 0 0 10px;
    font-size: 36px;
    line-height: 1.2;
}

.payments-page .page-description {
    margin: 0 0 30px;
    color: #777;
    font-size: 15px;
    line-height: 1.5;
}

.payments-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 30px;
    box-shadow: 0 5px 20px #0000000d;
    margin-bottom: 30px;
}

.payments-card h2 {
    margin: 0 0 22px;
    font-size: 27px;
}

.payments-card .table-wrap {
    width: 100%;
    overflow-x: auto;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #e8e8e8;
    white-space: nowrap;
}

.payments-table td {
    padding: 17px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.payments-table tbody tr:last-child td {
    border-bottom: 0;
}

.payments-table tbody tr:hover {
    background: #faf9f7;
}

.payments-table .booking-number,
.payment-amount {
    font-weight: 700;
    white-space: nowrap;
}

.customer-name {
    font-weight: 700;
    color: #2d2925;
    margin-bottom: 5px;
}

.customer-email {
    color: #888;
    font-size: 12px;
    line-height: 1.3;
}

.receipt-btn {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 8px;
    background: #eee;
    color: #2d2925;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.payment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.payment-status.verified {
    background: #dff3e4;
    color: #28623a;
}

.payment-status.submitted {
    background: #fff1c9;
    color: #805d00;
}

.payment-status.rejected {
    background: #f5dddd;
    color: #8b3333;
}

.payment-actions {
    white-space: nowrap;
}

.payment-action-btn {
    display: inline-block;
    padding: 10px 16px;
    margin: 2px 4px 2px 0;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.verify-btn {
    background: #3e6547;
}

.reject-btn {
    background: #9b3d3d;
}

.payment-completed {
    color: #777;
    font-size: 13px;
    white-space: nowrap;
}

.payment-rejected-text {
    color: #9b3d3d;
    font-size: 13px;
    white-space: nowrap;
}

/* =====================================================
   HOUSEKEEPING
===================================================== */

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    margin: 0 0 12px;
    font-size: 36px;
}

.page-header p {
    margin: 0;
    color: #777;
    font-size: 17px;
}

.housekeeping-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 32px 32px;
    box-shadow: 0 5px 20px #0000000d;
}

.housekeeping-card h2 {
    margin: 0 0 24px;
    font-size: 27px;
}

.housekeeping-table {
    width: 100%;
    border-collapse: collapse;
}

.housekeeping-table th {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid #e7e7e7;
}

.housekeeping-table td {
    padding: 17px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.housekeeping-table tbody tr:last-child td {
    border-bottom: 0;
}

.cleaning-date {
    font-weight: 700;
}

.hk-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.hk-completed {
    background: #d8eee0;
    color: #23633a;
}

.hk-pending {
    background: #fff0c7;
    color: #806000;
}

.housekeeping-btn {
    margin: 0;
    padding: 8px 12px;
    border-radius: 7px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.completed-text {
    color: #777;
    font-size: 14px;
}

/* =====================================================
   ADMIN HOMESTAYS TABLE
===================================================== */

.admin-table-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px 32px;
    margin-top: 20px;
    box-shadow: 0 5px 20px #0000000d;
}

.admin-table-card .section-heading {
    margin-bottom: 20px;
}

.admin-table-card .section-heading h2 {
    margin: 0 0 10px;
    font-size: 27px;
}

.admin-table-card .section-heading p {
    margin: 0;
    line-height: 1.5;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.admin-table th {
    padding: 15px 14px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.admin-table td {
    padding: 20px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    line-height: 1.4;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: #faf9f6;
}

.admin-table th:nth-child(1),
.admin-table td:nth-child(1) { width: 120px; }

.admin-table th:nth-child(2),
.admin-table td:nth-child(2) { min-width: 260px; }

.admin-table th:nth-child(3),
.admin-table td:nth-child(3) { width: 120px; }

.admin-table th:nth-child(4),
.admin-table td:nth-child(4) { width: 150px; }

.admin-table th:nth-child(5),
.admin-table td:nth-child(5) { width: 100px; }

.admin-table th:nth-child(6),
.admin-table td:nth-child(6) { width: 110px; }

.admin-table th:nth-child(7),
.admin-table td:nth-child(7) { width: 150px; }

.admin-table .thumb {
    display: block;
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e4e4e4;
}

.no-image-thumb {
    width: 100px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f3f3f3;
    border: 1px dashed #ccc;
    border-radius: 10px;
    color: #888;
    font-size: 12px;
}

.homestay-name {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 700;
}

.homestay-facilities {
    max-width: 330px;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.admin-table .booking-total {
    font-weight: 700;
    white-space: nowrap;
}

.table-subtext {
    margin-top: 3px;
    color: #777;
    font-size: 12px;
    font-weight: 400;
}

.gallery-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: #f0f0f0;
    border-radius: 20px;
    font-weight: 700;
}

.booking-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.status-confirmed {
    background: #dcefe2;
    color: #28623a;
}

.status-inactive {
    background: #f1dddd;
    color: #8a3434;
}

.status-awaiting {
    background: #fff0c2;
    color: #755800;
}

.status-verification {
    background: #e6edf7;
    color: #365b86;
}

.status-cancelled,
.status-rejected {
    background: #f1dddd;
    color: #8a3434;
}

.status-default {
    background: #eee;
    color: #555;
}

.table-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.table-actions .small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 105px;
    margin: 0;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.table-actions .btn.secondary {
    background: #eef2ed;
    color: #315b3a;
}

.table-actions .btn.danger {
    background: #a33e3e;
    color: #fff;
}

.admin-section-card {
    border-radius: 18px;
    padding: 30px 32px;
    margin-bottom: 20px;
}

/* =====================================================
   CUSTOMER RECORDS
===================================================== */

.customer-table-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px 34px;
    margin-top: 25px;
    box-shadow: 0 5px 20px #0000000d;
}

.customer-table-card .section-heading {
    margin-bottom: 20px;
}

.customer-table-card .section-heading h2 {
    margin: 0 0 7px;
    font-size: 27px;
}

.customer-table-card .section-heading p {
    margin: 0;
}

.customer-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.customer-table th {
    padding: 16px 14px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid #ddd;
}

.customer-table td {
    padding: 18px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.customer-table tbody tr:last-child td {
    border-bottom: none;
}

.customer-table tbody tr:hover {
    background: #faf9f6;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 13px;
}

.customer-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e4eee6;
    color: #3e6547;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 800;
}

.booking-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 10px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.booking-total {
    font-weight: 700;
}

.customer-table .center-column {
    text-align: center;
}

.customer-table .value-column {
    text-align: right;
}

.customer-id {
    display: inline-block;
    font-weight: 700;
    color: #3e6547;
    white-space: nowrap;
}

/* =====================================================
   USER PROFILE
===================================================== */

.profile-page {
    width: min(760px, 92%);
    margin: 50px auto 70px;
}

.profile-heading {
    text-align: center;
    margin-bottom: 28px;
}

.profile-heading h1 {
    margin: 0 0 10px;
    font-size: 38px;
}

.profile-heading p {
    margin: 0;
    color: #777;
    font-size: 16px;
}

.profile-card {
    background: #fff;
    padding: 36px 40px;
    border-radius: 18px;
    box-shadow: 0 6px 25px #0000000d;
}

.profile-form-group {
    margin-bottom: 20px;
}

.profile-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
}

.profile-form-group input {
    display: block;
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d5d5d5;
    border-radius: 9px;
    background: #fff;
    font-size: 15px;
    outline: none;
}

.profile-form-group input:focus {
    border-color: #3e6547;
    box-shadow: 0 0 0 3px #3e654715;
}

.profile-form-group input:disabled {
    background: #f3f3f3;
    color: #777;
}

.profile-form-group small {
    display: block;
    margin-top: 7px;
    color: #888;
    font-size: 12px;
}

.profile-password-section {
    margin: 30px 0 20px;
    padding-top: 25px;
    border-top: 1px solid #e7e7e7;
}

.profile-password-section h3 {
    margin: 0 0 7px;
    font-size: 20px;
}

.profile-password-section p {
    margin: 0;
    font-size: 14px;
}

.profile-update-btn {
    margin: 8px 0 0;
    min-width: 170px;
    padding: 13px 22px;
}

/* =====================================================
   USER DASHBOARD - CUSTOMER
===================================================== */

.dashboard-page {
    width: min(1050px, 92%);
    margin: 45px auto 70px;
}

.dashboard-welcome {
    background: #e8f0e8;
    border: 1px solid #c8d9ca;
    border-radius: 22px;
    padding: 42px 40px;
    margin-bottom: 52px;
    box-shadow: 0 8px 25px rgba(54,113,70,.08);
}

.dashboard-welcome .welcome-label {
    display: block;
    color: #367146;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.dashboard-welcome h1 {
    margin: 0 0 10px;
    color: #173c24;
    font-size: 38px;
    font-weight: 750;
    line-height: 1.2;
}

.dashboard-welcome p {
    margin: 0;
    color: #5f7565;
    font-size: 16px;
    line-height: 1.6;
}

.dashboard-summary {
    display: none !important;
}

.dashboard-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-section-heading > div > span {
    display: block;
    margin-bottom: 6px;
    color: #3e6547;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.dashboard-section-heading h2 {
    margin: 0;
    font-size: 30px;
}

.dashboard-book-btn,
.modern-pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #3e6547;
    color: #fff;
    font-weight: 700;
}

.dashboard-book-btn {
    padding: 11px 18px;
    font-size: 13px;
}

.modern-booking-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 30px;
    margin-bottom: 20px;
    border: 1px solid #eeeae3;
    box-shadow: 0 5px 20px #0000000b;
}

.modern-booking-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.booking-number {
    display: block;
    margin-bottom: 6px;
    color: #888;
    font-size: 13px;
}

.booking-title-area h3 {
    margin: 0;
    font-size: 21px;
}

.modern-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-confirmed {
    background: #dff3e4;
    color: #28623a;
}

.badge-awaiting {
    background: #fff1c9;
    color: #805d00;
}

.badge-verification {
    background: #e6edf7;
    color: #365b86;
}

.badge-cancelled,
.badge-rejected {
    background: #f5dddd;
    color: #8b3333;
}

.badge-default {
    background: #eee;
    color: #555;
}

.modern-booking-details {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 0;
    padding: 22px 0;
}

.booking-detail {
    padding: 0 25px;
    border-right: 1px solid #eee;
}

.booking-detail:first-child {
    padding-left: 0;
}

.booking-detail:last-child {
    border-right: 0;
}

.detail-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    color: #888;
}

.booking-detail strong {
    font-size: 15px;
}

.detail-price {
    color: #3e6547 !important;
    font-size: 16px !important;
}

.arrow {
    color: #aaa;
    padding: 0 5px;
}

.modern-booking-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.booking-message {
    font-size: 14px;
    line-height: 1.5;
}

.booking-message.confirmed { color: #367146; font-weight: 600; }
.booking-message.verification { color: #365b86; }
.booking-message.pending { color: #805d00; }
.booking-message.rejected { color: #8b3333; }

.modern-pay-btn {
    padding: 10px 17px;
    border-radius: 9px;
    font-size: 12px;
    white-space: nowrap;
}

.warning-btn {
    background: #b87925;
}

.empty-booking {
    background: #fff;
    border: 1px solid #eeeae3;
    border-radius: 18px;
    padding: 45px 30px;
    text-align: center;
}

.empty-booking h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.empty-booking p {
    max-width: 500px;
    margin: 0 auto 22px;
    color: #777;
    line-height: 1.6;
}

.dashboard-bottom-cta {
    display: none !important;
}



/* =====================================================
   BOOKING MANAGEMENT - RESPONSIVE UI
   Balanced desktop/tablet table + mobile cards.
===================================================== */

.booking-management-card {
    padding: 28px 30px 30px;
}

.booking-management-card h2 {
    margin: 0 0 22px;
    font-size: 27px;
    line-height: 1.2;
}

.booking-management-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.booking-management-table th,
.booking-management-table td {
    padding-left: 12px;
    padding-right: 12px;
}

.booking-management-table th {
    padding-top: 14px;
    padding-bottom: 14px;
}

.booking-management-table td {
    padding-top: 17px;
    padding-bottom: 17px;
}

.booking-management-table th:nth-child(1),
.booking-management-table td:nth-child(1) { width: 12%; }

.booking-management-table th:nth-child(2),
.booking-management-table td:nth-child(2) { width: 18%; min-width: 0; }

.booking-management-table th:nth-child(3),
.booking-management-table td:nth-child(3) { width: 18%; min-width: 0; }

.booking-management-table th:nth-child(4),
.booking-management-table td:nth-child(4) { width: 14%; }

.booking-management-table th:nth-child(5),
.booking-management-table td:nth-child(5) { width: 14%; }

.booking-management-table th:nth-child(6),
.booking-management-table td:nth-child(6) { width: 11%; }

.booking-management-table th:nth-child(7),
.booking-management-table td:nth-child(7) { width: 13%; }

.booking-management-table th:nth-child(4),
.booking-management-table th:nth-child(5),
.booking-management-table th:nth-child(6),
.booking-management-table th:nth-child(7),
.booking-management-table td:nth-child(4),
.booking-management-table td:nth-child(5),
.booking-management-table td:nth-child(6),
.booking-management-table td:nth-child(7) {
    text-align: center;
}

.booking-management-table .booking-id,
.booking-management-table .booking-total,
.booking-management-table td:nth-child(4),
.booking-management-table td:nth-child(5) {
    white-space: nowrap;
}

.booking-management-table td:nth-child(2),
.booking-management-table td:nth-child(3) {
    overflow-wrap: anywhere;
}

.booking-management-table .booking-status {
    max-width: 100%;
}

@media (min-width: 1400px) {
    .booking-management-card {
        padding-left: 32px;
        padding-right: 32px;
    }

    .booking-management-table th,
    .booking-management-table td {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (min-width: 801px) and (max-width: 1100px) {
    .booking-management-card {
        padding: 24px;
    }

    .booking-management-card h2 {
        font-size: 25px;
        margin-bottom: 16px;
    }

    .booking-management-table {
        min-width: 820px;
    }

    .booking-management-table th {
        font-size: 13px;
        padding: 13px 9px;
    }

    .booking-management-table td {
        font-size: 14px;
        padding: 15px 9px;
    }

    .booking-management-table .booking-status {
        padding: 6px 9px;
        font-size: 11px;
    }
}

@media (max-width: 800px) {
    .booking-management-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .booking-management-card h2 {
        font-size: 23px;
        margin-bottom: 16px;
    }

    .booking-management-table {
        min-width: 0 !important;
    }

    .booking-management-table tr {
        padding: 11px 14px;
    }

    .booking-management-table td {
        padding: 10px 0;
        font-size: 14px;
    }

    .booking-management-table td:nth-child(4),
    .booking-management-table td:nth-child(5) {
        white-space: normal;
        text-align: right;
    }

    .booking-management-table .booking-status {
        margin-left: auto;
    }
}

/* =====================================================
   GENERIC TABLE WRAPPER
===================================================== */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* =====================================================
   TABLET / iPAD
   Keep desktop sidebar, reduce content safely.
===================================================== */

@media (max-width: 1100px) {

    .main {
        padding: 24px;
    }

    .admin-table-card,
    .customer-table-card,
    .payments-card,
    .housekeeping-card {
        padding: 24px;
    }

    .admin-table,
    .payments-table,
    .housekeeping-table,
    .customer-table {
        min-width: 760px;
    }

    .detail-hero {
        grid-template-columns: 1fr;
    }

    .cover-image {
        height: 350px;
    }
}

/* =====================================================
   MOBILE <= 800px
===================================================== */

@media (max-width: 800px) {

    body {
        padding-bottom: 0;
    }

    /* -----------------------------------------------
       REMOVE DESKTOP SIDEBAR
    ----------------------------------------------- */

    .sidebar-layout {
        display: block;
        min-height: 100vh;
        width: 100%;
    }

    .sidebar {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        overflow: visible !important;
        box-shadow: none !important;
        z-index: auto;
    }

    .sidebar::after {
        display: none;
    }

    .sidebar-brand,
    .sidebar-subtitle,
    .sidebar-nav,
    .sidebar-bottom,
    .sidebar-branding {
        display: none !important;
    }

    /* -----------------------------------------------
       MAIN
    ----------------------------------------------- */

    .main {
        width: 100% !important;
        min-width: 0 !important;
        padding: 20px 16px 92px !important;
        overflow: visible;
    }

    /* -----------------------------------------------
       BOTTOM NAVIGATION
    ----------------------------------------------- */

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 68px;
        z-index: 9999;

        display: grid !important;
        grid-template-columns: repeat(5, 1fr);
        align-items: stretch;

        background: rgba(255,255,255,.98);
        border-top: 1px solid #e7e2d9;
        box-shadow: 0 -6px 25px rgba(0,0,0,.08);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .mobile-bottom-nav a,
    .mobile-more-btn {
        position: relative;
        min-width: 0;
        width: 100%;
        height: 68px;

        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 3px;
        padding: 7px 2px 5px;

        border: 0;
        background: transparent;
        color: #8a8a8a;

        font-family: Arial, sans-serif;
        font-size: 12px;
        cursor: pointer;
        text-decoration: none;
    }

    .mobile-nav-icon {
        width: 25px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        line-height: 1;
    }

    .mobile-nav-label {
        font-size: 9px;
        line-height: 1.2;
        font-weight: 700;
        white-space: nowrap;
    }

    .mobile-bottom-nav a.active {
        color: #3e6547;
    }

    .mobile-bottom-nav a.active::before {
        content: "";
        position: absolute;
        top: 0;
        left: 22%;
        right: 22%;
        height: 3px;
        background: #3e6547;
        border-radius: 0 0 5px 5px;
    }

    /* -----------------------------------------------
       MORE MENU
    ----------------------------------------------- */

    .mobile-more-menu {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 78px;
        z-index: 10001;

        display: none;
        background: #fff;
        border-radius: 18px;
        padding: 12px;
        box-shadow: 0 15px 45px rgba(0,0,0,.18);
        border: 1px solid #eee9df;
    }

    .mobile-more-menu.show {
        display: block;
    }

    .mobile-more-overlay {
        position: fixed;
        inset: 0;
        z-index: 10000;
        display: none;
        background: rgba(30,40,32,.30);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .mobile-more-overlay.show {
        display: block;
    }

    .mobile-more-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 7px 8px 12px;
        border-bottom: 1px solid #eeeae3;
        margin-bottom: 7px;
    }

    .mobile-more-header strong {
        color: #2d2925;
        font-size: 15px;
    }

    .mobile-more-header button {
        width: 30px;
        height: 30px;
        border: 0;
        border-radius: 50%;
        background: #f3f1ed;
        color: #555;
        font-size: 20px;
        cursor: pointer;
    }

    .mobile-more-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 46px;
        padding: 9px 11px;
        margin: 3px 0;
        border-radius: 10px;
        color: #444;
        font-size: 13px;
    }

    .mobile-more-menu a span {
        width: 25px;
        min-width: 25px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #edf3ee;
        color: #3e6547;
        border-radius: 8px;
        font-size: 14px;
    }

    .mobile-more-menu a.active {
        background: #e8f0e8;
        color: #31563a;
        font-weight: 700;
    }

    .mobile-more-menu .mobile-more-logout {
        margin-top: 7px;
        border-top: 1px solid #eeeae3;
        border-radius: 0;
        padding-top: 13px;
        color: #9b3d3d;
    }

    .mobile-more-menu .mobile-more-logout span {
        background: #f7e8e8;
        color: #9b3d3d;
    }

    /* -----------------------------------------------
       OLD MOBILE SIDEBAR SYSTEM
    ----------------------------------------------- */

    .mobile-menu-btn {
        display: none !important;
    }

    .sidebar-overlay {
        display: none !important;
    }

    /* -----------------------------------------------
       HEADINGS
    ----------------------------------------------- */

    .page-header {
        margin-bottom: 20px;
    }

    .page-header h1,
    .payments-page > h1 {
        font-size: 29px;
        line-height: 1.15;
    }

    .page-header p,
    .payments-page .page-description {
        font-size: 14px;
    }

    /* -----------------------------------------------
       PAYMENT SETTINGS
    ----------------------------------------------- */

    .payment-settings-card {
        padding: 22px;
        border-radius: 16px;
    }

    .payment-settings-card h2 {
        font-size: 23px;
    }

    .payment-settings-form .qr-preview img {
        max-width: 100%;
        height: auto;
    }

    /* -----------------------------------------------
       HOMESTAY
    ----------------------------------------------- */

    .detail-hero {
        grid-template-columns: 1fr;
    }

    .cover-image {
        height: 280px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery img {
        height: 110px;
    }

    .detail-list,
    .room-form-grid,
    .booking-info {
        grid-template-columns: 1fr;
    }

    /* -----------------------------------------------
       CUSTOMER PROFILE
    ----------------------------------------------- */

    .profile-page {
        width: 100%;
        margin: 30px auto 50px;
    }

    .profile-heading h1 {
        font-size: 31px;
    }

    .profile-card {
        padding: 25px 22px;
    }

    .profile-update-btn {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* =================================================
       IMPORTANT:
       ADMIN TABLES BECOME MOBILE CARDS
       No horizontal clipping.
    ================================================= */

    .table-wrap {
        width: 100%;
        overflow: visible;
    }

    /* Hide table header */
    .admin-table thead,
    .customer-table thead,
    .payments-table thead,
    .housekeeping-table thead {
        display: none;
    }

    .admin-table,
    .customer-table,
    .payments-table,
    .housekeeping-table {
        width: 100%;
        min-width: 0 !important;
        display: block;
        border-collapse: separate;
    }

    .admin-table tbody,
    .customer-table tbody,
    .payments-table tbody,
    .housekeeping-table tbody {
        display: block;
        width: 100%;
    }

    .admin-table tr,
    .customer-table tr,
    .payments-table tr,
    .housekeeping-table tr {
        display: block;
        width: 100%;
        background: #fff;
        border: 1px solid #eeeae3;
        border-radius: 14px;
        margin-bottom: 14px;
        padding: 10px 14px;
        box-shadow: 0 3px 12px rgba(0,0,0,.035);
    }

    .admin-table td,
    .customer-table td,
    .payments-table td,
    .housekeeping-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;

        width: 100% !important;
        min-width: 0 !important;
        padding: 10px 0;

        border-bottom: 1px solid #f0eee9;
        text-align: right;
        line-height: 1.4;

        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .admin-table td:last-child,
    .customer-table td:last-child,
    .payments-table td:last-child,
    .housekeeping-table td:last-child {
        border-bottom: 0;
    }

    /* Mobile field labels */
    .admin-table td::before,
    .customer-table td::before,
    .payments-table td::before,
    .housekeeping-table td::before {
        flex: 0 0 42%;
        width: 42%;
        color: #888;
        font-size: 11px;
        font-weight: 700;
        text-align: left;
    }

    /* BOOKING TABLE LABELS */
    .admin-table td:nth-child(1)::before { content: "Booking ID"; }
    .admin-table td:nth-child(2)::before { content: "Customer"; }
    .admin-table td:nth-child(3)::before { content: "Homestay"; }
    .admin-table td:nth-child(4)::before { content: "Check-in"; }
    .admin-table td:nth-child(5)::before { content: "Check-out"; }
    .admin-table td:nth-child(6)::before { content: "Total"; }
    .admin-table td:nth-child(7)::before { content: "Status"; }

    /* CUSTOMER TABLE LABELS */
    .customer-table td:nth-child(1)::before { content: "Customer ID"; }
    .customer-table td:nth-child(2)::before { content: "Customer"; }
    .customer-table td:nth-child(3)::before { content: "Phone"; }
    .customer-table td:nth-child(4)::before { content: "Email"; }
    .customer-table td:nth-child(5)::before { content: "Total Bookings"; }
    .customer-table td:nth-child(6)::before { content: "Booking Value"; }

    /* PAYMENT TABLE LABELS */
    .payments-table td:nth-child(1)::before { content: "Booking"; }
    .payments-table td:nth-child(2)::before { content: "Customer"; }
    .payments-table td:nth-child(3)::before { content: "Room"; }
    .payments-table td:nth-child(4)::before { content: "Amount"; }
    .payments-table td:nth-child(5)::before { content: "Receipt"; }
    .payments-table td:nth-child(6)::before { content: "Status"; }
    .payments-table td:nth-child(7)::before { content: "Action"; }

    /* HOUSEKEEPING TABLE LABELS */
    .housekeeping-table td:nth-child(1)::before { content: "Date"; }
    .housekeeping-table td:nth-child(2)::before { content: "Booking"; }
    .housekeeping-table td:nth-child(3)::before { content: "Room"; }
    .housekeeping-table td:nth-child(4)::before { content: "Previous Guest"; }
    .housekeeping-table td:nth-child(5)::before { content: "Status"; }
    .housekeeping-table td:nth-child(6)::before { content: "Action"; }

    /* Keep useful inner elements from becoming too wide */
    .customer-info {
        justify-content: flex-end;
        max-width: 58%;
        text-align: right;
    }

    .customer-avatar {
        flex-shrink: 0;
    }

    .customer-email,
    .homestay-facilities {
        max-width: 58%;
        text-align: right;
    }

    .admin-table .thumb,
    .no-image-thumb {
        width: 75px;
        height: 58px;
    }

    .table-actions {
        align-items: flex-end;
        width: 58%;
    }

    .table-actions .small-btn {
        min-width: 110px;
    }

    .payment-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 58%;
        white-space: normal;
    }

    .payment-status,
    .booking-status,
    .hk-badge {
        margin-left: auto;
    }

    /* -----------------------------------------------
       DASHBOARD / GENERAL CARD SPACING
    ----------------------------------------------- */

    .admin-dashboard-main {
        padding-bottom: 95px !important;
    }

    .dashboard-page {
        width: 92%;
        margin: 30px auto 50px;
    }

    .dashboard-welcome {
        padding: 25px 22px;
        border-radius: 16px;
        margin-bottom: 32px;
    }

    .dashboard-welcome h1 {
        font-size: 27px;
    }

    .dashboard-welcome p {
        font-size: 14px;
    }

    .dashboard-section-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .dashboard-section-heading h2 {
        font-size: 27px;
    }

    .dashboard-book-btn {
        width: 100%;
    }

    .modern-booking-card {
        padding: 22px 20px;
        border-radius: 16px;
    }

    .modern-booking-top {
        flex-direction: column;
        gap: 14px;
    }

    .modern-status {
        align-self: flex-start;
    }

    .modern-booking-details {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .booking-detail,
    .booking-detail:first-child {
        padding: 0;
        border-right: 0;
    }

    .modern-booking-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .modern-pay-btn {
        width: 100%;
    }

    /* -----------------------------------------------
       ADMIN DASHBOARD INLINE-CSS COMPATIBILITY
       External CSS wins over old sidebar rules.
    ----------------------------------------------- */

    .admin-dashboard-main {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* -----------------------------------------------
       REPORTS
    ----------------------------------------------- */

    .report-page-header h1 {
        font-size: 29px !important;
    }

    .report-summary {
        grid-template-columns: 1fr !important;
    }

    .report-summary-card {
        min-width: 0 !important;
    }

    .state-chart {
        width: 100%;
        overflow: hidden;
    }
}

/* =====================================================
   SMALL PHONE <= 420px
===================================================== */

@media (max-width: 420px) {

    .main {
        padding-left: 13px !important;
        padding-right: 13px !important;
        padding-bottom: 90px !important;
    }

    .mobile-bottom-nav,
    .mobile-bottom-nav a,
    .mobile-more-btn {
        height: 65px;
    }

    .mobile-nav-icon {
        width: 23px;
        height: 23px;
        font-size: 17px;
    }

    .mobile-nav-label {
        font-size: 8px;
    }

    .mobile-more-menu {
        left: 10px;
        right: 10px;
        bottom: 75px;
    }

    .admin-table tr,
    .customer-table tr,
    .payments-table tr,
    .housekeeping-table tr {
        padding: 8px 12px;
    }

    .admin-table td,
    .customer-table td,
    .payments-table td,
    .housekeeping-table td {
        gap: 8px;
        font-size: 13px;
    }

    .admin-table td::before,
    .customer-table td::before,
    .payments-table td::before,
    .housekeeping-table td::before {
        flex-basis: 38%;
        width: 38%;
        font-size: 10px;
    }

    .customer-info,
    .customer-email,
    .homestay-facilities,
    .table-actions,
    .payment-actions {
        max-width: 62%;
        width: 62%;
    }
}

/* =====================================================
   SHORT SCREEN
===================================================== */

@media (max-height: 700px) {

    .sidebar-branding {
        display: none;
    }
}

/* =====================================================
   TeHoMS UI REFINEMENT v2
   Floating mobile navigation + responsive admin content
   Added as the final responsive layer so existing component
   styles remain intact while these rules control the layout.
===================================================== */

/* ---------- Shared SVG icon treatment ---------- */
.sidebar-logo svg,
.sidebar-icon svg,
.mobile-nav-icon svg,
.mobile-more-menu a span svg,
.mobile-more-header button svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-icon {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #b7cbbb;
    font-size: 0 !important;
}

.sidebar-nav a.active .sidebar-icon,
.sidebar-nav a:hover .sidebar-icon {
    color: currentColor;
}

.sidebar-logo {
    font-size: 0;
}

/* ---------- Desktop sidebar stability ---------- */
@media (min-width: 801px) {
    .sidebar {
        display: flex;
        flex-direction: column;
    }

    .sidebar-nav {
        flex: 1 1 auto;
        overflow-y: auto;
        scrollbar-width: thin;
        padding-right: 2px;
    }

    .sidebar-bottom {
        flex: 0 0 auto;
    }

    .sidebar-branding {
        pointer-events: none;
    }

    .main {
        width: auto;
        max-width: none;
    }
}

/* =====================================================
   DESKTOP / TABLET SIDEBAR WIDTHS
   Sidebar stays fixed while the main content scrolls.
===================================================== */

@media (max-width: 1100px) and (min-width: 801px) {
    .sidebar {
        width: 250px;
        min-width: 250px;
    }

    .main {
        margin-left: 250px;
        width: auto;
        max-width: none;
    }
}

/* =====================================================
   MOBILE + TABLET ADMIN NAVIGATION
===================================================== */

@media (max-width: 800px) {

    body.more-menu-open {
        overflow: hidden;
    }

    .sidebar-layout {
        display: block !important;
        width: 100% !important;
        min-height: 100dvh;
    }

    .main {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 24px 18px calc(104px + env(safe-area-inset-bottom)) !important;
    }

    /* The navigation is floating, not edge-to-edge. */
    .mobile-bottom-nav {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
        width: auto !important;
        height: 72px !important;
        min-height: 72px !important;
        padding: 5px !important;
        border: 1px solid rgba(223, 219, 211, .95) !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, .97) !important;
        box-shadow: 0 12px 32px rgba(34, 46, 37, .13) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        overflow: hidden;
        z-index: 9999 !important;
    }

    .mobile-bottom-nav a,
    .mobile-more-btn {
        height: 62px !important;
        min-height: 62px !important;
        border-radius: 15px !important;
        gap: 4px !important;
        padding: 7px 3px 5px !important;
        color: #69706b !important;
        font-size: 11px !important;
        transition: background-color .18s ease, color .18s ease, transform .18s ease;
    }

    .mobile-nav-icon {
        width: 21px !important;
        height: 21px !important;
        font-size: 0 !important;
        color: currentColor;
    }

    .mobile-nav-label {
        font-size: 9px !important;
        line-height: 1.15 !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
    }

    .mobile-bottom-nav a.active,
    .mobile-more-btn.active {
        background: #edf4ee !important;
        color: #356247 !important;
        font-weight: 700;
    }

    .mobile-bottom-nav a.active::before {
        display: none !important;
    }

    .mobile-bottom-nav a:active,
    .mobile-more-btn:active {
        transform: scale(.97);
    }

    /* More menu uses the same visual language as the bottom nav. */
    .mobile-more-overlay {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(28, 37, 31, .28) !important;
        z-index: 10000 !important;
    }

    .mobile-more-menu {
        left: 12px !important;
        right: 12px !important;
        bottom: calc(92px + env(safe-area-inset-bottom)) !important;
        max-height: min(72vh, 560px);
        overflow-y: auto;
        border: 1px solid #e7e2d9 !important;
        border-radius: 20px !important;
        padding: 12px !important;
        box-shadow: 0 18px 50px rgba(34, 46, 37, .18) !important;
    }

    .mobile-more-header {
        padding: 6px 6px 12px !important;
        margin-bottom: 8px !important;
    }

    .mobile-more-header button {
        width: 34px !important;
        height: 34px !important;
        font-size: 0 !important;
    }

    .mobile-more-header button svg {
        width: 18px;
        height: 18px;
        margin: auto;
    }

    .mobile-more-menu a {
        min-height: 48px !important;
        border-radius: 11px !important;
        font-size: 13px !important;
    }

    .mobile-more-menu a span:first-child {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
        font-size: 0 !important;
    }

    .mobile-more-menu a span:first-child svg {
        width: 18px;
        height: 18px;
    }

    /* ---------- Payment verification ---------- */
    .payments-page {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }

    .payments-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 22px 18px !important;
        border-radius: 18px !important;
    }

    .payments-card h2 {
        font-size: 22px !important;
        line-height: 1.25 !important;
        margin-bottom: 16px !important;
    }

    .payments-table tbody {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
    }

    .payments-table tr {
        margin: 0 !important;
        padding: 8px 14px !important;
        border-radius: 15px !important;
    }

    .payments-table td {
        display: grid !important;
        grid-template-columns: minmax(72px, 34%) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 11px 0 !important;
        text-align: right !important;
        overflow: visible !important;
    }

    .payments-table td::before {
        flex: none !important;
        width: auto !important;
        min-width: 0 !important;
        font-size: 10px !important;
        letter-spacing: .2px;
        text-align: left !important;
        line-height: 1.2 !important;
    }

    .payments-table td > * {
        min-width: 0;
        max-width: 100%;
    }

    .payments-table .customer-name {
        margin: 0 0 3px !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .payments-table .customer-email {
        max-width: 100% !important;
        margin: 0 !important;
        font-size: 10px !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .payments-table td:nth-child(2) {
        align-items: start !important;
    }

    .payments-table .receipt-btn {
        justify-self: end;
        padding: 9px 12px !important;
        font-size: 10px !important;
        border-radius: 9px !important;
    }

    .payments-table .payment-status {
        justify-self: end;
        margin-left: 0 !important;
        padding: 7px 11px !important;
        font-size: 10px !important;
    }

    .payments-table .payment-actions {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 7px !important;
        margin: 0 !important;
    }

    .payments-table .payment-action-btn {
        margin: 0 !important;
        min-width: 76px;
        padding: 9px 12px !important;
        text-align: center;
        font-size: 10px !important;
        border-radius: 9px !important;
    }

    .payments-table .payment-completed,
    .payments-table .payment-rejected-text {
        white-space: normal !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    /* Generic cards/tables should never create viewport overflow. */
    .payments-card,
    .admin-table-card,
    .customer-table-card,
    .housekeeping-card {
        overflow: hidden;
    }
}

/* =====================================================
   SMALL PHONE
===================================================== */

@media (max-width: 420px) {
    .main {
        padding-left: 13px !important;
        padding-right: 13px !important;
        padding-bottom: calc(102px + env(safe-area-inset-bottom)) !important;
    }

    .mobile-bottom-nav {
        left: 9px !important;
        right: 9px !important;
        bottom: calc(9px + env(safe-area-inset-bottom)) !important;
        height: 70px !important;
        min-height: 70px !important;
        padding: 4px !important;
        border-radius: 19px !important;
    }

    .mobile-bottom-nav a,
    .mobile-more-btn {
        height: 60px !important;
        min-height: 60px !important;
        border-radius: 14px !important;
    }

    .mobile-nav-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .mobile-nav-label {
        font-size: 8px !important;
    }

    .payments-card {
        padding: 18px 13px !important;
    }

    .payments-table tr {
        padding: 7px 11px !important;
    }

    .payments-table td {
        grid-template-columns: 67px minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .payments-table .customer-name {
        font-size: 12px !important;
    }

    .payments-table .customer-email {
        font-size: 9px !important;
    }

    .payments-table .payment-action-btn {
        min-width: 70px;
        padding: 8px 10px !important;
    }
}

/* =====================================================
   TABLET: use the available width properly
===================================================== */

@media (min-width: 576px) and (max-width: 800px) {
    .main {
        padding: 30px 26px calc(112px + env(safe-area-inset-bottom)) !important;
    }

    .payments-card {
        padding: 26px !important;
    }

    .payments-table tr {
        padding: 10px 16px !important;
    }

    .payments-table td {
        grid-template-columns: minmax(95px, 28%) minmax(0, 1fr) !important;
        padding: 12px 0 !important;
    }

    .payments-table .customer-name {
        font-size: 14px !important;
    }

    .payments-table .customer-email {
        font-size: 11px !important;
    }

    .payments-table .payment-action-btn,
    .payments-table .receipt-btn {
        font-size: 11px !important;
    }
}


/* =====================================================
   TeHoMS UI REFINEMENT v5
   Admin sidebar footer + reports summary layout
===================================================== */

/* Keep the admin sidebar fixed to the viewport while its
   navigation area is the only part that needs to scroll. */
@media (min-width: 801px) {
    .sidebar {
        display: flex;
        flex-direction: column;
        min-height: 100dvh;
        height: 100dvh;
        overflow: hidden;
        box-sizing: border-box;
    }

    .sidebar-nav {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .sidebar-bottom {
        flex: 0 0 auto;
        margin-top: 8px;
    }

    /* Branding is now part of the sidebar flow instead of being
       absolutely positioned over the logout area. */
    .sidebar-branding {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        flex: 0 0 auto;
        margin: 8px 8px 0;
        padding: 14px 0 4px;
        pointer-events: none;
    }

    .sidebar-branding span {
        font-size: 17px;
        line-height: 1.15;
    }

    .sidebar-branding strong {
        font-size: 19px;
        line-height: 1.15;
    }
}

/* On shorter desktop/tablet viewports, keep the navigation usable
   without allowing the branding to collide with the logout link. */
@media (min-width: 801px) and (max-height: 820px) {
    .sidebar-branding {
        padding-top: 8px;
        margin-top: 4px;
    }

    .sidebar-branding span {
        font-size: 15px;
    }

    .sidebar-branding strong {
        font-size: 17px;
    }
}

/* Report summary cards: desktop/tablet use three larger cards per row.
   Phone switches to one card per row. */
@media (min-width: 901px) {
    .report-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        max-width: 1200px !important;
    }
}

@media (min-width: 576px) and (max-width: 900px) {
    .report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 100% !important;
    }
}

@media (max-width: 575px) {
    .report-summary {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }

    .report-summary-card {
        width: 100%;
        box-sizing: border-box;
    }
}


/* =========================================================
   ADMIN UI ICONS - SVG, DEVICE-INDEPENDENT
   ========================================================= */
.ui-svg-icon {
    width: 1.25em;
    height: 1.25em;
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: middle;
    color: currentColor;
}

.stat-icon .ui-svg-icon { width: 22px; height: 22px; }
.panel-icon .ui-svg-icon { width: 22px; height: 22px; }
.booking-mini-icon .ui-svg-icon { width: 22px; height: 22px; }
.quick-action > span .ui-svg-icon { width: 22px; height: 22px; }
.overview-icon .ui-svg-icon { width: 22px; height: 22px; }
.dashboard-empty .ui-svg-icon { width: 28px; height: 28px; }
.admin-info-decoration .ui-svg-icon { width: 26px; height: 26px; }
.welcome-house .ui-svg-icon { width: 58px; height: 58px; }
.date-icon .ui-svg-icon { width: 16px; height: 16px; }

@media (max-width: 600px) {
    .stat-icon .ui-svg-icon,
    .quick-action > span .ui-svg-icon,
    .overview-icon .ui-svg-icon { width: 20px; height: 20px; }
}


/* =====================================================
   USER VIEW MOBILE REFINEMENT
   Profile navigation + profile form
   Scoped to small screens only.
===================================================== */
@media (max-width: 600px) {

    .nav {
        width: 100%;
        padding: 13px 16px;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .nav .brand {
        flex: 0 0 auto;
        font-size: 16px;
        white-space: nowrap;
    }

    .nav .links {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .nav .links a {
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .profile-page {
        width: calc(100% - 28px);
        max-width: 760px;
        margin: 28px auto 50px;
    }

    .profile-heading {
        margin-bottom: 18px;
        padding: 0 6px;
    }

    .profile-heading h1 {
        font-size: 29px;
        line-height: 1.15;
    }

    .profile-heading p {
        font-size: 14px;
        line-height: 1.5;
    }

    .profile-card {
        width: 100%;
        padding: 20px 18px;
        border-radius: 16px;
    }

    .profile-form-group {
        margin-bottom: 16px;
    }

    .profile-form-group label {
        margin-bottom: 7px;
        font-size: 14px;
    }

    .profile-form-group input {
        min-height: 44px;
        padding: 11px 13px;
        font-size: 14px;
    }

    .profile-password-section {
        margin: 24px 0 17px;
        padding-top: 20px;
    }

    .profile-password-section h3 {
        font-size: 19px;
    }

    .profile-password-section p {
        font-size: 13px;
        line-height: 1.45;
    }

    .profile-update-btn {
        width: 100%;
        min-height: 44px;
        margin-top: 4px;
    }
}

@media (max-width: 390px) {
    .nav {
        padding-left: 12px;
        padding-right: 12px;
    }

    .nav .links {
        gap: 7px;
    }

    .nav .links a {
        font-size: 10px;
    }

    .profile-page {
        width: calc(100% - 22px);
    }
}


/* =====================================================
   GLOBAL NAVIGATION + THEME CONSISTENCY
   Latest master refinement: navigation stays visible while
   page content scrolls; dark/light mode is shared site-wide.
===================================================== */

/* =====================================================
   GLOBAL USER NAVIGATION - FIXED WHILE PAGE SCROLLS
===================================================== */
.nav,
.booking-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
}

/* Keep page content below the fixed navigation. */
body:has(> .nav) {
    padding-top: 72px;
}

body:has(> .booking-nav) {
    padding-top: 72px;
}

/* Shared dark mode foundation. Page-specific dark rules remain free to
   refine their own branded sections. */
body.dark-mode {
    background: #171c19;
    color: #edf3ee;
}

body.dark-mode .nav,
body.dark-mode .booking-nav {
    background: #202722;
    color: #edf3ee;
    box-shadow: 0 2px 14px #0006;
}

body.dark-mode .nav .links a,
body.dark-mode .booking-nav-links a,
body.dark-mode .booking-nav-brand {
    color: #edf3ee;
}

body.dark-mode .nav .links a:hover,
body.dark-mode .booking-nav-links a:hover {
    color: #a9d3b2;
}

body.dark-mode .site-theme-toggle {
    background: #2a322c;
    border-color: #526057;
    color: #edf3ee;
}

body.dark-mode .card,
body.dark-mode .profile-card,
body.dark-mode .form,
body.dark-mode .room,
body.dark-mode .homestay-card,
body.dark-mode .nearby-card,
body.dark-mode .payment-card,
body.dark-mode .booking-card,
body.dark-mode .dashboard-card {
    background: #202722;
    color: #edf3ee;
    border-color: #344039;
    box-shadow: 0 5px 20px #0004;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #171c19;
    color: #edf3ee;
    border-color: #4b5750;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #9ca8a0;
}

body.dark-mode .alert {
    background: #40371f;
    color: #f3e8c4;
}

body.dark-mode .success {
    background: #1e3928;
    color: #dcefe1;
}

body.dark-mode .profile-password-section,
body.dark-mode hr,
body.dark-mode .divider {
    border-color: #354039;
}

@media (max-width: 700px) {
    .nav,
    .booking-nav {
        z-index: 1000;
    }

    .site-theme-toggle {
        min-width: 34px;
        width: 34px;
        height: 34px;
        padding: 7px;
    }

    .site-theme-toggle .theme-label {
        display: none;
    }
}


/* =====================================================
   GLOBAL DARK MODE - USER PAGES
===================================================== */
body.dark-mode {
    background: #171c19 !important;
    color: #edf3ee !important;
}

body.dark-mode .container,
body.dark-mode .profile-page,
body.dark-mode .dashboard-page,
body.dark-mode .payment-page,
body.dark-mode .booking-page {
    color: #edf3ee;
}

body.dark-mode .nav,
body.dark-mode .booking-nav {
    background: #202722 !important;
    color: #edf3ee !important;
    box-shadow: 0 2px 14px #0008 !important;
}

body.dark-mode .brand,
body.dark-mode .nav .links a,
body.dark-mode .booking-nav-brand,
body.dark-mode .booking-nav-links a {
    color: #edf3ee !important;
}

body.dark-mode .profile-card,
body.dark-mode .card,
body.dark-mode .room,
body.dark-mode .booking-card,
body.dark-mode .payment-card,
body.dark-mode .dashboard-card,
body.dark-mode .form {
    background: #202722 !important;
    color: #edf3ee !important;
    border-color: #344039 !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode label,
body.dark-mode strong,
body.dark-mode b {
    color: #edf3ee;
}

body.dark-mode p,
body.dark-mode .muted,
body.dark-mode small {
    color: #b8c3bb;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #171c19 !important;
    color: #edf3ee !important;
    border-color: #4b5750 !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #9ca8a0 !important;
}

@media (max-width: 700px) {
    body:has(> .nav),
    body:has(> .booking-nav) {
        padding-top: 62px;
    }
}

/* =====================================================
   ADMIN HOMESTAY GALLERY MANAGEMENT
===================================================== */

.admin-gallery-management .section-heading h2 {
    margin: 0 0 7px;
    font-size: 25px;
}

.admin-gallery-management .section-heading p {
    margin: 0 0 22px;
    line-height: 1.6;
}

.gallery-upload-form {
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fafaf8;
}

.gallery-upload-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.gallery-upload-grid .form-group,
.admin-gallery-edit-form label {
    display: block;
}

.gallery-upload-action {
    display: flex;
    align-items: end;
}

.gallery-upload-action .btn {
    margin: 0;
    white-space: nowrap;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admin-gallery-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    background: #fff;
}

.admin-gallery-item > img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #f1f1f1;
}

.admin-gallery-edit-form {
    padding: 16px 16px 8px;
}

.admin-gallery-edit-form label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
}

.admin-gallery-edit-form input[type="text"],
.admin-gallery-edit-form input[type="file"] {
    width: 100%;
    margin: 0 0 13px;
}

.admin-gallery-edit-form input[type="file"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

.admin-gallery-item-actions {
    display: flex;
    gap: 8px;
}

.admin-gallery-item-actions .btn,
.admin-gallery-delete-form .btn {
    margin: 0;
}

.admin-gallery-item-actions .btn {
    flex: 1;
}

.admin-gallery-delete-form {
    padding: 0 16px 16px;
}

.admin-gallery-delete-form .btn {
    width: 100%;
}

.gallery-empty-state {
    padding: 28px;
    border: 1px dashed #ccc;
    border-radius: 12px;
    text-align: center;
    color: #777;
    background: #fafaf8;
}

@media (max-width: 1100px) {
    .gallery-upload-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-upload-action {
        grid-column: 1 / -1;
    }

    .admin-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .gallery-upload-grid,
    .admin-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-upload-action {
        grid-column: auto;
    }

    .admin-gallery-item > img {
        height: 210px;
    }
}


/* =====================================================
   ADMIN HOMESTAY MANAGEMENT - CLEAN MOBILE CARDS
   Page-specific override for rooms.php / Homestay Management.
   Desktop/tablet layouts remain unchanged.
===================================================== */

@media (max-width: 800px) {

    .admin-rooms-page .main {
        padding-bottom: 105px !important;
    }

    .admin-rooms-page .admin-table-card {
        padding: 20px 16px !important;
        border-radius: 18px;
        margin-top: 20px;
    }

    .admin-rooms-page .admin-table-card .section-heading {
        margin-bottom: 18px;
    }

    .admin-rooms-page .admin-table-card .section-heading h2 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 7px;
    }

    .admin-rooms-page .admin-table-card .section-heading p {
        font-size: 12px;
        line-height: 1.5;
    }

    .admin-rooms-page .table-wrap {
        width: 100%;
        overflow: visible;
    }

    .admin-rooms-page .rooms-management-table {
        display: block;
        width: 100%;
        min-width: 0 !important;
        border-collapse: separate;
    }

    .admin-rooms-page .rooms-management-table thead {
        display: none !important;
    }

    .admin-rooms-page .rooms-management-table tbody {
        display: block;
        width: 100%;
    }

    .admin-rooms-page .rooms-management-table tr {
        display: block !important;
        width: 100%;
        margin: 0 0 16px;
        padding: 0 14px !important;
        background: #fff;
        border: 1px solid #ebe7df;
        border-radius: 16px;
        box-shadow: 0 5px 18px #00000009;
        overflow: hidden;
    }

    .admin-rooms-page .rooms-management-table td {
        display: flex !important;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0;
        padding: 12px 0 !important;
        border-bottom: 1px solid #f0ede7;
        text-align: right !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        line-height: 1.45;
    }

    .admin-rooms-page .rooms-management-table td:last-child {
        border-bottom: 0;
    }

    .admin-rooms-page .rooms-management-table td::before {
        content: attr(data-label) !important;
        display: block !important;
        flex: 0 0 34%;
        width: 34%;
        margin: 0;
        color: #8b918c;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .1px;
        text-align: left;
        line-height: 1.35;
    }

    /* Cover image row */
    .admin-rooms-page .rooms-management-table td[data-label="Cover Image"] {
        align-items: center;
        min-height: 96px;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Cover Image"] .thumb,
    .admin-rooms-page .rooms-management-table td[data-label="Cover Image"] .no-image-thumb {
        flex: 0 0 auto;
        width: 96px;
        height: 72px;
        margin-left: auto;
        border-radius: 11px;
        object-fit: cover;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Cover Image"] .no-image-thumb {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f3f3f1;
        color: #999;
        font-size: 10px;
    }

    /* Homestay row */
    .admin-rooms-page .rooms-management-table td[data-label="Homestay"] {
        align-items: flex-start;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Homestay"] .homestay-name,
    .admin-rooms-page .rooms-management-table td[data-label="Homestay"] .homestay-facilities {
        width: 62%;
        max-width: 62%;
        text-align: right;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Homestay"] .homestay-name {
        display: block;
        color: #2b3930;
        font-size: 15px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Homestay"] .homestay-facilities {
        margin-top: 5px;
        color: #737a75;
        font-size: 10px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    /* Price */
    .admin-rooms-page .rooms-management-table td[data-label="Price"] {
        align-items: center;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Price"] .table-subtext {
        margin-top: 2px;
        font-size: 9px;
    }

    /* Capacity */
    .admin-rooms-page .rooms-management-table td[data-label="Capacity"] > strong,
    .admin-rooms-page .rooms-management-table td[data-label="Capacity"] > .table-subtext {
        width: 62%;
        max-width: 62%;
        text-align: right;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Capacity"] > strong {
        color: #2f3a34;
        font-size: 13px;
        line-height: 1.35;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Capacity"] .table-subtext {
        font-size: 9px;
        line-height: 1.35;
    }

    /* Gallery */
    .admin-rooms-page .rooms-management-table td[data-label="Gallery"] {
        align-items: center;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Gallery"] .gallery-count {
        margin-left: auto;
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Gallery"] .table-subtext {
        margin-left: 7px;
        font-size: 9px;
    }

    /* Status */
    .admin-rooms-page .rooms-management-table td[data-label="Status"] {
        align-items: center;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Status"] .booking-status {
        margin-left: auto;
        max-width: 62%;
    }

    /* Actions */
    .admin-rooms-page .rooms-management-table td[data-label="Action"] {
        display: block !important;
        padding-top: 14px !important;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Action"]::before {
        width: auto;
        margin-bottom: 10px;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Action"] .table-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        max-width: none;
        align-items: stretch;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Action"] .table-actions .small-btn {
        width: 100%;
        min-width: 0;
        min-height: 38px;
        margin: 0;
        padding: 8px 10px;
        border-radius: 9px;
        font-size: 10px;
    }
}

@media (max-width: 420px) {

    .admin-rooms-page .admin-table-card {
        padding-left: 13px !important;
        padding-right: 13px !important;
    }

    .admin-rooms-page .rooms-management-table tr {
        padding-left: 12px !important;
        padding-right: 12px !important;
        border-radius: 15px;
    }

    .admin-rooms-page .rooms-management-table td {
        gap: 9px;
        padding: 11px 0 !important;
        font-size: 12.5px;
    }

    .admin-rooms-page .rooms-management-table td::before {
        flex-basis: 36%;
        width: 36%;
        font-size: 9.5px;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Cover Image"] .thumb,
    .admin-rooms-page .rooms-management-table td[data-label="Cover Image"] .no-image-thumb {
        width: 88px;
        height: 66px;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Homestay"] .homestay-name,
    .admin-rooms-page .rooms-management-table td[data-label="Homestay"] .homestay-facilities,
    .admin-rooms-page .rooms-management-table td[data-label="Capacity"] > strong,
    .admin-rooms-page .rooms-management-table td[data-label="Capacity"] > .table-subtext {
        width: 60%;
        max-width: 60%;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Homestay"] .homestay-name {
        font-size: 14px;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Homestay"] .homestay-facilities {
        font-size: 9.5px;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Action"] .table-actions {
        gap: 7px;
    }

    .admin-rooms-page .rooms-management-table td[data-label="Action"] .table-actions .small-btn {
        min-height: 36px;
        font-size: 9.5px;
    }
}

/* =====================================================
   FIX: MOBILE MORE MENU TEXT OVERLAPPING ICON BOX
   The original rule targets ALL spans inside each menu
   link, so the label span gets the icon-box styling too.
   Only the FIRST span should be an icon box.
   ===================================================== */
@media (max-width: 800px) {

    /* Keep icon box styling ONLY on the first span */
    .mobile-more-menu a > span:first-child {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #edf3ee !important;
        color: #3e6547 !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    /* FIX: second span is TEXT, not another icon box */
    .mobile-more-menu a > span:nth-child(2) {
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        flex: 1 1 auto !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        color: inherit !important;
        border-radius: 0 !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    /* Make the menu rows consistent */
    .mobile-more-menu a {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        min-height: 48px !important;
        padding: 9px 11px !important;
        box-sizing: border-box !important;
    }

    /* Payment Settings stays neatly on two lines */
    .mobile-more-menu a[href="payment_settings.php"] > span:nth-child(2) {
        white-space: normal !important;
    }

    /* Logout icon stays red, while Logout text stays plain */
    .mobile-more-menu .mobile-more-logout > span:first-child {
        background: #f7e8e8 !important;
        color: #9b3d3d !important;
    }

    .mobile-more-menu .mobile-more-logout > span:nth-child(2) {
        background: transparent !important;
        color: #9b3d3d !important;
    }

    /* SVG sizing */
    .mobile-more-menu a > span:first-child svg {
        width: 18px !important;
        height: 18px !important;
        display: block !important;
    }
}

