/* ==========================================================================
   IKD BVOCS — STYLE.CSS
   Referensi: KID Jatim (Basis V1: oranye #f46d22, navy #192a44, bg #f6f8fb,
   line #e8edf4, muted #718096, radius 17px, font Inter 14px,
   sidebar 264px, topbar 77px, main max 1560px)
   ========================================================================== */

:root {
  --orange: #f46d22;
  --orange-soft: #fff0e6;
  --orange-dark: #ca490d;
  --navy: #192a44;
  --muted: #718096;
  --bg: #f6f8fb;
  --line: #e8edf4;
  --card: #ffffff;
  --radius: 17px;
  --shadow: 0 10px 35px rgba(24, 46, 73, 0.045);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #253349;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, background .18s, transform .18s, filter .18s;
}

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #ffb878;
  outline-offset: 2px;
}

a {
  color: var(--orange-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   PIN GATE (BEKA-BVOCS STYLE)
   ========================================================================== */

#pin-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0b1530;
  position: relative;
  overflow: hidden;
}

#pin-gate::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 480px at 15% 10%, rgba(244, 109, 34, 0.22), transparent 60%),
              radial-gradient(800px 460px at 90% 90%, rgba(25, 42, 68, 0.55), transparent 60%);
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.auth-product {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffa000, #f46d22);
  color: #ffffff;
  font-weight: 900;
  font-size: 19px;
  display: grid;
  place-items: center;
  letter-spacing: -0.05em;
  box-shadow: 0 8px 20px rgba(244, 109, 34, 0.28);
}

.auth-card h1 {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 6px;
}

.auth-card p.sub {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 24px;
  line-height: 1.5;
}

.auth-card .field {
  width: 100%;
  text-align: center;
  font-size: 20px;
  letter-spacing: 0.35em;
  font-weight: 700;
  height: 46px;
  border-radius: 11px;
  margin-bottom: 14px;
}

/* ==========================================================================
   APP SHELL LAYOUT (KID IDENTIK)
   ========================================================================== */

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid var(--line);
  width: 264px;
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 3px 10px 24px;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.logo {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: linear-gradient(140deg, #ffaf6a, var(--orange));
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 7px 15px rgba(240, 109, 31, 0.24);
  font-size: 14px;
  letter-spacing: -0.06em;
}

.kid-sidebar-close {
  display: none;
  margin-left: auto;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #ffffff;
  color: #172943;
  font-size: 20px;
  line-height: 1;
}

.menu-caption {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 800;
  color: #9da9b8;
  margin: 15px 13px 9px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav button {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  color: #627086;
  border: 0;
  border-radius: 11px;
  padding: 0 13px;
  font-weight: 650;
  font-size: 13px;
  width: 100%;
}

.nav button:hover {
  background: #f7f9fb;
}

.nav button.active {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.nav .ico {
  width: 20px;
  text-align: center;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.nav .chip {
  margin-left: auto;
  background: #ffe2ce;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 750;
  padding: 2px 7px;
  color: #b8450e;
}

.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 15px 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: grid;
  place-items: center;
  color: #ab440b;
  background: #ffebdc;
  min-width: 35px;
  height: 35px;
  border-radius: 11px;
  font-weight: 850;
  font-size: 13px;
}

.who {
  overflow: hidden;
  min-width: 0;
}

.who b {
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--navy);
}

.who span {
  font-size: 10px;
  color: var(--muted);
}

.sidebar-foot button#btn-logout {
  margin-left: auto;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #718096;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.sidebar-foot button#btn-logout:hover {
  background: #fff1f1;
  color: #bd4350;
  border-color: #ffd7d7;
}

.sidebar-mask {
  display: none;
}

/* ==========================================================================
   WORKSPACE & TOPBAR
   ========================================================================== */

.workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 77px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 15;
}

.kid-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid #e7ebf4;
  border-radius: 10px;
  background: #ffffff;
  color: #30435e;
}

.crumb {
  font-size: 12px;
  color: #99a4b4;
  margin-bottom: 2px;
}

.topbar h1 {
  font-size: 19px;
  line-height: 1.3;
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.025em;
  font-weight: 850;
}

.top-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.top-label {
  padding: 7px 12px;
  background: #f4f7fb;
  border: 1px solid #e7ecf5;
  color: #60718a;
  border-radius: 10px;
  font-weight: 650;
  font-size: 11px;
}

