:root {
  --clariso-blue: #32627d;
  --clariso-blue-dark: #183e58;
  --clariso-navy: #0d2145;
  --clariso-yellow: #f1d43b;
  --clariso-sky: #6094c7;
  --clariso-green: #45a13a;
  --text-soft: #667085;
  --border: #dbe3e8;
  --surface: #ffffff;
  --page: #f6f8fa;
  --error: #a63030;
  --error-bg: #fff1f1;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--clariso-navy);
  background: var(--page);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.login-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 12% 88%, rgba(96, 148, 199, .12), transparent 24rem),
    linear-gradient(135deg, #f8fafb 0%, #fff 58%, #f1f5f7 100%);
}

.site-header {
  min-height: 86px;
  padding: 12px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--clariso-blue);
  color: #fff;
  box-shadow: 0 8px 28px rgba(13, 33, 69, .13);
}

.brand {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: 136px;
  height: auto;
}

.language-nav { display: flex; align-items: center; gap: 5px; }
.language-nav a {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 650;
}
.language-nav a:hover, .language-nav a:focus-visible { background: rgba(255,255,255,.12); color: #fff; outline: none; }
.language-nav a.active { background: #fff; color: var(--clariso-blue-dark); }

.login-main { display: grid; place-items: center; padding: 48px 20px; }
.login-card {
  position: relative;
  width: min(100%, 480px);
  padding: clamp(30px, 5vw, 48px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(219, 227, 232, .85);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(13, 33, 69, .12);
}
.card-accent { position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(var(--clariso-yellow), var(--clariso-sky) 45%, var(--clariso-blue)); }
.eyebrow { margin: 0 0 10px; color: var(--clariso-blue); font-size: .82rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.65rem); line-height: 1.12; letter-spacing: -.035em; }
.intro { margin: 14px 0 30px; color: var(--text-soft); font-size: 1rem; line-height: 1.65; }
.alert { margin: -10px 0 24px; padding: 13px 15px; border: 1px solid #efc2c2; border-radius: 8px; background: var(--error-bg); color: var(--error); font-size: .92rem; line-height: 1.45; }
.login-form { display: grid; gap: 10px; }
.login-form > label { margin-top: 6px; font-size: .9rem; font-weight: 650; }
.login-form input[type="email"], .login-form input[type="password"], .login-form input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--clariso-navy);
  outline: none;
}
.login-form input:focus { border-color: var(--clariso-blue); box-shadow: 0 0 0 3px rgba(50, 98, 125, .13); }
.password-field { position: relative; }
.password-field input { padding-right: 52px !important; }
.password-toggle { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--text-soft); cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { background: #eef3f6; color: var(--clariso-blue-dark); outline: none; }
.password-toggle svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.submit-button { min-height: 54px; margin-top: 12px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 8px; background: var(--clariso-blue); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 9px 20px rgba(50, 98, 125, .22); transition: background .18s ease, transform .18s ease; }
.submit-button:hover { background: var(--clariso-blue-dark); transform: translateY(-1px); }
.submit-button:focus-visible { outline: 3px solid rgba(96, 148, 199, .35); outline-offset: 3px; }
.submit-button span { font-size: 1.2rem; }
.forgot-help { margin-top: 22px; color: var(--text-soft); font-size: .9rem; }
.forgot-help summary { color: var(--clariso-blue-dark); font-weight: 650; cursor: pointer; }
.forgot-help p { margin: 9px 0 0; line-height: 1.5; }
.security-note { margin: 25px 0 0; padding-top: 20px; display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--border); color: var(--text-soft); font-size: .82rem; }
.security-note span { color: var(--clariso-green); font-weight: 800; }
footer { padding: 20px; color: #7c8994; text-align: center; font-size: .8rem; }

.dashboard-page { background: var(--page); }
.portal-actions { display: flex; align-items: center; gap: 18px; }
.portal-actions form { margin: 0; }
.portal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.portal-nav a { min-height: 44px; padding: 0 13px; display: grid; place-items: center; border-radius: 7px; color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; font-weight: 650; }
.portal-nav a:hover, .portal-nav a:focus-visible { background: rgba(255,255,255,.1); color: #fff; outline: none; }
.portal-nav a.active { background: rgba(255,255,255,.16); color: #fff; }
.portal-languages { gap: 1px; }
.portal-languages a { min-width: 34px; min-height: 36px; font-size: .72rem; }
.logout-button { min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.65); border-radius: 7px; background: transparent; color: #fff; font-weight: 650; cursor: pointer; }
.logout-button:hover { background: #fff; color: var(--clariso-blue-dark); }
.dashboard-main { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vw, 84px) 20px; }
.welcome-panel { padding: clamp(30px, 5vw, 56px); border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 14px 40px rgba(13, 33, 69, .08); }
.welcome-panel p:last-child { max-width: 660px; margin: 18px 0 0; color: var(--text-soft); font-size: 1rem; line-height: 1.65; }
.summary-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.summary-card { min-height: 116px; padding: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--clariso-navy); text-decoration: none; box-shadow: 0 10px 28px rgba(13, 33, 69, .05); transition: transform .18s ease, border-color .18s ease; }
.summary-card:hover { transform: translateY(-2px); border-color: #b6c9d4; }
.summary-card span { color: var(--text-soft); font-size: .9rem; font-weight: 650; }
.summary-card strong { font-size: 2.45rem; line-height: 1; }
.summary-card.current { border-top: 4px solid var(--clariso-green); }
.summary-card.upcoming { border-top: 4px solid var(--clariso-sky); }
.summary-card.past { border-top: 4px solid #aeb8c0; }
.properties-section { margin-top: 28px; padding: clamp(28px, 4vw, 42px); border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 14px 40px rgba(13, 33, 69, .06); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.025em; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--text-soft); line-height: 1.55; }
.property-grid { display: grid; gap: 14px; }
.property-card { min-height: 100px; padding: 18px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 17px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.property-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; background: #edf4f7; color: var(--clariso-blue); }
.property-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.property-content h3 { margin: 0 0 7px; font-size: 1.08rem; }
.property-content p { margin: 0; color: var(--text-soft); font-size: .92rem; }
.property-status { padding: 7px 10px; border-radius: 999px; background: #f0f2f4; color: #69727c; font-size: .78rem; font-weight: 700; }
.property-status.is-active { background: #edf8eb; color: #397f32; }
.empty-state { padding: 28px; border: 1px dashed #cbd7de; border-radius: 12px; background: #f9fbfc; color: var(--text-soft); text-align: center; line-height: 1.55; }

.booking-main, .booking-detail-main { max-width: 1260px; }
.page-heading { margin-bottom: 28px; }
.page-heading h1 { margin-bottom: 12px; }
.page-heading > p:last-child { margin: 0; color: var(--text-soft); font-size: 1rem; line-height: 1.6; }
.booking-tabs { width: fit-content; margin-bottom: 24px; padding: 5px; display: flex; gap: 4px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.booking-tabs a { min-height: 42px; padding: 0 18px; display: grid; place-items: center; border-radius: 7px; color: var(--text-soft); text-decoration: none; font-size: .9rem; font-weight: 700; }
.booking-tabs a:hover { background: #f0f4f6; color: var(--clariso-blue-dark); }
.booking-tabs a.active { background: var(--clariso-blue); color: #fff; }
.booking-empty { margin-top: 16px; background: #fff; }
.booking-list { display: grid; gap: 14px; }
.booking-card { padding: 22px; display: grid; grid-template-columns: minmax(190px, .85fr) minmax(230px, 1.35fr) minmax(235px, 1fr) auto; align-items: center; gap: 24px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(13, 33, 69, .045); }
.booking-date { display: flex; align-items: center; gap: 9px; color: var(--clariso-navy); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.booking-date i { color: #9aa8b2; font-style: normal; }
.booking-status { width: fit-content; margin-bottom: 8px; padding: 5px 8px; display: inline-flex; border-radius: 999px; background: #f0f2f4; color: #64717b; font-size: .72rem; font-weight: 750; }
.booking-status.current { background: #edf8eb; color: #397f32; }
.booking-status.upcoming { background: #eaf3f8; color: var(--clariso-blue); }
.booking-labels { margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.booking-labels .booking-status { margin-bottom: 0; }
.channel-badge { padding: 5px 8px; display: inline-flex; border: 1px solid #d9e1e6; border-radius: 999px; color: #536773; background: #fff; font-size: .72rem; font-weight: 700; }
.booking-primary h2 { margin: 0 0 6px; font-size: 1.05rem; }
.booking-primary p { margin: 0; color: var(--text-soft); font-size: .9rem; }
.booking-meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.booking-meta div { min-width: 0; }
.booking-meta dt { margin-bottom: 5px; color: var(--text-soft); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.booking-meta dd { margin: 0; overflow-wrap: anywhere; font-size: .9rem; font-weight: 700; }
.booking-meta small { margin-top: 4px; display: block; color: var(--text-soft); font-size: .7rem; font-weight: 500; line-height: 1.35; }
.detail-link { min-height: 43px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--clariso-blue); border-radius: 8px; color: var(--clariso-blue); text-decoration: none; font-size: .84rem; font-weight: 750; white-space: nowrap; }
.detail-link:hover { background: var(--clariso-blue); color: #fff; }

.back-link { display: inline-flex; margin-bottom: 25px; color: var(--clariso-blue); text-decoration: none; font-size: .9rem; font-weight: 700; }
.back-link:hover { text-decoration: underline; }
.detail-heading { margin-bottom: 24px; padding: clamp(26px, 4vw, 42px); display: flex; align-items: end; justify-content: space-between; gap: 28px; border-radius: 16px; background: var(--clariso-blue-dark); color: #fff; box-shadow: 0 18px 38px rgba(13, 33, 69, .14); }
.detail-heading .eyebrow { margin-top: 8px; color: rgba(255,255,255,.68); }
.detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.detail-badges .booking-status { margin-bottom: 0; }
.detail-heading .channel-badge { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.1); color: #fff; }
.detail-heading h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
.detail-heading > div > p:last-child { margin: 12px 0 0; color: rgba(255,255,255,.76); }
.detail-total { text-align: right; white-space: nowrap; }
.detail-total span { display: block; margin-bottom: 6px; color: rgba(255,255,255,.68); font-size: .8rem; font-weight: 650; }
.detail-total strong { font-size: clamp(1.5rem, 3vw, 2rem); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.detail-panel { padding: clamp(23px, 3vw, 32px); border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(13, 33, 69, .045); }
.detail-panel h2, .owner-note h2 { margin: 0 0 22px; font-size: 1.2rem; }
.detail-list, .price-list { margin: 0; display: grid; }
.detail-list > div, .price-list > div { padding: 11px 0; display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #edf0f2; }
.detail-list > div:first-child, .price-list > div:first-child { padding-top: 0; }
.detail-list > div:last-child, .price-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-list dt, .price-list dt { color: var(--text-soft); font-size: .88rem; }
.detail-list dd, .price-list dd { margin: 0; text-align: right; font-size: .9rem; font-weight: 700; }
.detail-list dd a { color: var(--clariso-blue); }
.detail-list small { margin-top: 4px; display: block; color: var(--text-soft); font-size: .76rem; font-weight: 500; line-height: 1.4; }
.panel-empty { margin: 0; color: var(--text-soft); line-height: 1.6; }
.price-list .price-total { margin-top: 9px; padding: 15px 0; border-top: 2px solid var(--clariso-navy); border-bottom: 0; }
.price-list .price-total dt, .price-list .price-total dd { color: var(--clariso-navy); font-size: 1rem; font-weight: 800; }
.price-list .price-deduction dt, .price-list .price-deduction dd { color: var(--clariso-blue); }
.payout-panel { margin-top: 18px; padding: clamp(24px, 4vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; border: 1px solid #cfe0c9; border-radius: 14px; background: linear-gradient(135deg, #f4fbf2, #fff); box-shadow: 0 8px 26px rgba(45, 105, 38, .06); }
.payout-panel > div:last-child { padding-left: 36px; border-left: 1px solid #d7e6d2; }
.payout-panel .eyebrow { color: #397f32; }
.payout-panel > div > strong { display: block; color: #275f23; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.1; }
.payout-panel p { margin: 10px 0 0; color: var(--text-soft); font-size: .88rem; line-height: 1.5; }
.payout-timing > span { display: block; margin-bottom: 9px; color: var(--text-soft); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.payout-timing > strong { display: block; color: var(--clariso-navy); font-size: 1.25rem; }
.payment-status-panel { margin-top: 18px; padding: clamp(24px, 4vw, 36px); border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(13, 33, 69, .045); }
.payment-status-heading { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.payment-status-heading h2 { margin: 0; font-size: 1.25rem; }
.payout-status { padding: 7px 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.payout-status.paid { background: #e9f6e6; color: #2f7629; }
.payout-status.partial { background: #fff6dc; color: #806315; }
.payout-status.open { background: #fcebea; color: #9b3c38; }
.payout-status.assumed { background: #edf3f7; color: #536b78; }
.payout-status.direct { background: #eaf3f8; color: var(--clariso-blue); }
.payment-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.payment-totals > div { min-height: 92px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; border: 1px solid #e2e9ed; border-radius: 10px; background: #fafcfd; }
.payment-totals span, .payment-entry span { color: var(--text-soft); font-size: .74rem; font-weight: 700; line-height: 1.4; }
.payment-totals strong { color: var(--clariso-navy); font-size: 1.3rem; }
.payment-totals .open { border-color: #f0d5d3; background: #fff9f8; }
.payment-totals .open strong { color: #9b3c38; }
.payment-totals .route { border-color: #c9dce7; background: #f1f7fa; }
.payment-totals .route strong { color: var(--clariso-blue-dark); font-size: 1rem; line-height: 1.35; }
.assumed-payment-note { margin: 16px 0 0; padding: 13px 15px; border-radius: 9px; background: #f1f5f7; color: #536773; font-size: .84rem; line-height: 1.55; }
.direct-payment-note { margin: 16px 0 0; padding: 13px 15px; border: 1px solid #d7e5ec; border-radius: 9px; background: #f2f8fb; color: #456473; font-size: .84rem; line-height: 1.55; }
.payment-status-panel > h3 { margin: 26px 0 12px; font-size: 1rem; }
.payment-history { display: grid; gap: 9px; }
.payment-entry { padding: 14px 15px; display: grid; grid-template-columns: minmax(125px, .65fr) minmax(110px, .55fr) minmax(170px, 1fr) minmax(210px, 1.35fr); gap: 16px; border: 1px solid #e5eaed; border-radius: 10px; background: #fcfdfd; }
.payment-entry > div { min-width: 0; display: grid; align-content: start; gap: 5px; }
.payment-entry strong { overflow-wrap: anywhere; color: var(--clariso-navy); font-size: .84rem; line-height: 1.45; }
.owner-note { margin-top: 18px; padding: clamp(23px, 3vw, 32px); border-left: 5px solid var(--clariso-yellow); border-radius: 12px; background: #fff; box-shadow: 0 8px 26px rgba(13, 33, 69, .045); }
.owner-note p { margin: 0; color: #485966; line-height: 1.65; }
.document-panel { margin-top: 18px; padding: clamp(23px, 3vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(13, 33, 69, .045); }
.document-panel h2 { margin: 2px 0 7px; font-size: 1.2rem; }
.document-panel > div > p:last-child { margin: 0; color: var(--text-soft); line-height: 1.55; }
.document-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.document-button { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--clariso-blue); border-radius: 8px; color: var(--clariso-blue); text-decoration: none; font-size: .85rem; font-weight: 750; white-space: nowrap; }
.document-button:hover { background: #edf4f7; }
.document-button.primary { background: var(--clariso-blue); color: #fff; }
.document-button.primary:hover { background: var(--clariso-blue-dark); }
.confirmation-main { max-width: 960px; }
.confirmation-toolbar { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.confirmation-toolbar .back-link { margin-bottom: 0; }
.confirmation-paper { padding: clamp(24px, 5vw, 58px); overflow: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 16px 45px rgba(13, 33, 69, .09); }
.confirmation-paper > html, .confirmation-paper head { display: none; }
.confirmation-paper body { margin: 0; }
.confirmation-paper .daily-net-page { margin-top: 60px; padding-top: 44px; border-top: 2px dashed #c8d4da; }
.invoice-panel { margin-top: 18px; padding: clamp(23px, 3vw, 32px); border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(13, 33, 69, .045); }
.invoice-panel-heading { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.invoice-panel-heading h2 { margin: 0; font-size: 1.2rem; }
.text-link { color: var(--clariso-blue); font-size: .88rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.invoice-rows, .invoice-list, .invoice-groups { display: grid; gap: 12px; }
.invoice-row { padding: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: 10px; }
.invoice-row > div:nth-child(2) { display: grid; gap: 4px; }
.invoice-row > div:nth-child(2) span { color: var(--text-soft); font-size: .8rem; }
.invoice-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 9px; background: #edf4f7; color: var(--clariso-blue); font-size: .7rem; font-weight: 850; letter-spacing: .04em; }
.invoice-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.file-unavailable { color: var(--error); font-size: .82rem; font-weight: 700; }
.documents-main { max-width: 1260px; }
.documents-heading { max-width: 760px; }
.document-filters { margin-bottom: 28px; padding: 18px; display: grid; grid-template-columns: minmax(190px, 1.4fr) repeat(2, minmax(150px, .7fr)) auto; align-items: end; gap: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.document-filters label { display: grid; gap: 7px; color: var(--text-soft); font-size: .78rem; font-weight: 700; }
.document-filters select { width: 100%; min-height: 44px; padding: 0 38px 0 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--clariso-navy); }
.document-filters select:focus { border-color: var(--clariso-blue); outline: 3px solid rgba(50, 98, 125, .13); }
.filter-button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--clariso-blue); color: #fff; font-weight: 750; cursor: pointer; }
.filter-button:hover { background: var(--clariso-blue-dark); }
.invoice-groups { gap: 26px; }
.invoice-group h2 { margin: 0 0 12px; font-size: 1.25rem; }
.invoice-card { padding: 17px 18px; display: grid; grid-template-columns: auto auto minmax(180px, 1fr) minmax(250px, 1fr) auto; align-items: center; gap: 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 7px 22px rgba(13, 33, 69, .04); }
.invoice-check { min-width: 28px; min-height: 44px; display: grid; place-items: center; cursor: pointer; }
.invoice-check input { width: 18px; height: 18px; accent-color: var(--clariso-blue); }
.invoice-primary { min-width: 0; display: grid; gap: 3px; }
.invoice-primary > span, .invoice-primary small { color: var(--text-soft); font-size: .74rem; }
.invoice-primary strong { overflow-wrap: anywhere; font-size: .95rem; }
.invoice-meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.invoice-meta dt { margin-bottom: 4px; color: var(--text-soft); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.invoice-meta dd { margin: 0; font-size: .86rem; font-weight: 700; }
.invoice-meta a { color: var(--clariso-blue); }
.bundle-bar { position: sticky; bottom: 14px; width: fit-content; margin: 22px 0 0 auto; padding: 8px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.94); box-shadow: 0 10px 28px rgba(13, 33, 69, .12); }
.statistics-main { max-width: 1320px; }
.statistics-filters { width: min(100%, 650px); margin-bottom: 28px; padding: 18px; display: grid; grid-template-columns: minmax(230px, 1fr) minmax(130px, .45fr) auto; align-items: end; gap: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.statistics-filters label { display: grid; gap: 7px; color: var(--text-soft); font-size: .78rem; font-weight: 700; }
.statistics-filters select, .account-form select { width: 100%; min-height: 44px; padding: 0 38px 0 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--clariso-navy); }
.statistics-properties { display: grid; gap: 28px; }
.statistics-property { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(13, 33, 69, .06); }
.statistics-property-heading { padding: 25px 28px 20px; display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.statistics-property-heading h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.statistics-property-heading > span { color: var(--text-soft); font-size: .88rem; }
.statistics-summary { padding: 0 28px 25px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.statistics-summary > div { min-height: 100px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; border: 1px solid #e3e9ed; border-radius: 10px; background: #fafcfd; }
.statistics-summary span { color: var(--text-soft); font-size: .76rem; font-weight: 700; line-height: 1.4; }
.statistics-summary strong { color: var(--clariso-navy); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.15; }
.statistics-summary .net { border-color: #cfe0c9; background: #f1f9ef; }
.statistics-summary .net strong { color: #2f7629; }
.monthly-table-wrap { overflow-x: auto; border-top: 1px solid var(--border); }
.monthly-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.monthly-table th, .monthly-table td { padding: 13px 16px; border-bottom: 1px solid #edf0f2; text-align: right; font-size: .82rem; }
.monthly-table thead th { background: #f5f8f9; color: var(--text-soft); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.monthly-table th:first-child { padding-left: 28px; text-align: left; }
.monthly-table td:last-child, .monthly-table th:last-child { padding-right: 28px; }
.monthly-table tbody th { color: var(--clariso-navy); font-size: .86rem; }
.monthly-table .net-value { color: #2f7629; font-weight: 750; }
.occupancy-cell { width: 90px; height: 7px; margin: 0 0 5px auto; overflow: hidden; border-radius: 999px; background: #e7ecef; }
.occupancy-cell span { height: 100%; display: block; border-radius: inherit; background: var(--clariso-blue); }
.monthly-table small { color: var(--text-soft); font-size: .7rem; }
.statistics-note { margin: 18px 0 0; color: var(--text-soft); font-size: .78rem; line-height: 1.55; }
.account-main { max-width: 1040px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-panel { padding: clamp(24px, 4vw, 34px); border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(13, 33, 69, .045); }
.account-panel h2 { margin: 0 0 22px; font-size: 1.25rem; }
.account-data { margin: 0 0 26px; display: grid; }
.account-data > div { padding: 11px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid #edf0f2; }
.account-data dt { color: var(--text-soft); font-size: .86rem; }
.account-data dd { margin: 0; overflow-wrap: anywhere; text-align: right; font-size: .9rem; font-weight: 700; }
.account-form { display: grid; gap: 15px; }
.account-form label { display: grid; gap: 7px; color: var(--clariso-navy); font-size: .84rem; font-weight: 700; }
.account-form input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--border); border-radius: 8px; color: var(--clariso-navy); }
.account-form input:focus, .account-form select:focus, .statistics-filters select:focus { border-color: var(--clariso-blue); outline: 3px solid rgba(50, 98, 125, .13); }
.account-form .filter-button { margin-top: 4px; }
.account-hint { margin: -10px 0 22px; color: var(--text-soft); font-size: .84rem; line-height: 1.5; }
.account-message { margin-bottom: 18px; padding: 14px 16px; border-radius: 9px; font-size: .9rem; font-weight: 650; }
.account-message.success { border: 1px solid #bcdab6; background: #f0f9ee; color: #2f7629; }
.account-message.error { border: 1px solid #efc2c2; background: var(--error-bg); color: var(--error); }
.admin-view-banner { min-height: 52px; padding: 9px clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: center; gap: 18px; background: #fff4bf; color: #604f12; border-bottom: 1px solid #ead67a; font-size: .9rem; font-weight: 750; }
.admin-view-banner form { margin: 0; }
.admin-view-banner button { min-height: 34px; padding: 0 12px; border: 1px solid #9f8522; border-radius: 7px; background: #fff; color: #604f12; font-weight: 750; cursor: pointer; }
.admin-main { max-width: 1320px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.admin-heading > div > p:last-child { margin: 12px 0 0; color: var(--text-soft); line-height: 1.6; }
.admin-summary { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-summary > div { min-height: 96px; padding: 17px 19px; display: flex; align-items: end; justify-content: space-between; gap: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 7px 22px rgba(13, 33, 69, .04); }
.admin-summary span { color: var(--text-soft); font-size: .88rem; font-weight: 700; }
.admin-summary strong { font-size: 2rem; line-height: 1; }
.admin-search { width: min(100%, 560px); margin-bottom: 22px; padding: 14px; display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 10px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.admin-search label { display: grid; gap: 6px; color: var(--text-soft); font-size: .85rem; font-weight: 700; }
.admin-search input, .admin-user-form input[type="text"], .admin-user-form input[type="email"], .admin-user-form input[type="password"], .admin-user-form select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--clariso-navy); }
.admin-search input:focus, .admin-user-form input:focus, .admin-user-form select:focus { border-color: var(--clariso-blue); outline: 3px solid rgba(50, 98, 125, .13); }
.admin-user-list { display: grid; gap: 12px; }
.admin-user-card { padding: 19px; display: grid; grid-template-columns: minmax(200px, 1.15fr) minmax(190px, .75fr) minmax(260px, 1.35fr) auto; align-items: center; gap: 22px; border: 1px solid var(--border); border-radius: 13px; background: #fff; box-shadow: 0 7px 22px rgba(13, 33, 69, .04); }
.admin-user-primary { min-width: 0; }
.admin-user-primary h2 { margin: 9px 0 4px; font-size: 1.05rem; }
.admin-user-primary > a { color: var(--clariso-blue); font-size: .88rem; overflow-wrap: anywhere; }
.admin-user-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-role, .admin-state { padding: 5px 8px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.admin-role.owner { background: #edf3f7; color: #536b78; }
.admin-role.admin { background: #e8effb; color: #315d9a; }
.admin-state.active { background: #e9f6e6; color: #2f7629; }
.admin-state.inactive, .admin-state.locked { background: #fcebea; color: #9b3c38; }
.admin-login-data { margin: 0; display: grid; gap: 12px; }
.admin-login-data dt { margin-bottom: 4px; color: var(--text-soft); font-size: .78rem; font-weight: 700; }
.admin-login-data dd { margin: 0; font-size: .88rem; font-weight: 750; }
.admin-property-access { min-width: 0; display: grid; gap: 8px; }
.admin-property-access > span { color: var(--text-soft); font-size: .78rem; font-weight: 700; }
.admin-property-access > small { color: var(--text-soft); font-size: .84rem; }
.admin-property-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-property-buttons form { margin: 0; }
.admin-property-buttons button { min-height: 34px; padding: 0 10px; border: 1px solid #c9dce7; border-radius: 7px; background: #f4f9fb; color: var(--clariso-blue-dark); font-size: .78rem; font-weight: 750; cursor: pointer; }
.admin-property-buttons button:hover { border-color: var(--clariso-blue); background: #eaf3f8; }
.admin-form-main { max-width: 1040px; }
.admin-user-form { display: grid; gap: 16px; }
.admin-form-panel { padding: clamp(22px, 4vw, 32px); border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(13, 33, 69, .045); }
.admin-form-panel h2 { margin: 0 0 18px; font-size: 1.2rem; }
.admin-form-panel > p { margin: -8px 0 18px; color: var(--text-soft); font-size: .88rem; line-height: 1.55; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.admin-user-form label { display: grid; gap: 7px; color: var(--clariso-navy); font-size: .86rem; font-weight: 700; }
.admin-check { width: fit-content; margin-top: 17px; display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px !important; cursor: pointer; }
.admin-check input, .admin-property-choice input { width: 18px; height: 18px; accent-color: var(--clariso-blue); }
.admin-property-grid { max-height: 430px; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.admin-property-choice { padding: 13px; display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px !important; border: 1px solid #e2e8ec; border-radius: 9px; background: #fcfdfd; cursor: pointer; }
.admin-property-choice > span { min-width: 0; display: grid; gap: 4px; }
.admin-property-choice strong { overflow-wrap: anywhere; font-size: .9rem; }
.admin-property-choice small { color: var(--text-soft); font-size: .78rem; font-weight: 500; line-height: 1.4; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 9px; }

@media (max-width: 640px) {
  .site-header { min-height: 76px; padding-inline: 18px; }
  .brand-logo { width: 112px; }
  .language-nav { gap: 0; }
  .language-nav a { min-width: 36px; min-height: 40px; font-size: .78rem; }
  .login-main { align-items: start; padding: 28px 14px; }
  .login-card { border-radius: 12px; }
  .dashboard-header { flex-wrap: wrap; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .property-card { grid-template-columns: auto minmax(0, 1fr); }
  .property-status { grid-column: 2; justify-self: start; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card { min-height: 92px; }
  .booking-tabs { width: 100%; }
  .booking-tabs a { flex: 1; padding-inline: 10px; }
  .booking-card { grid-template-columns: 1fr; gap: 17px; }
  .booking-meta { grid-template-columns: repeat(2, 1fr); }
  .detail-link { width: 100%; }
  .detail-heading { align-items: start; flex-direction: column; }
  .detail-total { text-align: left; }
  .detail-grid { grid-template-columns: 1fr; }
  .payout-panel { grid-template-columns: 1fr; gap: 24px; }
  .payout-panel > div:last-child { padding: 24px 0 0; border-top: 1px solid #d7e6d2; border-left: 0; }
  .payment-status-heading { align-items: flex-start; flex-direction: column; }
  .payment-totals { grid-template-columns: 1fr; }
  .payment-entry { grid-template-columns: 1fr; }
  .document-panel { align-items: stretch; flex-direction: column; }
  .document-actions, .document-button { width: 100%; }
  .confirmation-toolbar { align-items: stretch; flex-direction: column; }
  .invoice-panel-heading, .invoice-row { align-items: stretch; grid-template-columns: 1fr; }
  .invoice-panel-heading { flex-direction: column; }
  .invoice-actions { width: 100%; justify-content: stretch; }
  .invoice-actions .document-button { flex: 1; }
  .document-filters { grid-template-columns: 1fr; }
  .invoice-card { grid-template-columns: auto minmax(0, 1fr); }
  .invoice-card .invoice-primary, .invoice-card .invoice-meta, .invoice-card .invoice-actions, .invoice-card .file-unavailable { grid-column: 2; }
  .invoice-meta { grid-template-columns: 1fr; gap: 10px; }
  .invoice-card .invoice-icon { grid-column: 2; grid-row: 1; }
  .invoice-card .invoice-check { grid-column: 1; grid-row: 1; }
  .bundle-bar { position: static; width: 100%; }
  .bundle-bar .document-button { width: 100%; }
  .statistics-filters { grid-template-columns: 1fr; }
  .statistics-property-heading { align-items: start; flex-direction: column; }
  .statistics-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 18px; }
  .statistics-summary .net { grid-column: 1 / -1; }
  .account-grid { grid-template-columns: 1fr; }
  .admin-view-banner { align-items: stretch; flex-direction: column; gap: 7px; }
  .admin-view-banner button { width: 100%; }
  .admin-heading { align-items: stretch; flex-direction: column; }
  .admin-heading .document-button { width: 100%; }
  .admin-summary { grid-template-columns: 1fr; }
  .admin-search { grid-template-columns: 1fr; }
  .admin-user-card { grid-template-columns: 1fr; gap: 16px; }
  .admin-form-grid, .admin-property-grid { grid-template-columns: 1fr; }
  .admin-form-actions { align-items: stretch; flex-direction: column-reverse; }
  .admin-form-actions .document-button, .admin-form-actions .filter-button { width: 100%; }
  .portal-nav { width: 100%; }
  .portal-nav a { flex: 1; padding-inline: 9px; font-size: .8rem; }
  .portal-header { align-items: flex-start; flex-wrap: wrap; }
  .portal-actions { width: 100%; flex-wrap: wrap; gap: 8px; }
  .portal-nav { order: 1; flex: 1; }
  .portal-languages { order: 3; width: 100%; }
  .portal-actions form { order: 2; margin-left: auto; }
}

@media (min-width: 641px) and (max-width: 1040px) {
  .portal-languages { display: none; }
  .booking-card { grid-template-columns: minmax(180px, .8fr) minmax(220px, 1.2fr) auto; }
  .booking-meta { grid-column: 1 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
