* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', 'Inter', sans-serif;
    background-color: #f5f8fa;
    color: #071437;
    font-size: 14px;
    line-height: 21px;
    padding: 24px;
}

input, button, select, textarea {
    font-family: 'DM Sans', 'Inter', sans-serif;
}

.inventory-container {
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
}

/* Header */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    color: #181c32;
}

.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e4e6ef;
    color: #a1a5b7;
}

.btn-default {
    background-color: #ffffff;
    border: 1px solid #e4e6ef;
    color: #5e6278;
}

.btn-disabled {
    background-color: #f5f8fa;
    color: #b5b5c3;
    border: 1px solid transparent;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #5e6278; /* dark grey-blue from image */
    color: #ffffff;
}

/* Table */
.grid-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden; /* prevents border radius clipping */
    border: 1px solid #cbd5e1;
    overflow-x: auto;
}

.inv-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    min-width: 1200px;
}

.inv-table th, .inv-table td {
    padding: 14px 8px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #eff2f5;
}

/* Fixed left column */
.inv-table .col-fixed-nav,
.inv-table .col-name {
    width: 400px;
    text-align: left;
    background-color: #ffffff;
    border-right: 1px solid #eff2f5;
}

.inv-table .col-name {
    font-size: 13px;
    font-weight: 600;
    color: #3f4254;
    padding-left: 20px;
    white-space: nowrap;
}

/* Date Navigation Header */
.date-nav-controls {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.date-arrows {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e4e6ef;
    border-radius: 6px;
    overflow: hidden;
}

.btn-arrow {
    background: #fff;
    border: none;
    padding: 8px 12px;
    color: #a1a5b7;
    cursor: pointer;
    border-right: 1px solid #e4e6ef;
}
.btn-arrow:last-child {
    border-right: none;
}
.btn-arrow:hover {
    background: #f5f8fa;
}

.date-picker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    color: #181c32;
    border-right: 1px solid #e4e6ef;
    cursor: pointer;
}

