:root {
  --bg: #f6f7f4;
  --panel: #ffffff;
  --ink: #18211f;
  --muted: #66736f;
  --line: #dfe5df;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --sidebar-bg: #172421;
  --sidebar-text: #dce8e4;
  --warm: #b45309;
  --danger: #b42318;
  --soft: #eef7f5;
  --shadow: 0 18px 40px rgba(20, 34, 31, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.auth-login {
  min-height: 100vh;
}

body.app-booting .login-screen,
body.app-booting .public-duty-screen,
body.app-booting .mobile-print-screen,
body.app-booting .app-shell,
body.app-booting .app-footer {
  display: none;
}

body.auth-login .app-shell,
body.auth-login .app-footer {
  display: none;
}

body.is-authenticated .login-screen {
  display: none;
}

body:not(.public-duty-mode) .public-duty-screen,
body.public-duty-mode .login-screen,
body.public-duty-mode .app-shell,
body.public-duty-mode .app-footer {
  display: none;
}

body:not(.mobile-print-mode) .mobile-print-screen,
body.mobile-print-mode .login-screen,
body.mobile-print-mode .public-duty-screen,
body.mobile-print-mode .app-shell,
body.mobile-print-mode .app-footer {
  display: none;
}

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

input,
select,
textarea {
  font-weight: 400;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
}

button:hover {
  background: var(--accent-dark);
}

button.secondary,
.file-button {
  background: #eef2ef;
  color: var(--ink);
  border: 1px solid var(--line);
}

button.danger {
  background: #fff1f0;
  color: var(--danger);
  border: 1px solid #ffd7d2;
}

button.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(246, 247, 244, 0.92)),
    var(--bg);
}

