/* ============================================================
   LENTERA Petugas - Operational Layout Layer
   Visual-only shell refinement inspired by TANDA's consistent app shell.
   No behavior, routing, auth, data, or API changes live here.
   ============================================================ */

:root {
  --ops-border: #7f8fa3;
  --ops-border-soft: #b8c4d3;
  --ops-panel: #ffffff;
  --ops-field: #fffefa;
  --ops-band: #eef3f9;
  --ops-line: #d3ddea;
}

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

.content {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}

.hero-banner,
.card,
.stat,
.workstation-context,
.workstation-summary,
.workstation-actionbar,
.modal,
.print-card,
.upload-section,
.info-col,
.recap-card-head,
.profil-card {
  border-radius: 3px !important;
  box-shadow: none !important;
}

.top-utility {
  width: 100%;
  min-height: 54px;
  border-bottom: 2px solid #c5d0de;
}

.top-utility-brand {
  color: var(--primary);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.top-utility-brand-sub {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  opacity: .8;
}

.top-nav {
  width: 100%;
  min-height: 42px;
  border-bottom: 3px solid var(--accent);
}

.top-nav-list {
  display: flex;
  align-items: center;
  width: 100%;
}

.top-nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}

.top-nav-context {
  opacity: .7;
}

.top-nav-separator {
  margin: 0 4px;
  font-size: 11px;
  opacity: .5;
}

.top-nav-current {
  color: var(--accent);
  font-weight: 600;
}

.print-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
  background: #ffffff;
}

.print-overlay-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--navy);
}

.print-overlay-title {
  flex: 1;
  color: #ffffff;
  font-family: var(--ff-serif);
  font-size: 15px;
}

.print-overlay-print-btn,
.print-overlay-close-btn {
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-family: var(--ff);
  font-size: 13px;
}

.print-overlay-print-btn {
  padding: 8px 20px;
  background: var(--gold);
  font-weight: 600;
}

.print-overlay-close-btn {
  padding: 8px 14px;
  background: rgba(255, 255, 255, .15);
}

.print-overlay-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20mm 22mm;
}

.hero-banner {
  min-height: 132px;
  padding: 20px 24px;
  margin-bottom: 16px;
  border: 2px solid #071224;
  border-top: 6px solid var(--accent);
  border-left: 2px solid #071224;
  background:
    linear-gradient(90deg, rgba(200, 146, 42, .12), rgba(200, 146, 42, 0) 34%),
    linear-gradient(180deg, #10213c 0%, #071224 100%);
}

.hero-title {
  margin-bottom: 7px;
  font-size: 22px;
  letter-spacing: .045em;
}

.hero-sub {
  max-width: 820px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .9);
  line-height: 1.55;
}

.hero-illustration {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, .16);
  opacity: .95;
}

.stats {
  gap: 12px;
  margin-bottom: 16px;
}

.stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: 104px;
  padding: 13px 15px;
  border: 2px solid var(--ops-border-soft);
  border-top-width: 5px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.stat-label,
.stat-sub {
  grid-column: 1 / -1;
}

.stat-label {
  margin-bottom: 7px;
  color: #30425d;
}

.stat-val {
  grid-column: 1;
  font-size: 34px;
  letter-spacing: 0;
}

.stat-sub {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--ops-line);
  color: #4f6077;
  font-weight: 600;
}

#laporan-main-content {
  min-width: 0;
}

#laporan-main-content > div[style*="grid-template-columns:repeat(4"] {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)) !important;
  gap: 12px !important;
}

#laporan-main-content > div[style*="grid-template-columns:1fr 1fr"] {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start;
}

#laporan-main-content div[style*="border-radius:10px"][style*="overflow:hidden"] {
  min-width: 0;
}

#laporan-main-content div[style*="display:flex"][style*="align-items:center"][style*="border-bottom:1px solid #F0F4FA"] {
  display: grid !important;
  grid-template-columns: minmax(112px, .9fr) minmax(72px, 1fr) minmax(24px, auto) !important;
  align-items: center !important;
  gap: 10px !important;
}

#laporan-main-content div[style*="flex:0 0 130px"],
#laporan-main-content div[style*="flex:0 0 145px"],
#laporan-main-content div[style*="flex:0 0 220px"] {
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

