/* Notification health indicator (dashboard cloud queue) */
.notif-health-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 2px;
    border: 2px solid #ccc;
    background: #ccc;
    vertical-align: middle;
    transition: background 0.3s, border 0.3s;
}
.notif-health-green {
    background: #43a047;
    border-color: #43a047;
}
.notif-health-yellow {
    background: #fbc02d;
    border-color: #fbc02d;
}
.notif-health-red {
    background: #d32f2f;
    border-color: #d32f2f;
}
.notif-health-unknown {
    background: #ccc;
    border-color: #ccc;
}
/* Notification bar styles */
.notification-bar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.1em;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    display: none;
    opacity: 1;
    transition: opacity 0.5s;
}
.notification-info {
    background: #1976d2;
}
.notification-success {
    background: #43a047;
}
.notification-error {
    background: #d32f2f;
}
/* Flex container for tenant details charts */
.charts-flex-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

@media (max-width: 900px) {
    .charts-flex-container {
        flex-direction: column;
        gap: 0;
    }
    .charts-flex-container .card {
        max-width: 100%;
    }
}
@media (max-width: 900px) {
    .header .page-title {
        margin-left: 55px;
        transition: margin 0.3s;
    }
    .sidebar-brand {
        font-size: 1.1rem;
        padding-left: 15px;
        padding-right: 10px;
        word-break: break-word;
    }
}
:root {
    --primary-color: #1a73e8;
    --secondary-color: #5f6368;
    --bg-color: #f8f9fa;
    --sidebar-width: 250px;
    --header-height: 60px;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

content {
    display: block;
    flex: 1;
}

footer {
    flex-shrink: 0;
}


.sidebar {
    width: var(--sidebar-width);
    background: #fff;
    height: 100vh;
    position: fixed;
    border-right: 1px solid #dee2e6;
    padding-top: 20px;
    left: 0;
    top: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}

/* Hamburger styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }
    .sidebar-brand {
        margin-left: 55px;
    }
}
#hamburger-menu{
    display: none;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
    opacity: 1;
}

@media (max-width: 900px) {
    #hamburger-menu {
        display: block;
    }
    .hamburger {
        display: flex;
    }
    .hamburger span {
        opacity: 1;
        background: var(--primary-color);
    }
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        transition: width 0.3s;
    }
    .hamburger {
        display: flex;
    }
}

.sidebar-brand {
    padding: 0 20px 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.nav-item a {
    display: block;
    padding: 12px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: 0.2s;
}

.nav-item a:hover, .nav-item.active a {
    background: #e8f0fe;
    color: var(--primary-color);
}

.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
}

.header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

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

.panel-switcher {
    display: inline-flex;
    border: 1px solid #d0d7de;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.panel-switcher-btn {
    border: none;
    background: transparent;
    color: var(--secondary-color);
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.panel-switcher-btn.active {
    background: #e8f0fe;
    color: var(--primary-color);
}

/* Reusable empty-state block for no-data views */
.empty-state {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid #dde4ef;
    border-left: 4px solid #1a73e8;
    border-radius: 10px;
    padding: 14px 16px;
}

.empty-state-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #1a73e8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex: 0 0 34px;
}

.empty-state-content {
    min-width: 0;
}

.empty-state-title {
    margin: 0;
    color: #1f2937;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
}

.empty-state-subtitle {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

.empty-state-row {
    padding: 10px 6px;
}

.empty-state-row .empty-state {
    max-width: 740px;
    margin: 0 auto;
}

.empty-state-card {
    margin: 12px 0;
}

.user-greeting-link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.user-logout-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.user-logout-link:hover,
.user-greeting-link:hover {
    text-decoration: underline;
}

.content-area {
    padding: 30px;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.tenant-details-info {
    padding: 15px;
}

.tenant-leased-label {
    margin: 14px 0 8px;
}

.tenant-leased-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.tenant-leased-list li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px 12px;
    line-height: 1.45;
    color: #334155;
    font-size: 0.95rem;
}

    .tenant-proto-link {
        display: inline-block;
        margin-left: 8px;
        padding: 2px 9px;
        font-size: 0.8rem;
        border-radius: 12px;
        background: #e0f2fe;
        color: #0369a1;
        text-decoration: none;
        font-weight: 500;
        white-space: nowrap;
    }

    .tenant-proto-link:hover {
        background: #bae6fd;
        color: #075985;
    }

@media (max-width: 900px) {
    .tenant-leased-list li {
        font-size: 0.9rem;
        padding: 9px 10px;
    }
}

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

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    margin: 1px;
}


.btn-primary { background: var(--primary-color); color: white; }
.btn-success { background: var(--success-color); color: white; }