.login-card {
  width: min(560px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(20, 34, 31, 0.18);
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  text-align: center;
}

.login-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.login-kpu-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.login-logo {
  width: 250px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  flex: 0 1 auto;
}

.login-brand h1 {
  margin: 0;
  max-width: none;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  white-space: nowrap;
}

.login-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.public-duty-screen {
  min-height: 100vh;
  padding: 28px;
  background: var(--bg);
}

.public-duty-card {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.public-duty-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.public-duty-header img {
  width: 58px;
  height: 66px;
  object-fit: contain;
}

.public-duty-header h1 {
  margin: 0;
}

.public-duty-mode .detail-grid {
  margin-bottom: 8px;
}

.public-duty-mode .modal-subtitle {
  margin-top: 18px;
  line-height: 1.2;
}

.public-duty-mode .modal-table {
  width: 100%;
  overflow: hidden;
}

.empty-public {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.mobile-print-screen {
  min-height: 100vh;
  background: #5f6668;
  padding: 12px;
}

.mobile-print-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto 12px;
  width: min(920px, 100%);
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mobile-print-toolbar h1 {
  margin: 0;
  font-size: 18px;
}

.mobile-print-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mobile-print-actions button {
  min-height: 42px;
  padding: 0 14px;
}

#mobile-print-close {
  background: #eef2ef;
  color: var(--ink);
  border: 1px solid var(--line);
}

.mobile-print-canvas {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
}

.mobile-print-canvas .doc-page,
.mobile-print-canvas .doc-page-sppd {
  margin: 0 auto 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 22px 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  background: white;
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #f7d070;
  color: #172421;
  border-radius: 8px;
  font-weight: 900;
}

.brand-logo {
  width: 210px;
  height: auto;
  object-fit: contain;
}

.brand-system-name {
  margin: 0 2px 18px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  color: var(--sidebar-text);
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--sidebar-text), transparent 68%);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  color: var(--sidebar-text);
  border: 1px solid transparent;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: 0.92;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.icon-home {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E");
}

.icon-doc {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h6'/%3E%3C/svg%3E");
}

.icon-list {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3C/svg%3E");
}

.icon-user {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.icon-setting {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.7 1.7 0 0 0-1.87-.34 1.7 1.7 0 0 0-1 1.56V21a2 2 0 1 1-4 0v-.08a1.7 1.7 0 0 0-1-1.56 1.7 1.7 0 0 0-1.87.34l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.56-1H3a2 2 0 1 1 0-4h.08a1.7 1.7 0 0 0 1.56-1 1.7 1.7 0 0 0-.34-1.87l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.7 1.7 0 0 0 9 4.6a1.7 1.7 0 0 0 1-1.56V3a2 2 0 1 1 4 0v.08a1.7 1.7 0 0 0 1 1.56 1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.7 1.7 0 0 0 19.4 9c.2.6.8 1 1.56 1H21a2 2 0 1 1 0 4h-.08a1.7 1.7 0 0 0-1.56 1Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.7 1.7 0 0 0-1.87-.34 1.7 1.7 0 0 0-1 1.56V21a2 2 0 1 1-4 0v-.08a1.7 1.7 0 0 0-1-1.56 1.7 1.7 0 0 0-1.87.34l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.56-1H3a2 2 0 1 1 0-4h.08a1.7 1.7 0 0 0 1.56-1 1.7 1.7 0 0 0-.34-1.87l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.7 1.7 0 0 0 9 4.6a1.7 1.7 0 0 0 1-1.56V3a2 2 0 1 1 4 0v.08a1.7 1.7 0 0 0 1 1.56 1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.7 1.7 0 0 0 19.4 9c.2.6.8 1 1.56 1H21a2 2 0 1 1 0 4h-.08a1.7 1.7 0 0 0-1.56 1Z'/%3E%3C/svg%3E");
}

.nav-item:hover,
.nav-item.is-active {
  background: color-mix(in srgb, var(--sidebar-bg), white 10%);
  border-color: color-mix(in srgb, var(--sidebar-text), transparent 70%);
}

.content {
  padding: 26px 26px 72px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

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

.topbar-user {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}

.today {
  font-weight: 800;
  color: var(--muted);
}

.greeting {
  color: var(--muted);
  font-size: 13px;
}

.logout-icon {
  width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  background: #eef2ef;
  border: 1px solid var(--line);
  color: var(--ink);
}

.logout-icon:hover {
  background: #fff1f0;
  border-color: #ffd7d2;
  color: var(--danger);
}

.logout-icon span {
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  position: relative;
}

.logout-icon span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 3px;
  height: 11px;
  background: currentColor;
  border-radius: 999px;
  transform: translateX(-50%);
}

.eyebrow,
.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 19px;
}

.today {
  color: var(--muted);
  font-weight: 700;
}

.view,
.tab-panel {
  display: none;
}

.view.is-active,
.tab-panel.is-active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric,
.section-band,
.upload-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
}

.metric span,
.number-board span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 34px;
}

.section-band,
.upload-box {
  padding: 18px;
}

.upload-box p {
  color: var(--muted);
  margin: 4px 0 14px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.number-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.number-board > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfb;
  overflow-wrap: anywhere;
}

.inline-filter {
  display: grid;
  gap: 6px;
  min-width: 130px;
  font-weight: 700;
}

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.7fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.dashboard-chart-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
}

.dashboard-chart-card .section-heading {
  margin-bottom: 8px;
}

.dashboard-chart-card h2 {
  margin: 0;
}

.line-chart {
  flex: 1;
  width: 100%;
  min-height: 300px;
  overflow-x: auto;
}

.line-chart svg {
  display: block;
  width: 100%;
  min-width: 560px;
  height: 100%;
}