#laporan-main-content div[style*="flex:1;height:14px"] {
  min-width: 68px !important;
}

#laporan-main-content :not(.tbl-wrap) > table {
  table-layout: fixed;
  width: 100% !important;
}

#laporan-main-content :not(.tbl-wrap) > table th,
#laporan-main-content :not(.tbl-wrap) > table td {
  min-width: 0;
  padding: 7px 8px !important;
  overflow-wrap: anywhere;
}

#laporan-main-content :not(.tbl-wrap) > table th {
  letter-spacing: .035em !important;
}

#laporan-main-content :not(.tbl-wrap) > table td:first-child,
#laporan-main-content :not(.tbl-wrap) > table th:first-child {
  width: 44%;
}

#laporan-main-content :not(.tbl-wrap) > table td:not(:first-child),
#laporan-main-content :not(.tbl-wrap) > table th:not(:first-child) {
  width: 18.66%;
}

@media (max-width: 920px) {
  #laporan-main-content > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

.dash-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 16px;
}

.card {
  margin-bottom: 16px;
  border: 2px solid var(--ops-border-soft);
  background: var(--ops-panel);
}

.card-head,
.panel-head,
.modal-head,
.profil-card-head,
.workstation-summary-head {
  min-height: 46px;
  border-bottom: 2px solid var(--ops-border-soft);
  background: linear-gradient(180deg, #ffffff 0%, #eef3f9 100%);
}

.card-head::before,
.panel-head::before,
.modal-head::before {
  width: 5px;
  background: var(--accent);
}

.card-title,
.panel-head .card-title,
.modal-title {
  letter-spacing: .075em;
  color: #0f2347;
}

.card-body {
  background: #fff;
}

.dash-item {
  padding: 11px 16px;
  border-bottom: 1px solid var(--ops-line);
}

.dash-item:hover {
  padding-left: 18px;
  background: #f0f5fb;
}

.dash-name {
  color: #0f2347;
}

.recap-card-head {
  border: 0;
  border-bottom: 2px solid var(--ops-border-soft);
  background: linear-gradient(180deg, #10213c 0%, #0a1628 100%);
}

.workstation-card {
  border-color: var(--ops-border);
}

.workstation-context {
  border: 2px solid var(--ops-border);
  border-top: 5px solid #0f2347;
  background: #fff;
}

.workstation-context-item {
  padding: 11px 13px;
  border-right: 1px solid #cbd7e5;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.workstation-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 16px;
}

.workstation-summary {
  border: 2px solid var(--ops-border);
  background: #fff;
}

.workstation-summary-head {
  background: #0f2347;
  border-bottom-color: var(--accent);
}

.workstation-completeness {
  border-radius: 2px;
  background: #071224;
}

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

.workstation-summary-note {
  border: 2px solid #d8be81;
  border-radius: 3px;
  background: #fff8e8;
}

.workstation-actionbar {
  bottom: 10px;
  padding: 9px 10px;
  border: 2px solid var(--ops-border);
  background: #ffffff;
  backdrop-filter: none;
}

.modal {
  border: 2px solid var(--ops-border);
}

.modal-body {
  background: #f3f6fa;
}

.tabs {
  border: 2px solid var(--ops-border-soft);
  border-radius: 2px;
  background: #e8eef6;
}

.tab {
  border-radius: 2px;
}

.info-grid {
  gap: 12px;
}

.info-col {
  border: 2px solid var(--ops-border-soft);
}

.info-row {
  grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  border-bottom: 1px solid var(--ops-line);
}

@media (max-width: 1180px) {
  .dash-grid,
  .workstation-layout {
    grid-template-columns: 1fr;
  }

  .workstation-summary {
    position: static;
  }
}

@media (max-width: 860px) {
  .hero-banner {
    min-height: 0;
  }

  .hero-illustration {
    display: none;
  }

  .content {
    max-width: none;
  }

  .stat {
    min-height: 96px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 18px;
    line-height: 1.35;
  }

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

  .workstation-actionbar {
    bottom: 74px;
  }

  .info-row {
    grid-template-columns: 1fr;
  }
}
