/* Estilos básicos para o sistema de hotel */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.app-navbar {
    position: relative;
    z-index: 6500;
    background: linear-gradient(90deg, #0f4aae 0%, #1154c4 100%);
    box-shadow: 0 6px 18px rgba(9, 45, 110, 0.16);
    padding: 0;
}

/* Mantem os menus da conta e de novidades acima dos cabecalhos fixos do calendario. */
.app-navbar__right .dropdown-menu {
    z-index: 6510;
}

.app-navbar__inner {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: nowrap;
}

.app-navbar__left,
.app-navbar__right,
.app-navbar__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.app-navbar__toggle {
    border: none;
    box-shadow: none !important;
    padding: 0.35rem 0.55rem;
}

.app-navbar__brand {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.app-navbar__brand:hover {
    color: #fff;
}

.app-navbar__brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6cc04a, #4c9f35);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18);
    overflow: hidden;
}

.app-navbar__brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-navbar__brand-name {
    font-size: 0.95rem;
    white-space: nowrap;
}

.app-navbar__search {
    flex: 1;
    max-width: 520px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 999px;
    padding: 0 0.8rem;
    align-items: center;
    gap: 0.65rem;
}

.app-navbar__search i {
    color: #5f6b82;
    font-size: 1rem;
}

.app-navbar__search .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    color: #2e3c57;
}

.app-navbar__search .form-control::placeholder {
    color: #707b90;
}

.reservation-search-host {
    position: relative;
}

.reservation-search-results {
    position: absolute;
    z-index: 12000;
    top: calc(100% + 10px);
    left: 0;
    width: min(520px, 92vw);
    overflow: hidden;
    border: 1px solid #dfe5ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(20, 36, 67, .2);
    color: #25344c;
    text-align: left;
}

.reservation-search-results[hidden] {
    display: none !important;
}

.reservation-search-heading {
    padding: 10px 13px;
    border-bottom: 1px solid #edf0f4;
    background: #f7f9fc;
    color: #758196;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.reservation-search-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border-bottom: 1px solid #edf0f4;
    color: #25344c;
    text-decoration: none;
}

.reservation-search-item:hover,
.reservation-search-item.active {
    background: #edf5ff;
    color: #173f80;
}

.reservation-search-room {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: #e9f2ff;
    color: #1762c5;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
}

.reservation-search-body,
.reservation-search-body strong,
.reservation-search-body small {
    display: block;
    min-width: 0;
}

.reservation-search-body strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reservation-search-body small {
    margin-top: 2px;
    overflow: hidden;
    color: #778399;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reservation-search-status {
    padding: 4px 7px;
    border-radius: 999px;
    background: #eef1f5;
    color: #617087;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.reservation-search-status.confirmed,
.reservation-search-status.checked-in {
    background: #e7f7ef;
    color: #087447;
}

.reservation-search-status.pending {
    background: #fff3dd;
    color: #986000;
}

.reservation-search-status.cancelled {
    background: #fdecef;
    color: #ad3440;
}

.reservation-search-all {
    width: 100%;
    padding: 11px;
    border: 0;
    background: #fff;
    color: #1762c5;
    font-size: 11px;
    font-weight: 800;
}

.reservation-search-all:hover {
    background: #f7f9fc;
}

.app-icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
    transition: 0.2s ease;
    font-size: 0.92rem;
}

.app-icon-btn:hover,
.app-user-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.app-user-btn::after {
    display: none;
}

.app-navbar__menu {
    background: rgba(7, 35, 96, 0.22);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.app-navbar__links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem;
    padding: 0.4rem 0 0.5rem;
}

