:root {
    --blue: #1359c9;
    --blue-dark: #0b3f92;
    --blue-soft: #eaf2ff;
    --ink: #101828;
    --muted: #667085;
    --line: #d9e1ee;
    --line-soft: #edf1f7;
    --surface: #ffffff;
    --background: #f5f7fb;
    --success: #0f8a55;
    --error: #c62828;
    --shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background: var(--background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.login-page {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    background: #081120;
}

.login-bg {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(5, 10, 22, 0.82), rgba(5, 10, 22, 0.88)),
        url("/assets/img/render1.jpeg");
    background-size: cover;
    background-position: center;
}

.login-glow {
    position: fixed;
    width: 700px;
    height: 700px;
    top: -250px;
    right: -180px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 70%);
    filter: blur(20px);
}

.login-glow-secondary {
    width: 600px;
    height: 600px;
    top: auto;
    right: auto;
    bottom: -250px;
    left: -180px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 70%);
    filter: blur(30px);
}

.login-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: 100vh;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 460px;
    padding: 45px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
}

.login-logo {
    margin-bottom: 35px;
    text-align: center;
}

.login-logo img {
    width: 220px;
    max-width: 100%;
    margin: 0 auto;
}

.login-kicker {
    margin-bottom: 12px;
    color: #60a5fa;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-card h1 {
    margin: 0 0 14px;
    color: #ffffff;
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.12;
}

.login-subtitle {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    font-size: 15px;
    line-height: 1.7;
}

.login-form {
    display: grid;
    gap: 0;
}

.login-form-group {
    margin-bottom: 22px;
}

.login-form-group label {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.login-input {
    width: 100%;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    outline: none;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 15px;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.login-input:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login-extra {
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
}

.login-remember input {
    accent-color: #2563eb;
}

.login-extra a {
    color: #60a5fa;
    font-size: 14px;
}

.login-button {
    width: 100%;
    height: 60px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.45);
}

.login-footer {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 22px 18px;
    color: #ffffff;
    background: linear-gradient(180deg, #154fba 0%, #0a327a 100%);
    display: flex;
    flex-direction: column;
    gap: 26px;
    z-index: 30;
}

.app-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 42px;
    font-weight: 800;
    letter-spacing: 0;
}

.app-brand img {
    width: 170px;
    height: auto;
    object-fit: contain;
}

.app-brand span {
    font-size: 1.02rem;
}

.side-nav {
    display: grid;
    gap: 6px;
}

.side-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    transition: background 160ms ease, color 160ms ease;
}

.side-nav a span {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: inline-grid;
    place-items: center;
    color: #0d45a3;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.side-nav a:hover,
.side-nav a.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.support-box {
    margin-top: auto;
    padding: 15px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 5px;
}

.support-box strong {
    font-size: 0.9rem;
}

.support-box span,
.support-box a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
}

.support-box a {
    color: #ffffff;
    font-weight: 700;
    margin-top: 5px;
}

.app-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    min-height: 76px;
    padding: 14px 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar > div:nth-child(2) {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.topbar strong {
    color: var(--ink);
}

.topbar span {
    color: var(--muted);
    font-size: 0.86rem;
}

.menu-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    display: none;
    place-items: center;
    cursor: pointer;
    flex: 0 0 auto;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--blue-dark);
    display: block;
}

.menu-button span {
    position: relative;
}

.menu-button::before {
    transform: translateY(-6px);
}

.menu-button::after {
    transform: translateY(6px);
}

.top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.notice-dot {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff !important;
    background: #e53935;
    font-size: 0.78rem !important;
    font-weight: 800;
}

.logout-link {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--blue);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    font-size: 0.86rem;
    font-weight: 900;
}

.user-pill {
    min-width: 210px;
    padding: 6px 10px 6px 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #fbfcff;
}

.user-pill > span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #ffffff !important;
    background: var(--blue);
    font-weight: 800;
}

