:root {
  --brand: #c31936;
  --brand-dark: #9f102a;
  --brand-soft: #fff1f4;
  --ink: #17171a;
  --ink-2: #2d2d31;
  --muted: #76767d;
  --muted-2: #9a9aa1;
  --bg: #f4f4f5;
  --card: #ffffff;
  --line: #e6e6e8;
  --line-strong: #d6d6d9;
  --sidebar: #111114;
  --sidebar-2: #19191d;
  --success: #21744a;
  --success-soft: #eaf7ef;
  --warning: #9f5f00;
  --warning-soft: #fff4df;
  --danger: #a8243d;
  --danger-soft: #fff0f3;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 8px 24px rgba(16, 16, 20, 0.055);
  --shadow-lg: 0 24px 70px rgba(10, 10, 12, 0.18);
}

* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
::selection {
  background: rgba(195, 25, 54, 0.16);
}

.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: linear-gradient(180deg, #101013 0%, #17171b 58%, #101013 100%);
  color: #fff;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  z-index: 60;
  border-right: 1px solid #28282d;
}
.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.brand-mark,
.login-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d22643, #9f102a);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 800;
  border: 3px solid #f0f0f0;
  box-shadow: 0 0 0 2px #8f0e25 inset;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-copy strong {
  font-family: Georgia, serif;
  font-size: 20px;
  letter-spacing: 0.01em;
}
.brand-copy small {
  margin-top: 5px;
  color: #dc4c64;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
}
.sidebar-close {
  display: none;
  background: transparent;
  border: 0;
  color: #aaaab1;
  font-size: 27px;
  cursor: pointer;
}
.sidebar-context {
  margin: 24px 0 18px;
  padding: 12px 13px;
  border: 1px solid #2b2b30;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.sidebar-context span {
  display: block;
  color: #7f7f88;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.sidebar-context strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: #f1f1f3;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  padding-right: 2px;
}
.nav-group {
  padding: 8px 10px 5px;
  color: #696970;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-group-spaced {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #28282c;
}
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 10px;
  color: #b8b8bf;
  font-weight: 680;
  transition: 0.16s ease;
}
.nav a:hover {
  background: #1f1f24;
  color: #fff;
}
.nav a.active {
  background: linear-gradient(
    90deg,
    rgba(195, 25, 54, 0.2),
    rgba(195, 25, 54, 0.06)
  );
  color: #fff;
}
.nav a.active::before {
  content: "";
  position: absolute;
  left: -18px;
  width: 3px;
  height: 26px;
  border-radius: 999px;
  background: var(--brand);
}
.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #525259;
}
.nav a.active .nav-dot {
  background: #dc3551;
  box-shadow: 0 0 0 4px rgba(195, 25, 54, 0.13);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #29292e;
}
.user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.user-avatar,
.initial-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eeeeef;
  color: #3a3a3e;
  font-weight: 850;
}
.user-box > span:last-child {
  min-width: 0;
}
.user-box strong {
  display: block;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-box small {
  display: block;
  color: #7d7d85;
  font-size: 11px;
  margin-top: 1px;
}
.logout-link {
  border: 0;
  background: transparent;
  color: #85858e;
  padding: 5px 0;
  cursor: pointer;
  font-size: 12px;
}
.logout-link:hover {
  color: #fff;
}
.sidebar-backdrop {
  display: none;
}

.page-shell {
  margin-left: 260px;
  min-height: 100vh;
}
.topbar {
  height: 70px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  cursor: pointer;
}
.topbar-title {
  min-width: 0;
}
.topbar-title strong {
  display: block;
  font-size: 13.5px;
}
.topbar-title small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 1px;
}
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-action {
  font-size: 12px;
  font-weight: 750;
  color: #55555c;
  padding: 7px 4px;
}
.topbar-action:hover {
  color: var(--brand);
}
.content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.page-head-rich {
  align-items: center;
}
.page-head h1,
.client-hero h1,
.contract-hero h1 {
  margin: 1px 0 4px;
  font-size: 30px;
  line-height: 1.14;
  letter-spacing: -0.04em;
  color: #111114;
}
.page-head p,
.client-hero p,
.contract-hero p {
  margin: 0;
  color: var(--muted);
}
.eyebrow {
  margin: 0 !important;
  color: var(--brand) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: #2f2f34;
  font-weight: 760;
  cursor: pointer;
  transition: 0.16s ease;
}
.btn:hover {
  border-color: #bdbdc1;
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(180deg, #d02342, #b91430);
  border-color: #b91430;
  color: #fff;
  box-shadow: 0 7px 18px rgba(195, 25, 54, 0.17);
}
.btn-primary:hover {
  box-shadow: 0 9px 22px rgba(195, 25, 54, 0.22);
  border-color: #9e1128;
}
.btn-dark {
  background: #18181c;
  border-color: #2c2c31;
  color: #fff;
}
.btn-light {
  background: #fff;
  color: #17171a;
  border-color: #fff;
}
.btn-block {
  width: 100%;
}
.btn-sm {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}
.text-link,
.row-action {
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 12.5px;
}
.text-link:hover,
.row-action:hover {
  text-decoration: underline;
}

.card,
.metric-card,
.summary-strip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card {
  padding: 20px;
  margin-bottom: 20px;
}
.card h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.card-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.table-heading {
  padding: 2px 1px 14px;
  margin: 0;
}
.table-wrap.card {
  padding: 20px 0 0;
  overflow: hidden;
}
.table-wrap.card > .card-head {
  padding: 0 20px;
}
.table-wrap.card > table {
  border-top: 1px solid var(--line);
}
.alert {
  padding: 12px 14px;
  border-radius: 11px;
  margin-bottom: 18px;
  border: 1px solid transparent;
  font-weight: 650;
  transition: 0.25s ease;
}
.alert-success {
  background: var(--success-soft);
  border-color: #cee9d8;
  color: #27613f;
}
.alert-error {
  background: var(--danger-soft);
  border-color: #efcdd4;
  color: #902139;
}
.alert.fade-out {
  opacity: 0;
  transform: translateY(-4px);
}

.metrics-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}
.metrics-grid-admin {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metrics-grid-work {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric-card {
  padding: 18px;
  min-width: 0;
}
.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}
.metric-card strong {
  display: block;
  margin: 7px 0 3px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.metric-card small {
  display: block;
  color: var(--muted-2);
  font-size: 10.5px;
}
.metric-primary {
  border-color: #e6c3ca;
  background: linear-gradient(145deg, #fff, #fff8fa);
}
.metric-primary strong {
  color: var(--brand-dark);
}
.metric-alert {
  background: linear-gradient(145deg, #fff, #fff2f4);
  border-color: #efc9d0;
}
.metric-alert strong {
  color: var(--danger);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}
.card-attention {
  border-color: #edcbd1;
}
.queue-list {
  display: grid;
}
.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 2px;
  border-bottom: 1px solid #ededee;
  transition: 0.12s ease;
}
.queue-item:last-child {
  border-bottom: 0;
}
.queue-item:hover {
  padding-left: 6px;
}
.queue-main,
.queue-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.queue-main strong {
  font-size: 13.5px;
}
.queue-main small,
.queue-meta small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.queue-meta {
  text-align: right;
  flex: 0 0 auto;
}
.queue-meta strong {
  font-size: 13px;
}
.admin-snapshot {
  background: linear-gradient(145deg, #151519, #222227);
  border-color: #28282e;
  color: #fff;
}
.admin-snapshot h2 {
  color: #fff;
}
.snapshot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.snapshot-row span {
  color: #aaaaaf;
  font-size: 12px;
}
.snapshot-row strong {
  font-size: 15px;
}
.quick-admin-links {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}
.quick-admin-links a {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  color: #d4d4d8;
  font-size: 12.5px;
}
.quick-admin-links a:hover {
  color: #fff;
}
.quick-admin-links span {
  color: #d52a47;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}
.quick-action {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: 0.16s ease;
}
.quick-action:hover {
  transform: translateY(-2px);
  border-color: #d7b8be;
}
.quick-action-primary {
  background: linear-gradient(145deg, #b91430, #d52744);
  color: #fff;
  border-color: #b91430;
}
.quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f3f3f4;
  color: #3b3b40;
  font-size: 17px;
  font-weight: 900;
}
.quick-action-primary .quick-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.quick-action strong {
  display: block;
  font-size: 13.5px;
}
.quick-action small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  margin-top: 1px;
}
.quick-action-primary small {
  color: #f1cbd2;
}
.quick-action b {
  font-size: 16px;
  font-weight: 500;
  color: #a1a1a7;
}
.quick-action-primary b {
  color: #fff;
}

.compact-list {
  display: grid;
}
.compact-list > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.compact-list > a:last-child {
  border-bottom: 0;
}
.compact-list strong {
  display: block;
  font-size: 12.5px;
}
.compact-list small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}
.compact-list b {
  color: #aaa;
  font-weight: 500;
}
.initial-avatar {
  width: 33px;
  height: 33px;
  font-size: 12px;
  background: #f2e5e8;
  color: var(--brand-dark);
}

.search-card {
  padding: 14px;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 9px;
}
.search-bar-large {
  position: relative;
}
.search-bar-large .search-icon {
  position: absolute;
  left: 14px;
  color: #999;
  font-size: 18px;
}
.search-bar-large input {
  padding-left: 42px !important;
}
.search-bar input {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  outline: none;
}
.search-bar input:focus {
  border-color: #cf7081;
  box-shadow: 0 0 0 3px rgba(195, 25, 54, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th,
td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid #ececee;
  white-space: nowrap;
  vertical-align: middle;
}
th {
  background: #f7f7f8;
  color: #797980;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}
td {
  font-size: 13px;
}
tbody tr:hover {
  background: #fbfbfc;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.align-right {
  text-align: right;
}
.table-link {
  color: var(--brand-dark);
  font-weight: 850;
}
.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.person-cell strong,
.stacked-cell strong {
  display: block;
  font-size: 12.8px;
}
.person-cell small,
.stacked-cell small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  margin-top: 1px;
}
.inline-form {
  display: inline;
}
.small {
  font-size: 11px;
}
.status {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #efeff1;
  color: #55555b;
  font-size: 10px;
  font-weight: 850;
  text-transform: capitalize;
}
.status-active {
  background: #f8e5e9;
  color: #95172d;
}
.status-paid {
  background: var(--success-soft);
  color: var(--success);
}
.status-defaulted {
  background: var(--danger-soft);
  color: var(--danger);
}
.status-cancelled,
.status-muted {
  background: #eeeeef;
  color: #7d7d82;
}
.method-chip,
.role-chip {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 7px;
  background: #f1f1f2;
  color: #55555b;
  font-size: 10px;
  font-weight: 800;
}
.stock-pill {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 27px;
  border-radius: 8px;
  background: #eef7f1;
  color: #2b6d49;
  font-weight: 850;
}
.stock-pill.low {
  background: var(--warning-soft);
  color: var(--warning);
}
.days-overdue,
.overdue-label {
  color: var(--danger);
  font-weight: 800;
}
.overdue-label {
  margin-left: 6px;
  font-size: 9px;
  text-transform: uppercase;
}
.row-overdue {
  background: #fffafb !important;
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}
.flow-main {
  min-width: 0;
}
.flow-aside {
  min-width: 0;
}
.sticky-card {
  position: sticky;
  top: 90px;
}
.form-section {
  padding: 0;
  overflow: hidden;
}
.section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfc;
}
.section-head h2 {
  margin: 0;
  font-size: 16px;
}
.section-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}
.section-number {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
}
.form-section > .form-grid {
  padding: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.single-col {
  grid-template-columns: 1fr;
}
.nested-grid {
  gap: 12px;
}
.form-grid label,
.stack-form label {
  display: grid;
  gap: 6px;
  color: #4d4d52;
  font-size: 11.5px;
  font-weight: 780;
}
.form-grid input,
.form-grid select,
.form-grid textarea,
.stack-form input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
  transition: 0.15s ease;
}
.form-grid textarea {
  resize: vertical;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.stack-form input:focus {
  border-color: #ca6477;
  box-shadow: 0 0 0 3px rgba(195, 25, 54, 0.08);
}
.span-2 {
  grid-column: span 2;
}
.field-hint {
  color: var(--muted);
  font-weight: 500;
  font-size: 10.5px;
}
.field-hint a {
  color: var(--brand-dark);
  font-weight: 750;
}
.helper-card h2,
.contract-summary h2,
.guarantee-preview h2 {
  margin: 3px 0 9px;
}
.helper-card > p:not(.eyebrow),
.helper-note {
  color: var(--muted);
  font-size: 12px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 9px;
}
.check-list li {
  position: relative;
  padding-left: 22px;
  color: #56565c;
  font-size: 11.5px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5e1e5;
  color: var(--brand);
  font-size: 9px;
  font-weight: 900;
}
.aside-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.contract-summary {
  background: linear-gradient(160deg, #16161a, #222227);
  color: #fff;
  border-color: #2a2a2f;
}
.contract-summary h2 {
  color: #fff;
}
.contract-summary .eyebrow {
  color: #e55069 !important;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.summary-row span {
  color: #aaaab1;
  font-size: 11px;
}
.summary-row strong {
  font-size: 12px;
}
.summary-total {
  margin: 14px -4px 9px;
  padding: 13px;
  border-radius: 11px;
  background: rgba(195, 25, 54, 0.2);
  border: 1px solid rgba(221, 64, 91, 0.24);
}
.summary-total span {
  display: block;
  color: #e3bcc4;
  font-size: 10px;
}
.summary-total strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.contract-summary .helper-note {
  color: #9c9ca4;
}
.guarantee-preview .photo-preview {
  height: 190px;
  border: 1px dashed #c9c9cd;
  border-radius: 13px;
  background: #f7f7f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}
.photo-preview span {
  font-weight: 800;
}
.photo-preview small {
  max-width: 220px;
  color: var(--muted);
  font-size: 10.5px;
  margin-top: 5px;
}
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.client-hero,
.contract-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.client-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d32342, #a5112b);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px #ead5da;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  overflow: hidden;
}
.summary-strip > div {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.summary-strip > div:last-child {
  border-right: 0;
}
.summary-strip span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}
.summary-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.summary-strip small {
  display: block;
  color: var(--muted-2);
  font-size: 9.5px;
  margin-top: 1px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  overflow: auto;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 11px 13px;
  color: #737379;
  font-weight: 760;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs button.active {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}
.tabs button span {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #efeff0;
  font-size: 9px;
  margin-left: 4px;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.details-grid > div {
  padding: 12px;
  background: #f8f8f9;
  border: 1px solid #efeff0;
  border-radius: 10px;
  min-width: 0;
}
.details-grid .wide {
  grid-column: span 2;
}
.details-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 3px;
}
.details-grid strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.row-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.row-line:last-child {
  border-bottom: 0;
}
.row-line > span {
  min-width: 0;
}
.row-line span strong {
  display: block;
  font-size: 12.5px;
}
.row-line span small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.contract-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contract-overview {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.8fr;
  gap: 24px;
  align-items: center;
}
.contract-money span,
.next-payment span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}
.contract-money strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.contract-money small,
.next-payment small,
.progress-block small {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--muted);
}
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #ececee;
  overflow: hidden;
  margin: 7px 0;
}
.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a9122c, #d22643);
  border-radius: inherit;
}
.next-payment {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.next-payment strong {
  display: block;
  font-size: 17px;
  margin: 2px 0;
}

.cashier-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #18181c, #2b2b30);
  color: #fff;
  box-shadow: var(--shadow);
}
.cashier-hero span {
  color: #dc405b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cashier-hero strong {
  display: block;
  font-size: 19px;
  margin: 2px 0;
}
.cashier-hero p {
  margin: 0;
  color: #b2b2b7;
  font-size: 12px;
  max-width: 650px;
}
.method-chip {
  background: #f0f0f1;
}
.payment-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 10px;
  background: #f7f7f8;
  border: 1px solid var(--line);
}
.payment-balance span {
  color: var(--muted);
  font-size: 11px;
}
.payment-balance strong {
  font-size: 15px;
  color: var(--brand-dark);
}

