/* KLUCZ BAŁTYKU — Strefa Właściciela, widok właściciela (K2). Kolory: Brand Book 1.3 (#10243F, #C9A85D, #F5F2EB, #7EAFC2).
   Czcionki Playfair Display / Inter zostaną dołączone lokalnie (hostowanie czcionek, Faza 3); do tego czasu czcionka zastępcza. */
#owner-app { --navy:#10243F; --gold:#C9A85D; --ivory:#F5F2EB; --sea:#7EAFC2; --muted:#44546a; --line:#e3ddcf; --serif:"Playfair Display",Georgia,serif; }
#owner-app, #owner-app * { box-sizing: border-box; }
#owner-app { min-height: 100vh; color: var(--navy); background: var(--ivory); font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.5; }
#owner-app h1, #owner-app h2 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
#owner-app h1 { font-size: 2rem; } #owner-app h2 { font-size: 1.25rem; margin-bottom: 10px; }
#owner-app a { color: inherit; }
#owner-app a:focus-visible, #owner-app button:focus-visible, #owner-app select:focus-visible, #owner-app input:focus-visible, #owner-app summary:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.o-shell { display: flex; min-height: 100vh; }
.o-side { width: 248px; flex: none; background: var(--navy); color: var(--ivory); padding: 28px 20px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.o-brand { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .08em; line-height: 1.25; }
.o-brand small { display: block; font-family: "Inter", sans-serif; font-size: .7rem; letter-spacing: .14em; color: var(--gold); margin-top: 6px; }
.o-nav { display: flex; flex-direction: column; gap: 4px; }
.o-nav a { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 44px; border-radius: 10px; text-decoration: none; color: var(--ivory); }
.o-nav a:hover { background: rgba(245,242,235,.08); }
.o-nav a[aria-current="page"] { background: rgba(201,168,93,.18); box-shadow: inset 3px 0 0 var(--gold); font-weight: 600; }
.o-cnt, .o-bell i { background: var(--gold); color: var(--navy); border-radius: 999px; font-size: .75rem; font-weight: 700; padding: 1px 8px; font-style: normal; }
.o-nav .o-cnt { margin-left: auto; }
.o-sidenote { margin: auto 0 0; font-size: .8rem; color: #e8dfc4; }
.o-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.o-top { display: flex; align-items: center; gap: 14px; padding: 12px 32px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.o-pill { display: flex; flex-direction: column; gap: 2px; font-size: .75rem; color: var(--muted); border: 1px solid #cfc6b0; border-radius: 10px; padding: 6px 12px; min-height: 48px; background: #fff; }
.o-pill select { font: inherit; font-size: .95rem; font-weight: 600; color: var(--navy); border: 0; background: transparent; padding: 0; margin: 0; max-width: 220px; }
.o-sp { flex: 1; }
.o-ib { position: relative; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #cfc6b0; background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.2rem; cursor: pointer; margin: 0; padding: 0; }
.o-bell i { position: absolute; top: -6px; right: -6px; }
.o-burger, .o-brand-m, .o-tabs, .o-scrim { display: none; }
.o-user { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.o-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.o-muted { color: var(--muted); font-size: .85rem; }
.o-content { padding: 28px 32px 40px; flex: 1; outline: none; max-width: none; width: auto; margin: 0; }
#owner-app h1:focus { outline: none; }
#owner-app button { margin-top: 0; }
.o-stack { display: flex; flex-direction: column; gap: 22px; max-width: 1100px; }
.o-msg { margin: 0; padding: 8px 32px 0; min-height: 0; font-size: .95rem; } .o-msg:empty { padding: 0; }
.o-msg.ok { color: #1f5d3b; } .o-msg.err { color: #8a1c1c; }
.o-foot { padding: 18px 32px; color: var(--muted); font-size: .8rem; text-align: center; }
.o-title, .o-hello { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.o-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-width: 0; }
.o-grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.o-grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.o-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 22px; }
.o-kpi .l { font-size: .85rem; color: var(--muted); } .o-kpi .v { font-size: 1.7rem; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.o-kpi.res { background: var(--navy); border-color: var(--navy); color: var(--ivory); } .o-kpi.res .l, .o-kpi.res .o-muted { color: #e8dfc4; }
.o-note { font-size: .8rem; color: var(--muted); margin: 0; }
.o-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; background: var(--gold); color: var(--navy); white-space: nowrap; }
.o-badge.blue { background: var(--sea); } .o-badge.gold { background: var(--gold); } .o-badge.line { background: transparent; border: 1px solid var(--navy); } .o-badge.muted { background: #e8e4d8; color: var(--muted); text-decoration: line-through; }
.o-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid #eee7d8; font-size: .95rem; flex-wrap: wrap; }
.o-row:first-child, h2 + .o-row { border-top: 0; } .o-row.today { background: rgba(126,175,194,.15); }
.o-grow { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; } .o-amt { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.o-inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; } .o-more { margin-top: 10px; }
.o-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--navy); color: var(--ivory) !important; font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; border: 1px solid var(--navy); cursor: pointer; margin: 0; }
.o-btn.ghost { background: transparent; color: var(--navy) !important; } .o-btn:hover { opacity: .88; } .o-btn[disabled] { opacity: .55; cursor: progress; }
.o-attn { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sea); border-radius: 14px; padding: 16px 20px; font-size: .95rem; }
.o-empty { color: var(--muted); margin: 6px 0; } .o-err { border-left: 4px solid var(--navy); background: #faf8f2; border-radius: 10px; padding: 14px 18px; } .o-err p { margin: 0 0 10px; }
.o-skel { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; } .sk { height: 16px; border-radius: 6px; background: linear-gradient(90deg, #eee7d8, #f7f3ea, #eee7d8); }
.o-filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; } .o-filters label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.o-filters select, .o-filters input { font: inherit; min-height: 44px; padding: 8px 12px; border: 1px solid #b9b2a0; border-radius: 10px; background: #fff; color: var(--navy); min-width: 200px; max-width: 100%; }
.o-calbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .o-calmonth { min-width: 150px; text-align: center; text-transform: capitalize; font-family: var(--serif); font-size: 1.2rem; }
.o-seg { display: inline-flex; border: 1px solid var(--navy); border-radius: 10px; overflow: hidden; } .o-seg button { font: inherit; min-height: 44px; padding: 0 16px; border: 0; background: #fff; color: var(--navy); cursor: pointer; margin: 0; }
.o-seg button[aria-pressed="true"] { background: var(--navy); color: var(--ivory); font-weight: 600; }
.o-grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.o-dow { text-align: center; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.o-day { min-height: 92px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; } .o-day.out { opacity: .5; } .o-day.today { box-shadow: inset 0 0 0 2px var(--sea); }
.o-dn { font-size: .8rem; font-weight: 600; }
.o-chip { font: inherit; font-size: .72rem; border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; text-align: left; cursor: pointer; min-height: 24px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; color: var(--navy); }
.o-chip span { display: block; overflow: hidden; text-overflow: ellipsis; } .o-chip[aria-pressed="true"] { outline: 2px solid var(--navy); }
.o-chip.s-pending { background: #fff; border: 1px dashed var(--navy); } .o-chip.s-confirmed { background: var(--sea); } .o-chip.s-inprogress { background: var(--gold); } .o-chip.s-completed { background: #dcd6c4; }
.o-chip.s-cancelled { background: #fff; border: 1px solid #cfc6b0; color: var(--muted); text-decoration: line-through; } .o-chip.static { display: inline-block; width: 28px; cursor: default; vertical-align: middle; }
.o-legend { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; padding: 0; margin: 0; font-size: .85rem; }
.o-wd { min-width: 70px; } .o-wk { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.o-dl { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 6px 16px; margin: 0 0 10px; } .o-dl dt { color: var(--muted); font-size: .9rem; } .o-dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.o-stmt .o-stmthead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; } .o-stmt h2 { margin: 0; }
table.o-lines { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .95rem; } .o-lines th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 0 4px; border-top: 1px solid #eee7d8; }
.o-lines td { padding: 5px 0; } .o-lines td.amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .o-lines tr.sum td { border-top: 2px solid var(--navy); font-weight: 700; } .o-lines small { color: var(--muted); }
.o-res { background: var(--navy); color: var(--ivory); border-radius: 10px; padding: 14px; margin: 10px 0; display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.o-corr { background: #faf8f2; border-left: 4px solid var(--gold); padding: 8px 12px; margin: 8px 0; font-size: .9rem; } .o-actions { margin-top: 12px; }
.o-details { margin-top: 12px; } .o-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; } .o-hist { margin: 8px 0 0; padding-left: 20px; } .o-hist li { margin-bottom: 8px; }
.o-photobox { border-radius: 14px; overflow: hidden; background: #e9e3d3; margin-bottom: 12px; } .o-photobox.big { margin: 0; max-height: 320px; } .o-photo { width: 100%; height: 100%; max-height: 320px; object-fit: cover; display: block; }
.o-photo-empty { display: flex; align-items: center; justify-content: center; min-height: 140px; padding: 16px; text-align: center; color: var(--muted); font-size: .9rem; }
.o-prop h2 { margin-bottom: 4px; } .o-prop .o-btn { margin-top: 10px; }
.o-tile { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; min-height: 72px; } .o-tile:hover { border-color: var(--gold); }
.o-back { font-size: .9rem; display: inline-block; min-height: 44px; line-height: 44px; }
.o-bars { display: flex; gap: 10px; align-items: flex-end; } .o-bar { flex: 1; min-width: 0; text-align: center; font-size: .75rem; display: flex; flex-direction: column; gap: 4px; }
.o-barcol { height: 120px; display: flex; align-items: flex-end; background: #faf8f2; border-radius: 6px; } .o-barfill { width: 100%; background: var(--sea); border-radius: 6px 6px 0 0; } .o-barval { min-height: 2.4em; font-variant-numeric: tabular-nums; color: var(--muted); display: flex; align-items: flex-end; justify-content: center; }
.o-barlab { text-transform: capitalize; color: var(--muted); }
.o-note-row.unread { background: rgba(201,168,93,.1); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
@media (max-width: 900px) {
  .o-shell { display: block; } .o-side { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-105%); transition: transform .2s; width: min(300px, 86vw); }
  .o-side.open { transform: none; } .o-scrim.on { display: block; position: fixed; inset: 0; background: rgba(16,36,63,.45); z-index: 20; }
  .o-top { padding: 10px 14px; gap: 10px; background: var(--navy); color: var(--ivory); position: sticky; top: 0; z-index: 10; }
  .o-burger { display: inline-flex; background: transparent; color: var(--ivory); border-color: rgba(245,242,235,.35); } .o-brand-m { display: block; font-family: var(--serif); letter-spacing: .08em; flex: 1; }
  .o-bell { background: transparent; border-color: rgba(245,242,235,.35); color: var(--ivory); } .o-user > div { display: none; } .o-avatar { display: none; } .o-sp { display: none; }
  .o-top .o-btn.ghost { color: var(--ivory) !important; border-color: rgba(245,242,235,.5); padding: 0 12px; }
  .o-pill { order: 5; flex: 1 1 140px; } .o-content { padding: 18px 14px 96px; } .o-msg { padding: 8px 14px 0; } #owner-app h1 { font-size: 1.55rem; } .o-kpi .v { font-size: 1.35rem; }
  .o-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); padding: 6px 4px 10px; z-index: 10; }
  .o-tabs a, .o-tabs button { display: flex; align-items: center; justify-content: center; min-height: 48px; font: inherit; font-size: .72rem; color: var(--ivory); text-decoration: none; background: transparent; border: 0; border-radius: 10px; margin: 0; padding: 0 2px; }
  .o-tabs a[aria-current="page"] { background: rgba(201,168,93,.2); color: var(--gold); font-weight: 600; }
  .o-day { min-height: 54px; padding: 2px; } .o-chip { font-size: 0; padding: 0; min-height: 10px; height: 10px; border-radius: 3px; } .o-chip span { display: none; } .o-chip.static { width: 28px; }
  .o-dl { grid-template-columns: 1fr; gap: 0; } .o-dl dd { margin-bottom: 8px; } .o-calmonth { min-width: 0; flex: 1; } .o-wk .o-chip { font-size: .72rem; height: auto; padding: 3px 6px; min-height: 28px; } .o-wk .o-chip span { display: block; }
  .o-bars { gap: 4px; } .o-barval { font-size: .65rem; } .o-filters select, .o-filters input { min-width: 0; width: 100%; } .o-filters label { flex: 1 1 100%; }
}