@media (max-width: 900px) {
    .user-info {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrapper table {
        min-width: 640px;
    }
}

@media print {
    .table-wrapper {
        overflow: visible !important;
    }
}

.property-actions-dropdown {
    position: relative;
    display: inline-block;
}

.property-actions-dropdown summary {
    cursor: pointer;
}

.property-actions-dropdown summary::-webkit-details-marker {
    display: none;
}

.property-actions-menu {
    position: fixed;
    top: -9999px;
    left: -9999px;
    z-index: 1000;
    min-width: 190px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.property-actions-menu .btn {
    width: 100%;
    text-align: left;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tenant-property-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
}
.tenant-property-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 6px 10px;
    background: #f7f7f7;
    border-radius: 6px;
}
.tenant-property-line strong {
    min-width: 180px;
}

.filters input, .filters select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 500px;
    border-radius: 8px;
}

/* Unified confirmation modal styling */
#confirm-modal #confirm-modal-content {
    width: min(420px, calc(100% - 28px));
    margin: 8% auto;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.2);
    padding: 22px;
}

#confirm-modal #confirm-title {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    color: #1f2937;
}

#confirm-modal #confirm-message {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

#confirm-modal #confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

#confirm-modal #close-btn {
    margin-right: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="password"]::placeholder,
.form-group input[type="number"]::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
/* Status Badges */
.status-badge,
.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

