/*
 * PLM Core 1.54.0 — professional appearance system.
 * Themes and backgrounds are selected per user; application behaviour is unchanged.
 */

:root {
  --plm-153-bg: #f4f7fb;
  --plm-153-surface: #ffffff;
  --plm-153-surface-soft: #f8fafc;
  --plm-153-line: #e1e7ef;
  --plm-153-line-strong: #cfd8e6;
  --plm-153-text: #172033;
  --plm-153-muted: #667085;
  --plm-153-blue: #2563eb;
  --plm-153-blue-dark: #1d4ed8;
  --plm-153-radius: 11px;
  --plm-153-shadow: 0 1px 2px rgba(15, 23, 42, .025), 0 5px 18px rgba(15, 23, 42, .035);
  --plm-153-focus: 0 0 0 3px rgba(37, 99, 235, .12);
}

html,
body {
  color: var(--plm-153-text);
  background: var(--plm-153-bg);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.main {
  min-width: 0;
  background: linear-gradient(180deg, #f9fbfe 0, var(--plm-153-bg) 210px);
}

.top {
  gap: 18px;
  border-bottom-color: var(--plm-153-line);
}

.top h1 {
  color: var(--plm-153-text);
  line-height: 1.16;
}

.top > .actions {
  min-width: 0;
  align-items: center;
}

.panel,
.card,
.plm-section-intro,
.plm-organise-card {
  border-color: var(--plm-153-line);
  box-shadow: var(--plm-153-shadow);
}

.panel {
  overflow-wrap: anywhere;
}

.panel h2,
.panel h3,
.card h3 {
  color: var(--plm-153-text);
  letter-spacing: -.015em;
}

.panel > .toolbar:first-child {
  gap: 14px;
}

.toolbar > div:first-child,
.record-main,
.task-main,
.table-head-copy {
  min-width: 0;
}

.muted,
.toolbar p,
.field small {
  color: var(--plm-153-muted);
}

.btn,
.mini,
button,
input,
select,
textarea,
.grouping-picker > summary,
.column-picker > summary {
  font-family: inherit;
}

.btn,
.mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn {
  min-height: 38px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(37, 99, 235, .14);
}

.mini {
  min-height: 34px;
  border-radius: 7px;
}

.btn:hover,
.mini:hover {
  transform: none;
}

.btn:focus-visible,
.mini:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--plm-153-focus);
}

.field {
  min-width: 0;
}

.field label,
.filters .field label {
  color: #475467;
  font-weight: 800;
  letter-spacing: .025em;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.filters input:not([type="checkbox"]):not([type="radio"]),
.filters select,
.saved-view-switch select,
.group-filter-wrap select,
.grouping-picker > summary,
.column-picker > summary {
  width: 100%;
  height: 38px;
  min-height: 38px;
  border-color: #d7dee8;
  border-radius: 8px;
  background-color: #fff;
  color: #344054;
}

.field textarea {
  width: 100%;
  min-height: 92px;
  border-color: #d7dee8;
  border-radius: 8px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
  opacity: 1;
}

.filters {
  border-color: var(--plm-153-line);
  background: #fafbfd;
}

.filters::before,
.table-tool-label,
.date-legend-label,
.eyebrow,
.plm-kicker {
  letter-spacing: .075em;
}

.fields,
.tables-grid-wrap {
  border-color: var(--plm-153-line);
  box-shadow: none;
}

.fields th,
.tables-grid th {
  color: #667085;
  background: var(--plm-153-surface-soft);
  font-weight: 800;
  letter-spacing: .035em;
  vertical-align: middle;
}

.fields td,
.tables-grid td {
  vertical-align: middle;
  border-color: #edf0f4;
}

.fields tbody tr:hover,
.tables-grid tbody tr:hover {
  background: #fbfcfe;
}

.actions {
  align-items: center;
}

.actions form {
  margin: 0;
}

.record-list-item,
.task-row,
.brief-task,
.activity-item,
.table-list-row,
.record-card,
.record-value,
.related-item {
  border-color: var(--plm-153-line) !important;
}

.record-list-item:hover,
.task-row:hover,
.brief-task:hover,
.activity-item:hover,
.table-list-row:hover,
.record-card:hover {
  border-color: var(--plm-153-line-strong) !important;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .045) !important;
}

.summary-card,
.record-card,
.record-value,
.related-item {
  background: var(--plm-153-surface);
}