.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid #ead1d6;
  background: #fff8fa;
  border-radius: 13px;
}
.info-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  flex: 0 0 auto;
}
.info-banner strong {
  display: block;
  font-size: 12.5px;
}
.info-banner p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}
.report-note {
  margin-top: 18px;
  padding: 12px;
  border-radius: 10px;
  background: #f9f0f2;
  border: 1px solid #eed8dc;
}
.report-note strong {
  display: block;
  font-size: 11.5px;
}
.report-note span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  margin-top: 2px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 18px;
  color: var(--muted);
}
.empty-state strong {
  color: #55555a;
  font-size: 12.5px;
}
.empty-state span {
  font-size: 10.5px;
  margin-top: 3px;
}
.empty-state.compact {
  padding: 20px 8px;
}
.muted {
  color: var(--muted);
}
.is-hidden {
  display: none !important;
}

.app-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: var(--shadow-lg);
}
.app-dialog::backdrop {
  background: rgba(9, 9, 12, 0.62);
  backdrop-filter: blur(3px);
}
.dialog-wide {
  width: min(760px, 100%);
}
.dialog-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  overflow: auto;
  max-height: calc(100vh - 40px);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.dialog-head h2 {
  margin: 2px 0 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.dialog-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #f7f7f8;
  border-radius: 9px;
  font-size: 21px;
  cursor: pointer;
  color: #777;
}
.dialog-copy {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 11.5px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(
      circle at 18% 15%,
      rgba(195, 25, 54, 0.2),
      transparent 29%
    ),
    linear-gradient(145deg, #09090b, #17171b 58%, #0b0b0e);
  padding: 22px;
}
.login-card {
  width: min(430px, 100%);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand);
}
.login-logo {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  font-size: 34px;
}
.login-card h1 {
  text-align: center;
  margin: 0 0 5px;
  font-size: 26px;
  letter-spacing: -0.04em;
}
.login-card > p {
  text-align: center;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
}
.stack-form {
  display: grid;
  gap: 14px;
}

