﻿:root {
  --bg: #f7f8fb;
  --ink: #1c232b;
  --muted: #657080;
  --line: #d7dde5;
  --panel: #ffffff;
  --accent: #256f5d;
  --accent-dark: #17493e;
  --warn: #9a6818;
  --bad: #a33b3b;
  --good: #2f7d4f;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(28, 35, 43, 0.12);
}

.login-panel h1 {
  margin-top: 0;
}

.login-panel label {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}

.login-panel input {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: #26323b;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 24px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

nav a {
  color: #dce6ed;
  text-decoration: none;
}

.inline-form {
  margin: 0;
}

.link-button {
  background: none;
  border: 0;
  color: #dce6ed;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: none;
}

.button-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.button-row form {
  margin: 0;
}

.settings-role-panel {
  margin: 0 0 18px;
}

.settings-role-panel h3 {
  margin-bottom: 4px;
}

main {
  margin: 0 auto;
  max-width: none;
  padding: 12px 12px 84vh;
}

section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 12px;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

h2 {
  font-size: 17px;
}

h3 {
  font-size: 15px;
  margin-top: 18px;
}

.status-strip,
.toolbar,
.actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.status-strip span,
.toolbar p {
  color: var(--muted);
}

.notice {
  align-items: center;
  background: #fff8dc;
  border: 1px solid #e9d996;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.notice-action {
  flex: 0 0 auto;
  margin-top: 0;
}

.notice form {
  margin: 0;
}

.warning {
  background: #fff0d6;
  border: 1px solid #e1ba73;
  border-radius: 5px;
  color: var(--warn);
  margin-bottom: 0;
  padding: 10px 12px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
  margin-top: 12px;
}

button,
.button {
  background: var(--accent);
  border: 0;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  line-height: 1;
  min-height: 36px;
  padding: 10px 13px;
  text-decoration: none;
}

button:hover,
.button:hover {
  background: var(--accent-dark);
}

button:disabled {
  background: #b7c0c8;
  cursor: not-allowed;
}

.code-block {
  background: #102033;
  border-radius: 6px;
  color: #edf4fb;
  overflow: auto;
  padding: 14px;
}

.pill,
.status {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 9px;
  text-transform: capitalize;
}

.pill.good,
.status.good,
.status.completed,
.status.complete {
  background: #dff2e7;
  color: var(--good);
}

.pill.warn,
.status.escalated,
.status.pending,
.status.preview {
  background: #fff0d6;
  color: var(--warn);
}

.pill.neutral,
.status.new,
.status.in_review {
  background: #e9eef3;
  color: #43505c;
}

.status.failed {
  background: #f9dddd;
  color: var(--bad);
}

.status.queue-onboarding {
  background: #fff8a6;
  color: #5f5100;
}

.status.queue-in-queue {
  background: #f4f6f8;
  color: #43505c;
}

.status.queue-in-progress {
  background: #e9eef3;
  color: #26323b;
}

.status.queue-ready-review {
  background: #e5e1ff;
  color: #5145a0;
}

.status.queue-review-complete {
  background: #d7f2ff;
  color: #10617d;
}

.status.queue-hold {
  background: #fff0c7;
  color: #8a5a00;
}

.status.queue-ready-send {
  background: #def3d6;
  color: #2f6b21;
}

.status.queue-revision {
  background: #d7fbfb;
  color: #07666b;
}

.status.queue-urgent-two {
  background: #ffe0d6;
  color: #9c2f16;
}

.status.queue-urgent-week {
  background: #dce9ff;
  color: #164d90;
}

dl {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: 120px minmax(0, 1fr);
  margin: 0;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.job-table {
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.queue-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
  --q-col-1: 116px;
  --q-col-2: 145px;
  --q-col-3: 260px;
  --q-col-4: 95px;
  --q-col-5: 108px;
  --q-col-6: 78px;
  --q-col-7: 96px;
  --q-col-8: 42px;
  --q-col-9: 68px;
  --q-col-10: 76px;
  --q-col-11: 278px;
  --q-col-12: 220px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.primary-tabs {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.secondary-tabs {
  margin-top: 2px;
}

.tab {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 9px 12px;
  text-decoration: none;
}

.tab.selected {
  background: #26323b;
  border-color: #26323b;
  color: #fff;
}

.row {
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: 140px 120px minmax(220px, 1fr) 160px 230px;
  min-height: 48px;
  padding: 11px 14px;
  text-decoration: none;
}

.email-row {
  grid-template-columns:
    var(--email-col-1, 150px) var(--email-col-2, 150px) var(--email-col-3, minmax(220px, 1fr))
    var(--email-col-4, 220px) var(--email-col-5, 230px);
}

.jobs-row {
  grid-template-columns:
    var(--jobs-col-1, 140px) var(--jobs-col-2, 120px) var(--jobs-col-3, minmax(220px, 1fr))
    var(--jobs-col-4, 160px) var(--jobs-col-5, 150px) var(--jobs-col-6, 100px)
    var(--jobs-col-7, 150px) var(--jobs-col-8, 70px) var(--jobs-col-9, 150px)
    var(--jobs-col-10, 130px) var(--jobs-col-11, 120px);
}

.dashboard-workflow-row {
  grid-template-columns: 115px 145px 300px 105px 115px 78px 105px 340px 220px;
  min-width: max-content;
  width: max-content;
}

.dashboard-progress-row {
  grid-template-columns: 120px 105px 115px 78px 145px 300px 340px 220px;
  min-width: max-content;
  width: max-content;
}

.email-table,
.jobs-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.queue-row {
  grid-template-columns:
    var(--q-col-1) var(--q-col-2) var(--q-col-3) var(--q-col-4)
    var(--q-col-5) var(--q-col-6) var(--q-col-7) var(--q-col-8)
    var(--q-col-9) var(--q-col-10) var(--q-col-11) var(--q-col-12);
  min-width: max-content;
  width: max-content;
}

.sheet-row {
  align-items: start;
  font-size: 11px;
  gap: 4px;
  padding: 6px 7px;
}

form.row {
  margin: 0;
}

.sheet-row div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editable-remarks {
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: text;
  min-height: 28px;
  padding: 4px 5px;
}

.editable-remarks:hover {
  border-color: #cbd3dc;
  background: #fff;
}

.editable-remarks:focus,
.editable-remarks.locked-for-edit {
  background: #fff;
  border-color: var(--accent);
  outline: 2px solid rgba(37, 111, 93, 0.16);
}

.queue-heading > div,
.resizable-heading > div {
  min-height: 30px;
  position: relative;
  user-select: none;
}

.header-filter-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.table-sort-button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: 1.1;
  min-height: 0;
  padding: 0;
  text-align: left;
}

.table-sort-button.sorted-asc::after {
  content: " ^";
}

.table-sort-button.sorted-desc::after {
  content: " v";
}

.header-filter-wrap {
  align-items: center;
  display: flex;
  gap: 3px;
}

.header-filter-control {
  flex: 1 1 auto;
  font-size: 11px;
  font-weight: 400;
  min-width: 0;
  min-height: 24px;
  padding: 3px 5px;
}

.filter-clear-button {
  align-items: center;
  background: #d8e0e7;
  border: 1px solid #c0c9d2;
  border-radius: 3px;
  color: #26323b;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  height: 22px;
  justify-content: center;
  min-height: 22px;
  padding: 0;
  width: 22px;
}

.invoice-panel input,
.invoice-panel select,
.invoice-ledger-panel input,
.invoice-ledger-panel select,
.invoice-ledger-panel textarea {
  text-align: left;
}

.invoice-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.invoice-customer-match,
.invoice-project-row,
.invoice-adjustment-form,
.invoice-create-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(130px, 0.7fr)) auto minmax(180px, 1fr);
  margin-top: 12px;
}

.invoice-customer-match {
  align-items: center;
  grid-template-columns: minmax(260px, 1fr) minmax(340px, 1fr);
}

.inline-form {
  align-items: end;
  display: flex;
  gap: 8px;
}

.invoice-project-actions {
  display: flex;
  gap: 6px;
}

.invoice-project-label {
  position: relative;
}

.invoice-project-picker {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(28, 35, 43, 0.18);
  left: 0;
  max-height: 360px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
}

.invoice-project-option {
  align-items: start;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 42px;
  padding: 7px 9px;
  text-align: left;
  width: 100%;
}

.invoice-project-option:hover,
.invoice-project-option:focus {
  background: #eef4f2;
}

.invoice-project-option-name,
.invoice-project-option-client {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-project-option-client {
  color: var(--muted);
  font-size: 12px;
}

.invoice-project-status {
  align-items: center;
  display: flex;
  gap: 8px;
}

.invoice-ledger-panel {
  padding-bottom: 40vh;
}

.invoice-tree-root {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.invoice-tree-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(300px, 1fr) 90px 170px 26px 120px;
  min-height: 38px;
  padding: 6px 8px;
}

.invoice-tree-summary {
  cursor: pointer;
  list-style: none;
}

.invoice-tree-summary::-webkit-details-marker {
  display: none;
}

.invoice-tree-root > .invoice-tree-summary {
  background: #f4f7f8;
  font-weight: 700;
}

.invoice-project-tree,
.invoice-employee-tree,
.invoice-day-tree {
  border-top: 1px solid var(--line);
}

.invoice-tree-children {
  border-left: 1px solid #d7e0e5;
  margin-left: 22px;
}

.invoice-tree-label {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.invoice-tree-label > span:last-child,
.invoice-tree-leaf-label > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-tree-toggle {
  align-items: center;
  border: 1px solid #9aa7b2;
  border-radius: 3px;
  display: inline-flex;
  flex: 0 0 16px;
  font-size: 13px;
  height: 16px;
  justify-content: center;
  line-height: 1;
  width: 16px;
}

.invoice-tree-toggle::before {
  content: "+";
}

details[open] > .invoice-tree-summary .invoice-tree-toggle::before {
  content: "-";
}

.invoice-tree-hours,
.invoice-tree-money {
  text-align: right;
  white-space: nowrap;
}

.invoice-tree-check {
  display: flex;
  justify-content: center;
}

.invoice-tree-check input[type="checkbox"] {
  height: 14px;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 14px;
}

.invoice-tree-amount {
  justify-self: end;
  max-width: 110px;
  min-height: 28px;
  text-align: right;
  width: 100%;
}

.invoice-entry-row {
  font-size: 12px;
}

.invoice-tree-leaf-label {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  padding-left: 24px;
}

.invoice-tree-leaf-label small {
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-entry-resolution {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  margin-left: 24px;
}

.invoice-entry-resolution select {
  max-width: 260px;
  min-height: 28px;
}

.previously-billed {
  color: var(--muted);
}

.adjustment-row {
  background: #fff8df;
}

.invoice-total-readout {
  align-items: center;
  display: flex;
  gap: 14px;
}

.col-resizer {
  bottom: 0;
  cursor: col-resize;
  position: absolute;
  right: -3px;
  top: 0;
  width: 7px;
}

.col-resizer::after {
  background: #c0c8d0;
  bottom: 4px;
  content: "";
  position: absolute;
  right: 3px;
  top: 4px;
  width: 1px;
}

body.resizing-columns {
  cursor: col-resize;
  user-select: none;
}

.sheet-row input,
.sheet-row select {
  font-size: 11px;
  min-height: 28px;
  padding: 4px 5px;
}

.sheet-row button,
.sheet-row .button {
  font-size: 11px;
  min-height: 28px;
  padding: 6px 7px;
}

.status-select.queue-onboarding {
  background: #fff8a6;
}

.status-select.queue-in-queue {
  background: #f4f6f8;
}

.status-select.queue-in-progress {
  background: #e9eef3;
}

.status-select.queue-ready-review {
  background: #e5e1ff;
}

.status-select.queue-review-complete {
  background: #d7f2ff;
}

.status-select.queue-hold {
  background: #fff0c7;
}

.status-select.queue-ready-send {
  background: #def3d6;
}

.status-select.queue-revision {
  background: #d7fbfb;
}

.status-select.queue-urgent-two {
  background: #ffe0d6;
}

.status-select.queue-urgent-week {
  background: #dce9ff;
}

.queue-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.inline-control {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.button.secondary {
  background: #52606c;
}

.row:nth-child(odd) {
  background: #fbfcfd;
}

.row.heading {
  background: #edf2f6;
  color: #3f4d59;
  font-weight: 700;
  min-height: 42px;
}

.empty {
  color: var(--muted);
  padding: 22px;
}

.split {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-panel {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.admin-grid {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 0;
  margin-bottom: 14px;
}

.admin-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  padding: 10px 12px;
}

.admin-row:last-child {
  border-bottom: 0;
}

.admin-meta {
  color: var(--muted);
  display: inline-block;
  margin-left: 10px;
}

.admin-pipeline-form {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.compact-actions {
  justify-content: flex-start;
}

.inline-select {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.inline-select select {
  min-width: 150px;
}

.legacy-replicon-panel {
  display: grid;
  gap: 8px;
  min-width: min(100%, 920px);
}

.legacy-replicon-current,
.legacy-replicon-summary {
  color: var(--muted);
  font-size: 13px;
}

.legacy-replicon-results {
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 320px;
  overflow: auto;
}

.legacy-replicon-list {
  display: grid;
}

.legacy-replicon-result {
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(220px, 1.3fr) minmax(180px, 1fr) minmax(260px, 1.5fr);
  padding: 9px 10px;
  text-align: left;
}

.legacy-replicon-result:first-child {
  border-top: 0;
}

.legacy-replicon-result:hover,
.legacy-replicon-result.selected {
  background: #f2f7fb;
}

.legacy-replicon-result code {
  white-space: normal;
  word-break: break-all;
}

.segmented-inline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.revision-results {
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 260px;
  overflow: auto;
}

.revision-result {
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.revision-result:first-child {
  border-top: 0;
}

.revision-result:hover,
.revision-result.selected {
  background: #f2f7fb;
}

.revision-result small {
  color: var(--muted);
  word-break: break-all;
}

.warning-text {
  color: #8a3d00;
  font-weight: 600;
}

textarea {
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font: inherit;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

input,
select {
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font: inherit;
  min-height: 36px;
  padding: 8px 10px;
  width: 100%;
}

input:disabled,
textarea:disabled,
select:disabled {
  background: #eef2f5;
  color: #64717d;
}

.review-grid {
  display: grid;
  gap: 14px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-grid label {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-weight: 700;
  gap: 6px;
}

.review-grid input,
.review-grid textarea,
.review-grid select {
  color: var(--ink);
  font-weight: 400;
}

.review-grid textarea.todo-loaded {
  color: #9f1239;
}

.contractor-panel,
.contact-panel {
  background: #f6f8fb;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.contractor-panel {
  border-left: 4px solid #2563eb;
}

.contact-panel {
  border-left: 4px solid #0f766e;
}

.contractor-panel label,
.contact-panel label {
  margin: 0;
}

.contractor-panel input[readonly],
.contact-panel input[readonly] {
  background: #e9eef4;
  border-color: #b8c4d0;
}

.contractor-panel-actions,
.contact-panel-actions {
  align-items: end;
  display: flex;
}

.email-master-suggestions {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-left: 4px solid #dc2626;
  border-radius: 6px;
  color: #7f1d1d;
  padding: 12px 14px;
}

.email-master-suggestions p {
  margin: 6px 0 0;
}

.suggestion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.suggestion-actions .secondary-action {
  margin-top: 0;
}

.span-2 {
  grid-column: 1 / -1;
}

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-heading-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.section-heading-row h2 {
  margin: 0;
}

.email-nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.icon-button {
  align-items: center;
  display: inline-flex;
  font-size: 20px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.search-form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 14px;
}

.suggestions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.suggestion-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.suggestion-row span,
.suggestion-row small {
  color: var(--muted);
  display: block;
}

.checkbox-row {
  align-items: center;
  color: var(--ink);
  flex-direction: row !important;
  font-weight: 400 !important;
  gap: 10px !important;
}

.checkbox-row input {
  min-height: auto;
  width: auto;
}

.secondary-action {
  margin-top: 12px;
}

.danger-action {
  border-color: #dc2626;
  color: #b91c1c;
}

.modal-dialog {
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
  max-width: min(720px, calc(100vw - 32px));
  padding: 20px;
  width: 680px;
}

.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.modal-dialog h2 {
  margin: 0;
}

.path-length-dialog {
  width: min(820px, calc(100vw - 32px));
}

.path-resolution-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.path-resolution-grid form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.path-resolution-grid form:last-child {
  grid-column: 1 / -1;
}

.path-resolution-stack {
  grid-template-columns: 1fr;
}

.path-file-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 0;
  max-height: 260px;
  overflow: auto;
}

.path-file-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 110px minmax(0, 1fr);
  padding: 10px;
}

.path-file-row:last-child {
  border-bottom: 0;
}

.path-file-row span {
  color: var(--muted);
  font-weight: 700;
}

.path-readout {
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-family: Consolas, monospace;
  overflow-wrap: anywhere;
  padding: 10px;
}

.path-length-counter {
  font-size: 16px;
  margin-bottom: 10px;
}

.path-length-counter.over {
  color: var(--bad);
}

.path-length-counter.ok {
  color: var(--good);
}

.inline-form {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 360px);
  max-width: 420px;
}

.inline-form label {
  color: var(--muted);
  font-weight: 700;
}

.report-toolbar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.report-form,
.report-filters {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-form label,
.report-filters label {
  color: var(--muted);
  display: grid;
  font-weight: 700;
  gap: 4px;
}

.report-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  margin: 12px 0;
}

.report-summary div {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px;
}

.report-summary strong,
.report-summary span {
  display: block;
}

.report-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.time-project,
.time-employee {
  border-top: 1px solid var(--line);
}

.time-project > summary,
.time-employee > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  padding: 10px 0;
}

.time-project > summary {
  grid-template-columns: minmax(260px, 2fr) minmax(160px, 1fr) minmax(120px, 1fr) minmax(110px, auto) minmax(90px, auto) minmax(100px, auto);
}

.time-employee {
  margin-left: 18px;
}

.time-employee > summary {
  grid-template-columns: minmax(260px, 1fr) minmax(90px, auto) minmax(100px, auto);
}

.time-entry-table {
  margin: 4px 0 12px 18px;
}

.time-entry-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 120px 70px minmax(160px, 1fr) minmax(140px, 1fr) minmax(130px, 1fr) minmax(240px, 2fr) minmax(140px, 1fr);
}

.time-entry-row > div {
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  padding: 7px 4px;
}

.env-editor {
  font-family: Consolas, monospace;
}

.note {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.note time,
.audit time {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.audit {
  margin-bottom: 0;
  padding-left: 20px;
}

.audit-window {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  height: 320px;
  overflow-y: auto;
  padding: 12px 14px;
}

.audit li {
  margin-bottom: 12px;
}

.checklist {
  line-height: 2;
  list-style: none;
  padding-left: 0;
}

.email-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  height: 360px;
  width: 100%;
}

.dropbox-work-pending {
  box-shadow: inset 0 -2px 0 var(--accent);
  opacity: 0.72;
}

.blocking-status-overlay {
  align-items: center;
  background: rgba(28, 35, 43, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  pointer-events: all;
  position: fixed;
  z-index: 10000;
}

.blocking-status-box {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(28, 35, 43, 0.24);
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 360px;
  padding: 22px;
  text-align: center;
  width: min(100%, 360px);
}

.blocking-status-box strong {
  font-size: 17px;
}

.blocking-status-box span {
  color: var(--muted);
  line-height: 1.4;
}

.blocking-status-spinner {
  animation: blocking-status-spin 0.8s linear infinite;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  height: 34px;
  width: 34px;
}

@keyframes blocking-status-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 840px) {
  .status-strip,
  .toolbar,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .admin-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .row.heading {
    display: none;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }
}