.native-date-input {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #181c32;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    width: 110px;
    position: relative;
}
.native-date-input::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.btn-today {
    background: #f5f8fa;
    border: 1px solid #e4e6ef;
    color: #7e8299;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Header Dates */
.col-date {
    padding: 12px 5px;
    border-bottom: 2px solid #eff2f5 !important;
}

.date-day-label {
    display: block;
    font-size: 11px;
    color: #a1a5b7;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.date-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #181c32;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 11px;
    color: #a1a5b7;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 6px;
}

/* Today Column */
.col-today .date-day-label { color: #009ef7; }
.col-today .date-number { color: #009ef7; }
.col-today .date-month { color: #009ef7; }

/* Weekend Column */
.col-weekend {
    background-color: #fff9f0 !important; /* light orange */
}

/* Row Category Group */
.row-group td {
    background-color: #f3f6f9; /* light grey/blue */
    padding-top: 18px;
    padding-bottom: 18px;
}
.row-group .col-name {
    background-color: #f3f6f9;
    font-weight: 700;
}

/* Row Subtype */
.row-subtype td {
    padding-top: 14px;
    padding-bottom: 14px;
}
.row-subtype .col-name {
    padding-left: 40px; /* indent */
    color: #5e6278;
}

/* Row Rate */
.row-rate td {
    padding-top: 12px;
    padding-bottom: 12px;
}
.row-rate .col-name {
    padding-left: 60px; /* double indent */
    font-weight: 500;
    color: #3f4254;
}

/* Value Boxes (1/12 etc) */
.val-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e4e6ef;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #3f4254;
    min-width: 65px;
    white-space: nowrap;
}
.row-group .val-box {
    border: 1px solid #ffffff; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Rate Cells */
.rate-cell {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}
.rate-avail {
    font-size: 14px;
    font-weight: 600;
    color: #d4af37;
}
.text-green {
    color: #50cd89; /* Metronic success green */
}
.rate-avail u {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rate-price {
    font-size: 15px;
    font-weight: 700;
    color: #181c32;
    border-bottom: 1.5px dashed #a1a5b7;
    padding-bottom: 1px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    display: inline-block;
}
.rate-cell:hover .rate-price {
    border-bottom-color: #1B84FF;
    color: #1B84FF;
}

/* Table borders refinement */
.inv-table tr:last-child td {
    border-bottom: none;
}
/* App Layout */
html {
    overflow-x: hidden;
}
body {
    padding: 0; /* remove original body padding */
    overflow-x: hidden;
}

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-grow-1 { flex-grow: 1; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.app-root {
    min-height: 100vh;
    background-color: #f5f8fa;
}

/* Sidebar */
.app-sidebar {
    width: 250px;
    background-color: #1e1e2d;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    border-bottom: 1px solid #2b2b40;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.sidebar-menu {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-menu .menu-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #9899ac;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    gap: 12px;
    transition: all 0.2s;
}

.sidebar-menu .menu-item i {
    font-size: 18px;
    width: 20px;
}

.sidebar-menu .menu-item:hover, .sidebar-menu .menu-item.active {
    color: #ffffff;
    background-color: #1b1b29;
}

.sidebar-menu .menu-item.active i {
    color: #009ef7;
}

/* Navbar / Header */
.app-header {
    height: 70px;
    background-color: #ffffff;
    padding: 0 30px;
    border-bottom: 1px solid #eff2f5;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    color: #181c32;
    margin-bottom: 4px;
}

.breadcrumbs {
    font-size: 12px;
    color: #a1a5b7;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs i {
    font-size: 10px;
}

.breadcrumbs .current {
    color: #181c32;
    font-weight: 500;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #181c32;
}

.user-role {
    font-size: 12px;
    color: #a1a5b7;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: #f3f6f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a5b7;
    font-size: 18px;
}

/* Main Content */
.app-content {
    padding: 30px;
    flex-grow: 1;
}

.inventory-container {
    max-width: 100%; /* allows to use full width */
}

/* Disabled state for category row val-boxes */
.row-group .val-box,
.val-box.disabled {
    background-color: #f5f8fa;
    color: #4b5675;
    border-color: #e4e6ef;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

/* State saat limit penuh (6/6) */
.val-box.full {
    background-color: #f2b34b; /* Solid orange-gold */
    color: #181c32 !important;
    border-color: #f2b34b;
}
.val-box.full .booked-val,
.val-box.full .limit-val {
    color: #181c32 !important;
    font-weight: 700;
}

/* Clickable val-box for Room Subtype */
.row-subtype .val-box {
    cursor: pointer;
    transition: all 0.2s;
}
.row-subtype .val-box:hover {
    border-color: #009ef7;
    background-color: #f1faff;
}

/* Angka limit kamar (tampilan saja, tanpa efek hover) */
.row-subtype .limit-val {
    display: inline-block;
}

/* Modal Form Styles */
.form-group {
    margin-bottom: 15px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #181c32;
    font-size: 13px;
}
.form-control {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.5;
    color: #071437;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid #e4e6ef;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus {
    border-color: #009ef7;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 158, 247, 0.25);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Box */
.confirm-modal {
    background: #ffffff;
    width: 450px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .confirm-modal {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eff2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #181c32;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #a1a5b7;
    cursor: pointer;
}

.modal-body {
    padding: 25px;
    font-size: 14px;
    color: #4b5675;
    line-height: 1.5;
}

.modal-body strong {
    color: #181c32;
    font-weight: 700;
}

.modal-footer {
    padding: 15px 25px;
    background-color: #ffffff;
    border-top: 1px solid #eff2f5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    background-color: #ffffff;
    color: #181c32;
    border: 1px solid #e4e6ef;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-confirm {
    background-color: #d8a135;
    color: #181c32;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-confirm:hover {
    background-color: #c09e32;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLET & IPAD & MOBILE)
   ========================================================================== */

.grid-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Tablet Landscape & Small Desktop (Max 1200px) */
@media (max-width: 1200px) {
    .col-fixed-nav {
        width: 280px;
        min-width: 280px;
    }
    .date-nav-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Tablet Portrait & iPad Air (Max 992px) */
@media (max-width: 992px) {
    /* Header: cegah label unit-switcher membungkus & menimpa konten di bawahnya */
    .app-header {
        padding: 0 16px;
    }
    .header-right {
        gap: 10px !important;
    }
    .unit-switcher {
        padding: 6px 10px;
        gap: 6px;
    }
    .unit-switcher .unit-name {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }
    .header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .action-buttons {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .col-fixed-nav {
        width: 200px;
        min-width: 200px;
    }
    .col-name {
        white-space: normal;
        font-size: 12px;
        line-height: 1.4;
    }
    .date-nav-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .date-arrows {
        justify-content: space-between;
    }
    
    /* Scroll Shadow Hint */
    .col-fixed-nav::after {
        content: '';
        position: absolute;
        top: 0;
        right: -5px;
        width: 5px;
        height: 100%;
        background: linear-gradient(to right, rgba(0,0,0,0.05), transparent);
        pointer-events: none;
    }

}

/* History Modal CSS */
.history-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.history-item {
    padding: 12px;
    border: 1px solid #e4e6ef;
    border-radius: 6px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 3px solid #5e6278;
}
.history-time {
    font-size: 11px;
    color: #a1a5b7;
    font-weight: 600;
}
.history-desc {
    font-size: 13px;
    color: #3f4254;
    line-height: 1.6;
}
.history-desc strong {
    color: #181c32;
}
.history-empty {
    text-align: center;
    color: #a1a5b7;
    padding: 30px;
}

/* Smartphone / Mobile (Max 576px) */
@media (max-width: 576px) {
    body {
        padding: 10px;
        font-size: 12px;
    }
    .app-header {
        padding: 0 12px;
    }
    .header-right {
        gap: 8px !important;
    }
    .unit-switcher .unit-name {
        max-width: 90px;
    }
    .user-info {
        display: none;
    }
    .col-fixed-nav {
        width: 130px;
        min-width: 130px;
    }
    .col-name {
        font-size: 11px;
    }
    .col-date, .col-val, .col-fixed-nav, .col-name {
        padding: 8px 6px;
    }
    .btn-today {
        padding: 4px 8px;
        font-size: 11px;
    }
    .val-box, .rate-cell {
        font-size: 11px;
        padding: 4px;
    }
    .rate-avail {
        font-size: 11px;
    }
    .rate-price {
        font-size: 11px;
    }
    .confirm-modal {
        width: 95%;
    }
}

/* ==========================================================================
   UNIT SWITCHER & MODAL STYLES
   ========================================================================== */

.unit-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px dashed #d8d8e5;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    font-weight: 600;
    color: #181c32;
    user-select: none;
}
.unit-switcher:hover {
    background-color: #f5f8fa;
}

.unit-switcher-container {
    position: relative;
}

.unit-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 300px;
    max-height: 420px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #eff2f5;
    border-radius: 8px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 6px 0;
}
.unit-dropdown.show {
    display: flex;
}

.unit-dropdown-group-title {
    padding: 10px 16px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #a1a5b7;
}

.unit-dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.unit-dropdown-item .unit-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #181c32;
}
.unit-dropdown-item .unit-item-type {
    font-size: 12px;
    font-weight: 400;
    color: #a1a5b7;
}
.unit-dropdown-item:hover {
    background-color: #f9f9f9;
}
.unit-dropdown-item.active .unit-item-name {
    color: #d4af37;
}

/* ==========================================================================
   DROPDOWN AKUN ADMIN (SIGN OUT)
   ========================================================================== */

.user-profile {
    cursor: pointer;
    user-select: none;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #ffffff;
    border: 1px solid #eff2f5;
    border-radius: 8px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 14px;
}
.account-dropdown.show {
    display: flex;
}

.account-dropdown-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
}

.account-dropdown-divider {
    height: 1px;
    background: #eff2f5;
    margin: 0 -14px;
}

.account-dropdown-item {
    padding: 12px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: #3f4254;
    cursor: pointer;
    transition: color 0.2s;
}
.account-dropdown-item:hover {
    color: #f1416c;
}

/* ==========================================================================
   FNB / RESTAURANT VIEW: CLAIM COUPON
   ========================================================================== */

.claim-coupon-container {
    max-width: 560px;
    margin: 64px auto 0;
    padding: 0 24px;
}

.claim-coupon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.claim-coupon-input {
    flex: 1;
    min-width: 0;
    padding: 11px 16px;
    font-size: 14px;
    color: #181c32;
    background: #ffffff;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}
.claim-coupon-input:focus {
    border-color: #1B84FF;
}
.claim-coupon-input::placeholder {
    color: #a1a5b7;
}

.claim-coupon-scan-btn {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf4ff;
    border: 1.5px solid #1B84FF;
    border-radius: 10px;
    color: #1B84FF;
    font-size: 22px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
}
.claim-coupon-scan-btn:hover {
    background-color: #d6ebff;
}
.claim-coupon-scan-btn:active {
    transform: scale(0.95);
}

.claim-coupon-btn {
    flex-shrink: 0;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: filter 0.2s;
}
.claim-coupon-btn:hover {
    filter: brightness(0.95);
}

.claim-coupon-search-btn {
    background-color: #d4af37;
    color: #181c32;
}

.claim-coupon-history-btn {
    background-color: #17c1e8;
    color: #ffffff;
}

/* Tablet Portrait & iPad Air / Smartphone (Max 992px):
   input naik ke baris sendiri, scan/search/history mengelompok di baris bawah (rata kanan) */
@media (max-width: 992px) {
    .claim-coupon-container {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 16px;
    }
    .claim-coupon-row {
        flex-wrap: wrap;
        justify-content: flex-end;
        row-gap: 12px;
    }
    .claim-coupon-input {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   HALAMAN LOGIN (POS & BACKOFFICE)
   ========================================================================== */

.login-page {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #ffffff;
    padding: 40px 24px;
}

.login-form-wrap {
    width: 100%;
    max-width: 380px;
}

.login-logo img {
    height: 45px;
    object-fit: contain;
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: #181c32;
    margin-top: 28px;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 13px;
    color: #7e8299;
    line-height: 1.6;
    margin-bottom: 26px;
}

.login-field {
    margin-bottom: 14px;
}
.login-field input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #181c32;
    background: #ffffff;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}
.login-field input:focus {
    border-color: #d4af37;
}
.login-field input::placeholder {
    color: #a1a5b7;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: filter 0.2s, background-color 0.2s;
}
.login-btn-primary {
    background-color: #d4af37;
    color: #181c32;
    border: none;
    margin-top: 4px;
}
.login-btn-primary:hover {
    filter: brightness(0.95);
}
.login-btn-outline {
    background: #ffffff;
    color: #181c32;
    border: 1px solid #e4e6ef;
}
.login-btn-outline:hover {
    background-color: #f5f8fa;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    font-size: 12px;
    font-weight: 600;
    color: #a1a5b7;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e4e6ef;
}

.login-footer {
    position: absolute;
    bottom: 24px;
    font-size: 12px;
    color: #a1a5b7;
}

.login-right {
    flex: 1 1 50%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 70px;
    background: linear-gradient(135deg, #1e1e2d 0%, #3a2f1a 55%, #d4af37 130%);
    overflow: hidden;
}

.login-right-watermark {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    text-align: center;
}
.login-right-watermark-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 34px;
    letter-spacing: 4px;
    font-weight: 400;
}
.login-right-watermark-sub {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    letter-spacing: 6px;
    color: #d4af37;
    margin-top: 4px;
}

/* Tablet & Mobile: panel visual disembunyikan, form full width */
@media (max-width: 768px) {
    .login-right {
        display: none;
    }
    .login-left {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   HALAMAN BACKOFFICE (SIDEBAR + RESERVATION LIST)
   ========================================================================== */

.bo-root {
    min-height: 100vh;
}

/* Sidebar */
.bo-sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: #1e1e2d;
    padding: 24px 0;
}
.bo-sidebar-logo {
    padding: 0 24px 28px;
}
.bo-sidebar-logo img {
    height: 32px;
    object-fit: contain;
}

.bo-nav {
    display: flex;
    flex-direction: column;
}
.bo-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #9899ac;
}
.bo-nav-item i:first-child {
    width: 16px;
    text-align: center;
    color: #6c6d80;
}
.bo-nav-item.expanded {
    color: #ffffff;
}
.bo-nav-item.expanded i:first-child {
    color: #d4af37;
}
.bo-nav-chevron {
    margin-left: auto;
    font-size: 11px;
    color: #6c6d80 !important;
}

.bo-nav-children {
    display: flex;
    flex-direction: column;
    padding: 4px 24px 12px 52px;
}
.bo-nav-child {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: #9899ac;
}
.bo-nav-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #6c6d80;
    flex-shrink: 0;
}
.bo-nav-child.active {
    color: #ffffff;
    font-weight: 700;
}
.bo-nav-child.active .bo-nav-dot {
    background-color: #d4af37;
}

/* Main */
.bo-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #f5f8fa;
}

/* Topbar */
.bo-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 30px 0;
}
.bo-topbar-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: #181c32;
    margin-bottom: 6px;
}
.bo-breadcrumb {
    font-size: 12px;
    color: #a1a5b7;
}
.bo-breadcrumb .current {
    color: #b8973f;
    font-weight: 500;
}

.bo-topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.bo-property-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: right;
}
.bo-property-info i {
    margin-top: 3px;
    color: #181c32;
}
.bo-property-name {
    font-size: 14px;
    font-weight: 700;
    color: #181c32;
}
.bo-property-address {
    font-size: 11px;
    color: #a1a5b7;
    max-width: 260px;
    line-height: 1.5;
}

.bo-admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.bo-avatar-initials {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #efe0b0;
    color: #6b5218;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content */
.bo-content {
    padding: 20px 30px 40px;
}

.bo-card {
    background: #ffffff;
    border: 1px solid #eff2f5;
    border-radius: 10px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.04);
    padding: 22px;
}

.bo-filters-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.bo-search-input {
    flex: 1 1 260px;
    max-width: 320px;
    padding: 10px 16px;
    font-size: 14px;
    color: #181c32;
    background: #ffffff;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}
.bo-search-input:focus {
    border-color: #1B84FF;
}
.bo-search-input::placeholder {
    color: #a1a5b7;
}

.bo-select {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #181c32;
    background: #ffffff;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}
.bo-select-sm {
    padding: 6px 10px;
    font-size: 13px;
}

.bo-show-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #3f4254;
    font-weight: 500;
    margin-bottom: 18px;
}

.bo-table-wrap {
    overflow-x: auto;
}

.bo-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}
.bo-table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #a1a5b7;
    padding: 12px 14px;
    border-bottom: 1px solid #eff2f5;
    white-space: nowrap;
}
.bo-table tbody td {
    padding: 16px 14px;
    border-bottom: 1px solid #eff2f5;
    vertical-align: top;
    font-size: 13px;
    color: #3f4254;
}
.bo-table tbody tr:nth-child(odd) {
    background-color: #fbfbfc;
}
.bo-res-no {
    font-weight: 600;
    color: #181c32;
}

.bo-guest-block {
    margin-bottom: 10px;
}
.bo-guest-block:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px dashed #eff2f5;
}
.bo-guest-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #a1a5b7;
    margin-bottom: 2px;
}
.bo-guest-name {
    font-size: 13px;
    font-weight: 700;
    color: #181c32;
}
.bo-guest-contact {
    font-size: 12px;
    color: #7e8299;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bo-guest-contact i {
    width: 12px;
    font-size: 10px;
    color: #a1a5b7;
}

.bo-date-nights {
    font-weight: 600;
    color: #181c32;
    margin-bottom: 4px;
}
.bo-date-range {
    font-weight: 600;
    color: #181c32;
    margin-bottom: 4px;
}
.bo-date-pax {
    font-size: 12px;
    color: #7e8299;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bo-room-name {
    font-weight: 700;
    color: #181c32;
    margin-bottom: 4px;
}
.bo-room-rate {
    font-weight: 600;
    color: #181c32;
    margin-bottom: 4px;
}
.bo-room-total {
    font-size: 12px;
    color: #7e8299;
}

.bo-payment-inv {
    font-weight: 700;
    color: #181c32;
    margin-bottom: 4px;
}
.bo-payment-at {
    font-size: 12px;
    color: #50cd89;
    font-weight: 600;
}

.bo-booking-id {
    font-weight: 700;
    color: #1B84FF;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
}
.bo-booking-id:hover {
    color: #0a6cdb;
}

.bo-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    white-space: nowrap;
}
.bo-badge-booked {
    background-color: #fff3cd;
    color: #a17a00;
}
.bo-badge-checkedin {
    background-color: #d6ebff;
    color: #1B84FF;
}
.bo-badge-completed {
    background-color: #d9f7e8;
    color: #17825a;
}
.bo-badge-cancelled {
    background-color: #fde3e9;
    color: #d13b5e;
}

.bo-table-empty {
    text-align: center;
    padding: 40px;
    color: #a1a5b7;
    font-size: 13px;
}

/* Tablet Portrait & iPad Air (Max 992px) */
@media (max-width: 992px) {
    .bo-root {
        flex-direction: column;
    }
    .bo-sidebar {
        width: 100%;
        padding: 16px 0;
    }
    .bo-topbar {
        padding: 20px 16px 0;
    }
    .bo-topbar-right {
        gap: 14px;
    }
    .bo-property-address {
        display: none;
    }
    .bo-content {
        padding: 16px 16px 30px;
    }
    .bo-card {
        padding: 16px;
    }
}

/* Smartphone / Mobile (Max 576px) */
@media (max-width: 576px) {
    .bo-topbar-right {
        width: 100%;
        justify-content: space-between;
    }
    .bo-property-info {
        display: none;
    }
    .bo-admin-profile .user-info {
        display: none;
    }
}

/* ==========================================================================
   MODAL RIWAYAT EMAIL NOTIFIKASI
   ========================================================================== */

.email-modal-booking-id {
    font-size: 12px;
    font-weight: 600;
    color: #a1a5b7;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 16px;
}
.email-modal-booking-id span {
    color: #181c32;
}

.email-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border: 1px solid #eff2f5;
    border-radius: 8px;
}

.email-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #fde3e3;
    color: #e2574c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.email-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-item-info {
    min-width: 0;
}
.email-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #181c32;
    margin-bottom: 2px;
}
.email-item-meta {
    font-size: 12px;
    color: #7e8299;
    margin-bottom: 4px;
    overflow-wrap: break-word;
    word-break: break-word;
}
.email-item-attachment {
    font-size: 11px;
    color: #a1a5b7;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 0.2s;
}
.email-item-attachment:hover {
    color: #1B84FF;
}
.email-item-attachment-icon {
    margin-left: auto;
    flex-shrink: 0;
}

.email-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.email-item-status {
    flex-shrink: 0;
}

.email-item-resend {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background-color: #1B84FF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s;
}
.email-item-resend:hover {
    background-color: #0a6cdb;
}
.email-item-resend:disabled {
    background-color: #a1a5b7;
    cursor: not-allowed;
}

/* Smartphone / Mobile (Max 576px) */
@media (max-width: 576px) {
    .email-item-resend {
        width: 100%;
        justify-content: center;
    }
}