.summary-card {
  border-color: var(--plm-153-line);
}

.pill,
.importance-pill,
.group-chip,
.plm-stat,
.table-count {
  line-height: 1.15;
}

.notice {
  border-color: #bad1fb;
  background: #f4f8ff;
  color: #264777;
}

.modal {
  padding: 18px;
  backdrop-filter: blur(2px);
}

.modalbox {
  border: 1px solid rgba(255, 255, 255, .8);
}

.modalbox > .toolbar:first-child {
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #edf0f4;
}

/* Keep the verified 1.52 table controls equal, contained, and spacious. */
.plm-page-table .table-page-head,
.plm-page-tables .table-page-head {
  column-gap: 22px;
}

.plm-page-table .table-head-controls,
.plm-page-tables .table-head-controls {
  gap: 9px;
  padding-right: 3px;
}

.plm-page-table .saved-view-switch select,
.plm-page-tables .saved-view-switch select,
.plm-page-table .header-save-view > details > summary,
.plm-page-tables .header-save-view > details > summary,
.plm-page-table .table-section-tabs .mini,
.plm-page-tables .table-section-tabs .mini {
  height: 36px !important;
  min-height: 36px !important;
}

.plm-page-table .filters,
.plm-page-tables .filters {
  padding: 10px 20px 10px 10px !important;
  gap: 8px !important;
}

.plm-page-table .filters .field,
.plm-page-table .filters .grouping-field,
.plm-page-table .filters .visible-columns-field,
.plm-page-tables .filters .field,
.plm-page-tables .filters .grouping-field,
.plm-page-tables .filters .visible-columns-field {
  min-width: 0 !important;
}

.plm-page-table .filters .grouping-picker > summary,
.plm-page-table .filters .column-picker > summary,
.plm-page-table .filters .field input,
.plm-page-table .filters .field select,
.plm-page-table .filters > .mini,
.plm-page-table .filters > .btn,
.plm-page-tables .filters .grouping-picker > summary,
.plm-page-tables .filters .column-picker > summary,
.plm-page-tables .filters .field input,
.plm-page-tables .filters .field select,
.plm-page-tables .filters > .mini,
.plm-page-tables .filters > .btn {
  height: 36px !important;
  min-height: 36px !important;
}

.plm-page-table .viewbar,
.plm-page-tables .viewbar,
.plm-page-tables .table-home-tools {
  padding-right: 10px !important;
}

.plm-page-table .tables-grid-wrap,
.plm-page-tables .tables-grid-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.plm-page-table .fields,
.plm-page-tables .fields,
.plm-page-table .tables-grid,
.plm-page-tables .tables-grid {
  min-width: max-content;
}

.plm-page-table .fields th:last-child,
.plm-page-table .fields td:last-child,
.plm-page-tables .fields th:last-child,
.plm-page-tables .fields td:last-child {
  padding-right: 16px;
}

@media (max-width: 1100px) {
  .top {
    align-items: flex-start;
  }

  .top > .actions {
    justify-content: flex-end;
  }

  .toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 780px) {
  .top > .actions {
    gap: 6px;
  }

  .panel > .toolbar:first-child {
    flex-wrap: wrap;
  }

  .plm-page-table .table-head-controls,
  .plm-page-tables .table-head-controls {
    padding-right: 0;
  }

  .plm-page-table .filters,
  .plm-page-tables .filters {
    padding: 10px 14px 10px 10px !important;
  }
}

@media (max-width: 680px) {
  .modal {
    padding: 8px;
  }

  .top {
    align-items: flex-start;
  }

  .top > .actions {
    justify-content: flex-start;
  }

  .btn,
  .mini {
    min-height: 38px;
  }
}

