:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    --pointer-x: 50%;
    --pointer-y: 40%;
    background: #f6f2f7;
    color: #24202a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    line-height: 1.35;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.64), transparent 42%),
        linear-gradient(155deg, rgba(114, 86, 129, 0.18), transparent 35%),
        linear-gradient(25deg, rgba(121, 143, 108, 0.22), transparent 38%),
        #f6f2f7;
}

.page::before,
.page::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.page::before {
    background:
        linear-gradient(135deg, transparent 0 16%, rgba(255, 255, 255, 0.54) 16% 26%, transparent 26% 100%),
        linear-gradient(45deg, transparent 0 54%, rgba(125, 91, 145, 0.14) 54% 62%, transparent 62% 100%),
        repeating-linear-gradient(90deg, rgba(114, 86, 129, 0.06) 0 1px, transparent 1px 68px),
        repeating-linear-gradient(0deg, transparent 0 62px, rgba(114, 86, 129, 0.035) 62px 63px);
    transform: translate3d(calc((var(--pointer-x) - 50%) * 0.025), calc((var(--pointer-y) - 50%) * 0.025), 0);
    transition: transform 0.18s ease-out;
    animation: backgroundDrift 18s ease-in-out infinite alternate;
}

.page::after {
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.72), transparent 23%),
        radial-gradient(circle at 18% 22%, rgba(114, 86, 129, 0.16), transparent 28%),
        radial-gradient(circle at 84% 74%, rgba(121, 143, 108, 0.18), transparent 25%),
        linear-gradient(180deg, transparent 0 72%, rgba(121, 143, 108, 0.16) 72% 100%);
    opacity: 0.86;
    animation: lightPulse 7s ease-in-out infinite alternate;
}
.calendar-day {
    min-height: 105px;
    padding: 8px;
    position: relative;
}

.calendar-date-no {
    font-weight: 700;
    color: #3a2446;
}

.capacity-info {
    margin-top: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 15px;
    background: #f4eef7;
    color: #3a2446;
}

.capacity-info strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.capacity-info small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
}

.calendar-day.inventory-day.status-tentative {
    background: #fff1dd;
    border: 2px solid #f39c34;
}

.calendar-day.inventory-day.status-tentative .capacity-info {
    background: #f39c34;
    color: #ffffff;
}

.calendar-day.inventory-day.status-booked {
    background: #fff0f0;
    border: 2px solid #d93025;
}

.calendar-day.inventory-day.status-booked .capacity-info {
    background: #d93025;
    color: #ffffff;
}

.calendar-day.inventory-day.status-owner {
    background: #fff8e8;
    border: 2px solid #d6a84f;
}

.calendar-day.inventory-day.status-owner .capacity-info {
    background: #d6a84f;
    color: #2f2312;
}

.calendar-day.inventory-day.status-maintenance {
    background: #f8ecfb;
    border: 2px solid #b86ac8;
}

.calendar-day.inventory-day.status-maintenance .capacity-info {
    background: #b86ac8;
    color: #ffffff;
}

.calendar-day.empty-day .capacity-info {
    display: none;
}
@keyframes backgroundDrift {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }

    to {
        background-position: 42px 18px, -30px 24px, 34px 0, 0 24px;
    }
}

@keyframes lightPulse {
    from {
        opacity: 0.72;
    }

    to {
        opacity: 0.94;
    }
}

@keyframes dashboardCardIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-panel {
    position: relative;
    width: min(1040px, 100%);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #a98bb8;
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 18px 48px rgba(51, 42, 60, 0.12);
    backdrop-filter: blur(8px);
}

.booking-panel::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, #725681, #9d7aac, #798f6c);
    content: "";
}

.brand {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee7f2;
    padding-bottom: 12px;
}

.brand p {
    margin: 0;
    color: #725681;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 13px;
}

.brand h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.05;
}

