:root {
  font-family: Arial, Helvetica, sans-serif;
}
.role-label {
  font-size: 10px;
  color: #5e6d80;
  display: grid;
  gap: 4px;
}
.role-label select {
  padding: 7px;
  border: 1px solid #e2eaf0;
  border-radius: 8px;
  background: #fff;
  color: #142442;
}
.unified-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin: 16px 0;
}
.u-card {
  background: white;
  border: 1px solid #e2eaf0;
  border-radius: 16px;
  padding: 18px;
  min-width: 0;
}
.u-card h2 {
  font-size: 17px;
  margin: 0 0 13px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.u-card h2 svg {
  width: 20px;
  height: 20px;
}
.u-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #5e6d80;
}
.u-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}
.u-row {
  width: 100%;
  display: block;
  text-align: left;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid #edf1f5;
  background: none;
  color: #142442;
  font-size: 13px;
  line-height: 1.5;
}
.u-row small {
  display: block;
  color: #5e6d80;
  font-size: 11px;
  margin-top: 5px;
}
.u-row.urgent {
  color: #bc4343;
  border-left: 3px solid #d85858;
  padding-left: 10px;
  background: #fff3f1;
}
.u-row.attention {
  border-left: 3px solid #dfad48;
  padding-left: 10px;
  background: #fffaef;
}
.u-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.u-actions button {
  font-size: 12px;
}
.u-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 16px 0;
}
.u-kpi {
  background: #fff;
  border: 1px solid #e2eaf0;
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  color: #5e6d80;
  font-size: 12px;
}
.u-kpi strong {
  display: block;
  font-size: 26px;
  color: #142442;
  margin: 8px 0;
}
.u-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.u-table th {
  text-align: left;
  color: #6c7b8d;
  font-size: 11px;
  padding: 12px;
  border-bottom: 1px solid #e2eaf0;
}
.u-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf1f5;
}
.u-table button {
  border: 0;
  background: none;
  color: #079ddd;
  font-size: 13px;
}
.u-badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 6px;
  background: #eaf7fe;
  color: #087fac;
  font-size: 11px;
}
.u-badge.pink {
  background: #fff0f7;
  color: #c61872;
}
.u-note {
  font-size: 11px;
  color: #7c8ba0;
  line-height: 1.6;
}
.u-warning {
  background: #fff8e9;
  border: 1px solid #eeddb5;
  border-radius: 10px;
  padding: 12px;
  color: #81642f;
  font-size: 12px;
  line-height: 1.6;
}
.u-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.u-tabs button {
  background: #fff;
  border: 1px solid #e2eaf0;
  border-radius: 8px;
  padding: 8px 12px;
  color: #5e6d80;
}
.u-tabs button.active {
  background: #eaf7fe;
  color: #079ddd;
}
.u-form label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  font-size: 13px;
}
.u-form input,
.u-form select,
.u-form textarea {
  font: inherit;
  color: #142442;
  background: #fff;
  border: 1px solid #dce5ed;
  padding: 10px;
  border-radius: 8px;
  max-width: 100%;
}
.u-form textarea {
  min-height: 110px;
}
.password-field { display: flex; gap: 8px; }
.password-field input { flex: 1; min-width: 0; }
.password-field button { flex: none; border: 1px solid #e2eaf0; border-radius: 8px; background: #fff; color: #142442; padding: 0 12px; cursor: pointer; }
.password-field button:hover { background: #eaf7fe; }
.u-error {
  color: #b73c3c;
  white-space: pre-wrap;
}
.u-text {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 13px;
}
.u-person-head {
  display: flex;
  gap: 18px;
  align-items: center;
}
.u-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf7fe;
  color: #079ddd;
  font-size: 20px;
}
.u-person-head h1 {
  font-size: 26px;
  margin-bottom: 8px;
}
.u-link {
  color: #079ddd;
  text-decoration: none;
  font-size: 12px;
}
.u-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 8px;
}
.u-day {
  border: 1px solid #e2eaf0;
  border-radius: 9px;
  min-height: 160px;
  padding: 9px;
  font-size: 12px;
}
.u-day .u-row {
  font-size: 11px;
  background: #eaf7fe;
  padding: 7px;
  border-radius: 6px;
  margin-top: 8px;
}
.u-scroll {
  overflow: auto;
}
.u-history {
  border-left: 2px solid #e2eaf0;
  padding: 10px 15px;
  margin: 6px 0;
  font-size: 12px;
}
.u-card pre {
  white-space: pre-wrap;
  font: inherit;
}
.u-legacy {
  margin-top: 15px;
}
.u-live {
  font-size: 11px;
  color: #438367;
}
.u-table .sensitive {
  color: #5e6d80;
}
@media (max-width: 1200px) {
  .unified-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .unified-grid > .u-stack:last-child {
    grid-column: 1/-1;
    grid-template-columns: 1fr 1fr;
  }
  .u-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .unified-grid {
    display: block;
  }
  .u-card {
    margin-bottom: 14px;
  }
  .topbar > strong {
    display: none;
  }
  .u-person-head {
    align-items: flex-start;
  }
}
/* Original director dashboard styling, isolated from other roles. */
@scope (.director-dashboard) {
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #142442;
  background: #f5f7fa;
  font-size: 14px;
  --blue: #2673d9;
  --teal: #168b98;
  --muted: #738197;
  --line: #e5ebf2;
  --amber: #b87916;
  --red: #c44b50;
  --green: #39866b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #9bc1f5;
  outline-offset: 2px;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
button {
  color: inherit;
}
aside {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 234px;
  background: #fcfdff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 30px 15px 22px;
}
.menu-caption {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #8591a2;
  padding: 4px 13px 25px;
}
nav {
  display: grid;
  gap: 5px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 13px;
  color: #344962;
  border-radius: 9px;
  font-size: 14px;
  min-height: 45px;
}
nav a:hover {
  background: #f0f5fb;
}
nav a.active {
  background: #e7f0ff;
  color: #226acd;
  font-weight: 600;
}
nav a svg {
  width: 19px;
  height: 19px;
}
nav a .lock {
  margin-left: auto;
  width: 13px;
  height: 13px;
  color: #8391a2;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 20px 12px 0;
  border-top: 1px solid var(--line);
}
.sidebar-bottom strong {
  font-size: 13px;
  font-weight: 600;
}
.sidebar-bottom span {
  font-size: 11px;
  color: #697b8c;
}
.sidebar-bottom i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #51a981;
  margin-right: 6px;
}
.sidebar-bottom small {
  font-size: 10px;
  line-height: 1.5;
  color: #8c98a6;
}
.workspace {
  margin-left: 234px;
}
header {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 30px;
}
.organization {
  font-size: 14px;
  white-space: nowrap;
}
.global-search {
  position: relative;
  flex: 1;
  max-width: 510px;
}
.global-search > span {
  position: absolute;
  left: 13px;
  top: 12px;
  color: #8494aa;
}
.global-search > span svg {
  width: 17px;
  height: 17px;
}
.global-search input {
  width: 100%;
  border: 1px solid #edf0f5;
  background: #f7f9fc;
  border-radius: 9px;
  padding: 12px 12px 12px 39px;
  font-size: 12px;
  color: #142442;
}
.global-search input::placeholder {
  color: #8592a5;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.icon-button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 5px;
  color: #344d70;
}
.counter {
  position: absolute;
  right: -3px;
  top: -4px;
  border: 2px solid white;
  min-width: 16px;
  height: 16px;
  border-radius: 9px;
  background: #ec815d;
  color: white;
  font-size: 9px;
  display: grid;
  place-items: center;
}
.primary {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  padding: 10px 17px;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 12px;
}
.primary:hover {
  background: #1f5fb5;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  font-size: 12px;
  white-space: nowrap;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edf3fa;
  color: #4b6c98;
  display: grid;
  place-items: center;
}
.chevron {
  width: 12px;
  height: 12px;
  color: #8996a7;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 23px 29px 24px;
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  gap: 15px;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.45px;
  margin: 0 0 7px;
  font-weight: 600;
}
.date {
  font-size: 12px;
  color: var(--muted);
}
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.branch-select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  color: #475b75;
  font-size: 12px;
}
.periods {
  display: flex;
  border: 1px solid var(--line);
  background: white;
  padding: 3px;
  border-radius: 8px;
}
.periods button {
  border: 0;
  background: none;
  border-radius: 5px;
  padding: 7px 12px;
  font-size: 11px;
  color: #76839a;
}
.periods button.active {
  color: #2064bc;
  background: #e9f1ff;
  font-weight: 600;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 17px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}
