@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap");

:root {
  --orange: #ff6b00;
  --orange-dark: #e85f00;
  --orange-soft: #fff1e6;
  --cream: #fff7ef;
  --dark: #2d3340;
  --muted: #667085;
  --line: #f0ded0;
  --white: #ffffff;
  --green: #0f7f70;
  --shadow: 0 20px 50px rgba(20, 20, 20, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--dark);
  background: #fff;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #f1e3d8;
  backdrop-filter: blur(12px);
}

.topbar-inner {
  max-width: 1220px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), #ff9a3c);
  box-shadow: 0 12px 24px rgba(255, 107, 0, .24);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  position: relative;
  color: #5f6674;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0;
}

.nav a.active,
.nav a:hover {
  color: var(--orange);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 4px;
  border-radius: 999px;
  background: var(--orange);
}

.solid-link {
  min-height: 44px;
  padding: 0 20px !important;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: var(--orange);
  box-shadow: 0 12px 26px rgba(255, 107, 0, .26);
}

.ghost-btn {
  border: 0;
  background: transparent;
  color: #5f6674;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.ghost-btn:hover {
  color: var(--orange);
}

.flash {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 700;
}

.flash.success {
  color: #08745f;
  background: #e8fff8;
  border: 1px solid #b9f4e2;
}

.flash.error {
  color: #b42318;
  background: #fff1f0;
  border: 1px solid #ffd0cc;
}

/* BUTTON GLOBAL */

.primary-btn,
.secondary-btn,
.btn-orange,
.btn-white {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  transition: .2s ease;
}

.primary-btn,
.btn-orange {
  color: #fff;
  background: var(--orange);
  border: 0;
  box-shadow: 0 16px 34px rgba(255, 107, 0, .26);
}

.primary-btn:hover,
.btn-orange:hover {
  color: #fff;
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.secondary-btn,
.btn-white {
  color: var(--orange);
  background: #fff;
  border: 1px solid #ffd8bd;
}

.secondary-btn:hover,
.btn-white:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.full {
  width: 100%;
}

/* PAGE SHELL */

.page-shell {
  min-height: calc(100vh - 74px);
  padding: 72px 24px 96px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 107, 0, .14), transparent 28%),
    linear-gradient(180deg, #fff8f2 0%, #f6fbff 100%);
}

.page-inner,
.page-title,
.pricing-grid,
.auth-shell {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-title {
  margin-bottom: 34px;
}

.page-title h1 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
}

.page-title p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.muted {
  color: var(--muted);
}

/* HOME */

