.hm-admin-wrap {
    display: flex;
    min-height: 90vh;
}

.hm-sidebar {
    width: 220px;
    background: #111827;
    color: #fff;
}

.hm-sidebar li {
    padding: 14px;
    cursor: pointer;
}

.hm-sidebar li.active,
.hm-sidebar li:hover {
    background: #1f2937;
}

.hm-content {
    flex: 1;
    padding: 20px;
    position: relative;
}

/* LOADER */
#hm-loader {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.6);
}
#hm-loader::after {
    content: '';
    width: 36px;
    height: 36px;
    border: 4px solid #ccc;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* TOASTER */
#hm-toast {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: #22c55e;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    z-index: 9999;
}






.hm-table {
    width: 100%;
    border-collapse: collapse;
}
.hm-table th, .hm-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

#hm-room-modal {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    max-width: 300px;
}
#hm-room-modal input,
#hm-room-modal select {
    width: 100%;
    margin-bottom: 10px;
}










.hm-gallery-item {
    position: relative;
    display: inline-block;
}

.hm-remove-gallery {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    border-radius: 50%;
    cursor: pointer;
    padding: 2px 6px;
}
























.hm-availability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hm-month-nav button {
    padding: 4px 10px;
    cursor: pointer;
}

#hm-availability-calendar {
    border: 1px solid #ddd;
    min-height: 300px;
    background: #fafafa;
}


.hm-calendar-header,
#hm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.hm-calendar-header div {
    font-weight: bold;
    text-align: center;
    padding: 8px 0;
    background: #f0f0f0;
    border: 1px solid #ddd;
}

.hm-calendar-day {
    height: 80px;
    border: 1px solid #ddd;
    padding: 6px;
    cursor: pointer;
    background: #fff;
    position: relative;
}

.hm-calendar-day.disabled {
    background: #f7f7f7;
    color: #aaa;
    cursor: not-allowed;
}

.hm-calendar-day.selected {
    background: #cce5ff;
}

.hm-calendar-day span.date {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 12px;
}







.hm-calendar-day.blocked {
    background: #f8d7da;
    color: #721c24;
}

.hm-calendar-day.special-price {
    background: #fff3cd;
}

.hm-calendar-day .price {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 11px;
    background: #000;
    color: #fff;
    padding: 2px 4px;
}





.hm-calendar-day.soldout {
    background: #ffe5e5;
    color: #c00;
}

.hm-calendar-day.low-stock {
    background: #fff6d5;
}

.hm-calendar-day .badge {
    display: block;
    font-size: 11px;
    margin-top: 4px;
}




.hm-calendar-day {
    position: relative;
    cursor: pointer;
}

/* STATES */
.hm-calendar-day.booked {
    background: #ff4d4d;
    color: #fff;
}

.hm-calendar-day.blocked {
    background: #ff9f43;
    color: #000;
}

.hm-calendar-day.low-stock {
    background: #ffe066;
}

.hm-calendar-day.available {
    background: #eaffea;
}

/* BADGES */
.hm-calendar-day .badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 4px;
    border-radius: 3px;
}


.hm-calendar-day {
    position: relative;
    cursor: pointer;
}