.status-badge.paid, .status-badge.active,.status.status0 { background-color: #e6f4ea; color: #1e8e3e; }
.status-badge.unpaid, .status.status-1 { background-color: #fce8e6; color: #d93025; }
.status-badge.sent { background-color: #e8f0fe; color: #1a73e8; }
.status-badge.unsent { background-color: #f1f3f4; color: #5f6368; }
.status-badge.pending { background-color: #e8f7f7; color: #007a7a; }
.status-badge.overdue { background-color: #fce8e6; color: #b3261e; }
.status-badge.soon-overdue { background-color: #fff4db; color: #b06000; }
.status-badge.readonly { cursor: default; }
.status {
    cursor: default;
}
#tenants-table tr.inactive,
#properties-table tr.inactive {
    color: #999;
    background: #fcfcfc;
}
.status-badge:hover { opacity: 0.8; }
.charts-flex-container {
   display: flex;
    gap: 20px;
  justify-content: space-around;
  flex-wrap: wrap;
}
.charts-flex-container .card {
    flex: 1 1 360px;
    min-width: 320px;
}
.tenant-chart-container {
    position: relative;
    padding: 15px;
    min-height: 320px;
}
/* Tabs Styles */
.tabs-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    transition: all 0.3s;
}

.tab-button:hover {
    background: #e9ecef;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: #fff;
}

.tabs-content {
    padding: 30px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.email-display {
    background: #e8f0fe;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.email-display h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.email-address {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 15px 0;
    font-family: monospace;
}

.email-info {
    color: var(--secondary-color);
    margin-top: 10px;
}

/* ── Cookie footer bar ── */
.cookie-footer-bar {
    padding: 14px 32px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-footer-bar span {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.8em;
    color: #868e96;
}

.cookie-footer-bar a,
.cookie-footer-link {
    color: #868e96;
    text-decoration: none;
    transition: color 0.15s;
}

.cookie-footer-bar a:hover,
.cookie-footer-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.cookie-footer-bar .footer-sep {
    color: #dee2e6;
    user-select: none;
}

/* Inventory View Styles */
.iv-wrap { max-width: 860px; margin: 2.5rem auto; padding: 0 1rem 4rem; }
.iv-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 14px rgba(0,0,0,.09); padding: 2rem 2.5rem; margin-bottom: 1.5rem; }
.iv-title { margin: 0 0 .4rem; font-size: 1.6rem; font-weight: 700; color: #1a1a2e; }
.iv-subtitle { color: #666; margin-bottom: 1.5rem; font-size: .97rem; }
.iv-meta { display: flex; flex-wrap: wrap; gap: .6rem 2rem; font-size: .95rem; margin-bottom: 1.2rem; }
.iv-meta span { color: #555; }
.iv-meta strong { color: #1a1a2e; }
.status-badge { display: inline-block; padding: .3rem .85rem; border-radius: 20px; font-size: .85rem; font-weight: 600; color: #fff; }
.iv-message { padding: 1rem 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 1rem; font-weight: 500; }
.iv-message.success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.iv-message.info    { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.room-section { margin-bottom: 2rem; }
.room-heading { font-size: 1.05rem; font-weight: 700; color: #1a73e8; border-bottom: 2px solid #e8f0fe; padding-bottom: .4rem; margin-bottom: 1rem; }
.iv-item { display: flex; gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; }
.iv-item:last-child { border-bottom: none; }
.iv-item-info { flex: 1; min-width: 0; }
.iv-item-name { font-weight: 600; font-size: 1rem; margin-bottom: .25rem; }
.iv-item-desc { font-size: .9rem; color: #666; margin-bottom: .3rem; }
.iv-condition { display: inline-block; background: #e8f0fe; color: #1a73e8; border-radius: 4px; padding: .15rem .6rem; font-size: .82rem; font-weight: 600; }
.iv-photos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.iv-photos img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid #e0e0e0; transition: border .2s; }
.iv-photos img:hover { border-color: #1a73e8; }
.iv-actions { display: flex; gap: 1.2rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.btn-confirm { background: #28a745; color: #fff; border: none; padding: .75rem 2.5rem; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.btn-confirm:hover { background: #1e7e34; }
.btn-reject  { background: #dc3545; color: #fff; border: none; padding: .75rem 2.5rem; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.btn-reject:hover  { background: #bd2130; }
.iv-locked { background: #f7f7f7; border-left: 4px solid #aaa; border-radius: 8px; padding: .9rem 1.4rem; color: #555; font-size: .97rem; }
.no-items { color: #999; font-style: italic; padding: 1rem 0; }
@media (max-width: 600px) {
    .iv-card { padding: 1.2rem 1rem; }
    .iv-actions { flex-direction: column; align-items: stretch; }
    .btn-confirm, .btn-reject { text-align: center; }
}
/* Lightbox */
#iv-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.82); z-index: 9999; justify-content: center; align-items: center; }
#iv-lightbox.open { display: flex; }
#iv-lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 4px 30px rgba(0,0,0,.5); }
#iv-lightbox-close { position: absolute; top: 1rem; right: 1.5rem; font-size: 2.5rem; color: #fff; cursor: pointer; line-height: 1; }

/* Dashboard page styles */
.dashboard-stats .card { margin-bottom: 20px; }
.dashboard-stats .card h3 { margin-bottom: 10px; }
.dashboard-stats .card { font-size: 0.95em; line-height: 1.5; }
.dashboard-stats .card .status-row { display: flex; align-items: center; gap: 8px; }
.dashboard-stats .card .status-label { font-weight: 500; }
.dashboard-stats .card .status-value { font-weight: 600; }
.dashboard-payment-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dashboard-payment-row:last-child { margin-bottom: 0; }
.dashboard-payment-row strong { display: block; font-size: 1.05rem; }
.dashboard-payment-row .btn { white-space: nowrap; }
.dashboard-history-card { margin-bottom: 15px; }
.dashboard-history-filter-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.dashboard-history-filter-row select { width: auto; }
.dashboard-history-chart-container { position: relative; height: 300px; width: 100%; }

.tenant-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    justify-content: start;
    gap: 20px;
}

@media (max-width: 680px) {
    .tenant-properties-grid {
        grid-template-columns: 1fr;
    }
}

.tenant-property-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tenant-property-card.released {
    opacity: 0.68;
    border: 1px dashed var(--danger-color);
    position: relative;
}

.tenant-property-card.released h3,
.tenant-property-card.released strong {
    color: #6b7280;
}
.tenant-property-card.released .is-released {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--danger-color);
    color: var(--bg-color);
    padding: 3px 25px;
    font-size: 0.75rem;
    font-weight: 600;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.tenant-property-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tenant-property-address {
    font-size: .82em;
    margin: -6px 0 6px;
}

.btn-icon.tenant-nickname-edit {
    background: none;
    border: none;
    cursor: pointer;
    font-size: .85em;
    color: #1a73e8;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
    opacity: .6;
    flex-shrink: 0;
}

.btn-icon.tenant-nickname-edit:hover {
    opacity: 1;
    background: #e8f0fe;
}

.tenant-property-card-header {
    display: flex;
    justify-content: flex-start;
}

.tenant-property-landlord a {
    font-weight: 600;
}

.tenant-landlord-modal-content {
    width: min(720px, calc(100% - 24px));
}

.tenant-landlord-profile {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.tenant-landlord-properties-list {
    display: grid;
    gap: 8px;
}

.tenant-landlord-property-item {
    border: 1px solid #d7dce6;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8fafc;
}

.tenant-landlord-property-item.muted {
    background: #f3f4f6;
    color: #6b7280;
}

.tenant-landlord-property-item .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.88rem;
    margin-top: 4px;
}

.tenant-property-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.tenant-property-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tenant-property-meta span,
.tenant-property-bills span {
    display: block;
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.tenant-property-meta strong,
.tenant-property-bills strong {
    display: block;
    color: #202124;
}

.tenant-property-bills {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8f9fa;
}

.tenant-property-bills.has-unpaid {
    background: #fff4db;
}

/* Cookie Banner Styles */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
    background: #fff;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    animation: cb-slide-in 0.35s ease-out;
}
@keyframes cb-slide-in {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.cb-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 16px 24px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cb-text { flex: 1; min-width: 260px; }
.cb-text strong { display: block; font-size: 1em; margin-bottom: 4px; }
.cb-text p { margin: 0; font-size: 0.88em; color: var(--secondary-color); line-height: 1.5; }
.cb-link { color: var(--primary-color); text-decoration: underline; }
.cb-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.cb-btn-primary  { background: var(--primary-color); color:#fff; border:none; font-size:0.88em; }
.cb-btn-secondary { background: #f1f3f5; color: #333; border: 1px solid #dee2e6; font-size:0.88em; }
.cb-btn-outline  { background: transparent; color: var(--primary-color);
                   border: 1px solid var(--primary-color); font-size:0.88em; }
.cookie-category {
    border: 1px solid #dee2e6; border-radius: 8px;
    padding: 14px 16px; margin-bottom: 12px;
}
.cookie-cat-header {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-bottom: 8px;
}
.cookie-cat-header > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cookie-badge {
    display: inline-block; padding: 1px 9px; border-radius: 10px;
    font-size: 0.72em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.cookie-badge.always-on { background: #e8f5e9; color: #2e7d32; }
.cookie-badge.optional   { background: #e8eaf6; color: #3949ab; }
.cookie-cat-desc { margin: 0; font-size: 0.85em; color: var(--secondary-color); line-height: 1.55; }
.cookie-toggle {
    position: relative; display: inline-flex;
    align-items: center; cursor: pointer; flex-shrink: 0;
}
.cookie-toggle.disabled { opacity: 0.5; cursor: not-allowed; }
.cookie-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-slider {
    display: block; width: 44px; height: 24px; border-radius: 12px;
    background: #ccc; transition: background 0.2s;
    position: relative;
}
.toggle-slider::after {
    content: ''; position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    transition: transform 0.2s;
}
.cookie-toggle input:checked + .toggle-slider { background: var(--primary-color); }
.cookie-toggle input:checked + .toggle-slider::after { transform: translateX(20px); }
.cookie-footer-link {
    display: inline-block; font-size: 0.82em;
    color: var(--secondary-color); text-decoration: underline dotted;
    cursor: pointer; margin-top: 6px;
}
.cookie-footer-link:hover { color: var(--primary-color); }
#inventory-lightbox{
    display:none;position:fixed;inset:0;background:rgba(0,0,0,.82);z-index:9999;justify-content:center;align-items:center;
}
#inventory-lightbox-close{
    position:absolute;top:1rem;right:1.5rem;font-size:2.5rem;color:#fff;cursor:pointer;line-height:1;
}
#inventory-lightbox-img {
    max-width:92vw;max-height:90vh;border-radius:8px;box-shadow:0 4px 30px rgba(0,0,0,.5);
}
#inventory-lightbox-prev, #inventory-lightbox-next {
    position:absolute;top:50%;transform:translateY(-50%);font-size:2rem;background:none;border:none;color:#fff;cursor:pointer;
}
#inventory-lightbox-prev {
    left:2vw;
}
#inventory-lightbox-next {
    right:2vw;
}
.inventory-property-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.inventory-property-chip {
    border: 1px solid #c9d2e3;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
}
.inventory-property-chip.active {
    border-color: #1a73e8;
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 600;
}
.tenant-info-block {
    background: #f7f7fa;
    border-left: 4px solid #4bc0c0;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1.05em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.tenant-info-block strong { color: #1a73e8; }
.tenant-info-block>div{
    margin-bottom: 0.5rem;
}
.tenant-info-block .warning-banner,
.modal .warning-banner {
    background: #ffe0e0;
    color: #d9534f;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}
.tenant-info-block .warning-banner strong,
.modal .warning-banner strong {
    color: #d9534f;
}
#inventory-import-helper {
    background: #f4ebdd;
    border: 1px solid #dfcbac;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.inventory-sort-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.inventory-room-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.inventory-room-block {
    border: 1px solid #dbe4f1;
    border-radius: 10px;
    background: #f9fbff;
    overflow: hidden;
}

.inventory-room-header {
    padding: 10px 14px;
    border-bottom: 1px solid #e4ebf6;
    background: #eef4ff;
    color: #1f3f73;
    font-weight: 700;
}

.inventory-room-photo-card {
    margin: 12px;
    padding: 10px;
    border: 1px dashed #7a94c2;
    border-radius: 8px;
    background: #f3f8ff;
}

.inventory-room-photo-title {
    font-weight: 700;
    color: #1f3f73;
    margin-bottom: 8px;
}

.inventory-room-photo-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.inventory-room-table {
    margin-bottom: 0;
    background: #fff;
}

.inventory-room-table th {
    background: #f7f9fd;
}