.stay-times {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.stay-times span {
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 6px 10px;
    background: #ffffff;
    color: #4f3d5a;
    font-size: 13px;
    font-weight: 700;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.stay-times span:hover {
    border-color: #bfa7cb;
    background: #fbf8fd;
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 700;
}

.alert.success {
    background: #e7f7ed;
    color: #1d6d3b;
}

.alert.error {
    background: #fdebea;
    color: #9b2720;
}

.availability-status {
    border: 1px solid #ded6e3;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fbf8fd;
    color: #4f3d5a;
    font-size: 13px;
    font-weight: 800;
}

.availability-status.is-success {
    border-color: #b7dfc6;
    background: #e7f7ed;
    color: #1d6d3b;
}

.availability-status.is-error {
    border-color: #efbbb8;
    background: #fdebea;
    color: #9b2720;
}

.availability-status.is-checking {
    border-color: #d8cfdf;
    background: #fbf8fd;
    color: #6d6472;
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.guest-count-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.guest-count-row label {
    grid-template-rows: auto auto 16px;
    gap: 7px;
}

label {
    display: grid;
    gap: 6px;
    color: #3d3545;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d8cfdf;
    border-radius: 6px;
    padding: 9px 12px;
    font: inherit;
    font-weight: 500;
    color: #24202a;
    background: #ffffff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

input:hover,
select:hover {
    border-color: #bfa7cb;
    background: #fffcff;
}

input:focus,
select:focus {
    outline: 3px solid rgba(114, 86, 129, 0.16);
    border-color: #725681;
    box-shadow: 0 8px 18px rgba(114, 86, 129, 0.1);
    transform: translateY(-1px);
}

input[readonly] {
    background: #fbf9fc;
    color: #24202a;
    font-weight: 400;
}

.field-note,
.full .field-note {
    color: #7a6f82;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.booking-amount-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
    align-items: center;
    border: 1px solid #ded6e3;
    border-radius: 8px;
    padding: 12px;
    background: #fbf8fd;
}

.booking-lower-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 14px;
    align-items: start;
}

.booking-amount-preview span {
    color: #4f3d5a;
    font-size: 13px;
    font-weight: 800;
}

.booking-amount-preview strong {
    color: #24202a;
    font-size: 22px;
    line-height: 1;
}

.booking-amount-preview small {
    grid-column: 1 / -1;
    color: #7a6f82;
    font-size: 12px;
    font-weight: 600;
}

.pricing-option-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pricing-option-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ded6e3;
    border-radius: 6px;
    padding: 7px 9px;
    background: #ffffff;
    color: #3d3545;
    font-size: 13px;
    font-weight: 700;
}

.pricing-option-row input {
    width: 16px;
    min-height: 16px;
    accent-color: #725681;
}

.amount-breakdown {
    grid-column: 1 / -1;
    display: grid;
    gap: 5px;
    margin: 2px 0 0;
}

.amount-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #ebe4ef;
    padding-top: 5px;
}

.amount-breakdown dt,
.amount-breakdown dd {
    margin: 0;
    color: #4f3d5a;
    font-size: 13px;
    font-weight: 700;
}

.full {
    grid-column: 1 / -1;
}

.full span {
    color: #6d6472;
    font-size: 13px;
    font-weight: 400;
}

.full.booking-amount-preview span {
    color: #4f3d5a;
    font-weight: 800;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.document-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    background: transparent;
}

.documents-group {
    display: grid;
    gap: 10px;
    border: 1px solid #ded6e3;
    border-radius: 8px;
    padding: 12px;
    background: #fbf9fc;
}

.documents-group p {
    margin: 0;
    color: #4f3d5a;
    font-weight: 700;
}

.adult-documents {
    display: grid;
    gap: 10px;
}

.adult-document-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    border: 1px solid #ded6e3;
    border-radius: 8px;
    padding: 9px 12px;
    background: #ffffff;
    color: #4f3d5a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.adult-document-toggle:hover,
.adult-document-toggle.is-open {
    border-color: #bfa7cb;
    background: #f2edf5;
    box-shadow: 0 8px 18px rgba(114, 86, 129, 0.1);
    transform: translateY(-1px);
}

.adult-document-toggle::after {
    content: "+";
    font-size: 18px;
    line-height: 1;
}

.adult-document-toggle.is-open::after {
    content: "-";
}

.adult-document-panel {
    display: grid;
    gap: 10px;
}

.adult-document-panel[hidden] {
    display: none;
}

.document-row {
    display: grid;
    grid-template-columns: 150px minmax(220px, 1fr) minmax(120px, auto);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #ded6e3;
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.document-row:hover {
    border-color: #c8b5d3;
    box-shadow: 0 10px 22px rgba(51, 42, 60, 0.08);
}

.document-row-title {
    font-weight: 700;
}

.document-file-field {
    display: grid;
    min-width: 0;
}

.terms-check {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ded6e3;
    border-radius: 8px;
    padding: 10px 12px;
    background: #ffffff;
    font-weight: 700;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.terms-check:hover {
    border-color: #bfa7cb;
    background: #fbf9fc;
}

.terms-check input {
    width: 18px;
    min-height: 18px;
}

.terms-check span {
    color: #3d3545;
}

.document-name {
    display: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-name.has-file {
    display: inline;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    min-width: 86px;
    border-radius: 6px;
    background: #725681;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.upload-button:hover {
    background: #60476e;
    box-shadow: 0 10px 20px rgba(96, 71, 110, 0.18);
    transform: translateY(-1px);
}

button {
    grid-column: 1 / -1;
    min-height: 52px;
    border: 0;
    border-radius: 6px;
    background: #725681;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.booking-form > button[type="submit"] {
    margin-top: 0;
    background: #725681;
    box-shadow: 0 12px 26px rgba(96, 71, 110, 0.2);
}

button:hover {
    background: #60476e;
    box-shadow: 0 12px 28px rgba(96, 71, 110, 0.22);
    transform: translateY(-1px);
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 6px;
    padding: 10px 16px;
    background: #725681;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.admin-create-panel {
    margin-top: 16px;
    border: 1px solid #ded6e3;
    border-radius: 8px;
    padding: 12px;
    background: #fbf8fd;
}

.admin-create-panel summary {
    color: #4f3d5a;
    font-weight: 800;
    cursor: pointer;
}

.admin-create-panel .single-form {
    margin-top: 12px;
}

.button-link:hover {
    background: #60476e;
}

.secondary-link {
    background: #f2edf5;
    color: #4f3d5a;
}

.secondary-link:hover {
    background: #e5dbea;
}

.success-actions {
    display: grid;
    gap: 16px;
}

.success-actions p {
    margin: 0;
    color: #3d3545;
    font-size: 18px;
}

.login-panel {
    width: min(520px, 100%);
}

.single-form {
    grid-template-columns: 1fr;
}

.admin-layout {
    position: relative;
    isolation: isolate;
    overflow: visible;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.5), transparent 36%),
        linear-gradient(145deg, #eee7f2 0%, #e5dce9 48%, #f4eff6 100%);
}

.admin-layout::before,
.admin-layout::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.admin-layout::before {
    background:
        linear-gradient(135deg, transparent 0 18%, rgba(255, 255, 255, 0.38) 18% 28%, transparent 28% 100%),
        linear-gradient(45deg, transparent 0 62%, rgba(114, 86, 129, 0.12) 62% 70%, transparent 70% 100%),
        repeating-linear-gradient(90deg, rgba(114, 86, 129, 0.04) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(0deg, rgba(114, 86, 129, 0.03) 0 1px, transparent 1px 72px);
}

.admin-layout::after {
    background:
        radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.45), transparent 24%),
        radial-gradient(circle at 38% 74%, rgba(114, 86, 129, 0.11), transparent 30%);
    opacity: 0.85;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto;
    padding: 24px 18px;
    background: linear-gradient(180deg, #f0e7f4 0%, #e8dced 100%);
    color: #2a2130;
    border-right: 1px solid #e6ddec;
    box-shadow: 12px 0 32px rgba(66, 50, 76, 0.08);
    backdrop-filter: blur(12px);
}

.sidebar-brand {
    display: grid;
    gap: 6px;
    padding: 0 8px 24px;
    border-bottom: 1px solid #e7ddeb;
}

.sidebar-brand span {
    color: #725681;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar-brand strong {
    font-size: 24px;
    line-height: 1.15;
}

.sidebar-brand small {
    color: #6d6472;
    font-weight: 700;
}

.sidebar-menu {
    display: grid;
    gap: 8px;
    padding: 22px 0;
}

.sidebar-menu a,
.sidebar-menu button,
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 10px 12px;
    background: transparent;
    color: #4a3a54;
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sidebar-menu .menu-icon,
.sidebar-logout .menu-icon {
    display: inline-grid;
    flex: 0 0 28px;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(114, 86, 129, 0.12);
    color: #725681;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-menu .menu-icon svg,
.sidebar-logout .menu-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.sidebar-menu a:hover .menu-icon,
.sidebar-menu button:hover .menu-icon,
.sidebar-logout:hover .menu-icon,
.sidebar-menu .active .menu-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: scale(1.08);
}

.sidebar-menu a:hover,
.sidebar-menu button:hover,
.sidebar-logout:hover,
.sidebar-menu .active {
    background: #725681;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(114, 86, 129, 0.2);
    transform: translateX(3px);
}

.sidebar-logout {
    margin-top: auto;
    background: #f4eef7;
}

.dashboard-page {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 30px;
}

.mobile-admin-bar {
    display: none;
}

.mobile-booking-list {
    display: grid;
    gap: 14px;
    padding: 16px;
    align-items: stretch;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8dfed;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-actions .button-link,
.dashboard-actions a {
    box-shadow: 0 10px 24px rgba(114, 86, 129, 0.12);
    transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dashboard-actions .button-link:hover,
.dashboard-actions a:hover {
    box-shadow: 0 16px 34px rgba(114, 86, 129, 0.22);
    transform: translateY(-2px);
}

.dashboard-header .brand {
    margin-bottom: 0;
}

.dashboard-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.dashboard-logo {
    display: inline-grid;
    flex: 0 0 54px;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(114, 86, 129, 0.28);
    border-radius: 8px;
    background: linear-gradient(145deg, #725681 0%, #9d7aac 58%, #798f6c 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 14px 28px rgba(114, 86, 129, 0.2);
}

.dashboard-today {
    overflow: hidden;
    width: auto;
    min-width: 190px;
    border: 1px solid #e3d8e8;
    border-radius: 8px;
    margin: 0;
    padding: 11px 0;
    background: rgba(255, 255, 255, 0.76);
    color: #31243a;
    box-shadow: 0 10px 24px rgba(51, 42, 60, 0.08);
}

.dashboard-date-marquee {
    display: flex;
    justify-content: center;
    width: 100%;
}

.dashboard-date-marquee span {
    padding: 0 18px;
    color: #725681;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.summary-item {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #fdfbfe 100%);
    border: 1px solid #ded6e3;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 16px 38px rgba(51, 42, 60, 0.09);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.summary-item::after {
    position: absolute;
    inset: auto 14px 12px auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(114, 86, 129, 0.08);
    content: "";
    transition: background 0.18s ease, transform 0.18s ease;
}

.summary-item:hover {
    border-color: #c8b5d3;
    box-shadow: 0 22px 48px rgba(51, 42, 60, 0.14);
    transform: translateY(-3px);
}

.summary-item:hover::after {
    background: rgba(114, 86, 129, 0.14);
    transform: scale(1.08);
}

.summary-item span {
    color: #6d6472;
    font-size: 13px;
    font-weight: 700;
}

.summary-item strong {
    color: #24202a;
    font-size: 30px;
    line-height: 1;
}

.table-panel {
    margin: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ded6e3;
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(51, 42, 60, 0.12);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.is-hidden {
    display: none;
}

[hidden] {
    display: none !important;
}

.calendar-panel.is-hidden,
.table-panel.is-hidden,
.pricing-panel.is-hidden,
.villa-details-panel.is-hidden,
.document-management-panel.is-hidden {
    display: none;
}

.pricing-panel,
.villa-details-panel,
.document-management-panel {
    border: 1px solid #ded6e3;
    border-radius: 6px;
    margin-bottom: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(45, 38, 50, 0.08);
}

.document-management-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.document-management-toolbar {
    margin-bottom: 16px;
}

.document-management-toolbar label {
    display: grid;
    gap: 8px;
    color: #24202a;
    font-size: 13px;
    font-weight: 700;
}

.document-management-toolbar input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d7c8df;
    border-radius: 6px;
    padding: 10px 12px;
    background: #ffffff;
    color: #24202a;
    font: inherit;
}

.document-management-card {
    border: 1px solid #d4d0d7;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
}

.pricing-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5dce9;
    padding-bottom: 14px;
}

.pricing-header p,
.pricing-header h2 {
    margin: 0;
}

.pricing-header p {
    color: #725681;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-header h2 {
    margin-top: 4px;
    color: #2a2130;
    font-size: 24px;
}

.pricing-header span {
    color: #6d6472;
    font-size: 14px;
    font-weight: 700;
}

.pricing-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.pricing-form label {
    display: grid;
    gap: 8px;
    color: #2a2130;
    font-size: 13px;
    font-weight: 700;
}

.pricing-form input {
    min-height: 44px;
    border: 1px solid #d7cadd;
    border-radius: 6px;
    padding: 10px 12px;
    background: #ffffff;
    color: #26202c;
    font: inherit;
}

.pricing-form input:focus {
    outline: 2px solid rgba(114, 86, 129, 0.22);
    border-color: #725681;
}

.pricing-form button {
    grid-column: 1 / -1;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    padding: 10px 18px;
    background: #725681;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.pricing-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

.pricing-banner-actions button {
    min-height: 42px;
    border: 1px solid #725681;
    border-radius: 6px;
    padding: 10px 16px;
    background: #ffffff;
    color: #725681;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.villa-rate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.villa-rate-actions button {
    min-height: 42px;
    border: 1px solid #725681;
    border-radius: 6px;
    padding: 10px 16px;
    background: #ffffff;
    color: #725681;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.booking-image-button {
    width: 100%;
    min-height: 42px;
    border: 1px solid #725681;
    border-radius: 6px;
    padding: 10px 14px;
    background: #725681;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.table-image-button {
    width: auto;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
}

.villa-print-card {
    display: block;
    width: min(100%, 580px);
    margin: 16px auto 0;
    overflow: hidden;
    border: 1px solid #d8c8e0;
    border-radius: 8px;
    background: #f7effb;
    box-shadow: 0 18px 40px rgba(65, 50, 75, 0.12);
}

.villa-print-photo {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #725681;
}

.villa-print-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.villa-print-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(36, 20, 44, 0.04), rgba(36, 20, 44, 0.18));
    pointer-events: none;
}

.villa-print-logo {
    position: absolute;
    top: 22px;
    left: 22px;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: #725681;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(43, 32, 52, 0.24);
}

.villa-print-body {
    position: relative;
    padding: 20px 38px 24px;
    background:
        radial-gradient(circle at 0 0, rgba(132, 86, 167, 0.16), transparent 28%),
        radial-gradient(circle at 100% 58%, rgba(132, 86, 167, 0.14), transparent 26%),
        linear-gradient(180deg, #fbf5ff, #f3e5fa);
    text-align: center;
}

.villa-print-body::before,
.villa-print-body::after {
    content: "";
    position: absolute;
    width: 86px;
    height: 150px;
    opacity: 0.62;
    background:
        radial-gradient(circle, #9160b0 0 4px, transparent 5px) 0 0 / 22px 22px,
        linear-gradient(110deg, transparent 46%, #7d5a8f 47% 49%, transparent 50%);
}

.villa-print-body::before {
    left: 12px;
    bottom: 20px;
    transform: rotate(-8deg);
}

.villa-print-body::after {
    right: 12px;
    top: 30px;
    transform: scaleX(-1) rotate(-8deg);
}

.villa-print-kicker {
    margin: 0;
    color: #725681;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.villa-print-body h3 {
    margin: 3px 0 8px;
    color: #3b2348;
    font-size: 38px;
    line-height: 1.05;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

.villa-print-address {
    max-width: 430px;
    margin: 0 auto 14px;
    color: #5d5264;
    font-size: 15px;
    line-height: 1.55;
}

.villa-rate-grid {
    display: grid;
    gap: 8px;
    margin: 0 auto;
    max-width: 420px;
}

.villa-rate-grid div {
    overflow: hidden;
    border: 1px solid #d7c2df;
    border-radius: 7px;
    background: #ffffff;
}

.villa-rate-grid span,
.villa-rate-grid small {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.villa-rate-grid span {
    padding: 7px 12px;
    background: #6f238f;
    color: #ffffff;
}

.villa-rate-grid strong {
    display: block;
    margin: 8px 12px 2px;
    color: #2f2238;
    font-size: 22px;
}

.villa-rate-grid small {
    margin: 0;
    padding: 0 12px 8px;
    color: #5f5367;
}

.villa-time-band {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 14px 0 10px;
    color: #2f2238;
    font-size: 18px;
    font-weight: 700;
}

.villa-print-body h4 {
    margin: 2px 0 10px;
    color: #6f238f;
    font-size: 26px;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

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

.villa-amenities span {
    border: 0;
    border-radius: 999px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.86);
    color: #4a3c52;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.villa-print-contact {
    margin: 14px 0 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: #6f238f;
    color: #ffffff;
    text-align: center;
    font-size: 17px;
    font-weight: 900;
}

.villa-banner-card {
    position: relative;
    width: min(100%, 580px);
    aspect-ratio: 1054 / 1492;
    margin: 16px auto 0;
    overflow: hidden;
    border: 1px solid #d8c8e0;
    border-radius: 8px;
    background: #f1def8;
    box-shadow: 0 18px 40px rgba(65, 50, 75, 0.12);
}

.villa-banner-card > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.villa-banner-pricing {
    position: absolute;
    left: 9.1%;
    right: 9.2%;
    top: 62.8%;
    min-height: 0;
    z-index: 2;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    align-content: start;
    gap: 8px;
    border: 1px solid #d7b7e4;
    border-radius: 6px;
    padding: 8px;
    background: #ffffff;
    text-align: center;
}

.villa-banner-card::after {
    content: none;
}

.villa-banner-main-rate {
    overflow: hidden;
    border: 1px solid #d7b7e4;
    border-radius: 6px;
    background: #ffffff;
    display: grid;
    grid-template-rows: auto min-content min-content min-content;
    min-height: 100px;
}

.villa-banner-main-rate span {
    display: block;
    padding: 5px 4px;
    background: #5f128f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
}

.villa-banner-main-rate strong {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px 0;
    color: #26152e;
    font-size: 17px;
    line-height: 1.05;
}

.villa-banner-main-rate em {
    display: block;
    padding: 0 5px 3px;
    color: #26152e;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.1;
}

.villa-banner-main-rate small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: calc(100% - 26px);
    min-height: 18px;
    margin: 3px 0 8px;
    border-radius: 999px;
    padding: 2px 7px;
    background: #5f128f;
    color: #ffffff;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 900;
}

.calendar-panel {
    display: grid;
    gap: 16px;
    border: 1px solid #ded6e3;
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(51, 42, 60, 0.12);
    backdrop-filter: blur(10px);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.calendar-header h2 {
    margin: 0;
    color: #24202a;
}

.calendar-header a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 6px;
    padding: 8px 12px;
    background: #f2edf5;
    color: #4f3d5a;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(114, 86, 129, 0.1);
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.calendar-header a:hover {
    background: #725681;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(114, 86, 129, 0.22);
    transform: translateY(-2px);
}

.calendar-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid currentColor;
    border-radius: 6px;
    padding: 8px 16px;
    background: #ffffff;
    font-weight: 800;
}

.filter-chip.status-tentative {
    color: #f39c34;
    background: #fff7eb;
}

.filter-chip.status-booked {
    color: #d93025;
    background: #fff1f1;
}

.filter-chip.status-owner {
    color: #d6a84f;
    background: #fff9eb;
}

.filter-chip.status-maintenance {
    color: #b86ac8;
    background: #fbf0fd;
}

.filter-chip.status-cancelled {
    color: #8f8b94;
    background: #f2f0f4;
}

.booking-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.calendar-day-name {
    border-radius: 6px;
    padding: 9px;
    background: linear-gradient(90deg, #33243d, #4f3d5a);
    color: #ffffff;
    text-align: center;
}

.calendar-day {
    position: relative;
    display: grid;
    align-content: start;
    justify-content: stretch;
    gap: 6px;
    width: 100%;
    min-height: 112px;
    border: 1px solid #ded6e3;
    border-radius: 8px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 18px rgba(51, 42, 60, 0.06);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.calendar-book-button {
    position: absolute;
    inset: 0;
    z-index: 2;
    grid-column: auto;
    width: auto;
    min-width: 0;
    min-height: 0;
    border: 0;
    border-radius: inherit;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    box-shadow: none;
    color: transparent;
    font: inherit;
    cursor: pointer;
}

.calendar-book-button:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.calendar-day.past-day:not(.inventory-day) {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.44);
    color: #c8becd;
    opacity: 1;
    filter: none;
    box-shadow: none;
    cursor: not-allowed;
}

.calendar-book-button:disabled {
    cursor: not-allowed;
}

.calendar-day.past-day:not(.inventory-day):hover {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.44);
    box-shadow: none;
    transform: none;
}

.calendar-day.past-day:not(.inventory-day) .calendar-date-no {
    color: #bdb1c3;
}

.calendar-day.past-day.inventory-day {
    opacity: 0.68;
    filter: saturate(0.8) blur(0.35px);
    cursor: not-allowed;
}

.calendar-day.past-day.inventory-day:hover {
    transform: none;
}

.calendar-day.today-day {
    border-color: transparent;
    background: #f6eef9;
    box-shadow: inset 4px 0 0 #725681, 0 12px 24px rgba(114, 86, 129, 0.14);
}

.calendar-day.future-day {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 22px rgba(51, 42, 60, 0.08);
}

.calendar-day:not(.empty-day):hover {
    border-color: transparent;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(51, 42, 60, 0.13);
    transform: translateY(-2px);
}

.calendar-day.future-day:hover,
.calendar-day.today-day:hover {
    border-color: transparent;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(51, 42, 60, 0.13);
}

.calendar-day span {
    color: #24172c;
    font-weight: 800;
}

.calendar-day.inventory-day {
    align-content: center;
    justify-content: center;
}

.calendar-day.inventory-day .calendar-date-no {
    color: #111111;
    font-size: 20px;
}

.calendar-day a {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    padding: 6px 7px;
    background: #725681;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booked-day {
    border-color: #725681;
    background: #f5eef8;
    box-shadow: inset 4px 0 0 #725681;
}

.booked-day:hover {
    border-color: #60476e;
    box-shadow: inset 4px 0 0 #60476e, 0 18px 38px rgba(51, 42, 60, 0.18);
}

.calendar-day.inventory-day.status-tentative {
    border-color: #f39c34;
    background: #ffd8a8;
}

.calendar-day.inventory-day.status-booked {
    border-color: #d93025;
    background: #e99aa4;
}

.calendar-day.inventory-day.status-owner {
    border-color: #d6a84f;
    background: #fff0d1;
}

.calendar-day.inventory-day.status-maintenance {
    border-color: #b86ac8;
    background: #f4dcf8;
}

.calendar-day.inventory-day.status-cancelled {
    border-color: #8f8b94;
    background: #dedbe3;
}

.calendar-day.inventory-day.status-tentative .capacity-info {
    background: #f39c34;
    color: #ffffff;
}

.calendar-day.inventory-day.status-booked .capacity-info {
    background: #d93025;
    color: #ffffff;
}

.calendar-day.inventory-day.status-owner .capacity-info {
    background: #d6a84f;
    color: #2f2312;
}

.calendar-day.inventory-day.status-maintenance .capacity-info {
    background: #b86ac8;
    color: #ffffff;
}

.calendar-day.inventory-day.status-cancelled .capacity-info {
    background: #8f8b94;
    color: #ffffff;
}

.inventory-day.status-tentative,
.inventory-day.status-booked,
.inventory-day.status-owner,
.inventory-day.status-maintenance,
.inventory-day.status-cancelled {
    box-shadow: inset 4px 0 0 currentColor, 0 8px 18px rgba(51, 42, 60, 0.06);
}

.inventory-day.status-tentative {
    color: #f39c34;
}

.inventory-day.status-booked {
    color: #d93025;
}

.inventory-day.status-owner {
    color: #d6a84f;
}

.inventory-day.status-maintenance {
    color: #b86ac8;
}

.inventory-day.status-cancelled {
    color: #8f8b94;
}

.empty-day {
    visibility: hidden;
}

.calendar-book-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    background: rgba(36, 32, 42, 0.22);
}

.calendar-book-modal[hidden] {
    display: none;
}

.calendar-book-form {
    display: grid;
    align-content: start;
    gap: 14px;
    width: min(380px, 100%);
    min-height: 100vh;
    border: 0;
    border-left: 1px solid #ded6e3;
    border-radius: 0;
    padding: 22px;
    background: #ffffff;
    box-shadow: -18px 0 48px rgba(36, 32, 42, 0.22);
}

.calendar-book-form-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid #ece5f0;
    padding-bottom: 12px;
}

.calendar-book-form-header div {
    display: grid;
    gap: 4px;
}

.calendar-book-form-header span,
.calendar-book-form label {
    color: #4f3d5a;
    font-size: 13px;
    font-weight: 800;
}

.calendar-book-form-header strong {
    color: #24202a;
    font-size: 20px;
}

.calendar-book-form-header button {
    border: 1px solid #d5c7dc;
    border-radius: 6px;
    padding: 8px 12px;
    background: #f7f1fa;
    color: #4f3d5a;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.calendar-book-form label {
    display: grid;
    gap: 7px;
}

.calendar-mode-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.calendar-mode-actions button {
    min-height: 40px;
    border: 1px solid #d5c7dc;
    border-radius: 6px;
    background: #ffffff;
    color: #4f3d5a;
    font: inherit;
    font-weight: 800;
}

.calendar-mode-actions button.active {
    border-color: #725681;
    background: #725681;
    color: #ffffff;
}

.booking-only-field[hidden],
.maintenance-note[hidden] {
    display: none;
}

.maintenance-note {
    margin: 0;
    border: 1px solid #d7b7e4;
    border-radius: 6px;
    padding: 12px;
    background: #fbf2ff;
    color: #4f275c;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.calendar-date-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.calendar-book-form input {
    width: 100%;
    border: 1px solid #cdbbd6;
    border-radius: 6px;
    padding: 11px 12px;
    background: #ffffff;
    color: #24202a;
    font: inherit;
}

.calendar-book-form > button[type="submit"] {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    background: #725681;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.calendar-details-panel {
    gap: 18px;
}

.calendar-details-list {
    display: grid;
    gap: 12px;
}

.calendar-detail-card {
    display: grid;
    gap: 12px;
    border: 1px solid #dccde3;
    border-radius: 8px;
    padding: 14px;
    background: #fffafd;
}

.calendar-detail-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eadfed;
    padding-bottom: 10px;
}

.calendar-detail-card-header div {
    display: grid;
    gap: 3px;
}

.calendar-detail-card-header strong {
    color: #24202a;
    font-size: 17px;
}

.calendar-detail-card-header span {
    color: #6d6171;
    font-size: 12px;
}

.calendar-detail-card-header em {
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.calendar-detail-card-header em.status-tentative {
    background: #f4a02c;
    color: #ffffff;
}

.calendar-detail-card-header em.status-booked {
    background: #d83333;
    color: #ffffff;
}

.calendar-detail-card-header em.status-owner {
    background: #d5a946;
    color: #ffffff;
}

.calendar-detail-card-header em.status-maintenance {
    background: #c75be0;
    color: #ffffff;
}

.calendar-detail-card-header em.status-cancelled {
    background: #8f8b94;
    color: #ffffff;
}

.calendar-detail-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.calendar-detail-card dl div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
}

.calendar-detail-card dt,
.calendar-detail-card dd {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
}

.calendar-detail-card dt {
    color: #77677d;
}

.calendar-detail-card dd {
    color: #24202a;
    font-weight: 800;
}

.calendar-cancel-form {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #eadfed;
    padding-top: 10px;
}

.calendar-cancel-form[hidden] {
    display: none;
}

.calendar-cancel-form button {
    min-height: 36px;
    border: 1px solid #d83333;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fff1f1;
    color: #d83333;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.calendar-cancel-form button:hover {
    background: #d83333;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(216, 51, 51, 0.18);
    transform: translateY(-1px);
}

.calendar-cancel-form.refund-form button {
    border-color: #168f68;
    background: #eefbf6;
    color: #168f68;
}

.calendar-cancel-form.refund-form button:hover {
    background: #168f68;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(22, 143, 104, 0.18);
}

.dashboard-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(180px, 260px) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    border-bottom: 1px solid #ece5f0;
    background: linear-gradient(180deg, #ffffff 0%, #fbf8fd 100%);
}

.dashboard-toolbar label {
    font-size: 13px;
}

.toolbar-buttons {
    display: flex;
    gap: 10px;
}

.toolbar-buttons button {
    grid-column: auto;
    min-height: 44px;
    padding: 10px 16px;
}

.toolbar-buttons button:hover,
.mobile-document-row a:hover,
.document-modal-content header button:hover {
    box-shadow: 0 12px 26px rgba(114, 86, 129, 0.2);
    transform: translateY(-1px);
}

.table-wrap {
    display: none;
    overflow-x: auto;
}

.mobile-booking-card {
    border: 1px solid #d7c8df;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 44px rgba(51, 42, 60, 0.12);
    overflow: hidden;
    position: relative;
    min-height: 430px;
    animation: dashboardCardIn 0.34s ease both;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mobile-booking-card:hover {
    border-color: #725681;
    box-shadow: 0 26px 60px rgba(51, 42, 60, 0.18);
    transform: translateY(-3px);
}

.mobile-booking-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #725681;
    content: "";
}

.mobile-booking-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 0;
    padding: 12px 14px;
    background: linear-gradient(90deg, #f4eef7 0%, #fbf8fd 100%);
    color: #24202a;
    text-align: left;
    border-bottom: 1px solid #ded6e3;
    transition: background 0.18s ease, color 0.18s ease;
}

.mobile-booking-toggle:hover {
    background: linear-gradient(90deg, #ede2f2 0%, #ffffff 100%);
}

.mobile-booking-toggle span {
    font-weight: 700;
    color: #24202a;
    text-transform: capitalize;
}

.mobile-booking-toggle small {
    border: 1px solid #d8c9df;
    border-radius: 6px;
    padding: 6px 8px;
    background: #ffffff;
    color: #725681;
    font-weight: 700;
}

.mobile-booking-details {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.mobile-booking-details[hidden] {
    display: grid;
}

.mobile-booking-details dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
    margin: 0;
}

.mobile-booking-details dl div {
    display: grid;
    gap: 7px;
    min-height: auto;
    border: 0;
    border-bottom: 1px solid #eee7f2;
    border-radius: 0;
    padding: 0 0 10px;
    background: transparent;
    box-shadow: none;
    transition: color 0.18s ease;
}

.mobile-booking-details dl div:hover {
    background: transparent;
}

.mobile-booking-details dt {
    color: #6d6472;
    font-weight: 700;
}

.mobile-booking-details dd {
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

.mobile-documents {
    display: grid;
    gap: 10px;
    border-top: 2px solid #e2d8e8;
    padding-top: 12px;
}

.mobile-documents div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.mobile-documents span {
    grid-column: 1 / -1;
    color: #4f3d5a;
    font-weight: 700;
}

.mobile-document-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 0;
    border: 1px solid #d9cde0;
    border-radius: 6px;
    padding: 8px;
    background: #fbf8fd;
    box-shadow: inset 3px 0 0 #d5c2df;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.mobile-document-row:hover {
    border-color: #c8b5d3;
    background: #ffffff;
    transform: translateX(2px);
}

.mobile-document-row strong {
    min-width: 0;
    overflow: hidden;
    color: #24202a;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-document-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 6px;
    padding: 7px 12px;
    background: #725681;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.document-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(36, 32, 42, 0.62);
}

.document-modal[hidden] {
    display: none;
}

.document-modal-content {
    display: grid;
    grid-template-rows: auto minmax(320px, 76vh);
    width: min(960px, 100%);
    overflow: hidden;
    border: 2px solid #c8b5d3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(24, 18, 30, 0.36);
}

.document-modal-content header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #ded6e3;
    padding: 12px 14px;
    background: #f4eef7;
}

.document-modal-content header strong {
    color: #24202a;
}

.document-modal-content header button {
    grid-column: auto;
    min-height: 36px;
    padding: 8px 12px;
}

.document-modal-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1120px;
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid #ece5f0;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

th {
    background: #f2edf5;
    color: #4f3d5a;
    font-weight: 700;
}

tbody tr {
    transition: background 0.16s ease;
}

tbody tr:hover {
    background: #faf7fb;
}

.sort-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.sort-button:hover {
    background: transparent;
    color: #725681;
}

.sort-button::after {
    content: "<>";
    margin-left: 6px;
    color: #8e7c98;
    font-size: 11px;
}

.sort-button[data-direction="asc"]::after {
    content: "^";
}

.sort-button[data-direction="desc"]::after {
    content: "v";
}

.active-sort {
    color: #725681;
}

td a {
    color: #725681;
    font-weight: 700;
}

.document-links {
    display: grid;
    gap: 7px;
}

.table-document-row {
    display: grid;
    gap: 7px;
    min-width: 118px;
    margin: 0;
}

.table-document-row strong {
    color: #24202a;
    font-size: 13px;
    line-height: 1.3;
}

.table-document-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    border-radius: 6px;
    padding: 6px 10px;
    background: #f2edf5;
    color: #4f3d5a;
    font-weight: 700;
    text-decoration: none;
}

.table-document-row a:hover {
    background: #725681;
    color: #ffffff;
}

.muted-cell {
    color: #9a8fa1;
}

.hamburger-button {
    display: inline-grid;
    place-items: center;
    gap: 4px;
    width: 44px;
    min-height: 44px;
    border-radius: 6px;
    padding: 10px;
}

.hamburger-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
}

.mobile-admin-menu {
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
}

.mobile-admin-menu a,
.mobile-admin-menu button {
    display: flex;
    align-items: center;
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    padding: 10px 12px;
    background: #f2edf5;
    color: #4f3d5a;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.mobile-admin-menu[hidden] {
    display: none;
}

.empty {
    text-align: center;
    color: #6d6472;
    padding: 28px;
}

.calendar-booking-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.calendar-booking-card {
    overflow: hidden;
    border: 1px solid #d4d0d7;
    border-radius: 6px;
    background: #ffffff;
    color: #202020;
    box-shadow: 0 16px 34px rgba(45, 38, 50, 0.1);
}

.mobile-booking-card.calendar-booking-card {
    min-height: 0;
    border-color: #d4d0d7;
    border-radius: 6px;
    background: #ffffff;
}

.mobile-booking-card.calendar-booking-card::before {
    content: none;
}

.calendar-booking-card-header {
    border-bottom: 1px solid #d9d1c7;
    padding: 24px 28px;
    background: #ffd9ad;
}

.calendar-booking-card-header h3 {
    margin: 0;
    color: #141414;
    font-size: 24px;
    font-weight: 500;
}

.calendar-booking-card-body {
    display: grid;
    gap: 18px;
    padding: 28px;
}

.guest-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.guest-initial {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 6px;
    background: #bfe8ff;
    color: #111111;
    font-size: 28px;
    font-weight: 600;
}

.guest-row h4,
.guest-row p {
    margin: 0;
}

.guest-row h4 {
    color: #181818;
    font-size: 28px;
    font-weight: 500;
    text-transform: capitalize;
}

.guest-row p {
    margin-top: 6px;
    color: #242424;
    font-size: 18px;
}

.booking-status {
    justify-self: end;
    border-radius: 999px;
    padding: 9px 22px;
    background: #19c112;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.booking-card-divider {
    height: 1px;
    background: #d5d5d5;
}

.booking-date-lines,
.booking-facts-grid {
    display: grid;
    gap: 18px;
    margin: 0;
}

.booking-date-lines div {
    display: grid;
    grid-template-columns: minmax(160px, 0.65fr) minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
}

.booking-date-lines dt,
.booking-facts-grid dt {
    color: #4f4f4f;
    font-size: 18px;
    font-weight: 400;
}

.booking-date-lines dd,
.booking-facts-grid dd {
    margin: 0;
    color: #171717;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

.booking-facts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 28px;
}

.booking-facts-grid div {
    display: grid;
    gap: 10px;
}

.booking-facts-grid a,
.document-summary-row button {
    color: #1588d0;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.amount-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}

.amount-row strong,
.amount-row span {
    color: #111111;
    font-size: 24px;
}

.amount-row span {
    font-weight: 700;
}

.amount-note {
    margin: -4px 0 0;
    color: #9a9a9a;
    font-size: 18px;
    line-height: 1.35;
}

.document-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
}

.document-summary-row div {
    display: grid;
    gap: 10px;
}

.document-summary-row div + div {
    border-left: 1px solid #d5d5d5;
    padding-left: 24px;
}

.document-summary-row span {
    color: #333333;
    font-size: 20px;
}

.document-summary-row strong {
    color: #111111;
    font-size: 24px;
}

.document-summary-row .is-missing {
    color: #d30d0d;
}

.document-summary-row .is-collected {
    color: #168f22;
}

.calendar-documents-button {
    min-height: auto;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: 20px;
}

.calendar-documents-button:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.calendar-documents-panel {
    display: grid;
    gap: 10px;
    border-top: 1px solid #d5d5d5;
    padding-top: 16px;
}

.calendar-documents-panel[hidden] {
    display: none;
}

.calendar-documents-panel div {
    display: grid;
    gap: 8px;
}

@media (max-width: 1120px) {
    .calendar-booking-list,
    .document-management-list {
        grid-template-columns: 1fr;
    }

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

    .pricing-form button {
        grid-column: 1 / -1;
    }

    .villa-print-card {
        grid-template-columns: 1fr;
    }

    .villa-print-photo {
        min-height: 220px;
    }
}

    @media (max-width: 700px) {
    .booking-panel {
        padding: 24px;
    }

    .booking-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .guest-count-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .booking-lower-grid {
        grid-template-columns: 1fr;
    }

    .pricing-header {
        display: grid;
        align-items: start;
    }

    .pricing-form {
        grid-template-columns: 1fr;
    }

    .villa-rate-actions {
        justify-content: stretch;
    }

    .villa-rate-actions button {
        width: 100%;
    }

    .villa-print-body {
        padding: 22px;
    }

    .villa-print-body h3 {
        font-size: 28px;
    }

    .villa-rate-grid,
    .villa-amenities {
        grid-template-columns: 1fr;
    }

    .villa-time-band {
        align-items: center;
        flex-direction: column;
        gap: 8px;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }

    .mobile-admin-bar {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        align-items: center;
        margin-bottom: 18px;
        border: 1px solid #ded6e3;
        border-radius: 8px;
        padding: 12px;
        background: #ffffff;
        box-shadow: 0 12px 28px rgba(51, 42, 60, 0.08);
    }

    .mobile-admin-bar span {
        color: #4f3d5a;
        font-weight: 700;
    }

    .table-wrap {
        display: none;
    }

    .mobile-booking-list {
        display: grid;
        gap: 12px;
        padding: 14px;
    }

    .mobile-booking-card {
        border: 1px solid #ded6e3;
        border-radius: 8px;
        background: #ffffff;
        overflow: hidden;
    }

    .mobile-booking-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 52px;
        border: 0;
        border-radius: 0;
        padding: 12px 14px;
        background: #fbf9fc;
        color: #24202a;
        text-align: left;
    }

    .mobile-booking-toggle::after {
        content: "+";
        color: #725681;
        font-size: 20px;
    }

    .mobile-booking-toggle.is-open::after {
        content: "-";
    }

    .mobile-booking-toggle span {
        font-weight: 700;
        text-transform: capitalize;
    }

    .mobile-booking-toggle small {
        color: #725681;
        font-weight: 700;
    }

    .mobile-booking-details {
        display: grid;
        gap: 14px;
        padding: 14px;
    }

    .mobile-booking-details[hidden] {
        display: none;
    }

    .mobile-booking-details dl {
        display: grid;
        gap: 10px;
        margin: 0;
    }

    .mobile-booking-details dl div {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 10px;
    }

    .mobile-booking-details dt {
        color: #6d6472;
        font-weight: 700;
    }

    .mobile-booking-details dd {
        margin: 0;
        word-break: break-word;
    }

    .mobile-documents {
        display: grid;
        gap: 10px;
        border-top: 1px solid #ece5f0;
        padding-top: 12px;
    }

    .mobile-documents div {
        display: grid;
        gap: 6px;
    }

    .mobile-documents span {
        color: #4f3d5a;
        font-weight: 700;
    }

    .mobile-document-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        margin: 0;
        border: 1px solid #ece5f0;
        border-radius: 6px;
        padding: 8px;
        background: #fbf9fc;
    }

    .mobile-document-row strong {
        min-width: 0;
        overflow: hidden;
        color: #24202a;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-document-row a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        border-radius: 6px;
        padding: 7px 12px;
        background: #725681;
        color: #ffffff;
        font-weight: 700;
        text-decoration: none;
    }

    .dashboard-page {
        padding: 18px;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-header .brand {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .dashboard-today {
        min-width: 0;
        width: 100%;
    }

    .dashboard-actions,
    .toolbar-buttons {
        width: 100%;
    }

    .dashboard-actions .button-link,
    .toolbar-buttons button {
        flex: 1;
    }

    .dashboard-summary,
    .dashboard-toolbar {
        grid-template-columns: 1fr;
    }

    .document-picker {
        align-items: flex-start;
        flex-direction: row;
    }

    .document-row {
        grid-template-columns: 1fr;
    }
}

@media print {
    body.print-villa-details {
        background: #ffffff;
    }

    body.print-villa-details .admin-sidebar,
    body.print-villa-details .dashboard-actions,
    body.print-villa-details .dashboard-toolbar,
    body.print-villa-details .summary-grid,
    body.print-villa-details .pricing-header,
    body.print-villa-details .pricing-form,
    body.print-villa-details .villa-rate-actions,
    body.print-villa-details .alert,
    body.print-villa-details .pricing-panel,
    body.print-villa-details .document-management-panel,
    body.print-villa-details .table-panel,
    body.print-villa-details .calendar-panel,
    body.print-villa-details .mobile-menu,
    body.print-villa-details .dashboard-brand {
        display: none !important;
    }

    body.print-villa-details .admin-layout,
    body.print-villa-details .dashboard-page,
    body.print-villa-details .dashboard-content,
    body.print-villa-details .villa-details-panel {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    body.print-villa-details .villa-details-panel.is-hidden {
        display: none !important;
    }

    body.print-villa-details .villa-print-card,
    body.print-villa-details .villa-banner-card {
        display: block !important;
        width: 100%;
        max-width: 580px;
        min-height: auto;
        margin: 0 auto;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        page-break-inside: avoid;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body.print-villa-details .villa-banner-card {
        aspect-ratio: 1054 / 1492;
        background: #f1def8 !important;
    }

    body.print-villa-details .villa-banner-pricing,
    body.print-villa-details .villa-banner-main-rate,
    body.print-villa-details .villa-banner-main-rate span {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body.print-villa-details .villa-print-photo {
        height: 260px;
        min-height: 0;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body.print-villa-details .villa-print-body {
        display: block;
        padding: 20px 38px 24px;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .admin-sidebar,
    .dashboard-actions,
    .dashboard-toolbar {
        display: none;
    }

    .admin-layout {
        display: block;
    }

    .dashboard-page {
        padding: 0;
    }

    .table-panel,
    .summary-item {
        box-shadow: none;
    }
}

@media (max-width: 700px) {
    .calendar-header {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-panel {
        gap: 12px;
        padding: 12px;
    }

    .calendar-filter-chips {
        gap: 8px;
    }

    .filter-chip {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 12px;
    }

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

    .calendar-day-name {
        display: block;
        border-radius: 3px;
        padding: 6px 2px;
        font-size: 11px;
    }

    .calendar-day {
        min-height: 48px;
        border-radius: 3px;
        padding: 5px;
    }

    .calendar-day.inventory-day {
        align-content: center;
        justify-content: center;
    }

    .calendar-day span,
    .calendar-day.inventory-day .calendar-date-no {
        font-size: 14px;
    }

    .calendar-book-modal {
        justify-content: center;
        align-items: flex-start;
        padding: 0;
    }

    .calendar-book-form {
        width: 100%;
        min-height: auto;
        max-height: 82vh;
        overflow-y: auto;
        border-left: 0;
        border-radius: 0 0 12px 12px;
        padding: 18px;
        box-shadow: 0 18px 48px rgba(36, 32, 42, 0.22);
    }

    .calendar-date-fields {
        grid-template-columns: 1fr;
    }

    .calendar-booking-list {
        gap: 14px;
    }

    .calendar-booking-card-header {
        padding: 16px 22px;
    }

    .calendar-booking-card-header h3 {
        font-size: 20px;
    }

    .calendar-booking-card-body {
        gap: 14px;
        padding: 22px;
    }

    .guest-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .guest-initial {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .guest-row h4 {
        font-size: 22px;
    }

    .guest-row p {
        font-size: 14px;
    }

    .booking-status {
        grid-column: 2;
        justify-self: start;
        padding: 7px 16px;
        font-size: 16px;
    }

    .booking-date-lines div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .booking-date-lines dt,
    .booking-facts-grid dt {
        font-size: 15px;
    }

    .booking-date-lines dd,
    .booking-facts-grid dd {
        font-size: 18px;
    }

    .booking-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 22px;
    }

    .amount-row strong,
    .amount-row span,
    .document-summary-row strong {
        font-size: 20px;
    }

    .document-summary-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        gap: 16px;
    }

    .document-summary-row span,
    .calendar-documents-button {
        font-size: 16px;
    }

    .mobile-booking-card {
        min-height: 0;
    }

    .mobile-booking-card:hover {
        transform: none;
    }

    .mobile-booking-details[hidden] {
        display: none;
    }

    .mobile-booking-details dl {
        grid-template-columns: 1fr;
    }

    .mobile-booking-details dl div {
        grid-template-columns: 1fr;
        min-width: 0;
        border-bottom: 1px solid #eee7f2;
        padding-bottom: 10px;
    }

    .mobile-booking-details dd {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .mobile-documents div {
        grid-template-columns: 1fr;
    }

    .mobile-document-row {
        grid-template-columns: 1fr auto;
        min-width: 0;
    }

    .mobile-document-row strong {
        white-space: normal;
    }
}

.mobile-booking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.documents-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9cde0;
    border-radius: 6px;
    padding: 9px 12px;
    background: #f4eef7;
    color: #4f3d5a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.documents-toggle:hover {
    border-color: #bfa7cb;
    background: #eee4f3;
}

.documents-toggle::after {
    content: "+";
    font-size: 18px;
}

.documents-toggle[aria-expanded="true"]::after {
    content: "-";
}

.documents-panel {
    display: grid;
    gap: 10px;
}

.documents-panel[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .mobile-booking-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .mobile-booking-list {
        grid-template-columns: 1fr;
    }

    .mobile-booking-details[hidden] {
        display: none;
    }
}

.mobile-booking-list > .calendar-booking-card,
.calendar-booking-list > .calendar-booking-card {
    overflow: hidden;
    min-height: 0;
    border: 1px solid #d2cbd6;
    border-radius: 6px;
    background: #ffffff;
    color: #202020;
    box-shadow: 0 16px 34px rgba(45, 38, 50, 0.1);
}

.mobile-booking-list > .calendar-booking-card::before {
    content: none;
}

.calendar-booking-card > .calendar-booking-card-header {
    display: block;
    border-bottom: 1px solid #d6cec4;
    padding: 16px 24px;
    background: #ffd9ad;
}

.calendar-booking-card > .calendar-booking-card-header h3 {
    margin: 0;
    color: #151515;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

.calendar-booking-card > .calendar-booking-card-body {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.calendar-booking-card .guest-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.calendar-booking-card .guest-initial {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 6px;
    background: #bfe8ff;
    color: #111111;
    font-size: 23px;
    font-weight: 600;
}

.calendar-booking-card .guest-row h4,
.calendar-booking-card .guest-row p {
    margin: 0;
}

.calendar-booking-card .guest-row h4 {
    color: #181818;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.15;
    text-transform: capitalize;
}

.calendar-booking-card .guest-row p {
    margin-top: 4px;
    color: #242424;
    font-size: 14px;
}

.calendar-booking-card .booking-status {
    justify-self: end;
    border-radius: 999px;
    padding: 7px 18px;
    background: #f39c34;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.calendar-booking-card .booking-status.status-tentative,
.table-status-pill.status-tentative {
    background: #f39c34;
    color: #ffffff;
}

.calendar-booking-card .booking-status.status-booked,
.table-status-pill.status-booked {
    background: #d93025;
    color: #ffffff;
}

.calendar-booking-card .booking-status.status-owner,
.table-status-pill.status-owner {
    background: #d6a84f;
    color: #2f2312;
}

.calendar-booking-card .booking-status.status-maintenance,
.table-status-pill.status-maintenance {
    background: #b86ac8;
    color: #ffffff;
}

.calendar-booking-card .booking-status.status-cancelled,
.table-status-pill.status-cancelled {
    background: #8f8b94;
    color: #ffffff;
}

.calendar-booking-card .booking-status.status-refunded,
.table-status-pill.status-refunded {
    background: #168f68;
    color: #ffffff;
}

.table-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.calendar-booking-card .booking-card-divider {
    height: 1px;
    background: #d5d5d5;
}

.calendar-booking-card .booking-date-lines,
.calendar-booking-card .booking-facts-grid {
    display: grid;
    gap: 14px;
    margin: 0;
}

.calendar-booking-card .booking-date-lines div {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
}

.calendar-booking-card .booking-facts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 24px;
}

.calendar-booking-card .booking-facts-grid div {
    display: grid;
    gap: 7px;
}

.calendar-booking-card dt {
    color: #4f4f4f;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
}

.calendar-booking-card dd {
    margin: 0;
    color: #171717;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

.calendar-booking-card .booking-facts-grid a {
    color: #1588d0;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.calendar-booking-card .amount-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.calendar-booking-card .amount-row strong,
.calendar-booking-card .amount-row span {
    color: #111111;
    font-size: 20px;
}

.calendar-booking-card .amount-row span {
    font-weight: 700;
}

.calendar-booking-card .booking-amount-breakdown {
    display: grid;
    gap: 8px;
    margin: 6px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid #ece3ee;
}

.calendar-booking-card .booking-amount-breakdown div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.calendar-booking-card .booking-amount-breakdown dt,
.calendar-booking-card .booking-amount-breakdown dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.calendar-booking-card .booking-amount-breakdown dt {
    color: #6c5a72;
}

.calendar-booking-card .booking-amount-breakdown dd {
    color: #2a2030;
    font-weight: 700;
    text-align: right;
}

.calendar-booking-card .amount-note {
    margin: 6px 0 0;
    color: #9a9a9a;
    font-size: 15px;
    line-height: 1.35;
}

.calendar-booking-card .document-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
}

.calendar-booking-card .document-summary-row div {
    display: grid;
    gap: 7px;
}

.calendar-booking-card .document-summary-row div + div {
    border-left: 1px solid #d5d5d5;
    padding-left: 18px;
}

.calendar-booking-card .document-summary-row span,
.calendar-booking-card .calendar-documents-button {
    color: #333333;
    font-size: 16px;
}

.calendar-booking-card .document-summary-row strong {
    color: #111111;
    font-size: 20px;
}

.calendar-booking-card .document-summary-row .is-missing {
    color: #d30d0d;
}

.calendar-booking-card .document-summary-row .is-collected {
    color: #168f22;
}

.calendar-booking-card .calendar-documents-button {
    display: inline-flex;
    width: auto;
    min-height: 34px;
    justify-content: flex-end;
    border: 0;
    border-radius: 0;
    padding: 4px 0 4px 12px;
    background: transparent;
    box-shadow: none;
    color: #1588d0;
    text-decoration: underline;
    text-underline-offset: 5px;
    cursor: pointer;
}

.calendar-booking-card .calendar-documents-button::after {
    content: none;
}

.calendar-booking-card .calendar-documents-panel {
    display: grid;
    gap: 10px;
    border-top: 1px solid #d5d5d5;
    padding-top: 16px;
}

.calendar-booking-card .calendar-documents-panel[hidden] {
    display: none;
}

.calendar-booking-card .booking-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.calendar-booking-card .booking-edit-grid label,
.calendar-booking-card .document-upload-row {
    display: grid;
    gap: 7px;
    color: #4f4f4f;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.calendar-booking-card .booking-edit-grid input,
.calendar-booking-card .booking-edit-grid select,
.calendar-booking-card .document-upload-row input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d7c8df;
    border-radius: 6px;
    padding: 9px 11px;
    background: #ffffff;
    color: #171717;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}

.calendar-booking-card .document-edit-group {
    display: grid;
    gap: 10px;
}

.calendar-booking-card .compact-empty {
    margin: 0;
    padding: 10px 12px;
    border: 1px dashed #c7b6d0;
    border-radius: 6px;
    background: #fbf8fd;
}

.calendar-booking-card .document-upload-row {
    border: 1px dashed #c7b6d0;
    border-radius: 6px;
    padding: 12px;
    background: #fbf8fd;
}

.calendar-booking-card .document-upload-row small {
    color: #6c5a72;
    font-size: 12px;
    font-weight: 700;
}

.calendar-booking-card .document-upload-row-all {
    border-color: #9d7aac;
    background: #f7effa;
}

.calendar-booking-card .booking-save-button {
    justify-self: end;
    width: auto;
    min-height: 42px;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
}

.calendar-booking-card,
.table-panel,
.document-management-card {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mobile-booking-list > .calendar-booking-card:hover,
.calendar-booking-list > .calendar-booking-card:hover,
.document-management-card:hover {
    border-color: #bfa7cb;
    box-shadow: 0 22px 46px rgba(45, 38, 50, 0.16);
    transform: translateY(-3px);
}

.calendar-booking-card:hover .guest-initial {
    background: #a9ddfb;
    transform: scale(1.04);
}

.calendar-booking-card .guest-initial {
    transition: background 0.18s ease, transform 0.18s ease;
}

.calendar-booking-card input:focus,
.calendar-booking-card select:focus,
.dashboard-toolbar input:focus,
.document-management-toolbar input:focus {
    border-color: #725681;
    box-shadow: 0 0 0 3px rgba(114, 86, 129, 0.14);
    outline: none;
}

.calendar-booking-card .booking-save-button,
.toolbar-buttons button,
.dashboard-actions .button-link,
.calendar-documents-button {
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.calendar-booking-card .booking-save-button:hover,
.toolbar-buttons button:hover,
.dashboard-actions .button-link:hover {
    box-shadow: 0 14px 28px rgba(114, 86, 129, 0.2);
    transform: translateY(-2px);
}

.calendar-documents-button:hover {
    color: #725681;
    transform: translateX(2px);
}

.calendar-booking-card a:focus-visible,
.calendar-booking-card button:focus-visible,
.sidebar-menu a:focus-visible,
.sidebar-menu button:focus-visible,
.sidebar-logout:focus-visible {
    outline: 3px solid rgba(114, 86, 129, 0.26);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .calendar-booking-card .guest-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .calendar-booking-card .booking-edit-grid {
        grid-template-columns: 1fr;
    }

    .calendar-booking-card .booking-status {
        grid-column: 2;
        justify-self: start;
    }

    .calendar-booking-card .booking-date-lines div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .calendar-booking-card .booking-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-booking-card .document-summary-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        gap: 16px;
    }
}