.hm-calendar-day.booked { background:#ff4d4d; color:#fff; }
.hm-calendar-day.blocked { background:#ff9800; color:#fff; }
.hm-calendar-day.low-stock { background:#ffc107; }
.hm-calendar-day.special-price { font-weight:600; }

.hm-tooltip {
    display:none;
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);
    background:#222;
    color:#fff;
    padding:6px 8px;
    font-size:12px;
    border-radius:4px;
    white-space:nowrap;
    z-index:10;
}

.hm-calendar-day:hover .hm-tooltip {
    display:block;
}





.hm-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}
.hm-status-confirmed { background:#22c55e; }
.hm-status-cancelled { background:#ef4444; }

#hm-booking-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9999;
    padding: 40px;
    overflow: auto;
}

#hm-booking-modal > div {
    background: #fff;
    padding: 20px;
    max-width: 900px;
    margin: auto;
    border-radius: 6px;
}

.hm-status {
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
}
.hm-status-confirmed { background:#22c55e; }
.hm-status-cancelled { background:#ef4444; }


/* MODAL */
#hm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-modal-box {
    background: #fff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
}

.hm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.hm-modal-header h3 {
    margin: 0;
}

.hm-modal-close {
    cursor: pointer;
    font-size: 18px;
}

.hm-modal-body {
    padding: 16px;
    overflow-y: auto;
}

.hm-modal-footer {
    padding: 10px 16px;
    border-top: 1px solid #eee;
    text-align: right;
}

.hm-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    align-items: center;
}
.hm-filter-bar select,
.hm-filter-bar input {
    padding: 4px 6px;
}










/*Admin Dashabord Tab Css here */


/* ===============================
   DASHBOARD – GLOBAL
================================ */

.hm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.hm-stat {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.hm-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.hm-stat strong {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hm-stat div {
    font-size: 26px;
    font-weight: 700;
    color: #222;
}

/* ===============================
   GRID & BOXES
================================ */

.hm-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.hm-box {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.hm-box h3 {
    margin: 0 0 12px;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* ===============================
   TODAY OVERVIEW
================================ */

.hm-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hm-box ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
}

.hm-box ul li:last-child {
    border-bottom: none;
}

.hm-box ul strong {
    float: right;
    color: #111;
}

/* ===============================
   ALERTS
================================ */

#d-alerts p {
    background: #fff7e6;
    border-left: 4px solid #ff9800;
    padding: 8px 10px;
    margin: 6px 0;
    font-size: 13px;
    border-radius: 4px;
}

#d-alerts p::before {
    content: "⚠ ";
}

/* ===============================
   TABLES
================================ */

.hm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.hm-table th {
    background: #f5f6fa;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.hm-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.hm-table tr:hover {
    background: #fafafa;
}

/* ===============================
   CHART
================================ */

#hm-dashboard-chart {
    margin-top: 10px;
}

/* ===============================
   STATUS BADGES (OPTIONAL)
================================ */

.hm-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.hm-status-confirmed,
.hm-status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.hm-status-pending {
    background: #fff8e1;
    color: #f9a825;
}

.hm-status-cancelled,
.hm-status-failed {
    background: #fdecea;
    color: #c62828;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {

    .hm-stat div {
        font-size: 22px;
    }

    .hm-box h3 {
        font-size: 15px;
    }
}



/*Admin Dashboard Css end here */




/* ===============================
   INVOICE DESIGN (TAAL RESORT)
================================ */

.hm-invoice {
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    font-size: 13px;
    width: 794px;              /* EXACT A4 width */
    min-height: auto;
    margin: 0 auto;
   padding: 20px 80px 20px 30px;

    background: #fff;
    box-sizing: border-box;
}

.hm-invoice * {
    box-sizing: border-box;
    max-width: 100%;
}

/* ===============================
   HEADER
================================ */

.hm-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

/* LOGO */
.hm-invoice-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hm-invoice-logo img {
    width: 70px;
    height: auto;
    margin-bottom: 6px;
}

.hm-invoice-logo-text {
    font-size: 16px;
    font-weight: bold;
    color: #00a6c8;
    letter-spacing: 0.5px;
}

.hm-invoice-title {
    text-align: right;
}

.hm-invoice-meta {
    font-size: 12px;
    border: 1px solid #000;
    padding: 6px 8px;
    margin-top: 5px;
    display: inline-block;
}

.hm-invoice-gstin {
    text-align: right;
    font-weight: bold;
    margin-top: 5px;
}

/* ===============================
   FROM / BILL TO
================================ */

.hm-invoice-cols {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.hm-invoice-box {
    width: 48%;
}

.hm-invoice-box h4 {
    background: #eef7f8;
    padding: 4px 6px;
    margin: 0 0 6px 0;
    font-size: 13px;
}

/* ===============================
   TABLE
================================ */

.hm-invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    page-break-inside: auto;
}

.hm-invoice-table th,
.hm-invoice-table td {
    border: 1px solid #000;
    padding: 6px;
    vertical-align: top;
}

.hm-invoice-table th {
    background: #eef7f8;
    text-align: center;
}

.hm-invoice-table td:last-child {
    text-align: right;
}

/* PAGE BREAK SAFETY */
.hm-invoice tr {
    page-break-inside: avoid;
}

.hm-invoice thead {
    display: table-header-group;
}

/* ===============================
   TOTAL
================================ */

.hm-invoice-total {
    text-align: right;
    font-size: 15px;
    font-weight: bold;
    margin-top: 10px;
}

/* ===============================
   TERMS
================================ */

.hm-invoice-terms {
    margin-top: 20px;
    border: 1px solid #000;
}

.hm-invoice-terms h4 {
    margin: 0;
    padding: 6px;
    background: #eef7f8;
    font-size: 13px;
}

.hm-invoice-terms ol {
    margin: 8px 20px;
    font-size: 12px;
}

/* ===============================
   MODAL BUTTONS (ADMIN)
================================ */

.hm-modal-close-btn {
    background: black;
    font-size: 16px;
    padding: 6px 25px;
    border-radius: 6px;
}

#hm-modal-title {
    font-family: 'Inter';
    font-size: 20px;
    font-weight: 600;
    color: black;
}

.hm-modal-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hm-modal-actions button {
    font-size: 12px;
    padding: 4px 8px;
}

/* ===============================
   PRINT + PDF (FINAL FIX)
================================ */

@media print {

    body {
        margin: 0;
        padding: 0;
        background: #fff;
    }

    /* Hide modal chrome */
    .hm-modal,
    .hm-modal-header,
    .hm-modal-footer {
        display: none !important;
    }

    .hm-invoice {
        margin: 0 auto;
        box-shadow: none;
    }
}