.home-hero {
  min-height: calc(100vh - 74px);
  background:
    radial-gradient(circle at 78% 26%, rgba(255, 107, 0, .15), transparent 27%),
    linear-gradient(90deg, #fff 0%, #fff8f2 48%, #ffe0c4 100%);
  border-bottom: 1px solid #f2e2d4;
  overflow: hidden;
}

.home-hero-inner {
  max-width: 1220px;
  min-height: 640px;
  margin: 0 auto;
  padding: 78px 28px 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
}

.home-copy {
  padding-bottom: 78px;
}

.home-kicker {
  margin: 0 0 24px;
  color: #313844;
  font-size: 16px;
  font-weight: 700;
}

.home-title {
  max-width: 760px;
  margin: 0;
  color: #30343d;
  font-size: clamp(40px, 4.8vw, 66px);
  line-height: 1.14;
  letter-spacing: -.035em;
  font-weight: 800;
}

.home-title span {
  display: block;
  color: var(--orange);
}

.home-lead {
  max-width: 670px;
  margin: 24px 0 0;
  color: #5d6675;
  font-size: 21px;
  line-height: 1.7;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.home-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.home-visual::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: 20px;
  bottom: 70px;
  border-radius: 50%;
  background: rgba(255, 107, 0, .15);
}

.dummy-person {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  height: 520px;
  border-radius: 230px 230px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fff, #ffd1a8);
  box-shadow: 0 26px 70px rgba(255, 107, 0, .18);
}

.dummy-head {
  position: absolute;
  top: 58px;
  left: 50%;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #ffd3b4;
}

.dummy-hair-left,
.dummy-hair-right {
  position: absolute;
  top: 70px;
  width: 55px;
  height: 120px;
  background: #2c313a;
  border-radius: 50px;
}

.dummy-hair-left {
  left: 135px;
  transform: rotate(18deg);
}

.dummy-hair-right {
  right: 135px;
  transform: rotate(-18deg);
}

.dummy-body {
  position: absolute;
  left: 50%;
  bottom: -58px;
  width: 270px;
  height: 310px;
  transform: translateX(-50%);
  border-radius: 120px 120px 40px 40px;
  background: linear-gradient(180deg, #ff7a16, #ff6b00);
}

.dummy-hand {
  position: absolute;
  z-index: 4;
  top: 178px;
  left: 92px;
  width: 82px;
  height: 190px;
  border-radius: 80px;
  background: #ffd3b4;
  transform: rotate(-30deg);
}

.dummy-hand::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 30px;
  width: 22px;
  height: 76px;
  border-radius: 99px;
  background: #ffd3b4;
}

.dummy-doc {
  position: absolute;
  z-index: 5;
  right: 42px;
  bottom: 76px;
  width: 160px;
  height: 205px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #667085;
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(135deg, #f8fafc, #cbd5e1);
  box-shadow: -10px 16px 28px rgba(0,0,0,.15);
}

.trusted {
  background: #fffaf6;
  border-bottom: 1px solid #f1e1d4;
}

.trusted-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 28px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
}

.trusted-title {
  color: #333945;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.logo-pill {
  min-height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  color: #4d5664;
  background: #fff;
  border: 1px solid #f0dfd1;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

/* PRICING */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 30px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.price-card.featured {
  border: 2px solid var(--orange);
  box-shadow: 0 26px 70px rgba(255, 107, 0, .18);
}

.price-card.featured::before {
  content: "Direkomendasikan";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.price-card h2 {
  margin: 0 0 18px;
  color: var(--dark);
  font-size: 25px;
}

.price {
  margin: 0;
  color: #101a33;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.02em;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
  display: grid;
  gap: 13px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: #374151;
  font-size: 15px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

/* AUTH */

.auth-shell {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  max-width: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 107, 0, .16), transparent 28%),
    linear-gradient(90deg, #fff7ef 0%, #ffffff 52%, #f6fbff 100%);
}

.auth-visual {
  display: flex;
  align-items: center;
  padding: 70px 28px;
  background: linear-gradient(135deg, #ff7a00, #ff5f00);
  color: #fff;
}

.auth-visual-content {
  max-width: 560px;
  margin: 0 auto;
}

.auth-logo {
  width: 78px;
  height: 78px;
  margin-bottom: 30px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);
  font-size: 27px;
  font-weight: 800;
}

.auth-visual h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.auth-visual p {
  margin: 22px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 19px;
  line-height: 1.75;
}

.auth-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 28px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 36px;
  border-radius: 30px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(20,20,20,.09);
}

.auth-card h1 {
  margin: 0;
  color: var(--dark);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.auth-subtitle {
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.auth-card label {
  display: block;
  margin-bottom: 18px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
}

.auth-card label span {
  display: block;
  margin-bottom: 9px;
}

.auth-card input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid #ead8cb;
  background: #fffaf6;
  color: var(--dark);
  font-size: 15px;
  outline: none;
}

.auth-card input:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, .12);
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .home-hero-inner,
  .trusted-inner,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .home-visual {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .logo-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-visual,
  .auth-form-area {
    padding: 44px 24px;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    padding: 0 18px;
  }

  .nav a:not(.solid-link),
  .nav form {
    display: none;
  }

  .page-shell,
  .home-hero-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-title {
    font-size: 40px;
  }

  .home-lead {
    font-size: 18px;
  }

  .logo-row {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 28px;
    border-radius: 24px;
  }
  
}

/* ADMIN / DASHBOARD APP - WAJIB PALING BAWAH */

.app-shell {
  min-height: calc(100vh - 74px);
  padding: 56px 24px 90px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 107, 0, .13), transparent 28%),
    linear-gradient(180deg, #fff8f2 0%, #f6fbff 100%);
}

.app-shell > .page-title,
.app-shell > .stat-grid,
.app-shell > .panel {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.page-title.compact {
  margin-bottom: 28px;
}

.page-title.compact h1 {
  font-size: clamp(42px, 4vw, 64px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #f0ded0;
  box-shadow: 0 20px 50px rgba(20, 20, 20, .08);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 107, 0, .12);
}

.stat-card span {
  display: block;
  margin-bottom: 10px;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  color: #101a33;
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.04em;
}

.panel {
  margin-top: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #f0ded0;
  box-shadow: 0 20px 50px rgba(20, 20, 20, .08);
  overflow: hidden;
}

.panel-head {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0ded0;
  background: linear-gradient(90deg, #fffaf6, #ffffff);
}

.panel-head h2 {
  margin: 0;
  color: #2d3340;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #f4e6dc;
  font-size: 14px;
  vertical-align: middle;
  white-space: nowrap;
}

.data-table th {
  color: #667085;
  background: #fff7ef;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.data-table td {
  color: #2d3340;
  font-weight: 600;
}

.data-table tbody tr:hover {
  background: #fffaf6;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.badge.success {
  color: #08745f;
  background: #e8fff8;
}

.badge.warning {
  color: #b54708;
  background: #fff4e5;
}

.badge.danger {
  color: #b42318;
  background: #fff1f0;
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    padding: 38px 18px 70px;
  }

  .stat-card strong {
    font-size: 32px;
  }
}

/* FORM PROFIL / ACCOUNT */

.form-grid {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.form-grid label {
  display: block;
  color: #2d3340;
  font-size: 14px;
  font-weight: 900;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 54px;
  margin-top: 9px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid #ead8cb;
  background: #fffaf6;
  color: #2d3340;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}

.form-grid textarea {
  min-height: 120px;
  padding-top: 14px;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: #ff6b00;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, .12);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #98a2b3;
  font-weight: 500;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}

.form-actions .primary-btn {
  min-width: 180px;
}

@media (max-width: 820px) {
  .form-grid {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .primary-btn {
    width: 100%;
  }
}

/* SOP LIST PAGE */

.panel-head.standalone {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 30px 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #f0ded0;
  box-shadow: 0 20px 50px rgba(20, 20, 20, .08);
}

.panel-head.standalone h1 {
  margin: 0;
  color: #2d3340;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -.05em;
}

.panel-head.standalone .eyebrow {
  margin-bottom: 10px;
}

.empty-state {
  padding: 54px 34px;
  text-align: center;
}

.empty-state.small {
  padding: 64px 30px;
}

.empty-state h2 {
  margin: 0;
  color: #2d3340;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.empty-state p {
  max-width: 520px;
  margin: 14px auto 0;
  color: #667085;
  font-size: 16px;
  line-height: 1.7;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.actions a,
.danger-link {
  border: 0;
  background: transparent;
  color: #ff6b00;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.actions a:hover,
.danger-link:hover {
  text-decoration: underline;
}

.actions form {
  margin: 0;
}

.danger-link {
  color: #b42318;
}

@media (max-width: 820px) {
  .panel-head.standalone {
    padding: 24px;
    display: grid;
    gap: 18px;
  }

  .panel-head.standalone .primary-btn {
    width: 100%;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* SOP CREATE / EDIT FORM */

.sop-form {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.sop-form label {
  display: block;
  color: #2d3340;
  font-size: 14px;
  font-weight: 900;
}

.sop-form input,
.sop-form textarea {
  width: 100%;
  margin-top: 9px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #ead8cb;
  background: #fffaf6;
  color: #2d3340;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}

.sop-form input {
  min-height: 54px;
}

.sop-form textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.sop-form input:focus,
.sop-form textarea:focus {
  border-color: #ff6b00;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, .12);
}

.sop-form input::placeholder,
.sop-form textarea::placeholder {
  color: #98a2b3;
  font-weight: 500;
}

.sop-form .full-field {
  grid-column: 1 / -1;
}

.sop-form .form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
}

.sop-form .form-actions .primary-btn {
  min-width: 190px;
}

.admin-actions {
  align-self: end;
  justify-content: flex-start;
}

.editable-table input[type="text"],
.editable-table input[type="number"],
.editable-table input:not([type]) {
  width: 100%;
  min-width: 120px;
  padding: 9px 10px;
  border-radius: 10px;
}

.editable-table input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.tiny-btn {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 9px;
}

/* ADMIN AREA */

.admin-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 18px 48px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
}

.admin-sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
  background: #ffffff;
  border: 1px solid #ead8cb;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(45, 51, 64, .08);
}

.admin-sidebar-title {
  display: grid;
  gap: 5px;
  padding: 8px 8px 16px;
  border-bottom: 1px solid #f0dfd3;
  color: #2d3340;
}

.admin-sidebar-title strong {
  font-size: 18px;
  font-weight: 950;
}

.admin-sidebar-title span {
  color: #667085;
  font-size: 13px;
  line-height: 1.4;
}

.admin-menu {
  display: grid;
  gap: 8px;
  padding-top: 16px;
}

.admin-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #475467;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.admin-menu a:hover,
.admin-menu a.active {
  color: #ffffff;
  background: #ff6b00;
  box-shadow: 0 12px 24px rgba(255, 107, 0, .18);
}

.admin-content {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.stat-card.wide {
  grid-column: span 2;
}

.admin-search {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-search input {
  max-width: 360px;
}

.inline-admin-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 240px;
}

.inline-admin-form input,
.inline-admin-form select {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ead8cb;
  background: #fffaf6;
  color: #2d3340;
  font: inherit;
}

@media (max-width: 820px) {
  .admin-layout {
    grid-template-columns: 1fr;
    padding: 20px 14px 36px;
  }

  .admin-sidebar {
    position: static;
  }

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

  .stat-card.wide {
    grid-column: auto;
  }

  .admin-search {
    display: grid;
  }

  .admin-search input {
    max-width: none;
  }

  .inline-admin-form {
    min-width: 220px;
  }

  .sop-form {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .sop-form .form-actions {
    justify-content: stretch;
  }

  .sop-form .form-actions .primary-btn {
    width: 100%;
  }

  .admin-actions {
    justify-content: stretch;
  }
}

/* WORKSPACE SIDEBAR */

.workspace-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 18px 48px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
}

.workspace-sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
  background: #ffffff;
  border: 1px solid #ead8cb;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(45, 51, 64, .08);
}

.workspace-sidebar-title {
  display: grid;
  gap: 5px;
  padding: 8px 8px 16px;
  border-bottom: 1px solid #f0dfd3;
  color: #2d3340;
}

.workspace-sidebar-title strong {
  font-size: 18px;
  font-weight: 950;
}

.workspace-sidebar-title span {
  color: #667085;
  font-size: 13px;
  line-height: 1.4;
}

.workspace-menu {
  display: grid;
  gap: 8px;
  padding-top: 16px;
}

.workspace-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #475467;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.workspace-menu a:hover,
.workspace-menu a.active {
  color: #ffffff;
  background: #2d3340;
  box-shadow: 0 12px 24px rgba(45, 51, 64, .16);
}

.workspace-content {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.sop-form select {
  width: 100%;
  min-height: 54px;
  margin-top: 9px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #ead8cb;
  background: #fffaf6;
  color: #2d3340;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}

.sop-form select:focus {
  border-color: #ff6b00;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, .12);
}

.field-note {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 820px) {
  .workspace-layout {
    grid-template-columns: 1fr;
    padding: 20px 14px 36px;
  }

  .workspace-sidebar {
    position: static;
  }

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