/* ==========================================================================
   Kelola Kontenku — Creator Job Tracker
   Palet: Cream + Pink + Plum, aksen Gold & Sage
   ========================================================================== */

:root {
  /* Neutrals — cream family */
  --cream-50:  #FFFCF9;
  --cream-100: #FDF7F0;
  --cream-200: #F8EDE2;
  --cream-300: #F0DECE;

  /* Primary — pink family */
  --pink-50:  #FEF2F7;
  --pink-100: #FBE0EB;
  --pink-200: #F6C3D8;
  --pink-400: #EC8CB4;
  --pink-500: #E0679B;
  --pink-600: #C9497F;

  /* Ink — plum family */
  --plum-900: #38252E;
  --plum-700: #5A4550;
  --plum-500: #8A7580;

  /* Accents */
  --gold-100: #FBF0DC;
  --gold-500: #C99A3C;
  --sage-100: #E3F1EA;
  --sage-500: #4E9877;
  --rose-100: #FDE6E3;
  --rose-500: #D4614C;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(56, 37, 46, .05);
  --shadow:    0 6px 20px -8px rgba(56, 37, 46, .14);
  --shadow-lg: 0 24px 48px -20px rgba(56, 37, 46, .28);

  --sidebar-w: 264px;
  --ring: 0 0 0 4px rgba(224, 103, 155, .18);
}

* { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--cream-100);
  color: var(--plum-900);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* Latar dekoratif lembut */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(246, 195, 216, .38), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(251, 240, 220, .55), transparent 60%);
  pointer-events: none;
}

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.015em; }

::selection { background: var(--pink-200); color: var(--plum-900); }

/* ============================= SIDEBAR ============================= */
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--cream-300);
  display: flex;
  flex-direction: column;
  z-index: 1040;
}

.sidebar-head {
  padding: 22px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-400) 55%, var(--gold-500));
  color: #fff;
  font-size: 19px;
  box-shadow: 0 8px 18px -8px rgba(201, 73, 127, .8);
}

.brand-text strong { display: block; font-size: 15px; line-height: 1.2; }
.brand-text small  { color: var(--plum-500); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }

.sidebar-nav { padding: 8px 14px; flex: 1; overflow-y: auto; }

.nav-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--plum-500);
  margin: 12px 8px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 3px;
  border-radius: var(--radius-sm);
  color: var(--plum-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-item i { font-size: 16px; opacity: .85; width: 18px; }
.nav-item:hover { background: var(--cream-100); color: var(--plum-900); }
.nav-item.active {
  background: linear-gradient(100deg, var(--pink-50), var(--cream-100));
  color: var(--pink-600);
  box-shadow: inset 3px 0 0 var(--pink-500);
}
.nav-item.active i { opacity: 1; }
.nav-item.text-danger-soft:hover { background: var(--rose-100); color: var(--rose-500); }

.nav-count {
  margin-left: auto;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--cream-200);
  color: var(--plum-700);
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 26px;
  text-align: center;
}
.nav-item.active .nav-count { background: var(--pink-500); color: #fff; }

.sidebar-foot { padding: 14px; }

.tip-card {
  background: linear-gradient(140deg, var(--gold-100), var(--cream-200));
  border: 1px solid var(--cream-300);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 10px;
}
.tip-card i { color: var(--gold-500); font-size: 17px; }
.tip-card p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--plum-700); }

/* ============================== MAIN ============================== */
.app-main { margin-left: var(--sidebar-w); min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: rgba(253, 247, 240, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-300);
  flex-wrap: wrap;
}

.topbar-title { flex: 1; min-width: 180px; }
.topbar-title h1 { font-size: 21px; margin: 0; }
.topbar-title p  { margin: 2px 0 0; font-size: 13px; color: var(--plum-500); }

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

.btn-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--cream-300);
  background: #fff;
  color: var(--plum-900);
  display: grid; place-items: center;
  font-size: 19px;
  padding: 0;
}

.search-box { position: relative; }
.search-box i {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--plum-500);
  font-size: 14px;
  pointer-events: none;
}
.search-box .form-control {
  padding-left: 38px;
  width: 260px;
  border-radius: 12px;
}
.search-box .form-control::-webkit-search-cancel-button { cursor: pointer; }

.app-content { padding: 26px 28px 40px; }

