:root {
  --page: #f6fbf7;
  --panel: #ffffff;
  --ink: #10231d;
  --muted: #587168;
  --line: #d8eadf;
  --soft: #eaf8ef;
  --brand: #12b76a;
  --brand-dark: #053d2f;
  --accent: #10231d;
  --maroon: #12b76a;
  --maroon-dark: #053d2f;
  --maroon-soft: #eaf8ef;
  --brand-pale: #f4fff8;
  --brand-blue-soft: #eaf8ef;
  --danger: #b91c1c;
  --shadow: 0 10px 28px rgba(5, 61, 47, 0.09);
  --deep-shadow: 0 18px 50px rgba(5, 61, 47, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  background-image:
    linear-gradient(135deg, rgba(18, 183, 106, 0.12) 0 18%, transparent 18% 100%),
    linear-gradient(225deg, rgba(255, 213, 79, 0.18) 0 20%, transparent 20% 100%),
    linear-gradient(180deg, #ffffff 0%, #f6fbf7 48%, #e9f8ef 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
}

.admin-app {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.sidebar {
  position: sticky;
  top: 18px;
  display: flex;
  height: calc(100vh - 36px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 61, 47, 0.98), rgba(8, 89, 65, 0.98) 58%, rgba(16, 35, 29, 0.96)),
    var(--maroon-dark);
  box-shadow: var(--deep-shadow);
  color: #fff;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px;
}

.sidebar-brand .brand-logo {
  width: 86px;
  max-width: none;
}

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

.sidebar-brand strong {
  font-size: 18px;
}

.sidebar-brand span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.side-nav {
  display: grid;
  gap: 7px;
  overflow-y: auto;
  padding: 12px;
}

.side-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 9px;
  text-align: left;
}

.side-link b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11px;
}

.side-link:hover,
.side-link.active {
  border-color: rgba(255, 255, 255, 0.16);
  background: #ffffff;
  color: var(--brand-dark);
}

.side-link:hover b,
.side-link.active b {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
}

.workspace {
  min-width: 0;
}

.top-search {
  min-width: min(300px, 36vw);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 13px;
}

.login-shell {
  display: grid;
  place-items: center;
}

.login-card {
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
  border-top: 6px solid var(--brand);
  padding: 24px;
}

.login-grid {
  grid-template-columns: 1fr;
}

.login-error {
  border-radius: 8px;
  background: #fee2e2;
  color: var(--danger);
  font-weight: 700;
  padding: 10px 12px;
}

.demo-logins {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, var(--soft));
  color: #2e2e2e;
  padding: 12px;
  font-size: 14px;
}

.demo-logins p {
  margin-top: 4px;
}

.page {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 5px solid var(--brand);
  background:
    linear-gradient(120deg, rgba(5, 61, 47, 0.98), rgba(8, 89, 65, 0.96) 62%, rgba(16, 35, 29, 0.94)),
    var(--maroon-dark);
  border-radius: 8px;
  box-shadow: var(--deep-shadow);
  color: #fff;
  padding: 18px 20px;
}

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

.brand-logo {
  display: block;
  width: 150px;
  max-width: 42vw;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.login-card .brand-logo {
  width: 180px;
  margin-bottom: 14px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 13px;
  white-space: nowrap;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.subtitle {
  margin-top: 8px;
  color: inherit;
  opacity: 0.78;
  font-size: 16px;
}

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

.topbar + .stats {
  margin-top: -2px;
}

.stat-card,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-card {
  display: flex;
  min-height: 102px;
  align-items: center;
  gap: 14px;
  border: 0;
  border-left: 5px solid var(--brand);
  padding: 18px;
}

.stat-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 800;
}

.stat-label,
.field span,
.meta,
.info-label {
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid rgba(18, 183, 106, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  padding: 10px;
}

.tab {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  color: #2e2e2e;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  text-align: left;
}

.tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: var(--brand);
  color: #fff;
  box-shadow: inset 0 -4px 0 var(--brand);
}

.card {
  padding: 18px;
}

.active-module-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  border-left: 6px solid var(--brand);
  padding-left: 12px;
}

.active-module-title span {
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 900;
}

.active-module-title small {
  color: var(--muted);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 24px;
  overflow: hidden;
  position: relative;
  min-height: 330px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(5, 61, 47, 0.98) 0%, rgba(8, 89, 65, 0.96) 58%, rgba(16, 35, 29, 0.92) 100%),
    var(--maroon-dark);
  box-shadow: var(--deep-shadow);
  color: #fff;
  padding: 34px;
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: auto -80px -90px 28%;
  height: 190px;
  transform: rotate(-7deg);
  background: linear-gradient(90deg, #ffffff, #ffd54f);
  opacity: 0.85;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.45;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}

.hero-kicker {
  width: fit-content;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  padding: 8px 12px;
}

