/*
 * BOS REPORT — MODERN V2
 * Standalone stylesheet for preview/migration.
 * No dependency on modern.css or style.css. Original stylesheets remain untouched.
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --bos-primary: #008B8B;
  --bos-primary-dark: #006f70;
  --bos-primary-soft: #e5f5f4;
  --bos-gold: #FFD700;
  --bos-bg: #F0F8FF;
  --bos-white: #FFFFFF;
  --bos-ink: #17252b;
  --bos-muted: #65777d;
  --bos-line: #dce9ec;
  --bos-success: #16845b;
  --bos-danger: #c33d50;
  --bos-radius: 18px;
  --bos-shadow: 0 10px 30px rgba(16, 54, 60, .07);
  --bos-shadow-hover: 0 16px 36px rgba(0, 90, 92, .13);
  font-family: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--bos-ink);
  background: var(--bos-bg);
  font-family: inherit;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--bos-primary-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

::selection {
  background: rgba(0, 139, 139, .18);
}

:focus-visible {
  outline: 3px solid rgba(0, 139, 139, .28);
  outline-offset: 2px;
}

/* APP FRAME */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: 270px;
  min-width: 270px;
  min-height: 100vh;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  color: #d9eeee;
  background: linear-gradient(165deg, #073f43 0%, #062f34 52%, #08272c 100%);
  border-right: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 8px 0 28px rgba(8, 48, 52, .08);
  transition: transform .25s ease, width .25s ease, min-width .25s ease, padding .25s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 9px 21px;
  margin-bottom: 22px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.brand-mark.small {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #073f43;
  background: linear-gradient(145deg, #fff, #d9f2ef);
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.brand span b {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand span small {
  display: block;
  margin-top: 2px;
  color: #a9c9c9;
  font-size: .7rem;
}

.nav-label {
  margin: 0 11px 10px;
  color: #8eb7b7;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.sidebar nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
}

/* SIDEBAR MENU */
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 56px;
  padding: 7px 12px;
  color: #b7d0d0;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 650;
  transition: background .22s ease, color .22s ease, transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .12);
  transform: translateX(4px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
}

.nav-link.active {
  color: #063c40;
  background: linear-gradient(110deg, #fff 0%, #e5f5f4 100%);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .13);
}

/* LARGE UNICODE / EMOJI ICONS */
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .10);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 30px;
  line-height: 1;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.nav-link:hover .nav-icon {
  transform: scale(1.14) rotate(-4deg);
  background: rgba(255, 255, 255, .17);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}

.nav-link.active .nav-icon {
  background: rgba(0, 139, 139, .12);
}

.nav-link.active:hover .nav-icon {
  transform: scale(1.1);
  background: rgba(0, 139, 139, .18);
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px;
  color: #d7e9e8;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  font-size: .74rem;
  overflow-wrap: anywhere;
}

.sidebar-foot .dev-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.sidebar-foot .pulse-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #54d69a;
  box-shadow: 0 0 0 4px rgba(84, 214, 154, .14);
}

.sidebar-foot small {
  display: block;
  margin-top: 7px;
  color: #9fc1c1;
  font-size: .7rem;
}

.main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  background: var(--bos-bg);
}

/* TOPBAR AND PROFILE */
.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 13px 30px;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid var(--bos-line);
  backdrop-filter: blur(16px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.eyebrow {
  display: block;
  color: var(--bos-primary-dark);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .11em;
}

.eyebrow.light {
  color: rgba(255, 255, 255, .82);
}

.topbar h2 {
  margin: 3px 0 0;
  color: #18363a;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.mobile-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  white-space: nowrap;
}

.profile-wrap {
  position: relative;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  color: var(--bos-ink);
  background: #fff;
  border: 1px solid var(--bos-line);
  border-radius: 13px;
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.profile-button:hover {
  border-color: #a8d2d0;
  box-shadow: var(--bos-shadow);
}

.profile-button .avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 11px;
  color: #fff;
  background: var(--bos-primary);
  font-weight: 800;
}

.profile-button .avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.profile-name {
  text-align: left;
  font-size: .8rem;
  font-weight: 800;
}

.profile-name small {
  display: block;
  color: var(--bos-muted);
  font-size: .68rem;
  font-weight: 500;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 60;
  display: none;
  min-width: 205px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--bos-line);
  border-radius: 13px;
  box-shadow: var(--bos-shadow-hover);
}

.profile-menu.open,
.profile-menu.show {
  display: block;
}

.profile-menu a {
  display: block;
  padding: 10px 11px;
  color: #345057;
  border-radius: 9px;
  text-decoration: none;
  font-size: .8rem;
}

.profile-menu a:hover {
  color: var(--bos-primary-dark);
  background: var(--bos-primary-soft);
}

.content {
  width: 100%;
  max-width: 1680px;
  flex: 1;
  margin: 0 auto;
  padding: 28px 30px 34px;
}

.main > footer {
  padding: 17px 24px;
  color: #789096;
  background: rgba(255, 255, 255, .72);
  border-top: 1px solid var(--bos-line);
  text-align: center;
  font-size: .73rem;
}

.theme-preview-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  padding: 10px 14px;
  color: #31575b;
  background: #e8f6f4;
  border: 1px solid #c8e8e4;
  border-radius: 12px;
  font-size: .76rem;
}