.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-area {
  fill: var(--soft);
  opacity: 0.82;
  animation: chartAreaIn 900ms ease both;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  animation: chartLineDraw 1000ms ease-out both;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.chart-point {
  fill: var(--panel);
  stroke: var(--accent);
  stroke-width: 2.2;
  animation: chartPointIn 420ms ease-out both;
  animation-delay: 720ms;
  transform-box: fill-box;
  transform-origin: center;
}

.chart-value {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-anchor: middle;
}

.chart-x-label,
.chart-y-label {
  fill: var(--muted);
  font-size: 12px;
}

.chart-x-label {
  text-anchor: middle;
}

.chart-y-label {
  text-anchor: end;
}

.donut-chart {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 300px;
}

.donut-chart svg {
  width: min(100%, 390px);
  height: auto;
}

.donut-track {
  fill: none;
  stroke: #edf1ef;
  stroke-width: 34;
}

.donut-segment {
  fill: none;
  animation: donutDraw 1100ms ease-out both;
  stroke-linecap: round;
  stroke-dasharray: var(--donut-length) var(--donut-gap);
  stroke-width: 34;
}

.donut-apbn {
  stroke: var(--accent);
}

.donut-hibah {
  stroke: #f0a22e;
}

.donut-total {
  animation: chartPointIn 500ms ease-out both;
  animation-delay: 620ms;
  fill: var(--ink);
  font-size: 40px;
  font-weight: 900;
  text-anchor: middle;
}

.donut-total-label {
  animation: chartAreaIn 500ms ease-out both;
  animation-delay: 680ms;
  fill: var(--muted);
  font-size: 12px;
  text-anchor: middle;
}

.donut-callout-label {
  animation: chartAreaIn 520ms ease-out both;
  animation-delay: 900ms;
  fill: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.donut-callout-value {
  animation: chartAreaIn 520ms ease-out both;
  animation-delay: 960ms;
  fill: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.donut-callout-apbn text,
.donut-callout-hibah text {
  text-anchor: start;
}

.legend-line-apbn,
.legend-line-hibah {
  animation: chartLineDraw 650ms ease-out both;
  animation-delay: 760ms;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legend-line-apbn {
  stroke: var(--accent);
}

.legend-line-hibah {
  stroke: #f0a22e;
}

.legend-apbn {
  animation: chartPointIn 420ms ease-out both;
  animation-delay: 840ms;
  fill: var(--accent);
}

.legend-hibah {
  animation: chartPointIn 420ms ease-out both;
  animation-delay: 840ms;
  fill: #f0a22e;
}

@keyframes chartLineDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes chartAreaIn {
  from {
    opacity: 0;
  }
}

@keyframes chartPointIn {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
}

@keyframes donutDraw {
  from {
    stroke-dasharray: 0 var(--donut-circumference);
  }
  to {
    stroke-dasharray: var(--donut-length) var(--donut-gap);
  }
}

.travel-calendar {
  display: grid;
  gap: 8px;
  overflow: visible;
  padding-right: 2px;
}

.calendar-grid-scroll {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.calendar-month-grid {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.calendar-month-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.calendar-weekdays {
  margin-bottom: 4px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.calendar-cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid #e5ebe5;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
}

.calendar-cell.is-empty {
  background: transparent;
  border-color: transparent;
}

.calendar-cell.has-trip {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: #fff;
  cursor: help;
  font-weight: 800;
}

.calendar-cell.has-trip b {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  min-width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 999px;
  background: #f0a22e;
  color: #111;
  font-size: 9px;
  line-height: 1;
}

.calendar-cell.has-trip::after {
  content: attr(data-trip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  z-index: 30;
  display: none;
  width: 230px;
  max-width: 70vw;
  padding: 8px 10px;
  border-radius: 7px;
  background: #172421;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: pre-line;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
}

.calendar-cell.has-trip:hover::after,
.calendar-cell.has-trip:focus::after {
  display: block;
}

.calendar-hint,
.calendar-empty {
  color: var(--muted);
  font-size: 11px;
}

.calendar-filter-group {
  display: flex;
  gap: 8px;
  align-items: end;
  justify-content: flex-end;
}

.calendar-filter-group .inline-filter select {
  min-width: 104px;
}

.calendar-empty {
  display: grid;
  min-height: 40px;
  place-items: center;
  text-align: center;
}

.theme-settings {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) repeat(5, minmax(130px, 0.8fr)) minmax(170px, 1fr);
  gap: 12px;
  align-items: end;
}

.theme-settings label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.theme-settings input[type="color"] {
  width: 100%;
  min-height: 44px;
  padding: 4px;
}

.theme-preview {
  min-height: 74px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.theme-preview span {
  border-radius: 6px;
  background: var(--sidebar-bg);
}

.theme-preview strong {
  border-radius: 6px;
  background:
    linear-gradient(90deg, var(--accent) 0 48%, transparent 48%),
    var(--bg);
  border: 1px solid var(--line);
}

.settings-actions {
  margin-top: 12px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  background: #e7ece8;
  color: var(--ink);
  border: 1px solid var(--line);
}

.tab.is-active {
  background: var(--accent);
  color: white;
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  box-shadow: var(--shadow);
}

.list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-controls button,
.pagination-page {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
}

.pagination-controls button:hover:not(:disabled),
.pagination-page.is-active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.pagination-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination-ellipsis {
  padding: 0 4px;
  color: var(--muted);
}

.webgrid-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  margin-bottom: 12px;
}

.webgrid-table {
  min-width: 860px;
  box-shadow: none;
}

.webgrid-table th,
.webgrid-table td {
  padding: 0;
}

.webgrid-table th {
  padding: 10px;
}

.webgrid-table input {
  border: 0;
  border-radius: 0;
  min-height: 38px;
  background: white;
}

.webgrid-table input::placeholder {
  color: #9aa5a1;
}

.webgrid-table td + td,
.webgrid-table th + th {
  border-left: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #eef2ef;
  font-size: 13px;
}

td {
  font-size: 14px;
}

.merged-cell {
  background: #fbfcfb;
  font-weight: 700;
  vertical-align: middle;
}

.merged-title {
  font-weight: 600;
  line-height: 1.35;
  max-width: 320px;
  min-width: 220px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.merged-center {
  text-align: center;
}

.link-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
}

.link-button:hover {
  background: transparent;
  color: var(--accent-dark);
}

#sppd-table td:nth-child(2),
#view-sppd th:nth-child(2) {
  width: 280px;
  max-width: 320px;
}

.row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
}

#tugas-table td {
  white-space: nowrap;
}

#tugas-table td:nth-child(3) {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tugas-table td:last-child {
  width: 132px;
}

.icon-action {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 6px;
  background: #f5f7f6;
  border: 1px solid var(--line);
  color: var(--ink);
}

.icon-action:hover {
  background: #e8f1ee;
  border-color: #b7cbc5;
}

.icon-action::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  transform: translateX(-50%) translateY(4px);
  min-width: max-content;
  padding: 5px 8px;
  border-radius: 6px;
  background: #22332f;
  color: white;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.icon-action:hover::after,
.icon-action:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.icon-action-edit .icon-edit {
  position: relative;
  width: 14px;
  height: 14px;
}

.icon-action-edit .icon-edit::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: #7a8380;
  transform: rotate(45deg);
}

.icon-action-edit .icon-edit::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: #7a8380;
}