.hero-copy h2 {
  max-width: 760px;
  margin-top: 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.hero-copy p {
  max-width: 660px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-primary {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--brand-dark);
}

.hero-primary:hover {
  background: #ffd54f;
  color: var(--brand-dark);
}

.hero-secondary {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-visual {
  display: grid;
  min-height: 240px;
  align-content: center;
  justify-items: center;
}

.hero-visual img {
  width: min(260px, 100%);
  aspect-ratio: 1;
  border: 8px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.38);
  object-fit: cover;
  transform: rotate(3deg);
}

.hero-metric {
  width: min(220px, 92%);
  margin-top: -24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
  padding: 14px;
  text-align: center;
}

.hero-metric span {
  display: block;
  color: #ffffff;
  font-size: 34px;
  font-weight: 950;
}

.hero-metric small {
  color: #fff;
  font-weight: 800;
}

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

.featured-modules {
  margin-bottom: 18px;
}

.section-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.section-line h2 {
  color: var(--brand-dark);
  font-size: 24px;
}

.section-line p {
  color: var(--muted);
  font-weight: 700;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.all-module-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.module-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  align-content: start;
  border: 1px solid rgba(18, 183, 106, 0.16);
  border-top: 5px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 14px;
  text-align: left;
  box-shadow: var(--shadow);
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(18, 183, 106, 0.18);
}

.module-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.module-card span {
  color: var(--brand-dark);
  font-weight: 900;
}

.module-card small {
  color: var(--muted);
}

.module-card.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: var(--brand);
}

.module-card.active span,
.module-card.active small {
  color: #fff;
}

.module-card.active .module-icon {
  background: #ffffff;
  color: var(--brand-dark);
}

.module-tone-1 {
  background: linear-gradient(145deg, #ffffff 0%, #eaf8ef 100%);
}

.module-tone-2 {
  background: linear-gradient(145deg, #ffffff 0%, #f2fff7 100%);
}

.module-tone-3 {
  background: linear-gradient(145deg, #ffffff 0%, #f7fdf9 100%);
}

.module-tone-4 {
  background: linear-gradient(145deg, #ffffff 0%, #eaf8ef 100%);
}

.module-tone-5 {
  background: linear-gradient(145deg, #ffffff 0%, #f2fff7 100%);
}

.module-tone-6 {
  background: linear-gradient(145deg, #ffffff 0%, #f7fdf9 100%);
}

.mini-alerts {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand-dark);
  padding: 12px;
}

.mini-alerts strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  font-size: 20px;
}

.crm-widget-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr) minmax(260px, 0.85fr);
  gap: 14px;
  margin-bottom: 18px;
}

.crm-widget {
  display: grid;
  gap: 16px;
  overflow: hidden;
  position: relative;
}

.crm-widget::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -54px;
  top: -54px;
  border-radius: 50%;
  background: rgba(18, 183, 106, 0.1);
}

.widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.widget-head h2 {
  font-size: 18px;
}

.widget-head p,
.widget-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-pill {
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.status-pill.dark {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.pipeline-list {
  display: grid;
  gap: 13px;
  position: relative;
  z-index: 1;
}

.pipeline-row {
  display: grid;
  gap: 6px;
}

.pipeline-row div {
  display: flex;
  justify-content: space-between;
  color: #1f1f1f;
  font-size: 13px;
}

.pipeline-row span {
  color: var(--brand-dark);
  font-weight: 900;
}

.pipeline-row i {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1e0e6;
}

.pipeline-row i::before {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}

.target-card {
  align-content: start;
}

.target-ring {
  display: grid;
  width: 160px;
  height: 160px;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--brand) var(--target), #dff3e6 0);
  color: var(--brand-dark);
  position: relative;
  z-index: 1;
}

.target-ring strong,
.target-ring span {
  grid-area: 1 / 1;
}

.target-ring strong {
  align-self: center;
  font-size: 30px;
  font-weight: 950;
  transform: translateY(-9px);
}

.target-ring span {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  transform: translateY(20px);
}

.activity-list {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.activity-list div {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: var(--soft);
  padding: 10px 12px;
}

.activity-list b {
  color: var(--brand-dark);
}

.activity-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

thead {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
}

th,
td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.name-cell {
  font-weight: 800;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: 0;
}

.field input:focus,
.field select:focus,
.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.16);
}

.wide {
  grid-column: 1 / -1;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--brand-dark);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 9px 14px;
}

.button:hover {
  background: linear-gradient(135deg, #0ea85f, #042d23);
}

.button.secondary {
  background: #fff;
  color: var(--brand-dark);
}

.button.secondary:hover {
  background: var(--soft);
}

.whatsapp-button {
  border-color: #25d366;
  background: #25d366;
  color: #052e18;
}

.whatsapp-button:hover {
  background: #1fbd59;
}

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

.list {
  display: grid;
  gap: 12px;
}

.row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login-list {
  display: grid;
  gap: 12px;
}

.credential-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) minmax(180px, 240px);
  align-items: end;
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
}

.compact-field input {
  height: 38px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
}

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

.course-form-card {
  margin-bottom: 14px;
}