/* ============================ STAT CARDS ============================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.stat-icon {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 19px;
}
.ic-pink  { background: var(--pink-100);  color: var(--pink-600); }
.ic-amber { background: var(--gold-100);  color: var(--gold-500); }
.ic-rose  { background: var(--rose-100);  color: var(--rose-500); }
.ic-sage  { background: var(--sage-100);  color: var(--sage-500); }

.stat-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--plum-500);
  letter-spacing: .02em;
}
.stat-value { margin: 2px 0 1px; font-size: 24px; line-height: 1.15; word-break: break-word; }
.stat-hint  { font-size: 11.5px; color: var(--plum-500); }

/* ============================== PANEL ============================== */
.panel {
  background: #fff;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--cream-200);
  flex-wrap: wrap;
}

.filter-group { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.filter-group .form-select {
  width: auto;
  min-width: 160px;
  flex: 1 1 160px;
  max-width: 220px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 11px;
}

.result-info {
  margin: 0;
  padding: 12px 18px 0;
  font-size: 12.5px;
  color: var(--plum-500);
  font-weight: 600;
}

/* ============================== TABLE ============================== */
.table-wrap { padding: 8px 8px 14px; overflow-x: auto; }

.job-table { --bs-table-bg: transparent; }

.job-table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--plum-500);
  border-bottom: 1px solid var(--cream-200);
  padding: 12px 14px;
  white-space: nowrap;
}

.job-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--cream-100);
  vertical-align: middle;
}
.job-table tbody tr { transition: background .16s ease; }
.job-table tbody tr:hover { background: var(--cream-50); }
.job-table tbody tr:last-child td { border-bottom: 0; }

.brand-cell { display: flex; align-items: center; gap: 12px; min-width: 190px; }

.brand-avatar {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  letter-spacing: -.02em;
}

.brand-name { font-weight: 700; line-height: 1.25; }
.brand-meta { font-size: 12px; color: var(--plum-500); }

.money { font-weight: 700; font-variant-numeric: tabular-nums; }
.money-sub { font-size: 11.5px; color: var(--plum-500); font-weight: 500; }

.deadline-date { font-weight: 700; font-variant-numeric: tabular-nums; }
.deadline-note { font-size: 11.5px; font-weight: 600; }
.dl-late  { color: var(--rose-500); }
.dl-soon  { color: var(--gold-500); }
.dl-ok    { color: var(--plum-500); }
.dl-done  { color: var(--sage-500); }

/* ============================== BADGES ============================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid transparent;
}
.chip i { font-size: 12px; }

.chip-paid    { background: var(--pink-50);  color: var(--pink-600);  border-color: var(--pink-100); }
.chip-barter  { background: var(--gold-100); color: var(--gold-500);  border-color: #F1E2C4; }
.chip-belum   { background: var(--cream-200);color: var(--plum-700);  border-color: var(--cream-300); }
.chip-proses  { background: #E7EEFB;         color: #3D6CC4;          border-color: #D5E1F7; }
.chip-review  { background: var(--gold-100); color: var(--gold-500);  border-color: #F1E2C4; }
.chip-selesai { background: var(--sage-100); color: var(--sage-500);  border-color: #CFE7DA; }
.chip-unpaid  { background: var(--rose-100); color: var(--rose-500);  border-color: #F8D6D0; }
.chip-paidok  { background: var(--sage-100); color: var(--sage-500);  border-color: #CFE7DA; }

/* ============================== ACTIONS ============================== */
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

.btn-act {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--cream-300);
  background: #fff;
  color: var(--plum-700);
  display: grid; place-items: center;
  font-size: 14px;
  padding: 0;
  transition: all .16s ease;
}
.btn-act:hover { background: var(--pink-50); border-color: var(--pink-200); color: var(--pink-600); }
.btn-act.act-del:hover { background: var(--rose-100); border-color: #F5C8C0; color: var(--rose-500); }
.btn-act.act-done:hover { background: var(--sage-100); border-color: #CFE7DA; color: var(--sage-500); }

/* ============================== CARDS (mobile) ============================== */
.job-cards { padding: 14px; display: grid; gap: 12px; }

.job-card {
  border: 1px solid var(--cream-300);
  border-radius: var(--radius);
  padding: 15px;
  background: var(--cream-50);
}

.job-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.job-card-top .brand-name { font-size: 15px; }

.job-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--cream-300);
}
.job-card-grid .k {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--plum-500);
  margin-bottom: 5px;
}