.icon-file {
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 3px;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
}

.icon-file::before {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 7px;
  height: 7px;
  background: white;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0 2px 0 2px;
}

.icon-action-pdf {
  color: #c43124;
}

.icon-action-word {
  color: #1f66c2;
}

.icon-trash {
  position: relative;
  width: 14px;
  height: 15px;
  border: 2px solid #cf2d24;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.icon-trash::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -6px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #cf2d24;
}

.icon-trash::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -10px;
  width: 6px;
  height: 4px;
  border: 2px solid #cf2d24;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.search {
  width: min(320px, 100%);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 10px 11px;
  min-height: 40px;
}

textarea {
  resize: vertical;
}

input[readonly] {
  background: #f2f5f2;
  color: #45534f;
}

input:disabled {
  background: #edf1ee;
  color: #7a8581;
  cursor: not-allowed;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.checkbox-label {
  align-items: center;
  align-self: end;
  display: flex;
  gap: 8px;
  min-height: 40px;
  white-space: nowrap;
}

.checkbox-label:has(input:disabled) {
  color: #45534f;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

fieldset,
.compact-form {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

legend {
  padding: 0 8px;
  font-weight: 900;
}

.wide-fieldset,
.form-actions {
  grid-column: 1 / -1;
}

.compact-form {
  max-width: 720px;
}

.two-col,
.participant-row,
.destination-row {
  display: grid;
  gap: 10px;
}

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

.inline-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.destination-row {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 170px) minmax(150px, 170px) auto auto;
  align-items: end;
  margin-bottom: 8px;
}

.participant-row {
  grid-template-columns: minmax(110px, 0.75fr) repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  margin-bottom: 10px;
}

.form-actions,
.button-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.file-button {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.file-button input {
  display: none;
}

.is-hidden {
  display: none;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 74px;
  max-width: 380px;
  background: #172421;
  color: white;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transform: translateY(120px);
  transition: transform 0.2s ease;
  z-index: 1200;
}

.toast.is-visible {
  transform: translateY(0);
}

.app-footer {
  position: fixed;
  left: 270px;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px rgba(20, 34, 31, 0.08);
  color: #6f7f8f;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal.is-hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 34, 31, 0.42);
}

.modal-panel {
  position: relative;
  width: min(980px, 96vw);
  max-height: 88vh;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(20, 34, 31, 0.24);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
}

.modal-body {
  padding: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-item {
  padding: 12px;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.detail-item strong {
  font-weight: 400;
  white-space: pre-wrap;
}

.modal-subtitle {
  margin: 20px 0 10px;
}

.modal-table {
  box-shadow: none;
}

.badge-inline {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
}

.doc-print {
  color: #111;
  background: white;
  font-family: "Times New Roman", serif;
  line-height: 1.12;
  font-size: 12pt;
}

.doc-page {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 5mm 18mm 12mm;
  page-break-after: always;
}

.doc-kop {
  text-align: center;
  border-bottom: 3px solid #111;
  padding-bottom: 2px;
  margin-bottom: 16px;
  font-family: Arial, sans-serif;
  position: relative;
}

.doc-logo {
  display: block;
  height: 78px;
  margin: 0 auto 8px;
  object-fit: contain;
  width: auto;
}

.doc-agency {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  row-gap: 0;
}

.doc-kop strong {
  display: block;
  font-size: 16pt;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.doc-kop span {
  display: block;
  font-size: 10pt;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.doc-contact {
  display: flex;
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  justify-content: space-between;
  margin-top: 8px;
  text-align: left;
}

.doc-title {
  text-align: center;
  text-decoration: underline;
  font-weight: 700;
  margin-top: 16px;
  font-size: 16pt;
  line-height: 1;
}

.doc-number {
  text-align: center;
  margin-bottom: 24px;
}

.doc-line {
  display: grid;
  grid-template-columns: 80px 16px minmax(0, 1fr);
  gap: 0;
  margin: 18px 0;
}

.doc-line-start {
  align-items: start;
}

.doc-command {
  font-size: 16pt;
  margin: 18px 0 14px;
  text-align: center;
}

.doc-assignee {
  display: grid;
  grid-template-columns: 24px 62px 12px minmax(0, 1fr);
  margin-bottom: 6px;
}

.doc-closing {
  margin: 42px 0 0 104px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.doc-table td,
.doc-table th {
  border: 1px solid #111;
  padding: 6px;
  font-size: 12pt;
}

.doc-plain td {
  border: 0;
  padding: 4px 2px;
}

.doc-sign {
  width: 260px;
  margin-left: auto;
  text-align: center;
  margin-top: 56px;
}

.doc-page-sppd {
  width: 215mm;
  height: 329mm;
  min-height: 329mm;
  padding: 12mm 5mm 10mm;
  overflow: hidden;
  break-after: auto;
  page-break-after: auto;
  font-family: Arial, sans-serif;
  font-size: 10pt;
  line-height: 1.15;
}

.sppd-kop {
  border-bottom: 2px solid #111;
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 18px;
  padding-bottom: 2px;
}

.sppd-logo {
  width: 58px;
  height: 66px;
  object-fit: contain;
  justify-self: center;
  align-self: start;
}

.sppd-agency {
  align-self: start;
  display: grid;
  justify-items: center;
  line-height: 0.95;
  padding-right: 78px;
}

.sppd-agency strong {
  display: block;
  font-size: 17pt;
  font-weight: 800;
}

.sppd-agency strong:last-child {
  font-size: 15pt;
}

.sppd-contact {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  font-family: "Times New Roman", serif;
  font-size: 11pt;
  font-style: italic;
  margin-top: 18px;
}

.sppd-meta {
  display: grid;
  grid-template-columns: 86px 16px minmax(0, 1fr);
  font-size: 9pt;
  line-height: 1.15;
  margin: 8px 0 8px auto;
  width: 360px;
}

.sppd-title {
  font-weight: 800;
  margin: 8px 0 4px;
  text-align: center;
}

.sppd-table {
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.sppd-col-no {
  width: 34px;
}

.sppd-col-letter {
  width: 42px;
}

.sppd-col-label {
  width: 190px;
}

.sppd-col-follow-name {
  width: 150px;
}

.sppd-table td {
  border: 1px solid #111;
  font-size: 10pt;
  line-height: 1.15;
  padding: 4px 7px;
  vertical-align: top;
}

.sppd-table .sppd-no {
  text-align: center;
  width: 30px;
}

.sppd-table .sppd-letter {
  text-align: center;
  width: 34px;
}

.sppd-purpose-row td,
.sppd-purpose-text {
  height: auto;
  min-height: 0;
  overflow: visible;
  white-space: normal;
}

.sppd-purpose-text {
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: normal;
}

.sppd-table .sppd-follow-cell {
  overflow: hidden;
  padding: 0;
}

.sppd-follow-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
}

.sppd-follow-table td {
  border: 1px solid #111;
  border-left: 0;
  border-top: 0;
  font-size: 10pt;
  height: 22px;
  padding: 3px 6px;
  text-align: center;
  vertical-align: middle;
}

.sppd-follow-table tr td:last-child {
  border-right: 0;
}

.sppd-follow-table tr:last-child td {
  border-bottom: 0;
}

.sppd-follow-table .sppd-follow-no {
  width: 34px;
}

.sppd-follow-table .sppd-follow-label {
  text-align: left;
  width: 84px;
}

.sppd-follow-table .sppd-follow-name {
  width: 260px;
}

.sppd-follow-table .sppd-follow-number {
  text-align: center;
}

.sppd-after-table {
  display: block;
  min-height: 178px;
  margin-top: 2px;
  position: relative;
}

.sppd-note {
  padding-left: 44px;
}

.sppd-issue {
  display: grid;
  grid-template-columns: 88px 14px 1fr;
  position: absolute;
  right: 0;
  top: 0;
  row-gap: 0;
  width: 300px;
}

.sppd-ppk-title,
.sppd-ppk-name {
  grid-column: 1 / -1;
}

.sppd-ppk-title {
  margin-top: 18px;
}

.sppd-ppk-name {
  margin-top: 52px;
}

.sppd-copy {
  font-size: 9pt;
  margin-top: 26px;
  width: 310px;
}

.sppd-qr {
  position: absolute;
  right: 10mm;
  bottom: 7mm;
  display: block;
}

.sppd-qr img {
  width: 24mm;
  height: 24mm;
  object-fit: contain;
}

.sppd-system-footer {
  position: absolute;
  right: 10mm;
  bottom: 4mm;
  font-size: 8pt;
  font-style: italic;
  color: #333;
}

.sppd-back-system-footer {
  bottom: 3mm;
}

.doc-page-sppd-back {
  padding: 8mm 5mm 5mm;
}

.sppd-back-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sppd-back-table td {
  border: 1px solid #111;
  font-size: 9.2pt;
  line-height: 1.18;
  padding: 5px 8px;
  vertical-align: top;
}

.sppd-back-table td:first-child,
.sppd-back-table td:last-child {
  width: 50%;
}

.sppd-back-top-row td {
  height: 61mm;
}

.sppd-back-route-row td {
  height: 42mm;
}

.sppd-back-final-row td {
  height: 48mm;
}

.sppd-back-note-row td {
  height: 8mm;
  padding: 3px 8px;
}

.sppd-back-attention-row td {
  height: 15mm;
  padding: 6px 12px;
}

.sppd-back-attention-row span {
  display: block;
  padding-left: 28px;
  margin-top: 4px;
}

.sppd-back-section {
  min-height: 100%;
  position: relative;
}

.sppd-back-section > strong {
  position: absolute;
  left: 0;
  top: 0;
}

.sppd-back-lines {
  display: grid;
  gap: 7px;
  padding-left: 22px;
}

.sppd-back-section-plain .sppd-back-lines {
  padding-left: 16px;
}

.sppd-back-lines div {
  display: grid;
  grid-template-columns: 136px 12px 1fr;
}

.sppd-back-lines .sppd-back-office-title {
  display: block;
  white-space: nowrap;
}

.sppd-back-lines b {
  font-weight: 700;
}

.sppd-back-name {
  bottom: 0;
  font-weight: 800;
  left: 22px;
  position: absolute;
  text-decoration: none;
}

.sppd-back-underlined {
  text-decoration: underline;
}

.sppd-back-ppk-name span:not(.sppd-back-underlined) {
  text-decoration: none;
}

.sppd-back-secretary-name span:not(.sppd-back-underlined) {
  text-decoration: none;
}

.sppd-back-blank-sign {
  bottom: 18px;
  left: 22px;
  position: absolute;
}

.sppd-back-blank-sign + div {
  bottom: 2px;
  left: 22px;
  position: absolute;
}

.sppd-back-ppk-title {
  margin: 18px 0 0 22px;
}

.sppd-back-check {
  font-weight: 700;
  margin: 0;
  text-align: justify;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-footer {
    left: 0;
  }

  .sidebar {
    position: static;
  }

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

  .metric-grid,
  .number-board,
  .dashboard-chart-grid,
  .theme-settings,
  .form-grid,
  .participant-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .content {
    padding: 18px;
  }

  .login-card {
    padding: 22px;
  }

  .login-logo-row {
    gap: 8px;
  }

  .login-kpu-logo {
    width: 46px;
    height: 46px;
  }

  .login-logo {
    width: 210px;
  }

  .login-brand h1 {
    font-size: 13px;
    white-space: normal;
  }

  .topbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .two-col,
  .destination-row {
    grid-template-columns: 1fr;
  }

  .public-duty-screen {
    padding: 10px;
  }

  .public-duty-card {
    padding: 14px;
    border-radius: 8px;
    box-shadow: none;
  }

  .public-duty-header {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .public-duty-header img {
    width: 42px;
    height: 48px;
  }

  .public-duty-header .eyebrow {
    font-size: 11px;
  }

  .public-duty-header h1 {
    font-size: 20px;
    line-height: 1.15;
  }

  .public-duty-mode .detail-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calendar-filter-group {
    width: 100%;
    justify-content: flex-start;
  }

  .public-duty-mode .detail-item {
    padding: 10px;
  }

  .public-duty-mode .detail-item span {
    font-size: 11px;
    margin-bottom: 3px;
  }

  .public-duty-mode .detail-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .public-duty-mode .modal-subtitle {
    font-size: 17px;
    margin: 16px 0 8px;
  }

  .public-duty-mode .table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .public-duty-mode .table-wrap table {
    min-width: 720px;
    border: 0;
    box-shadow: none;
  }

  .public-duty-mode .table-wrap th,
  .public-duty-mode .table-wrap td {
    padding: 10px;
    font-size: 13px;
    vertical-align: top;
  }

  .badge-inline {
    margin-left: 0;
    margin-top: 4px;
  }
}

@media print {
  @page {
    margin: 0;
    size: 215mm 330mm;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    width: 215mm;
    height: auto;
  }

  body > :not(#print-root):not(.mobile-print-screen) {
    display: none !important;
  }

  body.mobile-print-mode > :not(.mobile-print-screen) {
    display: none !important;
  }

  body.mobile-print-mode .mobile-print-screen > :not(#mobile-print-content) {
    display: none !important;
  }

  .mobile-print-toolbar {
    display: none;
  }

  body.mobile-print-mode #mobile-print-content {
    display: block;
    margin: 0;
    padding: 0;
    width: 215mm;
    max-width: none;
    overflow: visible;
  }

  #print-root {
    display: block;
    margin: 0;
    padding: 0;
    width: 215mm;
  }

  #print-root .doc-page-sppd,
  body.mobile-print-mode #mobile-print-content .doc-page-sppd {
    break-after: avoid;
    page-break-after: avoid;
  }
}