.course-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.course-form-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(160px, 220px);
}

.receipt-control-card {
  margin-bottom: 14px;
}

.receipt-size-field {
  min-width: 190px;
}

.receipt-list {
  display: grid;
  gap: 10px;
}

.receipt-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.upload-card {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.upload-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.upload-button {
  width: fit-content;
}

.upload-format {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.print-only {
  display: none;
}

.receipt-paper {
  color: #111;
  font-family: Arial, sans-serif;
}

.receipt-border {
  border: 2px solid #111;
  padding: 12mm;
}

.receipt-head {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid #111;
  padding-bottom: 12px;
}

.receipt-head .brand-logo {
  width: 120px;
  max-width: none;
  padding: 0;
}

.receipt-head h1 {
  color: #111;
  font-size: 28px;
}

.receipt-head p {
  margin-top: 3px;
  color: #333;
}

.receipt-head strong {
  display: inline-block;
  margin-top: 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 6px 12px;
}

.receipt-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid #bbb;
  padding: 12px 0;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.receipt-grid p {
  display: grid;
  gap: 4px;
  border: 1px solid #ddd;
  padding: 9px;
}

.receipt-grid b {
  font-size: 11px;
  text-transform: uppercase;
}

.receipt-table {
  min-width: 0;
  margin-top: 12px;
}

.receipt-table th,
.receipt-table td {
  border: 1px solid #333;
  padding: 10px;
}

.receipt-note {
  margin-top: 14px;
  border: 1px dashed #777;
  padding: 10px;
  text-align: center;
}

.receipt-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28mm;
}

.receipt-signatures span {
  border-top: 1px solid #111;
  padding-top: 8px;
  text-align: center;
}

.receipt-paper.a5 .receipt-border {
  padding: 8mm;
}

.receipt-paper.a5 .receipt-head h1 {
  font-size: 22px;
}

.receipt-paper.a5 .receipt-head .brand-logo {
  width: 90px;
}

.receipt-paper.a5 .receipt-meta,
.receipt-paper.a5 .receipt-grid {
  grid-template-columns: 1fr;
}

.receipt-paper.a5 .receipt-signatures {
  margin-top: 16mm;
}

.course-row,
.reminder {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
}

.course-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  margin-bottom: 14px;
  font-size: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

.reminder-head,
.report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.report-card {
  display: grid;
  gap: 13px;
}

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

.info-box {
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.info-value {
  margin-top: 4px;
  font-weight: 800;
}

.remarks {
  border-radius: 8px;
  background: var(--soft);
  color: #333333;
  padding: 12px;
  font-size: 14px;
}

.syllabus-card {
  margin-top: 14px;
}

.syllabus-list {
  display: grid;
  gap: 10px;
}

.syllabus-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.syllabus-item span {
  min-width: 72px;
  border-radius: 999px;
  background: var(--brand-blue-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  text-align: center;
}

.syllabus-item.done {
  border-color: var(--line);
  background: var(--brand-pale);
}

.syllabus-item.done span {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
}

.empty {
  color: var(--muted);
}

@media (max-width: 900px) {
  .admin-app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 320px;
  }

  .stats,
  .dashboard-stat-strip,
  .crm-widget-grid,
  .split-grid,
  .report-grid,
  .credential-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .hero-visual {
    min-height: 190px;
  }

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

@media (max-width: 640px) {
  .app-shell {
    padding: 16px;
  }

  .admin-app {
    padding: 12px;
  }

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

  .top-search {
    min-width: 0;
    width: 100%;
  }

  .topbar,
  .brand-heading,
  .admin-actions,
  .row-card,
  .course-row {
    align-items: stretch;
    flex-direction: column;
  }

  .stats,
  .dashboard-stat-strip,
  .crm-widget-grid,
  .form-grid,
  .split-grid,
  .report-grid,
  .info-grid,
  .credential-row,
  .course-form-grid {
    grid-template-columns: 1fr;
  }

  .course-form-head {
    flex-direction: column;
  }

  .dashboard-hero {
    min-height: auto;
    padding: 22px;
  }

  .dashboard-hero::before {
    inset: auto -100px -120px 10%;
  }

  .hero-copy h2 {
    font-size: 36px;
  }

  .hero-visual img {
    width: 190px;
  }

  .section-line,
  .active-module-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media print {
  body {
    background: #ffffff !important;
  }

  body * {
    visibility: hidden !important;
  }

  .print-only,
  .print-only * {
    visibility: visible !important;
  }

  .print-only {
    display: block !important;
    position: absolute;
    inset: 0;
    margin: 0 auto;
    padding: 0;
  }

  .receipt-paper.a4 {
    width: 186mm;
    min-height: 270mm;
  }

  .receipt-paper.a5 {
    width: 128mm;
    min-height: 185mm;
    font-size: 12px;
  }

  .receipt-border {
    min-height: inherit;
  }

  .receipt-table thead {
    background: #111111 !important;
    color: #ffffff !important;
  }
}