.job-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--cream-300);
}

.job-note {
  font-size: 12.5px;
  color: var(--plum-700);
  background: var(--cream-100);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  margin-top: 12px;
  line-height: 1.5;
}

/* ============================== EMPTY ============================== */
.empty-state { padding: 56px 24px 64px; text-align: center; }
.empty-art {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  border-radius: 24px;
  display: grid; place-items: center;
  font-size: 32px;
  color: var(--pink-500);
  background: linear-gradient(140deg, var(--pink-50), var(--cream-200));
}
.empty-state h3 { font-size: 17px; margin-bottom: 6px; }
.empty-state p  { color: var(--plum-500); font-size: 13.5px; margin-bottom: 18px; }

.app-footer {
  text-align: center;
  padding: 26px 10px 4px;
  font-size: 12px;
  color: var(--plum-500);
}

/* ============================== FORM & BUTTONS ============================== */
.form-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--plum-700);
  margin-bottom: 6px;
}
.req { color: var(--pink-600); }

.form-control, .form-select {
  border: 1px solid var(--cream-300);
  border-radius: 11px;
  padding: 10px 13px;
  font-size: 14px;
  color: var(--plum-900);
  background-color: #fff;
}
.form-control::placeholder { color: #B9A8B0; }
.form-control:focus, .form-select:focus {
  border-color: var(--pink-400);
  box-shadow: var(--ring);
}
.form-text { font-size: 11.5px; color: var(--plum-500); }
.input-group-text {
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-right: 0;
  border-radius: 11px 0 0 11px;
  font-weight: 700;
  font-size: 13px;
  color: var(--plum-700);
}
.input-group .form-control { border-radius: 0 11px 11px 0; }
.was-validated .form-control:invalid, .form-control.is-invalid { border-color: var(--rose-500); }
.invalid-feedback { font-size: 11.5px; }

.btn {
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  border: 0;
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(201, 73, 127, .95);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--pink-600), #B23C6F);
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(201, 73, 127, 1);
}
.btn-primary:focus-visible { box-shadow: var(--ring); }

.btn-ghost {
  background: #fff;
  border: 1px solid var(--cream-300);
  color: var(--plum-700);
}
.btn-ghost:hover { background: var(--cream-100); color: var(--plum-900); border-color: var(--cream-300); }

.btn-danger {
  background: var(--rose-500);
  border: 0;
}
.btn-danger:hover { background: #BE5241; }

.btn-sm { padding: 7px 12px; font-size: 12.5px; }

/* Segmented control */
.segmented { display: flex; gap: 8px; }
.segmented-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 8px;
  border: 1px solid var(--cream-300);
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--plum-700);
  cursor: pointer;
  transition: all .16s ease;
  background: #fff;
}
.segmented-btn:hover { border-color: var(--pink-200); background: var(--cream-50); }
.btn-check:checked + .segmented-btn {
  background: var(--pink-50);
  border-color: var(--pink-400);
  color: var(--pink-600);
  box-shadow: var(--ring);
}
.btn-check:focus-visible + .segmented-btn { box-shadow: var(--ring); }

/* ============================== MODAL & TOAST ============================== */
.modal-content {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--cream-50);
}
.modal-header {
  border-bottom: 1px solid var(--cream-200);
  padding: 20px 22px 16px;
  align-items: flex-start;
}
.modal-title { font-size: 17px; margin: 0; }
.modal-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--plum-500); }
.modal-body { padding: 20px 22px; }
.modal-footer { border-top: 1px solid var(--cream-200); padding: 14px 22px; gap: 8px; }
.modal-backdrop.show { opacity: .35; }

.danger-art {
  width: 58px; height: 58px;
  margin: 4px auto 0;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 24px;
  color: var(--rose-500);
  background: var(--rose-100);
}
.text-muted-soft { color: var(--plum-500); font-size: 13px; }

#appToast {
  background: var(--plum-900);
  color: var(--cream-100);
  border-radius: 13px;
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
}
#appToast .toast-body i { color: var(--pink-200); }
#appToast .btn-close { filter: invert(1) grayscale(1) brightness(2); }

