/* Medvision reference: rose accents, Montserrat headings, Roboto body,
   1280px content, 25px panels and 12.5px controls. Loaded after module CSS. */
:root {
  --header-charcoal: #3c3c3b; --header-height: 80px; --header-logo-width: 260px;
  --brand: #db2a4a; --brand-bright: #db2a4a; --blue: #db2a4a;
  --ink: #231f20; --text: #231f20; --muted: #696466;
  --line: #e0e1e3; --border: #e0e1e3; --surface: #fff; --bg: #f1f2f3;
  --navy: #231f20; --shadow: 0 12px 36px rgb(35 31 32 / 5%);
  --rose-soft: #fbe9ed; --heading-font: 'Montserrat', 'Segoe UI', sans-serif;
}
body { font-family: 'Roboto', 'Segoe UI', Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: var(--heading-font); color: var(--ink); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
button,input,select,textarea { font-family: inherit; }
a { color: #b71d39; }
button,.project-button,.secondary-button { box-shadow: none; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 3px solid #db2a4a; outline-offset: 3px; }
input:not([type='checkbox']):not([type='radio']),select,textarea { color: var(--ink); border-color: var(--border); border-radius: 12.5px; }
input:not([type='checkbox']):not([type='radio']):focus,select:focus,textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(219 42 74 / 12%); }
.topbar { background: #fff; border-color: var(--border); box-shadow: none; }
.topbar nav { align-items: center; flex-wrap: wrap; }
.topbar a,.topbar nav a:hover { color: var(--ink); }
.topbar nav a:hover { color: var(--brand); }
.brand-logo { width: 180px; }
.page-container { width: min(1280px,92%); margin: 48px auto 72px; }
.page-container>h1 { font-size: clamp(32px,4vw,56px); }
.page-container>h2 { font-size: clamp(26px,3vw,42px); }
.page-container>p,.users-heading p { color: var(--muted); }
.project-button,button,.page-title button,.panel-header button,.form-row button,.chart-header button,.popup-content button,.lock-form button,.small-action-btn { background: var(--brand); border-radius: 12.5px; }
.project-button:hover,button:hover:not(:disabled) { box-shadow: 0 8px 20px rgb(219 42 74 / 15%); }
.secondary-button,.secondary-btn,.form-row button.secondary-btn,.use-btn { background: #ededed; color: var(--ink); }
.text-button { color: #b71d39!important; }
.hospital-card { background: transparent; padding: 0; border: 0; box-shadow: none; margin-bottom: 18px; }
.hospital-heading { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.hospital-heading h3 { font-size: 24px; }
.hospital-label,.status-label { color: #b71d39; }
.hospital-project-grid { gap: 24px; }
.project-card,.hospital-project-grid .project-card { padding: 30px; background: #fff; border-radius: 25px; border-color: var(--border); min-height: 280px; box-shadow: var(--shadow); }
.project-card:hover,.hospital-project-grid .project-card:hover { border-color: #e8a8b4; box-shadow: 0 18px 36px rgb(35 31 32 / 8%); }
.project-card::before { background: var(--brand); }
.project-card h4 { font-size: 23px; font-weight: 500; }
.project-card p { color: var(--muted); }
.permissions span { color: #a81c36; background: var(--rose-soft); border-color: #f5d4db; font-weight: 500; }
.user-form-card,.users-list,.audit-filters,.audit-card,.status-card,.error-card,dialog { border-radius: 25px; border-color: var(--border); box-shadow: var(--shadow); }
.audit-icon { color: var(--brand); border-color: var(--brand); }
.error-code { color: var(--brand); }
th { font-weight: 500; letter-spacing: .04em; }
th,td { border-color: var(--border); }
dialog::backdrop { background: rgb(35 31 32 / 60%); backdrop-filter: blur(4px); }
.mv-eyebrow { display: block; color: #b71d39; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.mv-hero { position: relative; overflow: hidden; padding: clamp(32px,5vw,72px); margin-bottom: 48px; border-radius: 25px; background: #231f20; color: white; }
.mv-hero::after { content: ''; position: absolute; width: 350px; height: 350px; right: -100px; bottom: -240px; border: 60px solid #db2a4a; border-radius: 50%; opacity: .55; pointer-events: none; }
.mv-hero .mv-eyebrow { color: #ff9fb1; }
.mv-hero h1 { position: relative; max-width: 850px; color: white; font-size: clamp(32px,4.5vw,56px); margin: 0 0 24px; font-weight: 400; }
.mv-hero p { color: #d8d4d5; margin-bottom: 0; }
.mv-hero .mv-welcome { color: #fff; font-size: 18px; }
.mv-footer { width: min(1280px,92%); margin: 36px auto 0; padding: 24px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
/* Authentication: spacious brand introduction beside the existing form. */
.login-page { background: #f4f3f3; }
.login-container { width: min(1440px,100%); padding: 40px; gap: clamp(32px,6vw,100px); align-items: center; }
.login-story { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; flex: 1; min-height: 620px; padding: clamp(32px,5vw,72px); background: #231f20; border-radius: 25px; color: white; overflow: hidden; }
.login-story::after { content: ''; position: absolute; width: 400px; height: 400px; border: 70px solid #db2a4a; border-radius: 50%; right: -200px; bottom: -250px; opacity: .65; }
.login-story .mv-eyebrow { color: #ff9fb1; }
.login-story h2 { color: white; font-weight: 400; font-size: clamp(36px,4.2vw,56px); margin: 0 0 28px; }
.login-story h2 span { color: #ff9fb1; }
.login-story p { color: #d8d4d5; max-width: 400px; font-size: 18px; }
.login-story .story-bottom { margin-top: 64px; font-size: 13px; letter-spacing: .06em; }
.login-page .login-card { flex: 0 1 440px; margin: 0; padding: 40px; border-radius: 25px; box-shadow: var(--shadow); }
.login-page h1 { color: var(--ink); font-family: var(--heading-font); font-size: 32px; font-weight: 500; margin-bottom: 10px; }
.login-brand { margin-bottom: 28px; }
.login-page .login-card .login-intro { margin-bottom: 26px; }
.form-field label { color: var(--ink); font-weight: 500; }
.form-field input { color: var(--ink); border-color: #dedadb; }
.login-page button { background: var(--brand); box-shadow: none; border-radius: 12.5px; }
.login-page button:hover:not(:disabled) { background: #b71d39; }
/* Chillers: retain page switching, schematic positions and mobile drawer. */
.chillers-app .sidebar { background: var(--header-charcoal); }
.chillers-app .brand h1 { color: #fff; font-size: 20px; }
.chillers-app .brand p { font-size: 13px; color: #cdc8ca; }
.chillers-app .nav-link { font-size: 14px; color: #dedadb; border-radius: 12.5px; }
.chillers-app .nav-link:hover,.chillers-app .nav-link.active { background: var(--brand); color: white; }
.chillers-app .sidebar-brand { display: block; margin-top: auto; padding-top: 24px; color: #bdb6b8; font-size: 12px; }
.chillers-app .sidebar-brand img { display: block; width: 160px; border-radius: 6px; margin-bottom: 10px; }
.chillers-app .page-title h2 { font-size: clamp(28px,3vw,42px); font-weight: 400; }
.chillers-app .summary-card,.chillers-app .panel,.chillers-app .visual-shell { border-radius: 25px; box-shadow: var(--shadow); }
.chillers-app .summary-card { border-top: 3px solid var(--brand); }
.chillers-app .card-label { color: var(--muted); letter-spacing: .06em; font-weight: 500; }
.chillers-app .summary-card h3 { font-size: 36px; }
.chillers-app th { color: var(--muted); background: #faf8f9; }
.chillers-app .panel-header { padding-top: 14px; padding-bottom: 14px; }
.chillers-app .panel-header h3 { font-size: 19px; }
.chillers-app .edit-btn { background: var(--rose-soft); color: #a81c36; }
.chillers-app .report-box { color: var(--ink); background: #fafafa; }
/* Oxygen and energy use the same branded masthead and quiet tab strip. */
.mv-module-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-height); padding: 0 6%; background: var(--header-charcoal); border-bottom: 1px solid var(--header-charcoal); }
.mv-module-header img { width: var(--header-logo-width); max-width: 100%; height: auto; display: block; }
.mv-module-header a { color: #fff; text-decoration: none; font-weight: 500; }
.oxygen-app .page { width: min(1280px,92%); margin: 40px auto; }
.oxygen-app .header { background: #e8f1f8; color: #203b53; padding: 40px; border: 1px solid #cddfea; border-radius: 25px; box-shadow: none; }
.oxygen-app .header h1 { color: #203b53; font-size: clamp(28px,3vw,42px); }
.oxygen-app .header p { color: #4f687b; }
.oxygen-app .portal-link { border-color: #db2a4a; background: #db2a4a; color: white; border-radius: 12.5px; }
.oxygen-app .tab-content,.oxygen-app .chart-card,.oxygen-app .popup-box { border-radius: 25px; box-shadow: var(--shadow); }
.oxygen-app .section-header h2,.oxygen-app .chart-card h2 { color: var(--ink); font-size: 24px; }
.oxygen-app .chart-card { background: #fafafa; border-color: var(--border); }
.oxygen-app thead { background: var(--header-charcoal); }
.oxygen-app tbody tr:hover { background: #fcf4f6; }
.tabs { gap: 8px; }
.tab,.tab-button { background: #fff; border: 1px solid var(--border); border-radius: 12.5px; box-shadow: none; color: var(--ink); }
.tab:hover,.tab-button:hover,.tab.active,.tab-button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.energy-app { padding: 0; }
.energy-content { width: min(1280px,92%); margin: 40px auto 64px; }
.energy-content>h1 { text-align: left; padding: 0; font-size: clamp(28px,3vw,42px); margin: 0 0 28px; }
.energy-app .tabs { justify-content: flex-start; padding: 0; margin-bottom: 32px; }
.energy-app .card,.energy-app .chart-block,.energy-app .lock-card,.energy-app .placeholder-page,.energy-app .popup-content { border-radius: 25px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.energy-app .cards { justify-content: flex-start; }
.energy-app .card { flex: 1 1 220px; text-align: left; padding: 28px; border-top: 3px solid var(--brand); }
.energy-app .card p { color: var(--muted); }
.energy-app .chart-block { width: 100%; padding: 28px; }
.energy-app th { background: #231f20; color: white; }
.energy-app .power-card h2 { color: var(--brand); }
.energy-app .lock-card h2 { color: var(--ink); }
/* Keep operational status and start/stop colors distinct from brand accents. */
.command-btn.start,.btn-on { background: #16803e; }
.command-btn.stop,.btn-off,.danger-button { background: #c7333e; }
.delete-btn { background: #fee2e2; color: #b91c1c; }
.eye-button,.menu,.schedule-set-main { background: transparent; }
.check input { accent-color: var(--brand); }
@media(max-width: 900px) {
  .login-container { flex-direction: column; padding: 24px; gap: 24px; }
  .login-story { min-height: 0; width: 100%; padding: 36px; flex: auto; }
  .login-story h2 { font-size: 36px; }
  .login-story .story-bottom { margin-top: 20px; }
  .login-page .login-card { width: 100%; max-width: 520px; flex: auto; }
}
@media(max-width: 640px) {
  .page-container { width: calc(100% - 32px); margin: 24px auto 40px; }
  .topbar { align-items: flex-start; gap: 14px; flex-direction: column; padding: 18px; }
  .topbar nav { justify-content: flex-start; gap: 14px; }
  .mv-hero { padding: 30px 24px; margin-bottom: 32px; }
  .hospital-project-grid .project-card { padding: 24px; min-height: 0; }
  .hospital-heading { gap: 8px; }
  .mv-footer { flex-direction: column; }
  .login-container { padding: 16px; }
  .login-story { padding: 28px; }
  .login-story h2 { font-size: 32px; }
  .login-story p { font-size: 16px; }
  .login-page .login-card { padding: 30px 24px; }
  .chillers-app .topbar { flex-direction: row; align-items: center; }
  .mv-module-header { padding: 18px; gap: 12px; }
  .mv-module-header a { font-size: 14px; }
  .oxygen-app .header { padding: 28px 24px; }
  .energy-content { margin-top: 28px; }
  .energy-app .tab { width: auto; flex: 1 1 auto; }
  .energy-app .chart-block { padding: 18px; }
}
@media print {
  .mv-module-header,.mv-footer,.sidebar-brand { display: none; }
  body { background: white; }
}

/* Reference-site dashboard: charcoal navigation, white space, red accents. */
.dashboard-page { --brand: #db2a4a; --brand-bright: #db2a4a; --rose-soft: #fbe9ed; background: var(--bg); }
.dashboard-page .topbar { background: var(--header-charcoal); color: #fff; border-color: var(--header-charcoal); min-height: var(--header-height); }
.dashboard-page .topbar nav a { color: #fff; }
.dashboard-page .topbar nav a:hover { color: #ff7f97; }
.dashboard-page .topbar .brand-logo { width: var(--header-logo-width); background: transparent; border-radius: 0; padding: 0; filter: none; mix-blend-mode: normal; }
.dashboard-page .mv-hero { background: #e8eaec; color: var(--ink); text-align: center; padding: clamp(36px,6vw,80px) 24px; }
.dashboard-page .mv-hero h1 { color: var(--ink); margin-left: auto; margin-right: auto; }
.dashboard-page .mv-hero p,.dashboard-page .mv-hero .mv-welcome { color: var(--muted); }
.dashboard-page .mv-hero .mv-eyebrow { color: #b71d39; }
.dashboard-page .mv-hero::after { display: none; }
.dashboard-page .permissions span { color: #b71d39; background: var(--rose-soft); border-color: #f5d4db; }
.dashboard-page .hospital-label { color: #b71d39; }
.dashboard-page .project-card:hover,
.dashboard-page .hospital-project-grid .project-card:hover { border-color: #edbdc7; }
.dashboard-page .project-button { align-self: flex-start; width: auto; min-height: 44px; border-radius: 999px; padding: 10px 24px; }
.dashboard-page .project-button:hover { background: #c32240; filter: none; box-shadow: 0 8px 20px rgb(219 42 74 / 12%); }
.chillers-app .brand-logo { width: 42px; height: 42px; flex: 0 0 42px; }
.chillers-app .brand h1 { font-family: "Segoe UI", Arial, sans-serif; font-size: 22px; font-weight: 700; letter-spacing: normal; }
.chillers-app .brand p { font-size: 16px; }
.chillers-app .nav-link { font-size: 16px; }

/* Sign-in follows the dashboard's charcoal header and white presentation. */
.login-page { background: var(--bg); }
.login-page .topbar { display: flex; min-height: 80px; padding: 18px max(4%,calc((100% - 1280px)/2)); background: #3c3c3b; border-color: #3c3c3b; box-shadow: none; }
.login-page .topbar .brand-logo { width: 260px; background: transparent; border-radius: 0; padding: 0; filter: none; mix-blend-mode: normal; }
.login-page .login-container { width: min(1280px,92%); min-height: calc(100dvh - 80px); margin: 0 auto; padding: 64px 0; gap: clamp(40px,7vw,100px); }
.login-page .login-story { align-self: center; background: transparent; min-height: 0; padding: 24px 0; border-radius: 0; overflow: visible; }
.login-page .login-story::after { display: none; }
.login-page .login-story .mv-eyebrow { color: #b71d39; }
.login-page .login-story h2 { color: var(--ink); font-weight: 400; }
.login-page .login-story h2 span { color: var(--brand); }
.login-page .login-story p { max-width: 500px; color: var(--muted); }
.login-page .login-card { background: #fff; border: 1px solid var(--border); padding: 40px; box-shadow: 0 12px 36px rgb(35 31 32 / 5%); }
.login-page #login-button { width: auto; min-width: 180px; min-height: 46px; padding: 10px 28px; border-radius: 999px; background: var(--brand); }
.login-page #login-button:hover:not(:disabled) { background: #c32240; box-shadow: 0 8px 20px rgb(219 42 74 / 12%); }
.login-page #open-change { width: auto; min-height: 44px; padding: 10px 0; font-weight: 500; }
.login-page .form-field input:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(219 42 74 / 12%); }
@media(max-width: 900px) {
  .login-page .login-container { min-height: calc(100dvh - 80px); padding: 36px 0; gap: 28px; }
  .login-page .login-story { width: 100%; max-width: 520px; padding: 0; }
}
@media(max-width: 640px) {
  .login-page .topbar { align-items: center; }
  .login-page .login-container { width: calc(100% - 32px); padding: 28px 0; }
  .login-page .login-card { padding: 28px 24px; }
  .login-page .login-story h2 { font-size: 32px; }
}

/* Quiet gray sections distinguish headers and charts from white cards. */
.chillers-app .panel-header,
.chillers-app .visual-toolbar,
.chillers-app th { background: #f3f4f5; }
.energy-app .chart-header { padding: 14px 16px; background: #f3f4f5; border-radius: 12.5px; }
.oxygen-app .chart-card { background: #f3f4f5; }
@media print {
  body,.dashboard-page,.login-page,.dashboard-page .mv-hero { background: #fff; }
}