@media (max-width: 1180px) {
  .metrics-grid-admin {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .flow-layout {
    grid-template-columns: 1fr;
  }
  .sticky-card {
    position: static;
  }
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .contract-overview {
    grid-template-columns: 1fr 1fr;
  }
  .next-payment {
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.2s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close {
    display: block;
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 50;
  }
  .sidebar.open ~ .sidebar-backdrop {
    display: block;
  }
  .page-shell {
    margin-left: 0;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .content {
    padding: 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .topbar-actions .topbar-action {
    display: none;
  }
  .summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .summary-strip > div:nth-child(2) {
    border-right: 0;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  body {
    font-size: 13px;
  }
  .content {
    padding: 16px;
  }
  .topbar {
    height: 64px;
    padding: 0 16px;
  }
  .topbar-actions .btn {
    display: none;
  }
  .page-head,
  .client-hero,
  .contract-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-head h1,
  .client-hero h1,
  .contract-hero h1 {
    font-size: 25px;
  }
  .page-actions {
    width: 100%;
  }
  .page-actions .btn {
    flex: 1;
  }
  .metrics-grid-admin,
  .metrics-grid-work {
    grid-template-columns: 1fr;
  }
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .summary-strip {
    grid-template-columns: 1fr;
  }
  .summary-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .summary-strip > div:last-child {
    border-bottom: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2,
  .details-grid .wide {
    grid-column: auto;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
  .contract-overview {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cashier-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .cashier-hero .btn {
    width: 100%;
  }
  .search-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .search-bar-large .search-icon {
    top: 11px;
  }
  .table-wrap {
    overflow: auto;
  }
  .dialog-actions {
    flex-direction: column-reverse;
  }
  .dialog-actions .btn {
    width: 100%;
  }
  .client-identity {
    align-items: flex-start;
  }
  .profile-avatar {
    width: 46px;
    height: 46px;
  }
  .tabs {
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
  }
  .card {
    padding: 16px;
  }
  .table-wrap.card {
    padding-top: 16px;
  }
  .table-wrap.card > .card-head {
    padding: 0 16px;
  }
  .form-section > .form-grid {
    padding: 16px;
  }
  .section-head {
    padding: 16px;
  }
}
.role-form {
  margin: 0;
}
.role-form select {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11px;
  color: #4e4e54;
  outline: none;
}
.role-form select:focus {
  border-color: #ca6477;
  box-shadow: 0 0 0 3px rgba(195, 25, 54, 0.07);
}

/* ===== E.Cuna V3: pedidos, decisões e cobranças ===== */
.choice-card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}
.choice-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  transition: 0.18s ease;
}
.choice-card:hover {
  border-color: #d7a2ab;
  box-shadow: 0 7px 22px rgba(195, 25, 54, 0.06);
}
.choice-card input {
  margin-top: 4px;
  accent-color: var(--brand);
}
.choice-card span {
  display: grid;
  gap: 4px;
}
.choice-card strong {
  font-size: 14px;
}
.choice-card small {
  color: var(--muted);
  line-height: 1.4;
}
.status-submitted {
  background: #fff5df;
  color: #875300;
}
.status-under_review {
  background: #eef2ff;
  color: #3c4f9e;
}
.status-approved {
  background: #eaf7ef;
  color: #21744a;
}
.status-rejected,
.status-cancelled {
  background: #fff0f3;
  color: #a8243d;
}
.status-disbursed,
.status-paid,
.status-done {
  background: #eaf7ef;
  color: #21744a;
}
.status-pending,
.status-rescheduled {
  background: #fff5df;
  color: #875300;
}
.admin-decision-card {
  border-top: 3px solid var(--brand);
}
.decision-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 16px;
}
.decision-panel {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 14px;
  padding: 18px;
}
.decision-panel h3 {
  margin: 0 0 2px;
  font-size: 18px;
}
.decision-panel label {
  display: grid;
  gap: 7px;
  color: #56565e;
  font-size: 12px;
}
.decision-panel input,
.decision-panel select,
.decision-panel textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  padding: 10px 11px;
  outline: none;
}
.decision-panel input:focus,
.decision-panel select:focus,
.decision-panel textarea:focus {
  border-color: #c85d70;
  box-shadow: 0 0 0 3px rgba(195, 25, 54, 0.07);
}
.decision-danger {
  background: #fffafb;
}
.btn-danger {
  background: #a8243d;
  border-color: #a8243d;
  color: #fff;
}
.approval-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 18px;
}
.approval-summary > div {
  background: #f7f7f8;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.approval-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.approval-summary strong {
  font-size: 16px;
}
.reminder-layout {
  align-items: start;
}
.reminder-list {
  display: grid;
  gap: 12px;
}
.reminder-item {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.reminder-item.is-overdue {
  border-color: #e6a8b4;
  background: #fffafb;
}
.reminder-time {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.reminder-time strong {
  font-size: 16px;
}
.reminder-time span {
  font-size: 12px;
  color: var(--muted);
}
.reminder-body {
  min-width: 0;
}
.reminder-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.reminder-body p {
  margin: 5px 0 2px;
}
.reminder-body small {
  color: var(--muted);
}
.note-box {
  margin-top: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f6f6f7;
  color: #57575e;
  font-size: 12px;
}
.note-result {
  background: #eef8f2;
}
.reminder-actions {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-form input {
  min-width: 160px;
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 8px 10px;
}
.permission-note {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.permission-note:last-child {
  border-bottom: 0;
}
.permission-note strong {
  display: block;
  margin-bottom: 4px;
}
.permission-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.section-head > div {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.is-hidden {
  display: none !important;
}
@media (max-width: 800px) {
  .decision-grid,
  .choice-card-row,
  .approval-summary {
    grid-template-columns: 1fr;
  }
  .reminder-item {
    grid-template-columns: 54px 1fr;
  }
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }
  .inline-form input,
  .inline-form .btn {
    width: 100%;
  }
}

/* ===== E.Cuna V4 dashboard & UX ===== */
.brand-copy small span {
  color: var(--brand);
}
.topbar-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #34343a;
  background: #fff;
}
.profile-pill {
  border: 1px solid var(--line);
  background: #fff;
  color: #202027;
  border-radius: 10px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}
.ecuna-mini {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 13px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.ecuna-mini .coin-stack {
  font-size: 28px;
  color: var(--brand);
}
.ecuna-mini strong {
  display: block;
}
.ecuna-mini small {
  display: block;
  color: #bbb;
  font-size: 10px;
  line-height: 1.35;
}
.hero-dashboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border-radius: 18px;
  margin-bottom: 16px;
  background: linear-gradient(120deg, #fff 0%, #fff9fa 65%, #f7dce2 100%);
  border: 1px solid #f0e4e7;
  position: relative;
  overflow: hidden;
}
.hero-dashboard::after {
  content: "↗";
  position: absolute;
  right: 38%;
  top: 8px;
  font-size: 90px;
  color: rgba(210, 38, 67, 0.12);
  font-weight: 900;
}
.hero-dashboard h1 {
  margin: 3px 0 4px;
  font-size: 31px;
  letter-spacing: -0.04em;
}
.hero-dashboard p {
  margin: 0;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.collaborator-hero {
  background: linear-gradient(120deg, #fff 0%, #fffafa 65%, #f9e3e7 100%);
}
.dashboard-search-row {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr;
  gap: 12px;
  margin-bottom: 16px;
}
.dash-search,
.search-chip {
  height: 43px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  color: #5c6473;
}
.dash-search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
}
.search-chip {
  font-size: 12px;
  font-weight: 700;
  color: #596173;
}
.search-chip:hover {
  border-color: #c96a7b;
  color: var(--brand);
}
.metric-card {
  display: flex;
  align-items: center;
  gap: 14px;
}
.metric-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.metric-card > div > span {
  font-weight: 800;
  color: #2d3037;
  font-size: 12px;
}
.metric-card > div > small {
  color: var(--muted);
  font-size: 10px;
}
.metric-card > div > strong {
  font-size: 22px;
  margin-top: 3px;
}
.metric-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  flex: 0 0 auto;
}
.metric-icon.green {
  background: #35b85a;
}
.metric-icon.red {
  background: #df203e;
}
.metric-icon.purple {
  background: #7445d8;
}
.metric-icon.amber {
  background: #f5ac1a;
}
.metric-icon.black {
  background: #000000;
}
.dash-main {
  grid-template-columns: 1.7fr 1fr;
}
.quick-dark {
  background: linear-gradient(145deg, #1f2530, #11151c);
  color: #fff;
  border-color: #242b36;
}
.quick-dark .card-head h2 {
  color: #fff;
}
.badge-red {
  background: #bd1731;
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 9px;
  font-weight: 900;
}
.quick-admin-links {
  display: grid;
}
.quick-admin-links a,
.quick-admin-links button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: transparent;
  color: #f3f4f6;
  padding: 10px 4px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.quick-admin-links a:hover,
.quick-admin-links button:hover {
  padding-left: 9px;
  background: rgba(255, 255, 255, 0.04);
}
.quick-admin-links b {
  font-size: 15px;
}
.donut-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  align-items: center;
  padding: 10px 0;
}
.donut-layout.small {
  grid-template-columns: 180px 1fr;
}
.donut {
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(
    #2f80ed 0 calc(var(--a) * 1%),
    #ffb51b calc(var(--a) * 1%) calc((var(--a) + var(--b)) * 1%),
    #35b85a calc((var(--a) + var(--b)) * 1%)
      calc((var(--a) + var(--b) + var(--c)) * 1%),
    #ed2543 calc((var(--a) + var(--b) + var(--c)) * 1%) 100%
  );
  display: grid;
  place-items: center;
}
.donut::after {
  content: "";
  position: absolute;
  width: 61%;
  height: 61%;
  background: #fff;
  border-radius: 50%;
}
.donut > span {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
}
.donut > span strong {
  font-size: 27px;
}
.donut > span small {
  font-size: 10px;
  color: var(--muted);
  max-width: 75px;
}
.donut-layout.small .donut {
  width: 160px;
}
.client-donut {
  background: conic-gradient(
    #35b85a 0 calc(var(--a) * 1%),
    #ffb51b calc(var(--a) * 1%) calc((var(--a) + var(--b)) * 1%),
    #ed2543 calc((var(--a) + var(--b)) * 1%) 100%
  );
}
.legend-list {
  display: grid;
}
.legend-list a {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: #353941;
}
.legend-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-list .blue {
  background: #2f80ed;
}
.legend-list .amber {
  background: #ffb51b;
}
.legend-list .green {
  background: #35b85a;
}
.legend-list .red {
  background: #ed2543;
}
.legend-list .black {
  background: #000000;
}
.legend-list b {
  font-size: 12px;
}
.dashboard-triple {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.bar-chart {
  height: 210px;
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 16px;
  padding: 30px 14px 4px;
  border-bottom: 1px solid var(--line);
}
.bar {
  width: 26%;
  min-height: 35px;
  border-radius: 8px 8px 0 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
}
.bar.green {
  background: #49b866;
}
.bar.blue {
  background: #3f7edb;
}
.bar.red {
  background: #d63a48;
}
.bar b {
  position: absolute;
  top: -24px;
  font-size: 10px;
  white-space: nowrap;
}
.bar span {
  position: absolute;
  bottom: -36px;
  font-size: 10px;
  text-align: center;
  width: 110px;
}
.mini-line-chart {
  height: 210px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 22px 6px 6px;
  border-bottom: 1px solid var(--line);
}
.line-point {
  height: var(--h);
  flex: 1;
  position: relative;
  border-top: 3px solid var(--brand);
  background: linear-gradient(
    to top,
    rgba(210, 38, 67, 0.03),
    rgba(210, 38, 67, 0.14)
  );
  border-radius: 6px 6px 0 0;
}
.line-point i {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  background: var(--brand);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px var(--brand);
}
.line-point b {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  white-space: nowrap;
}
.line-point span {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--muted);
}
.agenda-list {
  display: grid;
  gap: 8px;
}
.agenda-list a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  color: #2d3037;
}
.agenda-list a:hover {
  border-color: #d99ca7;
  background: #fff9fa;
}
.agenda-list strong {
  color: var(--brand);
}
.searchable-select {
  display: grid;
  gap: 6px;
}
.searchable-select-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 9px 10px;
  background: #fafbfc;
  outline: none;
}
.searchable-select-input:focus {
  border-color: #c85d70;
  box-shadow: 0 0 0 3px rgba(195, 25, 54, 0.07);
}
.section-divider {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.section-divider strong,
.section-divider small {
  display: block;
}
.section-divider small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
@media (max-width: 1180px) {
  .dashboard-triple {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-triple > article:last-child {
    grid-column: 1/-1;
  }
  .dash-main {
    grid-template-columns: 1fr;
  }
  .dashboard-search-row {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-search-row > :first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 760px) {
  .hero-dashboard {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-dashboard::after {
    right: 10px;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn {
    flex: 1;
  }
  .dashboard-search-row {
    grid-template-columns: 1fr;
  }
  .dashboard-search-row > :first-child {
    grid-column: auto;
  }
  .dashboard-triple {
    grid-template-columns: 1fr;
  }
  .dashboard-triple > article:last-child {
    grid-column: auto;
  }
  .donut-layout,
  .donut-layout.small {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
  }
  .legend-list {
    width: 100%;
  }
}
