.admin-nav { text-decoration: none; }
.admin-nav svg { color: #ffc390; }
.owner-layout { display: grid; grid-template-columns: minmax(170px, 203px) minmax(0, 1fr); gap: clamp(14px, 2.5vw, 28px); align-items: start; margin-top: 19px; }
.owner-sidebar { position: sticky; top: 14px; padding: 10px; border: 1px solid #1a3c64; border-radius: 16px; background: linear-gradient(145deg, #1e416e, #122a48 74%); }
.owner-main { min-width: 0; }
.owner-toolbar, .owner-toolbar > div { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.owner-toolbar { min-height: 43px; margin: 0 0 13px; }
.owner-toolbar h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -.035em; }
.owner-toolbar span, .owner-empty { color: var(--muted); }
.owner-toolbar span { font-size: .82rem; }
.owner-tabs { display: grid; gap: 5px; }
.owner-tabs button { position: relative; display: flex; align-items: center; gap: 9px; min-height: 45px; padding: 8px 10px;
  border: 1px solid transparent; border-radius: 9px; background: transparent; color: #d9e9ff; text-align: left; font-size: .88rem; font-weight: 650; }
.owner-nav-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 7px; color: #97bdec; background: #ffffff0d; }
.owner-tabs button:hover { color: #fff; background: #ffffff15; }
.owner-tabs button[aria-current="page"] { background: #2a578b; color: #fff; border-color: #9bc9fe48; }
.owner-tabs button[aria-current="page"]::before { position: absolute; content: ""; top: 10px; bottom: 10px; left: 0; width: 3px; background: #ffc391; border-radius: 3px; }
.owner-tabs button[aria-current="page"] .owner-nav-icon { color: #ffcca7; background: #ffffff14; }
.owner-nav-count { margin-left: auto; border-radius: 6px; min-width: 20px; padding: 2px 4px; font-size: .67rem; color: #6d2902; background: #ffc594; text-align: center; }
.owner-nav-count[hidden] { display: none; }
.owner-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.owner-metrics-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.owner-metric { display: grid; align-content: start; gap: 7px; min-height: 125px; padding: 15px; }
.owner-metric > span { color: #354e71; font-weight: 640; }
.owner-metric > strong { font-size: clamp(1.45rem, 3.5vw, 2.6rem); line-height: 1.12; letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.owner-metric > small { color: var(--muted); }
.owner-money { background: #eaf4ff; border-color: #c7dff9; }
.owner-inbox { background: #fff3e9; border-color: #f1d7c0; }
.owner-overview { display: grid; gap: 12px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.owner-detail { min-width: 0; padding: 15px; }
.owner-detail h2 { font-size: 1.13rem; line-height: 1.3; margin-bottom: 10px; }
.owner-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; list-style: none; padding: 0; margin: 16px 0 0; }
.owner-chart li { min-width: 0; display: grid; gap: 5px; justify-items: center; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.owner-chart li strong { color: #274e81; }
.owner-chart-track { border-radius: 6px; background: #edf4fd; display: flex; align-items: flex-end; width: min(100%, 38px); height: 65px; }
.owner-chart-track > span { display: block; width: 100%; height: var(--bar); background: #478aef; border-radius: 6px; }
.owner-quick { margin: 0 0 12px; }
.owner-quick div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 14px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.owner-quick dt { color: var(--muted); }
.owner-quick dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.owner-records { list-style: none; padding: 0; margin: 4px 0 0; }
.owner-records li { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 9px 0; }
.owner-records li > span { min-width: 0; overflow-wrap: anywhere; }
.owner-records strong, .owner-records small { display: block; }
.owner-records small, .owner-records time { color: var(--muted); font-size: .82rem; }
.owner-payment-state { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.owner-empty { padding: 11px 12px; border-radius: 9px; background: #f3f7fc; font-size: .88rem; }
@media (max-width: 700px) {
  .owner-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-overview { grid-template-columns: 1fr; }
  .owner-metric { min-height: 107px; padding: 10px; }
  .owner-metric > span, .owner-metric > small { font-size: .79rem; }
  .owner-detail { padding: 12px; }
  .owner-chart { gap: 4px; }
}
@media (max-width: 980px) {
  .owner-layout { grid-template-columns: 154px minmax(0, 1fr); gap: 13px; }
  .owner-tabs button { gap: 6px; padding-inline: 6px; }
  .owner-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .owner-layout { display: block; margin-top: 12px; }
  .owner-sidebar { position: static; margin-bottom: 12px; padding: 4px; border-radius: 12px; }
  .owner-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .owner-tabs button { justify-content: center; flex-direction: column; gap: 2px; min-height: 49px; padding: 3px 1px; text-align: center; font-size: clamp(.65rem, 2.6vw, .84rem); }
  .owner-tabs button[aria-current="page"]::before { top: auto; bottom: 0; left: calc(50% - 10px); width: 20px; height: 2px; }
  .owner-nav-icon { width: 24px; height: 24px; }
  .owner-nav-count { position: absolute; top: 2px; left: calc(50% + 8px); margin: 0; min-width: 14px; padding: 0 3px; }
}
