@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/vazirmatn-400.woff2") format("woff2");
}

@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/vazirmatn-600.woff2") format("woff2");
}

@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-800.woff2") format("woff2");
}

:root {
  --ink: #183d35;
  --muted: #78908a;
  --line: #e4ece9;
  --soft: #f4f8f6;
  --white: #fff;
  --green: #16a47b;
  --green-dark: #0d785d;
  --green-soft: #e7f7f1;
  --blue: #397ad6;
  --blue-soft: #edf5ff;
  --orange: #e78a2c;
  --orange-soft: #fff5e8;
  --violet: #7857cb;
  --violet-soft: #f3efff;
  --red: #dc5e61;
  --red-soft: #fff0f0;
  --shadow: 0 10px 35px rgba(36, 79, 68, .055);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f5f8f7;
  color: var(--ink);
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled),
select:not(:disabled),
label:has(input) {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .62;
}

img,
svg,
video {
  max-width: 100%;
}

::placeholder {
  color: #a1afab;
  opacity: 1;
}

::selection {
  background: #c9eee2;
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #c9d8d3;
}

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(226, 244, 238, .8), transparent 26rem),
    #f5f8f7;
}

.app-main {
  min-height: 100vh;
  margin-right: 270px;
}

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 0 0 auto;
  display: flex;
  width: 270px;
  flex-direction: column;
  border-left: 1px solid #e6eeeb;
  background: rgba(255, 255, 255, .96);
  box-shadow: -7px 0 36px rgba(40, 75, 66, .035);
  backdrop-filter: blur(16px);
}

.sidebar-head {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px 15px;
}

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

.brand-symbol {
  position: relative;
  width: 41px;
  height: 41px;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(145deg, #11a77a, #0b7d61);
  box-shadow: 0 8px 22px rgba(17, 156, 118, .24);
  transform: rotate(1deg);
}

.brand-symbol span:first-child {
  position: absolute;
  width: 20px;
  height: 20px;
  right: 7px;
  top: 6px;
  border: 4px solid #fff;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 4px 12px 4px 12px;
  transform: rotate(-12deg);
}

.brand-symbol span:last-child {
  position: absolute;
  width: 18px;
  height: 18px;
  left: 6px;
  bottom: 5px;
  border: 4px solid rgba(255, 255, 255, .76);
  border-right-color: transparent;
  border-top-color: transparent;
  border-radius: 5px 11px 5px 11px;
  transform: rotate(-12deg);
}

.brand-mark strong {
  display: block;
  color: #0b644f;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.brand-mark small {
  display: block;
  margin-top: 1px;
  color: #89a09a;
  font-size: 10px;
  font-weight: 500;
}

.brand-mark--compact > div:last-child {
  display: none;
}

.sidebar-role {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 17px 20px;
  padding: 12px;
  border: 1px solid #e2eee9;
  border-radius: 16px;
  background: #f3faf7;
}

.sidebar-role > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.sidebar-role strong,
.sidebar-role span {
  display: block;
}

.sidebar-role strong {
  overflow: hidden;
  color: #23473f;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-role span {
  margin-top: 2px;
  color: #81958f;
  font-size: 10px;
}

.sidebar-role > svg {
  color: var(--green);
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 14px;
  background: linear-gradient(145deg, #d5f3e8, #b4dfd3);
  box-shadow: 0 4px 10px rgba(37, 106, 87, .12);
  color: #18775e;
  font-weight: 800;
}

.avatar--small {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  font-size: 12px;
}

.sidebar-nav {
  overflow-y: auto;
  padding: 0 15px 20px;
}

.nav-caption {
  display: block;
  margin: 0 11px 9px;
  color: #a2b0ac;
  font-size: 10px;
  font-weight: 600;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #637a74;
  font-size: 12px;
  font-weight: 550;
  text-align: right;
  transition: .2s ease;
}

.nav-item svg {
  flex: none;
  color: #839791;
  transition: .2s ease;
}

.nav-item span {
  flex: 1;
}

.nav-item b {
  display: grid;
  min-width: 23px;
  height: 21px;
  place-items: center;
  border-radius: 7px;
  background: #edf3f1;
  color: #7b8e89;
  font-size: 10px;
}

.nav-item:hover {
  background: #f5faf8;
  color: var(--green-dark);
}

.nav-item.is-active {
  background: linear-gradient(90deg, #eef9f5, #e7f6f1);
  color: #0c7c5f;
  font-weight: 700;
}

.nav-item.is-active::before {
  position: absolute;
  right: -15px;
  width: 4px;
  height: 25px;
  border-radius: 5px 0 0 5px;
  background: #18a980;
  content: "";
}

.nav-item.is-active svg {
  color: #12a27a;
}

.nav-item.is-active b {
  background: #1aa77e;
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  padding: 13px 15px 18px;
}

.support-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  padding: 12px;
  border: 1px solid #e4eeeb;
  border-radius: 14px;
  background: #fbfdfc;
}

.support-mini > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green);
}

.support-mini strong,
.support-mini small {
  display: block;
}

.support-mini strong {
  color: #34564f;
  font-size: 10px;
}

.support-mini small {
  margin-top: 3px;
  color: #93a49f;
  font-size: 8px;
}

.nav-item--logout {
  color: #b25e61;
}

.nav-item--logout svg {
  color: #cb7174;
}

.app-version {
  display: block;
  margin-top: 8px;
  color: #b1bdb9;
  font-size: 8px;
  text-align: center;
}

.sidebar-close,
.mobile-menu,
.mobile-login-brand,
.sidebar-backdrop {
  display: none;
}

.sidebar .sidebar-close,
.topbar .mobile-menu {
  display: none;
}

.topbar {
  position: sticky;
  z-index: 35;
  top: 0;
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(222, 233, 229, .85);
  background: rgba(250, 252, 251, .88);
  backdrop-filter: blur(16px);
}

.topbar-right,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.global-search {
  display: flex;
  width: min(410px, 31vw);
  height: 43px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #e0e9e6;
  border-radius: 13px;
  background: #fff;
  color: #9ba9a5;
  transition: .2s ease;
}

.global-search:focus-within {
  border-color: #98d8c5;
  box-shadow: 0 0 0 3px rgba(31, 173, 132, .08);
}

.global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 11px;
}

.global-search input::placeholder {
  color: #a8b5b1;
}

.global-search kbd {
  padding: 3px 6px;
  border: 1px solid #e3e9e7;
  border-radius: 6px;
  background: #f8faf9;
  color: #a7b1ae;
  font-family: inherit;
  font-size: 8px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border: 1px solid #e3eae8;
  border-radius: 12px;
  background: #fff;
  color: #637a74;
  transition: .2s ease;
}

.icon-button:hover {
  border-color: #c9dfd8;
  color: var(--green);
}

.has-indicator::after {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -26px -24px 0 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ec6a67;
  content: "";
}

.notification-wrap,
.review-switch {
  position: relative;
}

.review-switch {
  display: flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  padding-right: 10px;
  border: 1px solid #e1e9e6;
  border-radius: 12px;
  background: #fff;
}

.review-switch > span {
  color: #94a29e;
  font-size: 9px;
}

.review-switch > button {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #edf1f0;
  background: transparent;
  color: #31554c;
  font-size: 10px;
  font-weight: 700;
}

.dropdown {
  position: absolute;
  z-index: 70;
  top: calc(100% + 10px);
  overflow: hidden;
  border: 1px solid #e2ebe8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(24, 61, 53, .13);
}

.role-dropdown {
  left: 0;
  width: 205px;
  padding: 7px;
}

.role-dropdown button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #516862;
  font-size: 10px;
}

.role-dropdown button:hover,
.role-dropdown button.is-selected {
  background: var(--green-soft);
  color: var(--green-dark);
}

.notification-dropdown {
  left: 0;
  width: 345px;
  padding: 4px 14px 9px;
}

.dropdown-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 2px 10px;
  border-bottom: 1px solid #edf2f0;
}

.dropdown-title strong {
  font-size: 12px;
}

.dropdown-title button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 9px;
}

.notification-item {
  display: flex;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid #eff3f2;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: none;
  place-items: center;
  border-radius: 11px;
}

.notification-icon.orange { background: var(--orange-soft); color: var(--orange); }
.notification-icon.green { background: var(--green-soft); color: var(--green); }
.notification-icon.blue { background: var(--blue-soft); color: var(--blue); }
.notification-icon.violet { background: var(--violet-soft); color: var(--violet); }

.notification-item strong,
.notification-item p,
.notification-item small {
  display: block;
  margin: 0;
}

.notification-item strong {
  color: #294c43;
  font-size: 10px;
}

.notification-item p {
  margin-top: 3px;
  color: #758983;
  font-size: 9px;
  line-height: 1.7;
}

.notification-item small {
  margin-top: 3px;
  color: #a5b2ae;
  font-size: 8px;
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #78908a;
  text-align: right;
}

.header-profile > div:nth-child(2) {
  min-width: 90px;
}

.header-profile strong,
.header-profile span {
  display: block;
}

.header-profile strong {
  color: #294b43;
  font-size: 10px;
}

.header-profile span {
  margin-top: 2px;
  color: #91a09c;
  font-size: 8px;
}

.content-area {
  padding: 28px 34px 48px;
}

.page {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  animation: page-in .3s ease;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.narrow-page {
  max-width: 1050px;
}

.page-heading {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.page-heading h1 {
  margin: 2px 0 4px;
  color: #183f36;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 800;
  letter-spacing: -.8px;
}

.page-heading p {
  margin: 0;
  color: #7e938d;
  font-size: 11px;
  line-height: 1.8;
}

.eyebrow {
  color: #99aaa5;
  font-size: 9px;
  font-weight: 500;
}

.heading-action {
  flex: none;
}

.primary-button,
.outline-button,
.text-button,
.danger-button,
.filter-button,
.select-button,
.tiny-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  transition: .2s ease;
}

.primary-button {
  border: 1px solid #149b75;
  background: linear-gradient(135deg, #17ad82, #108967);
  box-shadow: 0 8px 20px rgba(16, 143, 106, .17);
  color: #fff;
}

.primary-button:hover {
  box-shadow: 0 11px 26px rgba(16, 143, 106, .23);
  transform: translateY(-1px);
}

.outline-button,
.filter-button,
.select-button,
.tiny-select {
  border: 1px solid #dfe9e5;
  background: #fff;
  color: #527068;
}

.outline-button:hover,
.filter-button:hover,
.select-button:hover {
  border-color: #b8d8cf;
  color: var(--green-dark);
}

.text-button {
  border: 0;
  background: transparent;
  color: #6f837d;
}

.text-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.danger-button {
  border: 1px solid #f1c7c8;
  background: var(--red-soft);
  color: var(--red);
}

.small {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 9px;
}

.welcome-banner {
  position: relative;
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 30px 36px;
  border: 1px solid rgba(185, 224, 212, .7);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 35%, rgba(163, 226, 207, .45), transparent 18rem),
    linear-gradient(105deg, #effaf6, #e4f6f0);
}

.welcome-banner::before {
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image: radial-gradient(#70baa4 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  content: "";
}

.welcome-copy {
  position: relative;
  z-index: 2;
}

.welcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  color: #198266;
  font-size: 9px;
  font-weight: 700;
}

.welcome-copy h2 {
  margin: 13px 0 5px;
  color: #145a49;
  font-size: 20px;
  font-weight: 800;
}

.welcome-copy p {
  margin: 0;
  color: #5f8278;
  font-size: 10px;
}

.welcome-copy button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #11775b;
  font-size: 10px;
  font-weight: 700;
}

.welcome-art {
  position: relative;
  width: 275px;
  height: 150px;
  flex: none;
}

.art-orbit {
  position: absolute;
  border: 1px dashed rgba(39, 158, 123, .34);
  border-radius: 50%;
}

.orbit-one { inset: 10px 34px 4px 45px; transform: rotate(18deg); }
.orbit-two { inset: 25px 12px 15px 67px; transform: rotate(-18deg); }

.art-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.78);
  box-shadow: 0 20px 34px rgba(21, 108, 82, .12);
  backdrop-filter: blur(8px);
}

.art-card--back {
  width: 112px;
  height: 98px;
  left: 26px;
  top: 28px;
  border-radius: 16px;
  color: #65b39c;
  transform: rotate(-10deg);
}

.art-card--back span {
  width: 52px;
  height: 5px;
  margin-top: 10px;
  border-radius: 5px;
  background: #d9ebe5;
  box-shadow: 0 10px #e5f1ed;
}

.art-card--front {
  width: 132px;
  height: 120px;
  right: 25px;
  top: 15px;
  border-radius: 20px;
  color: var(--green);
  transform: rotate(5deg);
}

.art-card--front b {
  margin-top: 8px;
  color: #2d6657;
  font-size: 11px;
}

