:root {
  --primary: #0b63ce;
  --primary-dark: #084b9f;
  --sky: #eaf4ff;
  --white: #ffffff;
  --text: #15324b;
  --muted: #6b7c8f;
  --danger: #e53e3e;
  --success: #16a34a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.95), transparent 25%),
    radial-gradient(circle at 85% 25%, rgba(11,99,206,.25), transparent 30%),
    linear-gradient(135deg, #eaf4ff 0%, #ffffff 45%, #d9ecff 100%);
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(4px);
  opacity: .55;
  animation: float 7s ease-in-out infinite;
  z-index: 0;
}

.shape-1 { width: 240px; height: 240px; background: #8cc7ff; top: -70px; right: -60px; }
.shape-2 { width: 160px; height: 160px; background: #0b63ce; bottom: 40px; left: -50px; animation-delay: 1.4s; }
.shape-3 { width: 90px; height: 90px; background: #ffffff; top: 55%; right: 10%; animation-delay: 2.1s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.04); }
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.card {
  width: min(100%, 440px);
  background: rgba(255,255,255,.83);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(8, 75, 159, .18);
  backdrop-filter: blur(18px);
  padding: 34px;
  animation: popIn .65s ease both;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(28px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.brand {
  text-align: center;
  margin-bottom: 26px;
}

.logo {
  width: 78px;
  height: 78px;
  margin: 0 auto 14px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #3ba5ff);
  color: var(--white);
  font-size: 36px;
  box-shadow: 0 16px 34px rgba(11,99,206,.33);
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

h1 { margin: 0; font-size: 28px; letter-spacing: -.5px; }
.brand p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.input-wrap { position: relative; }
.input-wrap span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); opacity: .65; }
input {
  width: 100%;
  border: 1.5px solid #d7e8fb;
  border-radius: 16px;
  padding: 15px 16px 15px 48px;
  font-size: 15px;
  outline: none;
  background: rgba(255,255,255,.9);
  transition: .25s;
}
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11,99,206,.12);
}

.btn {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #39a6ff);
  box-shadow: 0 16px 28px rgba(11,99,206,.27);
  transition: .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 36px rgba(11,99,206,.34); }

.link { text-align: center; margin-top: 20px; color: var(--muted); font-size: 14px; }
a { color: var(--primary); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }

.alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 14px;
}
.alert-danger { background: #fff1f1; color: #a61b1b; border: 1px solid #ffd1d1; }
.alert-success { background: #effff4; color: #126b2f; border: 1px solid #c7f7d4; }

.dashboard {
  min-height: 100vh;
  padding: 32px;
  position: relative;
  z-index: 1;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 24px;
  padding: 18px 22px;
  box-shadow: 0 18px 50px rgba(8,75,159,.12);
  backdrop-filter: blur(16px);
}
.nav-title { font-weight: 800; font-size: 20px; color: var(--primary-dark); }
.logout {
  border-radius: 14px;
  padding: 10px 16px;
  background: var(--primary);
  color: white;
}
.hero {
  margin-top: 28px;
  background: linear-gradient(135deg, rgba(11,99,206,.98), rgba(54,166,255,.9));
  color: white;
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 22px 60px rgba(8,75,159,.25);
  animation: popIn .6s ease both;
}
.hero h2 { margin: 0 0 10px; font-size: 34px; }
.hero p { margin: 0; opacity: .92; }
.grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.stat {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(8,75,159,.12);
}
.stat small { color: var(--muted); }
.stat strong { display: block; margin-top: 8px; font-size: 28px; color: var(--primary-dark); }

@media (max-width: 520px) {
  .card { padding: 26px 22px; border-radius: 24px; }
  .nav { align-items: flex-start; flex-direction: column; }
  .hero h2 { font-size: 28px; }
}

/* Layout aplikasi */
.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}
.sidebar {
  min-height: calc(100vh - 64px);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 22px 60px rgba(8,75,159,.14);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 32px;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  margin-bottom: 12px;
  border-bottom: 1px solid #d7e8fb;
}
.sidebar-brand strong { display: block; color: var(--primary-dark); }
.sidebar-brand span { display: block; color: var(--muted); font-size: 12px; }
.mini-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #3ba5ff);
  box-shadow: 0 12px 26px rgba(11,99,206,.25);
}
.menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--text);
  font-weight: 700;
  transition: .25s;
}
.menu-link:hover, .menu-link.active {
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, var(--primary), #39a6ff);
  box-shadow: 0 14px 28px rgba(11,99,206,.24);
  transform: translateX(4px);
}
.menu-link.disabled {
  opacity: .55;
  pointer-events: none;
}
.menu-logout {
  display: none;
  margin-top: 18px;
  text-align: center;
}
.content-area { min-width: 0; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 12px;
  font-weight: 800;
  opacity: .82;
}
.hero-dashboard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.hero-action {
  flex: 0 0 auto;
  color: var(--primary-dark);
  background: white;
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 16px 36px rgba(2,35,75,.16);
}
.hero-action:hover { text-decoration: none; transform: translateY(-2px); }
.menu-cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.feature-card {
  display: block;
  min-height: 190px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 18px 44px rgba(8,75,159,.12);
  transition: .25s;
}
.feature-card:hover {
  text-decoration: none;
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(8,75,159,.18);
}
.feature-card span { font-size: 38px; }
.feature-card h3 { margin: 16px 0 8px; color: var(--primary-dark); }
.feature-card p { margin: 0; color: var(--muted); }
.feature-card.locked { opacity: .72; }

