/* ============================================================
   LENTERA Petugas - Professional Business Theme
   Visual-only override. DOM, routing, data, and behavior remain unchanged.
   ============================================================ */

:root {
  --primary: #0b1f3a;
  --primary-dark: #071629;
  --secondary: #17365f;
  --accent: #c9942e;
  --accent-dark: #a97619;
  --accent-light: #fff8e8;
  --bg-body: #f3f6fa;
  --bg-card: #ffffff;
  --bg-sidebar: #091a31;
  --bg-sidebar-user: #071629;
  --text-main: #16253b;
  --text-secondary: #52627a;
  --text-muted: #718096;
  --border: #dce3ec;
  --input-bg: #ffffff;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(11, 31, 58, .06), 0 1px 2px rgba(11, 31, 58, .04);
  --shadow-md: 0 12px 32px rgba(11, 31, 58, .12), 0 2px 8px rgba(11, 31, 58, .06);
  --ops-border: #cbd5e1;
  --ops-border-soft: #dce3ec;
  --ops-field: #ffffff;
  --ops-band: #f6f8fb;
  --ops-line: #e5eaf1;
  --topbar-utility: 64px;
  --topbar-nav: 46px;
  --topbar: 110px;
}

html {
  background: var(--bg-body);
}

body {
  color: var(--text-main);
  background: var(--bg-body);
  font-family: var(--ff-body, 'Source Sans 3', system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.5;
}

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

/* App shell */
.sidebar {
  background:
    radial-gradient(circle at 15% 0%, rgba(51, 86, 130, .34), transparent 32%),
    linear-gradient(180deg, #0d2340 0%, #091a31 56%, #071629 100%);
  border-right: 1px solid rgba(255, 255, 255, .05);
  box-shadow: 8px 0 30px rgba(8, 24, 45, .12);
}

.sidebar-brand {
  min-height: 144px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.sidebar-brand::after {
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(201, 148, 46, 0));
}

.sidebar-brand img {
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .22));
}