.art-card--front small { color: #84a098; font-size: 8px; }
.art-spark { position: absolute; top: 2px; right: 6px; color: #e8bd63; font-size: 28px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.stat-card--warning {
  border-color: #f4dfc5;
}

.stat-icon {
  display: grid;
  width: 45px;
  height: 45px;
  flex: none;
  place-items: center;
  border-radius: 14px;
}

.stat-icon.green, .overview-strip .green { background: var(--green-soft); color: var(--green); }
.stat-icon.blue, .overview-strip .blue { background: var(--blue-soft); color: var(--blue); }
.stat-icon.orange, .overview-strip .orange { background: var(--orange-soft); color: var(--orange); }
.stat-icon.violet, .overview-strip .violet { background: var(--violet-soft); color: var(--violet); }

.stat-body {
  min-width: 0;
  flex: 1;
}

.stat-body > span,
.stat-body > strong,
.stat-body > small {
  display: block;
}

.stat-body > span { color: #80938e; font-size: 9px; }
.stat-body > strong { margin: 3px 0 1px; color: #25483f; font-size: 21px; font-weight: 800; }
.stat-body > small { color: #9aa8a4; font-size: 8px; white-space: nowrap; }
.stat-body > small.positive { color: #1aa17a; }

.stat-card > button {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #b1bfba;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.lower-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 20px;
  border-bottom: 1px solid #edf2f0;
}

.card-header h2,
.card-header p {
  margin: 0;
}

.card-header h2 { color: #254a40; font-size: 13px; font-weight: 800; }
.card-header p { margin-top: 3px; color: #93a29e; font-size: 8px; }
.card-header > div:last-child button:not(.tiny-select) { display: flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--green); font-size: 9px; }

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eff3f2;
  text-align: right;
}

.data-table th {
  background: #fbfcfc;
  color: #8ca09a;
  font-size: 8px;
  font-weight: 600;
}

.data-table td { color: #5e746e; font-size: 9px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfefd; }
.data-table td > strong { color: #3b5c54; font-size: 9px; }
.currency { color: #9baaa6; font-size: 7px; }

.clickable-row { cursor: pointer; }

.customer-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avatar--table {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  font-size: 10px;
}

.customer-cell strong,
.customer-cell span {
  display: block;
}

.customer-cell strong { color: #2c5047; font-size: 9px; }
.customer-cell span { margin-top: 2px; color: #a0ada9; direction: ltr; font-size: 7px; text-align: right; }

.status-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 650;
}

.status-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.green { background: var(--green-soft); color: #15936f; }
.status-badge.blue { background: var(--blue-soft); color: #3c79c7; }
.status-badge.orange { background: var(--orange-soft); color: #d47a23; }
.status-badge.violet { background: var(--violet-soft); color: #7153bb; }
.status-badge.red { background: var(--red-soft); color: #cf575b; }
.status-badge.gray { background: #f0f3f2; color: #83938e; }

.table-action {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #e8eeec;
  border-radius: 8px;
  background: #fff;
  color: #91a19c;
}

.performance-card { padding-bottom: 13px; }
.chart-total { display: flex; align-items: center; gap: 8px; padding: 15px 20px 3px; }
.chart-total strong { color: #2d5148; font-size: 14px; }
.chart-total span { display: flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: 7px; }

.bar-chart {
  display: flex;
  height: 130px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 9px;
  padding: 17px 20px 8px;
  background-image: linear-gradient(#eef3f1 1px, transparent 1px);
  background-size: 100% 27px;
}

.bar-chart > div {
  display: flex;
  height: 100%;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  text-align: center;
}

.bar-chart span {
  display: block;
  width: 63%;
  max-width: 22px;
  margin: 0 auto;
  border-radius: 6px 6px 2px 2px;
  background: #d8e8e3;
}

.bar-chart .is-current span { background: linear-gradient(#26b88e, #159971); box-shadow: 0 5px 13px rgba(22, 159, 119, .2); }
.bar-chart small { color: #94a6a1; font-size: 7px; }

.settlement-preview,
.quick-actions { overflow: hidden; }
.settlement-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 15px; padding: 19px 20px 13px; }
.settlement-row > div:nth-child(2) small,
.settlement-row > div:nth-child(2) strong { display: block; }
.settlement-row > div:nth-child(2) small { color: #95a49f; font-size: 8px; }
.settlement-row > div:nth-child(2) strong { margin-top: 3px; color: #35584f; font-size: 9px; }
.avatar--mint { width: 36px; height: 36px; border: 0; border-radius: 11px; }

.countdown {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #df8026;
}

.countdown > div { display: flex; align-items: center; gap: 4px; }
.countdown span { display: flex; min-width: 35px; flex-direction: column; align-items: center; padding: 5px 7px; border-radius: 8px; background: var(--orange-soft); }
.countdown b { font-size: 11px; }
.countdown small { color: #a68f77; font-size: 6px; }
.countdown i { color: #c5aaa0; font-style: normal; }

.working-days-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-top: 1px solid #f0f3f2;
  background: #fbfdfc;
  color: #81958f;
  font-size: 8px;
}

.working-days-note svg { color: #e09343; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #eef3f1;
}

.quick-grid button {
  display: grid;
  min-height: 88px;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  gap: 1px 9px;
  align-items: center;
  padding: 14px;
  border: 0;
  background: #fff;
  color: #385b52;
  text-align: right;
}

.quick-grid button:hover { background: #fbfefd; }
.quick-icon { display: grid; width: 38px; height: 38px; grid-row: 1 / 3; place-items: center; border-radius: 11px; }
.quick-icon.mint { background: var(--green-soft); color: var(--green); }
.quick-icon.blue { background: var(--blue-soft); color: var(--blue); }
.quick-icon.violet { background: var(--violet-soft); color: var(--violet); }
.quick-icon.orange { background: var(--orange-soft); color: var(--orange); }
.quick-grid strong { align-self: end; font-size: 9px; }
.quick-grid small { align-self: start; color: #9ba9a5; font-size: 7px; }

.mini-management-grid { margin-top: 17px; }
.management-tile { display: flex; min-height: 87px; align-items: center; gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); color: #607770; text-align: right; }
.management-tile > div:nth-child(2) { flex: 1; }
.management-tile small,.management-tile strong { display: block; }
.management-tile small { color: #85958f; font-size: 8px; }
.management-tile strong { margin-top: 3px; color: #31564c; font-size: 11px; }
.management-tile > svg { color: #9dada8; }

.health-card { padding-bottom: 12px; }
.health-meter { display: grid; place-items: center; padding: 18px 0 8px; }
.health-meter > span { display: grid; width: 110px; height: 110px; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) var(--progress), #e9f1ee 0); position: relative; }
.health-meter > span::after { position: absolute; inset: 9px; border-radius: 50%; background: #fff; content: ""; }
.health-meter strong,.health-meter small { position: relative; z-index: 1; display: block; text-align: center; }
.health-meter strong { align-self: end; color: #1f6655; font-size: 21px; }
.health-meter small { align-self: start; color: #8ba099; font-size: 7px; }
.health-list { padding: 4px 18px; }
.health-list > div { display: flex; align-items: center; gap: 7px; padding: 7px 0; border-top: 1px solid #eff3f2; color: #7b8e88; font-size: 8px; }
.health-list strong { margin-right: auto; color: #36584f; font-size: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot.green { background: var(--green); }.dot.blue { background: var(--blue); }.dot.orange { background: var(--orange); }

.unverified-alert {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 34px 0;
  padding: 10px 13px;
  border: 1px solid #f0d7b6;
  border-radius: 12px;
  background: #fff9ef;
  color: #9e6e34;
  font-size: 9px;
}
.unverified-alert span { flex: 1; }
.unverified-alert button { display: flex; align-items: center; gap: 3px; border: 0; background: transparent; color: #c27925; font-size: 9px; font-weight: 700; }

.filter-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-field {
  display: flex;
  min-width: 240px;
  height: 40px;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #e1e9e6;
  border-radius: 11px;
  color: #9aaaa5;
}

.search-field input { width: 100%; border: 0; outline: 0; color: #34564e; font-size: 9px; }
.search-field input::placeholder { color: #a7b4b0; }
.select-button,.filter-button { min-height: 40px; white-space: nowrap; }

.case-summary-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.case-summary-tabs button { display: flex; align-items: center; gap: 6px; min-height: 35px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #7e918b; font-size: 8px; white-space: nowrap; }
.case-summary-tabs button b { display: grid; min-width: 21px; height: 19px; place-items: center; border-radius: 6px; background: #f0f4f3; font-size: 7px; }
.case-summary-tabs button.is-active { background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.case-summary-tabs button.is-active b { background: #fff; color: var(--green); }

.full-table-card { overflow: hidden; }
.full-table-card .data-table th,.full-table-card .data-table td { padding: 15px 18px; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid #edf2f0; color: #8b9d98; font-size: 8px; }
.pagination > div { display: flex; gap: 4px; }
.pagination button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #e2e9e7; border-radius: 8px; background: #fff; color: #768b84; font-size: 8px; }
.pagination button.is-current { border-color: var(--green); background: var(--green); color: #fff; }
.pagination button:disabled { opacity: .4; }.flip { transform: rotate(180deg); }

.drawer-layer,.modal-layer { position: fixed; z-index: 100; inset: 0; display: flex; justify-content: flex-end; }
.drawer-backdrop,.modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(14, 36, 31, .42); backdrop-filter: blur(3px); }
.case-drawer { position: relative; z-index: 2; width: min(535px, 100%); height: 100%; overflow-y: auto; background: #f9fbfa; box-shadow: -20px 0 60px rgba(18, 42, 36, .18); animation: drawer-in .25s ease; }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
.drawer-head { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 19px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.drawer-head span,.drawer-head strong { display: block; }.drawer-head span { color: #80938d; font-size: 9px; }.drawer-head strong { color: #2c5047; direction: ltr; font-size: 12px; text-align: right; }
.drawer-customer { display: flex; align-items: center; gap: 12px; padding: 22px; border-bottom: 1px solid var(--line); background: #fff; }
.avatar--large { width: 48px; height: 48px; border-radius: 15px; font-size: 15px; }
.drawer-customer > div:nth-child(2) { flex: 1; }.drawer-customer h3 { margin: 0; color: #284c43; font-size: 14px; }.drawer-customer p { margin: 3px 0 0; color: #8ca09a; font-size: 8px; }
.info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin: 14px 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.info-grid > div { padding: 13px 14px; background: #fff; }.info-grid small,.info-grid strong { display: block; }.info-grid small { color: #8fa19c; font-size: 8px; }.info-grid strong { margin-top: 4px; color: #34564d; font-size: 9px; }
.drawer-section { margin: 14px 18px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }.section-title h4 { margin: 0; color: #31564c; font-size: 11px; }.section-title span { color: var(--green); font-size: 8px; }
.document-list > div { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid #eff3f2; }.document-list > div:first-child { border-top: 0; }.document-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue); }.document-list > div > div { flex: 1; }.document-list strong,.document-list small { display: block; }.document-list strong { color: #48655e; font-size: 9px; }.document-list small { color: #9aaba6; font-size: 7px; }.document-list > div > svg { color: var(--green); }.document-list button { border: 0; background: transparent; color: #98aaa4; }
.timeline > div { position: relative; display: flex; gap: 10px; min-height: 52px; }.timeline > div::after { position: absolute; right: 10px; top: 23px; width: 1px; height: 29px; background: #dce7e3; content: ""; }.timeline > div:last-child::after { display: none; }.timeline i { z-index: 1; display: grid; width: 21px; height: 21px; flex: none; place-items: center; border: 2px solid #d8e5e1; border-radius: 50%; background: #fff; color: #9aa9a5; }.timeline .done i { border-color: var(--green); background: var(--green); color: #fff; }.timeline .current i { border-color: #e8b67b; background: var(--orange-soft); color: var(--orange); }.timeline strong,.timeline span { display: block; }.timeline strong { color: #45635c; font-size: 9px; }.timeline span { margin-top: 2px; color: #98a9a4; font-size: 7px; }
.drawer-action-box { margin: 14px 18px 26px; padding: 16px; border: 1px solid #dbe9e4; border-radius: 15px; background: #eff8f5; }.drawer-action-box label { display: block; margin-bottom: 6px; color: #49685f; font-size: 9px; font-weight: 700; }.drawer-action-box select,.drawer-action-box textarea { width: 100%; border: 1px solid #d7e5e0; border-radius: 10px; background: #fff; outline: 0; color: #3e5f56; font-size: 9px; }.drawer-action-box select { height: 39px; padding: 0 10px; }.drawer-action-box textarea { height: 75px; margin: 8px 0; padding: 10px; resize: vertical; }.drawer-action-box .primary-button { width: 100%; }

.form-page { max-width: 1180px; }
.stepper { display: flex; align-items: center; margin-bottom: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.stepper > div { position: relative; display: flex; min-width: 0; flex: 1; align-items: center; gap: 9px; }.stepper > div::after { position: absolute; z-index: 0; top: 17px; right: calc(100% - 6px); width: calc(100% - 41px); height: 1px; background: #dfe9e6; content: ""; }.stepper > div:first-child::after { display: none; }.stepper > div > span { z-index: 1; display: grid; width: 35px; height: 35px; flex: none; place-items: center; border: 1px solid #dce7e3; border-radius: 11px; background: #fff; color: #9aaba6; font-size: 10px; font-weight: 700; }.stepper strong,.stepper small { display: block; }.stepper strong { color: #7e918b; font-size: 9px; }.stepper small { margin-top: 2px; color: #a4b0ad; font-size: 7px; }.stepper .is-current > span { border-color: var(--green); background: var(--green); box-shadow: 0 5px 14px rgba(22,163,123,.2); color: #fff; }.stepper .is-current strong { color: var(--green-dark); }.stepper .is-done > span { border-color: #a8dcca; background: var(--green-soft); color: var(--green); }.stepper .is-done::after { background: #90d2bd; }
.form-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow); }
.form-section { padding: 25px 27px; }
.form-section-head { display: flex; gap: 11px; margin-bottom: 22px; }.section-number { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 11px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; }.form-section-head h2 { margin: 0; color: #264c42; font-size: 15px; }.form-section-head p { margin: 3px 0 0; color: #8b9e98; font-size: 8px; }
.selectable-plans { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }.selectable-plans button { display: flex; min-height: 76px; align-items: center; gap: 11px; padding: 13px; border: 1px solid #e1e9e7; border-radius: 14px; background: #fff; color: #3d5f56; text-align: right; transition: .2s; }.selectable-plans button.is-selected { border-color: #6bc7ab; background: #f4fbf8; box-shadow: 0 0 0 3px rgba(24,164,123,.07); }.selectable-plans button > div { flex: 1; }.selectable-plans strong,.selectable-plans small { display: block; }.selectable-plans strong { font-size: 10px; }.selectable-plans small { margin-top: 4px; color: #8fa19c; font-size: 8px; }.selectable-plans button > i { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #d9e4e1; border-radius: 50%; color: #fff; }.selectable-plans button.is-selected > i { border-color: var(--green); background: var(--green); }
.plan-icon { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border-radius: 14px; }.plan-icon.mint { background: var(--green-soft); color: var(--green); }.plan-icon.blue { background: var(--blue-soft); color: var(--blue); }.plan-icon.gold { background: var(--orange-soft); color: var(--orange); }.plan-icon.purple { background: var(--violet-soft); color: var(--violet); }
.plan-detail-strip,.security-note,.invite-box,.video-processing-note { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px solid #dcebe6; border-radius: 12px; background: #f4faf8; color: var(--green); }.plan-detail-strip strong,.plan-detail-strip span,.security-note strong,.security-note span,.invite-box strong,.invite-box span,.video-processing-note strong,.video-processing-note span { display: block; }.plan-detail-strip strong,.security-note strong,.invite-box strong,.video-processing-note strong { color: #3d6258; font-size: 9px; }.plan-detail-strip span,.security-note span,.invite-box span,.video-processing-note span { margin-top: 2px; color: #7e958e; font-size: 8px; }
.fields-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; }.field { min-width: 0; }.field.full { grid-column: 1/-1; }.field label { display: block; margin: 0 2px 7px; color: #4b6961; font-size: 9px; font-weight: 650; }.field label b { color: #db686b; }.field input,.field select,.field textarea { width: 100%; border: 1px solid #dfe8e5; border-radius: 11px; background: #fbfdfc; outline: 0; color: #35564e; font-size: 9px; transition: .2s; }.field input,.field select { height: 43px; padding: 0 12px; }.field textarea { min-height: 85px; padding: 11px 12px; resize: vertical; }.field input:focus,.field select:focus,.field textarea:focus { border-color: #78c9b1; background: #fff; box-shadow: 0 0 0 3px rgba(22,163,123,.06); }.input-with-action { display: flex; overflow: hidden; border: 1px solid #dfe8e5; border-radius: 11px; background: #fbfdfc; }.input-with-action input { border: 0; background: transparent; box-shadow: none!important; }.input-with-action button { min-width: 112px; border: 0; border-right: 1px solid #e2ebe8; background: #f1f8f5; color: var(--green); font-size: 8px; font-weight: 700; }.field-success { display: flex!important; align-items: center; gap: 4px; margin: 5px 2px 0; color: var(--green)!important; font-size: 7px!important; }
.consent-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 17px; cursor: pointer; }.consent-check input { position: absolute; opacity: 0; pointer-events: none; }.consent-check > span { display: grid; width: 19px; height: 19px; flex: none; place-items: center; border: 1px solid #a9bbb6; border-radius: 6px; background: #fff; color: #fff; transition: .18s; }.consent-check > span svg { opacity: 0; transform: scale(.55); transition: .18s; }.consent-check input:checked + span { border-color: var(--green); background: var(--green); }.consent-check input:checked + span svg { opacity: 1; transform: scale(1); }.consent-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(22,163,123,.16); }.consent-check p { margin: 1px 0 0; color: #657b75; font-size: 8px; line-height: 1.8; }
.upload-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; }.upload-box { display: flex!important; min-height: 92px; align-items: center; gap: 10px; margin: 0!important; padding: 13px; border: 1px dashed #bdd8d0!important; border-radius: 13px!important; background: #fbfefd!important; cursor: pointer; }.upload-box input { display: none; }.upload-icon { display: grid; width: 39px; height: 39px; flex: none; place-items: center; border-radius: 11px; background: var(--green-soft); color: var(--green); }.upload-box > div { min-width: 0; flex: 1; }.upload-box strong,.upload-box p { display: block; margin: 0; }.upload-box strong { color: #44645b; font-size: 9px; }.upload-box p { margin-top: 3px; color: #94a6a1; font-size: 7px; line-height: 1.5; }.upload-box > small { color: #a1aeaa; font-size: 7px; }.upload-box.has-file { border-style: solid!important; border-color: #a8dcca!important; background: #f4fbf8!important; }.upload-box.has-file .upload-icon { background: #dff5ed; }.upload-box > button { display: grid; width: 27px; height: 27px; place-items: center; border: 0; border-radius: 8px; background: #fff; color: #b47a79; }.upload-box.compact { min-height: 58px; justify-content: center; }
.form-actions { display: flex; align-items: center; justify-content: space-between; padding: 14px 27px; border-top: 1px solid #e9efed; background: #fbfdfc; }
.success-page,.identity-status-page { display: flex; min-height: calc(100vh - 145px); flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; }.success-mark { display: grid; width: 88px; height: 88px; place-items: center; margin-bottom: 18px; border-radius: 28px; background: var(--green-soft); box-shadow: 0 15px 40px rgba(20,154,114,.14); color: var(--green); }.success-page > span { color: var(--green); font-size: 10px; font-weight: 700; }.success-page h1 { margin: 8px 0; color: #244b41; font-size: 24px; }.success-page p { max-width: 480px; margin: 0; color: #7b908a; font-size: 10px; line-height: 1.9; }.success-page > div:last-child { display: flex; gap: 9px; margin-top: 23px; }
.review-block { margin-bottom: 12px; padding: 15px; border: 1px solid #e2eae7; border-radius: 13px; }.review-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }.review-title strong { color: #385c52; font-size: 10px; }.review-title button { display: flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--green); font-size: 8px; }.review-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.review-grid > div { padding: 10px; border-radius: 10px; background: #f8faf9; }.review-grid small,.review-grid strong { display: block; }.review-grid small { color: #8fa19c; font-size: 7px; }.review-grid strong { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: #45635b; font-size: 8px; }.review-grid strong svg { color: var(--green); }.review-docs { display: flex; gap: 8px; }.review-docs span { display: flex; flex: 1; align-items: center; gap: 6px; padding: 10px; border-radius: 10px; background: var(--green-soft); color: #397261; font-size: 8px; }.final-consent { padding: 11px; border-radius: 11px; background: #fff9ee; }

.overview-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--line); box-shadow: var(--shadow); }.overview-strip > div { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; align-items: center; gap: 0 9px; padding: 15px; background: #fff; }.overview-strip > div > span { display: grid; width: 38px; height: 38px; grid-row: 1/3; place-items: center; border-radius: 11px; }.overview-strip small { align-self: end; color: #899b96; font-size: 8px; }.overview-strip strong { align-self: start; color: #32564c; font-size: 15px; }
.plans-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }.plans-grid--admin { grid-template-columns: repeat(2,1fr); }.plan-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }.plan-card-top { display: flex; align-items: flex-start; justify-content: space-between; }.plan-card h2 { margin: 15px 0 6px; color: #2a5046; font-size: 13px; }.plan-card > p { min-height: 41px; margin: 0; color: #83968f; font-size: 8px; line-height: 1.8; }.plan-features { display: grid; gap: 8px; margin: 15px 0; padding: 13px 0; border-top: 1px solid #edf2f0; border-bottom: 1px solid #edf2f0; }.plan-features span { display: flex; align-items: center; gap: 7px; color: #617770; font-size: 8px; }.plan-features svg { color: #8eb0a6; }.plan-button { display: flex; width: 100%; height: 39px; align-items: center; justify-content: center; gap: 6px; border: 1px solid #b6dbcf; border-radius: 11px; background: #f1faf7; color: var(--green-dark); font-size: 9px; font-weight: 700; }.plan-admin-meta { display: flex; align-items: center; justify-content: space-between; gap: 9px; }.plan-admin-meta > div > span { display: block; margin-bottom: 5px; color: #8b9e98; font-size: 7px; }.mini-avatars { display: flex; }.mini-avatars i,.mini-avatars b { display: grid; width: 26px; height: 26px; place-items: center; margin-left: -5px; border: 2px solid #fff; border-radius: 9px; background: #dff1eb; color: #4f756a; font-size: 7px; font-style: normal; }.mini-avatars b { background: #f0f3f2; color: #7f918c; }
.modal-layer { align-items: center; justify-content: center; padding: 20px; }.wide-modal,.receipt-modal { position: relative; z-index: 2; width: min(780px,100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 21px; background: #fff; box-shadow: 0 25px 80px rgba(16,44,36,.23); animation: modal-in .22s ease; }.receipt-modal { width: min(610px,100%); }.video-modal { position: relative; z-index: 2; width: min(860px,100%); overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 25px 80px rgba(16,44,36,.25); }.modal-animation-keyframes-placeholder { opacity: 1; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 21px; border-bottom: 1px solid var(--line); }.modal-head span,.modal-head h2 { display: block; margin: 0; }.modal-head span { color: #849791; font-size: 8px; }.modal-head h2 { margin-top: 2px; color: #2c5248; font-size: 15px; }.modal-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 8px 17px 0; border-bottom: 1px solid #edf2f0; }.modal-tabs button { position: relative; min-height: 38px; padding: 0 12px; border: 0; background: transparent; color: #83958f; font-size: 8px; white-space: nowrap; }.modal-tabs button.is-active { color: var(--green-dark); font-weight: 700; }.modal-tabs button.is-active::after { position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; border-radius: 2px; background: var(--green); content: ""; }.modal-body { min-height: 335px; padding: 22px; }.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line); background: #fbfdfc; }.chip-options { display: flex; gap: 6px; }.chip-options button { height: 37px; padding: 0 10px; border: 1px solid #e0e8e5; border-radius: 9px; background: #fff; color: #758a83; font-size: 8px; }.chip-options button.is-selected { border-color: #7fcab4; background: var(--green-soft); color: var(--green-dark); }.builder-placeholder { display: flex; min-height: 280px; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #bfd8d1; border-radius: 15px; background: #f9fcfb; color: var(--green); text-align: center; }.builder-placeholder h3 { margin: 12px 0 4px; color: #345a50; font-size: 13px; }.builder-placeholder p { max-width: 360px; margin: 0 0 15px; color: #839790; font-size: 8px; }.team-selector { display: grid; gap: 7px; }.team-selector > label { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }.team-selector > label > div:nth-child(2) { flex: 1; }.team-selector strong,.team-selector small { display: block; }.team-selector strong { color: #3a5c54; font-size: 9px; }.team-selector small { color: #91a19c; font-size: 7px; }.team-selector input { display: none; }.team-selector label > span { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #d8e4e0; border-radius: 7px; color: transparent; }.team-selector input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }.holiday-rule { display: flex; grid-column: 1/-1; align-items: center; gap: 9px; padding: 12px; border-radius: 11px; background: #f4faf7; color: var(--green); }.holiday-rule strong,.holiday-rule span { display: block; }.holiday-rule strong { color: #3f635a; font-size: 9px; }.holiday-rule span { color: #81958f; font-size: 8px; }

.settlement-stats { margin-bottom: 17px; }.settlement-list-card { overflow: hidden; }.settlement-list > article { display: grid; grid-template-columns: 1.1fr 1fr .85fr auto auto; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #edf2f0; }.settlement-list > article.is-urgent { background: linear-gradient(90deg,#fffaf4,#fff); }.settlement-customer { display: flex; align-items: center; gap: 9px; }.settlement-customer strong,.settlement-customer span,.settlement-rep small,.settlement-rep strong,.settlement-rep span,.settlement-amount small,.settlement-amount strong,.settlement-amount span { display: block; }.settlement-customer strong,.settlement-rep strong,.settlement-amount strong { color: #385a52; font-size: 9px; }.settlement-customer span,.settlement-rep small,.settlement-rep span,.settlement-amount small,.settlement-amount span { margin-top: 2px; color: #91a29d; font-size: 7px; }.settlement-rep span { direction: ltr; text-align: right; }.padded { padding: 13px 20px; }.payment-summary { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin: 16px 20px 4px; overflow: hidden; border: 1px solid #dfeae6; border-radius: 13px; background: #e5edea; }.payment-summary > div { padding: 13px; background: #f6fbf9; }.payment-summary small,.payment-summary strong,.payment-summary span { display: block; }.payment-summary small { color: #83968f; font-size: 8px; }.payment-summary strong { margin-top: 3px; color: #245d4e; font-size: 11px; }.payment-summary span { margin-top: 2px; color: #7c928b; direction: ltr; font-size: 7px; text-align: right; }.receipt-modal > .fields-grid { padding: 18px 20px 8px; }.audit-note { display: flex; align-items: center; gap: 7px; margin: 5px 20px 17px; padding: 10px 12px; border-radius: 10px; background: #fff9ee; color: #a27846; font-size: 8px; }

.learning-hero { display: flex; min-height: 180px; align-items: center; justify-content: space-between; overflow: hidden; margin-bottom: 16px; padding: 27px 34px; border-radius: 20px; background: linear-gradient(115deg,#126f59,#179873); box-shadow: 0 15px 35px rgba(18,119,89,.15); color: #fff; }.learning-hero > div:first-child { max-width: 660px; }.learning-hero > div:first-child > span { display: flex; align-items: center; gap: 6px; color: #c3eee1; font-size: 9px; }.learning-hero h2 { margin: 10px 0 5px; font-size: 20px; }.learning-hero p { margin: 0; color: #d7f1e9; font-size: 9px; line-height: 1.8; }.learning-progress { display: flex; align-items: center; gap: 9px; margin-top: 18px; }.learning-progress > span { width: 230px; height: 7px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.18); }.learning-progress i { display: block; height: 100%; border-radius: inherit; background: #fff; }.learning-progress strong { font-size: 8px; }.learning-ring { display: flex!important; width: 110px; height: 110px; flex-direction: column; align-items: center; justify-content: center; border: 9px solid rgba(255,255,255,.15); border-top-color: #fff; border-radius: 50%; }.learning-ring span { font-size: 20px; font-weight: 800; }.learning-ring small { color: #d3ede6; font-size: 7px; }.system-status-strip { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; padding: 11px 14px; border: 1px solid #d7e9e3; border-radius: 13px; background: #f5fbf8; }.system-status-strip > div:nth-child(2) { flex: 1; }.system-status-strip strong,.system-status-strip span { display: block; }.system-status-strip strong { color: #355e52; font-size: 9px; }.system-status-strip span { margin-top: 2px; color: #82968f; font-size: 8px; }.system-status-strip > svg { color: var(--green); }.status-led { width: 9px; height: 9px; border-radius: 50%; background: #c4d0cc; }.status-led.active { background: var(--green); box-shadow: 0 0 0 5px rgba(22,164,123,.1); }.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; }.section-heading h2,.section-heading p { margin: 0; }.section-heading h2 { color: #2c5047; font-size: 14px; }.section-heading p { margin-top: 3px; color: #8c9e98; font-size: 8px; }.courses-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }.course-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }.course-cover { position: relative; display: grid; height: 155px; place-items: center; overflow: hidden; }.course-cover.emerald { background: linear-gradient(145deg,#dff7ef,#a9e1d0); color: #168b69; }.course-cover.blue { background: linear-gradient(145deg,#e6f2ff,#bbd8f6); color: #3979c9; }.course-cover.violet { background: linear-gradient(145deg,#f1eaff,#d5c6f3); color: #7252ba; }.course-cover::before,.course-cover::after { position: absolute; border-radius: 50%; background: currentColor; opacity: .08; content:""; }.course-cover::before { width: 180px; height: 180px; right: -55px; top: -80px; }.course-cover::after { width: 110px; height: 110px; left: -40px; bottom: -50px; }.course-shape { display: grid; width: 78px; height: 78px; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: rgba(255,255,255,.55); box-shadow: 0 15px 30px rgba(40,70,62,.1); transform: rotate(-6deg); }.course-cover > b { position: absolute; top: 12px; right: 12px; padding: 5px 8px; border-radius: 7px; background: rgba(255,255,255,.7); font-size: 7px; }.course-cover > button { position: absolute; display: grid; width: 45px; height: 45px; place-items: center; border: 3px solid rgba(255,255,255,.8); border-radius: 50%; background: #fff; box-shadow: 0 8px 22px rgba(28,73,61,.16); color: currentColor; }.course-body { padding: 16px; }.course-category { color: var(--green); font-size: 7px; font-weight: 700; }.course-body h3 { min-height: 42px; margin: 6px 0 8px; color: #31534a; font-size: 11px; line-height: 1.8; }.course-meta { display: flex; gap: 13px; color: #81958f; }.course-meta span { display: flex; align-items: center; gap: 4px; font-size: 7px; }.course-progress { margin: 14px 0; }.course-progress > div { display: flex; justify-content: space-between; margin-bottom: 5px; color: #7f918c; font-size: 7px; }.course-progress i { display: block; height: 6px; overflow: hidden; border-radius: 8px; background: #edf2f0; }.course-progress b { display: block; height: 100%; border-radius: inherit; background: var(--green); }.course-action { width: 100%; min-height: 38px; }
.video-stage { position: relative; padding: 12px; background: #10231e; }.video-close { position: absolute; z-index: 3; top: 19px; left: 19px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(0,0,0,.26); color: #fff; }.video-fake { display: flex; height: 410px; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: radial-gradient(circle at 50% 40%,#27594d,#122e27); color: #fff; }.video-fake .brand-mark { position: absolute; top: 28px; right: 28px; transform: scale(.78); transform-origin: top right; }.video-fake .brand-mark strong { color: #fff; }.video-fake .brand-mark small { color: #b8d8cf; }.video-fake > button { display: grid; width: 67px; height: 67px; place-items: center; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; }.video-fake > span { margin-top: 16px; color: #d8eae5; font-size: 11px; }.video-controls { display: flex; align-items: center; gap: 9px; padding: 9px 3px 0; color: #d3e2de; }.video-controls button { border: 0; background: transparent; color: #fff; font-size: 8px; }.video-track { position: relative; height: 4px; flex: 1; border-radius: 5px; background: rgba(255,255,255,.18); }.video-track i { display: block; width: 28%; height: 100%; border-radius: inherit; background: var(--green); }.video-controls small { direction: ltr; font-size: 7px; }.video-info { padding: 18px 20px; }.video-info > span { color: var(--green); font-size: 8px; }.video-info h2 { margin: 5px 0; color: #2d5047; font-size: 15px; }.video-info p { margin: 0; color: #7f918c; font-size: 8px; }

.ticket-layout { display: grid; grid-template-columns: 245px 1fr; gap: 15px; }.ticket-summary { padding: 16px; }.ticket-summary h3 { margin: 0 0 12px; color: #31534a; font-size: 12px; }.ticket-summary > div { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 9px 0; }.ticket-summary > div > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; }.ticket-summary .blue { background: var(--blue-soft); color: var(--blue); }.ticket-summary .orange { background: var(--orange-soft); color: var(--orange); }.ticket-summary .green { background: var(--green-soft); color: var(--green); }.ticket-summary p { margin: 0; color: #617770; font-size: 8px; }.ticket-summary strong { color: #31554c; font-size: 12px; }.ticket-summary hr { margin: 10px 0; border: 0; border-top: 1px solid #edf2f0; }.ticket-summary > button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px 3px; border: 0; background: transparent; color: #6f847d; font-size: 8px; }.ticket-list-card { overflow: hidden; }.ticket-list-head { display: flex; gap: 9px; padding: 13px; border-bottom: 1px solid #edf2f0; }.ticket-row { display: grid; width: 100%; grid-template-columns: 40px 1fr auto 20px; align-items: center; gap: 10px; padding: 14px 16px; border: 0; border-bottom: 1px solid #edf2f0; background: #fff; color: #8da09a; text-align: right; }.ticket-row:hover { background: #fbfefd; }.ticket-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; }.ticket-icon.orange { background: var(--orange-soft); color: var(--orange); }.ticket-icon.blue { background: var(--blue-soft); color: var(--blue); }.ticket-icon.green { background: var(--green-soft); color: var(--green); }.ticket-row strong,.ticket-row small { display: block; }.ticket-row strong { color: #3a5b53; font-size: 9px; }.ticket-row small { margin-top: 3px; color: #97a6a2; font-size: 7px; }.ticket-row > div:nth-child(3) { text-align: left; }

.onboarding-page { min-height: calc(100vh - 78px); margin: -28px -34px -48px; padding: 0 34px 45px; background: #f5f9f7; }.onboarding-head { display: none; }.identity-intro { display: flex; max-width: 1060px; align-items: center; gap: 12px; margin: 0 auto 18px; padding-top: 28px; }.identity-lock { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border-radius: 15px; background: var(--green-soft); color: var(--green); }.identity-intro > div:nth-child(2) { flex: 1; }.identity-intro h1 { margin: 0; color: #234b41; font-size: 21px; }.identity-intro p { margin: 3px 0 0; color: #81958f; font-size: 9px; }.secure-badge { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 9px; background: #fff; color: var(--green); font-size: 8px; }.identity-stepper,.identity-shell { max-width: 1060px; margin-right: auto; margin-left: auto; }.identity-kind { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }.identity-kind > button { display: flex; min-height: 98px; align-items: center; gap: 12px; padding: 15px; border: 1px solid #dfe9e5; border-radius: 14px; background: #fff; color: #5f776f; text-align: right; }.identity-kind > button.is-selected { border-color: #72c8ae; background: #f3fbf8; box-shadow: 0 0 0 3px rgba(23,164,123,.06); }.identity-kind > button > span { display: grid; width: 52px; height: 52px; flex: none; place-items: center; border-radius: 15px; background: #eff5f3; color: #78938b; }.identity-kind > button.is-selected > span { background: var(--green-soft); color: var(--green); }.identity-kind > button > div { flex: 1; }.identity-kind strong,.identity-kind small { display: block; }.identity-kind strong { color: #355a50; font-size: 11px; }.identity-kind small { margin-top: 4px; color: #8da09a; font-size: 8px; }.identity-kind > button > i { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #d8e3df; border-radius: 50%; color: #fff; }.identity-kind > button.is-selected > i { border-color: var(--green); background: var(--green); }.capture-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; margin-top: 13px; }.capture-grid button { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid #dde8e4; border-radius: 13px; background: #fff; color: #83958f; text-align: right; }.capture-grid button > span { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }.capture-grid button:nth-child(2) > span { background: var(--violet-soft); color: var(--violet); }.capture-grid button > div { flex: 1; }.capture-grid strong,.capture-grid small { display: block; }.capture-grid strong { color: #416159; font-size: 9px; }.capture-grid small { color: #91a29d; font-size: 7px; }.contract-box { overflow: hidden; border: 1px solid #dfe8e5; border-radius: 14px; }.contract-head { display: flex; align-items: center; gap: 9px; padding: 13px; border-bottom: 1px solid #e8eeec; background: #f8fbfa; color: var(--green); }.contract-head > div { flex: 1; }.contract-head strong,.contract-head small { display: block; }.contract-head strong { color: #3a5d54; font-size: 9px; }.contract-head small { color: #90a19c; font-size: 7px; }.contract-head button { border: 0; background: transparent; color: var(--green); font-size: 8px; }.contract-scroll { max-height: 140px; overflow-y: auto; padding: 14px; color: #647a74; font-size: 8px; line-height: 1.9; }.contract-scroll h4 { margin: 0 0 3px; color: #3b5e55; font-size: 9px; }.contract-scroll p { margin: 0 0 9px; }.contract-box .consent-check { padding: 10px 13px; border-top: 1px solid #e9efed; background: #fbfdfc; }.otp-sign { display: grid; grid-template-columns: 1fr auto 140px; align-items: center; gap: 10px; margin-top: 13px; padding: 12px; border: 1px solid #d9e9e3; border-radius: 12px; background: #f3faf7; }.otp-sign > div { display: flex; align-items: center; gap: 8px; color: var(--green); }.otp-sign strong,.otp-sign span { display: block; }.otp-sign strong { color: #3a5d53; font-size: 9px; }.otp-sign span { color: #84978f; font-size: 7px; }.otp-sign button { height: 37px; padding: 0 10px; border: 1px solid #b6dacf; border-radius: 9px; background: #fff; color: var(--green); font-size: 8px; }.otp-sign input { height: 37px; border: 1px solid #d6e4df; border-radius: 9px; outline: 0; text-align: center; }.check-fields { margin-top: 14px; }.identity-status-page { min-height: calc(100vh - 78px); }.pending-illustration { position: relative; display: grid; width: 105px; height: 105px; place-items: center; margin: 25px 0 15px; border-radius: 33px; background: var(--orange-soft); color: var(--orange); }.pending-illustration span { position: absolute; right: -7px; bottom: 4px; display: grid; width: 42px; height: 42px; place-items: center; border: 4px solid #f5f8f7; border-radius: 14px; background: #fff; color: var(--green); }.identity-status-page h1 { margin: 11px 0 5px; color: #274c42; font-size: 21px; }.identity-status-page > p { max-width: 500px; margin: 0; color: #7c918a; font-size: 9px; line-height: 1.9; }.identity-code { margin: 17px 0; padding: 10px 25px; border: 1px dashed #c8d9d4; border-radius: 11px; background: #fff; }.identity-code small,.identity-code strong { display: block; }.identity-code small { color: #90a09b; font-size: 7px; }.identity-code strong { color: #345a50; direction: ltr; font-size: 11px; }

.review-layout { display: grid; grid-template-columns: 290px 1fr; gap: 15px; }.review-queue { align-self: start; overflow: hidden; }.queue-head { display: flex; align-items: center; justify-content: space-between; padding: 15px; border-bottom: 1px solid #edf2f0; }.queue-head h3 { margin: 0; color: #31554b; font-size: 11px; }.queue-head b { display: grid; width: 24px; height: 22px; place-items: center; border-radius: 7px; background: var(--orange-soft); color: var(--orange); font-size: 8px; }.review-queue > button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 12px; border: 0; border-bottom: 1px solid #edf2f0; background: #fff; color: #91a19c; text-align: right; }.review-queue > button.is-active { background: #f1faf7; }.review-queue > button > div:nth-child(2) { flex: 1; }.review-queue strong,.review-queue span { display: block; }.review-queue strong { color: #426158; font-size: 9px; }.review-queue span { margin-top: 2px; color: #94a49f; font-size: 7px; }.review-detail { padding: 18px; }.review-person { display: flex; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid #edf2f0; }.review-person > div:nth-child(2) { flex: 1; }.review-person h2 { margin: 0; color: #2f5349; font-size: 14px; }.review-person p { margin: 3px 0 0; color: #8ca09a; font-size: 8px; }.review-checklist { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin: 15px 0; }.review-checklist > div { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid #e3ebe8; border-radius: 11px; }.review-checklist > div > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; }.review-checklist .done { background: var(--green-soft); color: var(--green); }.review-checklist .pending { background: var(--orange-soft); color: var(--orange); }.review-checklist > div > div { flex: 1; }.review-checklist strong,.review-checklist small { display: block; }.review-checklist strong { color: #43635a; font-size: 8px; }.review-checklist small { color: #93a39e; font-size: 7px; }.review-checklist button { display: flex; align-items: center; gap: 3px; border: 0; background: transparent; color: var(--green); font-size: 7px; }.video-review { display: grid; grid-template-columns: 1.4fr .6fr; gap: 12px; }.video-fake.small { position: relative; height: 175px; border-radius: 13px; }.video-fake.small > button { width: 50px; height: 50px; }.video-fake.small > span { font-size: 9px; }.video-review > div:nth-child(2) { display: flex; flex-direction: column; justify-content: center; padding: 13px; border-radius: 13px; background: #f7faf9; }.video-review > div:nth-child(2) strong,.video-review > div:nth-child(2) span { display: block; }.video-review > div:nth-child(2) strong { margin-bottom: 7px; color: #406158; font-size: 9px; }.video-review > div:nth-child(2) span { margin: 2px 0; color: #83968f; direction: ltr; font-size: 7px; text-align: right; }.decision-bar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf2f0; }

.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }.member-card { padding: 17px; }.member-head { display: flex; align-items: flex-start; justify-content: space-between; }.member-card h3 { margin: 12px 0 2px; color: #31544b; font-size: 12px; }.member-card > p { margin: 0; color: #879a94; font-size: 8px; }.member-meta { display: grid; gap: 7px; margin: 14px 0; padding: 11px 0; border-top: 1px solid #edf2f0; border-bottom: 1px solid #edf2f0; }.member-meta span { display: flex; align-items: center; gap: 6px; color: #758a83; font-size: 8px; }.permission-chips { display: flex; flex-wrap: wrap; gap: 5px; min-height: 51px; }.permission-chips span { align-self: flex-start; padding: 4px 7px; border-radius: 7px; background: #f0f5f3; color: #688078; font-size: 7px; }.member-card > .outline-button { width: 100%; min-height: 37px; }

.report-chart { padding-bottom: 14px; }.line-chart { position: relative; height: 245px; padding: 26px 22px 20px; }.chart-grid-lines { position: absolute; inset: 25px 22px 36px; display: flex; flex-direction: column; justify-content: space-between; }.chart-grid-lines i { border-top: 1px dashed #e5ece9; }.chart-bars { position: relative; z-index: 2; display: flex; height: 100%; align-items: flex-end; justify-content: space-between; gap: 15px; }.chart-bars > div { display: flex; height: 100%; flex: 1; align-items: flex-end; justify-content: center; gap: 3px; position: relative; }.chart-bars span,.chart-bars b { width: 15px; border-radius: 5px 5px 2px 2px; background: #8ed2bd; }.chart-bars b { background: #cbdcd7; }.chart-bars small { position: absolute; bottom: -18px; color: #849790; font-size: 7px; }.ranking-card { overflow: hidden; }.ranking-row { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid #edf2f0; }.ranking-row > b { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 7px; background: #f0f4f3; color: #71867f; font-size: 7px; }.ranking-row > div:nth-child(3) { flex: 1; }.ranking-row strong,.ranking-row span { display: block; }.ranking-row strong { color: #3d5e55; font-size: 8px; }.ranking-row span { margin-top: 2px; color: #93a39e; font-size: 7px; }.ranking-row em { color: var(--green); font-size: 9px; font-style: normal; font-weight: 700; }

.provider-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin-bottom: 16px; }.provider-card { padding: 15px; }.provider-card.is-active { border-color: #a9dcca; box-shadow: 0 0 0 2px rgba(22,164,123,.05),var(--shadow); }.provider-head { display: flex; align-items: center; gap: 8px; }.provider-logo { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; }.provider-logo.green { background: var(--green-soft); color: var(--green); }.provider-logo.blue { background: var(--blue-soft); color: var(--blue); }.provider-logo.orange { background: var(--orange-soft); color: var(--orange); }.provider-logo.violet { background: var(--violet-soft); color: var(--violet); }.provider-head > div:nth-child(2) { flex: 1; }.provider-head h3,.provider-head p { margin: 0; }.provider-head h3 { color: #385a51; font-size: 10px; }.provider-head p { color: #91a19c; font-size: 7px; }.provider-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; overflow: hidden; margin: 13px 0; border-radius: 10px; background: #e6ecea; }.provider-stats > div { padding: 9px; background: #f6f9f8; }.provider-stats small,.provider-stats strong { display: block; }.provider-stats small { color: #91a09c; font-size: 7px; }.provider-stats strong { margin-top: 2px; color: #426259; font-size: 10px; }.provider-card .outline-button { width: 100%; min-height: 36px; }.provider-backup { width: 100%; min-height: 30px; margin-top: 3px; font-size: 7px; }.sms-log { overflow: hidden; }

.notifications-page-card { overflow: hidden; padding: 0 18px; }.notification-page-head { display: flex; align-items: center; gap: 5px; padding: 11px 0; border-bottom: 1px solid #edf2f0; }.notification-page-head button { display: flex; min-height: 34px; align-items: center; gap: 5px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: #7c918a; font-size: 8px; }.notification-page-head button.is-active { background: var(--green-soft); color: var(--green-dark); }.notification-page-head button b { display: grid; width: 20px; height: 18px; place-items: center; border-radius: 6px; background: #fff; font-size: 7px; }.notification-page-head .mark-read { margin-right: auto; color: var(--green); }.notifications-page-card > .notification-item { padding: 16px 2px; }
.profile-header-card { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; padding: 18px; }.avatar--profile { width: 70px; height: 70px; border-radius: 21px; font-size: 22px; }.profile-header-card > div:nth-child(2) { flex: 1; }.profile-header-card h2,.profile-header-card p { margin: 0; }.profile-header-card h2 { color: #2e5248; font-size: 16px; }.profile-header-card p { margin: 3px 0 7px; color: #849790; font-size: 8px; }.profile-form { overflow: hidden; }.profile-form > .fields-grid { padding: 20px; }.profile-actions { display: flex; justify-content: flex-end; padding: 13px 20px; border-top: 1px solid #edf2f0; }
.settings-sections { display: grid; gap: 14px; }.settings-sections section { overflow: hidden; padding-bottom: 15px; }.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 18px; padding: 14px 2px; border-bottom: 1px solid #edf2f0; }.setting-row strong,.setting-row span { display: block; }.setting-row strong { color: #3d5e55; font-size: 9px; }.setting-row span { margin-top: 3px; color: #8b9e98; font-size: 8px; }.settings-sections section > .outline-button { margin: 14px 18px 0; }.switch { position: relative; width: 41px; height: 23px; flex: none; cursor: pointer; }.switch input { display: none; }.switch span { position: absolute; inset: 0; border-radius: 15px; background: #d9e3e0; transition: .2s; }.switch span::after { position: absolute; top: 3px; right: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.14); content:""; transition:.2s; }.switch input:checked + span { background: var(--green); }.switch input:checked + span::after { transform: translateX(-18px); }.danger-link { border: 0; background: transparent; color: var(--red); font-size: 8px; }

.login-page { display: grid; min-height: 100vh; grid-template-columns: minmax(420px,46%) 1fr; background: #fff; }.login-visual { position: relative; display: flex; overflow: hidden; flex-direction: column; padding: 34px 48px; background: linear-gradient(145deg,#0e765c,#075443); color: #fff; }.login-visual::before { position: absolute; inset: 0; opacity: .2; background-image: radial-gradient(#fff 1px,transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(135deg,#000,transparent 70%); content:""; }.login-visual::after { position: absolute; width: 520px; height: 520px; left: -220px; bottom: -250px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.02); content:""; }.login-brand { position: relative; z-index: 2; }.login-brand .brand-mark strong { color: #fff; }.login-brand .brand-mark small { color: #b4d9cf; }.login-brand .brand-symbol { box-shadow: none; background: rgba(255,255,255,.17); }.login-copy { position: relative; z-index: 2; margin-top: 64px; }.login-copy > span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.08); color: #c6e8df; font-size: 8px; }.login-copy h1 { margin: 14px 0 6px; font-size: clamp(29px,3vw,43px); font-weight: 800; letter-spacing: -1.4px; }.login-copy p { max-width: 440px; margin: 0; color: #c3dfd7; font-size: 10px; line-height: 1.9; }.login-art { position: relative; z-index: 2; flex: 1; min-height: 340px; }.login-phone { position: absolute; width: 195px; height: 330px; right: 50%; bottom: -38px; padding: 39px 17px 17px; border: 7px solid rgba(255,255,255,.84); border-radius: 31px; background: #f0f7f4; box-shadow: 0 30px 60px rgba(0,0,0,.2); transform: translateX(38%) rotate(-4deg); }.phone-notch { position: absolute; top: 9px; left: 50%; width: 58px; height: 12px; border-radius: 8px; background: #17453a; transform: translateX(-50%); }.phone-row { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: #fff; color: var(--green); }.phone-row > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: var(--green-soft); }.phone-row > div { flex: 1; }.phone-row i,.phone-row b { display: block; height: 6px; border-radius: 4px; background: #d2e2dd; }.phone-row b { width: 63%; height: 5px; margin-top: 6px; background: #e6eeeb; }.phone-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 10px 0; }.phone-stats span { height: 52px; border-radius: 10px; background: #fff; }.phone-chart { display: flex; height: 108px; align-items: flex-end; gap: 8px; padding: 14px; border-radius: 12px; background: #fff; }.phone-chart i { flex: 1; border-radius: 5px 5px 2px 2px; background: #cbe8df; }.phone-chart i:nth-child(1){height:40%}.phone-chart i:nth-child(2){height:65%}.phone-chart i:nth-child(3){height:52%}.phone-chart i:nth-child(4){height:83%;background:var(--green)}.floating-card { position: absolute; display: flex; align-items: center; gap: 8px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.34); border-radius: 13px; background: rgba(255,255,255,.92); box-shadow: 0 15px 35px rgba(0,0,0,.15); color: var(--green); backdrop-filter: blur(8px); }.floating-card strong,.floating-card small { display: block; }.floating-card strong { color: #31594e; font-size: 8px; }.floating-card small { color: #8a9d97; font-size: 7px; }.float-one { right: calc(50% - 210px); bottom: 176px; transform: rotate(4deg); }.float-two { right: calc(50% + 60px); bottom: 72px; transform: rotate(-4deg); }.login-copyright { position: relative; z-index: 2; color: #83b5a7; font-size: 7px; }.login-form-side { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; background: radial-gradient(circle at 70% 20%,#f3faf7,transparent 26rem),#fff; }.login-box { width: min(400px,100%); }.login-welcome { color: var(--green); font-size: 9px; font-weight: 700; }.login-box h2 { margin: 6px 0; color: #21493f; font-size: 23px; }.login-box > p { margin: 0 0 20px; color: #83968f; font-size: 9px; }.auth-tabs { display: flex; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 11px; background: #f0f5f3; }.auth-tabs button { height: 36px; flex: 1; border: 0; border-radius: 8px; background: transparent; color: #7d918a; font-size: 9px; }.auth-tabs button.is-active { background: #fff; box-shadow: 0 3px 10px rgba(30,65,56,.07); color: var(--green-dark); font-weight: 700; }.auth-phone > div { display: flex; height: 45px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #dfe8e5; border-radius: 11px; background: #fbfdfc; color: #91a39d; }.auth-phone input { height: 100%; border: 0; box-shadow: none!important; direction: ltr; text-align: right; }.auth-submit { width: 100%; margin-top: 13px; }.auth-help { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: #f3faf7; color: var(--green); }.auth-help p { margin: 0; color: #71877f; font-size: 7px; line-height: 1.7; }.otp-info { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; background: #f3faf7; }.otp-info > span { color: var(--green); }.otp-info p { flex: 1; margin: 0; color: #627970; font-size: 8px; }.otp-info button { border: 0; background: transparent; color: var(--green); font-size: 7px; }.otp-inputs { display: flex; justify-content: center; gap: 8px; margin: 20px 0 5px; direction: ltr; }.otp-inputs input { width: 49px; height: 52px; border: 1px solid #dbe6e2; border-radius: 12px; outline: 0; color: #285348; font-size: 18px; text-align: center; }.otp-inputs input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,164,123,.07); }.resend-code { width: 100%; margin-top: 10px; border: 0; background: transparent; color: #879a94; font-size: 8px; }.provider-note { position: absolute; right: 30px; bottom: 22px; left: 30px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #9caaa6; font-size: 7px; }.provider-note b { padding: 4px 7px; border: 1px solid #e6ecea; border-radius: 6px; background: #fff; color: #81938e; font-size: 6px; }

@keyframes modal-in {
  from { opacity: 0; transform: scale(.98) translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1250px) {
  .content-area,.topbar { padding-right: 24px; padding-left: 24px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .plans-grid { grid-template-columns: repeat(2,1fr); }
  .settlement-list > article { grid-template-columns: 1.1fr 1fr .8fr auto; }
  .settlement-list > article .settlement-rep { display: none; }
  .provider-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 1020px) {
  .app-main { margin-right: 0; }
  .sidebar { width: 282px; transform: translateX(110%); transition: transform .25s ease; }
  .sidebar.is-open { transform: none; }
  .sidebar-backdrop { position: fixed; z-index: 45; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(14,36,31,.38); backdrop-filter: blur(2px); }
  .sidebar-backdrop.is-open,.sidebar .sidebar-close,.topbar .mobile-menu { display: grid; }
  .sidebar-backdrop:not(.is-open) { display: none; }
  .global-search { width: min(390px,44vw); }
  .review-switch > span { display: none; }.review-switch { padding-right: 0; }
  .dashboard-grid,.lower-grid { grid-template-columns: 1fr; }
  .welcome-art { width: 230px; }
  .courses-grid { grid-template-columns: repeat(2,1fr); }
  .login-page { grid-template-columns: 43% 1fr; }.login-visual { padding: 30px; }.float-one { right: 10px; }.float-two { right: auto; left: 5px; }
  .review-layout { grid-template-columns: 240px 1fr; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 15px; }
  .content-area { padding: 20px 15px 35px; }
  .global-search,.header-profile > div:nth-child(2),.header-profile > svg,.review-switch { display: none; }
  .topbar-actions { gap: 8px; }
  .page-heading { align-items: flex-start; margin-bottom: 16px; }
  .page-heading h1 { font-size: 20px; }.page-heading p { font-size: 9px; }
  .heading-action .primary-button,.heading-action .outline-button { min-height: 38px; padding: 0 11px; font-size: 8px; }
  .welcome-banner { min-height: 210px; padding: 23px; }.welcome-copy { max-width: 65%; }.welcome-copy h2 { font-size: 16px; line-height: 1.7; }.welcome-art { position: absolute; left: -15px; width: 210px; opacity: .8; transform: scale(.82); }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }.stat-card { min-height: 100px; padding: 13px; }.stat-icon { width: 40px; height: 40px; }.stat-body > strong { font-size: 17px; }
  .card-header { min-height: 66px; padding: 13px; }.card-header h2 { font-size: 11px; }
  .settlement-row { grid-template-columns: 1fr auto; }.settlement-row > div:nth-child(2) { display: none; }
  .filter-card { align-items: stretch; overflow-x: auto; }.filter-card .search-field { min-width: 210px; }.filter-card .filter-button { display: none; }
  .selectable-plans,.upload-grid,.fields-grid,.identity-kind,.capture-grid { grid-template-columns: 1fr; }.field.full { grid-column: auto; }
  .stepper { padding: 10px; }.stepper > div { justify-content: center; }.stepper > div > div { display: none; }.stepper > div::after { right: calc(100% - 3px); width: calc(100% - 38px); }
  .form-section { padding: 19px 16px; }.form-actions { padding: 12px 16px; }
  .review-grid { grid-template-columns: 1fr; }.review-docs { flex-direction: column; }
  .plans-grid,.plans-grid--admin { grid-template-columns: 1fr; }.overview-strip { grid-template-columns: repeat(2,1fr); }
  .settlement-list > article { grid-template-columns: 1fr auto; gap: 10px; }.settlement-list > article .settlement-amount { display: none; }.settlement-list > article .primary-button,.settlement-list > article .outline-button { grid-column: 1/-1; width: 100%; }
  .courses-grid { grid-template-columns: 1fr; }.learning-hero { padding: 22px; }.learning-ring { width: 85px; height: 85px; }.learning-progress > span { width: 150px; }
  .ticket-layout { grid-template-columns: 1fr; }.ticket-summary { display: none; }.ticket-row { grid-template-columns: 37px 1fr 18px; }.ticket-row > div:nth-child(3) { display: none; }
  .onboarding-page { margin: -20px -15px -35px; padding: 0 15px 35px; }.identity-intro { align-items: flex-start; }.secure-badge { display: none; }.identity-intro h1 { font-size: 18px; }
  .otp-sign { grid-template-columns: 1fr; }.otp-sign input { width: 100%; }
  .review-layout { grid-template-columns: 1fr; }.review-queue { display: flex; overflow-x: auto; }.queue-head { display: none; }.review-queue > button { min-width: 215px; }.review-checklist { grid-template-columns: 1fr; }.video-review { grid-template-columns: 1fr; }.decision-bar { flex-wrap: wrap; }.decision-bar button { flex: 1; }
  .team-grid,.provider-grid { grid-template-columns: 1fr; }.report-chart { display: none; }
  .login-page { display: block; min-height: 100vh; }.login-visual { display: none; }.login-form-side { min-height: 100vh; padding: 30px 22px 70px; }.mobile-login-brand { display: block; width: min(400px,100%); margin-bottom: 50px; }.provider-note { flex-wrap: wrap; }
  .wide-modal,.receipt-modal { max-height: calc(100vh - 18px); border-radius: 18px; }.modal-layer { padding: 9px; align-items: flex-end; }.wide-modal,.receipt-modal { width: 100%; border-radius: 18px 18px 8px 8px; }.payment-summary { grid-template-columns: 1fr; }
  .video-modal { border-radius: 16px; }.video-fake { height: 235px; }.video-info h2 { font-size: 12px; }
  .unverified-alert { margin: 10px 15px 0; font-size: 8px; }.unverified-alert span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 470px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 86px; }
  .welcome-banner { min-height: 230px; }.welcome-copy { max-width: 76%; }.welcome-art { left: -58px; opacity: .55; }
  .quick-grid { grid-template-columns: 1fr 1fr; }.quick-grid button { grid-template-columns: 34px 1fr; padding: 10px; }.quick-icon { width: 34px; height: 34px; }
  .page-heading { display: block; }.heading-action { margin-top: 11px; }.heading-action > button { width: 100%; }
  .form-actions .primary-button { padding: 0 10px; }
  .plans-grid { grid-template-columns: 1fr; }
  .learning-hero { display: block; }.learning-ring { display: none!important; }.learning-progress > span { flex: 1; }
  .review-person { align-items: flex-start; flex-wrap: wrap; }.review-person .status-badge { margin-right: 60px; }
  .notification-dropdown { left: -54px; width: min(335px,calc(100vw - 20px)); }
  .profile-header-card { flex-wrap: wrap; }.profile-header-card > button { width: 100%; }
}

/* Production PHP screens -------------------------------------------------- */

.brand-symbol i:first-child,
.brand-symbol i:last-child {
  position: absolute;
  display: block;
  border-style: solid;
  border-color: #fff;
  content: "";
}

.brand-symbol i:first-child {
  top: 6px;
  right: 7px;
  width: 20px;
  height: 20px;
  border-width: 4px;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 4px 12px 4px 12px;
  transform: rotate(-12deg);
}

.brand-symbol i:last-child {
  bottom: 5px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-width: 4px;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 5px 11px 5px 11px;
  opacity: .76;
  transform: rotate(-12deg);
}

.page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.narrow-page {
  max-width: 1020px;
}

.form-page {
  max-width: 1180px;
}

.card,
.form-shell {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.primary-button,
.outline-button,
.text-button,
.table-action {
  font-size: 12px;
}

.primary-button,
.outline-button {
  min-height: 42px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-weight: 700;
}

.danger,
.text-danger {
  color: var(--red) !important;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  min-width: 760px;
}

.data-table th {
  color: #728680;
  font-size: 11px;
  white-space: nowrap;
}

.data-table td,
.data-table td > strong {
  font-size: 12px;
}

.data-table td {
  vertical-align: middle;
}

.table-subtitle {
  display: block;
  margin-top: 3px;
  color: #94a49f;
  font-size: 10px;
}

.table-action {
  display: inline-grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid #e0eae6;
  border-radius: 10px;
  background: #fff;
  color: #607971;
}

.table-action:hover {
  border-color: #a9d8c9;
  color: var(--green);
}

.status-badge {
  min-height: 27px;
  padding: 0 9px;
  font-size: 10px;
  white-space: nowrap;
}

.status-badge.pending {
  background: var(--orange-soft);
  color: #c9701e;
}

.status-badge.success,
.positive {
  color: var(--green-dark);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 15px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.8;
}

.alert ul {
  margin: 6px 0 0;
  padding-right: 20px;
}

.alert--success {
  border-color: #bee5d8;
  background: #edf9f5;
  color: #176f58;
}

.alert--danger {
  border-color: #f0c7c8;
  background: #fff3f3;
  color: #a44246;
}

.alert--warning {
  border-color: #f2dab6;
  background: #fff9ef;
  color: #9c671f;
}

.alert--info {
  border-color: #cbdcf4;
  background: #f2f7ff;
  color: #315f9d;
}

.alert--floating {
  position: fixed;
  z-index: 100;
  top: 92px;
  left: 28px;
  max-width: min(440px, calc(100vw - 32px));
  box-shadow: 0 16px 50px rgba(35, 72, 63, .18);
  transition: .3s ease;
}

.alert--floating.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
}

.empty-state {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: #82968f;
  text-align: center;
}

.empty-state.compact {
  min-height: 110px;
  padding: 18px;
}

.empty-state > span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 19px;
  background: var(--green-soft);
  color: var(--green);
}

.empty-state h2 {
  margin: 0;
  color: #35594f;
  font-size: 16px;
}

.empty-state p {
  max-width: 460px;
  margin: 6px 0 15px;
  font-size: 12px;
}

.not-found {
  min-height: 480px;
}

.field,
.stack-form > label,
.install-form label,
.auth-form label,
.filter-card > label {
  display: block;
  min-width: 0;
}

.field > span,
.stack-form > label > span,
.install-form label > span,
.auth-form label > span,
.filter-card > label > span {
  display: block;
  margin: 0 2px 7px;
  color: #4b6961;
  font-size: 11px;
  font-weight: 700;
}

.field > span b,
.upload-box b {
  color: var(--red);
}

.field input,
.field select,
.field textarea,
.stack-form input,
.stack-form select,
.stack-form textarea,
.install-form input,
.install-form select,
.auth-form input,
.auth-form select,
.filter-card input,
.filter-card select,
.sms-test-card input,
.ticket-reply textarea {
  width: 100%;
  border: 1px solid #dce7e3;
  border-radius: 11px;
  outline: 0;
  background: #fbfdfc;
  color: #294d44;
  font-size: 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.field input,
.field select,
.stack-form input,
.stack-form select,
.install-form input,
.install-form select,
.auth-form input,
.auth-form select,
.filter-card input,
.filter-card select,
.sms-test-card input {
  height: 45px;
  padding: 0 12px;
}

.field textarea,
.stack-form textarea,
.ticket-reply textarea {
  min-height: 105px;
  padding: 11px 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus,
.install-form input:focus,
.auth-form input:focus,
.auth-form select:focus,
.filter-card input:focus,
.sms-test-card input:focus,
.ticket-reply textarea:focus {
  border-color: #76c7af;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 163, 123, .07);
}

.field input:disabled,
.field select:disabled {
  background: #f0f3f2;
  color: #82918d;
}

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

.field.full,
.form-grid .full,
.provider-fields.full {
  grid-column: 1 / -1;
}

.form-section + .form-section {
  border-top: 1px solid #eaf0ee;
}

.form-section-head h2 {
  font-size: 16px;
}

.form-section-head p,
.card-header p,
.section-help {
  font-size: 11px;
  line-height: 1.8;
}

.review-block {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 0;
  padding: 0;
  background: #e4ece9;
}

.review-block > div {
  padding: 14px;
  background: #f9fcfb;
}

.review-block small,
.review-block strong {
  display: block;
}

.review-block small {
  color: #849790;
  font-size: 10px;
}

.review-block strong {
  margin-top: 4px;
  color: #31574d;
  font-size: 12px;
}

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

.plan-select-card {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e0e9e6;
  border-radius: 14px;
  background: #fff;
  transition: .2s ease;
}

.plan-select-card:hover,
.plan-select-card.is-selected {
  border-color: #76c9b0;
  background: #f3fbf8;
  box-shadow: 0 0 0 3px rgba(22, 164, 123, .06);
}

.plan-select-card > div {
  min-width: 0;
  flex: 1;
}

.plan-select-card strong,
.plan-select-card small {
  display: block;
}

.plan-select-card strong {
  color: #31574d;
  font-size: 13px;
}

.plan-select-card small {
  margin-top: 4px;
  color: #859891;
  font-size: 10px;
}

.plan-select-card > i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #d7e4df;
  border-radius: 50%;
  color: transparent;
}

.plan-select-card.is-selected > i {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.otp-consent-box {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid #d8e9e3;
  border-radius: 14px;
  background: #f4faf8;
}

.inline-otp-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.inline-otp-form input {
  height: 43px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #d8e5e1;
  border-radius: 11px;
  outline: 0;
  background: #fff;
}

.verified-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
}

.verified-chip div {
  flex: 1;
}

.verified-chip strong,
.verified-chip small {
  display: block;
}

.verified-chip strong {
  color: #315a4f;
  font-size: 12px;
}

.verified-chip small {
  color: #7f958e;
  font-size: 10px;
}

.upload-box strong {
  font-size: 12px;
}

.upload-box p,
.upload-box > small {
  font-size: 10px;
}

.upload-box.is-updating {
  border-style: solid !important;
  border-color: #78cab2 !important;
  background: #f2fbf7 !important;
}

.consent-check p {
  font-size: 11px;
}

.check-row,
.check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
}

.check-row input,
.check-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-row > span,
.check-grid label > span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: none;
  place-items: center;
  border: 1px solid #bdd2cb;
  border-radius: 6px;
  background: #fff;
}

.check-row input:checked + span,
.check-grid input:checked + span {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 4px #fff;
}

.check-row strong,
.check-row small {
  display: block;
}

.check-row strong {
  color: #3d5f56;
  font-size: 11px;
}

.check-row small {
  color: #8c9e98;
  font-size: 9px;
}

.check-row.compact {
  margin-top: 12px;
}

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

.check-grid label {
  padding: 11px;
  border: 1px solid #e0e9e6;
  border-radius: 11px;
  background: #fbfdfc;
  color: #536d65;
  font-size: 11px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-grid > div {
  min-width: 0;
  padding: 13px;
  border-radius: 11px;
  background: #f7faf9;
}

.detail-grid small,
.detail-grid strong {
  display: block;
}

.detail-grid small {
  color: #849790;
  font-size: 10px;
}

.detail-grid strong {
  overflow-wrap: anywhere;
  margin-top: 4px;
  color: #385b52;
  font-size: 12px;
}

.settlement-summary,
.detail-section {
  margin-bottom: 15px;
  padding: 20px;
}

.settlement-summary .case-person {
  margin-bottom: 18px;
}

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

.case-person h2,
.case-person p {
  margin: 0;
}

.case-person h2 {
  color: #2d5248;
  font-size: 17px;
}

.case-person p,
.case-person small {
  color: #81958f;
  font-size: 10px;
}

.avatar--large {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  font-size: 18px;
}

.avatar--xlarge {
  width: 76px;
  height: 76px;
  border-radius: 23px;
  font-size: 24px;
}

.deadline-inline,
.deadline-box {
  color: #97631f;
}

.deadline-inline.late,
.deadline-box.late {
  color: var(--red);
}

.training-hero {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 17px;
  padding: 28px 32px;
  border: 0;
  background: linear-gradient(120deg, #0d745a, #19a27b);
  color: #fff;
}

.training-hero h2 {
  margin: 8px 0 5px;
  font-size: 22px;
}

.training-hero p {
  max-width: 650px;
  margin: 0;
  color: #d5f0e8;
  font-size: 12px;
}

.training-hero .eyebrow {
  color: #bfe7db;
}

.training-hero-icon {
  display: grid;
  width: 112px;
  height: 112px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 32px;
  background: rgba(255,255,255,.1);
  transform: rotate(-4deg);
}

.course-body h2 {
  font-size: 14px;
}

.course-body p,
.course-labels,
.progress-row small {
  font-size: 10px;
}

.course-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
  padding: 16px;
}

.course-overview > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.course-big-icon {
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
}

.course-overview small,
.course-overview strong {
  display: block;
}

.course-overview small {
  color: #849790;
  font-size: 10px;
}

.course-overview strong {
  margin-top: 3px;
  color: #35594f;
  font-size: 13px;
}

.lesson-list {
  display: grid;
  gap: 13px;
}

.lesson-card {
  overflow: hidden;
  padding: 18px;
}

.lesson-card.is-complete {
  border-color: #bae0d4;
}

.lesson-card header {
  display: flex;
  align-items: center;
  gap: 11px;
}

.lesson-card header > div {
  min-width: 0;
  flex: 1;
}

.lesson-card header small,
.lesson-card header h2 {
  display: block;
  margin: 0;
}

.lesson-card header small {
  color: #8da09a;
  font-size: 10px;
}

.lesson-card header h2 {
  margin-top: 2px;
  color: #31564d;
  font-size: 15px;
}

.lesson-number {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
}

.lesson-card video,
.lesson-image {
  display: block;
  width: 100%;
  max-height: 520px;
  margin-top: 16px;
  border-radius: 14px;
  background: #10251f;
  object-fit: contain;
}

.lesson-content {
  margin-top: 15px;
  padding: 16px;
  border-radius: 12px;
  background: #f7faf9;
  color: #506a62;
  font-size: 12px;
  line-height: 2;
}

.lesson-progress-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.lesson-admin-form {
  margin-top: 16px;
}

.ticket-layout {
  grid-template-columns: minmax(0, 1fr) 285px;
}

.conversation-card,
.ticket-side {
  overflow: hidden;
}

.conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 19px;
  border-bottom: 1px solid #e8efec;
}

.conversation-head h2,
.conversation-head p {
  margin: 0;
}

.conversation-head h2 {
  color: #31564d;
  font-size: 15px;
}

.conversation-head p {
  margin-top: 3px;
  color: #8c9e98;
  font-size: 10px;
}

.messages-list {
  display: grid;
  gap: 11px;
  max-height: 560px;
  overflow-y: auto;
  padding: 18px;
  background: #f7faf9;
}

.message-bubble {
  max-width: 78%;
  padding: 12px 14px;
  border: 1px solid #e1eae7;
  border-radius: 15px 15px 4px 15px;
  background: #fff;
}

.message-bubble.is-mine {
  margin-right: auto;
  border-color: #bce2d6;
  border-radius: 15px 15px 15px 4px;
  background: #eaf8f3;
}

.message-bubble header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #81958f;
  font-size: 9px;
}

.message-bubble header strong {
  color: #315a4f;
}

.message-bubble p {
  margin: 6px 0 0;
  color: #4e675f;
  font-size: 12px;
  line-height: 1.9;
}

.ticket-reply {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-top: 1px solid #e7eeeb;
}

.ticket-side {
  align-self: start;
  padding: 17px;
}

.ticket-side h3 {
  margin: 0 0 12px;
  color: #31564d;
  font-size: 14px;
}

.ticket-side .detail-grid {
  grid-template-columns: 1fr;
}

.identity-page {
  max-width: 1080px;
}

.identity-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid #e0e9e6;
  border-radius: 15px;
  background: #e2ebe8;
}

.identity-stepper > a {
  display: flex;
  min-height: 61px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  color: #82958f;
  font-size: 11px;
  font-weight: 700;
}

.identity-stepper > a > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: none;
  place-items: center;
  border: 1px solid #d6e3df;
  border-radius: 8px;
}

.identity-stepper > a.is-current {
  background: #f0faf6;
  color: var(--green-dark);
}

.identity-stepper > a.is-current > span {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.identity-stepper > a.is-done > span {
  border-color: #9fd7c5;
  background: var(--green-soft);
  color: var(--green);
}

.identity-result {
  min-height: 420px;
  padding: 42px;
  text-align: center;
}

.identity-result > span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin: 0 auto 15px;
  border-radius: 25px;
  background: var(--green-soft);
  color: var(--green);
}

.identity-result h2 {
  margin: 0;
  color: #31564d;
  font-size: 20px;
}

.identity-result p {
  max-width: 560px;
  margin: 8px auto 18px;
  color: #738981;
}

.identity-type-grid,
.identity-contract-grid,
.kyc-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.identity-type-grid label {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid #dfe9e5;
  border-radius: 14px;
  background: #fff;
}

.identity-type-grid input {
  accent-color: var(--green);
}

.identity-type-grid strong,
.identity-type-grid small {
  display: block;
}

.identity-type-grid strong {
  color: #31564d;
  font-size: 13px;
}

.identity-type-grid small {
  margin-top: 3px;
  color: #8c9e98;
  font-size: 10px;
}

.identity-contract-grid {
  align-items: start;
}

.contract-preview,
.sign-card,
.video-script {
  padding: 16px;
  border: 1px solid #e0e9e6;
  border-radius: 14px;
  background: #f9fcfb;
}

.contract-preview {
  max-height: 380px;
  overflow-y: auto;
  color: #536c64;
  line-height: 2;
}

.sign-card h3,
.video-script h3 {
  margin: 0 0 7px;
  color: #31564d;
  font-size: 14px;
}

.sign-card p,
.video-script p {
  color: #71877f;
  font-size: 11px;
}

.inline-otp-form.send-sign-code {
  display: block;
}

.otp-input {
  direction: ltr;
  font-size: 18px !important;
  font-weight: 800;
  letter-spacing: 8px;
  text-align: center;
}

.doc-decision {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.doc-decision label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid #e0e9e6;
  border-radius: 9px;
  color: #60766f;
  font-size: 10px;
}

.doc-decision input {
  accent-color: var(--green);
}

.document-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e8efec;
}

.document-review-row:last-child {
  border-bottom: 0;
}

.document-review-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.doc-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
}

.review-decision {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e8efec;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
  padding: 20px;
}

.profile-hero > div {
  min-width: 0;
  flex: 1;
}

.profile-hero h2,
.profile-hero p {
  margin: 0;
}

.profile-hero h2 {
  color: #2e5349;
  font-size: 18px;
}

.profile-hero p {
  margin-top: 4px;
  color: #81958f;
  font-size: 11px;
}

.filter-card {
  flex-wrap: wrap;
}

.filter-card > label:not(.search-field) {
  min-width: 175px;
}

/* v1.1.0 layout corrections */
.heading-action,
.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-delete-form,
.table-actions form {
  margin: 0;
}

.table-action--danger {
  border-color: #f0d2d3;
  color: var(--red);
}

.table-action--danger:hover {
  border-color: #e9aeb0;
  background: var(--red-soft);
  color: #c7474c;
}

.quick-grid a {
  display: grid;
  min-height: 104px;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 12px;
  padding: 18px;
  background: #fff;
  color: #385b52;
  text-align: right;
  transition: background .2s ease, transform .2s ease;
}

.quick-grid a:hover {
  background: #f8fcfa;
  transform: translateY(-1px);
}

.quick-grid a .quick-icon {
  width: 48px;
  height: 48px;
  grid-row: 1 / 3;
  border-radius: 14px;
}

.quick-grid a strong {
  align-self: end;
  font-size: 13px;
  line-height: 1.55;
}

.quick-grid a small {
  align-self: start;
  color: #8c9f99;
  font-size: 10px;
}

.cases-filter {
  display: grid;
  grid-template-columns: minmax(300px, 1.6fr) minmax(180px, .7fr) minmax(180px, .7fr) auto;
  align-items: center;
  gap: 11px;
  overflow: visible;
}

.cases-filter .search-field {
  width: 100%;
  min-width: 0;
  height: 45px;
}

.cases-filter .search-field input {
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cases-filter > select,
.cases-filter > button {
  width: 100%;
  min-width: 0;
  height: 45px;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.8fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  padding: 22px;
}

.case-hero .case-person {
  min-width: 0;
}

.case-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.case-hero-meta > span {
  display: flex;
  min-width: 0;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid #edf2f0;
  border-radius: 13px;
  background: #f7faf9;
}

.case-hero-meta small,
.case-hero-meta strong {
  display: block;
}

.case-hero-meta small {
  margin-bottom: 5px;
  color: #82958f;
  font-size: 10px;
}

.case-hero-meta strong {
  overflow-wrap: anywhere;
  color: #2f554b;
  font-size: 12px;
}

.case-hero-meta .status-badge {
  align-self: flex-start;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, .72fr);
  align-items: start;
  gap: 16px;
}

.case-main-column,
.case-side-column {
  min-width: 0;
}

.case-detail-page .detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-side-column {
  display: grid;
  gap: 15px;
}

.timeline-card,
.plan-snapshot {
  overflow: hidden;
}

.timeline {
  display: grid;
  padding: 6px 20px 20px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
}

.timeline-item:not(:last-child)::after {
  position: absolute;
  top: 30px;
  right: 7px;
  bottom: -4px;
  width: 2px;
  background: #e2ece8;
  content: "";
}

.timeline-item > span {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border: 4px solid #d9f1e9;
  border-radius: 50%;
  background: var(--green);
}

.timeline-item strong,
.timeline-item p,
.timeline-item small {
  display: block;
  margin: 0;
}

.timeline-item strong { color: #31564c; font-size: 12px; }
.timeline-item p { margin-top: 3px; color: #61776f; font-size: 11px; line-height: 1.8; }
.timeline-item small { margin-top: 4px; color: #92a29d; font-size: 9px; }

.plan-snapshot > div:not(.card-header) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 18px;
  padding: 12px 2px;
  border-bottom: 1px solid #edf2f0;
}

.plan-snapshot > div:last-child { border-bottom: 0; }
.plan-snapshot > div > span { color: #849790; font-size: 10px; }
.plan-snapshot > div > strong { color: #355a50; font-size: 11px; }

.field-hint {
  display: block;
  margin-top: 6px;
  color: #8da09a;
  font-size: 9px;
}

.amount-scroll-select {
  background-image: linear-gradient(45deg, transparent 50%, #789089 50%), linear-gradient(135deg, #789089 50%, transparent 50%);
  background-position: 15px calc(50% - 3px), 10px calc(50% - 3px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-left: 30px !important;
}

.jalali-date-selects {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr .8fr;
  gap: 8px;
  direction: rtl;
}

.jalali-date-selects select {
  width: 100%;
  height: 45px;
  min-width: 0;
  padding: 0 9px;
  border: 1px solid #dce7e3;
  border-radius: 11px;
  outline: 0;
  background: #fbfdfc;
  color: #294d44;
  font-size: 11px;
}

.jalali-date-selects select:focus {
  border-color: #76c7af;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 163, 123, .07);
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 15px;
  margin-top: 15px;
}

.report-card {
  overflow: hidden;
}

.report-list {
  display: grid;
  gap: 14px;
  padding: 17px;
}

.report-list header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.metric-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 6px;
  background: #eaf0ee;
}

.metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #18a47c, #72cab0);
}

.report-list small {
  display: block;
  margin-top: 4px;
  color: #8b9c97;
  font-size: 10px;
}

.two-column-admin {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
}

.stack-form {
  display: grid;
  gap: 13px;
  padding-bottom: 17px;
}

.stack-form > label,
.stack-form > button,
.stack-form > p {
  margin-right: 17px;
  margin-left: 17px;
}

.section-help {
  margin-top: 0;
  color: #83968f;
}

.provider-fields {
  display: none;
  padding: 15px;
  border: 1px solid #dfe9e5;
  border-radius: 14px;
  background: #f9fcfb;
}

.provider-fields.is-active {
  display: block;
}

.provider-fields h3 {
  margin: 0 0 12px;
  color: #31564d;
  font-size: 14px;
}

.sms-test-card,
.cron-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 17px;
}

.sms-test-card > div,
.cron-card > div {
  min-width: 0;
  flex: 1;
}

.sms-test-card h2,
.sms-test-card p,
.cron-card h2,
.cron-card p {
  margin: 0;
}

.sms-test-card h2,
.cron-card h2 {
  color: #31564d;
  font-size: 14px;
}

.sms-test-card p,
.cron-card p {
  margin-top: 3px;
  color: #83968f;
  font-size: 10px;
}

.sms-test-card input {
  width: 190px;
}

.secure-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.notification-full {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid #e8efec;
}

.notification-full:last-child {
  border-bottom: 0;
}

.notification-full.is-read {
  opacity: .72;
}

.notification-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green);
}

.notification-icon.gray {
  background: #f0f3f2;
  color: #81918c;
}

.notification-full h2,
.notification-full p {
  margin: 0;
}

.notification-full h2 {
  color: #31564d;
  font-size: 13px;
}

.notification-full p {
  margin-top: 4px;
  color: #6f857e;
  font-size: 11px;
}

.notification-full small {
  display: block;
  margin-top: 5px;
  color: #9aa8a4;
  font-size: 9px;
}

.notification-full a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
}

.audit-details {
  position: relative;
}

.audit-details summary {
  color: var(--green-dark);
  cursor: pointer;
  font-size: 10px;
}

.audit-details pre {
  width: min(520px, 80vw);
  max-height: 280px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 12px;
  border-radius: 10px;
  direction: ltr;
  background: #173d34;
  color: #dbf1ea;
  font: 11px/1.8 monospace;
  text-align: left;
  white-space: pre-wrap;
}

.correction-options,
.approved-amount-field,
.company-field,
.person-only,
.company-only,
.representative-user-field,
.employee-permissions {
  display: none;
}

.correction-options.is-visible,
.approved-amount-field.is-visible,
.company-field.is-visible,
.person-only.is-visible,
.company-only.is-visible,
.representative-user-field.is-visible,
.employee-permissions.is-visible {
  display: block;
}

.field.company-only.is-visible,
.field.person-only.is-visible,
.field.representative-user-field.is-visible {
  display: block;
}

.correction-options {
  margin-top: 13px;
  padding: 14px;
  border: 1px solid #f0d5b4;
  border-radius: 13px;
  background: #fffaf2;
}

.correction-options.is-visible {
  display: grid;
  gap: 12px;
}

.representatives-checks {
  margin-top: 13px;
}

.repeater-table,
.document-list,
.timeline {
  display: grid;
  gap: 9px;
}

.document-row,
.correction-item {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #e2ebe8;
  border-radius: 11px;
  background: #fbfdfc;
}

.document-row {
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.correction-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-form > .form-section > textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #dce7e3;
  border-radius: 11px;
  outline: 0;
  background: #fbfdfc;
  color: #34584f;
  font: inherit;
  line-height: 1.9;
  resize: vertical;
}

.admin-form > .form-section > textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(28 135 107 / 10%);
}

.repeater-table {
  overflow: hidden;
  border: 1px solid #e1eae7;
  border-radius: 13px;
}

.repeater-head,
.repeater-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 150px 70px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
}

.repeater-head {
  background: #f2f7f5;
  color: #758981;
  font-size: 10px;
  font-weight: 700;
}

.repeater-row {
  border-top: 1px solid #e7eeeb;
  background: #fff;
}

.documents-repeater .repeater-head,
.documents-repeater .repeater-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 70px;
}

.repeater-row input,
.repeater-row select {
  width: 100%;
  height: 40px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #dce7e3;
  border-radius: 9px;
  outline: 0;
  background: #fbfdfc;
  color: #385a52;
  font-size: 11px;
}

.mini-check {
  display: grid;
  place-items: center;
}

.mini-check input {
  position: absolute;
  opacity: 0;
}

.mini-check span {
  display: block;
  width: 21px;
  height: 21px;
  border: 1px solid #c4d7d0;
  border-radius: 7px;
  background: #fff;
}

.mini-check input:checked + span {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 5px #fff;
}

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

.access-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #e0e9e6;
  border-radius: 13px;
  background: #fbfdfc;
}

.access-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.access-main > input {
  position: absolute;
  opacity: 0;
}

.access-main > input:not(:checked) ~ .avatar {
  filter: grayscale(1);
  opacity: .55;
}

.access-main > span:last-child {
  min-width: 0;
}

.access-main strong,
.access-main small {
  display: block;
}

.access-main strong {
  overflow: hidden;
  color: #34584f;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-main small {
  color: #8c9e98;
  font-size: 9px;
}

.final-access {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6f837d;
  font-size: 9px;
  white-space: nowrap;
}

.final-access input {
  accent-color: var(--green);
}

.subsection-title {
  margin: 22px 0 3px;
  color: #35594f;
  font-size: 13px;
}

form.review-decision {
  display: grid;
  justify-content: stretch;
  gap: 11px;
  padding: 17px;
}

form.review-decision h2,
form.review-decision p {
  margin: 0;
}

form.review-decision h2 {
  color: #31564d;
  font-size: 15px;
}

form.review-decision p {
  color: #83968f;
  font-size: 10px;
}

form.review-decision > label > span,
.doc-decision > strong {
  display: block;
  margin-bottom: 6px;
  color: #506b63;
  font-size: 10px;
  font-weight: 700;
}

form.review-decision select,
form.review-decision textarea,
.doc-decision select {
  width: 100%;
  border: 1px solid #dce7e3;
  border-radius: 10px;
  outline: 0;
  background: #fbfdfc;
  color: #34584f;
  font-size: 11px;
}

form.review-decision select,
.doc-decision select {
  height: 41px;
  padding: 0 9px;
}

form.review-decision textarea {
  min-height: 100px;
  padding: 10px;
  resize: vertical;
}

.doc-decision {
  display: block;
  padding: 10px;
  border: 1px solid #e4ece9;
  border-radius: 10px;
  background: #f8fbfa;
}

.ticket-side > h2 {
  margin: 0 0 12px;
  color: #31564d;
  font-size: 14px;
}

.ticket-side > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e9efed;
}

.ticket-side > div span {
  color: #849790;
  font-size: 10px;
}

.ticket-side > div strong {
  color: #385b52;
  font-size: 11px;
}

.ticket-side .stack-form {
  margin-top: 13px;
  padding: 0;
}

.ticket-side .stack-form > * {
  margin-right: 0;
  margin-left: 0;
}

.ticket-reply {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.ticket-reply textarea {
  grid-column: 1 / -1;
}

.attachment-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #dce7e3;
  border-radius: 11px;
  background: #fff;
  color: var(--green);
}

.attachment-button input {
  display: none;
}

.timeline-item {
  position: relative;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  min-height: 54px;
}

.timeline-item > span:first-child {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #cbdcd6;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
}

.timeline-item > div strong,
.timeline-item > div small {
  display: block;
}

.timeline-item > div strong {
  color: #385c52;
  font-size: 11px;
}

.timeline-item > div small,
.timeline-item > time {
  color: #8c9e98;
  font-size: 9px;
}

/* Login */
.auth-body {
  background: #fff;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 46%) minmax(0, 1fr);
  background: #fff;
}

.auth-visual {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 54px;
  background: linear-gradient(145deg, #0e765c, #075443);
  color: #fff;
}

.auth-visual::before {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(135deg, #000, transparent 72%);
  content: "";
}

.auth-visual::after {
  position: absolute;
  bottom: -280px;
  left: -230px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
  content: "";
}

.auth-visual > * {
  position: relative;
  z-index: 1;
}

.brand-mark--light strong {
  color: #fff;
}

.brand-mark--light small {
  color: #b5d9cf;
}

.brand-mark--light .brand-symbol {
  background: rgba(255,255,255,.16);
  box-shadow: none;
}

.auth-copy {
  margin: auto 0;
}

.auth-copy > span {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  color: #c7e8df;
  font-size: 10px;
}

.auth-copy h1 {
  margin: 15px 0 8px;
  font-size: clamp(31px, 3.2vw, 48px);
  line-height: 1.45;
  letter-spacing: -1.5px;
}

.auth-copy p {
  max-width: 490px;
  margin: 0;
  color: #c7e2da;
  font-size: 13px;
  line-height: 2;
}

.auth-mini-card {
  display: flex;
  max-width: 370px;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 14px;
  background: rgba(255,255,255,.09);
}

.mini-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,.14);
}

.auth-mini-card strong,
.auth-mini-card small {
  display: block;
}

.auth-mini-card strong {
  font-size: 11px;
}

.auth-mini-card small {
  margin-top: 2px;
  color: #bcddd4;
  font-size: 9px;
}

.auth-card-wrap {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px;
  background: radial-gradient(circle at 70% 20%, #f2faf7, transparent 27rem), #fff;
}

.auth-card {
  width: min(410px, 100%);
}

.auth-card > h2 {
  margin: 6px 0;
  color: #21493f;
  font-size: 25px;
}

.auth-kicker {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.auth-subtitle {
  margin: 0 0 22px;
  color: #78908a;
  font-size: 12px;
}

.auth-form {
  display: grid;
  gap: 13px;
}

.phone-input {
  display: flex;
  height: 47px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dce7e3;
  border-radius: 11px;
  background: #fbfdfc;
}

.phone-input:focus-within {
  border-color: #76c7af;
  box-shadow: 0 0 0 3px rgba(22,163,123,.07);
}

.phone-input b {
  height: 24px;
  padding: 0 11px;
  border-left: 1px solid #dfe8e5;
  color: #78908a;
  direction: ltr;
  font-size: 11px;
}

.phone-input input {
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none !important;
}

.auth-submit {
  width: 100%;
  margin-top: 3px;
}

.auth-terms,
.auth-support {
  color: #8d9d98;
  font-size: 10px;
  text-align: center;
}

.auth-terms {
  margin: 16px 0 0;
}

.auth-support {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
}

.auth-support a,
.auth-links a,
.auth-links button {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

/* Installer */
.install-body {
  min-height: 100vh;
  padding: 34px;
  background: radial-gradient(circle at 15% 10%, #e8f7f1, transparent 30rem), #f4f8f6;
}

.install-shell {
  display: grid;
  width: min(1180px, 100%);
  min-height: calc(100vh - 68px);
  grid-template-columns: 360px minmax(0, 1fr);
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid #dfe9e5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 25px 80px rgba(30, 72, 61, .12);
}

.install-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 34px;
  background: linear-gradient(155deg, #0f765c, #0a5847);
  color: #fff;
}

.install-brand .brand-mark strong {
  color: #fff;
}

.install-brand .brand-mark small {
  color: #b9ddd4;
}

.install-brand .brand-symbol {
  background: rgba(255,255,255,.15);
  box-shadow: none;
}

.install-brand .eyebrow {
  color: #bce2d8;
}

.install-brand h1 {
  margin: 10px 0 7px;
  font-size: 28px;
  line-height: 1.55;
}

.install-brand p {
  margin: 0;
  color: #c6e3db;
  font-size: 12px;
  line-height: 2;
}

.install-features {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.install-features li {
  position: relative;
  padding-right: 23px;
  color: #c8e5dd;
  font-size: 11px;
}

.install-features li::before {
  position: absolute;
  top: 3px;
  right: 0;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  content: "✓";
  font-size: 9px;
}

.install-card {
  padding: 31px 34px 38px;
}

.install-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.install-head span,
.install-head h2 {
  display: block;
  margin: 0;
}

.install-head > div > span {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.install-head h2 {
  margin-top: 2px;
  color: #244d42;
  font-size: 23px;
}

.requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 21px;
}

.requirement {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 9px;
  background: #f1f5f3;
  color: #6f837d;
  font-size: 9px;
}

.requirement i {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  font-style: normal;
}

.requirement.ok {
  background: var(--green-soft);
  color: #19775f;
}

.requirement.ok i {
  background: var(--green);
  color: #fff;
}

.requirement.bad {
  background: var(--red-soft);
  color: #b34f53;
}

.requirement.bad i {
  background: var(--red);
  color: #fff;
}

.install-form {
  display: grid;
  gap: 14px;
}

.install-form h3 {
  margin: 7px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e9efed;
  color: #355a50;
  font-size: 14px;
}

.install-form .check-row {
  padding: 12px;
  border-radius: 11px;
  background: #f5faf8;
}

.install-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
}

/* Printable contract */
.contract-body {
  min-height: 100vh;
  padding: 35px 18px;
  background: #edf2f0;
}

.contract-document {
  width: min(900px, 100%);
  min-height: 1120px;
  margin: 0 auto;
  padding: 48px 54px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(33, 65, 57, .12);
}

.contract-document > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e7eeeb;
}

.contract-document > h1 {
  margin: 34px 0 22px;
  color: #254f43;
  font-size: 25px;
  text-align: center;
}

.contract-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 27px;
  border: 1px solid #dfe8e5;
  border-radius: 12px;
  background: #dfe8e5;
}

.contract-meta > span {
  padding: 12px;
  background: #f8fbfa;
}

.contract-meta small,
.contract-meta strong {
  display: block;
}

.contract-meta small {
  color: #849790;
  font-size: 9px;
}

.contract-meta strong {
  margin-top: 3px;
  color: #35594f;
  font-size: 11px;
}

.contract-document > article {
  color: #465f58;
  font-size: 13px;
  line-height: 2.35;
  text-align: justify;
}

.contract-document > footer {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #dfe8e5;
}

.contract-document > footer > div {
  padding: 12px;
  border-radius: 10px;
  background: #f5f8f7;
}

.contract-document > footer small,
.contract-document > footer strong,
.contract-document > footer code {
  display: block;
}

.contract-document > footer small {
  color: #879991;
  font-size: 9px;
}

.contract-document > footer code,
.contract-document > footer strong {
  overflow-wrap: anywhere;
  margin-top: 4px;
  color: #31564d;
  font-size: 10px;
}

.contract-document > footer p {
  grid-column: 1 / -1;
  margin: 0;
  color: #7b8e88;
  font-size: 10px;
}

@media (max-width: 1020px) {
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column-admin { grid-template-columns: 1fr; }
  .stack-form { padding-bottom: 18px; }
  .report-grid { grid-template-columns: 1fr; }
  .install-body { padding: 18px; }
  .install-shell { min-height: calc(100vh - 36px); grid-template-columns: 310px minmax(0, 1fr); }
  .install-brand { padding: 30px 25px; }
  .install-card { padding: 28px 25px 34px; }
}

@media (max-width: 760px) {
  body { font-size: 12px; }
  .data-table td,
  .data-table td > strong { font-size: 11px; }
  .form-section-head h2 { font-size: 14px; }
  .fields-grid,
  .form-grid,
  .plan-selector,
  .identity-type-grid,
  .identity-contract-grid,
  .kyc-upload-grid,
  .check-grid { grid-template-columns: 1fr; }
  .field.full,
  .form-grid .full { grid-column: auto; }
  .review-block { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .training-hero { min-height: 155px; padding: 21px; }
  .training-hero h2 { font-size: 18px; }
  .training-hero-icon { width: 80px; height: 80px; border-radius: 24px; }
  .ticket-layout { grid-template-columns: 1fr; }
  .ticket-side { display: block; }
  .message-bubble { max-width: 92%; }
  .identity-stepper > a { min-height: 48px; font-size: 0; }
  .identity-stepper > a > span { font-size: 11px; }
  .document-review-row { grid-template-columns: 1fr; }
  .doc-decision { padding-right: 49px; }
  .sms-test-card,
  .cron-card { align-items: stretch; flex-direction: column; }
  .sms-test-card input { width: 100%; }
  .notification-full { grid-template-columns: auto minmax(0, 1fr); }
  .notification-full > form { grid-column: 2; }
  .auth-shell { display: block; }
  .auth-visual { display: none; }
  .auth-card-wrap { min-height: 100vh; padding: 32px 22px 75px; }
  .mobile-login-brand { display: block; width: min(410px, 100%); margin-bottom: 55px; }
  .install-body { padding: 0; }
  .install-shell { display: block; min-height: 100vh; border: 0; border-radius: 0; }
  .install-brand { gap: 25px; padding: 27px 22px; }
  .install-brand > div:nth-child(2),
  .install-features { display: none; }
  .install-card { padding: 24px 20px 34px; }
  .contract-body { padding: 0; background: #fff; }
  .contract-document { min-height: 100vh; padding: 27px 21px; box-shadow: none; }
  .contract-document > header { align-items: flex-start; }
  .contract-document > h1 { margin: 26px 0 18px; font-size: 20px; }
  .contract-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contract-document > footer { grid-template-columns: 1fr; }
  .contract-document > footer p { grid-column: auto; }
  .access-grid { grid-template-columns: 1fr; }
  .repeater-table { overflow-x: auto; }
  .repeater-head,
  .repeater-row { min-width: 650px; }
  .documents-repeater .repeater-head,
  .documents-repeater .repeater-row { min-width: 520px; }
}

@media (max-width: 470px) {
  .inline-otp-form { grid-template-columns: 1fr; }
  .inline-otp-form button { width: 100%; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; gap: 8px; }
  .form-actions > * { width: 100%; justify-content: center; }
  .training-hero-icon { display: none; }
  .training-hero h2 { font-size: 16px; }
  .course-overview { align-items: flex-start; flex-direction: column; }
  .profile-hero { align-items: flex-start; flex-wrap: wrap; }
  .profile-hero > .status-badge { margin-right: 90px; }
  .contract-document > header .brand-mark > div:last-child { display: none; }
  .print-button { min-height: 36px; padding: 0 9px; }
}

@media (max-width: 1180px) {
  .case-hero { grid-template-columns: 1fr; }
  .case-hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-detail-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .case-detail-page .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases-filter { grid-template-columns: minmax(260px, 1.3fr) minmax(160px, .7fr); }
  .cases-filter > button { width: auto; justify-self: end; }
}

@media (max-width: 820px) {
  .case-detail-grid { grid-template-columns: 1fr; }
  .case-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases-filter {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .cases-filter .search-field,
  .cases-filter > select,
  .cases-filter > button {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
  .heading-action { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 560px) {
  .case-hero { padding: 16px; }
  .case-hero-meta,
  .case-side-column { grid-template-columns: 1fr; }
  .case-detail-page .detail-grid { grid-template-columns: 1fr; }
  .case-hero-meta > span { min-height: 66px; }
  .quick-grid a { min-height: 92px; grid-template-columns: 40px minmax(0, 1fr); padding: 13px; }
  .quick-grid a .quick-icon { width: 40px; height: 40px; }
  .quick-grid a strong { font-size: 11px; }
  .quick-grid a small { font-size: 9px; }
  .jalali-date-selects { grid-template-columns: 1fr; }
  .heading-action { align-items: stretch; flex-direction: column; }
  .heading-action > *, .heading-action button, .heading-action a { width: 100%; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  body.contract-body { padding: 0; background: #fff; }
  .contract-document { width: auto; min-height: 0; padding: 0; box-shadow: none; }
  .print-button { display: none !important; }
  .contract-document > article { font-size: 11pt; }
}

/* v1.2.1 installment calculator and horizontal amount slider */
.amount-range-card {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #dce9e5;
  border-radius: 18px;
  background: linear-gradient(135deg, #f3fbf8 0%, #fff 70%);
}

.amount-range-head,
.amount-range-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.amount-range-head span,
.amount-range-head small,
.amount-range-labels {
  color: #7f958e;
  font-size: 10px;
}

.amount-range-head strong {
  margin-top: 5px;
  color: #176f59;
  font-size: 18px;
}

.horizontal-amount-range {
  width: 100%;
  height: 8px;
  margin: 24px 0 15px;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: linear-gradient(to right, #14a77d 0 var(--range-progress, 0%), #dbe7e3 var(--range-progress, 0%) 100%);
  direction: ltr;
  appearance: none;
  -webkit-appearance: none;
  cursor: ew-resize;
}

.horizontal-amount-range::-webkit-slider-thumb {
  width: 25px;
  height: 25px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #149b75;
  box-shadow: 0 3px 12px rgb(20 155 117 / 28%);
  appearance: none;
  -webkit-appearance: none;
}

.horizontal-amount-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #149b75;
  box-shadow: 0 3px 12px rgb(20 155 117 / 28%);
}

.installment-choice-grid { margin-top: 14px; }

.installment-live-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.installment-live-preview > div {
  min-height: 82px;
  padding: 15px;
  border: 1px solid #e1ebe8;
  border-radius: 14px;
  background: #fbfdfc;
}

.installment-live-preview > div.highlight {
  border-color: #acdccc;
  background: #eaf8f3;
}

.installment-live-preview small,
.installment-live-preview strong {
  display: block;
}

.installment-live-preview small { color: #849790; font-size: 9px; }
.installment-live-preview strong { margin-top: 8px; color: #345d52; font-size: 11px; line-height: 1.7; }
.installment-live-preview .highlight strong { color: #087b5b; font-size: 13px; }

.installment-definition-grid {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}

.installment-period-editor,
.installment-admin-preview {
  overflow: hidden;
  border: 1px solid #dfe9e6;
  border-radius: 15px;
  background: #fff;
}

.installment-editor-head,
.installment-editor-row {
  display: grid;
  grid-template-columns: minmax(95px, .65fr) minmax(170px, 1.35fr);
  gap: 10px;
  padding: 10px 12px;
}

.installment-editor-head {
  background: #f1f7f5;
  color: #748a83;
  font-size: 9px;
  font-weight: 700;
}

.installment-editor-row { border-top: 1px solid #e8efed; }
.installment-editor-row input { width: 100%; height: 42px; padding: 0 10px; border: 1px solid #dbe6e2; border-radius: 10px; background: #fbfdfc; color: #294e44; }

.installment-formula-note {
  display: flex;
  gap: 11px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #cfe7df;
  border-radius: 13px;
  background: #f1faf7;
  color: #168362;
}

.installment-formula-note strong,
.installment-formula-note p { display: block; margin: 0; }
.installment-formula-note strong { color: #315c51; font-size: 10px; }
.installment-formula-note p { margin-top: 4px; color: #789088; font-size: 9px; line-height: 1.8; }

.installment-admin-preview .card-header { padding: 14px 15px; border-bottom: 1px solid #e5edeb; }
.installment-admin-preview h3 { margin: 0; color: #31574d; font-size: 12px; }
.installment-admin-preview .card-header p { margin: 5px 0 0; color: #80938d; font-size: 9px; }

.installment-table-scroll {
  max-height: 410px;
  overflow: auto;
}

.installment-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.installment-table th,
.installment-table td {
  padding: 11px 13px;
  border-bottom: 1px solid #e8efed;
  color: #60766f;
  font-size: 9px;
  text-align: right;
}

.installment-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f8f7;
  color: #71857f;
  font-weight: 700;
}

.installment-table td strong { color: #087b5b; }
.plans-grid--detailed { grid-template-columns: minmax(0, 1fr); }
.plan-card--installments { min-width: 0; }
.plan-card--installments .plan-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.plan-installment-details {
  margin: 0 0 15px;
  border: 1px solid #dfeae7;
  border-radius: 13px;
  background: #fbfdfc;
}

.plan-installment-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #286052;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.plan-installment-details summary::-webkit-details-marker { display: none; }
.plan-installment-details[open] summary { border-bottom: 1px solid #e3ece9; }
.plan-installment-details[open] summary svg { transform: rotate(-90deg); }

.installment-period-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 14px 3px;
}

.installment-period-chips span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eaf7f2;
  color: #167d61;
  font-size: 8px;
  font-weight: 700;
}

/* v1.2.2 live KYC camera */
.camera-capture-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid #dce8e4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 78, 67, .04);
}

.camera-capture-card.has-file { border-color: #bfe1d6; }
.camera-capture-card.is-captured { border-color: #71c8ad; box-shadow: 0 0 0 3px rgba(20, 155, 117, .07); }
.camera-capture-card [hidden] { display: none !important; }

.camera-capture-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.camera-capture-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.camera-capture-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border-radius: 13px;
  background: #e9f7f2;
  color: #159775;
}

.camera-capture-head > div { min-width: 0; }
.camera-capture-head strong,
.camera-capture-head p { display: block; margin: 0; }
.camera-capture-head strong { color: #355d52; font-size: 10px; }
.camera-capture-head strong b { color: #d45b62; }
.camera-capture-head p { margin-top: 4px; color: #869a93; font-size: 8px; }

.camera-stage {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 230px;
  place-items: center;
  border: 1px solid #dce7e3;
  border-radius: 14px;
  background: #13231f;
  aspect-ratio: 4 / 3;
}

.camera-stage video,
.camera-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-stage video { transform: scaleX(-1); }
.camera-placeholder {
  display: grid;
  max-width: 210px;
  place-items: center;
  gap: 9px;
  padding: 20px;
  color: #a8c2ba;
  text-align: center;
}

.camera-placeholder svg { color: #4cb193; }
.camera-placeholder span { font-size: 9px; line-height: 1.8; }

.camera-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.camera-controls button { min-height: 38px; padding: 0 12px; }
.camera-controls button > i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.camera-status {
  display: block;
  margin-top: 10px;
  color: #849790;
  font-size: 8px;
  line-height: 1.8;
}

.camera-status.is-ready { color: #128563; font-weight: 700; }
.camera-status.is-error { color: #c64f56; font-weight: 700; }
.camera-status.is-recording { color: #d24f57; font-weight: 800; }
.camera-status.is-recording::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: #d24f57;
  content: '';
  animation: camera-recording-pulse 1s infinite;
}

@keyframes camera-recording-pulse {
  50% { opacity: .25; }
}

.video-script small {
  display: block;
  margin-top: 7px;
  color: #849790;
  font-size: 8px;
}

/* v1.3.0 plan documents, ticket routing and representative reports */
.documents-repeater .repeater-head,
.documents-repeater .repeater-row {
  grid-template-columns: minmax(160px, 1.3fr) minmax(145px, 1fr) 72px 52px;
}

.documents-repeater [data-document-rows] { display: contents; }
.documents-repeater .document-remove { margin: auto; }
.documents-repeater .document-remove:disabled { opacity: .3; cursor: not-allowed; }
.add-document-button { width: max-content; margin: 14px 16px 16px; }
.ticket-expert-field { display: block; max-width: 520px; margin-bottom: 17px; }
.report-range-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.report-range-chips span { min-width: 100px; padding: 8px 10px; border: 1px solid #dfeae6; border-radius: 10px; background: #f8fbfa; color: #3e6258; font-size: 8px; }
.report-range-chips small { display: block; margin-bottom: 2px; color: #8da09a; font-size: 7px; }
.representative-report-card { margin-bottom: 17px; }
.report-count { display: inline-grid; min-width: 30px; min-height: 30px; place-items: center; border-radius: 9px; font-weight: 800; }
.report-count.green { background: var(--green-soft); color: var(--green); }
.report-count.blue { background: var(--blue-soft); color: var(--blue); }
.report-count.violet { background: var(--violet-soft); color: var(--violet); }

@media (max-width: 1050px) {
  .installment-definition-grid { grid-template-columns: 1fr; }
  .installment-live-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-card--installments .plan-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .amount-range-card { padding: 16px 13px; }
  .amount-range-head { align-items: flex-start; flex-direction: column; }
  .amount-range-head strong { font-size: 15px; }
  .amount-range-labels { align-items: flex-start; flex-direction: column; }
  .installment-live-preview { grid-template-columns: 1fr 1fr; }
  .installment-live-preview > div { min-height: 72px; padding: 12px; }
  .plan-card--installments .plan-features { grid-template-columns: 1fr; }
  .installment-editor-head,
  .installment-editor-row { grid-template-columns: 1fr; }
  .camera-stage { min-height: 200px; }
  .camera-controls button { width: 100%; }
  .documents-repeater .repeater-head { display: none; }
  .documents-repeater .repeater-row { grid-template-columns: 1fr 1fr auto auto; }
  .report-range-chips { width: 100%; }
}

/* v1.3.1 invoice deduction and complete responsive pass */
.welcome-action {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
  padding: 0 25px;
  border: 1px solid #118d6b;
  border-radius: 14px;
  background: linear-gradient(135deg, #18ad82, #0d7b5e);
  box-shadow: 0 10px 24px rgba(13, 123, 94, .22);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.welcome-action:hover {
  box-shadow: 0 13px 30px rgba(13, 123, 94, .28);
  transform: translateY(-1px);
}

.installment-live-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.installment-live-preview > .payout-highlight,
.detail-grid > .payout-detail,
.review-block > .review-payout {
  border-color: #8fd2be;
  background: linear-gradient(135deg, #e7f8f2, #f5fcf9);
}

.installment-live-preview .payout-highlight strong,
.detail-grid > .payout-detail strong,
.review-block > .review-payout strong {
  color: #087759;
  font-size: 14px;
}

.installment-live-preview .payout-highlight span,
.review-block > .review-payout span {
  display: block;
  margin-top: 4px;
  color: #61857a;
  font-size: 8px;
}

.deduction-admin-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.deduction-admin-preview > div {
  padding: 14px 16px;
  border: 1px solid #cfe6de;
  border-radius: 13px;
  background: #f3faf7;
}

.deduction-admin-preview small,
.deduction-admin-preview strong {
  display: block;
}

.deduction-admin-preview small {
  color: #7c928a;
  font-size: 9px;
}

.deduction-admin-preview strong {
  margin-top: 5px;
  color: #0d7b5d;
  font-size: 13px;
}

.deduction-feature,
.payout-feature {
  font-weight: 700;
}

.payout-feature {
  color: #0b795b !important;
}

html,
body,
.app-shell,
.app-main,
.content-area,
.page,
.card,
.form-shell,
form,
fieldset {
  min-width: 0;
  max-width: 100%;
}

html,
body {
  overflow-x: hidden;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

.table-scroll,
.installment-table-scroll,
.repeater-table,
.case-summary-tabs,
.review-queue,
.modal-tabs {
  max-width: 100%;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1020px) {
  .app-main {
    width: 100%;
  }

  .sidebar {
    width: min(300px, 88vw);
  }

  .dashboard-grid,
  .lower-grid,
  .report-grid,
  .two-column-admin,
  .ticket-layout,
  .case-detail-grid,
  .installment-definition-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .plans-grid--admin,
  .provider-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    width: 100%;
    height: 64px;
    padding: 0 13px;
  }

  .topbar-right,
  .topbar-actions {
    min-width: 0;
  }

  .content-area {
    width: 100%;
    padding: 17px 13px 32px;
  }

  .page-heading {
    display: flex;
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  .page-heading h1 {
    font-size: 19px;
    line-height: 1.5;
  }

  .page-heading p {
    font-size: 10px;
  }

  .heading-action {
    width: 100%;
    justify-content: stretch;
  }

  .heading-action > *,
  .heading-action a,
  .heading-action button,
  .heading-action form {
    width: 100%;
  }

  .welcome-banner {
    min-height: 0;
    padding: 22px 19px;
  }

  .welcome-copy {
    width: 100%;
    max-width: none;
  }

  .welcome-copy h2 {
    font-size: 18px;
  }

  .welcome-copy p {
    max-width: 100%;
    font-size: 10px;
  }

  .welcome-art {
    display: none;
  }

  .welcome-action {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    font-size: 13px;
  }

  .stats-grid,
  .quick-grid,
  .overview-strip,
  .plans-grid,
  .plans-grid--admin,
  .provider-grid,
  .team-grid,
  .courses-grid,
  .fields-grid,
  .form-grid,
  .plan-selector,
  .selectable-plans,
  .upload-grid,
  .identity-type-grid,
  .identity-contract-grid,
  .kyc-upload-grid,
  .check-grid,
  .report-grid,
  .two-column-admin {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-grid,
  .quick-grid,
  .overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-section {
    padding: 19px 15px;
  }

  .form-section-head {
    align-items: flex-start;
    margin-bottom: 17px;
  }

  .form-section-head > div {
    min-width: 0;
  }

  .form-section-head h2 {
    font-size: 14px;
    line-height: 1.6;
  }

  .form-section-head p {
    font-size: 9px;
  }

  .field.full,
  .form-grid .full {
    grid-column: auto;
  }

  .field input,
  .field select,
  .inline-otp-form input,
  .repeater-row input,
  .repeater-row select {
    min-height: 46px;
    font-size: 12px;
  }

  .field textarea {
    font-size: 12px;
  }

  .plan-select-card {
    min-height: 78px;
    padding: 12px;
  }

  .plan-select-card small {
    overflow-wrap: anywhere;
    font-size: 9px;
  }

  .amount-range-card {
    padding: 17px 14px;
  }

  .amount-range-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .amount-range-labels {
    align-items: center;
    flex-direction: row;
    font-size: 9px;
  }

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

  .installment-live-preview > div {
    min-width: 0;
    min-height: 78px;
    padding: 12px;
  }

  .installment-live-preview strong {
    overflow-wrap: anywhere;
  }

  .case-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 17px;
  }

  .case-hero-meta,
  .case-detail-page .detail-grid,
  .case-side-column {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .detail-section,
  .settlement-summary {
    padding: 15px;
  }

  .detail-section > .card-header {
    margin: -15px -15px 15px;
  }

  .card-header {
    min-width: 0;
    gap: 10px;
    padding: 13px 14px;
  }

  .card-header > * {
    min-width: 0;
  }

  .card-header h2,
  .card-header p {
    overflow-wrap: anywhere;
  }

  .filter-card,
  .cases-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    overflow: visible;
  }

  .filter-card .search-field,
  .cases-filter .search-field,
  .filter-card > label:not(.search-field),
  .filter-card > select,
  .filter-card > button,
  .cases-filter > select,
  .cases-filter > button {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .filter-card > label input,
  .filter-card > label select {
    width: 100%;
    min-width: 0;
  }

  .data-table {
    min-width: 690px;
  }

  .data-table th,
  .data-table td {
    padding: 12px;
  }

  .plan-card--installments .plan-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-admin-meta,
  .conversation-head,
  .profile-hero,
  .review-decision,
  .sms-test-card,
  .cron-card {
    align-items: stretch;
    flex-direction: column;
  }

  .plan-admin-meta .outline-button,
  .review-decision > *,
  .sms-test-card > *,
  .cron-card > * {
    width: 100%;
  }

  .access-card {
    min-width: 0;
  }

  .repeater-table {
    width: 100%;
    overflow-x: auto;
  }

  .repeater-head,
  .repeater-row {
    min-width: 650px;
  }

  .documents-repeater .repeater-head,
  .documents-repeater .repeater-row {
    min-width: 540px;
  }

  .notification-dropdown {
    position: fixed;
    top: 58px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .dropdown {
    max-width: calc(100vw - 20px);
  }

  .camera-stage {
    min-height: 190px;
  }

  .camera-controls button {
    flex: 1 1 145px;
  }

  .messages-list {
    padding: 13px;
  }

  .message-bubble {
    max-width: 94%;
  }

  .deduction-admin-preview {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .stats-grid,
  .quick-grid,
  .overview-strip,
  .installment-live-preview,
  .case-hero-meta,
  .case-side-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-card {
    min-height: 88px;
  }

  .quick-grid a {
    min-height: 82px;
  }

  .stepper {
    gap: 5px;
    padding: 10px 8px;
  }

  .stepper > div {
    justify-content: center;
  }

  .stepper strong,
  .stepper small {
    display: none;
  }

  .stepper > div::after {
    right: calc(100% - 2px);
    width: calc(100% - 35px);
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 8px;
    padding: 12px 15px;
  }

  .form-actions > *,
  .form-actions a,
  .form-actions button {
    width: 100%;
  }

  .case-person {
    align-items: flex-start;
  }

  .case-person > div {
    min-width: 0;
  }

  .case-person h2,
  .case-person p {
    overflow-wrap: anywhere;
  }

  .document-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px;
  }

  .document-row small {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .identity-stepper > a {
    padding: 8px 4px;
    font-size: 0;
  }

  .identity-stepper > a > span {
    font-size: 11px;
  }

  .access-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .final-access {
    justify-self: start;
  }

  .report-range-chips span {
    width: 100%;
  }

  .pagination {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .camera-controls button {
    width: 100%;
    flex-basis: 100%;
  }

  .modal-head,
  .conversation-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .success-page,
  .identity-status-page,
  .identity-result {
    padding: 28px 17px;
  }
}