/* Barang masuk */
.mini-hero { padding: 28px; }
.mini-hero h2 { font-size: 28px; }
.form-panel, .recent-panel {
  margin-top: 24px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.96);
  box-shadow: 0 22px 60px rgba(8,75,159,.13);
  backdrop-filter: blur(18px);
}
.date-card {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.no-margin { margin-bottom: 0; }
.date-preview {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  color: var(--primary-dark);
  font-weight: 800;
  background: linear-gradient(135deg, #eaf4ff, #ffffff);
  border: 1px solid #d7e8fb;
}
.table-form { display: grid; gap: 16px; }
.item-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr .7fr .75fr 1fr 42px;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(234,244,255,.92), rgba(255,255,255,.96));
  border: 1px solid #d7e8fb;
  animation: popIn .4s ease both;
}
select, input[type="date"], input[type="number"], input[type="text"] {
  width: 100%;
  border: 1.5px solid #d7e8fb;
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 15px;
  outline: none;
  background: rgba(255,255,255,.9);
  transition: .25s;
  font-family: inherit;
  color: var(--text);
}
select:focus, input[type="date"]:focus, input[type="number"]:focus, input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11,99,206,.12);
}
.file-camera {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}
.camera-btn, .btn-secondary {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 800;
  cursor: pointer;
  color: var(--primary-dark);
  background: #ffffff;
  border: 1.5px solid #d7e8fb;
  box-shadow: 0 12px 24px rgba(8,75,159,.09);
  transition: .25s;
}
.camera-btn:hover, .btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}
.preview-img {
  display: none;
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 10px;
  border: 2px solid white;
  box-shadow: 0 12px 24px rgba(8,75,159,.12);
}
.remove-row {
  margin-top: 30px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  color: #a61b1b;
  background: #fff1f1;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: .25s;
}
.remove-row:hover { transform: rotate(8deg) scale(1.05); background: #ffdada; }
.form-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
}
.save-btn { height: 52px; }
.recent-panel h3 { margin: 0 0 16px; color: var(--primary-dark); }
.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.recent-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #d7e8fb;
}
.recent-card img, .empty-photo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  background: #eaf4ff;
  display: grid;
  place-items: center;
  font-size: 26px;
}
.recent-card strong { display: block; color: var(--primary-dark); }
.recent-card span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; min-height: auto; }
  .menu-logout { display: block; }
  .desktop-logout { display: none; }
  .hero-dashboard, .date-card { grid-template-columns: 1fr; display: grid; }
  .item-row { grid-template-columns: 1fr; }
  .remove-row { margin-top: 0; width: 100%; }
}
@media (max-width: 560px) {
  .dashboard { padding: 18px; }
  .form-panel, .recent-panel { padding: 18px; border-radius: 22px; }
  .form-actions { grid-template-columns: 1fr; }
  .mini-hero h2 { font-size: 24px; }
}

