﻿/* ===== هوية فندق الأمانة - واجهة فاخرة RTL ===== */
:root {
    --hm-navy-900: #0a1626;
    --hm-navy-800: #0f1f33;
    --hm-navy-700: #14283f;
    --hm-navy-600: #1c3654;
    --hm-gold: #c9a24b;
    --hm-gold-2: #e0c078;
    --hm-gold-dark: #a8852f;
    --hm-bg: #f2f4f8;
    --hm-border: #e3e7ee;
    --hm-text: #24334a;
    --hm-muted: #7a8798;
    --hm-green: #198754;
    --hm-red: #dc3545;
    --hm-amber: #ffc107;
    --hm-teal: #0dcaf0;
    --hm-orange: #fd7e14;
    --hm-purple: #6f42c1;
    --hm-blue-600: #0d6efd;
    --hm-blue-700: #0b5ed7;
    --hm-blue-100: #cfe2ff;
    --hm-sidebar-bg: #0b1f33;
    --hm-sidebar-sub: #123a5a;
    --hm-sidebar-sub-open: #164a6b;
}

html, body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    background: var(--hm-bg);
    color: var(--hm-text);
    font-size: .92rem;
}

a { text-decoration: none; }

/* ===== القائمة الجانبية ===== */
.hm-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 270px;
    background: linear-gradient(180deg, #0a1c31 0%, var(--hm-sidebar-bg) 45%, #0e2740 100%);
    color: #cfd8e3;
    z-index: 1040;
    transition: width .25s ease, transform .25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .hm-sidebar .brand {
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 16px;
        border-bottom: 1px solid rgba(255,255,255,.08);
        background: linear-gradient(180deg, rgba(201,162,75,.16), rgba(255,255,255,.02));
    }

        .hm-sidebar .brand .logo-badge {
            width: 46px;
            height: 46px;
            min-width: 46px;
            border-radius: 13px;
            background: linear-gradient(135deg, var(--hm-gold), var(--hm-gold-dark));
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 4px 16px rgba(201,162,75,.45);
            overflow: hidden;
        }

            .hm-sidebar .brand .logo-badge img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

        .hm-sidebar .brand .brand-text {
            min-width: 0;
            flex: 1;
            transition: opacity .2s;
        }

        .hm-sidebar .brand .brand-name {
            font-weight: 800;
            color: #fff;
            font-size: 1.08rem;
            line-height: 1.25;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .hm-sidebar .brand .brand-sub {
            font-size: .72rem;
            color: var(--hm-gold-2);
            white-space: nowrap;
        }

        .hm-sidebar .brand .brand-collapse {
            width: 30px;
            height: 30px;
            min-width: 30px;
            border: 1px solid rgba(201,162,75,.35);
            border-radius: 9px;
            background: rgba(201,162,75,.16);
            color: var(--hm-gold-2);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all .18s;
            padding: 0;
        }

            .hm-sidebar .brand .brand-collapse:hover { background: rgba(201,162,75,.32); color: #fff; }
            .hm-sidebar .brand .brand-collapse i { font-size: .95rem; transition: transform .25s; }

    .hm-sidebar .menu-wrap { flex: 1; overflow-y: auto; padding: 6px 0 30px; }

        .hm-sidebar .menu-wrap::-webkit-scrollbar { width: 5px; }
        .hm-sidebar .menu-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

    .hm-sidebar .nav-section {
        font-size: .9rem;
        letter-spacing: .5px;
        color: var(--hm-gold-2);
        padding: 11px 20px;
        margin: 8px 12px 8px;
        font-weight: 700;
        border-radius: 10px;
        background: linear-gradient(90deg, rgba(201,162,75,.2), rgba(201,162,75,.04) 75%, transparent);
        border-right: 3px solid var(--hm-gold);
        border-bottom: 1px solid rgba(201,162,75,.28);
        text-shadow: 0 1px 2px rgba(0,0,0,.35);
        position: relative;
    }

        .hm-sidebar .nav-section:first-child { margin-top: 4px; }

        .hm-sidebar .nav-section::before {
            content: "";
            display: inline-block;
            width: 10px;
            height: 10px;
            margin-left: 8px;
            border-radius: 3px;
            background: linear-gradient(135deg, var(--hm-gold), var(--hm-gold-dark));
            box-shadow: 0 0 0 3px rgba(201,162,75,.2);
            vertical-align: middle;
        }

    .icon-svg {
        width: 31px;
        height: 31px;
        display: inline-block;
        flex-shrink: 0;
    }

    .hm-sidebar .menu-wrap > .nav > .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 20px;
        color: var(--hm-gold-2);
        font-size: 1.12rem;
        font-weight: 700;
        border-right: 3px solid transparent;
        border-radius: 0 10px 10px 0;
        transition: all .15s;
        white-space: nowrap;
        position: relative;
    }

        .hm-sidebar .menu-wrap > .nav > .nav-link .nav-icon {
            width: 42px;
            height: 42px;
            min-width: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 11px;
            background: rgba(201,162,75,.16);
            color: var(--hm-gold-2);
            font-size: 1.3rem;
            transition: all .15s;
        }

        .hm-sidebar .menu-wrap > .nav > .nav-link:hover {
            color: #fff;
            background: rgba(201,162,75,.18);
            border-right-color: var(--hm-gold);
        }

            .hm-sidebar .menu-wrap > .nav > .nav-link:hover .nav-icon {
                background: linear-gradient(135deg, var(--hm-gold), var(--hm-gold-dark));
                color: #fff;
            }

        .hm-sidebar .menu-wrap > .nav > .nav-link.active {
            color: #fff;
            background: linear-gradient(90deg, rgba(201,162,75,.32), rgba(201,162,75,.08));
            border-right-color: var(--hm-gold-2);
            font-weight: 700;
        }

            .hm-sidebar .menu-wrap > .nav > .nav-link.active::after {
                content: "";
                position: absolute;
                right: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 3px;
                height: 60%;
                border-radius: 0 3px 3px 0;
                background: var(--hm-gold-2);
            }

            .hm-sidebar .menu-wrap > .nav > .nav-link.active .nav-icon {
                background: linear-gradient(135deg, var(--hm-gold), var(--hm-gold-dark));
                color: #fff;
                box-shadow: 0 2px 10px rgba(201,162,75,.5);
            }

        .hm-sidebar .menu-wrap > .nav > .nav-link .menu-caret {
            margin-right: auto;
            width: 24px;
            height: 24px;
            min-width: 24px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(201,162,75,.2);
            color: var(--hm-gold);
            font-size: .8rem;
            transition: transform .22s ease, background .15s, color .15s;
        }
        .hm-sidebar .menu-wrap > .nav > .nav-link[aria-expanded="true"] .menu-caret { transform: rotate(180deg); background: var(--hm-gold); color: #fff; }
        .hm-sidebar .menu-wrap > .nav > .nav-link[aria-expanded="true"] { color: #fff; background: rgba(201,162,75,.2); border-right-color: var(--hm-gold); }

        .hm-sidebar .menu-wrap > .nav > .menu-group > .nav-link {
            color: #f2f6fb;
            background: rgba(201,162,75,.08);
            border-right: 3px solid rgba(201,162,75,.55);
        }
        .hm-sidebar .menu-wrap > .nav > .menu-group > .nav-link .nav-label { color: inherit; }
        .hm-sidebar .menu-wrap > .nav > .menu-group > .nav-link:hover { color: #fff; background: rgba(201,162,75,.18); border-right-color: var(--hm-gold); }

    .hm-sidebar .menu-group > .collapse { transition: height .22s ease; }

    .hm-sidebar .submenu {
        background: rgba(18,58,90,.55);
        border-right: 2px solid rgba(201,162,75,.4);
        margin-right: 22px;
        padding: 4px 0;
        border-radius: 0 8px 8px 0;
        position: relative;
    }

        .hm-sidebar .submenu .nav-link {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 20px;
            font-size: .9rem;
            color: #fff;
            font-weight: 400;
            border: 0;
            white-space: nowrap;
            position: relative;
            transition: all .15s;
        }

            .hm-sidebar .submenu .nav-link::before {
                content: "";
                width: 5px;
                height: 5px;
                min-width: 5px;
                border-radius: 50%;
                background: rgba(224,192,120,.5);
                transition: all .15s;
            }

            .hm-sidebar .submenu .nav-link:hover { color: #fff; background: rgba(201,162,75,.12); }
                .hm-sidebar .submenu .nav-link:hover::before { background: var(--hm-gold); box-shadow: 0 0 0 3px rgba(201,162,75,.25); }

            .hm-sidebar .submenu .nav-link.active {
                color: #fff;
                background: rgba(201,162,75,.2);
                font-weight: 600;
                border-right: 3px solid var(--hm-gold);
            }
                .hm-sidebar .submenu .nav-link.active::before { background: var(--hm-gold-2); box-shadow: 0 0 0 3px rgba(201,162,75,.3); }

    .hm-sidebar .sidebar-footer {
        padding: 14px 20px;
        border-top: 1px solid rgba(255,255,255,.07);
        font-size: .72rem;
        color: #e6e9ee;
    }

/* ===== المحتوى الرئيسي ===== */
.hm-main {
    margin-right: 270px;
    transition: margin .25s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hm-topbar {
    background: #fff;
    border-bottom: 1px solid var(--hm-border);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(20,40,63,.05);
}

.hm-topbar .page-title { font-weight: 700; font-size: 1.12rem; }

.hm-topbar .btn-toggle-sidebar {
    background: var(--hm-navy-800);
    color: #fff;
    border: none;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hm-topbar .icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--hm-border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hm-navy-700);
    cursor: pointer;
    transition: all .15s;
}

    .hm-topbar .icon-btn:hover { background: var(--hm-bg); }

    .hm-topbar .icon-btn .badge-dot {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 9px;
        height: 9px;
        background: var(--hm-red);
        border-radius: 50%;
        border: 2px solid #fff;
    }

    .hm-topbar .icon-btn .notif-count {
        position: absolute;
        top: -5px;
        left: -5px;
        min-width: 19px;
        height: 19px;
        padding: 0 5px;
        border-radius: 10px;
        background: var(--hm-red);
        color: #fff;
        font-size: .7rem;
        font-weight: 700;
        line-height: 15px;
        text-align: center;
        border: 2px solid #fff;
        box-shadow: 0 1px 4px rgba(220,53,69,.45);
    }

    .hm-topbar .icon-btn.bell-alert {
        color: var(--hm-red);
        background: #fff1f1;
        border-color: #f0bebe;
        animation: hm-bell-shake .5s ease;
    }

        .hm-topbar .icon-btn.bell-alert .bi-bell { color: var(--hm-red); }

    @keyframes hm-bell-shake {
        0%, 100% { transform: rotate(0); }
        20% { transform: rotate(-12deg); }
        40% { transform: rotate(10deg); }
        60% { transform: rotate(-7deg); }
        80% { transform: rotate(5deg); }
    }

.hm-content { flex: 1; padding: 24px; }

/* ===== الحالة عند طي القائمة الرئيسية (شريط أيقونات) ===== */
@media (min-width: 992px) {
    body.hm-sidebar-collapsed .hm-sidebar { width: 78px; transform: none; }
    body.hm-sidebar-collapsed .hm-main { margin-right: 78px; }

    body.hm-sidebar-collapsed .brand { justify-content: center; padding: 16px 8px; gap: 8px; flex-direction: column; }
    body.hm-sidebar-collapsed .brand .brand-text,
    body.hm-sidebar-collapsed .brand .brand-sub { display: none; }
    body.hm-sidebar-collapsed .brand .logo-badge { width: 40px; height: 40px; min-width: 40px; font-size: 1.3rem; }
    body.hm-sidebar-collapsed .brand .brand-collapse { position: absolute; top: 8px; left: 6px; width: 26px; height: 26px; min-width: 26px; }
    body.hm-sidebar-collapsed .brand .brand-collapse i { transform: rotate(180deg); }

    body.hm-sidebar-collapsed .nav-section {
        font-size: 0;
        padding: 12px 0 4px;
        margin: 8px 0 4px;
        text-align: center;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    body.hm-sidebar-collapsed .menu-wrap > .nav > .nav-link {
        justify-content: center;
        padding: 10px 0;
        gap: 0;
    }

        body.hm-sidebar-collapsed .menu-wrap > .nav > .nav-link .nav-icon { width: 44px; height: 44px; min-width: 44px; }
        body.hm-sidebar-collapsed .menu-wrap > .nav > .nav-link .nav-label,
        body.hm-sidebar-collapsed .menu-wrap > .nav > .nav-link .menu-caret,
        body.hm-sidebar-collapsed .menu-wrap > .nav > .nav-link .badge { display: none !important; }

    body.hm-sidebar-collapsed .menu-group { position: relative; }
    body.hm-sidebar-collapsed .menu-group > .collapse {
        position: absolute;
        right: 100%;
        top: 0;
        min-width: 230px;
        z-index: 1050;
        background: #0d2740;
        border-right: 2px solid var(--hm-gold);
        border-radius: 0 10px 10px 0;
        box-shadow: 0 8px 24px rgba(0,0,0,.4);
        padding: 6px 0;
        transition: none;
    }

        body.hm-sidebar-collapsed .menu-group > .collapse.show { display: block; }
        body.hm-sidebar-collapsed .menu-group > .collapse .submenu { background: transparent; border: 0; margin-right: 0; border-radius: 0; }
        body.hm-sidebar-collapsed .menu-group > .collapse .submenu .nav-link { color: #d8caa8; }
        body.hm-sidebar-collapsed .menu-group > .collapse .submenu .nav-link:hover { background: rgba(201,162,75,.16); color: #fff; }
        body.hm-sidebar-collapsed .menu-group > .collapse .submenu .nav-link.active { color: #fff; background: rgba(201,162,75,.26); border-right-color: var(--hm-gold-2); }

    body.hm-sidebar-collapsed .sidebar-footer { padding: 14px 0; text-align: center; }
    body.hm-sidebar-collapsed .sidebar-footer span { display: none; }
    body.hm-sidebar-collapsed .sidebar-footer i { margin: 0; }
}

/* ===== البطاقات ===== */
.card {
    border: 1px solid var(--hm-border);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(20,40,63,.04);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--hm-border);
    padding: 14px 18px;
    font-weight: 700;
    border-radius: 14px 14px 0 0 !important;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--hm-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(20,40,63,.04);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform .15s;
}

    .stat-card:hover { transform: translateY(-2px); }

.hm-clickable { cursor: pointer; }
.hm-clickable .hm-caret { display: inline-block; transition: transform .25s ease; }
.hm-clickable[aria-expanded="true"] .hm-caret { transform: rotate(180deg); }

.stat-card .stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card .stat-value { font-size: 1.4rem; font-weight: 700; line-height: 1.15; }
.stat-card .stat-label { color: var(--hm-muted); font-size: .85rem; }

/* ألوان أيقونات الإحصائيات */
.bg-gold-soft { background: rgba(201,162,75,.14); color: var(--hm-gold-dark); }
.bg-green-soft { background: rgba(25,135,84,.12); color: var(--hm-green); }
.bg-red-soft { background: rgba(220,53,69,.1); color: var(--hm-red); }
.bg-amber-soft { background: rgba(255,193,7,.18); color: #b8860b; }
.bg-teal-soft { background: rgba(13,202,240,.13); color: #0a7ea1; }
.bg-orange-soft { background: rgba(253,126,20,.12); color: #c2570a; }
.bg-purple-soft { background: rgba(111,66,193,.12); color: var(--hm-purple); }
.bg-blue-soft { background: rgba(13,110,253,.1); color: #0a56c2; }

/* ===== خريطة الغرف ===== */
.room-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

.room-card {
    border-radius: 14px;
    color: #fff;
    background: #fff;
    padding: 14px;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--hm-border);
    box-shadow: 0 3px 14px rgba(20,40,63,.08);
    transition: transform .15s, box-shadow .15s;
    min-height: 170px;
    display: flex;
    flex-direction: column;
}

    .room-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(20,40,63,.16); }

.room-card .room-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.room-card .room-number { font-size: 1.3rem; font-weight: 800; }

.room-card .room-icons { display: flex; gap: 6px; font-size: .85rem; }
    .room-card .room-icons .icon-chip {
        width: 24px;
        height: 24px;
        border-radius: 7px;
        background: rgba(255,255,255,.22);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.room-card .room-type { font-size: .82rem; opacity: .9; }

.room-card .room-status {
    margin-top: auto;
    font-size: .82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,.18);
    align-self: flex-start;
}

.room-card .room-stay { font-size: .76rem; opacity: .92; margin-top: 4px; }

.room-card .room-due {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: .72rem;
    font-weight: 700;
    background: rgba(0,0,0,.35);
    padding: 3px 8px;
    border-radius: 12px;
}

/* قائمة سريعة عند الضغط على الغرفة */
.room-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
}

    .room-actions .btn { font-size: .84rem; }

/* ===== الجداول ===== */
.table thead th {
    background: var(--hm-navy-800);
    color: #cfd8e3;
    font-weight: 600;
    font-size: .84rem;
    border: none;
    white-space: nowrap;
}

.table tbody tr:hover { background: #f7f9fc; }

.table td { vertical-align: middle; padding: .6rem .75rem; }

/* ===== النماذج ===== */
.form-control, .form-select {
    border: 1px solid #d5dbe5;
    border-radius: 9px;
    padding: .45rem .8rem;
    font-size: .92rem;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--hm-gold);
        box-shadow: 0 0 0 .2rem rgba(201,162,75,.15);
    }

.form-label { font-weight: 600; font-size: .85rem; margin-bottom: .3rem; color: #3c4a5f; }

/* ===== الأزرار ===== */
.btn { border-radius: 9px; font-weight: 600; }

.btn-gold {
    background: linear-gradient(135deg, var(--hm-gold), var(--hm-gold-dark));
    border: none;
    color: #fff;
}

    .btn-gold:hover { color: #fff; filter: brightness(1.06); }

.btn-navy {
    background: var(--hm-navy-700);
    border: none;
    color: #fff;
}

    .btn-navy:hover { background: var(--hm-navy-600); color: #fff; }

/* ===== التنبيهات والإشعارات ===== */
.notif-item {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--hm-border);
}

    .notif-item:last-child { border-bottom: none; }

    .notif-item .notif-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .notif-item .notif-title { font-weight: 600; font-size: .9rem; }
    .notif-item .notif-time { font-size: .74rem; color: var(--hm-muted); }

.notif-dropdown { width: 360px; max-height: 480px; overflow-y: auto; }

/* ===== شارة التنبيه في صفحة الغرفة ===== */
.badge-status {
    font-size: .74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ===== شاشة الدخول ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hm-navy-900) 0%, var(--hm-navy-700) 55%, var(--hm-navy-600) 100%);
    position: relative;
    padding: 20px;
}

    .login-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 15% 20%, rgba(201,162,75,.18), transparent 40%),
            radial-gradient(circle at 85% 75%, rgba(201,162,75,.12), transparent 40%);
    }

.login-split {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 1080px;
    min-height: 600px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

/* ===== اللوحة الترحيبية ===== */
.login-hero {
    flex: 1 1 55%;
    background: linear-gradient(160deg, #0a1c31 0%, #0e2740 55%, #123553 100%);
    color: #fff;
    padding: 44px 46px;
    display: flex;
    align-items: center;
    position: relative;
}

    .login-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 12% 12%, rgba(201,162,75,.22), transparent 45%),
            radial-gradient(circle at 90% 85%, rgba(201,162,75,.15), transparent 45%);
        pointer-events: none;
    }

.login-hero-inner { position: relative; width: 100%; max-width: 480px; }

.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }

.login-brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--hm-gold), var(--hm-gold-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 26px rgba(201,162,75,.45);
    overflow: hidden;
}

    .login-brand-logo img { width: 100%; height: 100%; object-fit: cover; }

.login-brand h2 { margin: 0; font-weight: 800; font-size: 1.15rem; color: #fff; }
.login-brand span { font-size: .78rem; color: #c7cdd6; }

.login-hero h1 { font-weight: 800; font-size: 1.8rem; margin-bottom: 12px; color: #fff; }
.login-hero-text { color: #d3dae3; font-size: .95rem; line-height: 1.8; margin-bottom: 26px; }

.login-features { list-style: none; margin: 0 0 30px; padding: 0; }
    .login-features li { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: #e6e9ee; font-size: .9rem; }
    .login-features i { color: var(--hm-gold); font-size: 1.05rem; }

.login-contacts { display: flex; flex-direction: column; gap: 8px; }
.login-contact { display: flex; align-items: center; gap: 9px; font-size: .85rem; color: #b9c2cd; }
    .login-contact i { color: var(--hm-gold); }

/* ===== لوحة النموذج ===== */
.login-form-panel {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 40px;
    background: #fff;
}

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

.login-form-card h3 { font-weight: 800; color: var(--hm-navy-800); margin-bottom: 6px; }
.login-form-card .login-sub { color: var(--hm-muted); font-size: .88rem; margin-bottom: 24px; }

.login-form-card .form-label { text-align: right; }

@media (max-width: 991.98px) {
    .login-split { flex-direction: column; min-height: auto; }
    .login-hero { padding: 30px 26px; }
    .login-features { display: none; }
    .login-brand { margin-bottom: 18px; }
    .login-hero h1 { font-size: 1.4rem; }
    .login-form-panel { padding: 32px 24px; }
}

/* ===== الحالات ===== */
.legend-chip {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}

/* ===== الطباعة ===== */
@media print {
    .hm-sidebar, .hm-topbar, .no-print { display: none !important; }
    .hm-main { margin-right: 0 !important; }
    .hm-content { padding: 0 !important; }
    .card { box-shadow: none !important; border: none !important; }
    body { background: #fff; }
}

/* ===== صفحة الطباعة (فاتورة / عقد) ===== */
.print-doc { font-size: .95rem; }
    .print-doc h2 { font-weight: 800; color: var(--hm-navy-800); }
    .print-doc .signature-line { margin-top: 60px; text-align: center; }
    .print-doc .terms { font-size: .8rem; border-top: 1px dashed #999; padding-top: 12px; }

/* ===== جدول البيانات في التفاصيل ===== */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.info-box {
    background: #f8fafc;
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    padding: 12px 16px;
}
    .info-box .info-label { font-size: .76rem; color: var(--hm-muted); font-weight: 600; }
    .info-box .info-value { font-size: .98rem; font-weight: 700; margin-top: 2px; }

/* ===== الرد للجوال ===== */
@media (max-width: 991.98px) {
    .hm-sidebar { transform: translateX(270px); }
    body.hm-sidebar-collapsed .hm-sidebar { transform: translateX(0); }
    .hm-main, body.hm-sidebar-collapsed .hm-main { margin-right: 0; }
}

.pagination .page-link { border-radius: 8px !important; margin: 0 3px; color: var(--hm-navy-700); }
.pagination .active .page-link { background: var(--hm-navy-700); border-color: var(--hm-navy-700); }

.footer-print { display: none; }
@media print { .footer-print { display: block; } }

/* ===== تقرير البحث (طباعة) ===== */
@media print {
    .no-print-table { border: 1px solid #ccc !important; }
    .report-table { font-size: .78rem; }
    .report-table th, .report-table td { border: 1px solid #aaa !important; padding: 4px 6px !important; }
}

/* ===== ترويسة طباعة التقارير ===== */
.report-print-header { display: none; }

@media print {
    .report-print-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid var(--hm-gold, #c9a24b);
        padding-bottom: 12px;
        margin-bottom: 16px;
        font-family: 'Cairo', sans-serif;
    }

    .report-print-header .rph-brand { display: flex; align-items: center; gap: 12px; }
    .report-print-header .rph-brand img { width: 54px; height: 54px; object-fit: contain; }
    .report-print-header .rph-name { font-weight: 800; font-size: 1.1rem; color: var(--hm-navy-800, #0a1c31); }
    .report-print-header .rph-sub { font-size: .76rem; color: #555; }
    .report-print-header .rph-title { text-align: center; font-weight: 700; font-size: 1rem; color: var(--hm-navy-800, #0a1c31); }
    .report-print-header .rph-date { font-size: .72rem; color: #777; font-weight: 400; margin-top: 2px; }
}

.search-box {
    position: relative;
}
    .search-box i { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--hm-muted); }
    .search-box input { padding-right: 36px; }

/* ===== رأس النزيل ===== */
.guest-header {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(120deg, var(--hm-navy-700), var(--hm-navy-600));
    border-radius: 16px;
    padding: 22px 24px;
    color: #fff;
    box-shadow: 0 12px 30px rgba(20,40,63,.18);
    flex-wrap: wrap;
}

.avatar-circle-lg {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    border: 2px solid rgba(201,162,75,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.text-gold { color: var(--hm-gold); }

/* ===== أيقونات الذهب ومسميات الأحداث ===== */
.event-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 20px;
    white-space: nowrap;
}

.event-chip i { font-size: .9rem; }

.event-arrival {
    background: linear-gradient(135deg, rgba(201,162,75,.18), rgba(201,162,75,.08));
    color: var(--hm-gold-dark);
    border: 1px solid rgba(201,162,75,.35);
}

.event-departure {
    background: linear-gradient(135deg, rgba(46,204,113,.14), rgba(46,204,113,.06));
    color: #1e8449;
    border: 1px solid rgba(46,204,113,.32);
}

.event-late {
    background: linear-gradient(135deg, rgba(220,53,69,.13), rgba(220,53,69,.05));
    color: var(--hm-red);
    border: 1px solid rgba(220,53,69,.32);
}

.event-booking {
    background: linear-gradient(135deg, rgba(13,110,253,.12), rgba(13,110,253,.06));
    color: #0a56c2;
    border: 1px solid rgba(13,110,253,.3);
}

.event-arrived {
    background: linear-gradient(135deg, rgba(32,201,151,.13), rgba(32,201,151,.06));
    color: #148f6d;
    border: 1px solid rgba(32,201,151,.32);
}

.event-head-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--hm-gold), var(--hm-gold-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(201,162,75,.35);
    margin-inline-end: 9px;
}

.card-header .event-head-icon { margin-inline-end: 9px; vertical-align: middle; }

/* ===== صف المعلومات ===== */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--hm-border);
    font-size: .9rem;
}
    .info-row:last-child { border-bottom: none; }
    .info-row span { color: var(--hm-muted); }

/* ===== تبويبات ===== */
.hm-tabs { border-bottom-color: var(--hm-border); }
    .hm-tabs .nav-link {
        color: var(--hm-muted);
        font-weight: 600;
        border: none;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        padding: 10px 18px;
    }
    .hm-tabs .nav-link.active {
        color: var(--hm-navy-700);
        border-bottom-color: var(--hm-gold);
        background: none;
    }

.bg-warning-soft { background: rgba(255,193,7,.12); }

/* ===== خلفيات الأشكال (بطاقات الإحصائيات) ===== */
.bg-blue-soft { background: rgba(13,110,253,.12); color: #0d6efd; }
.bg-red-soft { background: rgba(220,53,69,.12); color: #dc3545; }
.bg-green-soft { background: rgba(25,135,84,.12); color: #198754; }
.bg-amber-soft { background: rgba(255,193,7,.16); color: #d39e00; }
.bg-gold-soft { background: rgba(201,162,75,.18); color: var(--hm-gold-dark); }
.bg-teal-soft { background: rgba(32,201,151,.12); color: #20c997; }
.bg-orange-soft { background: rgba(253,126,20,.12); color: #fd7e14; }
.bg-purple-soft { background: rgba(111,66,193,.12); color: #6f42c1; }
.bg-navy { background: var(--hm-navy-700); }

.btn-navy {
    background: var(--hm-navy-700);
    color: #fff;
}
    .btn-navy:hover { background: var(--hm-navy-800); color: #fff; }

.btn-gold {
    background: linear-gradient(135deg, var(--hm-gold), var(--hm-gold-dark));
    color: #fff;
    border: none;
}
    .btn-gold:hover { background: var(--hm-gold-dark); color: #fff; }

/* ===== إجراءات الغرفة في النافذة ===== */
.room-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ===== ملخص الحجز ===== */
.res-total-box {
    background: #f8fafc;
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: .95rem;
}

.res-actions { position: sticky; top: 84px; }

/* ========================================================= */
/* Sidebar redesign (dynamic menu) - overrides appended below */
/* ========================================================= */
:root {
    --hm-sidebar-bg: #112b3f;
    --hm-sidebar-open: #1f3b73;
    --hm-sidebar-active: rgba(13,110,253,.3);
    --hm-sidebar-active-border: #0d6efd;
    --hm-sidebar-text: #e5eaf0;
    --hm-sidebar-sub: #c3cdd6;
    --hm-sidebar-icon: #c8d2dc;
    --hm-sidebar-caret: #b8c4cf;
    --hm-sidebar-hover: rgba(255,255,255,.06);
    --hm-sidebar-w: 370px;
    --hm-sidebar-w-mini: 78px;
}

.hm-sidebar {
    width: var(--hm-sidebar-w);
    background: var(--hm-sidebar-bg);
    color: var(--hm-sidebar-text);
    border-left: 1px solid rgba(255,255,255,.05);
    box-shadow: 6px 0 24px rgba(10,20,35,.25);
}

.hm-main { margin-right: var(--hm-sidebar-w); }

.hm-sidebar .brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    min-height: 78px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: linear-gradient(180deg, rgba(13,110,253,.16), rgba(255,255,255,.02));
}

    .hm-sidebar .brand .logo-badge {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 13px;
        background: linear-gradient(135deg, #1d6df6, #0b5ed7);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        box-shadow: 0 4px 16px rgba(13,110,253,.4);
        overflow: hidden;
    }

        .hm-sidebar .brand .logo-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }

    .hm-sidebar .brand .brand-text { min-width: 0; flex: 1; transition: opacity .2s; }

    .hm-sidebar .brand .brand-name {
        font-weight: 800;
        color: #fff;
        font-size: 1.05rem;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hm-sidebar .brand .brand-sub { font-size: .72rem; color: var(--hm-sidebar-sub); white-space: nowrap; }

    .hm-sidebar .brand .brand-collapse {
        width: 30px;
        height: 30px;
        min-width: 30px;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 9px;
        background: rgba(255,255,255,.08);
        color: var(--hm-sidebar-icon);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all .18s;
        padding: 0;
    }

        .hm-sidebar .brand .brand-collapse:hover { background: rgba(13,110,253,.35); color: #fff; }
        .hm-sidebar .brand .brand-collapse i { font-size: .95rem; transition: transform .25s; }

.hm-sidebar .menu-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0 26px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}

    .hm-sidebar .menu-wrap::-webkit-scrollbar { width: 5px; }
    .hm-sidebar .menu-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 4px; }

.hm-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 10px 12px;
}

.hm-group-link {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    height: 58px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    border-radius: 12px;
    color: var(--hm-sidebar-text);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: start;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

    .hm-group-link:hover { background: var(--hm-sidebar-hover); color: #fff; }

.hm-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.07);
    color: var(--hm-sidebar-icon);
    font-size: 1.3rem;
    transition: background .15s, color .15s;
}

.hm-group-link:hover .hm-icon { background: rgba(13,110,253,.22); color: #fff; }

.hm-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hm-caret {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hm-sidebar-caret);
    font-size: .85rem;
    transition: transform .2s ease, color .15s;
}

.hm-menu-group.open > .hm-group-link { background: var(--hm-sidebar-open); color: #fff; }
    .hm-menu-group.open > .hm-group-link .hm-icon { background: rgba(255,255,255,.12); color: #fff; }
    .hm-menu-group.open > .hm-group-link .hm-caret { transform: rotate(180deg); color: #fff; }

.hm-sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .22s ease;
}

    .hm-sub-inner { overflow: hidden; min-height: 0; }

    .hm-menu-group.open > .hm-sub { grid-template-rows: 1fr; }

.hm-item {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 50px;
    padding: 0 14px;
    margin-inline: 8px;
    border-radius: 10px;
    color: var(--hm-sidebar-sub);
    font-size: .95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

    .hm-item:hover { color: #fff; background: var(--hm-sidebar-hover); }

    .hm-item .hm-item-icon {
        width: 27px;
        height: 27px;
        min-width: 27px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,.05);
        color: var(--hm-sidebar-icon);
        font-size: 1.08rem;
        transition: background .15s, color .15s;
    }

    .hm-item:hover .hm-item-icon { background: rgba(13,110,253,.2); color: #fff; }

    .hm-item-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

    .hm-item .hm-item-badge { margin-inline-start: auto; }

    .hm-item.active { color: #fff; background: var(--hm-sidebar-active); font-weight: 600; }
        .hm-item.active .hm-item-icon { background: rgba(255,255,255,.16); color: #fff; }

.hm-sidebar .sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .72rem;
    color: var(--hm-sidebar-text);
}

@keyframes hm-flyout {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: none; }
}

@media (min-width: 992px) {
    body.hm-sidebar-collapsed .hm-sidebar { width: var(--hm-sidebar-w-mini); transform: none; overflow: visible; }
        body.hm-sidebar-collapsed .hm-sidebar .menu-wrap { overflow: visible; }
    body.hm-sidebar-collapsed .hm-main { margin-right: var(--hm-sidebar-w-mini); }

    body.hm-sidebar-collapsed .brand { justify-content: center; padding: 14px 8px; gap: 8px; flex-direction: column; }
        body.hm-sidebar-collapsed .brand .brand-text,
        body.hm-sidebar-collapsed .brand .brand-sub { display: none; }
        body.hm-sidebar-collapsed .brand .logo-badge { width: 42px; height: 42px; min-width: 42px; font-size: 1.3rem; }
        body.hm-sidebar-collapsed .brand .brand-collapse { position: absolute; top: 8px; left: 6px; width: 26px; height: 26px; min-width: 26px; }
            body.hm-sidebar-collapsed .brand .brand-collapse i { transform: rotate(180deg); }

    body.hm-sidebar-collapsed .hm-nav { padding: 8px; gap: 4px; }
    body.hm-sidebar-collapsed .hm-group-link { justify-content: center; padding: 0; height: 56px; gap: 0; }
        body.hm-sidebar-collapsed .hm-group-link .hm-icon { width: 44px; height: 44px; min-width: 44px; font-size: 1.35rem; }
        body.hm-sidebar-collapsed .hm-label,
        body.hm-sidebar-collapsed .hm-caret { display: none !important; }

    body.hm-sidebar-collapsed .hm-menu-group { position: relative; }
    body.hm-sidebar-collapsed .hm-sub {
        display: none;
        position: absolute;
        right: calc(100% + 10px);
        top: 0;
        z-index: 1050;
        min-width: 250px;
        padding: 8px;
        background: #0f2940;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(0,0,0,.45);
        grid-template-rows: none;
    }

        body.hm-sidebar-collapsed .hm-menu-group.open > .hm-sub { display: block; animation: hm-flyout .18s ease; }
        body.hm-sidebar-collapsed .hm-sub-inner { overflow: visible; min-height: 0; }
        body.hm-sidebar-collapsed .hm-item { height: 46px; margin-inline: 2px; padding: 0 12px; }

    body.hm-sidebar-collapsed .sidebar-footer { padding: 14px 0; text-align: center; }
        body.hm-sidebar-collapsed .sidebar-footer span { display: none; }
        body.hm-sidebar-collapsed .sidebar-footer i { margin: 0; }
}

@media (max-width: 991.98px) {
    .hm-sidebar { transform: translateX(var(--hm-sidebar-w)); }
    body.hm-sidebar-collapsed .hm-sidebar { transform: translateX(0); }
    .hm-main, body.hm-sidebar-collapsed .hm-main { margin-right: 0; }
}

/* ===== خريطة الغرف (تصميم محدّث) ===== */
.rm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-block: 6px 20px;
}

.rm-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--hm-border);
    border-radius: 16px;
    padding: 15px 16px;
    box-shadow: 0 3px 14px rgba(20,40,63,.06);
    transition: transform .15s, box-shadow .15s;
}

    .rm-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,40,63,.12); }

.rm-stat-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    background: var(--sg, #0d6efd);
    box-shadow: 0 5px 14px rgba(0,0,0,.14);
}

.rm-stat-val {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--sg, var(--hm-text));
}

.rm-stat-label { font-size: .8rem; color: var(--hm-muted); }

.rm-legend {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    background: #fff;
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    padding: 8px 14px;
}

.rm-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--hm-muted);
    white-space: nowrap;
}

    .rm-legend-item b { color: var(--hm-text); }

.rm-floor {
    background: #fff;
    border: 1px solid var(--hm-border);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 3px 14px rgba(20,40,63,.06);
}

.rm-floor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 14px;
}

.rm-floor-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--hm-text);
}

.rm-floor-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(135deg, var(--hm-navy-700), var(--hm-navy-900));
}

.rm-floor-count {
    font-size: .78rem;
    font-weight: 600;
    color: var(--hm-muted);
    background: #eef2f7;
    padding: 3px 11px;
    border-radius: 14px;
    white-space: nowrap;
}

.rm-floor-meta { display: flex; align-items: center; gap: 10px; }

.rm-occ-bar {
    width: 150px;
    height: 8px;
    background: #e8edf3;
    border-radius: 8px;
    overflow: hidden;
}

.rm-occ-fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #198754, #7cce8e);
    transition: width .4s ease;
}

.rm-occ-label { font-size: .78rem; font-weight: 700; color: var(--hm-muted); white-space: nowrap; }

.room-map {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.room-card {
    background: #fff;
    color: var(--hm-text);
    border: 1px solid var(--hm-border);
    border-top: 4px solid var(--rc, #6c757d);
    border-radius: 16px;
    padding: 14px 14px 12px;
    min-height: 178px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    box-shadow: 0 3px 14px rgba(20,40,63,.07);
    transition: transform .16s, box-shadow .16s;
}

    .room-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(20,40,63,.16); }

.rc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }

.rc-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.rc-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-weight: 800;
    font-size: 1.12rem;
    background: var(--rc, #6c757d);
    color: #fff;
    box-shadow: 0 5px 13px rgba(0,0,0,.16);
}

.rc-type { font-size: .76rem; color: var(--hm-muted); font-weight: 600; }

.rc-chips { display: inline-flex; gap: 5px; }

.rc-chip {
    width: 27px;
    height: 27px;
    min-width: 27px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    color: #fff;
}

.rc-chip-debt { background: linear-gradient(135deg, #e2474b, #b31f2e); }

.rc-chip-note { background: linear-gradient(135deg, #f0ad4e, #dd8d06); }

.rc-guest {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    background: #f7f9fc;
    border: 1px solid #eef2f7;
    border-radius: 13px;
    padding: 9px 11px;
    min-width: 0;
}

.rc-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
    background: var(--rc, #6c757d);
    box-shadow: 0 4px 10px rgba(0,0,0,.14);
}

.rc-guest-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.rc-guest-name { font-weight: 700; font-size: .88rem; color: var(--hm-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rc-dates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    font-size: .72rem;
    color: var(--hm-muted);
}

    .rc-dates i { opacity: .65; font-size: .68rem; }

.rc-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 10px;
    flex: 1;
    border: 1.5px dashed #d6dde6;
    border-radius: 13px;
    background: #fbfcfe;
    color: #9aa7b8;
    font-size: .84rem;
}

.rc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 11px;
}

.rc-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--rc, #6c757d);
}

    .rc-status .rc-dot { font-size: .58rem; color: var(--rc, #6c757d); }

.rc-due {
    font-size: .73rem;
    font-weight: 700;
    color: #c0392b;
    background: #fdecec;
    padding: 3px 9px;
    border-radius: 12px;
    white-space: nowrap;
}

    .rc-due i { margin-inline-end: 3px; }

@media (max-width: 575.98px) {
    .rm-floor-head { flex-direction: column; align-items: flex-start; }
    .rm-floor-meta { width: 100%; }
    .rm-occ-bar { flex: 1; }
    .rm-stats { grid-template-columns: repeat(2, 1fr); }
    .rm-legend { width: 100%; justify-content: center; }
}