.top-action {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 10px;
  min-width: 37px;
  height: 37px;
  font-size: 16px;
  color: #718096;
  display: grid;
  place-items: center;
}

.top-action:hover {
  background: #f8fafc;
  color: var(--navy);
}

.main {
  max-width: 1560px;
  margin: 0 auto;
  padding: 30px 34px 58px;
  width: 100%;
  flex: 1;
}

.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 21px;
}

.heading h2 {
  font-size: 22px;
  letter-spacing: -0.038em;
  color: var(--navy);
  margin: 0;
  font-weight: 850;
}

.heading p {
  margin: 4px 0 0;
  color: #8794a4;
  font-size: 12px;
}

/* ==========================================================================
   BUTTONS & FORM FIELDS
   ========================================================================== */

.btn {
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 750;
  font-size: 12px;
  color: #39465b;
  background: #ffffff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:hover {
  filter: brightness(0.98);
}

.btn.primary {
  background: linear-gradient(120deg, #fc7d32, #f36319);
  color: #ffffff;
  border-color: #f36319;
  box-shadow: 0 8px 16px rgba(247, 105, 34, 0.15);
}

.btn.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.btn.soft {
  color: var(--orange-dark);
  background: #fff1e8;
  border-color: #ffd9c1;
}

.btn.soft:hover {
  background: #ffe6d6;
}

.btn.danger {
  color: #bd4350;
  background: #fff1f1;
  border-color: #ffd7d7;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.field, .search, .select {
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  background: #ffffff;
  outline: 0;
  height: 39px;
  padding: 0 12px;
  color: #3b4b60;
  min-width: 0;
}

.field:focus, .search:focus, .select:focus, textarea:focus {
  border-color: #f9a974;
  box-shadow: 0 0 0 3px #fff0e6;
}

.field.block, .select.block {
  width: 100%;
}

.field-label {
  font-size: 11px;
  font-weight: 750;
  color: #5c6b7e;
  display: block;
  margin-bottom: 6px;
}

/* ==========================================================================
   STAT CARDS
   ========================================================================== */

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

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 19px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat-icon {
  width: 37px;
  height: 37px;
  border-radius: 12px;
  background: #fff0e5;
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.stat-icon.green {
  background: #e7f9ef;
  color: #25885b;
}

.stat-icon.blue {
  background: #e7f1ff;
  color: #3478c5;
}

.stat-icon.warn {
  background: #fff2dc;
  color: #ad7528;
}

.stat .num {
  display: block;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.06em;
  font-weight: 850;
  color: var(--navy);
}

.stat .label {
  display: block;
  margin-top: 5px;
  color: #8290a3;
  font-size: 12px;
}

.stat .micro {
  display: block;
  margin-top: 12px;
  color: #a6afbb;
  font-size: 10px;
}

.stat .micro strong {
  color: #3eae7d;
}

/* ==========================================================================
   PANEL & TOOLBAR
   ========================================================================== */

.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
  margin-bottom: 24px;
}

.panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid #eef1f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-head h3 {
  margin: 0;
  font-size: 14px;
  color: var(--navy);
  font-weight: 800;
}

.panel-head small {
  color: #97a3b2;
  font-size: 11px;
}

.panel-body {
  padding: 19px 22px;
}

.toolbar {
  padding: 17px 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid #f0f2f6;
}

.notice {
  padding: 14px 16px;
  background: #fff6ec;
  border: 1px solid #ffdec6;
  border-radius: 12px;
  color: #955019;
  font-size: 12px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.notice b {
  color: #8d400b;
}

/* ==========================================================================
   DATA TABLE & PILLS
   ========================================================================== */

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

.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}

.data-table th {
  color: #8996a7;
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  background: #fafbfe;
  padding: 13px 17px;
  white-space: nowrap;
  border-bottom: 1px solid #ecf0f4;
}

.data-table td {
  padding: 12px 17px;
  border-top: 1px solid #f0f2f6;
  vertical-align: middle;
  min-width: 0;
}

.data-table tr:hover td {
  background: #fffaf7;
}

.data-table tr.row-pending {
  background: #fffcfa;
}

.data-table tr.row-pending:hover td {
  background: #fff3ea;
}

.data-table tr.row-done td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.data-table tr.row-done .cell-name {
  color: #5b6b7c;
}

.cell-name {
  color: var(--navy);
  font-size: 12px;
  font-weight: 780;
}

