/* SCER — Styles partagés : palette, structure, composants et adaptations responsive.
   Conserver les règles de navigation mobile et de défilement des tableaux lors des modifications. */
:root {
  --green: #153d33;
  --accent: #e87731;
  --mint: #e7f0e9;
  --bg: #f5f6f3;
  --text: #243b33;
  --muted: #7a8880;
  --line: #e3e8e1;
  --white: #fff;
  --shadow: 0 12px 35px #173d3309;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 'Inter',
    'Segoe UI',
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 30;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.logo {
  padding: 21px 27px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  width: 102px;
  height: 73px;
  object-fit: contain;
}
.logo small {
  border-left: 1px solid var(--line);
  padding-left: 12px;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #7c8d81;
  line-height: 1.9;
}
.workspace {
  margin: 0 18px 17px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.workspace > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--mint);
  color: var(--green);
  border-radius: 7px;
  font-weight: 700;
}
.workspace small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.sidebar nav {
  overflow: auto;
  flex: 1;
  padding: 0 13px 20px;
  scrollbar-width: thin;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #9aa69d;
  padding: 7px 13px 11px;
  font-weight: 700;
}
.nav-group > a {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 11px 13px;
  margin: 2px 0;
  border-radius: 7px;
  font-size: 12px;
  color: #687b70;
}
.nav-group > a:hover {
  background: #f5f7f3;
}
.nav-group > a.active {
  background: var(--green);
  color: #fff;
}
.nav-group > a .chev {
  margin-left: auto;
  font-size: 14px;
  opacity: 0.5;
}
.nav-sub {
  margin: 3px 0 9px 22px;
  border-left: 1px solid var(--line);
}
.nav-sub a {
  display: block;
  font-size: 11px;
  padding: 7px 12px;
  color: var(--muted);
}
.nav-sub a.current {
  color: var(--green);
  font-weight: 700;
  background: #f0f5ed;
  border-radius: 0 6px 6px 0;
}
.sidebar-foot {
  border-top: 1px solid var(--line);
  padding: 14px 22px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar-foot b {
  color: var(--green);
}
.main {
  margin-left: 238px;
}
.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.breadcrumb b {
  font-weight: 500;
  color: var(--text);
}
.searchbox {
  margin-left: auto;
  position: relative;
  max-width: 355px;
  width: 33%;
  display: flex;
  align-items: center;
  background: #f5f6f3;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 11px;
  gap: 9px;
}
.searchbox svg {
  width: 16px;
  color: #87958a;
}
.searchbox input {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  outline: none;
}
.kbd {
  color: #a7afa8;
  font-size: 10px;
  white-space: nowrap;
}
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 8px;
  border-radius: 6px;
  position: relative;
}
.iconbtn:hover {
  background: var(--mint);
}
.iconbtn .dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border: 1px solid white;
  border-radius: 50%;
  position: absolute;
  right: 8px;
  top: 8px;
}
.lang {
  border: 1px solid var(--line);
  background: white;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  font-size: 11px;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  height: 34px;
  width: 34px;
  background: #e7eee5;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}
.profile small {
  font-size: 9px;
  display: block;
  color: var(--muted);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  color: #7b6a3f;
  background: #f5f0e3;
  font-size: 10px;
  letter-spacing: 0.2px;
  padding: 7px 15px;
}
.demo-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cc9f48;
}
.demo-bar span {
  opacity: 0.6;
  margin-left: 8px;
}
.content {
  padding: 30px 34px 25px;
  max-width: 1700px;
  margin: auto;
}
.eyebrow {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
h1 {
  font-size: 29px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 6px 0 9px;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
.subtext {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn.orange {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.danger {
  color: #b44d3c;
  border-color: #eed6d1;
}
.btn:hover {
  filter: brightness(0.97);
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.welcome {
  background: var(--green);
  border-radius: 12px;
  min-height: 140px;
  color: #fff;
  padding: 26px 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 24px;
}
.welcome h2 {
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 7px 0;
}
.welcome p {
  color: #b3c7ba;
  font-size: 11px;
  margin-bottom: 0;
}
.welcome .eyebrow {
  color: #c4ab73;
}
.welcome .btn {
  border-color: #719184;
  color: white;
  background: #ffffff0a;
}
.welcome-art {
  width: 160px;
  align-self: stretch;
  position: relative;
  flex-shrink: 0;
}
.welcome-art:before,
.welcome-art:after {
  content: '';
  position: absolute;
  border: 1px solid #c2d3b22b;
  border-radius: 50%;
  width: 145px;
  height: 145px;
  right: -15px;
  top: -14px;
}
.welcome-art:after {
  width: 105px;
  height: 105px;
  top: 6px;
  right: 5px;
  background: radial-gradient(circle, #e5c07733, transparent 70%);
}
.welcome-art svg {
  width: 52px;
  height: 52px;
  position: absolute;
  top: 32px;
  right: 33px;
  color: #ddbd77;
  stroke-width: 1;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 23px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 17px 18px;
  box-shadow: var(--shadow);
  text-align: left;
  display: block;
  transition: transform 0.15s;
}
.metric:hover {
  transform: translateY(-2px);
}
.metric-top {
  display: flex;
  justify-content: space-between;
  color: #7a8b7e;
  font-size: 10px;
  align-items: center;
}
.metric-icon {
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #edf3eb;
  color: #5d8268;
  width: 29px;
  height: 29px;
}
.metric-icon svg {
  width: 16px;
  height: 16px;
}
.metric strong {
  font-size: 28px;
  letter-spacing: -1px;
  display: block;
  font-weight: 550;
  margin: 5px 0;
}
.metric strong small {
  font-size: 10px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
  margin-left: 5px;
}
.metric-foot {
  font-size: 9px;
  color: #89978b;
  display: flex;
  gap: 6px;
}
.metric-foot b {
  color: #548465;
  font-weight: 500;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-head {
  padding: 19px 21px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.card-head small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.chart {
  padding: 0 19px 12px;
}
.chart svg {
  width: 100%;
  height: 205px;
  stroke: none;
  overflow: visible;
}
.chart text {
  font-size: 9px;
  font-family: inherit;
  fill: #93a094;
}
.legend {
  display: flex;
  gap: 17px;
  font-size: 9px;
  color: var(--muted);
}
.legend span:before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #527962;
  margin-right: 5px;
}
.legend span:nth-child(2):before {
  background: #d9e3d5;
}
.priorities {
  padding: 0 20px 15px;
}
.priority {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid #f0f2ee;
}
.priority .pi {
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f9efe5;
  color: #bd864f;
}
.priority .pi svg {
  width: 15px;
}
.priority p {
  font-size: 11px;
  margin: 0;
}
.priority small {
  font-size: 9px;
  color: var(--muted);
}
.priority > b {
  margin-left: auto;
  font-size: 17px;
  font-weight: 500;
}
.priority > span {
  color: #acb5aa;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  white-space: nowrap;
}
th {
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.6px;
  color: #88968c;
  background: #f8f9f6;
  font-weight: 500;
  padding: 12px 17px;
  border-block: 1px solid var(--line);
}
td {
  padding: 13px 17px;
  border-bottom: 1px solid #edf0ea;
  color: #687a6c;
}
td a {
  color: var(--green);
  font-weight: 550;
}
td small {
  display: block;
  font-size: 9px;
  color: #95a193;
}
tbody tr:hover {
  background: #fafbf8;
}
.person {
  display: flex;
  align-items: center;
  gap: 9px;
}
.person .avatar {
  width: 28px;
  height: 28px;
  font-size: 9px;
  border-radius: 7px;
  background: #f0eee6;
  color: #8d8665;
}
.person b {
  font-weight: 500;
  color: var(--text);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #edf2e8;
  color: #66825b;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 9px;
}
.badge:before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.checking,
.badge.review,
.badge.waiting,
.badge.planned,
.badge.due,
.badge.invited {
  background: #fbf1dd;
  color: #ae8e40;
}
.badge.new,
.badge.open,
.badge.progress,
.badge.declared {
  background: #ebf1f7;
  color: #6989a5;
}
.badge.late,
.badge.rejected,
.badge.suspended,
.badge.expired {
  background: #f9ece8;
  color: #bb7766;
}
.badge.draft,
.badge.disabled,
.badge.archived,
.badge.cancelled,
.badge.unconfigured {
  background: #f0f1ef;
  color: #929a92;
}
.card-link {
  font-size: 10px;
  color: #63826b;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-link svg {
  width: 13px;
}
.table-foot {
  padding: 13px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.timeline {
  padding: 0 21px 12px;
}
.event {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  position: relative;
}
.event > i {
  width: 8px;
  height: 8px;
  background: #b9cbb2;
  border: 2px solid #eef3e9;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.event:not(:last-child):after {
  content: '';
  width: 1px;
  background: #e8ede3;
  position: absolute;
  left: 3.5px;
  top: 25px;
  bottom: -8px;
}
.event p {
  font-size: 11px;
  margin: 0;
  color: #5d7062;
}
.event small {
  display: block;
  font-size: 9px;
  color: #96a090;
  margin-top: 3px;
}
.event time {
  font-size: 9px;
  color: #9da698;
  margin-left: auto;
  white-space: nowrap;
}
.kit-rows {
  padding: 4px 22px 20px;
}
.kit-row {
  margin: 15px 0;
}
.kit-row > div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 7px;
}
.kit-row small {
  color: var(--muted);
  font-size: 9px;
}
.bar {
  height: 5px;
  border-radius: 5px;
  background: #edf1e8;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #6e8d64;
  border-radius: 5px;
}
.kit-row:nth-child(2) .bar i {
  background: #b7bf8d;
}
.kit-row:nth-child(3) .bar i {
  background: #d6a77f;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  color: #98a394;
  font-size: 9px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.toolbar input {
  width: 240px;
}
.toolbar select,
.toolbar input,
input,
select,
textarea {
  border: 1px solid #dce4d9;
  border-radius: 6px;
  padding: 9px 11px;
  background: white;
  color: var(--text);
  font-size: 12px;
  max-width: 100%;
}
.toolbar .btn:last-child {
  margin-left: auto;
}
.notice {
  padding: 13px 17px;
  background: #f8f1e4;
  border: 1px solid #ede2c9;
  border-radius: 8px;
  font-size: 11px;
  color: #93815d;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.notice svg {
  width: 16px;
  height: 16px;
}
.empty {
  text-align: center;
  padding: 55px 25px;
  color: var(--muted);
}
.empty svg {
  width: 35px;
  height: 35px;
  color: #9eae97;
  margin-bottom: 10px;
}
.empty h3 {
  color: var(--text);
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 22px;
  overflow: auto;
  padding: 0 21px;
}
.tabs button {
  background: none;
  border: 0;
  padding: 13px 0;
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
}
.tabs button.on {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}
.detail-body {
  padding: 23px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
}
.info-grid dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.info-grid dd {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.detail-note {
  background: #f8f9f5;
  padding: 18px;
  border-radius: 8px;
  font-size: 12px;
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.offer {
  padding: 24px;
  position: relative;
}
.offer .number {
  font-size: 10px;
  color: #b0bba8;
  letter-spacing: 1px;
}
.offer h2 {
  font-size: 24px;
  font-weight: 450;
  margin: 18px 0 8px;
}
.offer .price {
  font-size: 29px;
  margin: 20px 0 0;
  letter-spacing: -1px;
}
.offer small {
  color: var(--muted);
  font-size: 10px;
}
.offer ul {
  list-style: none;
  padding: 18px 0;
  line-height: 2.4;
  font-size: 12px;
  color: #7a8b7c;
  border-block: 1px solid var(--line);
  margin: 20px 0;
}
.offer li:before {
  content: '✓';
  color: #8ba078;
  margin-right: 9px;
}
.offer .btn {
  width: 100%;
}
.offer.featured {
  border-top: 3px solid var(--green);
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 15px;
  gap: 1px;
  background: var(--line);
  border-radius: 8px;
}
.day {
  min-height: 95px;
  background: white;
  padding: 8px;
  font-size: 11px;
}
.day.muted {
  background: #f6f7f3;
  color: #bcc4b7;
}
.day b {
  font-size: 10px;
  font-weight: 400;
}
.day a {
  display: block;
  font-size: 9px;
  padding: 5px;
  background: #e9f0e5;
  border-radius: 3px;
  margin-top: 6px;
  color: #66815c;
  overflow: hidden;
}
.weekday {
  text-align: center;
  font-size: 9px;
  padding: 8px;
  background: #f7f8f4;
}
.settings-form {
  max-width: 800px;
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-form .wide {
  grid-column: 1/-1;
}
label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  color: #657965;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #102b2666;
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.modal {
  background: #fff;
  width: 620px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  border-radius: 12px;
  box-shadow: 0 25px 90px #102e3344;
}
.modal-head {
  padding: 21px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 18px;
}
.modal form,
.modal-content {
  padding: 23px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.modal p {
  font-size: 12px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 25px;
  background: var(--green);
  color: #fff;
  border-radius: 9px;
  padding: 14px 20px;
  z-index: 150;
  font-size: 12px;
  box-shadow: 0 8px 30px #153d3322;
  max-width: 400px;
  display: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 460px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 45px #183d3320;
  max-height: 65vh;
  overflow: auto;
  z-index: 50;
}
.search-results h4 {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 0 15px;
}
.search-results a {
  display: block;
  padding: 10px 16px;
  font-size: 11px;
  border-top: 1px solid #f0f2ec;
}
.search-results a:hover {
  background: var(--mint);
}
.search-results small {
  color: var(--muted);
  display: block;
  font-size: 9px;
}
.login {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
  background: white;
}
.login-photo {
  position: relative;
  background:
    linear-gradient(0deg, #10382ee8, #143c3330),
    url('solar.webp') center/cover;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 70px;
}
.login-photo h1 {
  font-size: 48px;
  line-height: 1.15;
  max-width: 500px;
  letter-spacing: -1.5px;
  font-weight: 400;
}
.login-photo p {
  max-width: 380px;
  color: #cedacf;
  font-size: 13px;
}
.login-photo .eyebrow {
  color: #f7b785;
}
.login-photo small {
  font-size: 9px;
  color: #b9cabe;
  margin-top: 42px;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 55px 40px;
  position: relative;
}
.login-panel > .lang {
  position: absolute;
  top: 30px;
  right: 32px;
}
.login-inner {
  width: 350px;
  max-width: 100%;
}
.login-inner .login-logo {
  width: 130px;
  height: 94px;
  object-fit: contain;
  margin-bottom: 32px;
}
.login-inner h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 550;
}
.login-inner .subtext {
  margin: 8px 0 26px;
  font-size: 12px;
}
.login-inner form {
  display: grid;
  gap: 17px;
}
.login-inner input {
  width: 100%;
  font-size: 12px;
  padding: 12px;
}
.password {
  position: relative;
}
.password input {
  padding-right: 42px;
}
.password button {
  position: absolute;
  right: 4px;
  top: 5px;
}
.forgot {
  font-size: 10px;
  border: 0;
  background: none;
  padding: 0;
  color: #6e8a6c;
  justify-self: end;
}
.login-inner .btn {
  padding: 12px;
}
.separator {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 10px;
  color: #a0ab9c;
  margin: 24px 0;
}
.separator:before,
.separator:after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}
.login-inner > .btn {
  width: 100%;
}
.security-note {
  font-size: 10px;
  color: #8e9a89;
  display: flex;
  gap: 8px;
  line-height: 1.8;
  margin-top: 28px;
}
.security-note svg {
  width: 16px;
  flex-shrink: 0;
}
.mobile-menu {
  display: none;
}
.collapse-side .sidebar {
  width: 72px;
}
.collapse-side .sidebar .logo {
  padding: 15px 9px;
}
.collapse-side .sidebar .logo img {
  width: 54px;
}
.collapse-side .sidebar .logo small,
.collapse-side .workspace,
.collapse-side .nav-label,
.collapse-side .nav-group > a span,
.collapse-side .nav-sub,
.collapse-side .sidebar-foot {
  display: none;
}
.collapse-side .main {
  margin-left: 72px;
}
.collapse-side .sidebar nav {
  padding: 8px;
}
.collapse-side .nav-group > a {
  padding: 13px 17px;
}
.roles-grid {
  overflow: auto;
}
.checkrow {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  padding: 10px 0;
}
.checkrow input {
  accent-color: var(--green);
  width: 15px;
  height: 15px;
}
.pillbox {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
}
.statline {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.upload {
  border: 1px dashed #b5c5ac;
  padding: 23px;
  border-radius: 8px;
  margin: 20px;
}
.error {
  color: #aa4b39;
  font-size: 11px;
  margin: 8px 0;
}
.hide {
  display: none !important;
}
@media (min-width: 1600px) {
  .content {
    padding: 40px 46px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
  }
  .main {
    margin-left: 210px;
  }
  .topbar {
    padding: 0 22px;
    gap: 10px;
  }
  .content {
    padding: 25px 22px;
  }
  .profile > div:not(.avatar) {
    display: none;
  }
  .breadcrumb {
    display: none;
  }
  .searchbox {
    margin-left: 0;
    width: 60%;
    max-width: none;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 14px;
  }
  .metric strong {
    font-size: 25px;
  }
  .grid-main {
    grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr);
  }
  .offer-grid {
    gap: 12px;
  }
  .offer {
    padding: 18px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    width: 238px;
  }
  .main,
  .collapse-side .main {
    margin-left: 0;
  }
  .mobile-menu {
    display: flex;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 20px 0 100px #0003;
  }
  .topbar {
    height: 67px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .welcome-art {
    display: none;
  }
  .offer-grid {
    grid-template-columns: 1fr;
  }
  .offer {
    padding: 24px;
  }
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .login-photo {
    padding: 35px;
  }
  .login-photo h1 {
    font-size: 34px;
  }
  .profile {
    padding-left: 9px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .welcome {
    padding: 22px;
  }
  .searchbox {
    width: auto;
    flex: 1;
  }
  .kbd {
    display: none;
  }
  .demo-bar span {
    display: none;
  }
}
@media (max-width: 600px) {
  .content {
    padding: 22px 15px;
  }
  .topbar {
    padding: 0 12px;
    gap: 4px;
  }
  .profile {
    display: none;
  }
  .page-heading {
    display: block;
  }
  .page-heading > .actions {
    margin-top: 16px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-photo {
    display: none;
  }
  .login-panel {
    min-height: 100vh;
    padding: 40px 24px;
  }
  .welcome {
    min-height: 155px;
    display: block;
  }
  .welcome > .actions {
    margin-top: 17px;
  }
  .welcome h2 {
    font-size: 21px;
  }
  .metric strong {
    font-size: 24px;
  }
  .metric-top {
    font-size: 9px;
  }
  .metric-foot {
    font-size: 8px;
  }
  .metric-icon {
    width: 24px;
    height: 24px;
  }
  .metrics {
    gap: 10px;
  }
  .info-grid,
  .settings-form,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .day {
    min-height: 72px;
    padding: 4px;
  }
  .day a {
    font-size: 8px;
  }
  .day a span {
    display: none;
  }
  .table-foot {
    gap: 10px;
  }
  .modal-backdrop {
    padding: 9px;
  }
  .modal {
    max-height: 95vh;
  }
  .card-head {
    padding: 17px 15px;
  }
  .toolbar {
    padding: 13px;
  }
  .toolbar input {
    width: 100%;
  }
  .page-footer {
    font-size: 8px;
  }
  .search-results {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 62px;
    width: auto;
    max-width: none;
  }
  .login-inner h2 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .demo-bar,
  .actions,
  .toolbar,
  .page-footer {
    display: none !important;
  }
  .main {
    margin: 0;
  }
  .content {
    padding: 0;
  }
  .card {
    box-shadow: none;
  }
  .badge {
    border: 1px solid #ccc;
  }
  body {
    background: white;
  }
  .card {
    break-inside: avoid;
  }
}
/* Corrections: preserve the SCER design system, improve business forms and responsive navigation. */
.content,
.main,
.card {
  min-width: 0;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.business-form {
  padding: 24px;
}
.business-form label {
  display: block;
}
.business-form input,
.business-form select,
.business-form textarea,
#settings-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}
.business-form input[type='checkbox'] {
  width: auto;
}
.business-form textarea {
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.field-error,
#form-errors,
#decision-error {
  color: #a23d2b;
}
.field-error {
  display: block;
  min-height: 1.5em;
}
.workflow-actions {
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.detail-panel {
  padding: 26px;
  margin: 18px 0;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.info-grid p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.info-grid pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.tabs a {
  padding: 9px 14px;
  background: #e9eee7;
  border-radius: 6px;
  font-size: 12px;
}
.tabs .active {
  background: var(--green);
  color: #fff;
}
.watermark {
  padding: 14px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.document-preview {
  padding: 18px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-grid.day {
  grid-template-columns: 1fr;
}
.calendar-cell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  min-height: 130px;
  min-width: 0;
}
.calendar-cell h3 {
  font-size: 11px;
  color: var(--muted);
}
.calendar-cell a {
  display: block;
  background: var(--mint);
  padding: 7px;
  margin-top: 8px;
  border-radius: 5px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.calendar-cell small {
  display: block;
}
.search-category {
  display: block;
  padding: 8px 12px;
  color: var(--accent);
  font-size: 10px;
}
.searchbox #search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 65vh;
  overflow: auto;
  background: white;
  box-shadow: 0 12px 30px #0002;
  z-index: 50;
}
.searchbox #search-results a {
  display: block;
  padding: 10px 12px;
}
.searchbox #search-results a:hover,
.searchbox #search-results a:focus {
  background: var(--mint);
}
.searchbox #search-results small {
  display: block;
  font-size: 10px;
}
.collapse-side .sidebar {
  width: 76px;
}
.collapse-side .sidebar .logo small,
.collapse-side .sidebar .workspace,
.collapse-side .sidebar .nav-label,
.collapse-side .sidebar .nav-group > a span,
.collapse-side .sidebar .nav-sub,
.collapse-side .sidebar .sidebar-foot > span {
  display: none;
}
.collapse-side .sidebar .logo {
  padding: 12px;
}
.collapse-side .sidebar .logo img {
  width: 50px;
}
.collapse-side .main {
  margin-left: 76px;
}
.modal {
  max-width: 900px;
}
.toolbar {
  flex-wrap: wrap;
}
.toolbar input[type='date'] {
  width: 145px;
}
.grid-main {
  margin-top: 20px;
}
.metric strong {
  overflow-wrap: anywhere;
  font-size: 26px;
}
.demo-bar {
  position: relative;
}
.business-form .actions {
  margin-top: 20px;
}
#settings-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}
#settings-form label {
  display: grid;
  gap: 6px;
}
@media (max-width: 1000px) {
  .calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .breadcrumb {
    display: none;
  }
}
@media (max-width: 850px) {
  .collapse-side .main {
    margin-left: 0;
  }
  .collapse-side .sidebar {
    width: 238px;
  }
  .collapse-side .sidebar .workspace,
  .collapse-side .sidebar .nav-label,
  .collapse-side .sidebar .nav-group > a span,
  .collapse-side .sidebar .nav-sub {
    display: revert;
  }
  .mobile-open:after {
    content: '';
    position: fixed;
    inset: 0;
    background: #0004;
    z-index: 25;
    pointer-events: none;
  }
  .sidebar.mobile-open {
    z-index: 30;
  }
  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collapse-side .sidebar .logo img {
    width: 100px;
  }
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .calendar-grid.week {
    grid-template-columns: 1fr;
  }
  .calendar-cell {
    min-height: 90px;
    padding: 8px;
  }
  .business-form {
    padding: 16px;
  }
  .detail-panel {
    padding: 18px;
  }
  .tabs a {
    font-size: 11px;
    padding: 7px;
  }
  .searchbox #search-results {
    position: fixed;
    top: 65px;
    left: 12px;
    right: 12px;
  }
  .metric strong {
    font-size: 21px;
  }
}
#menu-backdrop {
  display: none;
}
.mobile-open:after {
  display: none;
}
@media (max-width: 850px) {
  .mobile-open #menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: #0005;
    z-index: 25;
  }
  .sidebar[inert] {
    visibility: hidden;
  }
}
/* Live Django workspace: retain the shared visual system and responsive navigation. */
.live-filters { display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:20px 0; }
.live-filters label {display:flex;flex-direction:column;gap:5px;flex:1 1 175px;min-width:0;}
.live-filters input,.live-filters select {width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:white;}
.live-details {padding:20px;margin:0;}.live-details>div {display:grid;grid-template-columns:minmax(100px,1fr) 3fr;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);}.live-details dt{font-weight:600;}.live-details dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap;}.live-pagination{display:flex;align-items:center;justify-content:flex-end;gap:15px;margin-top:18px;}.live-sort{border:0;background:transparent;font-weight:600;text-align:left;}.live-details dd,.table-wrap td{max-width:420px;overflow-wrap:anywhere;}@media(max-width:600px){.live-details>div{grid-template-columns:1fr;gap:4px;}.live-filters label{flex-basis:100%;}.profile{max-width:130px;}}
