/* Owner dashboard (1440×900 design; collapses to one column on tablets/phones). */
#app { height: 100%; }
.own { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side img { height: 40px; align-self: flex-start; margin-bottom: 20px; }
.side button { text-align: left; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--ink-2); }
.side button.on { background: var(--red-subtle); color: var(--red); }
.side .grow { flex: 1; }
.main { padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi .v { font-family: var(--font-head); font-size: 28px; font-weight: 800; }
.two { display: grid; grid-template-columns: 1fr 380px; gap: 16px; }
.three { display: grid; grid-template-columns: 1fr 1fr 380px; gap: 16px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .stack { width: 100%; max-width: 30px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 4px 4px 0 0; overflow: hidden; }
.bars .c { background: var(--red); } .bars .a { background: var(--turmeric); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; }
.meter { height: 6px; border-radius: 3px; background: var(--turmeric); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.table input.input { padding: 6px 10px; }
.switch { width: 40px; height: 22px; accent-color: var(--green); }
.topm { display: none; }
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); } .two, .three { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .own { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; gap: 4px; }
  .side img, .side .grow { display: none; }
  .side button { white-space: nowrap; }
  .main { padding: 16px; }
}