/* ============================== DAFTAR KONTEN ============================== */

/* Tombol expand di kolom brand */
.btn-expand {
  width: 26px; height: 26px;
  flex: none;
  border: 1px solid var(--cream-300);
  background: #fff;
  border-radius: 8px;
  color: var(--plum-500);
  display: grid; place-items: center;
  font-size: 11px;
  padding: 0;
  transition: all .16s ease;
}
.btn-expand:hover { background: var(--pink-50); border-color: var(--pink-200); color: var(--pink-600); }
.btn-expand i { transition: transform .18s ease; }
.btn-expand.open { background: var(--pink-50); border-color: var(--pink-200); color: var(--pink-600); }
.btn-expand.open i { transform: rotate(90deg); }

/* Progress bar mini di kolom progres */
.progres-wrap { min-width: 132px; }
.progres-text {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--plum-700);
  margin-bottom: 5px;
  display: block;
}
.progres-bar {
  height: 6px;
  border-radius: 99px;
  background: var(--cream-200);
  overflow: hidden;
}
.progres-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink-400), var(--pink-600));
  transition: width .3s ease;
}
.progres-fill.full { background: linear-gradient(90deg, #6FBF9B, var(--sage-500)); }

/* Baris detail di tabel */
.detail-row > td {
  background: var(--cream-50);
  padding: 0 !important;
  border-bottom: 1px solid var(--cream-200) !important;
}
.detail-inner { padding: 14px 14px 16px 62px; }
.detail-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--plum-500);
  margin-bottom: 10px;
}

/* Satu baris konten */
.item-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-sm);
  margin-bottom: 7px;
}
.item-line:last-child { margin-bottom: 0; }
.item-line.is-late { border-color: #F3CFC8; background: #FFFAF9; }
.item-line.is-done { opacity: .72; }

.item-num {
  width: 22px; height: 22px;
  flex: none;
  border-radius: 7px;
  background: var(--cream-200);
  color: var(--plum-700);
  font-size: 11px;
  font-weight: 800;
  display: grid; place-items: center;
}
.item-line.is-done .item-num { background: var(--sage-100); color: var(--sage-500); }

.item-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-line.is-done .item-name { text-decoration: line-through; color: var(--plum-500); }

.item-dl {
  flex: none;
  text-align: right;
  font-size: 12px;
  line-height: 1.35;
  min-width: 108px;
}
.item-dl .d { font-weight: 700; font-variant-numeric: tabular-nums; }
.item-dl .n { font-size: 11px; font-weight: 600; display: block; }

.item-select {
  flex: none;
  width: 150px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 28px 6px 10px;
  border-radius: 9px;
  background-position: right 8px center;
}

/* Ringkasan konten terdekat di kolom deadline */
.next-item {
  font-size: 11.5px;
  color: var(--plum-500);
  margin-top: 2px;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Daftar konten di kartu mobile */
.card-items { margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--cream-300); }
.card-items .detail-title { margin-bottom: 8px; }
.card-items .item-line { background: #fff; flex-wrap: wrap; }
.card-items .item-name { flex: 1 1 100%; white-space: normal; }
.card-items .item-dl { text-align: left; min-width: 0; flex: 1; }
.card-items .item-select { width: 148px; }

/* ============================== FORM DAFTAR KONTEN ============================== */
.deliv-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.deliv-list { display: grid; gap: 8px; }

.deliv-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-sm);
}
.deliv-row .deliv-num {
  width: 24px; height: 24px;
  flex: none;
  border-radius: 8px;
  background: var(--pink-50);
  color: var(--pink-600);
  font-size: 11.5px;
  font-weight: 800;
  display: grid; place-items: center;
}
.deliv-row .it-nama     { flex: 1 1 auto; min-width: 120px; }
.deliv-row .it-deadline { flex: 0 0 152px; }
.deliv-row .it-status   { flex: 0 0 158px; }
.deliv-row .form-control,
.deliv-row .form-select { padding: 8px 11px; font-size: 13px; border-radius: 9px; }
.deliv-row .it-status   { padding-right: 28px; }
.deliv-row .it-deadline.is-invalid { border-color: var(--rose-500); background: #FFF7F6; }

.deliv-remove {
  width: 32px; height: 32px;
  flex: none;
  border: 1px solid var(--cream-300);
  background: #fff;
  border-radius: 9px;
  color: var(--plum-500);
  display: grid; place-items: center;
  font-size: 12px;
  padding: 0;
  transition: all .16s ease;
}
.deliv-remove:hover { background: var(--rose-100); border-color: #F5C8C0; color: var(--rose-500); }

.deliv-error {
  margin-top: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-500);
  background: var(--rose-100);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1399.98px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .app-main { margin-left: 0; }
  .app-sidebar { width: 280px; border-right: 0; }

  .topbar { padding: 12px 16px; }
  .topbar-title h1 { font-size: 18px; }
  .topbar-title p { display: none; }
  .topbar-actions { width: 100%; order: 3; }
  .search-box { flex: 1; }
  .search-box .form-control { width: 100%; }

  .app-content { padding: 18px 16px 32px; }
  .panel-toolbar { padding: 14px; }
  .filter-group .form-select { max-width: none; flex: 1 1 calc(50% - 5px); min-width: 0; }
}

@media (max-width: 575.98px) {
  .stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-card { padding: 15px; align-items: center; }
  .stat-value { font-size: 21px; }

  .btn-add span { display: none; }
  .btn-add { width: 44px; height: 44px; padding: 0; flex: none; }

  .filter-group .form-select { flex: 1 1 100%; }
  .job-card-grid { grid-template-columns: 1fr; gap: 10px; }
  .job-cards { padding: 12px; }
  .modal-body { padding: 16px; }
  .modal-header, .modal-footer { padding-left: 16px; padding-right: 16px; }

  /* Form konten menumpuk vertikal supaya input tidak terlalu sempit */
  .deliv-row { flex-wrap: wrap; }
  .deliv-row .deliv-num { order: 1; }
  .deliv-row .it-nama { order: 2; flex: 1 1 auto; }
  .deliv-row .deliv-remove { order: 3; }
  .deliv-row .it-deadline { order: 4; flex: 1 1 130px; }
  .deliv-row .it-status { order: 5; flex: 1 1 130px; }

  .card-items .item-select { width: 100%; }
  .card-items .item-dl { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============================== HALAMAN LOGIN & AKUN ============================== */
.halaman-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-wrap { width: 100%; display: flex; justify-content: center; }

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 30px 28px;
}
.auth-card.auth-lebar { max-width: 620px; }

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--cream-200);
}

