/* PRO MENTANO / G5.1 — Premium Light UI
   Isolated presentation layer; no changes to REST, data or tenancy.
   Brand: deep navy (#1c354a) + calm teal (#0f8280), neutral warm surfaces. */
:root {
  --pmw-ink: #1d3549;
  --pmw-muted: #5c7280;
  --pmw-turq: #0c8984;
  --pmw-surface: #ffffff;
  --pmw-border: #e3e9ed;
  --pmw-bg: #f7f9fa;
  --pmw-focus: #0b8987;
  --pmw-shadow: 0 5px 25px rgba(19,48,67,.035), 0 1px 3px rgba(19,48,67,.025);
  --pmw-radius: 17px;
}
body.pmw-page { color: var(--pmw-ink); background: var(--pmw-bg); font-size: 14px; -webkit-font-smoothing: antialiased; }
body.pmw-page textarea { font-family: inherit; }
.pmw-app { font-size: 14px; }
/* SIDEBAR — muted navy, not a dark slab. White brand belongs here. */
.pmw-sidebar {
  width: 264px;
  padding: 25px 16px 22px;
  color: #dce7ec;
  background: linear-gradient(165deg, #213e52 0%, #192f43 59%, #1b3448 100%);
  border-right: 1px solid rgba(255,255,255,.08);
}
.pmw-sidebar__brand { padding: 3px 12px 29px; }
.pmw-sidebar__brand img { width: 205px; max-width:100%; filter: brightness(0) invert(1); }
.pmw-sidebar__caption,.pmw-nav__label {
  color: #a8bdc8; letter-spacing: 1.25px; font-size: 10px; font-weight: 750;
}
.pmw-sidebar__caption { padding-top: 10px; }
.pmw-sidebar__context {
  padding: 13px 11px; margin: 9px 0 27px; gap: 12px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(236,247,249,.105);
  border-radius: 13px;
}
.pmw-sidebar__avatar {
  width: 38px; height: 38px; border-radius: 11px;
  background: #237f86; color: #fff;
}
.pmw-sidebar__context b { font-weight: 740; color: #fff; font-size: 12px; }
.pmw-sidebar__context small { color: #b0c3cd; font-size: 11px; }
.pmw-nav { gap: 4px; }
.pmw-nav__item {
  border-radius: 11px; min-height: 44px; padding: 12px 13px;
  color: #cadae2; font-size: 13px; font-weight: 580;
  transition: background-color .15s ease, color .15s ease;
}
.pmw-nav__item:hover:not(.is-disabled) { background: rgba(255,255,255,.085); color: #fff; }
.pmw-nav__item.is-active {
  background: rgba(121,199,196,.15);
  box-shadow: inset 3px 0 #5dd5ca;
  color: #fff;
  font-weight: 710;
}
.pmw-nav__item.is-disabled { opacity: .52; }
.pmw-nav__label { padding-top: 27px; }
.pmw-sidebar__bottom { padding: 25px 11px 0; }
.pmw-sidebar__release { color: #e2edf2; }
.pmw-sidebar__release small { color: #a4b9c5; }
.pmw-sidebar__release>span { background: #59d0bb; }
.pmw-sidebar__bottom>a { color: #f3fbfc; }
.pmw-mainwrap { margin-left: 264px; width: calc(100% - 264px); }
/* HEADER — colored brand, visible on the light surface. */
.pmw-topbar {
  min-height: 83px; height: auto; padding: 14px 42px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e9eef0;
  box-shadow: 0 1px 2px rgba(22,54,74,.018);
}
.pmw-topbar__left { display:flex; align-items:center; gap: 25px; min-width:0; }
.pmw-topbar__brand { display:flex; align-items:center; flex: 0 0 auto; padding: 2px 0; }
.pmw-topbar__brand img { display:block; width: 148px; max-height: 34px; height:auto; filter:none; }
.pmw-topbar__crumb {
  border-left:1px solid #e1e8eb; padding-left:25px;
  font-size:13px; color:#637a87; font-weight:560;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.pmw-topbar__crumb span:last-child { color:#425e70; font-weight:670; }
.pmw-topbar__right { gap:18px; }
.pmw-topbar__user { color:#27465b; font-weight:720; }
.pmw-chip {
  background:#edf8f5; color:#1b796e; border:1px solid #d7eee7;
  padding:9px 14px; font-size:10px; font-weight:740;
}
.pmw-chip__dot { background:#23ad98; }
/* CONTENT — warm neutral canvas, generous white cards. */
.pmw-content { max-width: 1800px; padding: 36px 43px 26px; }
.pmw-banner {
  margin-bottom: 35px; padding:15px 18px;
  background:#fffcf3; color:#73613f; border-color:#eee5c8;
  border-radius:12px; font-size:12px; line-height:1.6;
}
.pmw-banner svg { color:#aa8852; }
.pmw-banner>span { color:#998360; }
.pmw-panel__head { margin-bottom: 30px; align-items:center; }
.pmw-panel__head h1 { font-size:clamp(28px,2.1vw,34px); letter-spacing:-1.1px; line-height:1.19; margin:11px 0 9px; font-weight:760; }
.pmw-panel__head p { font-size:13.5px; color:#5c7280; line-height:1.7; max-width:700px; }
.pmw-overline,.pmw-label { color:#187674; letter-spacing:1.5px; font-size:10px; }
.pmw-metrics { gap:16px; margin-bottom:23px; }
.pmw-metric,.pmw-card {
  background:#fff; border:1px solid var(--pmw-border);
  border-radius:var(--pmw-radius); box-shadow:var(--pmw-shadow);
}
.pmw-metric { min-height:152px; padding:23px 24px; }
.pmw-metric>span { font-size:12px; color:#5c7280; font-weight:630; }
.pmw-metric strong { color:#1d384e; font-size:36px; margin:15px 0 10px; font-weight:760; }
.pmw-metric small { font-size:11px; color:#5c7280; }
.pmw-metric i { border-radius:11px; right:18px; top:18px; background:#edf7f6; color:#167e81; }
.pmw-metric--warn i { background:#fff2e9; color:#c58959; }
.pmw-card { padding:29px 29px 30px; }
.pmw-card h2 { font-size:17px; color:#1e354a; font-weight:730; letter-spacing:-.3px; }
.pmw-card__heading { margin-bottom:23px; }
.pmw-overview-grid { gap:22px; }
.pmw-counter { background:#f1f6f7; color:#5c7280; font-weight:680; padding:8px 12px; }
/* Dashboard help — no heavy navy rectangle. */
.pmw-card--help {
  background:linear-gradient(140deg,#ffffff 0%,#f3faf9 100%);
  border:1px solid #d9eae7; color:#234458;
  padding:31px 31px 33px; box-shadow:var(--pmw-shadow);
}
.pmw-card--help .pmw-overline { color:#258582; }
.pmw-card--help h2 { color:#193b4c; font-size:23px; font-weight:760; line-height:1.35; margin:14px 0; }
.pmw-card--help p { color:#58747f; line-height:1.8; }
.pmw-steps { border-top:1px solid #dceae8; }
.pmw-steps span { color:#456b77; }
.pmw-steps b { background:#e2f3f1; color:#13837d; font-weight:790; }
/* Tables */
.pmw-table { font-size:12.5px; }
.pmw-table th {
  background:#f8fafb; color:#617989; font-size:10px;
  letter-spacing:.8px; padding:14px 14px;
  border-bottom:1px solid #e7eef0;
}
.pmw-table td { padding:18px 14px; color:#4a687c; border-bottom:1px solid #f0f3f5; line-height:1.55; }
.pmw-table td b { color:#234156; font-weight:730; }
.pmw-table tbody tr:hover { background:#fbfdfd; }
.pmw-link-button { color:#0b817d; font-weight:760; }
.pmw-inline-action {
  background:#f1faf9; border:1px solid #d1e9e7; color:#176d75;
  border-radius:9px; padding:9px 13px; font-weight:710;
}
.pmw-inline-action:hover { background:#e5f4f1; }
.pmw-inline-action--ghost { background:#fff; border-color:#dce8e9; }
.pmw-status { background:#e9f6ef; color:#257b57; font-weight:720; padding:7px 11px; }
.pmw-status--planned { background:#eaf3fa; color:#366b93; }
.pmw-status--in_progress { background:#fcf3e3; color:#956924; }
.pmw-status--completed { background:#e7f5ee; color:#287453; }
.pmw-status--cancelled { background:#f7f0f0; color:#965b5b; }
/* Forms — large enough for field work, subtle focus, consistent button geometry. */
.pmw-form { gap:11px; }
.pmw-form label { color:#35536a; font-size:12px; font-weight:710; }
.pmw-form input,.pmw-form select,.pmw-form textarea {
  background:#fff; border:1px solid #d8e3e8;
  border-radius:11px; color:#213d50; font-size:13px;
  padding:12px 15px; transition:border-color .15s ease,box-shadow .15s ease;
}
.pmw-form input,.pmw-form select { min-height:47px; }
.pmw-form input:hover:not(:disabled),.pmw-form select:hover:not(:disabled),.pmw-form textarea:hover:not(:disabled) { border-color:#b8ced5; }
.pmw-form input:focus,.pmw-form select:focus,.pmw-form textarea:focus {
  border-color:#3eaaa3; outline:none;
  box-shadow:0 0 0 3px rgba(31,155,146,.14);
}
.pmw-form input::placeholder,.pmw-form textarea::placeholder { color:#718694; opacity:1; }
.pmw-form select:disabled,.pmw-form input:disabled { background:#f5f7f7; color:#758894; }
.pmw-button {
  min-height:44px; border-radius:10px; padding:12px 18px;
  background:#1e465e; color:#fff!important;
  font-size:12.5px; font-weight:720;
  box-shadow:0 2px 5px rgba(21,59,82,.07);
  transition:background-color .15s ease,transform .15s ease;
}
.pmw-button:hover:not(:disabled) { background:#286179; }
.pmw-button:active:not(:disabled) { transform:translateY(1px); }
.pmw-button--soft {
  color:#1e5364!important; background:#edf5f7!important;
  border:1px solid #dae9ed; box-shadow:none;
}
.pmw-button--soft:hover { background:#e2eff1!important; }
.pmw-button--outline { color:#2c5267!important; background:#fff; border:1px solid #dbe6e9; box-shadow:none; }
.pmw-button--outline:hover { background:#f5faf9; }
.pmw-placeholder { color:#5c7280; background:#f8fbfc; border:1px dashed #d5e3e9; padding:25px; border-radius:11px; }
.pmw-flash { border-radius:11px; background:#edf9f1; border-color:#c9ead6; }
.pmw-flash.is-error { background:#fff5f4; border-color:#eed0ce; }
.pmw-account-card dl>div,.pmw-g5-history { border-color:#e8eff0; }
.pmw-content__footer { color:#617783; border-color:#e4ebee; margin-top:60px; }
/* login and empty states get the colored logo on light background */
.pmw-auth,.pmw-empty { background:#f7faf9; }
.pmw-auth__card { border-radius:22px; border-color:#e1eaec; box-shadow:0 14px 65px rgba(27,72,84,.085); }
/* Accessibility: never hide focus. Reduced motion honors OS settings. */
.pmw-app button:focus-visible,.pmw-app a:focus-visible { outline:3px solid #42afa5; outline-offset:3px; }
@media (max-width:1250px) {
  .pmw-content { padding:30px 26px 22px; }
  .pmw-topbar { padding:13px 27px; }
  .pmw-topbar__brand img { width:132px; }
  .pmw-topbar__left { gap:17px; }
  .pmw-topbar__crumb { padding-left:17px; }
}
@media (max-width:900px) {
  .pmw-mainwrap { margin-left:0; width:100%; }
  .pmw-sidebar { box-shadow:17px 0 45px rgba(18,40,54,.24); }
  .pmw-mobile-menu { border:1px solid #e0e9eb; background:#f4f8f9; color:#28465a; }
  .pmw-topbar { min-height:74px; }
}
@media (max-width:600px) {
  .pmw-content { padding:20px 16px 22px; }
  .pmw-topbar { padding:12px 15px; min-height:69px; gap:10px; }
  .pmw-topbar__left { gap:11px; flex:1; min-width:0; }
  .pmw-topbar__brand img { width:116px; }
  .pmw-topbar__crumb { padding-left:11px; font-size:11px; }
  .pmw-topbar__right { gap:8px; }
  .pmw-chip { padding:7px 8px; font-size:9px; }
  .pmw-panel__head h1 { font-size:28px; }
  .pmw-panel__head { margin-bottom:22px; }
  .pmw-metrics { gap:12px; }
  .pmw-metric { padding:18px; min-height:136px; }
  .pmw-metric strong { font-size:30px; }
  .pmw-card { padding:22px 19px; }
  .pmw-card--help { padding:24px 21px; }
  .pmw-banner { padding:13px 14px; margin-bottom:24px; }
}
@media (max-width:395px) {
  .pmw-topbar__brand img { width:105px; }
  .pmw-topbar__crumb { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .pmw-nav__item,.pmw-form input,.pmw-form select,.pmw-form textarea,.pmw-button { transition:none; }
  .pmw-button:active:not(:disabled) { transform:none; }
}
/* G5.2 — Calendar și dată RO (zz/ll/aaaa) */
.pmw-date-field { position:relative; min-width:0; }
.pmw-form .pmw-date-field>input { width:100%; box-sizing:border-box; padding-right:48px; }
.pmw-date-trigger { position:absolute; top:4px; right:5px; width:40px; height:39px; display:grid; place-items:center; border:0; border-radius:8px; color:#1b7778; background:#eaf5f3; cursor:pointer; font-size:22px; line-height:1; }
.pmw-date-trigger:hover { background:#d6eeea; }
.pmw-date-trigger:focus-visible {outline:3px solid #0c8984;outline-offset:2px;}
.pmw-datepicker {position:absolute;z-index:1000;top:calc(100% + 7px);left:0;width:310px;max-width:calc(100vw - 35px);box-sizing:border-box;padding:12px;border:1px solid #dbe8e8;border-radius:14px;background:#fff;box-shadow:0 14px 42px rgba(24,49,64,.16);color:#1e394d;}
.pmw-datepicker[hidden]{display:none!important}
.pmw-datepicker__header {display:flex;align-items:center;justify-content:space-between;gap:3px;margin-bottom:10px;}
.pmw-datepicker__header strong {font-size:13px;text-transform:capitalize;white-space:nowrap;flex:1;text-align:center;}
.pmw-datepicker__header button,.pmw-datepicker__grid button,.pmw-datepicker__today {cursor:pointer;color:#2f5263;border:0;background:transparent;border-radius:8px;min-height:35px;}
.pmw-datepicker__header button {min-width:28px;padding:3px;font-size:21px;}
.pmw-datepicker__header button:hover,.pmw-datepicker__grid button:hover {background:#eef7f6;}
.pmw-datepicker__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center;align-items:center;}
.pmw-datepicker__weekday{font-size:10px;font-weight:800;color:#728795;padding:8px 0;}
.pmw-datepicker__day{font-size:12px;font-weight:650;padding:2px!important;min-width:0;}
.pmw-datepicker__day.is-today{outline:1px solid #0f8986;outline-offset:-2px;}
.pmw-datepicker__day.is-selected {background:#0c8984!important;color:#fff;}
.pmw-datepicker__today{width:100%;margin-top:9px;background:#edf8f5;border:1px solid #d7eee7;color:#187c78;font-weight:740;}
@media(max-width:600px){.pmw-datepicker{left:auto;right:0;width:min(310px,calc(100vw - 32px));}}

.pmw-datepicker.pmw-datepicker--above{top:auto;bottom:calc(100% + 7px);}


/* G5.7 — Explicit create/back navigation, isolated to Intervenții. */
.pmw-g5-register-heading { flex-wrap:wrap; row-gap:13px; }
.pmw-g5-register-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:10px; }
.pmw-g5-new { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:41px; padding:10px 15px; background:#0e807c; border:1px solid #0e807c; border-radius:10px; color:#fff; font:inherit; font-size:12.5px; font-weight:730; line-height:1.35; cursor:pointer; transition:background-color .15s ease; }
.pmw-g5-new:hover { background:#096d69; border-color:#096d69; }
.pmw-g5-new span { font-size:19px; font-weight:450; line-height:0.7; }
.pmw-g5-editor-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; margin-bottom:13px; }
.pmw-g5-editor-heading h2 { margin:0; }
.pmw-g5-back { display:inline-flex; gap:7px; align-items:center; padding:8px 11px; min-height:36px; border:1px solid #dce7ea; border-radius:9px; background:#fff; color:#35586a; font:inherit; font-size:11.5px; font-weight:710; cursor:pointer; }
.pmw-g5-back:hover { background:#eef6f7; }
.pmw-g5-new:focus-visible,.pmw-g5-back:focus-visible { outline:3px solid #2fc3b8; outline-offset:3px; }
@media(max-width:600px) {
  .pmw-g5-register-heading { align-items:stretch; }
  .pmw-g5-register-actions { justify-content:space-between; width:100%; }
  .pmw-g5-new { flex:1 1 200px; }
}
@media(prefers-reduced-motion:reduce) { .pmw-g5-new { transition:none; } }

/* G5.8 — 24h scheduled-time dropdown and technician registry. */
.pmw-time-help { display:block; margin-top:6px; color:#587180; font-size:11px; line-height:1.4; }
.pmw-roster-help { margin-top:9px; line-height:1.6; }
#pmw-g5-time { font-variant-numeric:tabular-nums; font-feature-settings:'tnum'; cursor:pointer; }
#pmw-tech-editor .pmw-form { max-width:650px; }
#pmw-tech-register .pmw-table td { vertical-align:middle; }