.kpi {
  padding: 17px 19px 13px;
  display: flex;
  flex-direction: column;
  min-height: 187px;
}
.card-title {
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}
.card-title svg {
  width: 18px;
  height: 18px;
  color: #4e6787;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.eyebrow {
  font-size: 10px;
  color: #8a97a9;
}
.big-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 13px;
}
.big {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.7px;
}
.big small {
  font-size: 17px;
  font-weight: 500;
}
.muted {
  color: var(--muted);
}
.percent {
  font-size: 11px;
  font-weight: 600;
  background: #ecf3ff;
  color: #3779d0;
  border-radius: 5px;
  padding: 4px 6px;
}
.kpi-copy {
  font-size: 11px;
  color: #7b8798;
  margin-top: 5px;
}
.kpi-copy b {
  color: #2e4666;
  font-weight: 500;
}
.kpi-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  font-size: 11px;
}
.kpi-footer a {
  font-weight: 600;
}
.delta {
  color: #b27927;
}
.sparkline {
  width: 100%;
  height: 32px;
  margin: 5px 0 0;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 11px;
}
.mini-stats.three {
  grid-template-columns: repeat(3, 1fr);
}
.mini-stats span {
  font-size: 10px;
  color: #78869b;
  line-height: 1.7;
}
.mini-stats b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: #314966;
  line-height: 1.4;
}
.mini-stats .warm b {
  color: #b87916;
}
.mini-stats .bad b {
  color: #c44b50;
}
.progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 11px;
  border: 0;
  border-radius: 6px;
  appearance: none;
  background: #eef2f7;
  color: var(--blue);
  accent-color: var(--blue);
}
.progress::-webkit-progress-bar {
  background: #eef2f7;
  border-radius: 6px;
}
.progress::-webkit-progress-value {
  background: var(--blue);
  border-radius: 6px;
}
.progress::-moz-progress-bar {
  background: var(--blue);
  border-radius: 6px;
}
.progress.teal {
  accent-color: var(--teal);
}
.progress.teal::-webkit-progress-value {
  background: var(--teal);
}
.progress.teal::-moz-progress-bar {
  background: var(--teal);
}
.kpi-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.kpi-split .big-line {
  margin: 0;
}
.kpi-split .side-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.kpi-split .side-note b {
  color: #2e4666;
}
.metric-list {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}
.metric-list div {
  font-size: 11px;
  color: #78869b;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.metric-list b {
  color: #344b68;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.04fr 1.18fr;
  gap: 17px;
}
.detail {
  padding: 18px 19px 15px;
  display: flex;
  flex-direction: column;
}
.middle {
  min-height: 290px;
}
.bottom {
  min-height: 218px;
}
.detail .card-title {
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.4;
}
.card-link {
  font-size: 11px;
  font-weight: 600;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-link svg {
  width: 13px;
  height: 13px;
}
.floor-row {
  margin-bottom: 13px;
}
.floor-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}
.floor-label b {
  font-weight: 500;
}
.floor-label span {
  font-size: 11px;
  color: var(--muted);
}
.stack {
  height: 7px;
  display: flex;
  border-radius: 5px;
  overflow: hidden;
  gap: 2px;
  background: #eef2f7;
}
.stack i {
  display: block;
  min-width: 0;
  flex-grow: var(--size);
}
.occupied {
  background: #5a93e4;
}
.reserved {
  background: #eac76d;
}
.free {
  background: #82bfa5;
}
.unavailable {
  background: #ced5df;
}
.w0 {
  --size: 0;
}
.w1 {
  --size: 1;
}
.w2 {
  --size: 2;
}
.w3 {
  --size: 3;
}
.w4 {
  --size: 4;
}
.w6 {
  --size: 6;
}
.w7 {
  --size: 7;
}
.w8 {
  --size: 8;
}
.w10 {
  --size: 10;
}
.w13 {
  --size: 13;
}
.w16 {
  --size: 16;
}
.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 9px;
  color: #7c8999;
  margin: 1px 0 9px;
}
.legend i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  margin-right: 4px;
}
.floor-note {
  font-size: 10px;
  line-height: 1.5;
  color: #8290a1;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin: 0;
}
.stay-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 13px;
}
.stay-stats b {
  display: block;
  font-size: 26px;
  font-weight: 600;
  color: #2c476b;
  margin-bottom: 5px;
}
.stay-stats span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
  display: block;
}
.stay-stats .warm b {
  color: #bd7a27;
}
.calendar-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid #f0f3f7;
  font-size: 12px;
  color: #60728b;
}
.calendar-row b {
  font-size: 12px;
  font-weight: 500;
  color: #29496d;
}
.warning {
  font-size: 10px;
  color: #ac7933;
  background: #fff8e9;
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
}
.warning svg {
  width: 14px;
  height: 14px;
}
.section-label {
  font-size: 10px;
  font-weight: 600;
  color: #8a98aa;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.load-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.3;
  margin-bottom: 9px;
}
.load-row > span {
  min-width: 109px;
}
.load-row .load-track {
  height: 4px;
  background: #edf2f6;
  border-radius: 4px;
  flex: 1;
  min-width: 24px;
}
.load-track progress {
  margin: 0;
  height: 4px;
}
.load-row > b {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.load-row > small {
  font-size: 9px;
  color: var(--muted);
  min-width: 82px;
  text-align: right;
}
.load-row.danger > b,
.load-row.danger > small {
  color: #c45749;
}
.load-row.good > b,
.load-row.good > small {
  color: #388970;
}
.load-row.warm > b,
.load-row.warm > small {
  color: #b7873c;
}
.rooms-label {
  margin-top: 8px;
}
.space-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin-top: 8px;
}
.space-row span:last-child {
  color: #479782;
  font-size: 10px;
  white-space: nowrap;
}
.finance-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #f1f4f8;
  font-size: 12px;
}
.finance-row:first-of-type {
  border-top: 0;
}
.finance-row b {
  font-size: 14px;
  font-weight: 600;
}
.finance-row.red {
  color: var(--red);
}
.sync {
  font-size: 10px;
  color: #91a0b0;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0 0;
}
.sync svg {
  width: 12px;
  height: 12px;
}
.issue {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: none;
  border: 0;
  border-top: 1px solid #f0f3f7;
  text-align: left;
  padding: 9px 0;
  color: #405874;
  font-size: 11px;
}
.issue:hover {
  color: var(--blue);
}
.issue i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5b45e;
  flex-shrink: 0;
}
.issue.critical i {
  background: #dc7277;
}
.issue svg {
  margin-left: auto;
  width: 11px;
  height: 11px;
  color: #9aabc1;
}
.task-numbers {
  display: flex;
  gap: 16px;
  font-size: 10px;
  color: #8190a3;
  margin: -5px 0 7px;
}
.task-numbers b {
  font-size: 12px;
  color: #2e4b70;
  padding-left: 3px;
}
.task-numbers .red b {
  color: var(--red);
}
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-top: 1px solid #f0f3f7;
  padding: 10px 0;
}
.task-row input {
  appearance: none;
  width: 13px;
  height: 13px;
  border: 1px solid #cbd6e6;
  border-radius: 3px;
  margin: 1px 0 0;
  flex-shrink: 0;
  cursor: pointer;
}
.task-row input:checked {
  appearance: auto;
  accent-color: var(--blue);
}
.task-row label {
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
  flex: 1;
}
.task-row small {
  display: block;
  font-size: 10px;
  color: #8291a6;
  margin-top: 4px;
}
.task-row small.red {
  color: #c4585d;
}
.task-row button {
  background: none;
  border: 0;
  color: #8ea0b8;
  padding: 0;
}
.task-row svg {
  width: 14px;
  height: 14px;
}
.mockup-note {
  font-size: 10px;
  color: #8795a7;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 13px 0 0;
}
.mockup-note a {
  font-size: 10px;
}
.detail-page {
  padding: 25px;
  min-height: 400px;
}
.detail-page h2 {
  font-size: 21px;
}
.detail-page p {
  color: #738197;
  line-height: 1.7;
}
.detail-page .issue {
  font-size: 14px;
  padding: 16px 0;
}
.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.detail-table td,
.detail-table th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 14px;
}
.detail-table th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  background: #f7f9fc;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  width: min(540px, 95vw);
  color: #142442;
  box-shadow: 0 15px 50px #14244215;
}
dialog::backdrop {
  background: #14244245;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.dialog-head h2 {
  font-size: 21px;
  margin: 0;
}
.close {
  background: none;
  border: 0;
  font-size: 26px;
  color: #8290a3;
}
dialog p {
  font-size: 14px;
  line-height: 1.7;
  color: #687991;
}
dialog label {
  display: block;
  margin: 15px 0;
  font-size: 13px;
}
dialog label input,
dialog label select {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-top: 7px;
}
.form-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.task-note {
  font-size: 11px;
  color: #8896a6;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  padding: 12px 20px;
  border-radius: 8px;
  background: #243b59;
  color: white;
  z-index: 30;
}
#search-results {
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  z-index: 20;
  box-shadow: 0 8px 25px #14244210;
}
#search-results a {
  display: block;
  padding: 10px;
  font-size: 12px;
  border-radius: 5px;
}
#search-results a:hover {
  background: #edf4fd;
}
#search-results p {
  font-size: 12px;
  color: var(--muted);
  padding: 6px;
}
.period-note {
  padding: 12px 15px;
  background: #fff8e9;
  border: 1px solid #f1e6c8;
  border-radius: 8px;
  color: #987437;
  font-size: 12px;
  margin-bottom: 16px;
}
.all-issues {
  background: none;
  border: 0;
  color: var(--blue);
  text-align: left;
  padding-left: 0;
  padding-right: 0;
}
.load-row.danger progress::-webkit-progress-value {
  background: #d47c69;
}
.load-row.danger progress::-moz-progress-bar {
  background: #d47c69;
}
.load-row.warm progress::-webkit-progress-value {
  background: #d3ad64;
}
.load-row.warm progress::-moz-progress-bar {
  background: #d3ad64;
}
@media (min-width: 1401px) {
  main {
    padding-top: 20px;
    padding-bottom: 15px;
  }
  .kpi {
    min-height: 178px;
    padding: 14px 18px 12px;
  }
  .big-line {
    margin-top: 10px;
  }
  .sparkline {
    height: 23px;
    margin-top: 3px;
  }
  .kpi-copy {
    margin-top: 4px;
  }
  .kpi-footer {
    padding-top: 8px;
  }
  .kpis {
    margin-bottom: 14px;
  }
  .dashboard-grid {
    gap: 14px;
  }
  .detail {
    padding: 15px 18px 13px;
  }
  .detail .card-title {
    margin-bottom: 13px;
  }
  .middle {
    min-height: 276px;
  }
  .bottom {
    min-height: 231px;
  }
  .floor-row {
    margin-bottom: 10px;
  }
  .floor-note {
    padding-top: 6px;
  }
  .stay-stats {
    margin-bottom: 10px;
  }
  .calendar-row {
    padding: 8px 0;
  }
  .load-row {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .space-row {
    font-size: 12px;
    margin-top: 7px;
  }
  .issue {
    font-size: 12px;
    padding: 8px 0;
  }
  .finance-row {
    padding: 7px 0;
  }
  .task-row {
    padding: 9px 0;
  }
  .task-row label {
    font-size: 12px;
  }
  .sync {
    margin-top: 8px;
  }
  .card-link {
    padding-top: 10px;
  }
  .mockup-note {
    margin-top: 10px;
  }
}
@media (max-width: 1400px) {
  aside {
    width: 205px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .workspace {
    margin-left: 205px;
  }
  header {
    gap: 15px;
    padding: 0 23px;
  }
  .organization {
    display: none;
  }
  main {
    padding: 22px;
  }
  .title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .kpis {
    gap: 12px;
  }
  .dashboard-grid {
    gap: 12px;
    grid-template-columns: 1fr 1fr;
  }
  .detail.middle:nth-child(3) {
    grid-column: 1/-1;
    min-height: auto;
  }
  .load-row > small {
    min-width: 120px;
  }
  .kpi {
    padding: 15px;
  }
  .big {
    font-size: 26px;
  }
  .header-actions {
    gap: 10px;
  }
  .profile {
    font-size: 11px;
  }
}
@media (max-width: 1000px) {
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .controls {
    flex-wrap: wrap;
  }
  .profile > span:not(.avatar) {
    display: none;
  }
  .sidebar-bottom small {
    font-size: 9px;
  }
  nav a {
    font-size: 12px;
    gap: 9px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .detail.middle:nth-child(3) {
    grid-column: auto;
  }
  .middle,
  .bottom {
    min-height: auto;
  }
  .detail {
    min-height: 225px;
  }
  aside {
    overflow-y: auto;
  }
  .mockup-note {
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  aside {
    position: static;
    width: 100%;
    height: auto;
    padding: 10px;
  }
  .menu-caption,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  nav a {
    white-space: nowrap;
    padding: 10px;
  }
  nav svg {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  header {
    height: auto;
    min-height: 72px;
    padding: 12px 15px;
    flex-wrap: wrap;
  }
  .global-search {
    flex-basis: 100%;
    max-width: none;
    order: 2;
  }
  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .profile > span:not(.avatar) {
    display: block;
  }
  main {
    padding: 17px;
  }
  .kpis {
    gap: 10px;
  }
  .kpi {
    padding: 13px;
  }
  .big {
    font-size: 22px;
  }
  h1 {
    font-size: 24px;
  }
  .card-title {
    font-size: 12px;
  }
  .mini-stats {
    gap: 4px;
  }
  .mini-stats span {
    font-size: 9px;
  }
  .periods button {
    padding: 7px;
  }
  .controls {
    gap: 8px;
  }
  .kpi-footer {
    font-size: 10px;
  }
  .kpi-copy {
    font-size: 10px;
  }
}
:root .finance-inbox { margin-top:16px; padding:18px; }
.finance-inbox h2 { font-size:18px; margin-bottom:12px; }
.finance-message { display:block; width:100%; text-align:left; padding:14px; background:#eaf7fe; border:1px solid #e2eaf0; border-radius:10px; color:#142442; margin:8px 0; }
.finance-message small { display:block; color:#5e6d80; margin-top:6px; }
.finance-report-text { white-space:pre-wrap; line-height:1.8; padding:16px; }
.header-actions a.primary { text-decoration:none; white-space:nowrap; }

}
.director-dashboard .director-live-list { max-height: 140px; overflow:auto; }
.director-dashboard .card-link { border:0; background:none; cursor:pointer; color:#079ddd; }
.director-dashboard .unavailable-data { color:#8491a2; font-size:12px; line-height:1.7; margin:14px 0; }
.director-dashboard .director-controls {display:flex; gap:8px; margin-bottom:14px; justify-content:flex-end;}
.director-dashboard .kpi { align-items: stretch; text-align:left; gap:0; min-height:180px; }
.director-dashboard .middle { min-height:270px; height:auto; }
.director-dashboard .floor-row { margin-bottom:7px; }
.director-dashboard .floor-label { margin-bottom:3px; }
.director-dashboard .floor-note { margin-top:8px; }
