:root {
  color: #172033;
  background: #eef2f6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  background: #f8fafc;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

label {
  color: #48586d;
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.sidebar {
  background: #14213d;
  color: #f8fbff;
  display: flex;
  flex-direction: column;
  gap: 28px;
  inset: 0 auto 0 0;
  padding: 24px;
  position: fixed;
  width: 260px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand span,
.brand-badge {
  align-items: center;
  background: #17a2b8;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 44px;
}

nav {
  display: grid;
  gap: 8px;
}

nav a,
.user-box {
  border-radius: 8px;
  color: #c9d6e8;
  padding: 12px;
}

nav a.active,
nav a:hover {
  background: #233250;
  color: #ffffff;
}

.user-box {
  background: #20304e;
  margin-top: auto;
}

.user-box strong,
.user-box span,
.user-box a {
  display: block;
}

.user-box span {
  color: #b7c4d8;
  margin: 4px 0 12px;
}

.content {
  margin-left: 260px;
  padding: 24px;
}

.page-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 28px;
  letter-spacing: 0;
  margin-bottom: 5px;
}

h2 {
  font-size: 18px;
}

p {
  color: #617084;
}

.metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metrics a,
.panel,
.login-card {
  background: #ffffff;
  border: 1px solid #dde5ee;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(23, 32, 51, 0.06);
}

.metrics a {
  color: inherit;
  display: block;
  padding: 18px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.metrics a:hover {
  border-color: #17a2b8;
  transform: translateY(-1px);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 30px;
}

.metrics span {
  color: #617084;
}

.settings-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 240px));
}

