:root{
  --kns-gap:14px;
  --kns-accent:#7FC7D2;        /* tosca diminta */
  --kns-accent-soft:#e9f6f8;   /* latar terang tidak mencolok */
  --kns-text:#1d2939;          /* tulisan gelap */
}

.kns-wrap{
  font-family:"Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.6; font-size:15px; color:var(--kns-text);
}
.kns-grid{ display:grid; gap:var(--kns-gap); }
.kns-2col{ grid-template-columns:1fr; }
@media(min-width:900px){ .kns-2col{ grid-template-columns:2fr 1fr; } }

.kns-card{
  background:#fff; border:1px solid #e7e8ea; border-radius:12px; padding:16px;
  box-shadow:0 1px 3px rgba(0,0,0,.03);
}

.kns-form label{ font-weight:600; display:block; margin-top:10px; }
.kns-form input[type="text"],
.kns-form input[type="date"],
.kns-form input[type="password"],
.kns-form input[type="email"],
.kns-form select,
.kns-form textarea{
  width:100%; padding:10px 12px; border:1px solid #cfd3d9; border-radius:10px; line-height:1.5;
}

.kns-btn{
  display:inline-block; padding:10px 16px; border-radius:10px;
  border:1px solid #44a3b1; background: linear-gradient(180deg, #7FC7D2, #53b7c7);
  color:#08323a; font-weight:700; cursor:pointer;
}

.kns-note{ padding:10px 12px; border-radius:10px; background:var(--kns-accent-soft); border:1px solid #cfeaed; }
.kns-error{ padding:10px 12px; border-radius:10px; background:#fff5f5; border:1px solid #ffd7d7; color:#c00; }

.kns-table{ width:100%; border-collapse:collapse; }
.kns-table th, .kns-table td{ padding:10px 8px; border-bottom:1px solid #eee; text-align:left; vertical-align:top; }
.kns-table th{ background:#f8fafc; font-weight:700; }

.kns-chipbar{ display:flex; gap:8px; flex-wrap:wrap; }
.kns-chip{ padding:6px 10px; background:#eef3ff; border:1px solid #dbe4ff; color:#1a3db8; border-radius:999px; font-size:12px; font-weight:600; }

.kns-highlight{ outline:2px solid #f90; background:#fffaf0; }

.kns-header-strip{
  background:var(--kns-accent-soft);
  border:1px dashed var(--kns-accent);
  color:var(--kns-text);
  padding:10px 12px; border-radius:10px; font-weight:700;
}

/* Khusus Form Entri: panel biru tosca */
.kns-entry-panel{
  background:var(--kns-accent-soft);
  border:1px solid #cfeaed;
  border-radius:12px; padding:14px;
}
/* Block identitas pegawai pada form Entri */
.kns-emp-block{ display:flex; flex-direction:column; gap:2px; }
.kns-emp-name{ font-size:18px; font-weight:800; color:var(--kns-text); }
.kns-emp-name .kns-label{ font-weight:800; margin-right:6px; }
.kns-emp-role{ font-size:14px; color:#0b6ea9; font-weight:700; }
.kns-table td:first-child, .kns-table th:first-child{
  white-space: nowrap;
  font-weight: 700;
}
.kns-card canvas{width:100% !important; display:block;}
/* Tabel ringkas satu baris (judul ellipsis) */
.kns-table.table-fixed{ table-layout: fixed; }
.kns-table.table-fixed th:nth-child(1),
.kns-table.table-fixed td:nth-child(1){ width:120px; white-space:nowrap; }
.kns-ellipsis{ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Modal detail */
.kns-modal{ position:fixed; inset:0; z-index:9999; }
.kns-modal[hidden]{ display:none; }
.kns-modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.35); }
.kns-modal-dialog{
  position:relative; max-width:720px; margin:8vh auto; background:#fff;
  border-radius:12px; border:1px solid #e7e8ea; box-shadow:0 8px 24px rgba(0,0,0,.15);
}
.kns-modal-header{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 16px; border-bottom:1px solid #eef2f5; background:#f8fafc;
}
.kns-modal-close{
  border:1px solid #cfd3d9; background:#fff; border-radius:8px; width:32px; height:32px;
  cursor:pointer; font-size:18px; line-height:1;
}
.kns-modal-body{ padding:16px; }
.kns-modal-meta{ color:#475467; margin-bottom:8px; }
.kns-modal-content p{ margin:0 0 10px; }
body.kns-modal-open{ overflow:hidden; }