.nav-group-label {
  padding: 18px 22px 7px;
  color: #d8b96f;
  font-family: var(--ff-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.nav-item {
  min-height: 46px;
  margin: 3px 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(240, 245, 252, .78);
  font-size: 13.5px;
  font-weight: 600;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.nav-item.active {
  color: #10233f;
  background: #fff;
  border-color: rgba(255, 255, 255, .55);
  border-left: 3px solid var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.nav-ico {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .11);
}

.nav-item.active .nav-ico {
  color: var(--primary);
  background: #eef3f8;
  border-color: #d8e1ec;
}

.nav-badge {
  margin-left: auto;
  border-radius: 999px;
  box-shadow: none;
}

.sidebar-foot {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(4, 14, 27, .25);
}

.main {
  background: linear-gradient(180deg, #f8fafc 0%, #f3f6fa 36%, #eef2f7 100%);
}

.top-utility {
  min-height: 64px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e3e8ef;
  box-shadow: 0 1px 0 rgba(11, 31, 58, .02);
  backdrop-filter: blur(12px);
}

.top-utility::after {
  display: none;
}

.top-utility-brand {
  color: var(--primary) !important;
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.top-utility-brand-sub {
  color: #718096;
  font-family: var(--ff-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
}

.top-utility-right {
  gap: 16px;
}

.conn-wrap {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0f9f4;
}

.conn-label {
  color: #397455;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
}

.top-user-name {
  color: var(--primary);
  font-size: 13.5px;
  letter-spacing: 0;
}

.top-user-role {
  color: #7a8799;
  font-size: 10.5px;
  letter-spacing: .08em;
}

.top-user-avatar {
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(145deg, #17365f, #071629);
  border: 2px solid #e4eaf1;
  box-shadow: 0 3px 9px rgba(11, 31, 58, .15);
}

.top-nav {
  min-height: 46px;
  padding: 0 28px;
  background: linear-gradient(90deg, #0b1f3a, #102b4e);
  border-bottom: 2px solid var(--accent);
}

.top-nav-breadcrumb {
  font-size: 12px;
  letter-spacing: .01em;
}

.top-nav-context {
  color: rgba(255, 255, 255, .7);
}

.top-nav-current {
  color: #f2c96b;
  font-weight: 700;
}

.content {
  max-width: 1540px;
  padding: 24px 28px 40px;
}

/* Dashboard */
.hero-banner {
  min-height: 144px;
  margin-bottom: 20px;
  padding: 24px 28px;
  overflow: hidden;
  border: 0;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 148, 46, .22), transparent 28%),
    linear-gradient(125deg, #0a1d36 0%, #102f55 72%, #163b66 100%);
  box-shadow: 0 12px 28px rgba(11, 31, 58, .16) !important;
}

.hero-title {
  margin-bottom: 8px;
  font-family: var(--ff-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.015em;
  text-transform: none;
}

.hero-sub {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
}

.hero-illustration {
  width: 140px;
  height: 112px;
  border-left-color: rgba(255, 255, 255, .12);
}

.stats {
  gap: 14px;
  margin-bottom: 20px;
}

.stat {
  position: relative;
  min-height: 112px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-radius: 12px !important;
  background: #fff;
  box-shadow: var(--shadow) !important;
}

.stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--primary);
}

.stat.s-gold::before { background: var(--accent); }
.stat.s-green::before { background: #2f855a; }
.stat.s-orange::before { background: #d97706; }

.stat-label {
  margin-bottom: 5px;
  color: #6a788c;
  font-family: var(--ff-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
}

.stat-val {
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.stat-sub {
  margin-top: 7px;
  padding-top: 7px;
  color: #748297;
  border-top-color: #edf0f4;
  font-size: 11px;
  font-weight: 500;
}

.dash-grid {
  gap: 18px;
}

/* Surfaces and cards */
.card,
.panel-left,
.panel-right,
.info-col,
.upload-section,
.workstation-context,
.workstation-summary,
.workstation-actionbar,
.print-card,
.profil-card {
  border: 1px solid var(--border);
  border-radius: 12px !important;
  background: #fff;
  box-shadow: var(--shadow) !important;
}

.card {
  margin-bottom: 18px;
}

.card-head,
.panel-head,
.profil-card-head,
.workstation-summary-head {
  min-height: 54px;
  padding: 13px 18px;
  border-bottom: 1px solid #e5eaf1;
  background: #fff;
}

.card-head::before,
.panel-head::before,
.modal-head::before {
  top: 14px;
  bottom: 14px;
  width: 3px;
  height: auto;
  border-radius: 0 3px 3px 0;
}

.card-title,
.panel-head .card-title,
.modal-title {
  color: var(--primary);
  font-family: var(--ff-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .07em;
}

.card-body {
  padding: 20px;
  background: #fff;
}

.dash-item {
  padding: 13px 18px;
  border-bottom-color: #e8edf3;
}

.dash-item:hover {
  padding-left: 20px;
  background: #f7f9fc;
}

.dash-name {
  color: var(--primary);
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: -.005em;
}

.recap-card-head {
  min-height: 54px;
  padding: 13px 18px;
  border: 0;
  border-bottom: 2px solid var(--accent);
  border-radius: 12px 12px 0 0 !important;
  background: linear-gradient(110deg, #0b1f3a, #15365f);
}

/* Form workstation */
.workstation-card {
  border-color: var(--border);
}

.workstation-context {
  overflow: hidden;
  border-top: 3px solid var(--primary);
}

.workstation-context-item {
  padding: 13px 15px;
  border-right-color: #e3e8ef;
  background: #fbfcfe;
}

.workstation-layout {
  gap: 18px;
}

.workstation-summary {
  overflow: hidden;
}

.workstation-summary-head {
  color: #fff;
  background: linear-gradient(110deg, #0b1f3a, #17365f);
  border-bottom: 2px solid var(--accent);
}

.workstation-completeness {
  border-radius: 8px;
  background: rgba(4, 14, 27, .66);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.workstation-summary-list > div {
  padding: 11px 0;
  border-bottom-color: #e6ebf1;
}

.workstation-summary-note {
  margin: 16px;
  border: 1px solid #e7cc8f;
  border-radius: 8px;
  background: #fff9eb;
}

.workstation-actionbar {
  padding: 10px 12px;
  border-color: #ccd6e2;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(11, 31, 58, .12) !important;
  backdrop-filter: blur(10px);
}

.form-sec,
.fsec {
  padding: 17px 18px 15px;
  border: 1px solid var(--border);
  border-radius: 10px !important;
  background: #fff;
  box-shadow: 0 1px 3px rgba(11, 31, 58, .035) !important;
}

.form-sec::before,
.fsec::before {
  top: 17px;
  bottom: 17px;
  width: 3px;
  border-radius: 0 3px 3px 0;
}

.form-sec-title,
.fsec-title,
.info-col-title,
.report-section-title {
  margin-bottom: 15px;
  padding-bottom: 9px;
  color: var(--primary);
  border-bottom: 1px solid #e4d3a8;
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

label.flabel,
.form1-edit-panel .flabel,
.workstation-context-label,
.workstation-summary-list dt {
  color: #52627a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

input,
select,
textarea,
.col-search,
.search-wrap,
.pagin-select,
.upload-select-wrap select,
.dok-modal-upload-row select {
  border: 1px solid #b8c4d2;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: inset 0 1px 2px rgba(11, 31, 58, .025);
}

input,
select,
textarea {
  min-height: 44px;
  height: 44px;
  padding-left: 12px;
  padding-right: 12px;
  color: #1c2f49;
  font-size: 13.5px;
  font-weight: 500;
}

textarea {
  height: auto;
  min-height: 104px;
}

input::placeholder,
textarea::placeholder {
  color: #94a0b2;
  font-weight: 400;
}

input:hover,
select:hover,
textarea:hover,
.search-wrap:hover {
  border-color: #8fa0b4;
}

input:focus,
select:focus,
textarea:focus,
.search-wrap:focus-within,
.col-search:focus-within,
.upload-select-wrap select:focus,
.dok-modal-upload-row select:focus {
  border-color: #b47f1b;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(201, 148, 46, .14);
}

.chk-item,
.cl-item {
  border: 1px solid #d2dbe6;
  border-radius: 8px;
  background: #fff;
}

.chk-item:hover,
.cl-item:hover {
  border-color: #aebbc9;
  background: #fafbfd;
}

.chk-item:has(input:checked),
.cl-item.checked {
  border-color: #d3a64d;
  background: #fff9ec;
}

/* Tables */
.tbl-wrap,
.um-table-wrap {
  overflow: hidden;
  border: 1px solid #d7dfe9;
  border-radius: 10px !important;
  box-shadow: 0 1px 4px rgba(11, 31, 58, .04) !important;
}

table {
  font-size: 12.5px;
}

thead th,
thead.thead-yellow th,
.user-table thead th {
  padding: 11px 13px;
  border-right-color: rgba(255, 255, 255, .1);
  background: #102b4e;
  font-family: var(--ff-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
}

thead tr.header-filter th {
  padding: 8px;
  border-right-color: #dde4ed;
  background: #f5f7fa;
}

tbody tr {
  border-bottom: 1px solid #e2e8f0;
}

tbody tr:nth-child(even) {
  background: #fafbfd;
}

tbody tr:hover {
  background: #f0f5fa !important;
}

td {
  padding: 11px 13px;
  color: #263a55;
  border-right-color: #e7ebf1;
}

.pagination {
  padding: 11px 16px;
  border-top: 1px solid #dce3ec;
  background: #f8fafc;
}

/* Buttons, badges, and tabs */
.btn {
  min-height: 40px;
  padding: 9px 17px;
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: 12.5px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  min-height: 36px;
  padding: 7px 13px;
}

.btn-ghost {
  color: #263a55;
  background: #fff;
  border: 1px solid #cbd5e1;
}

.btn-ghost:hover {
  background: #f6f8fb;
  border-color: #9eacbd;
}

.btn-navy {
  background: linear-gradient(180deg, #15375f, #0b1f3a);
  border: 1px solid #0b1f3a;
  box-shadow: 0 4px 10px rgba(11, 31, 58, .14);
}

.btn-gold {
  color: #fff;
  background: linear-gradient(180deg, #d7a744, #b8811a);
  border: 1px solid #ad7714;
  box-shadow: 0 4px 10px rgba(185, 130, 24, .16);
}

.badge,
.um-role-badge,
.udm-role-chip {
  border-width: 1px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .06em;
}

.tabs {
  gap: 4px;
  padding: 5px;
  border: 1px solid #d2dbe6;
  border-radius: 10px;
  background: #edf2f7;
}

.tab {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 10.5px;
  letter-spacing: .07em;
}

.tab.active {
  color: #fff;
  background: linear-gradient(180deg, #17365f, #0b1f3a);
  box-shadow: 0 3px 8px rgba(11, 31, 58, .16);
}

.tab.tab-print {
  background: #fff9ed;
  border-color: #e2c47e;
}

/* Detail and modal */
.modal-bg {
  padding: 24px;
  background: rgba(5, 16, 31, .58);
  backdrop-filter: blur(4px);
}

.modal {
  overflow: hidden;
  border: 1px solid #cdd7e3;
  border-radius: 14px !important;
  box-shadow: 0 24px 64px rgba(5, 16, 31, .24) !important;
}

.modal-head {
  min-height: 64px;
  padding: 16px 20px;
  border-bottom: 1px solid #dce3ec;
  background: #fff;
}

.modal-body {
  padding: 20px;
  background: #f6f8fb;
}

.modal-foot {
  padding: 12px 20px;
  border-top: 1px solid #dce3ec;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -5px 18px rgba(11, 31, 58, .05);
}

.close-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #d5dde7;
  border-radius: 8px;
  background: #fff;
}

.progress-bar,
.detail-edit-toolbar,
.dur-summary {
  border: 1px solid #d4dde8;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.info-grid {
  gap: 14px;
}

.info-col {
  padding: 15px 17px 8px;
}

.info-row {
  padding: 9px 0;
  border-bottom-color: #e3e8ef;
}

.info-lbl {
  color: #66758a;
  font-size: 9.5px;
  letter-spacing: .08em;
}

.info-val {
  color: #1b304a;
  font-size: 12.5px;
  font-weight: 600;
}

/* Login receives the same visual language. */
#login-overlay {
  background:
    radial-gradient(circle at 20% 15%, rgba(45, 82, 125, .45), transparent 30%),
    radial-gradient(circle at 80% 85%, rgba(201, 148, 46, .16), transparent 30%),
    linear-gradient(145deg, #061427, #0b2341 58%, #102f55);
}

.login-box {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
}

.login-logo {
  color: var(--primary);
  font-size: 25px;
  letter-spacing: -.025em;
}

@media (max-width: 1180px) {
  .content {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 860px) {
  .top-utility,
  .top-nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .content {
    padding: 18px 16px 96px;
  }

  .hero-banner {
    padding: 22px;
    border-radius: 12px !important;
  }

  .nav-item {
    margin-left: 10px;
    margin-right: 10px;
  }

  .modal-bg {
    padding: 10px;
  }
}

@media (max-width: 640px) {
  :root {
    --topbar-utility: 58px;
    --topbar: 104px;
  }

  body {
    font-size: 13.5px;
  }

  .top-utility {
    min-height: 58px;
  }

  .hero-title {
    font-size: 19px;
  }

  .stats {
    gap: 10px;
  }

  .stat {
    min-height: 100px;
    padding: 14px 16px;
  }

  .stat-val {
    font-size: 28px;
  }

  .card-body,
  .modal-body {
    padding: 14px;
  }

  .form-sec,
  .fsec {
    padding: 15px 14px 13px;
  }

  .tabs {
    border-radius: 8px;
  }

  .tab {
    white-space: nowrap;
  }

  .workstation-actionbar {
    border-radius: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .nav-item,
  .dash-item {
    transition: none;
  }
}