.user-pill div {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.user-pill strong,
.user-pill small {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-pill small {
    color: var(--muted);
}

.content {
    width: min(100%, 1260px);
    margin: 0 auto;
    padding: 28px;
    flex: 1;
}

.app-footer {
    width: min(100%, 1260px);
    margin: 0 auto;
    padding: 0 28px 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 0.82rem;
}

.page-heading {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.page-heading.compact {
    align-items: center;
}

.page-heading p {
    margin: 0 0 5px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-heading h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.45rem, 2vw, 2.1rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.page-heading span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    max-width: 720px;
}

.primary-action {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(19, 89, 201, 0.22);
}

.primary-action:hover {
    background: var(--blue-dark);
}

.primary-action:disabled,
.login-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.primary-action.full {
    width: 100%;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.metric-tile,
.panel-card,
.booking-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.metric-tile {
    min-height: 132px;
    padding: 18px;
    display: grid;
    align-content: space-between;
    gap: 8px;
}

.metric-tile span,
.card-heading span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.metric-tile strong {
    color: var(--ink);
    font-size: 1.55rem;
    line-height: 1.1;
}

.metric-tile p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 18px;
}

.dashboard-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-card,
.booking-card {
    padding: 20px;
}

.card-heading {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.card-heading h2 {
    margin: 3px 0 0;
    font-size: 1.12rem;
    line-height: 1.2;
}

.card-heading a {
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 800;
}

.property-overview {
    grid-row: span 2;
}

.property-overview > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    object-fit: cover;
}

.property-facts {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.property-facts span {
    min-height: 68px;
    padding: 12px;
    border-radius: var(--radius);
    background: #f7f9fd;
    color: var(--muted);
    display: grid;
    align-content: center;
    gap: 2px;
    font-size: 0.84rem;
}

.property-facts strong {
    color: var(--ink);
    font-size: 1rem;
}

.reservation-list,
.document-list,
.summary-lines,
.stack-form {
    display: grid;
    gap: 10px;
}

.reservation-item,
.document-list > div,
.summary-lines > div {
    min-height: 58px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #fbfcff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.reservation-item div,
.document-list > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.reservation-item span,
.document-list span,
.message-preview p,
.soft-copy,
.hint {
    color: var(--muted);
    font-size: 0.9rem;
}

.reservation-item em,
.table-row em {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.empty-panel {
    min-height: 118px;
    padding: 18px;
    border-radius: var(--radius);
    background: #f7f9fd;
    display: grid;
    place-content: center;
    gap: 5px;
    color: var(--muted);
}

.empty-panel strong {
    color: var(--ink);
}

.message-preview p {
    margin: 8px 0 0;
}

.success-banner,
.error-banner,
.info-banner {
    margin-bottom: 16px;
    padding: 13px 16px;
    border-radius: var(--radius);
    font-weight: 800;
}

.success-banner {
    color: var(--success);
    background: #e9f8f0;
    border: 1px solid #bdebd2;
}

.error-banner {
    color: var(--error);
    background: #fff0f0;
    border: 1px solid #ffd0d0;
}

.info-banner {
    color: var(--blue-dark);
    background: var(--blue-soft);
    border: 1px solid #cfe0ff;
}

.reservation-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.booking-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.15fr) minmax(300px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.search-field,
.date-fields label,
.notes-field,
.stack-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 800;
}

.search-field span,
.date-fields span,
.notes-field span,
.stack-form span {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
    padding: 10px 12px;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(19, 89, 201, 0.12);
}

.property-select-list {
    margin-top: 12px;
    display: grid;
    gap: 9px;
}

.property-option {
    width: 100%;
    min-height: 86px;
    padding: 9px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #ffffff;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    text-align: left;
    cursor: pointer;
}

.property-option:hover,
.property-option.is-selected {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.property-option img {
    width: 84px;
    height: 68px;
    border-radius: 7px;
    object-fit: cover;
}

.property-option > span {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 2px;
}

.property-option strong {
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-option small {
    color: var(--muted);
    font-size: 0.82rem;
}

.calendar-widget {
    padding: 4px;
}

.calendar-title {
    margin-bottom: 14px;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 900;
}

.calendar-title a {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--blue);
    background: #ffffff;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
}

.calendar-title span {
    text-align: center;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.calendar-weekdays span {
    min-height: 28px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.calendar-grid button,
.calendar-empty {
    width: 100%;
    aspect-ratio: 1;
    min-height: 42px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    font-weight: 700;
}

.calendar-grid button {
    cursor: pointer;
}

.calendar-grid button:hover {
    background: var(--blue-soft);
}

.calendar-grid button.is-disabled,
.calendar-grid button:disabled {
    color: #98a2b3;
    background: #f2f4f7;
    cursor: not-allowed;
}

.calendar-grid button.is-start,
.calendar-grid button.is-end {
    color: #ffffff;
    background: var(--blue);
}

.calendar-grid button.is-range {
    color: var(--blue-dark);
    background: var(--blue-soft);
}

.calendar-legend {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 0.82rem;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.calendar-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
}

.calendar-legend span:last-child i {
    background: #98a2b3;
}

.date-fields {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.summary-card {
    position: sticky;
    top: 96px;
}

.summary-card > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    object-fit: cover;
    margin-bottom: 14px;
}

.summary-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.summary-card > p {
    margin: 4px 0 14px;
    color: var(--muted);
}

.summary-lines {
    margin-bottom: 14px;
}

.summary-lines > div {
    min-height: 46px;
}

.summary-lines span {
    color: var(--muted);
}

.summary-lines strong {
    text-align: right;
}

.summary-lines .total {
    border-color: #cfe0ff;
    background: var(--blue-soft);
}

.summary-lines .total strong {
    color: var(--blue);
}

.notes-field {
    margin-bottom: 14px;
}

.hint {
    margin: 12px 0 0;
}

.table-list {
    overflow-x: auto;
}

.table-row {
    min-width: 720px;
    display: grid;
    grid-template-columns: 1.4fr 0.85fr 0.85fr 0.55fr 0.75fr;
    gap: 12px;
    align-items: center;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line-soft);
}

.table-row:last-child {
    border-bottom: 0;
}

.table-head {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f7f9fd;
    border-radius: var(--radius);
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.document-grid article {
    min-height: 170px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #fbfcff;
    display: grid;
    align-content: space-between;
    gap: 10px;
}

.document-grid span {
    color: var(--muted);
    font-size: 0.9rem;
}

.document-grid button {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--blue);
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.document-grid button:disabled {
    color: var(--muted);
    background: #f2f4f7;
    cursor: not-allowed;
}

.document-action {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--blue);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 18px;
    margin-bottom: 18px;
}

.clabe-box {
    padding: 16px;
    border: 1px solid #cfe0ff;
    border-radius: var(--radius);
    background: var(--blue-soft);
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.clabe-box span {
    color: var(--blue-dark);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.clabe-box strong {
    color: var(--ink);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    letter-spacing: 0;
    word-break: break-all;
}

.clabe-box button {
    min-height: 40px;
    border: 0;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--blue);
    font-weight: 900;
    cursor: pointer;
}

.installment-row {
    grid-template-columns: 1.3fr 0.8fr 0.8fr 0.7fr;
}

.message-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
}

.soft-copy {
    margin: 0;
}

@media (max-width: 1180px) {
    .metric-row,
    .reservation-status-grid,
    .property-facts,
    .document-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .dashboard-grid.two,
    .payment-layout,
    .booking-layout {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(82vw, 310px);
        transform: translateX(-105%);
        transition: transform 180ms ease;
        box-shadow: 18px 0 40px rgba(15, 23, 42, 0.22);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .menu-button {
        display: grid;
    }

    .topbar {
        min-height: 66px;
        padding: 12px 16px;
    }

    .topbar > div:nth-child(2) span {
        display: none;
    }

    .user-pill {
        min-width: 0;
        padding: 4px;
        border: 0;
        background: transparent;
    }

    .user-pill div,
    .notice-dot,
    .logout-link {
        display: none;
    }

    .content {
        padding: 20px 16px;
    }

    .app-footer {
        padding: 0 16px 20px;
        flex-direction: column;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .metric-row,
    .reservation-status-grid,
    .message-layout {
        grid-template-columns: 1fr;
    }

    .booking-card,
    .panel-card,
    .metric-tile {
        padding: 16px;
    }

    .calendar-grid button,
    .calendar-empty {
        min-height: 36px;
    }
}

@media (max-width: 520px) {
    .login-wrapper {
        padding: 18px;
    }

    .login-card {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .login-card h1 {
        font-size: 30px;
    }

    .login-logo img {
        width: 180px;
    }

    .login-extra {
        align-items: flex-start;
        flex-direction: column;
    }

    .content {
        padding-inline: 12px;
    }

    .topbar > div:nth-child(2) strong {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .metric-row,
    .property-facts,
    .document-grid {
        grid-template-columns: 1fr;
    }

    .property-option {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .property-option img {
        width: 72px;
        height: 62px;
    }

    .reservation-item,
    .document-list > div,
    .summary-lines > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-lines strong {
        text-align: left;
    }

    .primary-action {
        width: 100%;
    }
}