/* 1.54.0 — per-user themes and professional backgrounds */
.appearance-settings h3 {
  margin: 18px 0 10px;
  font-size: 13px;
  color: #475467;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.appearance-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.appearance-choice,
.background-choice {
  position: relative;
  display: flex;
  cursor: pointer;
}

.appearance-choice {
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid #dfe5ee;
  border-radius: 11px;
  background: #fff;
}

.appearance-choice:hover,
.background-choice:hover {
  border-color: #9ab8ec;
}

.appearance-choice:has(input:checked),
.background-choice:has(input:checked) {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.appearance-choice > input,
.background-choice > input {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2563eb;
}

.appearance-choice strong {
  font-size: 13px;
  color: #253247;
}

.appearance-choice small {
  min-height: 34px;
  color: #667085;
  line-height: 1.35;
}

.appearance-sample {
  position: relative;
  display: grid;
  grid-template-columns: 24% 1fr;
  grid-template-rows: 18px 1fr;
  width: 100%;
  height: 82px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 8px;
  background: #f4f7fb;
}

.appearance-sample i {
  grid-row: 1 / 3;
  background: #101b30;
}

.appearance-sample b {
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.appearance-sample em {
  align-self: center;
  justify-self: center;
  width: 76%;
  height: 39px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15,23,42,.06);
}

.theme-soft .appearance-sample { background: #eef1f5; }
.theme-soft .appearance-sample i { background: #273449; }
.theme-ocean .appearance-sample { background: #eaf5fb; }
.theme-ocean .appearance-sample i { background: #0e4a6d; }
.theme-ocean .appearance-sample em { border-color: #b8d9ea; }
.theme-midnight .appearance-sample { background: #111827; }
.theme-midnight .appearance-sample i { background: #070b14; }
.theme-midnight .appearance-sample b { background: #182235; border-color: #2d3b51; }
.theme-midnight .appearance-sample em { background: #202c3f; border-color: #3d4b61; }

.background-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.background-choice {
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  background: #fff;
}

.background-choice > span {
  width: 48px;
  height: 34px;
  flex: 0 0 48px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 6px;
  background: #f4f7fb;
}

.background-choice strong {
  padding-right: 18px;
  color: #344054;
  font-size: 12px;
}

.background-mist > span { background: radial-gradient(circle at 25% 20%, #dbeafe 0, transparent 45%), linear-gradient(135deg,#f8fbff,#eaf2fc); }
.background-aurora > span { background: radial-gradient(circle at 10% 20%, #d1fae5 0, transparent 40%), radial-gradient(circle at 90% 70%, #dbeafe 0, transparent 48%), #f8fafc; }
.background-sand > span { background: linear-gradient(135deg,#fffaf0,#f5ead5); }
.background-geometry > span { background-color:#f5f7fa;background-image:linear-gradient(30deg,#e6ebf2 12%,transparent 12.5%,transparent 87%,#e6ebf2 87.5%,#e6ebf2),linear-gradient(150deg,#e6ebf2 12%,transparent 12.5%,transparent 87%,#e6ebf2 87.5%,#e6ebf2);background-size:18px 31px; }

.appearance-note {
  margin: 12px 0 15px;
  color: #667085;
  font-size: 12px;
}

body.plm-theme-soft { --plm-153-bg:#eef1f5; --plm-153-line:#d9e0e9; }
body.plm-theme-soft .nav { background: linear-gradient(180deg,#273449 0,#1e293b 100%); }
body.plm-theme-soft .main { background-color:#eef1f5; }
body.plm-theme-soft .panel,
body.plm-theme-soft .card { box-shadow:0 1px 2px rgba(15,23,42,.035),0 4px 14px rgba(15,23,42,.025); }

body.plm-theme-ocean { --accent:#1683b8; --accent-dark:#0f6f9f; --plm-153-blue:#1683b8; --plm-153-blue-dark:#0f6f9f; --plm-153-bg:#edf6fa; --plm-153-line:#d8e7ee; }
body.plm-theme-ocean .nav { background:linear-gradient(180deg,#0e4a6d 0,#0a3855 100%); }
body.plm-theme-ocean .nav a.on { background:linear-gradient(90deg,#176e9b,#155c83); box-shadow:inset 3px 0 #8bd8fa; }
body.plm-theme-ocean .brand:before,
body.plm-theme-ocean .btn { background:#1683b8; border-color:#1683b8; }
body.plm-theme-ocean .btn:hover { background:#0f6f9f; border-color:#0f6f9f; }
body.plm-theme-ocean .top:after { background:#1683b8; }

body.plm-background-mist .main { background-color:#f2f7fd;background-image:radial-gradient(circle at 18% 8%,rgba(191,219,254,.55) 0,transparent 29%),radial-gradient(circle at 88% 30%,rgba(224,242,254,.62) 0,transparent 34%);background-attachment:fixed; }
body.plm-background-aurora .main { background-color:#f5f8f8;background-image:radial-gradient(circle at 12% 12%,rgba(167,243,208,.28) 0,transparent 27%),radial-gradient(circle at 82% 22%,rgba(191,219,254,.42) 0,transparent 33%),radial-gradient(circle at 52% 88%,rgba(221,214,254,.25) 0,transparent 32%);background-attachment:fixed; }
body.plm-background-sand .main { background-color:#f8f4ec;background-image:linear-gradient(145deg,rgba(255,255,255,.62),rgba(236,222,196,.35));background-attachment:fixed; }
body.plm-background-geometry .main { background-color:#f3f5f8;background-image:linear-gradient(30deg,rgba(203,213,225,.18) 12%,transparent 12.5%,transparent 87%,rgba(203,213,225,.18) 87.5%,rgba(203,213,225,.18)),linear-gradient(150deg,rgba(203,213,225,.18) 12%,transparent 12.5%,transparent 87%,rgba(203,213,225,.18) 87.5%,rgba(203,213,225,.18));background-size:46px 80px;background-attachment:fixed; }

body.plm-theme-midnight {
  --bg:#0f1724;
  --panel:#1b2638;
  --text:#e7edf6;
  --muted:#aab6c7;
  --border:#344258;
  --soft:#202c3f;
  --plm-153-bg:#0f1724;
  --plm-153-surface:#1b2638;
  --plm-153-surface-soft:#202c3f;
  --plm-153-line:#344258;
  --plm-153-line-strong:#4b5c74;
  --plm-153-text:#e7edf6;
  --plm-153-muted:#aab6c7;
}

body.plm-theme-midnight,
body.plm-theme-midnight .main { background-color:#0f1724;color:#e7edf6; }
body.plm-theme-midnight .main { background-image:linear-gradient(180deg,#121d2d 0,#0f1724 230px); }
body.plm-theme-midnight .nav { background:linear-gradient(180deg,#070b14 0,#0b1220 100%);border-right-color:#263247; }
body.plm-theme-midnight .panel,
body.plm-theme-midnight .card,
body.plm-theme-midnight .summary-card,
body.plm-theme-midnight .record-card,
body.plm-theme-midnight .record-value,
body.plm-theme-midnight .record-list-item,
body.plm-theme-midnight .task-row,
body.plm-theme-midnight .brief-task,
body.plm-theme-midnight .activity-item,
body.plm-theme-midnight .table-list-row,
body.plm-theme-midnight .related-item,
body.plm-theme-midnight .plm-section-intro,
body.plm-theme-midnight .plm-organise-card,
body.plm-theme-midnight .time-band-card,
body.plm-theme-midnight .calendar-preview { background:#1b2638!important;border-color:#344258!important;color:#e7edf6; }
body.plm-theme-midnight .top,
body.plm-theme-midnight .panel > .toolbar:first-child,
body.plm-theme-midnight .modalbox > .toolbar:first-child { border-color:#344258; }
body.plm-theme-midnight h1,
body.plm-theme-midnight h2,
body.plm-theme-midnight h3,
body.plm-theme-midnight .panel h2,
body.plm-theme-midnight .panel h3,
body.plm-theme-midnight .card h3,
body.plm-theme-midnight .record-list-title,
body.plm-theme-midnight .task-title,
body.plm-theme-midnight .activity-title { color:#f4f7fb!important; }
body.plm-theme-midnight .muted,
body.plm-theme-midnight .toolbar p,
body.plm-theme-midnight .field small,
body.plm-theme-midnight .record-meta,
body.plm-theme-midnight .task-meta { color:#aab6c7!important; }
body.plm-theme-midnight input:not([type="checkbox"]):not([type="radio"]),
body.plm-theme-midnight select,
body.plm-theme-midnight textarea,
body.plm-theme-midnight .mini,
body.plm-theme-midnight .grouping-picker > summary,
body.plm-theme-midnight .column-picker > summary { background:#202c3f!important;border-color:#46556d!important;color:#e7edf6!important; }
body.plm-theme-midnight .filters,
body.plm-theme-midnight .table-home-tools,
body.plm-theme-midnight .view-switch,
body.plm-theme-midnight .fields th,
body.plm-theme-midnight .tables-grid th { background:#172235!important;border-color:#344258!important;color:#aab6c7!important; }
body.plm-theme-midnight .fields td,
body.plm-theme-midnight .tables-grid td { border-color:#2d3a4e;color:#e7edf6; }
body.plm-theme-midnight .fields tbody tr:hover,
body.plm-theme-midnight .tables-grid tbody tr:hover { background:#202c3f; }
body.plm-theme-midnight .modalbox,
body.plm-theme-midnight .column-picker-menu,
body.plm-theme-midnight .grouping-menu,
body.plm-theme-midnight .status-picker-menu { background:#1b2638;color:#e7edf6;border-color:#46556d; }
body.plm-theme-midnight .appearance-settings { background:#1b2638!important; }
body.plm-theme-midnight .appearance-choice,
body.plm-theme-midnight .background-choice { background:#202c3f;border-color:#46556d; }
body.plm-theme-midnight .appearance-choice strong,
body.plm-theme-midnight .background-choice strong,
body.plm-theme-midnight .appearance-settings h3 { color:#e7edf6; }
body.plm-theme-midnight .appearance-choice small,
body.plm-theme-midnight .appearance-note { color:#aab6c7; }

body.plm-theme-midnight.plm-background-mist .main,
body.plm-theme-midnight.plm-background-aurora .main,
body.plm-theme-midnight.plm-background-sand .main,
body.plm-theme-midnight.plm-background-geometry .main { background-blend-mode:soft-light; }

@media (max-width: 1100px) {
  .appearance-options { grid-template-columns:repeat(2,minmax(160px,1fr)); }
  .background-options { grid-template-columns:repeat(3,minmax(120px,1fr)); }
}

@media (max-width: 680px) {
  .appearance-options,
  .background-options { grid-template-columns:1fr; }
  .appearance-choice small { min-height:0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.maintenance-myday-list{display:grid;gap:7px}.maintenance-myday-list>a{display:grid;grid-template-columns:55px minmax(220px,1fr) auto auto;align-items:center;gap:12px;padding:10px;border:1px solid var(--border);border-radius:9px;background:#fff;color:inherit;text-decoration:none}.maintenance-myday-list>a:hover{border-color:#b9c8dc;background:#f8fafc}.maintenance-myday-list small{display:block;color:var(--muted)}.maintenance-source{display:flex;align-items:center;gap:8px}.maintenance-source label{font-size:11px;font-weight:850;text-transform:uppercase;color:#667085}.maintenance-source select{height:36px;border:1px solid var(--border);border-radius:7px;background:#fff;padding:7px 30px 7px 9px}@media(max-width:700px){.maintenance-myday-list>a{grid-template-columns:50px 1fr}.maintenance-myday-list>a>*:nth-child(n+3){grid-column:2}}

/* PLM 1.64.5: compact visible-column selector and full record notes. */
.column-picker-menu{width:320px!important;max-width:min(320px,calc(100vw - 36px))!important;max-height:340px!important;padding:7px!important;overscroll-behavior:contain}
.column-picker-menu label{display:grid!important;grid-template-columns:18px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;min-height:34px!important;padding:6px 8px!important;font-size:12px!important;line-height:1.25!important}
.column-picker-menu input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;margin:0!important;padding:0!important;accent-color:#2563eb}
.column-picker-menu label:has(input:checked){background:#eff6ff;color:#174c9c;font-weight:700}
.record-notes-panel{margin-top:20px}
.record-notes-panel textarea{box-sizing:border-box;width:100%;min-height:240px;padding:14px 15px;border:1px solid #cfd8e6;border-radius:10px;background:#fff;color:#172033;font:inherit;line-height:1.55;resize:vertical}
.record-notes-panel textarea:focus{border-color:#4f83e6;outline:3px solid rgba(37,99,235,.12)}
.record-notes-actions{display:flex;justify-content:flex-end;margin-top:10px}
.nav-divider{height:1px;margin:8px 12px;background:rgba(255,255,255,.15)}
.nav-divider-half{width:48%;margin-left:12px}
.maintenance-history-tools{display:flex;align-items:center;gap:8px;margin:12px 0}
.maintenance-history-tools input{flex:1;min-width:180px;height:38px}
.maintenance-history .history-row{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:8px 16px;align-items:center}
.maintenance-history .history-row small{grid-column:1/-1;color:#64748b;white-space:pre-wrap}
@media(max-width:700px){.maintenance-history-tools{align-items:stretch;flex-direction:column}.maintenance-history .history-row{grid-template-columns:1fr}}

/* PLM 1.64.7: maintenance controls, homogeneous results and isolated calendars. */
.plm-page-pms .maintenance-viewbar,.plm-page-hms .maintenance-viewbar,.plm-page-ojm .maintenance-viewbar{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:9px}
.plm-page-pms .maintenance-notes-toolbar,.plm-page-hms .maintenance-notes-toolbar,.plm-page-ojm .maintenance-notes-toolbar{position:static;display:flex;flex:0 0 auto;width:auto;height:auto;margin:0 auto;gap:8px}
.plm-page-pms .maintenance-viewbar .view-switch,.plm-page-hms .maintenance-viewbar .view-switch,.plm-page-ojm .maintenance-viewbar .view-switch{margin-left:0}
.maintenance-ranges{flex-wrap:nowrap!important;max-width:100%;overflow-x:auto;scrollbar-width:thin;white-space:nowrap}
.maintenance-ranges>*{flex:0 0 auto}
.maintenance-combined-ranges{gap:6px}.maintenance-range-divider{width:1px;height:26px;margin:0 4px;background:#d7dee8}.maintenance-range-show-all{margin-left:auto}
.plm-page-pms .maintenance-results,.plm-page-hms .maintenance-results,.plm-page-ojm .maintenance-results{padding:14px!important;overflow:hidden}
.maintenance-results>.toolbar{margin-bottom:8px}.maintenance-results>.toolbar h2{margin-bottom:2px}
.maintenance-table-wrap{max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.maintenance-table{width:max-content!important;min-width:100%!important;table-layout:auto}
.maintenance-table th,.maintenance-table td{min-width:92px;white-space:normal;word-break:normal;overflow-wrap:normal;vertical-align:middle}
.maintenance-table th{padding:9px 10px;line-height:1.25}.maintenance-table td{padding:10px}
.maintenance-table th:nth-child(3),.maintenance-table td:nth-child(3){min-width:210px}
.maintenance-table th:last-child,.maintenance-table td:last-child{min-width:310px;white-space:nowrap}
.maintenance-table .actions{flex-wrap:nowrap;gap:6px}.maintenance-table .actions .mini{min-height:34px;white-space:nowrap}
.maintenance-date,.maintenance-hours,.maintenance-days-colour{box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;min-height:31px;padding:5px 9px;border-radius:5px;font-size:12px;line-height:1.2;font-weight:500;white-space:nowrap}
.maintenance-hours.range-overdue,.maintenance-days-colour.range-expired{font-weight:800}
.maintenance-table .importance-pill,.maintenance-table .pill{display:inline-flex;align-items:center;justify-content:center;min-height:27px;box-sizing:border-box}
.maintenance-table .actions{align-items:center}.maintenance-table .actions .mini,.maintenance-table .actions form{margin:0}
.maintenance-filters .column-picker>.picker-pop{width:230px!important;max-width:min(230px,calc(100vw - 32px))!important;max-height:300px!important;overflow:auto!important;padding:6px!important;gap:2px!important}
.maintenance-filters .column-picker>.picker-pop label{display:grid!important;grid-template-columns:16px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;min-height:29px!important;margin:0!important;padding:4px 6px!important;font-size:11px!important;line-height:1.2!important}
.maintenance-filters .column-picker>.picker-pop input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;margin:0!important;padding:0!important}
.maintenance-filters .column-picker>.picker-pop label:has(input:checked){border-radius:5px;background:#eff6ff;color:#174c9c;font-weight:650}
@media(max-width:1100px){.plm-page-pms .maintenance-notes-toolbar,.plm-page-hms .maintenance-notes-toolbar,.plm-page-ojm .maintenance-notes-toolbar{order:3;margin-left:0}.plm-page-pms .maintenance-viewbar .view-switch,.plm-page-hms .maintenance-viewbar .view-switch,.plm-page-ojm .maintenance-viewbar .view-switch{margin-left:auto}}

.maintenance-calendar{scroll-margin-top:20px;overflow:hidden}.maintenance-calendar-title,.maintenance-calendar-nav{display:flex;align-items:center;justify-content:space-between;gap:18px}.maintenance-calendar-title{margin-bottom:14px}.maintenance-calendar-title h2,.maintenance-calendar-nav h3{margin:2px 0}.maintenance-calendar-title .cal-switch{display:flex;flex:0 0 auto;border:1px solid #d8e1ec;border-radius:9px;overflow:hidden}.maintenance-calendar-title .cal-switch a{padding:8px 12px;border-right:1px solid #d8e1ec;background:#fff;color:#475569;text-decoration:none;font-size:12px;font-weight:750}.maintenance-calendar-title .cal-switch a:last-child{border:0}.maintenance-calendar-title .cal-switch a.on{background:#eef4ff;color:#1d4ed8}.maintenance-calendar-nav{margin-bottom:12px;text-align:center}.maintenance-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));min-width:840px}.maintenance-cal-weekdays>div{padding:8px;text-align:center;color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase}.maintenance-cal-day{min-height:115px;padding:8px;border-top:1px solid #e2e8f0;border-right:1px solid #e2e8f0;background:#fff}.maintenance-cal-day:nth-child(7n+1){border-left:1px solid #e2e8f0}.maintenance-cal-day.blank{background:#f8fafc}.maintenance-cal-num{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.maintenance-cal-num>a{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:7px;color:#475569;text-decoration:none;font-size:12px;font-weight:800}.maintenance-cal-day.today .maintenance-cal-num>a{background:#2563eb;color:#fff}.maintenance-cal-num>span{padding:2px 6px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:10px;font-weight:750}.maintenance-cal-entry{display:block;margin:4px 0;padding:6px 7px;border:1px solid #dce7fb;border-left:3px solid #7aa7f8;border-radius:6px;background:#f4f7ff;color:#334e86;text-decoration:none}.maintenance-cal-entry.range-expired{border-left-color:#dc2626;background:#fff1f2;color:#991b1b}.maintenance-cal-entry.range-today{border-left-color:#111827;background:#f1f5f9;color:#111827}.maintenance-cal-entry strong,.maintenance-cal-entry small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maintenance-cal-entry strong{font-size:11px}.maintenance-cal-entry small{margin-top:2px;font-size:9px}.maintenance-week-grid{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));min-width:1015px;gap:8px;overflow-x:auto}.maintenance-week-day{min-height:180px;padding:9px;border:1px solid #dfe6ef;border-radius:9px;background:#fff}.maintenance-week-day.today{outline:2px solid #2563eb}.maintenance-week-head{display:block;margin-bottom:8px;color:#334155;text-decoration:none;font-size:12px;font-weight:800}.maintenance-year-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.maintenance-year-grid>a{display:flex;justify-content:space-between;padding:15px;border:1px solid #dfe6ef;border-radius:9px;background:#fff;color:#334155;text-decoration:none}.maintenance-year-grid span{color:#64748b;font-size:12px}.maintenance-calendar-list{display:grid;gap:7px}.maintenance-calendar-row{display:grid;grid-template-columns:150px minmax(220px,1fr) auto auto;align-items:center;gap:12px;padding:10px;border:1px solid #dfe6ef;border-radius:8px}.maintenance-calendar-row small{display:block;margin-top:3px;color:#64748b}.maintenance-calendar-undated{margin-top:12px;padding:10px;border:1px solid #f1d8a8;border-radius:8px;background:#fffbeb}.maintenance-calendar-undated summary{cursor:pointer;font-weight:800}.maintenance-calendar-undated>a{display:block;margin-top:7px;color:#7c5b12}
@media(max-width:900px){.maintenance-calendar{overflow-x:auto}.maintenance-calendar-title{align-items:flex-start;flex-direction:column}.maintenance-calendar-title .cal-switch{max-width:100%;overflow-x:auto}.maintenance-year-grid{grid-template-columns:repeat(2,1fr)}.maintenance-calendar-row{grid-template-columns:1fr auto}.maintenance-calendar-row>span:first-child{grid-column:1/-1}}
@media(max-width:560px){.maintenance-year-grid{grid-template-columns:1fr}.maintenance-calendar-nav{align-items:stretch;flex-direction:column}.maintenance-calendar-row{grid-template-columns:1fr}.maintenance-calendar-row>span:first-child{grid-column:auto}}

/* PLM 1.64.9: complete maintenance-calendar grid lines and explicit text contrast. */
.maintenance-cal-weekdays{border:1px solid #d8e1ec!important;border-bottom:0!important;background:#f8fafc!important}
.maintenance-cal-weekdays>div{border-right:1px solid #d8e1ec!important;color:#475569!important}
.maintenance-cal-weekdays>div:last-child{border-right:0!important}
.maintenance-cal-grid:not(.maintenance-cal-weekdays){border-top:1px solid #d8e1ec!important;border-left:1px solid #d8e1ec!important}
.maintenance-cal-grid:not(.maintenance-cal-weekdays)>.maintenance-cal-day{height:auto!important;min-height:115px!important;border:0!important;border-right:1px solid #d8e1ec!important;border-bottom:1px solid #d8e1ec!important;color:#334155!important}
.maintenance-cal-num>a{color:#334155!important}.maintenance-cal-day.today .maintenance-cal-num>a{background:#2563eb!important;color:#fff!important}
.maintenance-cal-num>span{background:#eaf0f7!important;color:#475569!important}
.maintenance-cal-entry{color:#334e86!important}.maintenance-cal-entry strong,.maintenance-cal-entry small{color:inherit!important}
.maintenance-cal-entry.range-expired,.maintenance-cal-entry.range-expired strong,.maintenance-cal-entry.range-expired small{background:#dc2626!important;color:#fff!important}
.maintenance-cal-entry.range-today,.maintenance-cal-entry.range-today strong,.maintenance-cal-entry.range-today small{background:#111827!important;color:#fff!important}
.maintenance-week-head{color:#334155!important}

/* PLM 1.67.0: independently scrollable desktop navigation for the expanded module suite. */
@media (min-width:681px){
 .nav{overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.55) transparent}
 .nav::-webkit-scrollbar{width:7px}.nav::-webkit-scrollbar-track{background:transparent}.nav::-webkit-scrollbar-thumb{border-radius:8px;background:rgba(148,163,184,.45)}
 .nav .brand{position:sticky!important;z-index:5;top:-18px;background:#101b30;background:linear-gradient(180deg,#101b30 80%,rgba(16,27,48,.96) 100%)}
 .nav>a:last-child{margin-bottom:18px}
}

/* Permanent CRM record selectors: five records plus the empty choice. */
.plm-crm-field-picker{display:flex;flex-direction:column;gap:7px;width:100%}
.plm-crm-field-picker select[size]{height:176px!important;min-height:176px;max-height:176px;width:100%;padding:4px!important;background-image:none!important;overflow-y:auto}
.plm-crm-field-picker select[size] option{padding:6px 10px;min-height:27px;line-height:1.3}
.plm-crm-field-picker .plm-crm-field-search{min-height:40px;width:100%}

/* Maintenance calendar readability: complete titles and expanding day cells. */
.plm-page-pms-calendar .maintenance-calendar,.plm-page-hms-calendar .maintenance-calendar{overflow-x:auto}
.plm-page-pms-calendar .maintenance-cal-entry,.plm-page-hms-calendar .maintenance-cal-entry{padding:10px 9px;margin:7px 0;border-left-width:4px;line-height:1.45;min-height:58px}
.plm-page-pms-calendar .maintenance-cal-entry strong,.plm-page-hms-calendar .maintenance-cal-entry strong{font-size:13px;font-weight:750}
.plm-page-pms-calendar .maintenance-cal-entry small,.plm-page-hms-calendar .maintenance-cal-entry small{font-size:11px;margin-top:5px;color:inherit;opacity:1}
.plm-page-pms-calendar .maintenance-cal-entry strong,.plm-page-pms-calendar .maintenance-cal-entry small,.plm-page-hms-calendar .maintenance-cal-entry strong,.plm-page-hms-calendar .maintenance-cal-entry small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.plm-page-pms-calendar .maintenance-cal-day,.plm-page-hms-calendar .maintenance-cal-day{min-height:150px;height:auto}
.plm-page-pms-calendar .maintenance-calendar-row,.plm-page-hms-calendar .maintenance-calendar-row{padding:14px;line-height:1.5}
.maintenance-main-toolbar{flex-wrap:wrap;justify-content:flex-end;gap:8px}

.plm-duplicate-picker{position:relative}.plm-duplicate-picker>summary{cursor:pointer;list-style:none}.plm-duplicate-menu{position:absolute;right:0;top:100%;z-index:80;width:310px;padding:16px;display:flex;flex-direction:column;gap:10px;border:1px solid #d6deea;border-radius:9px;background:#fff;box-shadow:0 8px 24px #17203324}.plm-duplicate-menu label,.plm-duplicate-menu select{display:block;width:100%}.plm-duplicate-menu small{white-space:normal;line-height:1.4;color:#64748b}