/* ==============================
   FIX BARANG MASUK: gambar rapi + tombol hapus
   ============================== */
img {
  max-width: 100%;
  height: auto;
}

.table-form {
  display: grid;
  gap: 14px;
}

.item-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) 130px 150px 190px 48px;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid #d7e8fb;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 26px rgba(8,75,159,.07);
}

.camera-group {
  position: relative;
}

.preview-img {
  display: none;
  width: 100% !important;
  max-width: 160px;
  height: 92px !important;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 10px;
  border: 2px solid white;
  box-shadow: 0 12px 24px rgba(8,75,159,.12);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.section-heading h3 {
  margin-bottom: 4px;
}

.saved-list {
  display: grid;
  gap: 12px;
}

.saved-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #d7e8fb;
  box-shadow: 0 10px 22px rgba(8,75,159,.06);
}

.saved-thumb {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  overflow: hidden;
  background: #eaf4ff;
  display: grid;
  place-items: center;
  border: 1px solid #d7e8fb;
}

.saved-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.saved-thumb span {
  font-size: 28px;
}

.saved-info strong {
  display: block;
  color: var(--primary-dark, #084b9f);
  font-size: 15px;
  word-break: break-word;
}

.saved-info span {
  display: block;
  color: var(--muted, #64748b);
  font-size: 13px;
  margin-top: 4px;
}

.delete-form {
  margin: 0;
}

.btn-delete {
  border: 0;
  border-radius: 14px;
  padding: 11px 14px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 800;
  cursor: pointer;
  transition: .25s;
  white-space: nowrap;
}

.btn-delete:hover {
  background: #fecaca;
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .item-row {
    grid-template-columns: 1fr;
  }

  .preview-img {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .saved-item {
    grid-template-columns: 64px 1fr;
  }

  .saved-thumb {
    width: 64px;
    height: 64px;
  }

  .delete-form {
    grid-column: 1 / -1;
  }

  .btn-delete {
    width: 100%;
  }
}


/* ===== Perbaikan responsif gambar barang masuk ===== */
.camera-group {
  min-width: 0;
}

.preview-box {
  margin-top: 10px;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #d7e8fb;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
  display: grid;
  place-items: center;
  position: relative;
}

.preview-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.preview-img {
  display: none;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.upload-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.saved-thumb {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
}

.saved-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-item {
  grid-template-columns: 82px minmax(0, 1fr) auto;
}

.saved-info {
  min-width: 0;
}

.saved-info strong,
.saved-info span {
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .item-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .preview-box {
    max-width: 100%;
    min-height: 180px;
  }

  .remove-row {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .dashboard {
    padding: 14px;
  }

  .nav,
  .hero,
  .sidebar,
  .form-panel,
  .recent-panel {
    border-radius: 20px;
  }

  .nav {
    padding: 16px;
  }

  .hero {
    padding: 22px;
  }

  .item-row {
    padding: 14px;
    border-radius: 18px;
  }

  .camera-btn,
  .btn-secondary,
  .btn,
  .btn-delete {
    min-height: 46px;
  }

  .saved-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .saved-thumb {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 14px;
  }

  .delete-form {
    grid-column: 1 / -1;
  }

  .btn-delete {
    width: 100%;
  }
}


/* ===== Tambahan: gambar buka/download + folder periode ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-stack-mobile {
  align-items: flex-start;
}

.period-filter select {
  min-width: 240px;
}

.period-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.period-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #d7e8fb;
  box-shadow: 0 10px 22px rgba(8,75,159,.06);
}

.period-card.active {
  border-color: var(--primary);
  box-shadow: 0 16px 36px rgba(8,75,159,.12);
}

.period-card strong {
  display: block;
  color: var(--primary-dark);
  font-size: 15px;
}

.period-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.period-card-actions,
.saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #d7e8fb;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(8,75,159,.07);
  transition: .25s;
}

.btn-mini:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-mini-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), #39a6ff);
}

.saved-item-extended {
  grid-template-columns: 92px 1fr auto;
}

.saved-thumb-lg {
  width: 92px;
  height: 92px;
  border-radius: 20px;
}

.saved-thumb-lg a {
  display: block;
  width: 100%;
  height: 100%;
}

.saved-thumb-lg img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.small-text {
  font-size: 13px;
}

@media (max-width: 980px) {
  .section-stack-mobile {
    flex-direction: column;
  }

  .saved-item-extended {
    grid-template-columns: 80px 1fr;
  }

  .saved-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .period-filter,
  .period-filter select,
  .btn-mini,
  .btn-mini-primary {
    width: 100%;
  }

  .saved-item-extended {
    grid-template-columns: 1fr;
  }

  .saved-thumb-lg {
    width: 100%;
    height: 200px;
  }

  .saved-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .saved-actions .delete-form,
  .saved-actions .btn-delete {
    width: 100%;
  }
}


.nav-actions,
.section-actions,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-stack {
  display: grid;
  gap: 6px;
}

.stats-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.summary-card {
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #d7e8fb;
  box-shadow: 0 12px 28px rgba(8,75,159,.08);
}
.summary-card strong {
  display: block;
  font-size: 24px;
  color: var(--primary-dark);
}
.summary-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.daily-list {
  display: grid;
  gap: 12px;
}
.daily-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #d7e8fb;
  box-shadow: 0 10px 22px rgba(8,75,159,.06);
}
.daily-item strong { color: var(--primary-dark); }
.daily-item span { color: var(--muted); }

.report-filter,
.period-filter {
  min-width: min(100%, 320px);
}
.report-filter select,
.period-filter select {
  width: 100%;
}

.table-scroll {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid #d7e8fb;
  border-radius: 22px;
  overflow: hidden;
}
.report-table th,
.report-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e6f0fb;
}
.report-table thead th {
  background: #f3f9ff;
  color: var(--primary-dark);
  font-size: 14px;
}
.report-table tbody tr:hover {
  background: #f9fcff;
}
.report-table tbody tr:last-child td {
  border-bottom: 0;
}
.table-link {
  display: inline-flex;
  margin-right: 10px;
  margin-bottom: 4px;
}
.empty-cell {
  text-align: center !important;
  color: var(--muted);
}

.thumb-button {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: inherit;
  overflow: hidden;
}
.thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-button:hover img {
  transform: scale(1.03);
  transition: transform .2s ease;
}

.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}
.image-modal.show {
  display: block;
}
.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 23, 43, .72);
  backdrop-filter: blur(4px);
}
.image-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 920px);
  max-height: 88vh;
  margin: 4vh auto;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 30px 80px rgba(2,35,75,.35);
  display: grid;
  gap: 14px;
}
.image-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-right: 44px;
}
.image-modal-body {
  min-height: 280px;
  max-height: calc(88vh - 90px);
  overflow: auto;
  border-radius: 22px;
  background: linear-gradient(135deg, #f5faff, #ffffff);
  border: 1px solid #d7e8fb;
  display: grid;
  place-items: center;
  padding: 18px;
}
.image-modal-body img {
  width: auto;
  max-width: 100%;
  max-height: calc(88vh - 150px);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(8,75,159,.14);
}
.image-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f1;
  color: #991b1b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .nav-actions,
  .section-actions,
  .report-actions,
  .image-modal-header {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .daily-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-modal-dialog {
    width: calc(100vw - 20px);
    margin: 10px auto;
    padding: 14px;
    border-radius: 22px;
  }

  .image-modal-body {
    padding: 12px;
  }

  .image-modal-close {
    top: 10px;
    right: 10px;
  }
}
