/* Property-business pages. Uses only the theme variables, so light and dark both work. */
.inv-page { min-width: 0; }
.inv-page .panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inv-sub { margin: 6px 0 0; font-size: 14px; max-width: 760px; }
.inv-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inv-body > * + * { margin-top: 16px; }
.inv-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: thin; }
.inv-tabs button { background: none; border: none; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.inv-tabs button:hover { color: var(--ink); }
.inv-tabs button.on { color: var(--ink); border-bottom-color: var(--gold, #b8893a); }
.inv-tab-count { margin-left: 6px; background: var(--surface-3); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.inv-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.inv-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-1); min-width: 0; }
.inv-tile-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.inv-tile-num { font-family: var(--serif); font-size: 30px; line-height: 1.15; margin-top: 6px; color: var(--ink); overflow-wrap: anywhere; }
.inv-tile-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.inv-tile.warn .inv-tile-num { color: var(--amber); } .inv-tile.bad .inv-tile-num { color: var(--red); } .inv-tile.good .inv-tile-num { color: var(--green); }
.inv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-1); min-width: 0; }
.inv-card h2, .inv-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.inv-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.inv-card-head h2, .inv-card-head h3 { margin: 0; }
.inv-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.inv-project { cursor: pointer; transition: border-color .15s, transform .15s; }
.inv-project:hover { border-color: var(--gold, #b8893a); transform: translateY(-1px); }
.inv-project h3 { font-size: 18px; margin: 0 0 2px; }
.inv-project .muted { font-size: 13px; }
.inv-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-3); margin: 12px 0 8px; }
.inv-bar i { display: block; height: 100%; }
.inv-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.inv-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.st-available { --c: #2f8f5b; } .st-held { --c: #d08a1e; } .st-blocked { --c: #8b8b85; } .st-booked { --c: #3e7ca6; } .st-sold { --c: #5b3f8c; }
.inv-dot.st-available, .inv-bar i.st-available { background: #2f8f5b; } .inv-dot.st-held, .inv-bar i.st-held { background: #d08a1e; } .inv-dot.st-blocked, .inv-bar i.st-blocked { background: #8b8b85; }
.inv-dot.st-booked, .inv-bar i.st-booked { background: #3e7ca6; } .inv-dot.st-sold, .inv-bar i.st-sold { background: #5b3f8c; }
.inv-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.inv-pill.ok { background: rgba(47,143,91,.14); color: var(--green); } .inv-pill.warn { background: rgba(208,138,30,.16); color: var(--amber); }
.inv-pill.bad { background: rgba(180,35,24,.12); color: var(--red); } .inv-pill.info { background: rgba(62,124,166,.14); color: #3e7ca6; }
.inv-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inv-toolbar input, .inv-toolbar select { padding: 8px 10px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; min-width: 0; }
.inv-toolbar .grow { flex: 1 1 200px; }
.inv-back { background: none; border: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; padding: 0; margin-bottom: 4px; }
.inv-back:hover { color: var(--ink); }
.inv-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.inv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.inv-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.inv-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv-table tr:last-child td { border-bottom: none; }
.inv-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-table tr.click { cursor: pointer; } .inv-table tr.click:hover td { background: var(--surface-2); }
.inv-table tr.total td { font-weight: 800; background: var(--surface-2); }
.inv-table .sub { display: block; font-size: 12px; color: var(--muted); }
.inv-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inv-link { color: var(--accent, #0d6b57); font-weight: 700; text-decoration: underline; cursor: pointer; background: none; border: none; padding: 0; font: inherit; }
.inv-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 28px 16px; border: 1px dashed var(--field-line); border-radius: 14px; color: var(--muted); font-size: 13.5px; }
.inv-empty b { color: var(--ink); font-size: 15px; }
.inv-err { padding: 12px 14px; border-radius: 12px; background: rgba(180,35,24,.1); color: var(--red); font-weight: 600; font-size: 14px; }
.inv-note { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; }
.inv-note.warn { background: rgba(208,138,30,.12); border-color: rgba(208,138,30,.35); }
.inv-loading { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.inv-loading i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: inv-shimmer 1.4s linear infinite; }
.inv-loading i:nth-child(2) { width: 80%; } .inv-loading i:nth-child(3) { width: 60%; }
@keyframes inv-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .inv-loading i { animation: none; } }
.inv-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; margin: 0; }
.inv-kv dt { font-size: 12px; color: var(--muted); font-weight: 700; } .inv-kv dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.inv-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .inv-two { grid-template-columns: minmax(0, 1fr); } }

/* units */
.inv-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.inv-unit { text-align: left; border: 1px solid var(--line); border-left: 5px solid var(--c, #888); border-radius: 10px; padding: 8px 10px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); min-height: 74px; }
.inv-unit:hover { box-shadow: var(--shadow-2, 0 4px 14px rgba(0,0,0,.12)); }
.inv-unit b { display: block; font-size: 14px; } .inv-unit span { display: block; font-size: 12px; color: var(--muted); }
.inv-unit em { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--c); margin-top: 2px; }
.inv-floor-label { font-size: 12px; font-weight: 800; color: var(--muted); margin: 10px 0 4px; text-transform: uppercase; letter-spacing: .05em; }

/* pop-ups */
.inv-overlay { position: fixed; inset: 0; background: rgba(10,14,20,.5); z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.inv-overlay.drawer { justify-content: flex-end; align-items: stretch; padding: 0; }
.inv-sheet { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 20px 22px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow-pop, 0 20px 50px rgba(0,0,0,.3)); }
.inv-sheet.wide { width: min(900px, 100%); }
.inv-overlay.drawer .inv-sheet { border-radius: 0; width: min(760px, 100%); max-height: none; height: 100%; }
.inv-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.inv-sheet-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.inv-x { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.inv-sheet-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.inv-fields { display: flex; flex-wrap: wrap; gap: 12px; }
.inv-field { flex: 1 1 100%; min-width: 0; } .inv-field.half { flex: 1 1 calc(50% - 6px); min-width: 140px; }
.inv-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.inv-field input[type=text], .inv-field input[type=number], .inv-field input[type=date], .inv-field input[type=month], .inv-field input[type=tel], .inv-field input[type=email], .inv-field input[type=password], .inv-field input[type=search], .inv-field input:not([type]), .inv-field select, .inv-field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.inv-field.check label { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.inv-hint { font-size: 12px; color: var(--muted); margin-top: 3px; } .inv-req { color: var(--red); }
.inv-form-err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(180,35,24,.1); color: var(--red); font-weight: 600; font-size: 13.5px; }
.inv-lead-results { display: flex; flex-direction: column; margin-top: 4px; } .inv-lead-opt { text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; margin-top: 3px; cursor: pointer; font: inherit; color: var(--ink); }
.inv-lead-opt:hover { border-color: var(--gold, #b8893a); } .inv-lead-chosen { font-size: 13px; font-weight: 700; margin-top: 4px; color: var(--green); }
.inv-charge-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.inv-charge-row input, .inv-charge-row select { width: 100%; padding: 7px 8px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
@media (max-width: 700px) { .inv-charge-row { grid-template-columns: 1fr 1fr; } }

/* pipeline board */
.inv-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.inv-col { flex: 0 0 250px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 120px; }
.inv-col.over { outline: 2px dashed var(--gold, #b8893a); }
.inv-col.auto { background: var(--surface-3); }
.inv-col-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.inv-col-head b { font-size: 13.5px; } .inv-col-head span { font-size: 12px; color: var(--muted); }
.inv-col-sub { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.inv-deal { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; font-size: 13px; }
.inv-deal[draggable=true] { cursor: grab; }
.inv-deal b { display: block; font-size: 14px; } .inv-deal .muted { font-size: 12px; }
.inv-deal select { width: 100%; margin-top: 6px; padding: 5px 6px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; }

/* employee strip */
.inv-emp-strip { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
.inv-emp-strip button { border: 1px solid var(--field-line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.inv-emp-strip button.on { background: var(--gold, #b8893a); border-color: var(--gold, #b8893a); color: #1a1305; }
.inv-timeline { list-style: none; margin: 0; padding: 0; } .inv-timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; } .inv-timeline li:last-child { border-bottom: none; }
.inv-pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { .inv-sheet { padding: 16px; } .inv-tile-num { font-size: 24px; } }