.theme-preview-notice a {
  flex: 0 0 auto;
  color: #006e70;
  font-weight: 800;
  text-decoration: none;
}

.theme-preview-notice a:hover {
  text-decoration: underline;
}

/* DASHBOARD */
.welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 190px;
  margin-bottom: 23px;
  padding: 30px 34px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg, #006f70 0%, #008b8b 54%, #16a6a0 100%);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(0, 111, 112, .18);
}

.welcome::after {
  position: absolute;
  top: -105px;
  right: 12%;
  width: 280px;
  height: 280px;
  content: '';
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255, 255, 255, .045), 0 0 0 72px rgba(255, 255, 255, .035);
  pointer-events: none;
}

.welcome h1 {
  position: relative;
  z-index: 1;
  margin: 8px 0 7px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.045em;
}

.welcome p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: .87rem;
}

.welcome-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  flex: 0 0 128px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 28px;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  transform: rotate(5deg);
  backdrop-filter: blur(8px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 29px;
}

.stat-card {
  position: relative;
  min-width: 0;
  padding: 21px 23px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bos-line);
  border-radius: var(--bos-radius);
  box-shadow: var(--bos-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bos-shadow-hover);
}

.stat-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: '';
  background: var(--bos-primary);
}

.stat-card:nth-child(2)::before {
  background: #27a77b;
}

.stat-card:nth-child(3)::before {
  background: var(--bos-gold);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-card span {
  color: #557077;
  font-size: .8rem;
  font-weight: 700;
}

.stat-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--bos-primary-dark);
  background: var(--bos-primary-soft);
  border-radius: 11px;
  font-size: 1.05rem;
}

.stat-card:nth-child(2) .stat-badge {
  color: #16845b;
  background: #e8f7f0;
}

.stat-card:nth-child(3) .stat-badge {
  color: #8b6d00;
  background: #fff8d9;
}

.stat-card strong {
  display: block;
  margin: 8px 0 4px;
  color: #18363a;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.stat-card small {
  color: #81969b;
  font-size: .72rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 15px;
}

.section-heading h3 {
  margin: 0;
  color: #18363a;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--bos-muted);
  font-size: .78rem;
}

/* PANELS, FORMS, BUTTONS */
.panel {
  min-width: 0;
  margin-bottom: 20px;
  padding: 23px;
  background: #fff;
  border: 1px solid var(--bos-line);
  border-radius: var(--bos-radius);
  box-shadow: var(--bos-shadow);
}

.panel h3 {
  margin: 0 0 8px;
  color: #1d3b40;
  font-size: 1rem;
  font-weight: 800;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: #3d5960;
  font-size: .78rem;
  font-weight: 700;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="url"],
input[type="password"],
input:not([type]),
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  color: #1e383d;
  background: #fff;
  border: 1px solid #cbdde0;
  border-radius: 10px;
  outline: none;
  font-size: .84rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--bos-primary);
  box-shadow: 0 0 0 3px rgba(0, 139, 139, .12);
}

input::placeholder,
textarea::placeholder {
  color: #9aadb1;
}

input[type="file"] {
  max-width: 100%;
  padding: 9px;
  background: #f8fcfc;
  border: 1px dashed #b7d1d3;
  border-radius: 10px;
  font-size: .76rem;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .wide,
.form-grid .form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid #e8f0f1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 14px;
  color: #315158;
  background: #fff;
  border: 1px solid #cbdde0;
  border-radius: 10px;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(17, 77, 81, .10);
}

.btn:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(115deg, #007b7c, #009b96);
  border-color: transparent;
  box-shadow: 0 5px 13px rgba(0, 139, 139, .19);
}