.cell-sub {
  display: block;
  font-size: 10px;
  color: #a1acb8;
  margin-top: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 30px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  background: #f2f5f9;
  color: #708094;
}

.pill.orange {
  background: #ffeddf;
  color: #c45111;
}

.pill.green {
  background: #e7f9ef;
  color: #25885b;
}

.pill.blue {
  background: #e7f1ff;
  color: #3478c5;
}

.pill.warn {
  background: #fff2dc;
  color: #ad7528;
}

.pill.red {
  background: #ffedef;
  color: #c85a66;
}

.pill.gray {
  background: #f1f4f7;
  color: #7d8ba0;
}

/* Thumbnail in Table */
.thumb-box {
  width: 42px;
  height: 63px;
  border-radius: 6px;
  border: 1px solid #e2e8f1;
  background: #ffffff;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}

.thumb-box:hover {
  transform: scale(1.06);
  border-color: var(--orange);
}

.thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-box.no-photo {
  background: #f8fafc;
  color: #a0aec0;
  font-size: 9px;
  font-weight: 700;
  cursor: default;
}

.thumb-box.no-photo:hover {
  transform: none;
  border-color: #e2e8f1;
}

/* ==========================================================================
   STEPPER COMPONENT
   ========================================================================== */

.stepper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.step-pill {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  background: #fbfcfe;
  font-size: 11px;
  color: #8391a1;
  font-weight: 750;
}

.step-pill .n {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: #f2f5f9;
  color: #708094;
}

.step-pill.active {
  border-color: #ffd9c1;
  background: #fff1e8;
  color: #b8450e;
}

.step-pill.active .n {
  background: #ffeddf;
  color: #c45111;
}

.step-pill.done {
  border-color: #cfe8d9;
  background: #f1fbf5;
  color: #16784c;
}

.step-pill.done .n {
  background: #e7f9ef;
  color: #25885b;
}

/* ==========================================================================
   DROPZONE COMPONENT
   ========================================================================== */

.file-drop {
  display: block;
  border: 2px dashed #ffcfad;
  background: #fffaf7;
  padding: 26px 20px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: background .18s, border-color .18s;
  margin: 14px 0;
}

.file-drop:hover {
  background: #fff3ea;
  border-color: var(--orange);
}

.file-drop.drop-active {
  border-color: #f46d22;
  background: #fff0e6;
}

.file-drop.has-file {
  border-color: #3eae7d;
  background: #f2fbf6;
}

.file-drop input {
  display: none;
}

.file-drop .dz-hint {
  margin-top: 8px;
  display: block;
  font-size: 11px;
  color: #8a98a9;
}

/* ==========================================================================
   CROP STAGE & CANVAS (4x6 RASIO 2:3)
   ========================================================================== */

.crop-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f1;
  border-radius: 16px;
  width: min(560px, 100%);
  height: 420px;
  margin: 0 auto;
  touch-action: none;
  background-color: #ffffff;
  background-image: linear-gradient(45deg, #d5d9df 25%, transparent 25%),
                    linear-gradient(-45deg, #d5d9df 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #d5d9df 75%),
                    linear-gradient(-45deg, transparent 75%, #d5d9df 75%);
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
  cursor: grab;
  user-select: none;
}

.crop-stage.dragging {
  cursor: grabbing;
}

.crop-stage canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.crop-window {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 330px; /* 2:3 ratio */
  transform: translate(-50%, -50%);
  border: 2px solid var(--orange);
  box-shadow: 0 0 0 9999px rgba(23, 41, 66, 0.48);
  pointer-events: none;
  border-radius: 4px;
}

.crop-window::after {
  content: "4 x 6 (2:3)";
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(244, 109, 34, 0.85);
  padding: 2px 6px;
  border-radius: 4px;
}

.crop-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.crop-controls input[type=range] {
  flex: 1;
  min-width: 140px;
  accent-color: #f46d22;
  height: 24px;
  cursor: pointer;
}

.crop-controls .zoom-val {
  font-size: 11px;
  color: #5c6b7e;
  min-width: 45px;
  text-align: right;
  font-weight: 700;
}

.crop-hint {
  font-size: 11px;
  color: #57677e;
  margin-top: 9px;
  line-height: 1.6;
  text-align: center;
}

/* ==========================================================================
   REVIEW & PERBAIKI COMPARISON
   ========================================================================== */

.review-card {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid var(--line);
  align-items: center;
}

.photo-preview {
  height: 180px;
  width: 120px;
  object-fit: cover;
  border-radius: 10px;
  background: #f6f8fc;
  border: 1px dashed #e1e7ef;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 14px;
}

.compare-col {
  text-align: center;
}

.compare-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin: 0 0 8px;
  font-weight: 800;
}

.compare-box {
  width: 160px;
  height: 240px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid #dce4ee;
  overflow: hidden;
  background: #ffffff;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 4px 14px rgba(24, 46, 73, 0.06);
}

.compare-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-box.checkerboard {
  background-image: linear-gradient(45deg, #d5d9df 25%, transparent 25%),
                    linear-gradient(-45deg, #d5d9df 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #d5d9df 75%),
                    linear-gradient(-45deg, transparent 75%, #d5d9df 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 40, 66, 0.65);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.modal {
  width: min(680px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 19px;
  box-shadow: 0 20px 90px rgba(23, 41, 67, 0.35);
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modal-header h3 {
  margin: 0 0 3px;
  color: #182a43;
  font-size: 16px;
  font-weight: 850;
}

.modal-header .tiny {
  font-size: 11px;
  color: var(--muted);
}

.modal-body {
  padding: 22px 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.x {
  border: 0;
  background: #f6f8fa;
  color: #617082;
  font-size: 22px;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.x:hover {
  background: #eef2f6;
  color: var(--navy);
}

.toast-host {
  position: fixed;
  right: 21px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #172942;
  color: #ffffff;
  padding: 13px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(23, 41, 66, 0.25);
  max-width: min(420px, calc(100vw - 40px));
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast.good {
  background: #16784c;
}

.toast.bad {
  background: #a13432;
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */

.kid-global-footer {
  border-top: 1px solid #e9eef5;
  text-align: center;
  padding: 14px 22px 17px;
  font-size: 11px;
  line-height: 1.5;
  color: #8291a7;
  background: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS 1250px, 900px, 560px)
   ========================================================================== */

@media (max-width: 1250px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-110%);
    transition: transform 0.2s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-mask.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 34, 61, 0.5);
    z-index: 18;
  }
  .kid-sidebar-close {
    display: grid;
    place-items: center;
  }
  .kid-menu-toggle {
    display: inline-flex;
  }
  .topbar {
    padding: 0 19px;
  }
  .main {
    padding: 22px 18px 55px;
  }
  .top-label {
    display: none;
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .stat {
    padding: 14px;
  }
  .stat .num {
    font-size: 21px;
  }
  .stat-icon {
    margin-bottom: 10px;
  }
  .main {
    padding: 16px 13px 50px;
  }
  .topbar {
    height: 65px;
    padding: 0 13px;
  }
  .topbar h1 {
    font-size: 16px;
  }
  .heading h2 {
    font-size: 19px;
  }
  .toolbar {
    padding: 12px;
  }
  .search {
    width: 100%;
    min-width: 0;
  }
  .review-card {
    grid-template-columns: 1fr;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal-header, .modal-body, .modal-footer {
    padding: 14px 16px;
  }
  .crop-stage {
    height: 350px;
  }
  .crop-window {
    width: 180px;
    height: 270px;
  }
}

/* Helper Action & Table Classes */
.inline-hasil {
  font-size: 11px;
}
.inline-catatan {
  font-size: 11px;
}
.btn-save-catatan {
  cursor: pointer;
}
.btn-quick-kumpulkan {
  cursor: pointer;
}
.btn-quick-perbaiki {
  cursor: pointer;
}


/* ==========================================================================
   Hasil cek otomatis setengah badan (foto)
   Lolos = hijau, Perlu diperiksa = kuning, Ditolak = merah
   ========================================================================== */
.cek-foto {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}
.cek-foto.hidden { display: none; }
.cek-foto .cek-judul {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}
.cek-foto.lolos {
  background: #eaf7ee;
  border-color: #b7e0c4;
  color: #1c6b39;
}
.cek-foto.ragu {
  background: #fdf6e3;
  border-color: #ecd9a4;
  color: #8a5b00;
}
.cek-foto.tolak {
  background: #fdecec;
  border-color: #f0bcbc;
  color: #9b1c1c;
}
.cek-foto.memeriksa { color: var(--navy); }
.cek-foto .cek-tambahan {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  opacity: .9;
}
