:root {
  --navy: #10243f;
  --navy-2: #173258;
  --ink: #1b2430;
  --muted: #6b7686;
  --line: #e6ebf2;
  --bg: #f3f5f8;
  --card: #ffffff;
  --gold: #c4a15a;
  --gold-2: #a7843d;
  --ok: #1f8a5b;
  --ok-bg: #e8f7ef;
  --warn: #b7791f;
  --warn-bg: #fff6e6;
  --bad: #c2413b;
  --bad-bg: #fdecec;
  --info: #1d4f91;
  --info-bg: #e8f1fb;
  --shadow: 0 1px 1px rgba(16, 36, 63, .04), 0 8px 22px rgba(16, 36, 63, .05);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 268px;
  background: linear-gradient(180deg, #0e213b, #132a4a);
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  flex: 0 0 268px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 22px 18px 14px;
  color: #fff;
}
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(196,161,90,.18);
  border: 1px solid rgba(196,161,90,.5);
  color: var(--gold);
  font-size: 22px;
}
.brand strong { display: block; font-size: 16px; }
.brand small { color: #c5d0df; font-size: 12px; }
.menu { padding: 6px 12px 28px; }
.menu-group { margin-top: 8px; }
.menu-section {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #c5d0df;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}
.menu-section:hover { background: rgba(255,255,255,.06); }
.menu-chevron {
  margin-inline-start: auto;
  font-style: normal;
  color: #8ea0b8;
  transform: rotate(-90deg);
  transition: transform .15s ease;
}
.menu-group.open .menu-chevron { transform: rotate(0deg); }
.menu-sub { display: none; padding: 2px 0 6px; }
.menu-group.open .menu-sub { display: block; }
.menu a {
  display: block;
  color: #e7eef8;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 2px;
}
.menu a:hover { background: rgba(255,255,255,.06); }
.menu a.active { background: var(--gold); color: #1b1406; font-weight: 700; }
.menu-sub a { padding-inline-start: 22px; }
.main { flex: 1; min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-title { min-width: 160px; }
.top-title h1 { margin: 0; font-size: 18px; }
.top-title span { color: var(--muted); font-size: 12px; }
.case-switch select, .search input, .field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #d7deE8;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
}
.case-switch { width: 280px; flex: 0 0 auto; }
.case-pick { position: relative; width: 260px; flex: 0 0 auto; }
.case-pick-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d7dee8;
  background: #f8fafc;
  border-radius: 12px;
  padding: 7px 12px;
  cursor: pointer;
  text-align: right;
  color: var(--ink);
}
.case-pick-btn small { display: block; color: var(--muted); font-size: 11px; }
.case-pick-btn strong {
  display: block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.case-pick-btn i { color: var(--muted); font-style: normal; }
.case-pick-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: #fff;
  border: 1px solid #e3eaf2;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(16, 36, 63, .16);
  z-index: 40;
  padding: 12px;
}
.case-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.case-pick-head strong { font-size: 14px; }
.case-pick-head a { color: var(--info); font-size: 13px; font-weight: 700; }
.case-pick-find { display: block; margin-bottom: 8px; }
.case-pick-find input {
  width: 100%;
  border: 1px solid #d7dee8;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
}
.case-pick-find input:focus { outline: none; border-color: #9eb6d4; background: #fff; }
.case-pick-list { max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.case-pick-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  color: inherit;
}
.case-pick-list a em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  background: #e8f1fb;
  border-radius: 8px;
  padding: 6px 8px;
  direction: ltr;
}
.case-pick-list a b { display: block; font-size: 14px; }
.case-pick-list a small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.case-pick-list a:hover { background: #f4f7fb; }
.case-pick-list a.on { background: #eef5ff; }
.case-pick-list a.case-off, .case-pick-empty[hidden] { display: none; }
.case-pick-empty { margin: 8px 4px 4px; color: var(--muted); }
.search-live {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 36, 63, .14);
  z-index: 40;
  padding: 8px;
}
.search-live a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: inherit;
}
.search-live a b { display: block; font-size: 13px; }
.search-live a small { display: block; color: var(--muted); font-size: 12px; }
.search-live a:hover { background: #f4f7fb; }
.search { position: relative; }
.search-live { left: 0; right: auto; width: min(420px, 70vw); }
.search-live h4 { margin: 6px 8px 2px; font-size: 12px; color: var(--muted); }
.search-live p { margin: 8px; color: var(--muted); }
.search { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 180px; }
.search input { flex: 1; }
.search button {
  border: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.search button:hover { background: var(--navy-2); }
.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  width: 42px; height: 42px;
  cursor: pointer;
  position: relative;
}
.icon-btn em {
  position: absolute; top: -4px; left: -4px;
  background: var(--bad); color: #fff;
  border-radius: 99px; font-style: normal;
  font-size: 11px; min-width: 18px; height: 18px;
  display: grid; place-items: center;
}
.bell { position: relative; }
.bell-menu {
  display: none;
  position: absolute;
  left: 0; top: 48px;
  width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 36, 63, .14);
  padding: 8px;
  z-index: 30;
}
.bell-menu.open { display: block; }
.bell-menu a, .bell-menu p { display: block; padding: 8px; border-radius: 10px; }
.bell-menu a:hover { background: #f6f8fb; }
.bell-menu small { display: block; color: var(--muted); }
.who { display: flex; align-items: center; gap: 8px; }
.who strong, .who small { display: block; }
.who small { color: var(--muted); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700;
  object-fit: cover;
}
.who-link { display: flex; align-items: center; gap: 8px; color: inherit; }
.profile-photo {
  width: 112px; height: 112px; border-radius: 50%;
  object-fit: cover; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 32px; font-weight: 700;
}
.perm-module { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; background: #fff; }
.perm-module h4 { margin: 0 0 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bad-bg);
  color: var(--bad);
  border: 1px solid #f0b4b0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.logout:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.menu-toggle { display: none; }
.content { padding: 22px; }
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.flash.ok { background: var(--ok-bg); color: #14643f; }
.flash.bad { background: var(--bad-bg); color: #8d241f; }
.flash.warn { background: var(--warn-bg); color: #8a5a10; }
.case-head {
  background: #fff;
  border: 1px solid #e3eaf2;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.case-head h2 { margin: 4px 0; }
.case-head p { margin: 0; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.kicker { color: var(--gold-2); font-weight: 700; font-size: 13px; }
.case-head-side { text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; }
.conflict-layout { grid-template-columns: .72fr 1.5fr; align-items: start; }
.conflict-layout table { font-size: 13px; }
.conflict-layout td, .conflict-layout th { vertical-align: top; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #e3eaf2;
  min-height: 96px;
  box-shadow: var(--shadow);
}
.kpi b { display: block; font-size: 28px; margin-top: 6px; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi.blue { background: #eef5ff; }
.kpi.sand { background: #fff6e8; }
.kpi.green { background: #eefaf3; }
.kpi.rose { background: #fff0f0; }
.kpi.lilac { background: #f4f0ff; }
.kpi.gold { background: #fbf6ea; }
.panel {
  background: #fff;
  border: 1px solid #e3eaf2;
  border-radius: 12px;
  padding: 16px 18px 14px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.panel > h3, .panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f6;
}
.panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #172033;
}
.panel h3 svg {
  width: 15px;
  height: 15px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 8px;
  background: #eef3f9;
  color: #173258;
  flex: 0 0 auto;
}
.panel-head { justify-content: space-between; }
.panel-head h3 { margin: 0; padding: 0; border: 0; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; }
tr:hover td { background: #fafbfd; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  background: var(--info-bg);
  color: var(--info);
  font-weight: 700;
  white-space: nowrap !important;
  flex-shrink: 0;
  line-height: 1.3;
}
.badge.ok, .badge.st-case { background: #dcfce7; color: #15803d; }
.badge.st-new { background: #eef1f4; color: #6b7280; }
.badge.st-contact { background: #fff6d8; color: #a16207; }
.badge.st-appt { background: #ffedd5; color: #c2410c; }
.badge.st-docs { background: #e0f2fe; color: #0369a1; }
.badge.st-reject { background: #fee2e2; color: #b91c1c; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.st-new { background: #9aa3af; }
.dot.st-contact { background: #eab308; }
.dot.st-appt { background: #f97316; }
.dot.st-docs { background: #3b82f6; }
.dot.st-case { background: #22c55e; }
.dot.st-reject { background: #ef4444; }
.status-legend { text-align: center; }
.status-legend h3 { margin-bottom: 12px; }
.legend-row { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: center; }
.legend-item { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; min-width: 96px; text-align: center; color: inherit; font-size: 13px; font-weight: 700; }
.legend-count {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 16px; font-weight: 800;
}
.legend-count.st-new { background: #9aa3af; }
.legend-count.st-contact { background: #eab308; }
.legend-count.st-appt { background: #f97316; }
.legend-count.st-docs { background: #3b82f6; }
.legend-count.st-case { background: #22c55e; }
.legend-count.st-reject { background: #ef4444; }
.intake-top { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 14px; }
.intake-mid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 14px; margin-bottom: 14px; }
.service-options label, .check-line { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.intake-next { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-act { background: #fff; border: 1px solid #d5deea; }
.act-reject { color: #c2413b; border-color: #f3c1c1; background: #fff5f5; }
.act-info { color: #b7791f; border-color: #f0d7a6; background: #fffaf0; }
.act-appt { color: #1d4f91; border-color: #c5d8f2; background: #f3f8ff; }
.act-study { color: #6d28d9; border-color: #ddd6fe; background: #f6f3ff; }
.act-case { color: #1f8a5b; border-color: #b7e4c7; background: #f3fbf6; }
.act-conflict { color: var(--navy); }
.call-log p { border-top: 1px solid var(--line); padding-top: 8px; margin: 8px 0; }
.settings-office-row { display: grid; grid-template-columns: 1.2fr 1fr 1.5fr auto; gap: 12px; align-items: end; }
.settings-office-row .field { margin-bottom: 0; }
.settings-split { display: grid; grid-template-columns: 1.5fr .9fr; gap: 16px; align-items: start; }
.lookup-section > .lookup-toggle {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: transparent; border: 0; margin: 0; padding: 2px 0; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 800; color: inherit; text-align: right;
}
.lookup-section > .lookup-toggle:hover { color: var(--navy-2, #1d4f91); }
.lookup-chevron { margin-inline-start: auto; display: inline-block; transition: transform .15s ease; transform: rotate(90deg); }
.lookup-section.open .lookup-chevron { transform: rotate(0deg); }
.lookup-body { margin-top: 12px; }
.lookup-line { display: grid; grid-template-columns: 190px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lookup-line:last-child { border-bottom: 0; }
.lookup-line h4 { margin: 0; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; background: #f4f7fb; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; }
.chip button { border: 0; background: transparent; color: #8d241f; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.lookup-add { display: flex; gap: 6px; align-items: center; margin: 0; }
.lookup-add input { width: 140px; border: 1px solid #d7dee8; border-radius: 10px; padding: 8px 10px; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #0b1a30; cursor: pointer; border-radius: 12px;
  padding: 10px 14px; font-weight: 700;
  background: var(--navy); color: #fff;
  box-shadow: 0 2px 0 #0b1a30;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn-gold { background: var(--gold); color: #1d1608; border-color: #8d6a28; box-shadow: 0 2px 0 #8d6a28; }
.btn-book { background: var(--gold); color: #1d1608; border: 1px solid #8d6a28; border-radius: 999px; box-shadow: 0 2px 0 #8d6a28; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid #98a8bd; box-shadow: 0 2px 0 #d5deea; }
.btn-danger { background: var(--bad); border-color: #7f1d1d; box-shadow: 0 2px 0 #7f1d1d; }
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 20px;
  background: rgba(16, 36, 63, .48);
}
.modal[hidden], .modal[aria-hidden="true"] { display: none !important; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; border-bottom: 1px solid #e2e8f0; padding-bottom: 12px; text-align: right; }
.modal-close { background: none; border: none; font-size: 26px; cursor: pointer; color: #64748b; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.modal-close:hover { color: #dc2626; background: #fee2e2; }
.modal-card {
  width: min(680px, 95vw);
  max-width: 680px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, .24);
  padding: 24px;
  text-align: right;
  direction: rtl;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}
.modal-card:has(.modal-header),
.modal-card:has(.modal-body) {
  padding: 0 !important;
  overflow: hidden;
}
.modal-card .modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}
.modal-card .modal-body {
  padding: 22px 24px !important;
  max-height: calc(85vh - 140px);
  overflow-y: auto;
}
.modal-card .modal-footer {
  padding: 16px 24px !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.modal-card.modal-confirm, .modal-card.modal-sm {
  width: min(440px, 94vw);
  text-align: center;
}
.modal-mark {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bad-bg); color: var(--bad);
}
.modal-card h3 { margin: 0 0 8px; font-size: 20px; }
.modal-card p { margin: 0; color: #344054; line-height: 1.8; font-size: 15px; }
.modal-note { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.modal-actions .btn { min-width: 128px; }
.btn-ok { background: var(--ok); border-color: #166534; box-shadow: 0 2px 0 #166534; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 999px; }
.btn-open {
  background: var(--navy);
  color: #fff;
  border: 1px solid #0b1a30;
  border-radius: 999px;
  padding: 6px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 0 #0b1a30;
}
.btn-open:hover { background: var(--navy-2); filter: none; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: #344054; font-weight: 700; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.field textarea { min-height: 90px; resize: vertical; }
.muted { color: var(--muted); }
.help { background: #f8fafc; border: 1px dashed #d5deea; border-radius: 12px; padding: 10px 12px; color: #475467; font-size: 13px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input, .filters select { border: 1px solid #d7dee8; border-radius: 10px; padding: 8px 10px; background: #fff; }
.folders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.folder {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fbfcfe;
}
.folder strong { display: block; }
.folder span { color: var(--muted); font-size: 12px; }
.kanban { display: flex; gap: 12px; overflow: auto; padding-bottom: 8px; }
.column { min-width: 240px; background: #eef2f7; border-radius: 16px; padding: 10px; }
.column h3 { font-size: 14px; margin: 4px 6px 10px; }
.card-case {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid #e5ebf3;
}
.card-case b { display: block; }
.card-case small { color: var(--muted); }
.wf-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.wf-tools select, .wf-tools input { border: 1px solid #d7dee8; border-radius: 12px; padding: 8px 10px; background: #fff; min-width: 160px; }
.wf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.wf-board { display: flex; gap: 12px; overflow: auto; padding-bottom: 8px; }
.wf-col { min-width: 250px; max-width: 250px; background: #f8fafc; border: 1px solid #e6ebf2; border-radius: 18px; padding: 10px; }
.wf-col.over { outline: 2px solid #2457d6; }
.wf-col-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; font-weight: 800; }
.wf-col-head b { min-width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: #fff; font-size: 13px; }
.wf-card { background: #fff; border: 1px solid #e6ebf2; border-radius: 14px; padding: 10px; margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.wf-card.dragging { opacity: .55; }
.wf-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wf-card-top a { font-weight: 800; color: #1b2430; }
.wf-flag { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.wf-flag svg { width: 14px; height: 14px; }
.wf-flag.ok { background: #e7f6ee; color: #16a34a; }
.wf-flag.bad { background: #fde8e8; color: #c2413b; }
.wf-type { margin: 6px 0; color: #475467; font-size: 13px; }
.wf-lawyer { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.wf-ava { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.wf-card time { display: block; margin-top: 8px; color: #98a2b3; font-size: 12px; }
.wf-add { display: block; text-align: center; border: 1px dashed #d5deea; border-radius: 12px; padding: 8px; color: #475467; background: #fff; }
.wf-side .file-donut { margin-bottom: 10px; }
.wf-legend { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.wf-legend span { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.wf-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-inline-end: 6px; }
.wf-late, .wf-next { display: flex; flex-direction: column; gap: 10px; }
.wf-late a, .wf-next a { display: block; color: inherit; }
.wf-late small, .wf-next small { color: #667085; }
.wf-late em { color: #c2413b; font-style: normal; font-size: 12px; }
.study-head { align-items: flex-start; }
.study-head h1 { margin: 2px 0 4px; font-size: 26px; }
.study-tabs { margin-top: 4px; }
.study-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  background: #fbf6ea;
  border-color: #ead9ae;
}
.study-next p { margin: 0; line-height: 1.7; }
.study-next .btn { flex: 0 0 auto; }
.study-next svg { width: 18px; height: 18px; padding: 0; background: none; }
.study-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start; }
.study-layout > aside { display: flex; flex-direction: column; gap: 12px; }
.study-layout > aside > .panel { margin-bottom: 0; }
.study-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; align-items: start; }
.study-grid > .panel, .study-grid > .study-swot { margin: 0; height: auto; display: flex; flex-direction: column; }
.study-card h3 { margin-top: 0; }
.study-actions svg { width: 18px; height: 18px; padding: 0; background: none; border-radius: 0; }
.study-card p, .study-points, .swot-list { color: #344054; font-size: 13.5px; line-height: 1.7; }
.study-card p { margin: 0 0 8px; }
.study-points, .swot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.study-points li, .swot-list li { display: flex; gap: 8px; align-items: flex-start; }
.study-card ol.study-points { counter-reset: req; }
.study-card ol.study-points li::before { counter-increment: req; content: counter(req) "."; font-weight: 800; color: #1d4f91; min-width: 1.15em; }
.study-note { margin-top: 12px; }
.study-note-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: transparent; padding: 0;
  color: #1d4f91; font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer;
}
.study-note-toggle svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .15s ease;
}
.study-note-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.study-note-box {
  margin-top: 8px; padding: 10px;
  border: 1px solid #e3eaf2; border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 36, 63, .04);
}
.study-note-box[hidden] { display: none; }
.study-note-box textarea {
  display: block; width: 100%; min-height: 96px; resize: vertical;
  border: 1px solid #e6edf5; border-radius: 8px;
  background: #fbfcfe; color: #1c2838;
  padding: 10px 12px; line-height: 1.75;
}
.study-swot .study-note { margin: 10px 12px 4px; }
.study-swot.good .study-note-box { background: #f7fcf9; border-color: #d5efe2; }
.study-swot.bad .study-note-box { background: #fffbf5; border-color: #f3e4c4; }
.study-swot.opt .study-note-box { background: #fbf8ff; border-color: #e7daf8; }
.study-meta div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef2f6; }
.study-meta span { color: #667085; display: flex; align-items: center; gap: 6px; }
.study-doc { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef2f6; }
.study-doc a { display: flex; gap: 8px; align-items: center; color: inherit; }
.study-doc svg { width: 18px; height: 18px; color: #c2413b; }
.study-swot {
  background: #fff;
  border: 1px solid #e3eaf2;
  border-top-width: 3px;
  border-radius: 12px;
  padding: 0 0 12px;
  box-shadow: var(--shadow);
}
.study-swot.good { border-top-color: #1f8a5b; }
.study-swot.bad { border-top-color: #d97706; }
.study-swot.opt { border-top-color: #6d28d9; }
.swot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f6;
  background: #fbfcfe;
}
.swot-top h3 { margin: 0; font-size: 14px; font-weight: 700; color: #172033; }
.swot-list { padding: 0 12px; gap: 8px; }
.swot-list li {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 8px 10px;
}
.swot-mark { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; display: grid; }
.swot-top .swot-mark {
  width: 28px; height: 28px; margin-top: 0; padding: 5px;
  border-radius: 8px; box-sizing: border-box;
}
.swot-mark svg { width: 100%; height: 100%; display: block; }
.study-swot.good .swot-mark { color: #157a45; }
.study-swot.bad .swot-mark { color: #b7791f; }
.study-swot.opt .swot-mark { color: #6d28d9; }
.study-swot.good .swot-top .swot-mark { background: #e8f7ef; }
.study-swot.bad .swot-top .swot-mark { background: #fff6e6; }
.study-swot.opt .swot-top .swot-mark { background: #f3e8ff; }
.study-swot.opt .swot-list b { color: #6d28d9; font-weight: 800; min-width: 1.15em; }
.study-swot .muted { margin: 0 14px; }
.study-log { display: flex; flex-direction: column; gap: 10px; }
.study-log small { color: #667085; display: block; }
.study-actions .stack a, .study-actions .stack button { width: 100%; justify-content: space-between; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 18px 16px 0; }
.timeline li:before {
  content: "";
  position: absolute; right: 0; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #c5d0df;
}
.timeline li.done:before { background: var(--ok); }
.timeline li.now:before { background: var(--gold); }
.mini-steps { list-style: none; margin: 8px 0 0; padding: 0; max-height: 280px; overflow: auto; }
.mini-steps li { font-size: 13px; padding: 4px 0 4px 0; color: var(--muted); }
.mini-steps li.done { color: var(--ok); }
.mini-steps li.now { color: var(--navy); font-weight: 800; }
.stats-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.bar { height: 8px; background: #edf1f6; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--navy); }
.donut {
  width: 120px; height: 120px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 8px auto;
}
.donut em { background: #fff; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sig-pad { border: 1px dashed #b7c3d4; border-radius: 12px; background: #fff; touch-action: none; width: 100%; height: 140px; }
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  background: #0e213b;
}
.login-art {
  color: #fff;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(160deg, rgba(14,33,59,.2), rgba(14,33,59,.82)),
    radial-gradient(circle at 20% 20%, #c4a15a 0, transparent 28%),
    #173258;
}
.login-art h1 { font-size: 48px; margin: 0 0 8px; }
.login-card {
  background: #f7f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.login-box { width: min(440px, 100%); background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 18px 50px rgba(16, 36, 63, .12); }
.creds { font-size: 13px; background: #f8fafc; border-radius: 12px; padding: 10px 12px; }
.day-grid { display: grid; gap: 6px; }
.slot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
.slot.busy { background: #fff7ea; border-color: #f0d7a6; }
.slot-main { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.slot-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slot-item span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.check-list label { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.check-inline { display: flex; gap: 8px; align-items: center; margin: 4px 0 14px; font-size: 14px; }
.party-line { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.party-line.two { grid-template-columns: 1fr 1fr; }
.party-line.four { grid-template-columns: 1.4fr 1fr 1fr .8fr; }
.exam-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 12px 0; }
.exam-card h3 { margin: 0; background: var(--navy); color: #fff; padding: 10px 16px; font-size: 16px; border-radius: 0; }
.exam-items { list-style: none; margin: 0; padding: 4px 14px 8px; }
.exam-items li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.exam-mark { font-size: 12px; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.exam-mark.done { background: var(--ok-bg); color: var(--ok); }
.exam-mark.wait { background: var(--warn-bg); color: var(--warn); }
.exam-mark.bad { background: var(--bad-bg); color: var(--bad); }
.conflict-banner { border-radius: 12px; padding: 10px 12px; margin: 8px 0 12px; }
.conflict-banner.neg { background: var(--bad-bg); color: #8d241f; }
.conflict-banner.pos { background: var(--ok-bg); color: #14643f; }
.conflict-banner.link { background: var(--info-bg); color: var(--info); }
.conflict-banner.none { background: #f8fafc; color: #475467; }
.decision-board { border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 16px 0; background: #fff; }
.decision-board > h3 { text-align: center; margin: 2px 0 14px; font-size: 18px; }
.decision-card { position: relative; display: flex; align-items: center; gap: 12px; border: 1px solid #e7edf5; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: #fff; cursor: pointer; }
.decision-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.decision-card.is-on, .decision-card:has(input:checked) { border-color: currentColor; background: #fbfcfe; }
.decision-card.ok { color: #15803d; }
.decision-card.warn { color: #b45309; }
.decision-card.bad { color: #dc2626; }
.decision-card.info { color: #1d4ed8; }
.decision-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 40px; background: transparent; }
.decision-icon svg { color: inherit; }
.decision-card.bad .decision-icon { background: #fdecec; }
.decision-card.info .decision-icon { background: #e8f1fb; }
.decision-copy { color: var(--ink); }
.decision-copy strong { display: block; font-size: 15px; }
.decision-copy small { display: block; margin-top: 2px; color: #667085; font-size: 13px; }
.decision-card input:disabled ~ .decision-copy { cursor: default; }
.decision-card:has(input:disabled) { cursor: default; }
.decision-note { display: flex; align-items: center; gap: 10px; background: #f4f7fb; border-radius: 12px; padding: 12px 14px; color: #3d4d63; font-size: 13px; margin-top: 4px; }
.decision-note .decision-icon { width: 32px; height: 32px; flex-basis: 32px; background: #e8f1fb; color: #1d4ed8; }
.conflict-screen { display: flex; flex-direction: column; gap: 14px; }
.conflict-list { max-height: 220px; overflow: auto; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.sheet-head h2, .sheet-title { margin: 0; font-size: 18px; }
.sheet-title { margin: 16px 0 10px; }
.sheet-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 12px; }
.sheet-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sheet-gap { margin-top: 12px; }
.sheet-card { background: #fff; border: 1px solid #e7edf5; border-radius: 16px; padding: 14px; }
.sheet-card.client { background: #f6fbf7; }
.sheet-card.opponent { background: #fff6f6; }
.sheet-card.related { background: #f5f8ff; }
.sheet-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; }
.sheet-card.client h3, .sheet-card.opponent h3 { justify-content: center; }
.search-card { display: flex; gap: 10px; align-items: flex-start; }
.search-card h3 { margin: 0 0 4px; }
.search-card p { margin: 0 0 4px; color: #475467; font-size: 13px; line-height: 1.55; }
.search-card.green { background: #f4fbf6; }
.search-card.rose { background: #fff5f5; }
.search-card.blue { background: #f4f8ff; }
.search-card.lilac { background: #f7f4ff; }
.sheet-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 32px; }
.sheet-ico.green { background: #e7f8ee; color: #16a34a; }
.sheet-ico.red { background: #fdecec; color: #dc2626; }
.sheet-ico.blue { background: #e8f1fb; color: #2563eb; }
.sheet-ico.gold { background: #fff4df; color: #d97706; }
.sheet-ico.lilac { background: #f3e8ff; color: #7c3aed; }
.sheet-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(16, 36, 63, .06); font-size: 13px; }
.sheet-row span { color: #667085; white-space: nowrap; }
.sheet-row input, .sheet-row select { border: 0; background: transparent; width: 58%; color: var(--ink); font-weight: 700; padding: 0; }
.rel-chip { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e6ebf2; border-radius: 10px; padding: 6px 8px; margin-bottom: 8px; }
.rel-chip select, .rel-chip input { border: 0; background: transparent; min-width: 0; }
.rel-chip select { width: 92px; }
.rel-chip input { flex: 1; }
.rel-x { border: 0; background: transparent; color: #98a2b3; cursor: pointer; font-size: 18px; line-height: 1; }
.rel-add { border: 0; background: transparent; color: #1d4ed8; cursor: pointer; padding: 4px 0; }
.sheet-note { width: 100%; border: 0; background: transparent; resize: vertical; min-height: 64px; color: #344054; padding: 0; }
.mini-label { display: block; color: #667085; font-size: 12px; margin: 8px 0 4px; }
.decision-select { width: 100%; border-radius: 999px; border: 1px solid #e7edf5; padding: 8px 12px; background: #fff; }
.decision-select.ok { background: #e8f8ef; color: #15803d; border-color: transparent; }
.decision-select.warn { background: #fff6e0; color: #b45309; border-color: transparent; }
.decision-select.bad { background: #fdecec; color: #dc2626; border-color: transparent; }
.decision-select.info { background: #e8f1fb; color: #1d4ed8; border-color: transparent; }
.sheet-person { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.sheet-person b, .sheet-person small { display: block; }
.sheet-person small { color: #667085; font-size: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sheet-avatar { width: 32px; height: 32px; border-radius: 50%; background: #eef2f7; color: #475467; display: grid; place-items: center; flex: 0 0 32px; }
.summary-final { display: flex; gap: 10px; align-items: center; background: #f4f8ff; border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.summary-final small { display: block; color: #667085; }
.summary-line { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eef2f6; font-size: 13px; }
.summary-line span { color: #667085; }
.risk { display: inline-flex; align-items: center; gap: 6px; }
.risk i { width: 8px; height: 8px; border-radius: 50%; background: #98a2b3; display: inline-block; }
.risk.ok i { background: #16a34a; }
.risk.warn i { background: #f59e0b; }
.risk.bad i { background: #dc2626; }
.sheet-steps { background: #fff; border: 1px solid #e7edf5; border-radius: 16px; padding: 14px 16px 18px; margin-top: 14px; }
.sheet-steps h3 { margin: 0 0 16px; }
.steps { display: flex; justify-content: space-between; gap: 8px; position: relative; }
.steps:before { content: ""; position: absolute; top: 16px; right: 6%; left: 6%; height: 3px; background: #e6ebf2; }
.step { position: relative; z-index: 1; flex: 1; text-align: center; font-size: 12px; color: #667085; }
.step b { display: block; color: var(--ink); margin: 8px 0 2px; font-size: 13px; }
.step span { display: block; }
.step i { width: 34px; height: 34px; border-radius: 50%; display: block; margin: 0 auto; background: #fff; border: 3px solid #d5deea; }
.step.done.s1 i { background: #16a34a; border-color: #16a34a; }
.step.done.s2 i { background: #0f766e; border-color: #0f766e; }
.step.done.s3 i { background: #d97706; border-color: #d97706; }
.step.done.s4 i { background: #2563eb; border-color: #2563eb; }
.step.done.s5 i { background: #7c3aed; border-color: #7c3aed; }
.check-sheet .row-actions { margin-top: 12px; }
.pager { display: flex; gap: 8px; align-items: center; }
.meet-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.meet-back { margin: 0 0 8px; }
.meet-back a { color: var(--info); font-size: 13px; }
.meet-card { background: #fff; border: 1px solid #e7edf5; border-radius: 16px; padding: 14px 16px 16px; margin-bottom: 12px; }
.meet-card h3 { margin: 0 0 12px; font-size: 16px; }
.meet-card h3 small { color: var(--muted); font-weight: 500; font-size: 12px; }
.meet-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.meet-card-head h3 { margin: 0; }
.meet-card-head label { display: flex; align-items: center; gap: 8px; color: #667085; font-size: 13px; }
.meet-card-head input { width: auto; }
.meet-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.meet-radios, .meet-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.meet-radios small, .field i { color: #98a2b3; font-style: normal; font-weight: 500; }
.field i { color: #d92d20; }
.meet-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.meet-service { display: block; border: 1px solid #e6ebf2; border-radius: 14px; padding: 10px; background: #fff; cursor: pointer; }
.meet-service span { display: flex; align-items: center; gap: 8px; color: #344054; }
.meet-service b { font-size: 13px; font-weight: 700; }
.meet-service input[type="checkbox"] { float: left; }
.meet-service.wide { grid-column: span 2; }
.meet-service.wide input[type="text"] { margin-top: 8px; }
.meet-service:has(input:checked) { border-color: #7aa2d6; background: #f4f8fd; }
.meet-trio { display: grid; grid-template-columns: 1fr 1fr 1.05fr; gap: 12px; }
.meet-file { display: flex; align-items: center; gap: 8px; border: 1px solid #eef2f6; border-radius: 10px; padding: 8px; margin-bottom: 8px; background: #fff; }
.meet-file i { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #fdecec; color: #c2413b; font-size: 10px; font-style: normal; font-weight: 800; flex: 0 0 34px; }
.meet-file span { flex: 1; min-width: 0; font-size: 13px; }
.meet-file .btn { margin-inline-start: auto; color: #fff; }
.meet-secret { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 13px; }
.meet-recommend { display: flex; align-items: center; gap: 8px; }
.meet-recommend i { width: 28px; height: 28px; border-radius: 50%; background: #16a34a; flex: 0 0 28px; }
.meet-side .meet-act { width: 100%; display: flex; gap: 10px; align-items: center; text-align: right; background: #fff; border: 1px solid #b7c3d4; border-radius: 14px; padding: 10px; margin-bottom: 8px; cursor: pointer; box-shadow: 0 2px 0 #d5deea; font: inherit; color: inherit; }
.meet-side .meet-act:hover { border-color: #2457d6; background: #f5f8fd; }
.meet-side .meet-act i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #e7eef8; color: #1d4f91; font-style: normal; font-weight: 800; flex: 0 0 36px; }
.meet-side .meet-act b, .meet-side .meet-act small { display: block; }
.meet-side .meet-act small { color: #667085; font-size: 12px; }
.meet-side .meet-act.ok { background: #eefbf3; border-color: #b7ebc9; }
.meet-side .meet-act.ok i { background: #16a34a; color: #fff; }
.meet-side .meet-act.bad i { background: #fdecec; color: #c2413b; }
.meet-meta { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eef2f6; font-size: 13px; }
.meet-meta span { color: #667085; }
.meet-meta a { color: var(--info); }
.meet-meta .btn { color: var(--navy); }
.meet-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.meet-save { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meet-save .btn:last-child { grid-column: 1 / -1; }
.appt-layout { display: grid; grid-template-columns: .9fr 1.15fr; gap: 16px; align-items: start; }
.appt-form h4 { margin: 16px 0 8px; font-size: 15px; }
.appt-people { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.appt-people label { display: flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 13px; }
.appt-people small { color: var(--muted); }
.appt-docs { display: grid; gap: 6px; margin-bottom: 10px; }
.appt-docs label { display: flex; gap: 8px; align-items: center; }
.appt-remind { background: #f4f8fd; border: 1px solid #d5e4f5; border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.appt-remind b { color: #1d4f91; }
.appt-remind p { margin: 6px 0 0; }
.appt-remind ul { margin: 8px 0 0; padding: 0 18px 0 0; color: #475467; font-size: 13px; }
.appt-clash { background: #fdecec; color: #9f1239; border-radius: 12px; padding: 8px 10px; }
.slot.busy { background: #fff8ee; }
.slot span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.slot small { color: #667085; }
.cal-panel { padding-bottom: 16px; }
.cal-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-top h3 { flex: 1; text-align: center; margin: 0; font-size: 20px; }
.cal-picker input { border: 0; background: transparent; color: var(--navy); font-weight: 700; }
.cal-tabs { display: flex; justify-content: center; gap: 6px; background: #f4f7fb; border-radius: 14px; padding: 6px; margin-bottom: 14px; }
.cal-tabs a { padding: 8px 16px; border-radius: 10px; color: #475467; font-weight: 700; }
.cal-tabs a.on { background: #2457d6; color: #fff; }
.cal-board { display: flex; gap: 8px; }
.cal-hours { width: 72px; flex: 0 0 72px; text-align: center; }
.cal-hours span { display: flex; align-items: flex-start; justify-content: center; height: 90px; color: #64748b; font-size: 11.5px; font-weight: 700; padding-top: 4px; }
.cal-track { position: relative; flex: 1; height: 900px; }
.cal-hour { position: absolute; inset-inline: 0; height: 90px; border-top: 1px solid #e2e8f0; }
.cal-hour span { position: absolute; top: 16px; inset-inline-start: 8px; opacity: 0; }
.cal-hour:hover { background: #f8fafc; }
.cal-hour:hover span { opacity: 1; }

.cal-card {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 86px;
  overflow: hidden;
  text-align: start;
  text-decoration: none;
  border-inline-start: 5px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.cal-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  z-index: 5;
}
.cal-card.on {
  box-shadow: 0 0 0 2.5px #2563eb, 0 6px 18px rgba(37, 99, 235, 0.15);
}

.cal-card.blue { background: #eff6ff; border-inline-start-color: #2563eb; color: #1e3a8a; }
.cal-card.green { background: #f0fdf4; border-inline-start-color: #16a34a; color: #14532d; }
.cal-card.purple { background: #faf5ff; border-inline-start-color: #9333ea; color: #581c87; }
.cal-card.gold { background: #fffbeb; border-inline-start-color: #d97706; color: #78350f; }

.cal-time-badge {
  font-size: 12.5px;
  font-weight: 800;
  color: inherit;
  direction: ltr;
  display: inline-block;
}
.cal-dur-pill {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}
.cal-type-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: inherit;
}
.cal-status-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}
.cal-status-tag.tag-active { background: rgba(0, 0, 0, 0.07); color: inherit; }
.cal-status-tag.tag-done { background: #dcfce7; color: #15803d; }
.cal-status-tag.tag-cancelled { background: #fee2e2; color: #b91c1c; }

.cal-card-details-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 5px;
  margin-top: 4px;
}
.cal-detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.9;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.1s ease;
}
.cal-action-btn:hover {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.cal-link { position: absolute; top: 10px; inset-inline-end: 10px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; }
.cal-link:after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; top: 3px; left: 3px; }
.cal-now { position: absolute; inset-inline: -6px 0; z-index: 3; border-top: 2px solid #e11d48; }
.cal-now i { position: absolute; top: -5px; inset-inline-end: -4px; width: 10px; height: 10px; border-radius: 50%; background: #e11d48; }
.cal-brief { margin-top: 16px; background: #f7f8fb; border-radius: 16px; padding: 14px 16px; }
.cal-brief-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-brief-head h3 { margin: 0; font-size: 16px; }
.cal-brief-head svg { color: #667085; }
.cal-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #e6ebf2; font-size: 14px; }
.cal-line span { color: #667085; }
.cal-line b { font-weight: 700; text-align: left; }
.cal-confirm { display: flex; align-items: center; justify-content: center; gap: 6px; color: #15803d; font-weight: 700; margin: 12px 0 0; }
.cal-confirm i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #15803d; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-wday { background: #f8fafc; border-radius: 12px; padding: 8px; min-height: 180px; }
.cal-wday.on { outline: 2px solid #2457d6; }
.cal-wday > a { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; color: #344054; }
.cal-mini, .cal-dot { display: block; border-radius: 8px; padding: 4px 6px; margin-bottom: 4px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-mini.blue, .cal-dot.blue { background: #e7f0fb; }
.cal-mini.green, .cal-dot.green { background: #e7f6ee; }
.cal-mini.purple, .cal-dot.purple { background: #f3e8ff; }
.cal-mini.gold, .cal-dot.gold { background: #fff6e0; }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-mhead { text-align: center; color: #667085; font-size: 12px; font-weight: 700; }
.cal-mcell { min-height: 78px; background: #f8fafc; border-radius: 10px; padding: 6px; }
.cal-mcell.empty { background: transparent; }
.cal-mcell.on { outline: 2px solid #2457d6; }
.cal-agenda { display: grid; gap: 8px; }
.cal-agenda-item { display: flex; gap: 12px; align-items: center; border-radius: 12px; padding: 10px 12px; border-inline-start: 4px solid transparent; }
.cal-agenda-item.blue { background: #e7f0fb; border-inline-start-color: #3b82f6; }
.cal-agenda-item.green { background: #e7f6ee; border-inline-start-color: #16a34a; }
.cal-agenda-item.purple { background: #f3e8ff; border-inline-start-color: #7c3aed; }
.cal-agenda-item.gold { background: #fff6e0; border-inline-start-color: #d97706; }
.cal-agenda-item span { display: flex; flex-direction: column; }
.cal-agenda-item small { color: #667085; }
@media (max-width: 1100px) {
  .cal-week, .cal-month { grid-template-columns: 1fr 1fr; }
}
.doc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.doc-screen { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.doc-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.doc-folder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 118px; padding: 12px 8px; border-radius: 14px; border: 1px solid #e6ebf2;
  background: #fff; text-align: center; color: #1b2430;
}
.doc-folder.on { border-color: #2457d6; box-shadow: 0 0 0 2px rgba(36, 87, 214, .18); }
.doc-folder b { font-size: 13px; line-height: 1.35; }
.doc-folder small { color: #667085; }
.doc-folder-add { border-style: dashed; color: #2457d6; }
.doc-ico {
  width: 46px; height: 34px; position: relative; border-radius: 3px 6px 6px 6px;
  background: #f6d48a; box-shadow: inset 0 -7px 0 #e4bc62;
}
.doc-ico:before {
  content: ""; position: absolute; top: -7px; right: 0; width: 20px; height: 8px;
  background: #e4bc62; border-radius: 4px 4px 0 0;
}
.doc-plus {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #e8f1fb; color: #2457d6; font-size: 22px; font-weight: 700;
}
.doc-inline { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin-top: 12px; }
.doc-inline .field { flex: 1; min-width: 180px; margin: 0; }
.doc-table-head { align-items: flex-start; flex-wrap: wrap; }
.doc-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.doc-tools input, .doc-tools select, .doc-move select {
  border: 1px solid #d7dee8; border-radius: 10px; padding: 8px 10px; background: #fff;
}
.doc-ext {
  display: inline-flex; align-items: center; gap: 4px; min-width: 40px; height: 26px; padding: 0 6px;
  border-radius: 6px; background: #fee2e2; color: #b91c1c; font-size: 10px; font-weight: 800;
}
.doc-ext svg { width: 14px; height: 14px; }
.doc-ext em { font-style: normal; }
.doc-ext.big { width: 72px; height: 84px; flex-direction: column; justify-content: center; gap: 4px; font-size: 12px; }
.doc-ext.big svg { width: 28px; height: 28px; }
.doc-ops svg, .doc-tools svg, .row-actions svg, .doc-move svg, .doc-inline svg {
  width: 16px; height: 16px; flex: 0 0 auto;
}
tr.doc-on td { background: #eef4ff; }
.doc-detail { position: sticky; top: 12px; }
.doc-preview {
  background: #f8fafc; border: 1px solid #e6ebf2; border-radius: 14px;
  min-height: 150px; display: grid; place-items: center; text-align: center; padding: 16px; margin-bottom: 12px;
}
.doc-preview img { max-width: 100%; max-height: 180px; border-radius: 8px; }
.doc-preview strong { display: block; margin-top: 8px; font-size: 13px; }
.doc-meta { display: grid; gap: 0; margin-bottom: 14px; }
.doc-meta > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #e6ebf2; font-size: 13px; }
.doc-meta span { color: #667085; }
.doc-meta b { font-weight: 700; text-align: left; }
.doc-meta a { color: var(--info); }
.doc-ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; align-items: stretch; }
.doc-ops form { display: flex; width: 100%; margin: 0; min-width: 0; }
.doc-ops .doc-span { grid-column: 1 / -1; }
.doc-ops form.doc-attach { display: flex; gap: 8px; align-items: center; }
.doc-ops form.doc-attach input[type="file"] { flex: 1; min-width: 0; }
.doc-ops .btn, .doc-ops button {
  width: 100%; height: 100%; min-height: 72px;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 8px 6px; border-radius: 14px;
  font-size: 12px; line-height: 1.25; text-align: center; white-space: normal;
}
.doc-ops .doc-span .btn { flex-direction: row; min-height: 44px; font-size: 14px; }
.doc-ops .btn:disabled { opacity: .5; cursor: not-allowed; }
.doc-move { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 12px; }
.doc-move label { font-size: 13px; font-weight: 700; white-space: nowrap; }
.doc-move select { flex: 1; min-width: 0; }
.doc-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-log li { border-inline-start: 3px solid #2457d6; padding: 6px 10px; background: #f8fafc; border-radius: 8px; }
.doc-log b, .doc-log small, .doc-log time { display: block; }
.doc-log small, .doc-log time { color: #667085; font-size: 12px; }
.doc-pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; color: #667085; font-size: 13px; }
.doc-pager a { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; border: 1px solid #d7dee8; margin-inline-start: 4px; background: #fff; }
.doc-pager a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.task-screen { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.task-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  align-items: center;
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  scrollbar-width: thin;
}
.task-tabs::-webkit-scrollbar {
  height: 4px;
}
.task-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.task-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #475569;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.task-tabs a:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.task-tabs a.on {
  background: #1e3a8a !important;
  color: #ffffff !important;
  font-weight: 700;
  border-color: #1e3a8a !important;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  line-height: 1;
}
.task-tabs a.on .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.task-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.task-tools input, .task-tools select, .task-form input, .task-form select, .task-form textarea {
  border: 1px solid #d7dee8; border-radius: 10px; padding: 8px 10px; background: #fff;
}
.task-form { border: 1px solid #e6ebf2; border-radius: 14px; padding: 12px; margin-bottom: 14px; background: #f8fafc; }
.task-form h3 { margin-top: 0; }
.task-focus { border: 1px solid #dbe7ff; background: #f5f8ff; border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.task-focus p { margin: 6px 0; }
.task-type { display: inline-flex; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; background: #e8f1fb; color: #1d4f91; }
.task-type.proc { background: #e7f6ee; color: #166534; }
.task-type.money { background: #fff6e0; color: #92400e; }
.task-screen .badge, .task-type, .task-due { white-space: nowrap; }
.task-screen .row-actions { flex-wrap: nowrap; }
.task-screen .row-actions form { display: inline-flex; margin: 0; }
.task-due, .task-alert { display: inline-flex; align-items: center; gap: 4px; }
.task-due svg, .task-alert svg, .task-tools svg, .task-side svg, .task-ico svg, .doc-inline svg { width: 16px; height: 16px; flex: 0 0 auto; }
.task-due.now, .task-alert.now { color: #dc2626; font-weight: 700; }
.task-due.late, .task-alert.late { color: #c2410c; font-weight: 700; }
.task-due.soon, .task-alert.soon { color: #b7791f; font-weight: 700; }
.task-ico { width: 34px; height: 34px; padding: 0; border-radius: 10px; }
.task-side { display: grid; gap: 12px; }
.task-side .panel { margin: 0; }
.task-donut-wrap { display: flex; gap: 14px; align-items: center; }
.task-donut { width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; }
.task-donut b { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; font-size: 22px; line-height: 1; }
.task-donut small { display: block; margin-top: 4px; color: #667085; font-size: 12px; font-weight: 700; }
.task-legend { display: grid; gap: 6px; font-size: 13px; }
.task-legend i, .task-stat i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.ok { background: #16a34a; }
.dot.bad { background: #dc2626; }
.task-stat { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef2f6; }
.task-alert { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef2f6; color: inherit; }
.task-alert span { display: flex; flex-direction: column; }
.task-alert small { color: #667085; }
.task-alert-form { display: grid; gap: 6px; margin-top: 10px; }
.task-alert-form label { display: flex; gap: 6px; align-items: center; }
.rep-screen { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.rep-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rep-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.rep-kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); min-height: 108px; }
.rep-kpi b { display: block; margin: 8px 0 4px; font-size: 28px; line-height: 1; }
.rep-kpi small { color: var(--muted); font-weight: 700; }
.rep-kpi .up { color: #16a34a; }
.rep-kpi .down { color: #dc2626; }
.rep-kpi-head { display: flex; justify-content: space-between; align-items: center; color: #344054; font-weight: 800; font-size: 13px; }
.rep-kpi svg, .rep-side svg { width: 18px; height: 18px; flex: 0 0 auto; }
.rep-split { display: grid; grid-template-columns: .9fr 1.15fr; gap: 12px; align-items: start; }
.rep-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); margin-bottom: 12px; }
.rep-card h3 { margin: 0 0 12px; font-size: 15px; }
.rep-legend { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.rep-legend span { display: flex; justify-content: space-between; gap: 8px; align-items: center; white-space: nowrap; }
.acc-board .task-donut-wrap { flex-direction: column; align-items: stretch; }
.acc-board .rep-legend { min-width: 0; }
.rep-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-inline-end: 6px; }
.rep-chart { width: 100%; height: 190px; }
.rep-chart text { font-size: 11px; fill: #667085; }
.rep-bars { display: flex; flex-direction: column; gap: 10px; }
.rep-bar { display: grid; grid-template-columns: 110px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; }
.rep-track { height: 10px; background: #eef2f6; border-radius: 999px; overflow: hidden; }
.rep-track b { display: block; height: 100%; border-radius: 999px; }
.rep-side .btn { width: 100%; justify-content: space-between; }
.rep-side .stack { gap: 8px; }
.rep-letter { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef2f6; color: inherit; }
.rep-letter small { color: #667085; }
.rep-dir { border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.rep-dir.out { background: #e7f6ee; color: #166534; }
.rep-dir.in { background: #e8f1fb; color: #1d4f91; }
.rep-dir.inner { background: #fff6e0; color: #92400e; }
.rep-screen .row-actions { flex-wrap: nowrap; }
.rep-screen .row-actions form { display: inline-flex; margin: 0; }
.rep-note { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.acc-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.acc-mark svg { width: 22px; height: 22px; }
.acc-mark.blue { background: #e8f1fb; color: #2457d6; }
.acc-mark.green { background: #e7f6ee; color: #16a34a; }
.acc-mark.gold { background: #fff6e0; color: #a16207; }
.acc-mark.purple { background: #f3e8ff; color: #7c3aed; }
.acc-act, button.acc-act {
  width: 34px; height: 34px; padding: 0; border-radius: 10px;
  background: #fff; color: #344054; border: 1px solid #d5deea; box-shadow: none;
}
.acc-act svg { width: 16px; height: 16px; }
button.acc-act.danger { color: #c2413b; background: #fff5f5; border-color: #f3c1c1; box-shadow: none; }
.acc-board { display: grid; grid-template-columns: minmax(0, 1.45fr) 260px; gap: 12px; align-items: start; }
.acc-status .rep-bar { grid-template-columns: 92px 1fr auto; }
.acc-months { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.acc-months div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.acc-months b { width: 22px; background: #2457d6; border-radius: 6px 6px 0 0; min-height: 2px; }
.acc-months span { font-size: 11px; color: #667085; }
.acc-total td { font-weight: 800; background: #f8fafc; }
.file-id { align-items: flex-start; }
.file-id h1 { margin: 2px 0 4px; font-size: 26px; }
.file-crumb { color: #667085; font-size: 13px; margin-bottom: 4px; }
.file-crumb a { color: #2457d6; }
.file-against { margin: 0 0 10px; color: #344054; }
.fil-parties p { display: block; margin: 0; color: #667085; font-size: 13px; }
.file-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; background: #f4f7fb; border: 1px solid #e6ebf2; border-radius: 999px; padding: 4px 10px; font-size: 12px; color: #475467; }
.file-chip svg { width: 14px; height: 14px; }
.file-lawyer { display: flex; align-items: center; gap: 8px; }
.file-ava { width: 42px; height: 42px; border-radius: 50%; background: #e8f1fb; color: #2457d6; display: grid; place-items: center; font-weight: 800; }
.file-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.file-kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); display: block; color: inherit; }
.file-kpi small { color: #667085; display: block; margin-top: 4px; }
.file-kpi b { display: block; margin-top: 8px; font-size: 18px; }
.file-kpi .acc-mark { margin-bottom: 8px; }
.file-screen { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.file-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; margin-bottom: 12px; }
.file-time { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.file-time li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: center; position: relative; }
.file-time li::before { content: ""; position: absolute; right: 7px; top: 18px; bottom: -14px; width: 2px; background: #e6ebf2; }
.file-time li:last-child::before { display: none; }
.file-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #98a2b3; background: #fff; z-index: 1; }
.file-dot.done { background: #16a34a; border-color: #16a34a; }
.file-dot.now { background: #2457d6; border-color: #2457d6; }
.file-metrics { display: grid; grid-template-columns: 150px repeat(5, minmax(0, 1fr)); gap: 10px; }
.file-metric { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
.file-metric span { display: block; color: #667085; font-size: 12px; margin-bottom: 6px; }
.file-metric b { font-size: 20px; }
.file-donut { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; }
.file-donut b { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 16px; }
.file-act { display: flex; flex-direction: column; gap: 10px; }
.file-act a, .file-act div { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; color: inherit; }
.file-act small { color: #667085; display: block; }
.file-act time { color: #98a2b3; font-size: 12px; white-space: nowrap; }
.acc-mark.teal { background: #e7f7f6; color: #0f766e; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.rev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.rev-side { display: flex; flex-direction: column; gap: 12px; }
.rev-side .panel, .rev-split .panel, .rev-bottom .panel { margin-bottom: 0; }
.rev-split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 12px; margin-bottom: 12px; align-items: start; }
.rev-bottom { display: grid; grid-template-columns: 1.35fr .9fr; gap: 12px; align-items: start; }
.rev-sum, .rev-legend span { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eef2f6; font-size: 13px; }
.rev-legend { display: flex; flex-direction: column; margin-top: 8px; }
.rev-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-inline-end: 6px; }
.rev-actions .stack a, .rev-actions .stack button { width: 100%; justify-content: space-between; }
.rev-actions svg, .rev-file svg, .rev-step-top svg { width: 18px; height: 18px; padding: 0; background: none; border-radius: 0; }
.rev-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rev-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.rev-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #eef3f9; color: #173258; font-weight: 800; font-size: 13px; }
.rev-steps li.done .rev-num { background: #e8f7ef; color: #157a45; }
.rev-steps li.wait .rev-num { background: #fff6e6; color: #b7791f; }
.rev-step-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.rev-person { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
.rev-ava { width: 28px; height: 28px; border-radius: 50%; background: #173258; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.rev-steps p, .rev-note p, .rev-file p { margin: 6px 0; color: #344054; line-height: 1.7; }
.rev-steps small, .rev-note small, .rev-letter small, .rev-log small { color: #667085; display: block; }
.rev-file { border: 1px solid #e6edf5; border-radius: 12px; padding: 12px; background: #fbfcfe; }
.rev-file-top, .rev-file-meta, .rev-note { display: flex; align-items: center; gap: 8px; }
.rev-file-top { justify-content: space-between; }
.rev-file-top div { flex: 1; }
.rev-file-top small, .rev-file-meta { color: #667085; display: block; }
.rev-file-meta { margin: 8px 0; gap: 14px; flex-wrap: wrap; }
.rev-doc { width: 42px; height: 42px; border-radius: 10px; background: #e8f1fb; color: #2457d6; display: grid; place-items: center; }
.rev-doc svg { width: 22px; height: 22px; }
.rev-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.rev-stats div { background: #fff; border: 1px solid #e6edf5; border-radius: 10px; padding: 8px; }
.rev-stats small { color: #667085; display: block; }
.rev-note { align-items: flex-start; flex-wrap: wrap; border: 1px solid #eef2f6; border-radius: 10px; padding: 10px; margin-bottom: 8px; background: #fff; }
.rev-note div { flex: 1; }
.rev-note p { width: 100%; }
.rev-note-form textarea, .rev-decide textarea { width: 100%; min-height: 70px; margin: 8px 0; border: 1px solid #e3eaf2; border-radius: 10px; padding: 8px 10px; }
.rev-log, .rev-letter { display: flex; flex-direction: column; gap: 8px; }
.rev-letter { padding-bottom: 8px; border-bottom: 1px solid #eef2f6; }
.agr-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start; }
.agr-side { display: flex; flex-direction: column; gap: 12px; }
.agr-side .panel { margin-bottom: 0; }
.agr-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.agr-people { display: flex; gap: 18px; margin: 12px 0; flex-wrap: wrap; }
.agr-people > div { display: flex; align-items: center; gap: 8px; }
.agr-people small { display: block; color: #667085; }
.agr-tpls { display: flex; flex-direction: column; gap: 8px; }
.agr-tpl { display: block; width: 100%; text-align: right; font: inherit; color: inherit; cursor: pointer; border: 1px solid #e3eaf2; background: #fff; border-radius: 12px; padding: 10px 12px; }
.agr-tpl.on { border-color: #173258; background: #f5f9ff; }
.agr-tpl small { display: block; color: #667085; font-weight: 400; }
.agr-status { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.agr-status li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: start; }
.agr-status span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #eef2f6; color: #667085; font-weight: 800; }
.agr-status li.done span { background: #e8f7ef; color: #157a45; }
.agr-status small { color: #667085; display: block; }
.agr-actions .stack a, .agr-actions .stack button { width: 100%; justify-content: space-between; }
.agr-actions svg { width: 18px; height: 18px; padding: 0; background: none; border-radius: 0; }
.agr-costs, .agr-pay { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.agr-pay { margin-top: 10px; }
.agr-layout table .btn svg { width: 16px; height: 16px; padding: 0; background: none; }
.agr-costs div, .agr-pay div { background: #fbfcfe; border: 1px solid #e6edf5; border-radius: 12px; padding: 12px; }
.agr-costs small, .agr-pay small { color: #667085; display: block; }
.agr-costs b, .agr-pay b { display: block; margin-top: 6px; font-size: 18px; }
.agr-bar { height: 8px; background: #eef2f6; border-radius: 99px; overflow: hidden; margin: 12px 0; }
.agr-bar span { display: block; height: 100%; background: #1f8a5b; }
.con-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start; }
.con-side { display: flex; flex-direction: column; gap: 12px; }
.con-side .panel { margin-bottom: 0; }
.con-top { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.con-file-row, .con-docs li { display: flex; gap: 10px; align-items: flex-start; }
.con-ext { width: 48px; height: 56px; border-radius: 8px; background: #fdecec; color: #b42318; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.con-file small, .con-docs small, .con-client small { display: block; color: #667085; }
.con-docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.con-docs svg, .con-sign svg, .con-file-row svg { width: 18px; height: 18px; padding: 0; background: none; }
.con-ack { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 12px; }
.con-pad { min-height: 120px; border: 1px dashed #d7c4a3; border-radius: 12px; background: #fffdf8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-bottom: 10px; }
.con-pad img { max-width: 280px; background: #fff; }
.con-pad b { font-size: 22px; }
.con-sign .btn-ok, .con-submit { width: 100%; justify-content: center; margin-top: 8px; }
.btn[aria-disabled="true"] { opacity: .65; pointer-events: none; }
.plea-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start; }
.plea-side { display: flex; flex-direction: column; gap: 12px; }
.plea-side .panel { margin-bottom: 0; }
.plea-tpls { display: flex; flex-direction: column; gap: 8px; }
.plea-tpl { display: block; width: 100%; text-align: right; font: inherit; color: inherit; cursor: pointer; border: 1px solid #e3eaf2; background: #fff; border-radius: 12px; padding: 10px 12px; }
.plea-tpl.on { border-color: #173258; background: #f5f9ff; }
.plea-fields { display: grid; grid-template-columns: 1.4fr .6fr 1fr; gap: 10px; }
.plea-bottom { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 14px; align-items: start; }
.plea-ready, .plea-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plea-ready li { display: flex; gap: 8px; align-items: flex-start; }
.plea-ready li.ok span { color: #157a45; font-weight: 800; }
.plea-ready li.wait span { color: #b54708; }
.plea-notes small, .plea-check .muted { color: #667085; display: block; }
.plea-check { text-align: center; }
.plea-layout table .btn svg, .plea-side .stack svg { width: 16px; height: 16px; padding: 0; background: none; border-radius: 0; }
.ready-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start; }
.ready-side { display: flex; flex-direction: column; gap: 12px; }
.ready-side .panel { margin-bottom: 0; }
.ready-split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start; }
.ready-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin-top: 14px; }
.ready-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.ready-dl small { color: #667085; display: block; }
.ready-banner { display: flex; gap: 8px; align-items: center; background: #e8f7ef; color: #146c3a; border: 1px solid #b7e4c7; border-radius: 12px; padding: 10px 12px; margin: 14px 0; }
.ready-banner svg { width: 18px; height: 18px; padding: 0; background: none; }
.ready-layout table .btn svg, .ready-side .stack svg { width: 16px; height: 16px; padding: 0; background: none; border-radius: 0; }
.fil-crumb { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; color: #667085; font-size: 13px; }
.fil-crumb a { color: #667085; }
.fil-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.fil-side { display: flex; flex-direction: column; gap: 12px; }
.fil-side .panel, .fil-layout .panel { margin-bottom: 0; }
.fil-layout .panel > h3 { border: 0; padding: 0; margin-bottom: 12px; }
.fil-case-status { text-align: center; }
.fil-case-status small { color: #667085; display: block; margin-bottom: 8px; }
.fil-case-status strong { display: flex; align-items: center; justify-content: center; gap: 6px; color: #157a45; font-size: 16px; }
.fil-case-status strong i { width: 8px; height: 8px; border-radius: 50%; background: #1f8a5b; display: inline-block; }
.fil-case-status em { display: block; margin-top: 4px; color: #1f8a5b; font-style: normal; font-size: 13px; }
.fil-intro h1 { margin: 0 0 4px; font-size: 28px; }
.fil-intro-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.fil-no { color: #667085; margin-bottom: 6px; }
.fil-no b { color: #a7843d; font-weight: 800; }
.fil-intro p { margin: 0; color: #667085; font-size: 13px; }
.fil-back { display: inline-flex; align-items: center; gap: 6px; }
.fil-back svg, .fil-tabs svg, .fil-acts svg, .fil-user svg, .fil-eye svg, .fil-banner svg { width: 16px; height: 16px; padding: 0; background: none; border-radius: 0; }
.fil-tabs { display: flex; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid #e6ebf2; margin: 8px 0 14px; }
.fil-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px 10px; color: #667085; font-weight: 700; border-bottom: 2px solid transparent; }
.fil-tabs a.on { color: #c47b12; border-bottom-color: #c47b12; }
.fil-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.fil-fields .field label em { color: #c2413b; font-style: normal; }
.fil-steps { list-style: none; margin: 0; padding: 0; }
.fil-steps li { display: flex; gap: 10px; position: relative; padding-bottom: 16px; }
.fil-steps li:before { content: ""; position: absolute; top: 24px; bottom: 0; right: 11px; width: 2px; background: #e6ebf2; }
.fil-steps li:last-child { padding-bottom: 0; }
.fil-steps li:last-child:before { display: none; }
.fil-steps li > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e8f7ef; color: #157a45; font-size: 12px; font-weight: 800; position: relative; z-index: 1; flex: 0 0 auto; }
.fil-steps li.wait > span { background: #f2f4f7; color: #98a2b3; }
.fil-steps li.now > span { background: #c47b12; color: #fff; }
.fil-steps b { display: block; font-size: 13px; }
.fil-steps small { color: #98a2b3; font-size: 12px; }
.fil-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.fil-meta small { color: #667085; display: block; }
.fil-rows { display: flex; flex-direction: column; gap: 12px; }
.fil-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fil-rows small { color: #667085; }
.fil-pill { background: #e8f7ef; color: #157a45; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.fil-user { display: inline-flex; align-items: center; gap: 6px; }
.fil-user svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: #eef3f9; color: #173258; }
.fil-acts { display: flex; flex-direction: column; gap: 8px; }
.fil-act { display: flex; align-items: center; justify-content: space-between; width: 100%; background: #fff; border: 1px solid #e3eaf2; border-radius: 10px; padding: 10px 12px; font-weight: 700; color: #1b2430; cursor: pointer; }
.fil-act.danger { color: #c2413b; }
.fil-attach { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; align-items: stretch; }
.fil-table { margin: 0; }
.fil-eye { width: 28px; height: 28px; border: 1px solid #e3eaf2; border-radius: 8px; display: inline-grid; place-items: center; color: #667085; }
.fil-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 180px; padding: 16px; border: 1px dashed #c5d0dc; border-radius: 12px; color: #475467; text-align: center; background: #fbfcfe; }
.fil-drop svg { width: 36px; height: 36px; padding: 0; background: none; color: #173258; }
.fil-drop em { color: #1d4f91; font-style: normal; font-weight: 700; }
.fil-drop small { color: #98a2b3; }
.fil-all { display: inline-block; margin-top: 10px; color: #1d4f91; font-weight: 700; font-size: 13px; }
.fil-banner { display: flex; gap: 8px; align-items: center; justify-content: center; background: #e8f7ef; color: #146c3a; border: 1px solid #b7e4c7; border-radius: 12px; padding: 12px; margin: 14px 0; }
.fil-banner svg { width: 18px; height: 18px; padding: 0; background: none; }
.fil-submit { width: 100%; background: #10243f; color: #fff; border: 0; border-radius: 10px; padding: 12px 16px; font-weight: 800; font-size: 15px; cursor: pointer; }
.tl-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.tl-side { display: flex; flex-direction: column; gap: 12px; }
.tl-side .panel { margin-bottom: 0; }
.tl-side .panel > h3, .tl-side .panel-head { border: 0; padding: 0; margin-bottom: 10px; }
.tl-side .panel-head a { color: #1d4f91; font-size: 12px; font-weight: 700; }
.tl-tasks, .tl-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tl-tasks b, .tl-notes b { display: block; font-size: 13px; }
.tl-tasks small, .tl-notes small { color: #667085; display: block; }
.tl-line { list-style: none; margin: 0; padding: 0; }
.tl-line li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; position: relative; padding-bottom: 16px; }
.tl-line li:before { content: ""; position: absolute; top: 28px; bottom: 0; right: 13px; width: 2px; background: #e6ebf2; }
.tl-line li:last-child:before { display: none; }
.tl-line li > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f2f4f7; color: #98a2b3; font-weight: 800; position: relative; z-index: 1; }
.tl-line li.done > span { background: #e8f7ef; color: #157a45; }
.tl-line li.now > span { background: #c47b12; color: #fff; }
.tl-line small { color: #98a2b3; }
.tl-line b { display: block; }
.tl-line b a { color: #173258; }
.tl-line p { margin: 2px 0 0; color: #667085; font-size: 13px; }
.tl-state { font-style: normal; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; height: fit-content; }
.tl-state.ok { background: #e8f7ef; color: #157a45; }
.tl-state.warn { background: #fff6e6; color: #b7791f; }
.tl-state.mute { background: #f2f4f7; color: #667085; }
.tl-note-form textarea { width: 100%; min-height: 70px; margin: 8px 0; }
.tl-side .fil-user svg, .tl-side .fil-act svg { width: 16px; height: 16px; padding: 0; background: none; border-radius: 0; }
.fu-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.fu-side { display: flex; flex-direction: column; gap: 12px; }
.fu-side .panel, .fu-layout .panel { margin-bottom: 0; }
.fu-layout .panel > h3, .fu-side .panel-head { border: 0; padding: 0; margin-bottom: 10px; }
.fu-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.fu-kpi { background: #fff; border: 1px solid #e3eaf2; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-height: 92px; }
.fu-kpi b { font-size: 22px; }
.fu-kpi small { color: #667085; }
.fu-kpi.teal { background: #e8f7ef; }
.fu-kpi.sand { background: #fbf6ea; }
.fu-kpi.rose { background: #fff0f0; }
.fu-kpi.lilac { background: #f4f0ff; }
.fu-kpi.navy { background: #eef3f9; }
.fu-empty { text-align: center; color: #667085; padding: 18px 8px; }
.fu-side .fil-act svg, .fu-side .fil-user svg { width: 16px; height: 16px; padding: 0; background: none; border-radius: 0; }
.srv-layout, .hrg-layout, .evd-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.srv-side, .hrg-side, .evd-side { display: flex; flex-direction: column; gap: 12px; }
.srv-side .panel, .srv-layout .panel, .hrg-side .panel, .hrg-layout .panel, .evd-side .panel, .evd-layout .panel { margin-bottom: 0; }
.srv-side .panel > h3, .hrg-side .panel > h3, .evd-side .panel > h3 { border: 0; padding: 0; margin-bottom: 10px; }
.srv-tools, .hrg-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.srv-filters, .hrg-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.srv-filters input, .srv-filters select, .hrg-filters input, .hrg-filters select { min-width: 140px; }
.srv-fields, .hrg-fields, .evd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.srv-side .fil-act svg, .hrg-side .fil-act svg, .evd-side .fil-act svg, .evd-tabs svg { width: 16px; height: 16px; padding: 0; background: none; border-radius: 0; }
.evd-main { display: flex; flex-direction: column; gap: 14px; }
.evd-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.evd-tabs a { display: inline-flex; align-items: center; gap: 6px; }
.evd-star { color: #d0d5dd; font-size: 18px; line-height: 1; }
.evd-star.on { color: #c4a15a; }
.evd-imp.main { color: #157a45; font-weight: 700; }
.evd-imp.side { color: #667085; }
.evd-note textarea, .jdg-note textarea { width: 100%; min-height: 72px; margin: 8px 0; }
.jdg-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.apl-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.apl-side .panel, .apl-layout .panel { margin-bottom: 0; }
.apl-layout .panel > h3 { border: 0; padding: 0; margin-bottom: 12px; }
.jdg-side { display: flex; flex-direction: column; gap: 12px; }
.jdg-side .panel, .jdg-layout .panel { margin-bottom: 0; }
.jdg-side .panel > h3 { border: 0; padding: 0; margin-bottom: 10px; }
.jdg-side .fil-act svg, .jdg-tabs svg { width: 16px; height: 16px; padding: 0; background: none; border-radius: 0; }
.jdg-main { display: flex; flex-direction: column; gap: 14px; }
.jdg-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.jdg-tabs a { display: inline-flex; align-items: center; gap: 6px; }
.jdg-facts, .jdg-money { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.jdg-fact { background: #f7f9fc; border: 1px solid #e3eaf2; border-radius: 12px; padding: 12px; }
.jdg-fact small, .jdg-money small { color: #667085; display: block; }
.jdg-fact b { display: block; margin-top: 4px; }
.jdg-quote { background: #f8fafc; border: 1px solid #e3eaf2; border-radius: 12px; padding: 14px; line-height: 1.8; margin: 12px 0; }
.jdg-money article { border-radius: 12px; padding: 14px; }
.jdg-money b { font-size: 22px; display: block; margin: 6px 0; }
.jdg-money .award { background: #e8f7ef; }
.jdg-money .fees { background: #fbf6ea; }
.jdg-money .costs { background: #f4f0ff; }
.jdg-money .total { background: #eef3f9; }
.jdg-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.jdg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.enf-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.enf-side { display: flex; flex-direction: column; gap: 12px; }
.enf-side .panel, .enf-layout .panel { margin-bottom: 0; }
.enf-side .panel > h3 { border: 0; padding: 0; margin-bottom: 10px; }
.enf-side .fil-act svg, .enf-tabs svg { width: 16px; height: 16px; padding: 0; background: none; border-radius: 0; }
.enf-main { display: flex; flex-direction: column; gap: 14px; }
.enf-tabs, .enf-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.enf-tabs a, .enf-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.enf-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.enf-split article { background: #fff; border: 1px solid #e3eaf2; border-radius: 12px; padding: 12px; }
.enf-split h3 { margin: 0 0 8px; font-size: 14px; }
.enf-line { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eef2f6; }
.enf-line b { font-weight: 700; }
.enf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.enf-note textarea, .cls-note textarea { width: 100%; min-height: 72px; margin: 8px 0; }
.cls-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.cls-side { display: flex; flex-direction: column; gap: 12px; }
.cls-side .panel, .cls-layout .panel { margin-bottom: 0; }
.cls-side .panel > h3 { border: 0; padding: 0; margin-bottom: 10px; }
.cls-side .fil-act svg, .cls-tabs svg { width: 16px; height: 16px; padding: 0; background: none; border-radius: 0; }
.cls-main { display: flex; flex-direction: column; gap: 14px; }
.cls-tabs, .cls-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cls-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cls-fact { background: #f7f9fc; border: 1px solid #e3eaf2; border-radius: 12px; padding: 12px; }
.cls-fact small { color: #667085; display: block; }
.cls-fact b { display: block; margin-top: 4px; }
.cls-banner { border-radius: 12px; padding: 14px; margin: 12px 0; line-height: 1.7; }
.cls-banner.warn { background: #fff7ed; color: #9a3412; }
.cls-banner.ok { background: #e8f7ef; color: #157a45; }
.cls-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; }
.cls-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cls-confirm { background: #157a45; color: #fff; }
.hrg-more { position: relative; }
.hrg-more summary { list-style: none; }
.hrg-more summary::-webkit-details-marker { display: none; }
.hrg-more ul { position: absolute; z-index: 6; inset-inline-start: 0; top: calc(100% + 6px); margin: 0; padding: 6px; min-width: 190px; background: #fff; border: 1px solid #e3eaf2; border-radius: 10px; box-shadow: var(--shadow); }
.hrg-more a { display: block; padding: 8px 10px; border-radius: 8px; }
.hrg-more a:hover { background: #f4f7fb; }
.hrg-note textarea { width: 100%; min-height: 72px; margin: 8px 0; }
.danger-text { color: #c2413b; }
.con-client p { margin: 8px 0; }
.con-note { margin-top: 12px; }
.con-note textarea { width: 100%; min-height: 80px; margin: 8px 0; }
.dash-hello { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dash-hello h2 { margin: 0; font-size: 22px; }
.dash-hello p { margin: 4px 0 0; color: var(--muted); }
.dash-date { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e3eaf2; border-radius: 12px; padding: 10px 14px; font-weight: 800; }
.dash-date svg, .dash-col h3 svg, .dash-secure svg { width: 18px; height: 18px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.dash-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 118px; border-radius: 16px; padding: 14px 16px; color: var(--ink); border: 1px solid transparent; }
.dash-kpi .lbl { font-weight: 800; font-size: 13px; line-height: 1.5; }
.dash-kpi b { font-size: 30px; line-height: 1; }
.dash-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #fff; }
.dash-ico svg { width: 18px; height: 18px; }
.dash-kpi.tone-blue { background: #e8f1ff; }
.dash-kpi.tone-blue .dash-ico { color: #1d4f91; }
.dash-kpi.tone-mint { background: #e7f6ee; }
.dash-kpi.tone-mint .dash-ico { color: #157a45; }
.dash-kpi.tone-sand { background: #fbf6ea; }
.dash-kpi.tone-sand .dash-ico { color: #a7843d; }
.dash-kpi.tone-lilac { background: #f3eefe; }
.dash-kpi.tone-lilac .dash-ico { color: #6d28d9; }
.dash-kpi.tone-rose { background: #fdeeee; }
.dash-kpi.tone-rose .dash-ico { color: #c2413b; }
.dash-kpi.tone-gold { background: #f8f1e4; }
.dash-kpi.tone-gold .dash-ico { color: #b7791f; }
.dash-kpi.tone-peach { background: #fff4e8; }
.dash-kpi.tone-peach .dash-ico { color: #c2410c; }
.dash-kpi.tone-teal { background: #e7f4f4; }
.dash-kpi.tone-teal .dash-ico { color: #0f766e; }
.dash-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dash-col { background: #fff; border: 1px solid #e3eaf2; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.dash-col h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.dash-col .panel-head { margin-bottom: 6px; }
.dash-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid #eef2f6; color: inherit; }
.dash-row strong, .dash-row small { display: block; }
.dash-row small { color: var(--muted); margin-top: 2px; }
.dash-pill { border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 800; font-style: normal; white-space: nowrap; }
.dash-pill.late, .dash-pill.today { background: #fdecec; color: #c2413b; }
.dash-pill.soon { background: #fff4e8; color: #c2410c; }
.dash-pill.near { background: #e8f1ff; color: #1d4f91; }
.dash-pill.later { background: #e7f6ee; color: #157a45; }
.dash-tick { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #e7f6ee; color: #157a45; }
.dash-tick svg { width: 16px; height: 16px; }
.dash-secure { margin-top: 14px; background: #10243f; color: #fff; border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dash-secure span { display: flex; align-items: center; gap: 8px; }
@media (max-width: 1100px) {
  .kpis, .grid-4, .folders, .dash-kpis { grid-template-columns: 1fr 1fr; }
  .workspace, .grid-2, .login-wrap, .split, .form-grid, .dash-cols { grid-template-columns: 1fr; }
  .dash-hello { flex-direction: column; align-items: stretch; }
  .sidebar { position: fixed; z-index: 40; transform: translateX(110%); transition: .2s ease; }
  .sidebar.open { transform: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .case-switch, .case-pick { width: 100%; }
  .intake-top, .intake-mid, .settings-office-row, .settings-split, .lookup-line, .party-line, .party-line.two, .party-line.four, .sheet-grid-3, .sheet-grid-4, .appt-layout, .meet-layout, .meet-split, .meet-trio, .meet-services, .doc-screen, .task-screen, .task-donut-wrap, .rep-screen, .rep-split, .rep-kpis, .acc-board, .file-screen, .file-split, .file-kpis, .file-metrics, .wf-layout, .study-layout, .study-grid, .rev-layout, .rev-split, .rev-bottom, .rev-stats, .agr-layout, .agr-fields, .agr-costs, .agr-pay, .con-layout, .con-top, .plea-layout, .plea-fields, .plea-bottom, .ready-layout, .ready-split, .ready-lower, .ready-dl, .fil-layout, .fil-fields, .fil-attach, .tl-layout, .fu-layout, .fu-kpis, .srv-layout, .srv-fields, .hrg-layout, .hrg-fields, .evd-layout, .evd-fields, .jdg-layout, .jdg-fields, .jdg-facts, .jdg-money, .apl-layout, .enf-layout, .enf-split, .enf-fields, .cls-layout, .cls-facts, .cls-split, .cls-fields { grid-template-columns: 1fr; }
  .doc-ops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc-detail { position: static; }
  .steps { flex-direction: column; }
  .steps:before { display: none; }
}
@media print {
  .sidebar, .topbar, .btn, .rail, .coach { display: none !important; }
  .content { padding: 0; }
  .workspace { display: block; }
}
.coach, .coach-card {
  background: #fff;
  border: 1px solid #e3eaf2;
  border-inline-start: 4px solid var(--gold);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.coach-head { display: flex; gap: 12px; align-items: flex-start; }
.coach-num {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}
.coach-copy { min-width: 0; flex: 1; }
.coach-copy small { display: block; color: var(--muted); font-size: 12px; }
.coach-copy strong { display: block; font-size: 16px; margin-top: 2px; }
.coach-lead { margin: 4px 0 0; color: #243044; line-height: 1.7; }
.coach-note { margin: 6px 0 0; color: var(--info); font-size: 13px; line-height: 1.7; }
.coach-note a { color: var(--info); font-weight: 800; text-decoration: underline; }
.coach-actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.coach-all { color: var(--navy); font-weight: 800; font-size: 13px; text-decoration: underline; }
.coach-handoff {
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #475467;
}
.coach-body { margin-top: 12px; }
.coach.is-shut .coach-body { display: none; }
.coach-grid { display: grid; grid-template-columns: 1.15fr 1.05fr .95fr; gap: 12px; }
.coach-grid h4 { margin: 0 0 6px; font-size: 13px; color: var(--navy); }
.coach-grid ol, .coach-grid ul { margin: 0; padding-inline-start: 18px; }
.coach-grid li { margin: 4px 0; font-size: 13.5px; line-height: 1.65; }
.coach-gate {
  background: #fbf6ea;
  border-radius: 12px;
  padding: 10px 12px;
}
.coach-gate p { margin: 0; line-height: 1.7; font-size: 13.5px; }
.coach-foot { margin: 10px 0 0; font-size: 13px; }
.coach-foot a { color: var(--navy); font-weight: 800; }
.coach-phases { display: flex; flex-direction: column; gap: 8px; }
.coach-phase {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.coach-phase b { flex: 0 0 92px; color: var(--navy); font-size: 13px; padding-top: 4px; }
.coach-phase ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.coach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
}
a.coach-chip:hover { border-color: var(--gold); }
.coach-chip em { font-style: normal; color: var(--gold-2); font-weight: 800; }
.coach-chip.is-locked { color: var(--muted); }
.coach-intro { margin: 0 0 14px; line-height: 1.8; color: #243044; }
.sheet-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sheet-kinds a {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
}
.sheet-kinds a.on { background: var(--navy); color: #fff; }
.sheet-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.sheet-bar p { margin: 0; }
.coach-card.is-locked { opacity: .72; }
@media (max-width: 1100px) {
  .coach-head { flex-wrap: wrap; }
  .coach-actions { margin-inline-start: 0; width: 100%; }
  .coach-grid, .coach-phase { grid-template-columns: 1fr; display: block; }
  .coach-phase b { display: block; margin-bottom: 6px; }
  .coach-gate { margin-top: 8px; }
}

/* ==========================================================================
   MODERN LEGAL ERP UI SYSTEM: CARDS, SELECT2 REPLACEMENT, SEARCH & MULTI-PARTY
   ========================================================================== */

/* Searchable Select (Select2 Replacement) */
.searchable-select-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 90px;
  max-width: 100%;
  box-sizing: border-box;
}
.field > .searchable-select-wrap,
.field .searchable-select-wrap,
.form-grid .searchable-select-wrap,
.card-filter-bar .searchable-select-wrap,
.modal .searchable-select-wrap,
.app-modal .searchable-select-wrap {
  width: 100% !important;
  display: block;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  min-height: 42px;
  box-sizing: border-box;
}
.select-trigger:hover {
  border-color: #94a3b8;
  background: #fbfcfe;
}
.select-trigger:focus, .select-trigger.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}
.select-trigger.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}
.select-trigger .select-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  line-height: 1.4;
  color: #1e293b;
  font-weight: 600;
}
.select-trigger .select-arrow {
  margin-right: 8px;
  color: #64748b;
  transition: transform 0.2s ease;
  font-size: 11px;
  flex: 0 0 auto;
}
.select-trigger.is-active .select-arrow {
  transform: rotate(180deg);
}
.select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  z-index: 1050;
  overflow: hidden;
  display: none;
  animation: fadeInDown 0.15s ease-out forwards;
}
.select-dropdown.open-up {
  top: auto;
  bottom: calc(100% + 4px);
  animation: fadeInUp 0.15s ease-out forwards;
}
.select-dropdown.is-open {
  display: block;
}
.select-search-box {
  padding: 8px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.select-search-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}
.select-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.select-options-list {
  max-height: 240px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 4px;
}
.select-optgroup-header {
  padding: 6px 10px 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: #475467;
  background: #f1f5f9;
  border-radius: 6px;
  margin: 6px 0 2px;
  letter-spacing: 0.3px;
  pointer-events: none;
  user-select: none;
  border-bottom: 1px solid #eef2f6;
}
.select-option-item {
  padding: 8px 12px;
  font-size: 13.5px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #334155;
  transition: background 0.1s ease;
  user-select: none;
}
.select-option-item:hover, .select-option-item.is-focused {
  background: #eff6ff;
  color: #1e40af;
}
.select-option-item.is-selected {
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
}
.select-option-item .check-icon {
  font-size: 13px;
  color: #d97706;
}
.select-option-item.is-prompt {
  color: #64748b;
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 4px;
}
.select-no-results {
  padding: 14px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modern Data Cards Grid */
.modern-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.data-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}
.data-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Card Accents */
.data-card-client {
  border-top: 3px solid #059669;
}
.data-card-opponent {
  border-top: 3px solid #dc2626;
}
.data-card-hearing {
  border-top: 3px solid #2563eb;
}
.data-card-notice {
  border-top: 3px solid #7c3aed;
}
.data-card-witness {
  border-top: 3px solid #d97706;
}

.data-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.data-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.4;
}
.data-card-title a {
  color: inherit;
  text-decoration: none;
}
.data-card-title a:hover {
  color: #d97706;
}

.data-card-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.data-card-role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.role-client {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.role-opponent {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.role-third {
  background: #f5f3ff;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}
.role-primary {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.data-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: #334155;
  margin: 6px 0 12px;
}

.data-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.data-card-row svg {
  width: 15px;
  height: 15px;
  color: #64748b;
  flex-shrink: 0;
}
.data-card-row a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}
.data-card-row a:hover {
  text-decoration: underline;
}

.data-card-details-box {
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin-top: 4px;
}

.data-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: auto;
}

.data-card-actions .btn {
  padding: 4px 10px;
  font-size: 12px;
}

/* Card Search and Filter Bar */
.card-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.card-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.card-search-input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: border-color 0.15s ease;
}
.card-search-input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
}

.card-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  width: 15px;
  height: 15px;
}

.card-count-badge {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 3px;
  border-radius: 9px;
  user-select: none;
}
.view-mode-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.view-mode-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}
.view-mode-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Generic Modal Overlay */
.app-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalBackdropFade 0.2s ease-out;
}
.app-modal-dialog {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
  animation: modalScaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  position: relative;
}
.app-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.app-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.app-modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
}
.app-modal-close:hover {
  color: #ef4444;
  background: #fee2e2;
}

@keyframes modalBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}


/* ==========================================================================
   SLIDE-OVER SCREEN HELP DRAWER & TOPBAR HELP BUTTON
   ========================================================================== */
.topbar-help-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.topbar-help-btn:hover {
  background: #fde68a;
  color: #78350f;
  transform: translateY(-1px);
}

.screen-help-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3000;
  display: none;
}
.screen-help-drawer.is-open {
  display: block;
}
.help-drawer-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
}
.help-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 500px;
  max-width: 95vw;
  direction: rtl;
  text-align: right;
  background: #fff;
  box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}
.help-drawer-head {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}
.help-drawer-close {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
}
.help-drawer-close:hover {
  color: #ef4444;
  background: #fee2e2;
}
.help-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}


/* ==========================================================================
   OFFICIAL LEGAL PRINT SYSTEM (نظام الطباعة والمستندات القانونية الرسمية)
   ========================================================================== */
.print-only {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 10mm 12mm 10mm;
  }

  html, body {
    background: #fff !important;
    color: #0f172a !important;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif !important;
    font-size: 9.5pt !important;
    line-height: 1.35 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .shell, .main, .content, .file-workspace {
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* 1. Hide Web-Only Elements */
  .no-print,
  .web-only,
  .sidebar,
  .topbar,
  .task-tabs,
  .card-filter-bar,
  .app-modal,
  .screen-help-drawer,
  .btn,
  .button,
  .icon-btn,
  .topbar-help-btn,
  .unit-preset-btn,
  .searchable-select,
  form.card-filter-bar,
  .print-btn-bar {
    display: none !important;
  }

  /* 2. Show Print-Only Elements */
  .print-only {
    display: block !important;
  }

  .panel {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  /* 3. Official Legal Letterhead */
  .report-official-letterhead {
    display: block !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    border-bottom: 2.5px solid #0f172a !important;
    position: relative !important;
  }

  .print-header-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .print-firm-info {
    text-align: right !important;
    flex: 1.2 !important;
  }

  .print-firm-name {
    margin: 0 0 2px 0 !important;
    font-size: 15pt !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.3px !important;
  }

  .print-firm-tagline {
    margin: 0 0 4px 0 !important;
    font-size: 8.5pt !important;
    font-weight: 600 !important;
    color: #d97706 !important;
  }

  .print-firm-contact {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    font-size: 8pt !important;
    color: #475569 !important;
  }

  .print-emblem {
    flex: 0.6 !important;
    text-align: center !important;
  }

  .print-emblem-badge {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 4px 10px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
  }

  .emblem-scale {
    font-size: 20pt !important;
    line-height: 1 !important;
  }

  .emblem-text {
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-transform: uppercase !important;
  }

  .print-doc-meta {
    flex: 1.2 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
  }

  .doc-meta-badge {
    background: #0f172a !important;
    color: #fff !important;
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    margin-bottom: 3px !important;
    display: inline-block !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .print-report-title {
    margin: 0 0 4px 0 !important;
    font-size: 13pt !important;
    font-weight: 800 !important;
    color: #1e3a8a !important;
    text-align: left !important;
  }

  .doc-meta-table {
    border-collapse: collapse !important;
    margin: 0 !important;
    font-size: 8pt !important;
    width: auto !important;
  }

  .doc-meta-table td {
    padding: 1px 4px !important;
    border: none !important;
    color: #334155 !important;
  }

  /* 4. Client Dossier Ribbon in Statement */
  .print-client-box {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 7px 12px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .print-client-box strong {
    font-size: 11pt !important;
    color: #0f172a !important;
  }

  .print-client-meta {
    display: flex !important;
    gap: 12px !important;
    font-size: 8.5pt !important;
    color: #475569 !important;
  }

  /* 5. Compact Financial Summary Ribbon (Fixes huge KPI cards!) */
  .file-kpis {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
  }

  .file-kpi {
    flex: 1 !important;
    padding: 6px 10px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    margin: 0 !important;
    text-align: right !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .file-kpi .acc-mark {
    display: none !important;
  }

  .file-kpi span {
    font-size: 8pt !important;
    font-weight: 700 !important;
    color: #475569 !important;
    display: block !important;
    margin-bottom: 2px !important;
  }

  .file-kpi b {
    font-size: 12pt !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    display: block !important;
    margin-bottom: 1px !important;
  }

  .file-kpi small {
    font-size: 7.5pt !important;
    color: #64748b !important;
    display: block !important;
  }

  /* 6. Professional Legal Data Tables */
  .table-wrap {
    overflow: visible !important;
    margin-bottom: 10px !important;
  }

  table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 8.5pt !important;
    table-layout: auto !important;
    page-break-inside: auto !important;
  }

  thead {
    display: table-header-group !important;
  }

  thead th {
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 8.5pt !important;
    font-weight: 700 !important;
    padding: 5px 6px !important;
    border: 1px solid #0f172a !important;
    text-align: right !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  tbody tr {
    page-break-inside: avoid !important;
    page-break-after: auto !important;
  }

  tbody td {
    border: 1px solid #cbd5e1 !important;
    padding: 5px 6px !important;
    color: #0f172a !important;
    vertical-align: middle !important;
  }

  tbody tr:nth-child(even) td {
    background: #f8fafc !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  tfoot tr td {
    background: #f1f5f9 !important;
    font-weight: 700 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 6px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .badge {
    border: 1px solid #cbd5e1 !important;
    background: transparent !important;
    color: #0f172a !important;
    font-size: 7.5pt !important;
    padding: 1px 4px !important;
    font-weight: 700 !important;
  }

  /* 7. Official Signatures and Stamp Block */
  .official-print-signatures {
    display: block !important;
    margin-top: 16px !important;
    page-break-inside: avoid !important;
    border-top: 1px dashed #cbd5e1 !important;
    padding-top: 10px !important;
  }

  .print-sig-grid {
    display: grid !important;
    grid-template-columns: 1fr 120px 1fr !important;
    gap: 16px !important;
    align-items: center !important;
  }

  .sig-col {
    text-align: center !important;
  }

  .sig-title {
    font-size: 8.5pt !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin-bottom: 22px !important;
  }

  .sig-line {
    border-bottom: 1px solid #0f172a !important;
    margin: 0 auto 3px auto !important;
    width: 80% !important;
  }

  .sig-name {
    font-size: 7.5pt !important;
    color: #64748b !important;
  }

  .sig-stamp-box {
    border: 2px dashed #cbd5e1 !important;
    border-radius: 8px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 7.5pt !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
  }

  .print-legal-notice {
    margin-top: 8px !important;
    text-align: center !important;
    font-size: 7pt !important;
    color: #64748b !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 3px !important;
  }
}

/* ==========================================================================
   TIME SHEET (سجل الوقت والجهد اليومي)
   ========================================================================== */
.timesheet-page-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ts-hero-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.ts-hero-main {
  padding: 20px 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ts-badge-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ts-title-icon {
  font-size: 32px;
  background: rgba(255, 255, 255, 0.1);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ts-badge-title h2 {
  margin: 0 0 6px 0;
  font-size: 20px;
  color: #fff;
}

.ts-mandate-rule {
  margin: 0;
  font-size: 13px;
  color: #fef08a;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.ts-nav-bar {
  padding: 12px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ts-nav-dates {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ts-kpi-container {
  margin-top: 0;
}

.ts-kpi-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px) {
  .ts-kpi-row {
    grid-template-columns: 1fr;
  }
}

.ts-metric-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.metric-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.metric-title {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 4px 0 10px;
}

.metric-big-num {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
}

.metric-big-num small {
  font-size: 14px;
  font-weight: normal;
  color: #64748b;
}

.metric-sub-num {
  font-size: 13px;
  color: #64748b;
}

.metric-hint {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
}

.ts-progress-track {
  width: 100%;
  height: 9px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.ts-progress-fill {
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 10px;
}

.fill-met {
  background: linear-gradient(90deg, #10b981, #059669);
}

.fill-pending {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.ts-progress-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* Workspace Grid (Main Table + Fast Entry Form) */
.ts-workspace-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
  align-items: flex-start;
}

@media (max-width: 1100px) {
  .ts-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.ts-side-col {
  display: flex;
  flex-direction: column;
}

.ts-form-panel {
  padding: 0;
  overflow: hidden;
}

.ts-entry-form {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.unit-preset-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.unit-preset-btn:hover {
  background: #d97706;
  color: #fff;
  border-color: #d97706;
}

.ts-codes-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.code-pill {
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: right;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-chargeable {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.pill-chargeable:hover {
  background: #059669;
  color: #fff;
}

.pill-nonchargeable {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.pill-nonchargeable:hover {
  background: #475569;
  color: #fff;
}

.ts-code-tag {
  display: inline-block;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.tag-chg {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.tag-nonchg {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* ==========================================================================
   TIMESHEET MODAL & PRESTIGE FORM CONTROLS
   ========================================================================== */
.ts-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ts-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ts-form-field label {
  font-weight: 700;
  color: #1e293b;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}

.ts-unit-badge {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
  direction: ltr;
  unicode-bidi: isolate;
}

.ts-unit-calculator {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.ts-unit-calc-input {
  width: 120px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  text-align: center !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 8px !important;
  color: #0f172a !important;
  background: #ffffff !important;
}

.ts-unit-calc-input:focus {
  border-color: #d97706 !important;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15) !important;
}

.ts-unit-calc-display {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.ts-unit-presets-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .ts-unit-presets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ts-preset-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  user-select: none;
}

.ts-preset-chip:hover {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.ts-preset-chip:active {
  transform: translateY(0);
}

.ts-narrative-textarea {
  width: 100% !important;
  min-height: 100px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1 !important;
  box-sizing: border-box !important;
  resize: vertical !important;
  font-family: inherit !important;
}

.ts-narrative-textarea:focus {
  border-color: #d97706 !important;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15) !important;
}