.btn.primary:hover {
  background: linear-gradient(115deg, #006b6d, #008b8b);
  box-shadow: 0 8px 18px rgba(0, 139, 139, .24);
}

.btn.secondary {
  color: #087476;
  background: #eaf6f5;
  border-color: #cce8e5;
}

.btn.secondary:hover {
  background: #dff1ef;
  border-color: #a8d8d3;
}

.btn.ghost {
  color: #5d7479;
  background: transparent;
  border-color: transparent;
}

.btn.ghost:hover {
  color: #006f70;
  background: #edf7f6;
}

.btn.small {
  min-height: 31px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: .7rem;
}

.btn.full {
  width: 100%;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filterbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--bos-line);
  border-radius: 15px;
  box-shadow: var(--bos-shadow);
}

.filterbar form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.filterbar label,
.filterbar input,
.filterbar select {
  min-width: 130px;
}

.import-panel form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.import-panel form > div {
  flex: 1;
  min-width: 190px;
}

.import-panel small {
  display: block;
  margin-top: 6px;
  color: var(--bos-muted);
  font-size: .72rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.settings-grid .panel form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 15px;
}

.upload-preview {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--bos-line);
  border-radius: 10px;
}

.kop-preview {
  width: 100%;
  max-height: 90px;
  object-fit: contain;
  margin-top: 12px;
  border: 1px solid var(--bos-line);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 15px;
}

/* BKU TOOLBAR */
.section-heading:has(.bku-toolbar-layout) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
}

.bku-toolbar-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  width: 100%;
  margin-top: 4px;
}

.bku-toolbar-layout .bukti-toolbar,
.bku-toolbar-layout .bukti-print-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  background: #f9fcfc;
  border: 1px solid var(--bos-line);
  border-radius: 13px;
}

.bku-toolbar-layout label {
  flex: 1;
  min-width: 120px;
  margin: 0;
}

.bku-toolbar-layout input,
.bku-toolbar-layout select {
  min-width: 0;
  height: 39px;
}

.bku-toolbar-layout .btn {
  min-height: 39px;
  white-space: nowrap;
}

.bukti-toolbar input {
  width: 180px;
  max-width: 100%;
}

.bukti-print-form select {
  min-width: 180px;
}

@media (max-width: 640px) {
  .toolbar.bku-toolbar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-height: 0;
    height: auto;
  }

  .bku-toolbar-layout .bukti-toolbar,
  .bku-toolbar-layout .bukti-print-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    height: auto;
    min-height: 0;
  }

  /* Paksa flex-basis kembali auto agar tidak menjadi tinggi 180px/200px */
  .bku-toolbar-layout label {
    flex: 0 0 auto !important;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    margin: 0;
    font-size: 12px;
  }

  .bku-toolbar-layout input,
  .bku-toolbar-layout select {
    width: 100%;
    min-width: 0;
    height: 32px;
    font-size: 12.5px;
    padding: 4px 8px;
  }

  .bku-toolbar-layout .btn {
    width: 100%;
    min-height: 32px;
    height: 32px;
    padding: 4px 10px;
    font-size: 12px;
  }
}

/* TABLES */
.table-panel {
  padding: 0;
  overflow: hidden;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .78rem;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 13px 14px;
  color: #476269;
  background: #edf6f6;
  border-bottom: 1px solid #d6e7e8;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: .66rem;
  font-weight: 800;
  white-space: nowrap;
}

tbody td {
  max-width: 320px;
  padding: 12px 14px;
  color: #314d53;
  border-bottom: 1px solid #edf2f3;
  vertical-align: middle;
}

tbody tr {
  transition: background .15s ease;
}

tbody tr:hover {
  background: #f5fbfa;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  white-space: nowrap;
}

.actions form {
  display: inline;
}

.actions .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  color: #087476;
  background: #eaf6f5;
  border: 1px solid #cce8e5;
  border-radius: 8px;
  text-decoration: none;
  font-size: .7rem;
  font-weight: 800;
}

.actions .action-button.primary {
  color: #fff;
  background: var(--bos-primary);
}

.actions .action-button.secondary {
  color: #087476;
  background: #eaf6f5;
}

.bukti-pill {
  display: inline-block;
  padding: 4px 8px;
  color: #006f70;
  background: #e5f5f4;
  border: 1px solid #c8e8e4;
  border-radius: 7px;
  font-size: .72rem;
  font-weight: 800;
}

.money-cell {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.empty {
  padding: 34px;
  color: var(--bos-muted);
  text-align: center;
}

.group-list {
  margin-top: 12px;
}

.group-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid #e8f0f1;
}

.group-row:last-child {
  border-bottom: 0;
}