.app-navbar__links .nav-link {
    color: rgba(255,255,255,0.82);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.app-navbar__links .nav-link:hover,
.app-navbar__links .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.app-main {
    min-height: calc(100vh - 150px);
}

/* Cabeçalho unificado das telas principais. */
.unified-shell-page .app-navbar.navbar {
    display: block !important;
}

.unified-shell-page .main-header,
.unified-shell-page .sidebar,
.unified-shell-page .sidebar-overlay {
    display: none !important;
}

.unified-shell-page .main-content {
    margin-top: 0 !important;
}

/* As mensagens flutuam sem deslocar o conteúdo da página. */
.app-toast-stack {
    position: fixed;
    z-index: 9000;
    top: 74px;
    left: 50%;
    width: min(820px, calc(100vw - 32px));
    transform: translateX(-50%);
    pointer-events: none;
}

.unified-shell-page .app-toast-stack {
    top: 126px;
}

.app-toast-stack .alert {
    margin: 0 0 0.75rem;
    pointer-events: auto;
}

/* Estilos para o calendário */
.calendar-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.calendar-grid {
    overflow-x: auto;
    overflow-y: auto;
}

/* Responsividade básica */
@media (max-width: 768px) {
    .calendar-container {
        margin: 10px;
        border-radius: 4px;
    }

    .app-navbar__inner {
        min-height: 58px;
    }

    .app-navbar__brand-name {
        font-size: 0.9rem;
    }

    .app-navbar__brand-badge {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .app-navbar__right {
        gap: 0.35rem;
    }

    .app-icon-btn {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .app-navbar__links {
        flex-direction: column;
        padding-bottom: 0.7rem;
    }

    .unified-shell-page .app-toast-stack {
        top: 116px;
    }
}

/* Estilos para botões */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Estilos para formulários */
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Utilitários */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-3 {
    margin-top: 1rem;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

/* Loading spinner */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Seletor operacional de hospedagem para lançamento de consumo */
.consumption-launcher-overlay{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:20px;background:rgba(10,24,48,.58);backdrop-filter:blur(3px)}
.consumption-launcher{width:min(100%,480px);overflow:hidden;border:1px solid rgba(255,255,255,.5);border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(8,25,55,.28);color:#102349}
.consumption-launcher header{display:grid;grid-template-columns:auto 1fr auto;gap:13px;padding:22px;border-bottom:1px solid #e7ebf1}
.consumption-launcher header>span{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#eaf2ff;color:#1768d4}
.consumption-launcher header small{display:block;color:#718097;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.consumption-launcher header h2{margin:4px 0 2px;font-size:20px;font-weight:800}.consumption-launcher header p{margin:0;color:#738095;font-size:12px}
.consumption-launcher header button{width:34px;height:34px;border:1px solid #dde4ed;border-radius:9px;background:#fff;color:#536277}
.consumption-launcher-body{padding:22px}.consumption-launcher-body label{display:block;margin-bottom:7px;color:#34445c;font-size:12px;font-weight:800}
.consumption-launcher-body select{width:100%;height:46px;padding:0 12px;border:1px solid #ced7e3;border-radius:10px;background:#fff;color:#273a56}
.consumption-launcher-empty{margin-top:12px;padding:11px;border-radius:9px;background:#fff8e8;color:#775716;font-size:12px}
.consumption-launcher footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid #e7ebf1;background:#f8fafc}
.consumption-launcher footer button{padding:10px 16px;border-radius:10px;font-weight:800}.launcher-cancel{border:1px solid #d7dfe9;background:#fff;color:#536277}.launcher-continue{border:0;background:#1768d4;color:#fff}.launcher-continue:disabled{background:#c8d2df}.launcher-continue i{margin-right:7px}
/* Central de atualizacoes do produto */
.updates-center__button{position:relative}.updates-center__badge{position:absolute;right:-4px;top:-5px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border:2px solid #0f55b9;border-radius:999px;background:#f04b3f;color:#fff;font-size:9px;font-weight:800}
.updates-center__menu{width:min(390px,calc(100vw - 24px));padding:0;border:1px solid #dce4ee;border-radius:14px;overflow:hidden;box-shadow:0 20px 50px rgba(15,35,70,.2)}.updates-center__header{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;background:#f5f9ff;border-bottom:1px solid #e4ebf3}.updates-center__header strong,.updates-center__header span{display:block}.updates-center__header strong{color:#16233b}.updates-center__header span{margin-top:2px;color:#718096;font-size:11px}.updates-center__header i{color:#1669d4}.updates-center__item{padding:14px 18px;border-bottom:1px solid #edf1f5}.updates-center__item:last-child{border-bottom:0}.updates-center__item>div{display:flex;justify-content:space-between;gap:12px}.updates-center__item strong{font-size:13px;color:#23324a}.updates-center__item time{color:#8491a3;font-size:10px;white-space:nowrap}.updates-center__item ul{margin:8px 0 0;padding-left:17px;color:#5f6f83;font-size:11px;line-height:1.55}
.updates-center__empty{display:flex;align-items:center;justify-content:center;gap:8px;padding:24px;color:#718096;font-size:12px}.updates-center__empty i{color:#2b9b61}
