/* Adapted from the approved Trineon UI palette and component reference. */
:root {
  --navy: #152b35; --ink: #20313b; --muted: #6b7a83;
  --line: #e5eaed; --teal: #087d73; --bg: #f4f6f8;
  --color-background: var(--bg); --color-text: var(--ink);
  --color-text-muted: var(--muted); --color-border: var(--line);
  --color-primary: var(--teal); --color-primary-hover: #06685f;
  --color-primary-soft: #e5f3ef;
  --font-family: Inter, "Segoe UI", Arial, sans-serif;
  --pc-blue: var(--teal); --pc-blue-soft: #e5f3ef;
  --pc-border: var(--line); --pc-muted: var(--muted);
}
body.production-calendar-page, body.installation-calendar-page { background: var(--bg); }
.production-calendar, .installation-calendar {
  --pc-blue: var(--teal); --pc-blue-soft: #e5f3ef;
  --pc-border: var(--line); --pc-muted: var(--muted); --pc-bg: var(--bg);
  color: var(--ink); border-radius: 10px; box-shadow: none;
}
.site-header, .production-header { background: #fff; color: var(--ink); border-color: var(--line); }
.site-header { border-top-color: var(--teal); }
.site-brand, .production-title h1 { color: var(--ink); }
.navigation a, .production-tabs a, .production-title p { color: var(--muted); }
.navigation a:hover, .production-tabs a:hover { color: var(--teal); background: #eef5f3; }
.production-tabs a { position: relative; }
.production-tabs a.is-active { color: var(--teal); background: transparent; box-shadow: none; }
.production-tabs a.is-active::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 0; height: 2px; background: var(--teal); }
.site-header .button { background: #fff; color: var(--ink); border-color: var(--line); }
.active-worker-button { color: var(--ink); background: #fff; border-color: var(--line); }
.production-toolbar, .installation-toolbar { background: #fff; }
.primary-button { background: var(--teal); border-color: var(--teal); color: #fff; }
.primary-button:hover { background: #06685f; border-color: #06685f; }
.quiet-button, .icon-button { color: var(--ink); border-color: var(--line); background: #fff; }
.quiet-button:hover, .icon-button:hover { background: #eef5f3; border-color: var(--teal); }
.installation-card { background: #e5f3ef; color: var(--ink); border-color: #c8e3da; border-left-color: var(--teal); }
.installation-card small, .installer-chip small { color: #52656e; }
.calendar-area, .installation-backlog, .side-panel, .card { background: #fff; border-color: var(--line); box-shadow: none; }
.drop-hour-indicator { background: rgba(8,125,115,.16); border-color: var(--teal); }
.installation-backlog.is-drop-target, .calendar-area [data-drop-date].is-drop-target { background: #e5f3ef; outline-color: var(--teal); }
.production-table .production-row:hover { background: #fff8d6; }
.work-status.is-doing, .manufacturer-chip, .confirmation-badge.is-confirmed { color: #06685f; background: #e5f3ef; }
input, select, textarea { accent-color: var(--teal); }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline-color: var(--teal); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.production-header :focus-visible, .site-header :focus-visible { outline-color: var(--teal); }
.production-row:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; background: #eef5f3; }
button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 1100px) {
  .production-header { flex-wrap: wrap; }
  .production-tabs { flex-basis: 100%; order: 3; flex-wrap: wrap; overflow: visible; }
  .active-worker-button { margin-left: auto; }
}
@media (max-width: 760px) {
  .installation-layout { grid-template-columns: minmax(0, 1fr); }
  .calendar-area { min-width: 0; }
  .production-toolbar, .installation-toolbar { flex-wrap: wrap; }
  .production-search { flex-basis: 100%; max-width: none; }
  .production-tabs a { min-height: 44px; display: inline-flex; align-items: center; }
  .primary-button, .quiet-button, .icon-button { min-height: 44px; }
}

/* Give both calendars the available viewport width, preserving sidebar sizes. */
.production-calendar-page .page-container,
.installation-calendar-page .page-container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: .5rem;
}

.production-tabs a { display: inline-flex; align-items: center; gap: .4rem; }
.production-tabs .tab-icon { flex: 0 0 17px; pointer-events: none; }

/* Shared compact navigation header across application pages. */
body .production-header { min-height:0; padding:4px 10px; gap:10px; }
body .production-header .production-title { min-width:145px; }
body .production-header .production-title p { font-size:.65rem; line-height:1.2; }
body .production-header .production-title h1 { margin:1px 0 0; font-size:1rem; line-height:1.2; }
body .production-header .production-tabs a { padding:5px 7px; min-height:30px; font-size:.8rem; line-height:1.2; }
body .production-header .active-worker-button { width:auto; padding:3px 7px; gap:6px; min-height:32px; border-radius:7px; }
body .production-header .active-worker-button small { font-size:.6rem; line-height:1.2; }
body .production-header .active-worker-button strong { font-size:.75rem; line-height:1.2; }
body .production-header .worker-avatar { flex-basis:26px; width:26px; height:26px; font-size:.8rem; }