.group-row > div {
  flex: 1;
  min-width: 0;
}

.group-row small {
  display: block;
  margin-top: 4px;
  color: var(--bos-muted);
  font-size: .72rem;
}

/* ALERTS AND MODALS */
.alert {
  margin-bottom: 15px;
  padding: 12px 15px;
  border-radius: 11px;
  font-size: .8rem;
}

.alert.success {
  color: #126846;
  background: #eaf8f0;
  border: 1px solid #c7ead7;
}

.alert.danger {
  color: #a72f42;
  background: #fff0f1;
  border: 1px solid #f4d0d5;
}

.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 35, 39, .58);
  backdrop-filter: blur(5px);
}

.modal-backdrop.hidden {
  display: none !important;
}

#docModal:not(.hidden) {
  display: grid !important;
  place-items: center !important;
  align-content: center;
  justify-content: center;
}

.modal {
  width: min(760px, 100%);
  max-height: 92vh;
  padding: 23px;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 19px;
  box-shadow: 0 24px 70px rgba(4, 35, 39, .28);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--bos-line);
}

.modal-head h3 {
  margin: 3px 0 0;
}

.close-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #466168;
  background: #edf6f6;
  border: 0;
  border-radius: 10px;
  font-size: 1.3rem;
  cursor: pointer;
}

.close-btn:hover {
  color: #005f61;
  background: #dcefed;
}

/* TOASTS */
#bos-toast-region {
  position: fixed;
  top: 96px;
  right: 22px;
  z-index: 1200;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

#bos-toast-region .alert {
  position: relative;
  margin: 0;
  padding: 14px 42px 14px 16px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 14px 36px rgba(13, 52, 56, .18);
  pointer-events: auto;
  animation: bos-toast-in .25s ease both;
}

#bos-toast-region .alert.success {
  border-left: 4px solid #1b9a69;
}

#bos-toast-region .alert.danger {
  border-left: 4px solid #d14c5c;
}

.bos-toast-close {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 27px;
  height: 27px;
  color: #62777b;
  background: #f0f5f5;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

@keyframes bos-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bos-toast-out {
  to {
    opacity: 0;
    transform: translateX(15px);
  }
}

/* LOGIN */
body.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  min-height: 100vh;
  padding: 0;
  background: var(--bos-bg);
}

.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(30px, 5vw, 68px);
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 15% 18%, #0a9994 0%, #07575b 37%, #06383d 100%);
}

.login-visual::before,
.login-visual::after {
  position: absolute;
  content: '';
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}

.login-visual::before {
  top: -180px;
  right: -100px;
  width: 520px;
  height: 520px;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .035), 0 0 0 85px rgba(255, 255, 255, .025);
}

.login-visual::after {
  bottom: -210px;
  left: -120px;
  width: 430px;
  height: 430px;
}

.login-visual-badge {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 9px 14px;
  color: #e9ffff;
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  backdrop-filter: blur(10px);
}

.login-visual-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: auto 0;
}

.login-visual-content h2 {
  max-width: 620px;
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.055em;
}

.login-visual-content p {
  max-width: 570px;
  margin: 0 0 25px;
  color: #d3e9e8;
  font-size: .94rem;
}

.login-feature-list {
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.login-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: #e9f6f5;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  font-size: .82rem;
}

.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 35px 24px;
  background: linear-gradient(145deg, #f4fbfc, #eaf5f7);
}

.login-card {
  width: min(440px, 100%);
  padding: clamp(25px, 4vw, 42px);
  background: rgba(255, 255, 255, .94);
  border: 1px solid #dcebed;
  border-radius: 22px;
  box-shadow: 0 20px 55px rgba(12, 76, 82, .10);
}

.login-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 23px;
}

.login-school-logo,
.login-card .brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
  padding: 5px;
  color: #fff;
  background: #fff;
  border: 1px solid var(--bos-line);
  border-radius: 14px;
  font-size: 1.5rem;
  font-weight: 800;
}

.login-card .brand-mark {
  background: var(--bos-primary);
  border-color: transparent;
}

.login-card h1 {
  margin: 3px 0 0;
  color: #18363a;
  font-size: 1.55rem;
  letter-spacing: -.04em;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 23px;
}

.login-card label {
  gap: 7px;
}

.login-card input {
  min-height: 45px;
}

.login-theme-switch {
  margin: 13px 0 0;
  text-align: center;
  font-size: .72rem;
}