.settings-tile {
  align-items: center;
  background: #ffffff;
  border: 2px solid #15a2b8;
  border-radius: 8px;
  box-shadow: none;
  display: grid;
  justify-items: center;
  min-height: 240px;
  padding: 0;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.settings-tile:hover {
  border-color: #17a2b8;
  box-shadow: 0 16px 30px rgba(23, 32, 51, 0.12);
  transform: translateY(-1px);
}

.settings-tile::after {
  background: #172033;
  border-radius: 8px;
  bottom: calc(100% + 10px);
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 13px;
  font-weight: 700;
  left: 50%;
  line-height: 1.35;
  max-width: 260px;
  opacity: 0;
  padding: 9px 11px;
  pointer-events: none;
  position: absolute;
  text-align: center;
  transform: translate(-50%, 6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  width: max-content;
  z-index: 5;
}

.settings-tile:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.settings-image-tile img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.settings-icon-tile {
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.settings-icon {
  align-items: center;
  border: 4px solid #202124;
  border-radius: 8px;
  color: #202124;
  display: inline-flex;
  font-size: 40px;
  font-weight: 900;
  height: 110px;
  justify-content: center;
  letter-spacing: 0;
  width: 130px;
}

.planning-count-tile .settings-icon {
  background: #e9f4f6;
  border-color: #15a2b8;
  color: #145466;
  font-size: 44px;
}

.settings-tile strong {
  color: #172033;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
}

.muted-tile {
  opacity: 0.72;
}

.table-link {
  color: #16697a;
  font-weight: 800;
}

.panel {
  margin-bottom: 18px;
  padding: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #e3ebf3;
  padding: 12px 10px;
  text-align: left;
}

th {
  color: #53647a;
  font-size: 13px;
}

.pill {
  background: #e9f4f6;
  border-radius: 999px;
  color: #145466;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.button {
  align-items: center;
  background: #16697a;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid form,
.wide-form,
.order-update {
  display: grid;
  gap: 13px;
}

.form-columns {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-columns.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-entry-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.form-note {
  background: #f4f7fa;
  border-radius: 8px;
  color: #617084;
  margin: 0;
  padding: 11px;
}

.check-row {
  align-content: center;
  background: #f8fafc;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 40px;
  padding: 9px 10px;
}

.check-row input {
  accent-color: #16697a;
  min-height: auto;
  padding: 0;
  width: auto;
}

.check-row input:disabled + span {
  color: #8b98aa;
}

.checklist-field {
  background: #f8fafc;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
}

.checklist-field legend {
  color: #405167;
  font-weight: 800;
  padding: 0 4px;
}

.checklist-field label {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
}

.checklist-field input[type="checkbox"] {
  accent-color: #16697a;
  min-height: auto;
  padding: 0;
  width: auto;
}

.checklist-field.compact {
  background: #ffffff;
}

.multi-select-wrap {
  display: grid;
  gap: 6px;
}

.multi-select-wrap small {
  color: #617084;
  font-size: 13px;
}

.autocomplete-field {
  display: grid;
  gap: 6px;
}

.autocomplete-field small {
  color: #617084;
  font-size: 13px;
  font-weight: 500;
}

.planning-slot-message {
  color: #617084;
  font-size: 13px;
  font-weight: 700;
}

.register-form > .planning-slot-message {
  margin: 8px 18px;
}

.planning-conflict-panel,
.planning-success-panel {
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
}

.planning-conflict-panel {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.planning-success-panel {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.planning-conflict-panel p,
.planning-success-panel p {
  margin: 0;
}

.planning-conflict-panel form {
  justify-self: start;
}

.multi-select {
  min-height: 92px;
  padding: 6px;
}

.multi-select option {
  border-radius: 6px;
  padding: 7px 8px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tabs a {
  background: #ffffff;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  color: #405167;
  font-weight: 800;
  padding: 10px 14px;
}

.tabs a.active {
  background: #15a2b8;
  border-color: #15a2b8;
  color: #ffffff;
}

.section-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.secondary-button,
.danger-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  min-height: 36px;
  padding: 0 12px;
}

.secondary-button {
  background: #e9f4f6;
  color: #145466;
}

.danger-button {
  background: #fff0eb;
  color: #ad3c27;
}

.register-form {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.register-form > .button {
  justify-self: start;
  margin: 16px 18px 18px;
}

.form-section-title {
  background: #15a2b8;
  color: #ffffff;
  font-weight: 900;
  padding: 11px 14px;
}

.field-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  margin: 0;
  padding: 11px 14px;
}

.field-row:nth-of-type(even) {
  background: #f5f7fa;
}

.field-row:nth-of-type(odd) {
  background: #ffffff;
}

.field-row > span {
  color: #172033;
  font-weight: 800;
}

.field-row input,
.field-row select,
.field-row textarea {
  background: #ffffff;
}

.field-row input[type="checkbox"],
.standard-checkbox {
  accent-color: #16697a;
  justify-self: start;
  min-height: auto;
  padding: 0;
  width: auto;
}

.field-row[hidden],
.hidden-row[hidden],
.tab-panel[hidden] {
  display: none;
}

.check-field input[type="checkbox"] {
  accent-color: #16697a;
  justify-self: start;
  min-height: auto;
  padding: 0;
  width: auto;
}

.outdoor-unit-grid {
  display: grid;
}

.outdoor-unit-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(130px, 0.9fr) minmax(180px, 1.2fr) minmax(120px, 0.7fr) minmax(130px, 0.7fr) minmax(190px, 0.8fr);
  padding: 12px 14px;
}

.outdoor-unit-row:nth-child(odd) {
  background: #ffffff;
}

.outdoor-unit-row:nth-child(even) {
  background: #f5f7fa;
}

.outdoor-unit-head {
  color: #405167;
  font-size: 13px;
  font-weight: 900;
}

.outdoor-unit-head button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  gap: 6px;
  padding: 0;
  text-align: left;
}

.outdoor-unit-filters input {
  min-height: 36px;
}

.outdoor-unit-data[hidden] {
  display: none;
}

.row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions form {
  margin: 0;
}

.table-subline {
  color: #7a8798;
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.strong-link {
  font-weight: 900;
}

.content-cell {
  min-width: 210px;
}

.content-cell small {
  color: #617084;
  display: block;
  font-weight: 800;
  margin-top: 4px;
}

.content-meter {
  background: #e8edf3;
  border-radius: 999px;
  display: block;
  height: 9px;
  margin-top: 7px;
  overflow: hidden;
  width: 100%;
}

.content-meter span {
  background: #15a2b8;
  display: block;
  height: 100%;
}

.form-actions {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #e1e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px 18px;
}

.outdoor-unit-edit {
  background: #eef7f9;
  border-bottom: 1px solid #d8e8ed;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px;
}

.outdoor-unit-edit[hidden] {
  display: none;
}

.outdoor-unit-empty {
  color: #617084;
  padding: 14px;
}

.pagination-bar {
  background: #ffffff;
  border-top: 1px solid #e1e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
}

.pagination-bar button,
.pagination-bar a {
  align-items: center;
  background: #f4f7fa;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  color: #405167;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  min-width: 34px;
  padding: 0 10px;
}

.pagination-bar button.active,
.pagination-bar a.active {
  background: #15a2b8;
  border-color: #15a2b8;
  color: #ffffff;
}

.search-workflow {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1fr) minmax(130px, 170px) auto;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #eef7f9;
}

.detail-location-stack {
  display: grid;
  gap: 14px;
}

.detail-location {
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  overflow: hidden;
}

.detail-location-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.cards,
.work-order-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crm-list {
  display: grid;
  gap: 14px;
}

.crm-customer,
.location-card {
  border: 1px solid #e1e8f0;
  border-radius: 8px;
}

.crm-customer {
  display: grid;
  gap: 14px;
  padding: 15px;
}

.crm-customer-head,
.location-card-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.crm-customer-head strong,
.crm-customer-head span,
.location-card-head b,
.location-card-head span {
  display: block;
}

.crm-customer-head strong {
  font-size: 18px;
}

.crm-customer-head span,
.location-card-head span,
.crm-customer-head small {
  color: #617084;
  margin-top: 3px;
}

.address-block {
  background: #f8fafc;
  border: 1px solid #e4ebf3;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.address-block.compact {
  background: transparent;
  border: 0;
  padding: 0;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 3px;
}

.link-row a {
  color: #16697a;
  font-weight: 800;
}

.location-stack {
  display: grid;
  gap: 10px;
}

.location-card {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.location-card-head em {
  background: #e9f4f6;
  border-radius: 999px;
  color: #145466;
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  padding: 6px 9px;
}

.mini-installations {
  display: grid;
  gap: 8px;
}

.mini-installations div {
  background: #f4f7fa;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px;
}

.mini-installations span {
  color: #617084;
}

.installation-list {
  display: grid;
  gap: 14px;
}

.installation-record {
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 15px;
}

.installation-record-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.installation-record-head strong,
.installation-record-head span {
  display: block;
}

.installation-record-head strong {
  font-size: 17px;
}

.record-title-link {
  color: #16697a;
  display: inline-block;
  font-size: 17px;
  font-weight: 900;
}

.installation-record-head span {
  color: #617084;
  margin-top: 4px;
}

.installation-record-head em {
  background: #edf8e8;
  border-radius: 999px;
  color: #3d7d2b;
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  padding: 6px 9px;
}

.installation-details {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.record-note {
  background: #f8fafc;
  border-radius: 8px;
  color: #48586d;
  margin: 0;
  padding: 12px;
}

.indoor-unit-stack {
  display: grid;
  gap: 12px;
}

.indoor-unit-form {
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.indoor-unit-title {
  background: #15a2b8;
  color: #ffffff;
  font-weight: 900;
  padding: 10px 14px;
}

.indoor-unit-form .button {
  justify-self: start;
  margin: 12px 14px 14px;
}

.detail-sections {
  display: grid;
  gap: 16px;
}

.detail-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  padding: 11px 14px;
}

.detail-row:nth-of-type(even) {
  background: #f5f7fa;
}

.detail-row:nth-of-type(odd) {
  background: #ffffff;
}

.detail-row span {
  color: #172033;
  font-weight: 900;
}

.detail-row span::after {
  content: ":\00a0";
}

.detail-row strong {
  color: #172033;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.indoor-detail-card {
  border-top: 1px solid #d8e2ec;
}

.data-card {
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  padding: 14px;
}

.data-card strong,
.data-card span,
.data-card small {
  display: block;
}

.data-card span,
.data-card small {
  color: #617084;
  margin-top: 4px;
}

.order-panel {
  display: grid;
  gap: 12px;
}

.work-order-subsection {
  border-top: 1px solid #e1e8f0;
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.work-order-subsection .form-section-title {
  border-radius: 6px 6px 0 0;
  margin: 0;
}

.empty-state {
  background: #f4f7fa;
  color: #617084;
  font-style: italic;
  margin: 0;
  padding: 12px;
  text-align: center;
}

.inline-entry-form {
  display: grid;
  gap: 10px;
}

.inline-entry-form .button {
  justify-self: start;
}

.process-maintenance-form {
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.process-maintenance-form[hidden] {
  display: none;
}

.process-maintenance-form > label,
.process-maintenance-form > fieldset,
.process-maintenance-form > .process-field-stack {
  margin: 0 12px;
}

.process-maintenance-form > :last-child {
  margin-bottom: 12px;
}

.process-field-stack {
  display: grid;
  gap: 10px;
}

.process-field-stack h4 {
  color: #145466;
  font-size: 15px;
  margin: 4px 0 0;
}

.process-checks {
  border: 0;
  display: grid;
  gap: 8px;
  padding: 0;
}

.process-checks legend {
  color: #48586d;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 7px;
  width: 100%;
}

.process-checks label {
  align-items: center;
  display: flex;
  gap: 8px;
  grid-template-columns: auto 1fr;
  justify-content: start;
}

.process-checks input[type="checkbox"] {
  min-height: 0;
  padding: 0;
  width: auto;
}

.unit-field {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.unit-field input {
  border-radius: 8px 0 0 8px;
}

.unit-field em {
  align-items: center;
  align-self: stretch;
  background: #eef5f7;
  border: 1px solid #d8e2ec;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: #617084;
  display: inline-flex;
  font-style: normal;
  font-weight: 800;
  padding: 0 10px;
}

.material-entry-form {
  grid-template-columns: minmax(160px, 1fr) minmax(90px, 120px) minmax(160px, 1fr);
}

.material-entry-form .button {
  grid-column: 1 / -1;
}

.compact-grid {
  display: grid;
  gap: 8px;
}

.compact-grid-row {
  background: #f8fafc;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.compact-grid-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.compact-grid-row strong {
  color: #172033;
}

.compact-grid-row span {
  color: #617084;
  font-size: 13px;
}

.compact-grid-row p {
  margin: 0;
}

.row-actions,
.inline-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.row-actions form {
  margin: 0;
}

.icon-action {
  align-items: center;
  background: #e9f4f6;
  border: 1px solid #c9dfe5;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.icon-action::before {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1em 1em;
  content: "";
  display: block;
  font-size: 16px;
  height: 1em;
  width: 1em;
}

.icon-action.edit::before {
  background-image: url("potlood.png");
}

.icon-action.delete::before {
  background-image: url("prullenbak.png");
}

.icon-action span {
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.icon-action:hover {
  background: #dff1f5;
}

.icon-action.danger {
  background: #fff0eb;
  border-color: #ffd2c4;
  color: #ad3c27;
}

.compact-edit-form {
  border-top: 1px solid #e1e8f0;
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.compact-edit-form[hidden] {
  display: none;
}

.mini-table table {
  font-size: 14px;
}

.day-planning-panel {
  display: grid;
  gap: 10px;
}

.planning-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.planning-list-item {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #d8e2ec;
  border-left: 5px solid #15a2b8;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  padding: 14px 16px;
}

.planning-list-item.accent {
  background: #eff9fb;
}

.planning-list-time {
  color: #145466;
  font-size: 18px;
  white-space: nowrap;
}

.planning-list-link {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.planning-list-link span {
  color: #172033;
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planning-list-link em {
  color: #617084;
  font-size: 14px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planning-list-status {
  border-radius: 999px;
  color: #172033;
  font-size: 14px;
  font-weight: 900;
  padding: 8px 12px;
  white-space: nowrap;
}

.planning-list-status.status-afgerond,
.planning-list-status.status-uitgevoerd-met-vervolg {
  background: #bbf7d0;
  color: #166534;
}

.planning-list-status.status-onderweg {
  background: #fde68a;
  color: #854d0e;
}

.planning-list-status.status-ingepland {
  background: #fecaca;
  color: #991b1b;
}

.planning-empty {
  background: #f8fafc;
  border: 1px dashed #d8e2ec;
  border-radius: 8px;
  color: #617084;
  font-style: italic;
  padding: 16px;
}

.planning-date-heading {
  color: #145466;
  font-size: 16px;
  margin: 0 0 10px;
}

.order-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-head strong,
.order-head span {
  display: block;
}

.order-head span {
  color: #617084;
  margin-top: 4px;
}

.order-head em {
  background: #fff0eb;
  border-radius: 999px;
  color: #ad3c27;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  padding: 6px 9px;
}

dl {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

dt {
  color: #6c7a8c;
  font-size: 12px;
}

dd {
  margin: 2px 0 0;
}

.login-body {
  align-items: center;
  background: #eef2f6;
  display: flex;
  min-height: 100vh;
  justify-content: center;
  padding: 20px;
}

.login-card {
  display: grid;
  gap: 14px;
  max-width: 420px;
  padding: 26px;
  width: 100%;
}

.alert {
  background: #fff0eb;
  border: 1px solid #ffd2c4;
  border-radius: 8px;
  color: #9a341f;
  padding: 11px;
}

.muted {
  color: #617084;
  font-size: 14px;
  margin: 0;
}

@media (max-width: 1050px) {
  .sidebar {
    position: static;
    width: auto;
  }

  .content {
    margin-left: 0;
  }

  .metrics,
  .settings-grid,
  .form-grid,
  .crm-entry-grid,
  .cards,
  .work-order-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .content,
  .sidebar {
    padding: 14px;
  }

  .metrics,
  .settings-grid,
  .form-grid,
  .crm-entry-grid,
  .cards,
  .work-order-grid,
  .form-columns,
  .form-columns.two,
  dl {
    grid-template-columns: 1fr;
  }

  .crm-customer-head,
  .location-card-head,
  .installation-record-head,
  .mini-installations div {
    align-items: flex-start;
    flex-direction: column;
  }

  .installation-details {
    grid-template-columns: 1fr;
  }

  .field-row {
    align-items: stretch;
    gap: 7px;
    grid-template-columns: 1fr;
  }

  .detail-row {
    align-items: stretch;
    gap: 7px;
    grid-template-columns: 1fr;
  }

  .outdoor-unit-row,
  .outdoor-unit-edit,
  .search-workflow,
  .material-entry-form,
  .process-field-stack,
  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: stretch;
    display: grid;
  }

  .planning-list-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .planning-list-time {
    font-size: 16px;
  }

  .planning-list-link span,
  .planning-list-link em {
    white-space: normal;
  }

  .planning-list-status {
    justify-self: start;
  }
}