.auth-judul { font-size: 21px; margin-bottom: 5px; }
.auth-sub { font-size: 13.5px; color: var(--plum-500); margin-bottom: 22px; }

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: var(--rose-100);
  color: var(--rose-500);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.auth-alert.sukses { background: var(--sage-100); color: var(--sage-500); }
.auth-alert i { font-size: 15px; flex: none; margin-top: 1px; }
.auth-alert code { color: inherit; font-weight: 700; }

/* Input dengan ikon di kiri */
.input-ikon { position: relative; }
.input-ikon > i {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--plum-500);
  font-size: 14px;
  pointer-events: none;
}
.input-ikon .form-control { padding-left: 40px; }

.lihat-sandi {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border: 0;
  background: transparent;
  color: var(--plum-500);
  border-radius: 9px;
  display: grid; place-items: center;
  cursor: pointer;
}
.lihat-sandi:hover { background: var(--cream-100); color: var(--pink-600); }

.auth-kaki {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--cream-200);
  font-size: 11.5px;
  color: var(--plum-500);
  text-align: center;
}
.auth-kaki code {
  background: var(--cream-200);
  color: var(--plum-700);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 11px;
}

.langkah-akhir {
  background: var(--gold-100);
  border: 1px solid #F1E2C4;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--plum-700);
}
.langkah-akhir p { margin-bottom: 8px; }
.langkah-akhir code {
  background: #fff;
  color: var(--pink-600);
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 700;
}

/* Kartu identitas di kaki sidebar */
.kartu-akun {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  margin-bottom: 12px;
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius);
}
.akun-inisial {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.akun-teks { min-width: 0; }
.akun-teks strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.akun-teks small { color: var(--plum-500); font-size: 11.5px; }

/* Tombol Keluar dipakai di dalam <form>, samakan bentuknya dengan menu lain */
.sidebar-nav form .nav-item { text-align: left; font-family: inherit; cursor: pointer; }