.login-theme-switch a {
  color: var(--bos-primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.login-theme-switch a:hover {
  text-decoration: underline;
}

/* DESKTOP COLLAPSED / EXPANDED SIDEBAR */
@media (min-width: 761px) {
  .app-shell.sidebar-collapsed .sidebar {
    width: 82px;
    min-width: 82px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .app-shell.sidebar-collapsed .brand {
    justify-content: center;
    gap: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .app-shell.sidebar-collapsed .brand > span:not(.brand-mark),
  .app-shell.sidebar-collapsed .nav-label,
  .app-shell.sidebar-collapsed .sidebar-foot .dev-tag span:last-child,
  .app-shell.sidebar-collapsed .sidebar-foot small {
    display: none !important;
  }

  .app-shell.sidebar-collapsed .brand-mark {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0 auto;
  }

  .app-shell.sidebar-collapsed .nav-link {
    justify-content: center;
    gap: 0;
    padding: 6px;
    font-size: 0;
  }

  .app-shell.sidebar-collapsed .nav-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    flex: 0 0 44px;
    font-size: 29px;
  }

  .app-shell.sidebar-collapsed .nav-link:hover {
    transform: translateY(-2px);
  }

  .app-shell.sidebar-collapsed .sidebar-foot {
    padding: 10px;
    text-align: center;
  }

  .app-shell.sidebar-collapsed .sidebar-foot .dev-tag {
    justify-content: center;
  }

  .bos-sidebar-backdrop {
    display: none !important;
  }
}

/* TABLET */
@media (max-width: 1080px) and (min-width: 761px) {
  .sidebar {
    width: 238px;
    min-width: 238px;
  }

  .app-shell.sidebar-collapsed .sidebar {
    width: 82px;
    min-width: 82px;
  }

  .content {
    padding: 24px;
  }

  .topbar {
    padding-right: 24px;
    padding-left: 24px;
  }

  .stats {
    gap: 13px;
  }
}

@media (max-width: 820px) {
  body.login-page {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-form-side {
    min-height: 100vh;
  }
}

/* MOBILE */
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(285px, 84vw);
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 22px 16px;
    transform: translateX(-105%);
    box-shadow: 16px 0 40px rgba(0, 0, 0, .18);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .app-shell.sidebar-collapsed .sidebar {
    width: min(285px, 84vw);
    min-width: 0;
  }

  .mobile-menu {
    display: inline-flex;
    min-height: 36px;
    padding: 7px 10px;
  }

  .topbar {
    position: sticky;
    min-height: 72px;
    padding: 11px 14px;
    gap: 8px;
  }

  .topbar-left {
    gap: 9px;
  }

  .topbar h2 {
    font-size: .96rem;
  }

  .topbar .eyebrow {
    font-size: .56rem;
  }

  .profile-button {
    gap: 0;
    padding: 5px;
  }

  .profile-button .avatar {
    width: 34px;
    height: 34px;
  }

  .profile-name {
    display: none;
  }

  .content {
    padding: 17px 14px 24px;
  }

  .theme-preview-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    font-size: .7rem;
  }

  .welcome {
    min-height: 0;
    padding: 22px 20px;
  }

  .welcome p {
    max-width: 100%;
    font-size: .78rem;
  }

  .welcome-art {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 18px;
    font-size: .75rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 23px;
  }

  .stat-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 15px 17px;
  }

  .stat-card-top {
    grid-column: 1;
  }

  .stat-card strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0 0 0 10px;
    font-size: 1.1rem;
    text-align: right;
  }

  .stat-card small {
    grid-column: 1;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading .toolbar {
    width: 100%;
  }

  .section-heading .toolbar .btn {
    flex: 1;
  }

  .panel {
    padding: 16px;
  }

  .form-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide,
  .form-grid .form-actions {
    grid-column: 1;
  }

  .form-actions .btn {
    flex: 1 1 auto;
  }

  .filterbar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .filterbar form {
    align-items: stretch;
    flex-direction: column;
  }

  .filterbar label,
  .filterbar input,
  .filterbar select {
    width: 100%;
    min-width: 0;
  }

  .bku-toolbar-layout {
    grid-template-columns: 1fr;
  }

  .bku-toolbar-layout .bukti-toolbar,
  .bku-toolbar-layout .bukti-print-form {
    align-items: stretch;
    flex-direction: column;
  }

  .bku-toolbar-layout .btn,
  .bku-toolbar-layout label,
  .bukti-toolbar input,
  .bukti-print-form select {
    width: 100%;
    min-width: 0;
  }

  .import-panel form {
    align-items: stretch;
    flex-direction: column;
  }

  .group-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .group-row > div {
    flex-basis: 100%;
  }

  .modal {
    padding: