@charset "UTF-8";
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}
.btn-outline-primary {
  background-color: transparent;
  border-color: #2563eb;
  color: #2563eb;
}
.btn-outline-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.btn-secondary {
  background-color: #d1d5db;
  border-color: #d1d5db;
  color: #1f2937;
}
.btn-secondary:hover {
  background-color: #9ca3af;
  border-color: #9ca3af;
}
.btn-outline-secondary {
  background-color: transparent;
  border-color: #9ca3af;
  color: #9ca3af;
}
.btn-outline-secondary:hover {
  background-color: #9ca3af;
  border-color: #9ca3af;
  color: #1f2937;
}
.btn-success {
  background-color: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.btn-success:hover {
  background-color: #15803d;
  border-color: #15803d;
}
.btn-outline-success {
  background-color: transparent;
  border-color: #16a34a;
  color: #16a34a;
}
.btn-outline-success:hover {
  background-color: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.btn-danger {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.btn-danger:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
}
.btn-outline-danger {
  background-color: transparent;
  border-color: #dc2626;
  color: #dc2626;
}
.btn-outline-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.btn-warning {
  background-color: #eab308;
  border-color: #eab308;
  color: #1f2937;
}
.btn-warning:hover {
  background-color: #ca8a04;
  border-color: #ca8a04;
}
.btn-outline-warning {
  background-color: transparent;
  border-color: #ca8a04;
  color: #ca8a04;
}
.btn-outline-warning:hover {
  background-color: #ca8a04;
  border-color: #ca8a04;
  color: #1f2937;
}
.btn-info {
  background-color: #06b6d4;
  border-color: #06b6d4;
  color: #fff;
}
.btn-info:hover {
  background-color: #0891b2;
  border-color: #0891b2;
}
.btn-outline-info {
  background-color: transparent;
  border-color: #06b6d4;
  color: #06b6d4;
}
.btn-outline-info:hover {
  background-color: #06b6d4;
  border-color: #06b6d4;
  color: #fff;
}
.btn-dark {
  background-color: #1f2937;
  border-color: #1f2937;
  color: #fff;
}
.btn-dark:hover {
  background-color: #111827;
  border-color: #111827;
}
.btn-outline-dark {
  background-color: transparent;
  border-color: var(--outline-dark);
  color: var(--outline-dark);
}
.btn-outline-dark:hover {
  background-color: var(--outline-dark);
  border-color: var(--outline-dark);
  color: var(--outline-dark-text);
}
.btn-kohimori {
  background-color: #1f3b2c;
  border-color: #1f3b2c;
  color: #fff;
}
.btn-kohimori:hover {
  background-color: #152b1f;
  border-color: #152b1f;
}
.btn-outline-kohimori {
  background-color: transparent;
  border-color: var(--outline-kohimori);
  color: var(--outline-kohimori);
}
.btn-outline-kohimori:hover {
  background-color: var(--outline-kohimori);
  border-color: var(--outline-kohimori);
  color: var(--outline-kohimori-text);
}
.btn-kohimorisecond {
  background-color: #d6c7a1;
  border-color: #d6c7a1;
  color: #1f2937;
}
.btn-kohimorisecond:hover {
  background-color: #a1936d;
  border-color: #a1936d;
}
.btn-outline-kohimorisecond {
  background-color: transparent;
  border-color: #a1936d;
  color: #a1936d;
}
.btn-outline-kohimorisecond:hover {
  background-color: #a1936d;
  border-color: #a1936d;
  color: #1f2937;
}

.card {
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid transparent;
}
.card-primary {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.card-outline-primary {
  background-color: transparent;
  border-color: #2563eb;
  color: #2563eb;
}
.card-outline-primary.card-bg-dark {
  box-shadow: 0 0 16px 2px rgba(37, 99, 235, 0.45);
}
.card-secondary {
  background-color: #d1d5db;
  border-color: #d1d5db;
  color: #1f2937;
}
.card-outline-secondary {
  background-color: transparent;
  border-color: #9ca3af;
  color: #9ca3af;
}
.card-outline-secondary.card-bg-dark {
  box-shadow: 0 0 16px 2px rgba(156, 163, 175, 0.45);
}
.card-success {
  background-color: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.card-outline-success {
  background-color: transparent;
  border-color: #16a34a;
  color: #16a34a;
}
.card-outline-success.card-bg-dark {
  box-shadow: 0 0 16px 2px rgba(22, 163, 74, 0.45);
}
.card-danger {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.card-outline-danger {
  background-color: transparent;
  border-color: #dc2626;
  color: #dc2626;
}
.card-outline-danger.card-bg-dark {
  box-shadow: 0 0 16px 2px rgba(220, 38, 38, 0.45);
}
.card-warning {
  background-color: #eab308;
  border-color: #eab308;
  color: #1f2937;
}
.card-outline-warning {
  background-color: transparent;
  border-color: #ca8a04;
  color: #ca8a04;
}
.card-outline-warning.card-bg-dark {
  box-shadow: 0 0 16px 2px rgba(202, 138, 4, 0.45);
}
.card-info {
  background-color: #06b6d4;
  border-color: #06b6d4;
  color: #fff;
}
.card-outline-info {
  background-color: transparent;
  border-color: #06b6d4;
  color: #06b6d4;
}
.card-outline-info.card-bg-dark {
  box-shadow: 0 0 16px 2px rgba(6, 182, 212, 0.45);
}
.card-dark {
  background-color: #1f2937;
  border-color: #1f2937;
  color: #fff;
}
.card-outline-dark {
  background-color: transparent;
  border-color: #1f2937;
  color: #1f2937;
}
.card-outline-dark.card-bg-dark {
  box-shadow: 0 0 16px 2px rgba(31, 41, 55, 0.45);
}
.card-kohimori {
  background-color: #1f3b2c;
  border-color: #1f3b2c;
  color: #fff;
}
.card-outline-kohimori {
  background-color: transparent;
  border-color: #1f3b2c;
  color: #1f3b2c;
}
.card-outline-kohimori.card-bg-dark {
  box-shadow: 0 0 16px 2px rgba(31, 59, 44, 0.45);
}
.card-kohimorisecond {
  background-color: #d6c7a1;
  border-color: #d6c7a1;
  color: #1f2937;
}
.card-outline-kohimorisecond {
  background-color: transparent;
  border-color: #a1936d;
  color: #a1936d;
}
.card-outline-kohimorisecond.card-bg-dark {
  box-shadow: 0 0 16px 2px rgba(161, 147, 109, 0.45);
}
.card-bg-light {
  background-color: #ffffff;
  color: #1f2937;
}
.card-bg-dark {
  background-color: #18181b;
  color: #f4f4f5;
}

:root {
  --bg: #ffffff;
  --fg: #1f2937;
  --outline-kohimori: #1f3b2c;
  --outline-kohimori-text: #fff;
  --outline-dark: #1f2937;
  --outline-dark-text: #fff;
  --surface-page: #f3f4f6;
  --surface-card: #ffffff;
  --surface-raised: #f8fafc;
  --border-default: #e5e7eb;
  --border-soft: #e2e8f0;
  --text-900: #0f172a;
  --text-700: #334155;
  --text-500: #64748b;
  --text-400: #94a3b8;
  --text-300: #cbd5e1;
  --success-bright: #22c55e;
  --success-bg: #f0fdf4;
  --success-tint: #dcfce7;
  --success-text: #15803d;
  --warning-bg: #fffbeb;
  --warning-text: #b45309;
  --danger-bright: #ef4444;
  --danger-tint: #fee2e2;
  --danger-border: #fecaca;
  --danger-subtle: #fff1f2;
  --kohimori-dark: #142b1e;
  --sidebar-text: #a7c4b0;
  --sidebar-text-hover: #e2f0e7;
  --sidebar-text-active: #86efac;
  --sidebar-active-bg: rgba(134, 239, 172, 0.18);
  --chart-kohimori: #1f3b2c;
}

[data-theme=dark] {
  --bg: #0a0a0a;
  --fg: #f4f4f5;
  --outline-kohimori: #d6c7a1;
  --outline-kohimori-text: #1f2937;
  --outline-dark: #9ca3af;
  --outline-dark-text: #1f2937;
  --surface-page: #0f172a;
  --surface-card: #1e293b;
  --surface-raised: #162032;
  --border-default: #334155;
  --border-soft: #2d3748;
  --text-900: #f1f5f9;
  --text-700: #cbd5e1;
  --text-500: #8096a8;
  --text-400: #64748b;
  --text-300: #647a8f;
  --success-bg: #14291d;
  --success-tint: #1a3a24;
  --warning-bg: #2b220f;
  --danger-tint: #3a1212;
  --danger-border: #4a1818;
  --danger-subtle: #2d0f1a;
  --chart-kohimori: #86efac;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: modal-fade-in 0.15s ease;
}
.modal-backdrop-fullscreen {
  padding: 0;
}

.modal {
  background-color: var(--bg);
  color: var(--fg);
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  animation: modal-scale-in 0.15s ease;
}
.modal-md {
  max-width: 480px;
}
.modal-lg {
  max-width: 720px;
}
.modal-xl {
  max-width: 960px;
}
.modal-fullscreen {
  max-width: 100%;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: inherit;
  padding: 0;
  opacity: 0.6;
}
.modal-close:hover {
  opacity: 1;
}

.modal-body {
  font-size: 0.9rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-default);
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.tabs-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tabs {
  display: flex;
  flex-shrink: 0;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
  margin-bottom: 1rem;
  overflow-x: auto;
}

.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tab:hover {
  opacity: 0.85;
}
.tab.active {
  opacity: 1;
  border-bottom-color: var(--outline-kohimori);
  color: var(--outline-kohimori);
}

.tab-content {
  flex: 1;
  min-height: 0;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 180px;
  background-color: var(--bg);
  color: var(--fg);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  padding: 0.25rem;
  z-index: 100;
  animation: dropdown-fade-in 0.12s ease;
}

.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
}
.dropdown-item:hover {
  background-color: rgba(128, 128, 128, 0.15);
}

@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}
.form-row > .form-group {
  flex: 1;
  min-width: 0;
}

.form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.form-group-inline {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group-inline:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.form-group-inline .form-label {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0 0.75rem;
  background-color: var(--surface-page);
  border-right: 1px solid rgba(128, 128, 128, 0.35);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-500);
  white-space: nowrap;
}
.form-group-inline .form-control {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
}
.form-group-inline .form-control:focus {
  outline: none;
  box-shadow: none;
}

.form-hint {
  margin-top: 0.375rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

.form-hint-center {
  text-align: center;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(128, 128, 128, 0.35);
  background-color: var(--bg);
  color: var(--fg);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control::placeholder {
  color: rgba(128, 128, 128, 0.8);
}
.form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.form-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-control.is-invalid {
  border-color: #dc2626;
}
.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}
.form-control.is-valid {
  border-color: #16a34a;
}
.form-control.is-valid:focus {
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

input[type=date]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

[data-theme=dark] input[type=date]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

select.form-control {
  cursor: pointer;
}

.form-feedback {
  margin-top: 0.375rem;
  font-size: 0.8rem;
}
.form-feedback-invalid {
  color: #dc2626;
}
.form-feedback-valid {
  color: #16a34a;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #1f3b2c;
  cursor: pointer;
}

.form-check-label {
  font-size: 0.875rem;
  cursor: pointer;
}

.photo-input-hidden {
  display: none;
}

.karyawan-photo-wrap {
  display: flex;
  justify-content: center;
}

.karyawan-photo-btn {
  position: relative;
  display: inline-flex;
  width: 110px;
  height: 110px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.karyawan-photo-btn:hover .karyawan-photo-badge {
  background-color: #1d4ed8;
}

.karyawan-photo-preview {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-default);
}

.karyawan-photo-placeholder {
  width: 110px;
  height: 110px;
  font-size: 110px;
  line-height: 1;
  color: var(--text-400);
}

.nonaktifkan-tanggal-input {
  margin-top: 0.6rem;
}

.karyawan-photo-badge {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--surface-card);
  background-color: #2563eb;
  color: #fff;
  font-size: 0.9rem;
  transition: background-color 0.15s ease;
}

.produk-photo-wrap {
  display: flex;
  justify-content: center;
}

.produk-photo-btn {
  position: relative;
  display: inline-flex;
  width: 160px;
  height: 160px;
  padding: 0;
  border: none;
  border-radius: 1rem;
  background: none;
  cursor: pointer;
}
.produk-photo-btn:hover .produk-photo-badge {
  background-color: #1d4ed8;
}

.produk-photo-preview {
  width: 160px;
  height: 160px;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid var(--border-default);
}

.produk-photo-placeholder {
  width: 160px;
  height: 160px;
  font-size: 96px;
  line-height: 160px;
  border-radius: 1rem;
  background-color: var(--surface-page);
  border: 1px solid var(--border-default);
  color: var(--text-400);
}

.produk-photo-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--surface-card);
  background-color: #2563eb;
  color: #fff;
  font-size: 1rem;
  transition: background-color 0.15s ease;
}

.resep-row {
  align-items: center;
  margin-bottom: 0.75rem;
}
.resep-row > .form-group {
  margin-bottom: 0;
}

.resep-row-remove {
  flex-shrink: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  vertical-align: middle;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background-color: rgba(128, 128, 128, 0.35);
  transition: background-color 0.2s ease;
  border-radius: 999px;
}
.switch-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: transform 0.2s ease;
  border-radius: 50%;
}

.switch input:checked + .switch-slider {
  background-color: var(--outline-kohimori);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.switch input:focus-visible + .switch-slider {
  box-shadow: 0 0 0 3px rgba(31, 59, 44, 0.3);
}

.switch input:disabled + .switch-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.input-group {
  position: relative;
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  padding-right: 2.5rem;
}

.input-group-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: inherit;
  opacity: 0.6;
  padding: 0.25rem;
}
.input-group-btn:hover {
  opacity: 1;
}

.btn-group {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.selectable-grid {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.selectable-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid #1f3b2c;
  background: transparent;
  color: #1f3b2c;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.06s ease;
}
.selectable-item:hover {
  background-color: #152b1f;
  color: #fff;
}
.selectable-item.selected {
  background-color: #1f3b2c;
  color: #fff;
  border-color: #1f3b2c;
}
.selectable-item .selectable-label {
  white-space: nowrap;
}
.selectable-item .selectable-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.5rem;
  background-color: #1f3b2c;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.15s ease;
}
.navbar-link:hover {
  color: #fff;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }
  .navbar-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background-color: #1f3b2c;
    padding: 1rem 1.5rem;
    gap: 1rem;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  }
  .navbar-links.open {
    display: flex;
  }
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  background-color: #1f3b2c;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.25);
  color: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  z-index: 9999;
  overflow-y: auto;
}
.sidebar.open {
  transform: translateX(0);
}

[data-theme=dark] .sidebar {
  background-color: var(--kohimori-dark);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.sidebar-close-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background: none;
  border: none;
  color: var(--sidebar-text);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text-hover);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.625rem 0.5rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text-hover);
}
.sidebar-nav-item:hover .sidebar-nav-icon {
  opacity: 1;
}
.sidebar-nav-item.active {
  background-color: var(--sidebar-active-bg);
  color: var(--sidebar-text-active);
}
.sidebar-nav-item.active .sidebar-nav-icon {
  opacity: 1;
}

.sidebar-nav-icon {
  width: 1rem;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.sidebar-footer {
  padding: 0.625rem 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.sidebar-theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sidebar-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text-hover);
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.sidebar-user-info:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sidebar-user-detail {
  min-width: 0;
}

.sidebar-user-name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-sub {
  margin: 0;
  font-size: 0.72rem;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-main {
  margin-left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 11px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 1280px) {
  .page-content {
    padding: 7px 20px 20px;
  }
}
@media (max-width: 640px) {
  .page-content {
    padding: 16px 14px;
  }
}
@media (min-width: 1281px) {
  .sidebar {
    transform: translateX(0) !important;
  }
  .sidebar-close-btn {
    display: none !important;
  }
  .sidebar-backdrop {
    display: none !important;
  }
  .sidebar-footer {
    padding-bottom: 0.625rem;
  }
  .app-main {
    margin-left: 240px;
  }
}
.table-responsive {
  overflow-x: auto;
}

.table-actions {
  display: flex;
  gap: 0.375rem;
}

.table-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-default);
}

.table-avatar-placeholder {
  width: 32px;
  height: 32px;
  font-size: 32px;
  line-height: 1;
  color: var(--text-400);
}

.table-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 0.375rem;
  border: 1px solid var(--border-default);
  background-color: var(--surface-page);
  color: var(--fg);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.table-action-btn:hover {
  background-color: var(--surface-card);
}
.table-action-btn-danger:hover {
  border-color: #dc2626;
  color: #dc2626;
}
.table-action-btn-success:hover {
  border-color: #16a34a;
  color: #16a34a;
}
.table-action-btn-info:hover {
  border-color: #06b6d4;
  color: #06b6d4;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: var(--fg);
}
.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
  white-space: nowrap;
}
.table th {
  font-weight: 700;
  opacity: 0.7;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--surface-card);
}
.table.table-hover tbody tr {
  transition: background-color 0.15s ease;
}
.table.table-hover tbody tr:hover {
  background-color: rgba(128, 128, 128, 0.08);
}
.table.table-striped tbody tr:nth-child(even) {
  background-color: rgba(128, 128, 128, 0.05);
}
.table.table-bordered {
  border: 1px solid rgba(128, 128, 128, 0.2);
}
.table.table-bordered th,
.table.table-bordered td {
  border: 1px solid rgba(128, 128, 128, 0.2);
}

.table-th-main {
  display: block;
}

.table-th-sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  opacity: 0.7;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-top: 0.75rem;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 0.375rem;
  border: 1px solid var(--border-default);
  background-color: var(--surface-page);
  color: var(--fg);
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.pagination-btn:hover:not(:disabled) {
  background-color: var(--surface-card);
}
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pagination-info {
  font-size: 0.78rem;
  color: var(--text-500);
  white-space: nowrap;
}

.text-danger {
  color: #dc2626;
}

.text-success {
  color: #16a34a;
}

.list-card {
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--bg);
  color: var(--fg);
}

.list-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
  font-size: 0.9rem;
  transition: background-color 0.15s ease;
}
.list-card-item:last-child {
  border-bottom: none;
}
.list-card-item:hover {
  background-color: rgba(128, 128, 128, 0.06);
}

.list-card-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.list-card-item-title {
  font-weight: 700;
}

.list-card-item-subtitle {
  font-size: 0.8rem;
  opacity: 0.6;
}

.list-card-item-action {
  flex-shrink: 0;
}

.chart-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0 0.5rem;
}

.chart-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.chart-bar-value {
  font-size: 0.75rem;
  font-weight: 700;
}

.chart-bar-track {
  width: 100%;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.chart-bar-fill {
  width: 100%;
  border-radius: 0.375rem 0.375rem 0 0;
  min-height: 2px;
  transition: height 0.3s ease;
}

.chart-bar-label {
  font-size: 0.75rem;
  opacity: 0.7;
  text-align: center;
}

.chart-grouped-bar {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chart-grouped-bar-legend {
  display: flex;
  flex-shrink: 0;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-500);
}

.chart-grouped-bar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.chart-grouped-bar-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chart-grouped-bar-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.chart-grouped-bar-axis {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.chart-grouped-bar-axis-track {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-default);
}

.chart-grouped-bar-axis-label {
  font-size: 0.7rem;
  line-height: 1;
  color: var(--text-400);
  padding-right: 0.5rem;
  transform: translateY(-50%);
}
.chart-grouped-bar-axis-label:last-child {
  transform: none;
}

.chart-grouped-bar-axis-spacer {
  flex-shrink: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  visibility: hidden;
}

.chart-grouped-bar-plot {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 1rem;
  overflow-x: auto;
}

.chart-grouped-bar-group {
  flex: 1;
  min-width: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.chart-grouped-bar-track {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  border-bottom: 1px solid var(--border-default);
}

.chart-grouped-bar-fill {
  flex: 1;
  max-width: 24px;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  transition: height 0.2s ease;
}

.chart-grouped-bar-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-500);
  white-space: nowrap;
}

.chart-line {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chart-line-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-500);
}

.chart-line-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.chart-line-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chart-line-svg {
  width: 100%;
  display: block;
}

.chart-line-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.7;
}

.chart-pie-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.chart-pie {
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.chart-pie-donut::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background-color: var(--bg);
}

.chart-pie-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.chart-pie-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--outline-kohimori) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--outline-kohimori);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  filter: brightness(0.85);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}
.badge-primary {
  background-color: #2563eb;
  color: #fff;
}
.badge-secondary {
  background-color: #d1d5db;
  color: #1f2937;
}
.badge-success {
  background-color: #16a34a;
  color: #fff;
}
.badge-danger {
  background-color: #dc2626;
  color: #fff;
}
.badge-warning {
  background-color: #eab308;
  color: #1f2937;
}
.badge-info {
  background-color: #06b6d4;
  color: #fff;
}
.badge-dark {
  background-color: #1f2937;
  color: #fff;
}
.badge-kohimori {
  background-color: #1f3b2c;
  color: #fff;
}
.badge-kohimorisecond {
  background-color: #d6c7a1;
  color: #1f2937;
}

.badge-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease;
}
.badge-btn:hover {
  opacity: 0.85;
}
.badge-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.link {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.link:hover {
  text-decoration: underline;
}
.link-primary {
  color: #2563eb;
}
.link-secondary {
  color: #9ca3af;
}
.link-success {
  color: #16a34a;
}
.link-danger {
  color: #dc2626;
}
.link-warning {
  color: #ca8a04;
}
.link-info {
  color: #06b6d4;
}
.link-dark {
  color: var(--outline-dark);
}
.link-kohimori {
  color: var(--outline-kohimori);
}
.link-kohimorisecond {
  color: #a1936d;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
  background: #1f3b2c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

[data-theme=dark] .topbar {
  background: var(--surface-card);
  border-bottom-color: var(--border-default);
}
[data-theme=dark] .topbar .topbar-title {
  color: var(--text-900);
}
[data-theme=dark] .topbar .topbar-sep {
  color: var(--text-300);
}
[data-theme=dark] .topbar .topbar-user {
  color: var(--text-500);
}
[data-theme=dark] .topbar .topbar-date {
  color: var(--text-400);
}
[data-theme=dark] .topbar .topbar-sidebar-toggle {
  border-color: var(--border-default);
  color: var(--text-700);
}
[data-theme=dark] .topbar .topbar-sidebar-toggle:hover {
  background-color: var(--surface-page);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-sidebar-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.topbar-sidebar-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 1281px) {
  .topbar-sidebar-toggle {
    display: none !important;
  }
}
.topbar-icon {
  color: var(--success-bright);
  font-size: 1rem;
}

.topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.topbar-sep {
  color: var(--sidebar-text);
}

.topbar-user {
  font-size: 0.82rem;
  color: var(--sidebar-text);
}

.topbar-date {
  font-size: 0.78rem;
  color: var(--sidebar-text);
}

@media (max-width: 640px) {
  .topbar-date {
    display: none;
  }
}
.filter-bar {
  background: #1f3b2c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

[data-theme=dark] .filter-bar {
  background: var(--surface-card);
  border-bottom-color: var(--border-default);
}

.filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  height: 48px;
}

select.filter-select {
  width: auto;
  min-width: 150px;
  padding: 6px 32px 6px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border-soft);
  background: var(--surface-raised);
  color: var(--text-700);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  transition: border-color 0.15s;
  box-shadow: none;
}
select.filter-select option {
  background: var(--surface-card);
  color: var(--text-700);
}
select.filter-select:focus {
  border-color: var(--text-400);
  box-shadow: none;
}

button.filter-reset {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--danger-border);
  background: var(--danger-subtle);
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}
button.filter-reset:hover {
  background: var(--danger-tint);
  border-color: var(--danger-bright);
}

.filter-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

input.date-input {
  width: 130px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border-soft);
  background: var(--surface-raised);
  color: var(--text-700);
  font-size: 0.78rem;
  outline: none;
  transition: border-color 0.15s;
  box-shadow: none;
}
input.date-input:focus {
  border-color: var(--text-400);
  box-shadow: none;
}
input.date-input::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}

.date-sep {
  color: var(--text-300);
  font-size: 0.9rem;
}

@media (max-width: 1023px) {
  .filter-bar {
    padding: 8px 16px;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .filter {
    height: auto;
    flex-wrap: wrap;
  }
  .filter-custom {
    width: 100%;
  }
  .date-input {
    flex: 1;
    width: auto;
  }
}
@media (max-width: 640px) {
  .filter-bar {
    padding: 8px 12px;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .filter {
    height: auto;
    padding: 4px 0;
    gap: 8px;
    flex: 0 0 100%;
  }
  .filter-select {
    width: 100%;
    min-width: unset;
  }
  .filter-custom {
    width: 100%;
  }
  .date-input {
    flex: 1;
    width: auto;
  }
}
.sales-card-tall {
  height: 560px;
}
.sales-card-tall > .sales-card-body {
  justify-content: center;
}

.dashboard-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.dashboard-row-fill {
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 52px - 48px - 39px - 300px - 1.25rem - 1.25rem);
}
.dashboard-row-fill > .stat-card,
.dashboard-row-fill > .sales-card {
  height: auto;
  min-height: 0;
  max-height: 100%;
}

@media (max-width: 1024px) {
  .dashboard-row-fill {
    flex: none;
    max-height: none;
  }
  .dashboard-row-fill > .sales-card {
    max-height: none;
  }
  .dashboard-row-fill > .sales-card > .sales-card-body {
    flex: none;
    overflow-y: visible;
  }
}
.dashboard-row-fill-compact {
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 52px - 48px - 39px - 150px - 1.25rem - 1.25rem);
}
.dashboard-row-fill-compact > .stat-card,
.dashboard-row-fill-compact > .sales-card {
  height: auto;
  min-height: 0;
  max-height: 100%;
}

@media (max-width: 1024px) {
  .dashboard-row-fill-compact {
    flex: none;
    max-height: none;
  }
  .dashboard-row-fill-compact > .sales-card {
    max-height: none;
  }
  .dashboard-row-fill-compact > .sales-card > .sales-card-body {
    flex: none;
    overflow-y: visible;
  }
}
@media (max-width: 640px) {
  .bukukas-sync-btn,
  .bukukas-tambah-btn {
    padding: 0.5rem 0.625rem;
  }
  .bukukas-sync-btn .btn-label,
  .bukukas-tambah-btn .btn-label {
    display: none;
  }
}
.dashboard-row-fill-tabs {
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 52px - 48px - 39px - 54px - 300px - 1.25rem - 1.25rem);
}
.dashboard-row-fill-tabs > .stat-card,
.dashboard-row-fill-tabs > .sales-card {
  height: auto;
  min-height: 0;
  max-height: 100%;
}

@media (max-width: 1024px) {
  .dashboard-row-fill-tabs {
    flex: none;
    max-height: none;
  }
  .dashboard-row-fill-tabs > .sales-card {
    max-height: none;
  }
  .dashboard-row-fill-tabs > .sales-card > .sales-card-body {
    flex: none;
    overflow-y: visible;
  }
}
.dashboard-row-fill-tabs-solo {
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 52px - 48px - 39px - 54px);
}
.dashboard-row-fill-tabs-solo > .stat-card,
.dashboard-row-fill-tabs-solo > .sales-card {
  height: auto;
  min-height: 0;
  max-height: 100%;
}

.dashboard-row-fill-nofilter {
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 52px - 39px);
}
.dashboard-row-fill-nofilter > .stat-card,
.dashboard-row-fill-nofilter > .sales-card {
  height: auto;
  min-height: 0;
  max-height: 100%;
}

.dashboard-row-fill-solo {
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 52px - 48px - 39px);
}
.dashboard-row-fill-solo > .stat-card,
.dashboard-row-fill-solo > .sales-card {
  height: auto;
  min-height: 0;
  max-height: 100%;
}

.dashboard-row-fill-tabs-solo-nofilter {
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 52px - 39px - 54px);
}
.dashboard-row-fill-tabs-solo-nofilter > .stat-card,
.dashboard-row-fill-tabs-solo-nofilter > .sales-card {
  height: auto;
  min-height: 0;
  max-height: 100%;
}

.dashboard-col-split {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1 1 320px;
  min-width: 0;
  min-height: 0;
}
.dashboard-col-split > .sales-card {
  flex: 1;
  height: auto;
  min-height: 0;
  max-height: 100%;
  padding: 0.875rem 1.25rem;
  gap: 0.625rem;
}
.dashboard-col-split > .sales-card .sales-card-body {
  gap: 0.5rem;
}
.dashboard-col-split > .sales-card .form-group,
.dashboard-col-split > .sales-card .form-row {
  margin-bottom: 0;
}

.dashboard-stack-fill-tabs-solo {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 0;
  max-height: calc(100vh - 52px - 48px - 39px - 54px);
}
.dashboard-stack-fill-tabs-solo > .dashboard-row {
  flex: 1;
  min-height: 0;
}
.dashboard-stack-fill-tabs-solo > .dashboard-row > .stat-card,
.dashboard-stack-fill-tabs-solo > .dashboard-row > .sales-card {
  height: auto;
  min-height: 0;
  max-height: 100%;
}

.stat-card {
  flex: 1 1 320px;
  width: 100%;
  height: 300px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  transition: box-shadow 0.2s ease;
}

.stat-card-compact {
  height: 150px;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
}
.stat-card-compact .stat-card-title {
  margin: 0;
}
.stat-card-compact .stat-card-total {
  font-size: 1.5rem;
}

.stat-card-desc {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-400);
}

.card-glow-success {
  border-color: rgba(22, 163, 74, 0.25);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(22, 163, 74, 0.12);
}

.card-glow-primary {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(37, 99, 235, 0.12);
}

.card-glow-warning {
  border-color: rgba(234, 179, 8, 0.25);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(234, 179, 8, 0.12);
}

.card-glow-info {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(6, 182, 212, 0.12);
}

.card-glow-danger {
  border-color: rgba(220, 38, 38, 0.25);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(220, 38, 38, 0.12);
}

.card-glow-kohimorisecond {
  border-color: rgba(31, 59, 44, 0.25);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(31, 59, 44, 0.12);
}

[data-theme=dark] .card-glow-success {
  border-color: rgba(22, 163, 74, 0.35);
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.15), 0 4px 24px rgba(22, 163, 74, 0.25), 0 0 60px rgba(22, 163, 74, 0.12);
}
[data-theme=dark] .card-glow-primary {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15), 0 4px 24px rgba(37, 99, 235, 0.25), 0 0 60px rgba(37, 99, 235, 0.12);
}
[data-theme=dark] .card-glow-warning {
  border-color: rgba(234, 179, 8, 0.35);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.15), 0 4px 24px rgba(234, 179, 8, 0.25), 0 0 60px rgba(234, 179, 8, 0.12);
}
[data-theme=dark] .card-glow-info {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.15), 0 4px 24px rgba(6, 182, 212, 0.25), 0 0 60px rgba(6, 182, 212, 0.12);
}
[data-theme=dark] .card-glow-danger {
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15), 0 4px 24px rgba(220, 38, 38, 0.25), 0 0 60px rgba(220, 38, 38, 0.12);
}
[data-theme=dark] .card-glow-kohimorisecond {
  border-color: rgba(214, 199, 161, 0.35);
  box-shadow: 0 0 0 1px rgba(214, 199, 161, 0.15), 0 4px 24px rgba(214, 199, 161, 0.25), 0 0 60px rgba(214, 199, 161, 0.12);
}

.live-dot {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background-color: #16a34a;
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0);
  }
}
.stat-icon-primary {
  color: #2563eb;
}

.stat-icon-info {
  color: #06b6d4;
}

.stat-icon-success {
  color: #16a34a;
}

.stat-icon-warning {
  color: #eab308;
}

.stat-icon-danger {
  color: #dc2626;
}

.stat-icon-kohimorisecond {
  color: #d6c7a1;
}

.stat-card-title {
  margin: 0.25rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-500);
}

.stat-card-total {
  margin: 0;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-900);
}

.stat-card-trend {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 0.3rem;
  padding: 0.05rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.stat-card-trend-up {
  background-color: rgba(22, 163, 74, 0.14);
  color: #16a34a;
}

.stat-card-trend-down {
  background-color: rgba(220, 38, 38, 0.14);
  color: #dc2626;
}

.stat-card-trend-flat {
  background-color: var(--surface-page);
  color: var(--text-400);
}

.stat-card-methods {
  display: flex;
  gap: 1rem;
}

.stat-card-method {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
}

.stat-card-method-info {
  background-color: rgba(6, 182, 212, 0.1);
}

.stat-card-method-success {
  background-color: rgba(22, 163, 74, 0.1);
}

.stat-card-method-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.stat-card-method-label {
  font-size: 0.78rem;
  color: var(--text-500);
}

.stat-card-method-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-900);
}

.stat-card-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.68rem;
}

.stat-card-icon-badge-primary {
  background-color: rgba(37, 99, 235, 0.14);
  color: #2563eb;
}

.stat-card-icon-badge-info {
  background-color: rgba(6, 182, 212, 0.14);
  color: #06b6d4;
}

.stat-card-icon-badge-success {
  background-color: rgba(22, 163, 74, 0.14);
  color: #16a34a;
}

.stat-card-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-default);
}

.stat-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.stat-card-row-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-500);
}

.stat-card-row-value {
  font-weight: 600;
  color: var(--text-900);
}

.sales-card {
  flex: 1 1 320px;
  min-width: 0;
  height: 300px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.2s ease;
}

.sales-card-title {
  margin: 0.5rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-500);
}

.sales-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  margin-top: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-500);
}
.sales-card-header .tabs {
  margin-bottom: 0;
  border-bottom: none;
}

.sales-card-header-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-500);
}

.sales-card-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sales-card-empty {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-500);
}

.sales-card-group-title {
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sales-card-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.sales-card-group-header .sales-card-group-title {
  margin-bottom: 0;
}

.sales-card-group-count {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-400);
}

.sales-card-row {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-default);
}
.sales-card-row:last-child {
  border-bottom: none;
}

.sales-card-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.sales-card-row-identity {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.sales-card-row-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.14);
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 700;
}

.sales-card-row-identity-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sales-card-row-shift-badge {
  align-self: flex-start;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background-color: var(--surface-page);
  color: var(--text-500);
  font-size: 0.68rem;
  font-weight: 600;
}

.sales-card-row-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sales-card-row-cup {
  font-size: 0.75rem;
  color: var(--text-500);
}

.sales-card-row-bar-wrap {
  height: 4px;
  border-radius: 999px;
  background-color: var(--surface-page);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.sales-card-row-bar {
  height: 100%;
  border-radius: 999px;
  background-color: #2563eb;
}

.sales-card-row-sub {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-500);
}
.sales-card-row-sub > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sales-card-row-total {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--text-900);
}

.sales-card-row-shift {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  color: var(--text-400);
}

.sales-card-total-row {
  margin-top: 0.375rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  border-left: 3px solid #2563eb;
  background-color: var(--surface-page);
}

.sales-card-total-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-900);
}

.sales-card-total-sub {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-500);
}
.sales-card-total-sub > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sales-card-total-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sales-card-total-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2563eb;
}

.produk-list {
  display: flex;
  flex-direction: column;
}

.produk-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-default);
}
.produk-item:last-child {
  border-bottom: none;
}

.produk-badge {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-page);
  color: var(--text-500);
}

.produk-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.produk-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.produk-nama {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.produk-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.produk-qty {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-500);
  white-space: nowrap;
}

.produk-rev {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-900);
  white-space: nowrap;
}

.produk-track {
  height: 5px;
  border-radius: 3px;
  background-color: var(--border-default);
  overflow: hidden;
}

.produk-fill {
  height: 100%;
  border-radius: 3px;
  background-color: #2563eb;
}

.lr-subsection-title {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-400);
}

.laba-rugi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background-color: var(--surface-page);
  font-size: 0.85rem;
}

.laba-rugi-row-indent {
  margin-left: 1rem;
}

.laba-rugi-row-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-500);
}

.laba-rugi-row-value {
  font-weight: 600;
  color: var(--text-900);
}

.laba-rugi-row-value-minus {
  color: #dc2626;
}

.laba-rugi-row-desc {
  margin: 0.25rem 0 0;
  padding: 0 0.75rem;
  font-size: 0.72rem;
  color: var(--text-400);
}

.laba-rugi-row-subtotal {
  border-top: 1px solid var(--border-default);
  padding-top: 0.625rem;
  margin-top: 0.125rem;
  background: none;
}
.laba-rugi-row-subtotal .laba-rugi-row-label,
.laba-rugi-row-subtotal .laba-rugi-row-value {
  font-weight: 700;
  color: var(--text-900);
}

.laba-rugi-row-total {
  border: 1px solid var(--success);
  background-color: var(--success-bg);
}
.laba-rugi-row-total .laba-rugi-row-label,
.laba-rugi-row-total .laba-rugi-row-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--success-text);
}

.laba-rugi-row-total-loss {
  border-color: var(--danger-border);
  background-color: var(--danger-subtle);
}
.laba-rugi-row-total-loss .laba-rugi-row-label,
.laba-rugi-row-total-loss .laba-rugi-row-value {
  color: #dc2626;
}

.produk-catalog-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .produk-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 640px) {
  .produk-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}
.produk-catalog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface-page);
  border: 1px solid var(--border-default);
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.produk-catalog-card:hover {
  border-color: rgba(214, 199, 161, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.produk-catalog-card.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.produk-catalog-photo-wrap {
  position: relative;
}

.produk-catalog-photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.produk-catalog-photo-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--text-400);
  background-color: var(--surface-card);
}

.produk-catalog-kategori-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.produk-catalog-edit-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.produk-catalog-edit-badge:hover {
  background-color: #2563eb;
}

.produk-catalog-check-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #2563eb;
  color: #fff;
  font-size: 0.8rem;
}

.produk-catalog-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem 1rem;
}

.produk-catalog-nama {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-700);
}

.produk-catalog-harga {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #2563eb;
}

.produk-catalog-hpp {
  margin: 0.125rem 0 0;
  font-size: 0.78rem;
  color: var(--text-500);
}

.produk-catalog-margin {
  margin: 0.125rem 0 0;
  font-size: 0.72rem;
  color: #16a34a;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.galeri-item {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: 0.625rem;
  overflow: hidden;
  background-color: var(--surface-page);
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.galeri-item:hover {
  border-color: rgba(214, 199, 161, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.galeri-photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.galeri-photo-broken-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-card);
}

.galeri-photo-broken {
  font-size: 2rem;
  color: var(--text-400);
}

.galeri-lightbox-broken {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.6);
}

.galeri-caption {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem 0.625rem;
  text-align: left;
}

.galeri-caption-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.galeri-caption-sublabel {
  font-size: 0.7rem;
  color: var(--text-500);
}

.galeri-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 2rem;
}

.galeri-lightbox {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.galeri-lightbox-photo {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 0.75rem;
  object-fit: contain;
}

.galeri-lightbox-caption {
  margin: 0;
  color: #fff;
  font-size: 0.875rem;
}

.galeri-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.galeri-lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.backup-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}

.hapus-data-preview {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  background-color: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.hapus-data-preview-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-900);
}

.hapus-data-preview-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-700);
}

.hapus-data-batal-btn {
  align-self: flex-start;
}

.dokumen-preview-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  background-color: #fff;
}

.dokumen-preview-unavailable {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-500);
  font-size: 0.9rem;
  text-align: center;
}
.dokumen-preview-unavailable svg {
  font-size: 3rem;
}

.dokumen-lib-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dokumen-lib-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background-color: var(--surface-page);
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dokumen-lib-tab:hover {
  border-color: rgba(214, 199, 161, 0.5);
}
.dokumen-lib-tab.active {
  background-color: #1f3b2c;
  border-color: #1f3b2c;
  color: #fff;
}

.dokumen-lib-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.375rem;
  border-radius: 999px;
  background-color: rgba(128, 128, 128, 0.2);
  font-size: 0.72rem;
}

.dokumen-lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.dokumen-lib-card {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem;
  border: 1px solid var(--border-default);
  border-radius: 0.75rem;
  background-color: var(--surface-page);
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.dokumen-lib-card:hover {
  border-color: rgba(214, 199, 161, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dokumen-lib-card-icon {
  flex-shrink: 0;
  font-size: 1.75rem;
  width: 2rem;
  text-align: center;
}

.dokumen-lib-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.dokumen-lib-card-nama {
  margin: 0;
  font-weight: 700;
  color: var(--text-900);
}

.dokumen-lib-card-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-500);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dokumen-lib-card-akses {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0.125rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}
.dokumen-lib-card-akses-admin {
  background-color: var(--warning-bg);
  color: var(--warning-text);
}
.dokumen-lib-card-akses-publik {
  background-color: var(--success-bg);
  color: var(--success-text);
}

.kasir-layout {
  align-items: stretch;
  flex-wrap: nowrap;
}

.kasir-produk-card {
  flex: 1 1 auto;
  min-width: 0;
}

.kasir-produk-card > .sales-card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Ensure the kasir row constrains height and the product card fills it so
   the product body can scroll independently of the page. This is more
   specific than the generic .sales-card rules. */
.dashboard-row-fill-nofilter.kasir-layout {
  max-height: calc(100vh - 52px - 39px) !important;
  min-height: 0 !important;
}

.dashboard-row-fill-nofilter.kasir-layout > .kasir-produk-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}

.dashboard-row-fill-nofilter.kasir-layout > .kasir-produk-card > .sales-card-body {
  /* leave some space for the search + tabs + card padding (approx 120px);
     this prevents the body from growing past the viewport and forces scroll */
  max-height: calc(100% - 120px) !important;
  overflow-y: auto !important;
}

.kasir-produk-search {
  position: relative;
  margin-bottom: 0.75rem;
}
.kasir-produk-search .form-control {
  padding-left: 2.25rem;
}

.kasir-produk-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-400);
  pointer-events: none;
}

.kasir-produk-tabs {
  margin-bottom: 0.75rem;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.kasir-produk-tabs::-webkit-scrollbar {
  display: none;
}
.kasir-produk-tabs .dokumen-lib-tab {
  flex-shrink: 0;
  border: none;
  background-color: var(--surface-page);
  padding: 0.5rem 1.1rem;
}
.kasir-produk-tabs .dokumen-lib-tab:hover {
  background-color: rgba(214, 199, 161, 0.18);
}
.kasir-produk-tabs .dokumen-lib-tab.active {
  background-color: #d6c7a1;
  color: #1f3b2c;
  box-shadow: 0 4px 12px rgba(214, 199, 161, 0.35);
}

.kasir-produk-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.875rem;
}

@media (max-width: 640px) {
  .kasir-produk-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }
}
.kasir-produk-item {
  padding: 0;
  border: 1px solid var(--border-default);
  background-color: var(--surface-page);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.kasir-produk-item:active {
  transform: scale(0.98);
}

.kasir-produk-photo-wrap {
  position: relative;
}

.kasir-produk-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 22px;
  height: 22px;
  padding: 0 0.375rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-card);
  border: 1px solid var(--border-default);
  color: var(--text-900);
  font-size: 0.7rem;
  font-weight: 700;
}

.kasir-produk-qty-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 22px;
  height: 22px;
  padding: 0 0.375rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.kasir-cart-card {
  flex: 0 0 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.kasir-cart-items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kasir-cart-item {
  padding: 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: 0.625rem;
  background-color: var(--surface-page);
}

.kasir-cart-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.kasir-cart-item-nama {
  font-weight: 700;
  font-size: 0.875rem;
}

.kasir-cart-item-subtotal {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-900);
  white-space: nowrap;
}

.kasir-cart-item-mods {
  display: flex;
  gap: 0.5rem;
}
.kasir-cart-item-mods .form-control {
  font-size: 0.78rem;
  padding: 0.375rem 0.5rem;
}

.kasir-cart-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.kasir-cart-item-unit-price {
  font-size: 0.78rem;
  color: var(--text-500);
  white-space: nowrap;
}

.kasir-cart-item-qty {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
}

.kasir-cart-item-qty-value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.kasir-cart-summary {
  flex-shrink: 0;
  padding-top: 0.875rem;
  margin-top: 0.875rem;
  border-top: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.kasir-cart-summary .laba-rugi-row {
  padding: 0.5rem 0.625rem;
  font-size: 0.78rem;
}
.kasir-cart-summary .laba-rugi-row-total .laba-rugi-row-label,
.kasir-cart-summary .laba-rugi-row-total .laba-rugi-row-value {
  font-size: 0.85rem;
}
.kasir-cart-summary .form-group {
  margin-bottom: 0;
}

.kasir-row-editable {
  border: 1px solid rgba(37, 99, 235, 0.35);
  background-color: rgba(37, 99, 235, 0.06);
  cursor: text;
}

.kasir-row-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  max-width: 120px;
  padding: 0;
  text-align: right;
  font-weight: 700;
  font-size: 0.78rem;
  color: #2563eb;
  font-family: inherit;
}
.kasir-row-input:focus {
  outline: none;
}
.kasir-row-input::-webkit-outer-spin-button, .kasir-row-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.kasir-row-input[type=number] {
  -moz-appearance: textfield;
}

.kasir-metode-row {
  display: flex;
  gap: 0.625rem;
}

.kasir-metode-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-default);
  background-color: var(--surface-page);
  color: var(--fg);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.kasir-metode-btn.active {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.kasir-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.kasir-quick-amount-btn {
  flex: 1 1 auto;
  padding: 0.375rem 0.625rem;
  font-size: 0.78rem;
}

.kasir-bayar-btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  font-size: 1rem;
}

.kasir-cart-back-btn {
  display: none;
}

.kasir-floating-cart-btn {
  display: none;
}

@media (max-width: 1024px) {
  .kasir-layout {
    flex-direction: column;
  }
  .kasir-cart-card {
    flex: 1 1 auto;
    width: 100%;
  }
  .kasir-layout.mobile-view-produk .kasir-cart-card {
    display: none;
    order: 1;
  }
  .kasir-layout.mobile-view-cart .kasir-produk-card {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 1;
  }
  .kasir-layout.mobile-view-cart .kasir-cart-card {
    display: flex !important;
    order: -1;
    width: 100%;
  }
  .kasir-cart-back-btn {
    display: inline-flex;
  }
  .kasir-floating-cart-btn {
    display: flex;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem;
    border: none;
    border-radius: 0.75rem;
    background-color: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}
.invoice-page-card,
.dokumen-page-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}
.invoice-page-card > .sales-card-body,
.dokumen-page-card > .sales-card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.dashboard-row-fill-solo > .invoice-page-card,
.dashboard-row-fill-nofilter > .dokumen-page-card {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.invoice-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.375rem;
  border-radius: 999px;
  background-color: rgba(128, 128, 128, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
}

.invoice-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0.75rem 0;
}

.invoice-toolbar-search {
  position: relative;
  flex: 1 1 200px;
}
.invoice-toolbar-search .form-control {
  padding-left: 2.25rem;
}

.invoice-toolbar-filters {
  display: flex;
  gap: 0.625rem;
  flex: 1 1 auto;
}

.invoice-toolbar-select {
  flex: 0 1 160px;
}

@media (max-width: 700px) {
  .invoice-toolbar {
    flex-direction: column;
  }
  .invoice-toolbar-search,
  .invoice-toolbar-filters {
    flex: 1 1 auto;
    width: 100%;
  }
  .invoice-toolbar-filters .invoice-toolbar-select {
    flex: 1 1 0;
  }
  .invoice-toolbar > .invoice-toolbar-select {
    flex: 1 1 auto;
    width: 100%;
  }
}
.invoice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1400px) {
  .invoice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .invoice-grid {
    grid-template-columns: 1fr;
  }
}
.invoice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.875rem;
  border: 1px solid var(--border-default);
  border-radius: 0.75rem;
  background-color: var(--surface-page);
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.invoice-card:hover {
  border-color: rgba(214, 199, 161, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.invoice-card.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.invoice-card-check {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #2563eb;
  font-size: 1.1rem;
}

.invoice-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.invoice-card-nonota {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-card-kasir {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-700);
}

.invoice-card-tanggal {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-500);
}

.invoice-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.375rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border-default);
}

.invoice-card-total {
  font-weight: 800;
  color: #2563eb;
}

.invoice-receipt {
  /* Make the invoice receipt take the full width of the card so it
     doesn't stay narrow/centered — still limit its inner column on
     very wide screens using an inner container if needed. */
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

@media (min-width: 1280px) {
  .invoice-receipt {
    /* On very wide desktop, limit the visual column so lines don't grow too long */
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* Ensure the Gerai detail card expands to fit its tab list and content
   instead of forcing internal scroll — tabs will wrap onto multiple rows */
.sales-card.detail-gerai-card {
  /* Remove any imposed card height so the card can expand with content */
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* Prevent parent row flex from stretching this card; let it size to content */
.sales-card.detail-gerai-card {
  flex: none !important;
  width: 100% !important;
}

.sales-card.detail-gerai-card > .sales-card-body {
  /* Force the body to stop scrolling internally */
  overflow-y: visible !important;
  max-height: none !important;
}

.detail-gerai-card .btn-group {
  /* Allow tabs to wrap to multiple lines instead of scrolling */
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Ensure any nested sales-card inside the gerai detail card also
   expands instead of scrolling internally. This covers KPI/sub-cards
   rendered inside the gerai section. */
.detail-gerai-card .sales-card {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* More specific: ensure any stat-card or sales-card inside the gerai detail
   section does not inherit the fixed dashboard card height or flex sizing. */
.detail-laporan-gerai-section .stat-card,
.detail-laporan-gerai-section .sales-card,
.detail-laporan-gerai-section .stat-card-compact,
.detail-laporan-gerai-section .stat-card-rows {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: none !important;
}

/* Even more specific overrides to outrank the generic .sales-card height rule
   applied on the main dashboard. Targets the stack wrapper and sub-cards. */
.detail-laporan-stack > .sales-card,
.detail-laporan-stack .sales-card.card-glow-kohimorisecond,
.detail-laporan-stack .sales-card.detail-laporan-sub-card,
.detail-laporan-stack .detail-laporan-gerai-section .detail-laporan-kpi-row .stat-card,
.detail-laporan-stack .detail-laporan-gerai-section .stat-card.stat-card-compact {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: none !important;
  overflow: visible !important;
}

.detail-gerai-card .sales-card .sales-card-body {
  overflow-y: visible !important;
  max-height: none !important;
}

/* Emergency override: force all nested elements inside the gerai detail
   card to expand instead of creating internal scrollbars. Use only as
   last-resort to target stubborn containers. */
.detail-gerai-card,
.detail-gerai-card * {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

/* Target actual rendered card in markup (Detail Gerai uses this glow class)
   and the sub-cards inside it which had overflow:auto set by default. */
.sales-card.card-glow-kohimorisecond.detail-gerai-card > .sales-card-body,
.sales-card.detail-laporan-sub-card > .sales-card-body,
.detail-laporan-gerai-section .sales-card-body {
  overflow: visible !important;
  overflow-y: visible !important;
  height: auto !important;
  max-height: none !important;
}

.dashboard-row-fill-solo > .sales-card.card-glow-kohimorisecond.invoice-page-card > .sales-card-body,
.dashboard-row-fill-nofilter > .sales-card.card-glow-kohimorisecond.dokumen-page-card > .sales-card-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100% !important;
  max-height: 100% !important;
}

/* Explicit class to disable scrolling on card bodies when needed */
.sales-card-body.no-scroll {
  overflow: visible !important;
  overflow-y: visible !important;
  height: auto !important;
  max-height: none !important;
}

.invoice-receipt-store {
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-default);
}
.invoice-receipt-store svg {
  font-size: 1.75rem;
}

.invoice-receipt-store-nama {
  margin: 0.375rem 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-900);
}

.invoice-receipt-store-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-500);
}

.invoice-receipt-info {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

@media (max-width: 560px) {
  .invoice-receipt-info .laba-rugi-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .invoice-receipt-info .laba-rugi-row-value {
    max-width: 100%;
    word-break: break-word;
  }
}
.invoice-receipt-section-title {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-500);
}

.invoice-receipt-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.invoice-receipt-item {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  background-color: var(--surface-page);
}

.invoice-receipt-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-900);
}

.invoice-receipt-item-qty {
  color: var(--text-500);
  font-weight: 600;
}

.invoice-receipt-item-mods {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--text-500);
}

.invoice-receipt-summary {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-default);
}

.invoice-receipt-footer {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-500);
}

.absensi-checkin-row {
  align-items: stretch;
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 52px - 48px - 39px - 54px);
}
.absensi-checkin-row > .sales-card {
  height: auto;
  min-height: 0;
  max-height: 100%;
}

.absensi-checkin-card {
  flex: 1 1 380px;
  padding: 0.875rem 1.25rem;
  gap: 0.625rem;
}
.absensi-checkin-card .sales-card-body {
  gap: 0.5rem;
}
.absensi-checkin-card .form-group,
.absensi-checkin-card .form-row {
  margin-bottom: 0;
}

.absensi-timeline-card {
  flex: 2 1 420px;
}

.absensi-alamat-input {
  margin-top: 0.5rem;
}

.absensi-gps-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-500);
}

.absensi-gps-loading {
  color: var(--text-500);
}

.absensi-gps-ok {
  color: #16a34a;
}

.absensi-gps-error {
  color: #dc2626;
}

.absensi-gps-retry {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: none;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.absensi-gps-retry:hover {
  background-color: rgba(220, 38, 38, 0.1);
}

.absensi-photo-btn {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.absensi-checkin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.absensi-checkin-header .sales-card-title {
  margin: 0;
}

.absensi-live-clock {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background-color: var(--surface-page);
  border: 1px solid var(--border-default);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-500);
  white-space: nowrap;
  flex-shrink: 0;
}

.absensi-stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.absensi-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.absensi-step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  background-color: var(--surface-page);
  border: 2px solid var(--border-default);
  color: var(--text-400);
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.absensi-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-500);
  white-space: nowrap;
}

.absensi-step.active .absensi-step-dot {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.absensi-step.done .absensi-step-dot {
  background-color: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.absensi-step.active .absensi-step-label,
.absensi-step.done .absensi-step-label {
  color: var(--text-900);
}

.absensi-step-line {
  flex: 1;
  height: 2px;
  min-width: 24px;
  background-color: var(--border-default);
  border-radius: 999px;
}
.absensi-step-line.done {
  background-color: #16a34a;
}

.absensi-selfie-wrap {
  display: flex;
  justify-content: center;
}

.absensi-selfie-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
  border-radius: 1rem;
  border: 3px dashed var(--border-default);
  background-color: var(--surface-page);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.absensi-selfie-frame.camera-on {
  border-style: solid;
  border-color: #2563eb;
}
.absensi-selfie-frame.has-photo {
  border-style: solid;
  border-color: #16a34a;
}

.absensi-selfie-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.absensi-selfie-action-primary {
  border: 1px solid #2563eb;
  background-color: #2563eb;
  color: #fff;
}
.absensi-selfie-action-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.absensi-selfie-action-outline {
  border: 1px solid var(--outline-kohimori);
  background-color: var(--surface-card);
  color: var(--outline-kohimori);
}
.absensi-selfie-action-outline:hover {
  background-color: var(--outline-kohimori);
  color: var(--outline-kohimori-text);
}

.absensi-selfie-action-corner {
  position: absolute;
  right: 8px;
  bottom: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.absensi-selfie-placeholder {
  font-size: 4.5rem;
  color: var(--text-400);
}

.absensi-selfie-photo,
.absensi-selfie-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.absensi-selfie-video {
  transform: scaleX(-1);
}

.absensi-selfie-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--surface-card);
  background-color: #16a34a;
  color: #fff;
  font-size: 0.85rem;
}

.absensi-masuk-info {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background-color: var(--surface-page);
  border: 1px solid var(--border-default);
  border-left: 3px solid #2563eb;
}

.absensi-masuk-info-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.absensi-masuk-info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-900);
}

.absensi-masuk-info-row .stat-icon-primary {
  font-size: 0.85rem;
}

.absensi-done-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.375rem;
  padding: 2rem 1rem;
}

.absensi-done-icon {
  font-size: 2.75rem;
  color: #16a34a;
  margin-bottom: 0.25rem;
}

.absensi-done-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-900);
}

.absensi-done-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-500);
}

.table tr.selected {
  background-color: rgba(37, 99, 235, 0.08);
}

.period-comparison-card {
  flex: 1 1 280px;
}

.period-comparison-gerai-select {
  width: auto;
  min-width: 130px;
  flex-shrink: 0;
}

.period-comparison-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-default);
}
.period-comparison-row:first-child {
  padding-top: 0;
}
.period-comparison-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.period-comparison-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.period-comparison-row-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-500);
}

.period-comparison-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-500);
  background-color: rgba(128, 128, 128, 0.12);
}
.period-comparison-delta-up {
  color: #16a34a;
  background-color: rgba(22, 163, 74, 0.12);
}
.period-comparison-delta-down {
  color: #dc2626;
  background-color: rgba(220, 38, 38, 0.12);
}

.period-comparison-values {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.period-comparison-value {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.period-comparison-value-prev {
  opacity: 0.65;
}

.period-comparison-value-label {
  font-size: 0.68rem;
  color: var(--text-400);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.period-comparison-value-amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-900);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(160deg, rgba(31, 59, 44, 0.08), rgba(214, 199, 161, 0.08));
}

.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 2rem 1.75rem;
  border-radius: 1rem;
  background-color: var(--surface-card);
  border: 1px solid var(--border-default);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.auth-card-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.auth-card-logo img {
  height: auto;
}

.auth-card-title {
  margin: 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-900);
}

.auth-card-sub {
  margin: 0.25rem 0 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-500);
}

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid;
  animation: login-alert-bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.login-alert-invalid {
  background-color: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}
.login-alert-invalid .login-alert-icon {
  color: #dc2626;
}
.login-alert-inactive {
  background-color: rgba(234, 179, 8, 0.14);
  border-color: rgba(234, 179, 8, 0.35);
}
.login-alert-inactive .login-alert-icon {
  color: #eab308;
}

.login-alert-icon {
  flex-shrink: 0;
  font-size: 1.05rem;
  margin-top: 0.1rem;
}

.login-alert-message {
  flex: 1;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-900);
  line-height: 1.4;
}

.login-alert-close {
  flex-shrink: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-400);
  font-size: 0.75rem;
  padding: 0.15rem;
  border-radius: 0.25rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.login-alert-close:hover {
  color: var(--text-900);
  background-color: var(--surface-page);
}

@keyframes login-alert-bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-40px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(4px);
  }
  70% {
    transform: scale(0.95) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.notfound-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(160deg, rgba(31, 59, 44, 0.08), rgba(214, 199, 161, 0.08));
}

.notfound-card {
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  background-color: var(--surface-card);
  border: 1px solid var(--border-default);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.notfound-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background-color: rgba(214, 199, 161, 0.15);
  color: #d6c7a1;
  font-size: 1.75rem;
}

.notfound-code {
  margin: 0;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #d6c7a1;
}

.notfound-title {
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-900);
}

.notfound-sub {
  margin: 0.5rem 0 1.75rem;
  font-size: 0.85rem;
  color: var(--text-500);
}

.notfound-back-btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  font-size: 0.95rem;
}

.profile-layout {
  align-items: flex-start;
}

.profile-left {
  flex: 1 1 340px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-right {
  flex: 2 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-content-card {
  height: auto;
}

.profile-main-card {
  height: auto;
}

.profile-identity-tab {
  text-align: center;
}

.profile-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(214, 199, 161, 0.18);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-letter {
  font-size: 2.25rem;
  font-weight: 800;
  color: #d6c7a1;
}

.profile-avatar-edit-btn {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #1f3b2c;
  color: #fff;
  cursor: pointer;
  border: 2px solid var(--surface-card);
  transition: background-color 0.15s ease;
}
.profile-avatar-edit-btn:hover {
  background-color: #152b1f;
}

.profile-nama {
  margin: 0.75rem 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-900);
}

.profile-username {
  margin: 0.125rem 0 0;
  font-size: 0.8rem;
  color: var(--text-500);
}

.profile-badges {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.625rem;
}

.profile-quick-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-default);
}

.profile-quick-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-700);
}

.profile-quick-icon {
  color: #d6c7a1;
  width: 14px;
}

.profile-logout-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1.25rem;
}

.profile-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.profile-security-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-900);
}

.profile-security-sub {
  margin: 0.125rem 0 0;
  font-size: 0.78rem;
  color: var(--text-500);
}

.profile-info-tab {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.profile-tab-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-edit-actions {
  display: flex;
  gap: 0.5rem;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}

.profile-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.profile-info-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.profile-info-value {
  font-size: 0.9rem;
  color: var(--text-900);
  word-break: break-word;
}

.profile-info-muted {
  color: var(--text-500);
}

.profile-info-empty {
  font-style: italic;
  color: var(--text-400);
}

.karyawan-detail-item-full {
  grid-column: 1/-1;
}

.karyawan-detail-approx {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-400);
}

.karyawan-detail-section-title {
  margin: 1.25rem 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-700);
}

.karyawan-detail-sales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.karyawan-detail-sales-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.6rem;
  background-color: var(--surface-page);
  border: 1px solid var(--border-default);
  text-align: center;
  min-width: 0;
}

.karyawan-detail-sales-icon {
  font-size: 1rem;
}

.karyawan-detail-sales-label {
  font-size: 0.68rem;
  color: var(--text-500);
}

.karyawan-detail-sales-value {
  max-width: 100%;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .karyawan-detail-sales-grid {
    grid-template-columns: 1fr;
  }
  .karyawan-detail-sales-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    text-align: left;
  }
  .karyawan-detail-sales-value {
    margin-left: auto;
  }
}
.topmenu-box {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background-color: var(--surface-card);
  border: 1px solid rgba(31, 59, 44, 0.25);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(31, 59, 44, 0.12);
}

[data-theme=dark] .topmenu-box {
  border-color: rgba(214, 199, 161, 0.35);
  box-shadow: 0 0 0 1px rgba(214, 199, 161, 0.15), 0 4px 24px rgba(214, 199, 161, 0.25), 0 0 60px rgba(214, 199, 161, 0.12);
}

.topmenu-box-title {
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-500);
}

.topmenu-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.topmenu-tile {
  padding: 0.625rem;
  border-radius: 0.75rem;
  background-color: var(--surface-page);
  border: 1px solid var(--border-default);
  text-align: center;
}

.topmenu-tile-rank-1 {
  background-color: rgba(234, 179, 8, 0.14);
  border-color: rgba(234, 179, 8, 0.35);
}

.topmenu-tile-rank-2 {
  background-color: rgba(156, 163, 175, 0.14);
  border-color: rgba(156, 163, 175, 0.35);
}

.topmenu-tile-rank-3 {
  background-color: rgba(194, 112, 61, 0.14);
  border-color: rgba(194, 112, 61, 0.35);
}

.topmenu-tile-rank {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-500);
}

.topmenu-tile-crown {
  font-size: 0.95rem;
  color: #eab308;
}

.topmenu-tile-nama {
  margin: 0.375rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topmenu-tile-count {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #d6c7a1;
}

.topmenu-tile-sub {
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-400);
}

.topmenu-tile-bar-wrap {
  margin-top: 0.625rem;
  height: 5px;
  border-radius: 999px;
  background-color: var(--border-default);
  overflow: hidden;
}

.topmenu-tile-bar {
  height: 100%;
  border-radius: 999px;
  background-color: #d6c7a1;
}

.profile-period-toggle {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 0.5rem;
  background-color: var(--surface-page);
}

.profile-period-btn {
  padding: 0.3rem 0.7rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-500);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.profile-period-btn.active {
  background-color: #1f3b2c;
  color: #fff;
}

.profile-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.profile-kpi-grid > .stat-card {
  width: auto;
}

.profile-section-label {
  margin: 1.25rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-500);
}

.profile-kpi-omzet {
  height: auto;
  grid-column: 1/-1;
}

.profile-kpi-omzet-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.profile-kpi-omzet-left {
  flex: 1 1 200px;
}

.profile-kpi-omzet-value {
  margin: 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-900);
}

.profile-kpi-omzet-right {
  flex: 1 1 220px;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-default);
}

.profile-kpi-gerai-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-500);
}

.profile-kpi-gerai-entry {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-default);
}
.profile-kpi-gerai-entry:last-child {
  border-bottom: none;
}

.profile-kpi-gerai-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.profile-kpi-gerai-nama {
  color: var(--text-700);
}

.profile-kpi-gerai-omzet {
  font-weight: 700;
  color: var(--text-900);
}

.profile-kpi-gerai-shift-label {
  color: var(--text-500);
}

.profile-kpi-gerai-detail {
  color: var(--text-500);
}

.profile-kpi-gerai-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-default);
}

.profile-kpi-gerai-total-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-700);
}

.profile-abs-totals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
}

.profile-abs-total-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.625rem;
  border-radius: 0.625rem;
  background-color: var(--surface-page);
}

.profile-abs-total-count {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-900);
}

.profile-abs-total-label {
  font-size: 0.7rem;
  color: var(--text-500);
}

.profile-abs-total-masuk .profile-abs-total-count {
  color: #16a34a;
}

.profile-abs-total-pulang .profile-abs-total-count {
  color: #2563eb;
}

.profile-abs-total-izin .profile-abs-total-count {
  color: #eab308;
}

.profile-abs-total-sakit .profile-abs-total-count {
  color: #dc2626;
}

@media (max-width: 640px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
  .profile-abs-totals {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .profile-right {
    display: contents;
  }
  .topmenu-box {
    flex: 1 1 260px;
    min-width: 0;
  }
  .topmenu-box-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
  }
  .topmenu-tile {
    padding: 0.5rem;
  }
  .topmenu-tile-count {
    font-size: 1.1rem;
  }
  .topmenu-tile-bar-wrap {
    margin-top: 0.4rem;
  }
  .profile-content-card {
    flex: 1 1 100%;
  }
}
.lbb-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lbb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.lbb-empty-icon {
  font-size: 1.75rem;
  color: var(--text-400);
}

.lbb-items-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lbb-items-title-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.lbb-items-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lbb-pesanan-loading {
  font-size: 0.75rem;
  color: var(--text-500);
  font-style: italic;
}

.lbb-item-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lbb-item-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  background-color: var(--surface-page);
  border: 1px solid var(--border-default);
}

.lbb-item-row-pesanan {
  border-color: rgba(214, 199, 161, 0.4);
  background-color: rgba(214, 199, 161, 0.08);
}

.lbb-item-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lbb-item-nama {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lbb-item-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.lbb-item-qty-input {
  width: 80px;
  text-align: right;
}

.lbb-item-satuan {
  font-size: 0.75rem;
  color: var(--text-500);
  width: 32px;
}

.lbb-tipe-row {
  display: flex;
  gap: 0.5rem;
}

.lbb-tipe-btn {
  flex: 1;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-default);
  background-color: var(--surface-page);
  color: var(--text-700);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lbb-tipe-btn:hover {
  background-color: var(--surface-card);
}
.lbb-tipe-btn.active {
  background-color: #1f3b2c;
  border-color: #1f3b2c;
  color: #fff;
}

.lbb-kasir-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.lbb-kasir-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lbb-kasir-card {
  height: auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.lbb-kasir-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
}

.lbb-kasir-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.82rem;
  color: var(--text-700);
}

.lbb-kasir-gerai {
  font-weight: 700;
  color: var(--text-900);
}

.lbb-kasir-shift,
.lbb-kasir-date {
  color: var(--text-500);
}

.lbb-kasir-head-right {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.lbb-konfirm-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.lbb-kasir-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 0.375rem;
  border: 1px solid var(--border-default);
  background-color: var(--surface-page);
  color: var(--text-500);
  cursor: pointer;
}
.lbb-kasir-toggle-btn:hover {
  background-color: var(--surface-card);
}

.lbb-kasir-chevron {
  transition: transform 0.15s ease;
}

.lbb-kasir-chevron-open {
  transform: rotate(180deg);
}

.lbb-kasir-body {
  padding: 0 1.25rem 1rem;
  border-top: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
}

.lbb-kasir-items {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.lbb-kasir-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-700);
}

.lbb-kasir-item-qty {
  font-weight: 600;
  color: var(--text-900);
}

.lbb-kasir-catatan {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-500);
  font-style: italic;
}

.detail-laporan-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-laporan-trend-card {
  flex: 1 1 100%;
}

.detail-laporan-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
}
.detail-laporan-kpi-row > .stat-card {
  width: auto;
}

.detail-laporan-porsi-card {
  height: auto;
}

.detail-laporan-target-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-laporan-target-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.5rem;
  row-gap: 0.3rem;
}
.detail-laporan-target-row > .detail-laporan-bar-wrap {
  grid-column: 1/-1;
}

.detail-laporan-target-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-900);
}

.detail-laporan-target-goal {
  font-size: 0.75rem;
  color: var(--text-400);
  text-align: right;
}

.detail-laporan-gerai-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-default);
  border-left-width: 4px;
  background-color: var(--surface-card);
}

.detail-laporan-gerai-kohimori {
  border-left-color: #1f3b2c;
}

[data-theme=dark] .detail-laporan-gerai-kohimori {
  border-left-color: #86efac;
}

.detail-laporan-gerai-kohimorisecond {
  border-left-color: #d6c7a1;
}

.detail-laporan-gerai-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
}

.detail-laporan-accent-icon-kohimori {
  color: #1f3b2c;
}

[data-theme=dark] .detail-laporan-accent-icon-kohimori {
  color: #86efac;
}

.detail-laporan-accent-icon-kohimorisecond {
  color: #d6c7a1;
}

.detail-laporan-gerai-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-900);
}

.detail-laporan-gerai-sub {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--text-500);
}

.detail-laporan-bulanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.detail-laporan-month-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem;
  border-radius: 0.6rem;
  background-color: var(--surface-page);
  border: 1px solid var(--border-default);
}

.detail-laporan-month-label {
  margin: 0;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-500);
}

.detail-laporan-month-omzet {
  margin: 0;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-900);
}

.detail-laporan-trend-pill {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.05rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.detail-laporan-trend-up {
  background-color: rgba(22, 163, 74, 0.14);
  color: #16a34a;
}

.detail-laporan-trend-down {
  background-color: rgba(220, 38, 38, 0.14);
  color: #dc2626;
}

.detail-laporan-trend-flat {
  background-color: var(--surface-card);
  color: var(--text-400);
}

.detail-laporan-month-rows {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border-default);
  font-size: 0.78rem;
  color: var(--text-500);
}

.detail-laporan-month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.detail-laporan-month-row span:last-child {
  font-weight: 600;
  color: var(--text-900);
  text-align: right;
}

.detail-laporan-cup-target {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.detail-laporan-cup-target-label {
  font-size: 0.7rem;
  color: var(--text-400);
}

.detail-laporan-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.detail-laporan-chip {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-default);
  font-size: 0.68rem;
  color: var(--text-500);
}

.detail-laporan-bar-wrap {
  height: 4px;
  border-radius: 999px;
  background-color: var(--border-default);
  overflow: hidden;
}

.detail-laporan-bar {
  height: 100%;
  border-radius: 999px;
  background-color: #2563eb;
}

.detail-laporan-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.detail-laporan-sub-card {
  height: auto;
}

.detail-laporan-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.detail-laporan-list-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.detail-laporan-list-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.detail-laporan-list-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-laporan-list-value {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-700);
}

.detail-laporan-kasir-id {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.detail-laporan-kasir-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.detail-laporan-kasir-sub {
  font-size: 0.68rem;
  color: var(--text-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-laporan-avatar {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: rgba(6, 182, 212, 0.14);
  color: #06b6d4;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-laporan-hourly-label {
  margin: 0.9rem 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-400);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.print-laporan-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: var(--surface-page);
  overflow-y: auto;
}

.print-laporan-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--surface-card);
  border-bottom: 1px solid var(--border-default);
}

.print-laporan-toolbar-title {
  font-weight: 700;
  color: var(--text-900);
}

.print-laporan-toolbar-actions {
  display: flex;
  gap: 0.75rem;
}

@media print {
  body * {
    visibility: hidden;
  }
  .print-laporan-overlay,
  .print-laporan-overlay * {
    visibility: visible;
  }
  .print-laporan-overlay {
    position: absolute;
    inset: 0;
    overflow: visible;
    background: #fff;
  }
  .print-laporan-toolbar {
    display: none !important;
  }
}
.print-report-page {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 1.75rem;
  background-color: #f7f2e6;
  color: #1c2b21;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.print-report-header {
  background-color: #1f3b2c;
  color: #fff;
  border-radius: 0.75rem;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.25rem;
}

.print-report-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.print-report-brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #d6c7a1;
}

.print-report-page-num {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.print-report-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.print-report-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.print-report-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.print-report-identity-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.print-report-avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: #1f3b2c;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.print-report-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1c2b21;
}

.print-report-name-sub {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: #6b7d72;
}

.print-report-status {
  flex-shrink: 0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.print-report-status-success {
  background-color: rgba(22, 163, 74, 0.16);
  color: #15803d;
}

.print-report-status-warning {
  background-color: #faf1d9;
  color: #8a6d1f;
}

.print-report-status-danger {
  background-color: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.print-report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.print-report-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background-color: #e3ede4;
  border-radius: 0.6rem;
  padding: 0.7rem 0.85rem;
}

.print-report-kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6b7d72;
}

.print-report-kpi-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1c2b21;
}

.print-report-kpi-value-sm {
  font-size: 0.85rem;
}

.print-report-cup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.print-report-cup-row-solo {
  grid-template-columns: 1fr;
}

.print-report-cup-card,
.print-report-target-card {
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
}

.print-report-cup-card {
  background-color: #faf1d9;
}

.print-report-target-card {
  background-color: #fff;
  border: 1px solid #e5ddc8;
}

.print-report-card-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #8a6d1f;
  margin-bottom: 0.5rem;
}

.print-report-cup-lines {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(138, 109, 31, 0.25);
  margin-bottom: 0.4rem;
}

.print-report-cup-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #1c2b21;
}

.print-report-cup-total {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1c2b21;
}

.print-report-target-track {
  height: 10px;
  border-radius: 999px;
  background-color: #e3ede4;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.print-report-target-fill {
  height: 100%;
  border-radius: 999px;
  background-color: #1f3b2c;
}

.print-report-target-caption {
  margin: 0;
  font-size: 0.78rem;
  color: #6b7d72;
}

.print-report-section-title {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1f3b2c;
}

.print-report-chart-empty {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  color: #6b7d72;
}

.print-report-chart {
  display: flex;
  gap: 0.5rem;
  height: 140px;
  margin-bottom: 1.25rem;
}

.print-report-chart-axis {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 1.1rem;
  font-size: 0.62rem;
  color: #94a3b8;
}

.print-report-chart-plot {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.print-report-chart-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.print-report-chart-track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.print-report-chart-fill {
  width: 100%;
  min-height: 1px;
  background-color: #1f3b2c;
  border-radius: 2px 2px 0 0;
}

.print-report-chart-tick {
  margin-top: 0.3rem;
  font-size: 0.58rem;
  color: #94a3b8;
  white-space: nowrap;
}

.print-report-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.print-report-menu-row {
  display: grid;
  grid-template-columns: 9rem 1fr 4rem;
  align-items: center;
  gap: 0.6rem;
}

.print-report-menu-name {
  font-size: 0.8rem;
  color: #1c2b21;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-report-menu-track {
  height: 10px;
  border-radius: 999px;
  background-color: #e3ede4;
  overflow: hidden;
}

.print-report-menu-fill {
  height: 100%;
  border-radius: 999px;
  background-color: #1f3b2c;
}

.print-report-menu-fill-top {
  background-color: #eab308;
}

.print-report-menu-value {
  text-align: right;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7d72;
}

.print-report-footer {
  margin: 1.5rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #e5ddc8;
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 640px) {
  .print-report-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .print-report-cup-row {
    grid-template-columns: 1fr;
  }
  .print-report-menu-row {
    grid-template-columns: 6.5rem 1fr 3.5rem;
  }
}
@media print {
  .print-report-page {
    max-width: none;
    margin: 0;
    padding: 12mm;
    border-radius: 0;
    box-shadow: none;
    break-before: page;
    break-inside: avoid;
    page-break-before: always;
    page-break-inside: avoid;
  }
  .print-report-page:first-child {
    break-before: auto;
    page-break-before: auto;
  }
  .print-report-header,
  .print-report-identity,
  .print-report-kpi-grid,
  .print-report-cup-row,
  .print-report-chart,
  .print-report-menu-list {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
.potongan-gaji-card {
  flex: 1 1 100%;
}

.potongan-gaji-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.potongan-gaji-controls input.form-control {
  width: auto;
}

.potongan-gaji-rate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-500);
  white-space: nowrap;
}
.potongan-gaji-rate input.form-control {
  width: 110px;
}

.potongan-gaji-visibility {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  background-color: var(--surface-page);
  border: 1px solid var(--border-default);
}

.potongan-gaji-visibility-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-900);
}

.potongan-telat-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.potongan-value-confirmed {
  font-weight: 700;
  color: var(--text-900);
}

.potongan-value-suggested {
  font-style: italic;
  color: var(--text-500);
}

.potongan-confirm-btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  white-space: nowrap;
}

.potongan-lain-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.potongan-lain-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background-color: var(--surface-page);
  border: 1px solid var(--border-default);
  font-size: 0.72rem;
  color: var(--text-700);
  white-space: nowrap;
}
.potongan-lain-chip button {
  display: inline-flex;
  align-items: center;
  border: none;
  background: none;
  padding: 0;
  color: #dc2626;
  cursor: pointer;
  font-size: 0.7rem;
}

.potongan-add-lain-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px dashed var(--border-default);
  background: none;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  color: var(--text-500);
  cursor: pointer;
  white-space: nowrap;
}
.potongan-add-lain-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.potongan-total-cell {
  font-weight: 800;
  color: var(--text-900);
  white-space: nowrap;
}

.agenda-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.agenda-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-900);
}

.agenda-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-500);
}

.agenda-header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.agenda-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-default);
  background-color: var(--surface-card);
  color: var(--text-500);
}
.agenda-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--text-900);
  width: 160px;
}
.agenda-search input::placeholder {
  color: var(--text-400);
}

.agenda-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.25rem;
  flex: 1;
  min-height: 0;
}

.agenda-card {
  flex: 3 1 560px;
  height: auto;
  min-height: 0;
  max-height: 100%;
}

.agenda-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

.agenda-grid-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.agenda-month-select {
  display: flex;
  gap: 0.5rem;
}
.agenda-month-select > select {
  width: auto;
}

.agenda-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.agenda-nav {
  display: flex;
  gap: 0.375rem;
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.375rem;
}

.agenda-grid-headcell {
  padding: 0.375rem 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.agenda-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 0;
  min-height: 76px;
  padding: 0.375rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-default);
  background-color: var(--surface-page);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.agenda-cell:hover {
  border-color: #d6c7a1;
}

.agenda-cell-outside {
  opacity: 0.4;
}

.agenda-cell-today {
  border-color: #1f3b2c;
  box-shadow: inset 0 0 0 1px #1f3b2c;
}

.agenda-cell-selected {
  border-color: #d6c7a1;
  box-shadow: inset 0 0 0 1px #d6c7a1;
}

.agenda-cell-shade-cream {
  background-color: rgba(214, 199, 161, 0.08);
}

.agenda-cell-shade-amber-light {
  background-color: rgba(234, 179, 8, 0.08);
}

.agenda-cell-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-900);
}

.agenda-cell-marker {
  font-size: 0.62rem;
  color: var(--text-400);
  line-height: 1.2;
}

.agenda-cell-items {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
}

.agenda-cell-chip {
  display: block;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agenda-cell-chip.agenda-bar-green {
  background-color: #16a34a;
}
.agenda-cell-chip.agenda-bar-amber {
  background-color: #eab308;
}
.agenda-cell-chip.agenda-bar-red {
  background-color: #dc2626;
}
.agenda-cell-chip.agenda-bar-blue {
  background-color: #2563eb;
}
.agenda-cell-chip.agenda-chip-done {
  opacity: 0.55;
  text-decoration: line-through;
}

.agenda-cell-more {
  font-size: 0.62rem;
  color: var(--text-500);
}

.agenda-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-default);
  flex-shrink: 0;
}

.agenda-legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-500);
}

.agenda-legend-shade-cream,
.agenda-legend-shade-amber-light {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 0.2rem;
}

.agenda-legend-shade-cream {
  background-color: rgba(214, 199, 161, 0.25);
}

.agenda-legend-shade-amber-light {
  background-color: rgba(234, 179, 8, 0.25);
}

.agenda-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.375rem;
}
.agenda-dot.agenda-dot-green {
  background-color: #16a34a;
}
.agenda-dot.agenda-dot-amber {
  background-color: #eab308;
}
.agenda-dot.agenda-dot-red {
  background-color: #dc2626;
}
.agenda-dot.agenda-dot-blue {
  background-color: #2563eb;
}

.agenda-done-check {
  margin-left: 0.375rem;
  color: #16a34a;
}

.agenda-modal-section {
  margin-bottom: 1rem;
}

.agenda-modal-section-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.agenda-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agenda-modal-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background-color: var(--surface-page);
  border: 1px solid var(--border-default);
}

.agenda-item-done {
  opacity: 0.65;
}

.agenda-modal-item-main {
  min-width: 0;
}

.agenda-modal-item-title {
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-900);
}

.agenda-modal-item-note {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--text-500);
}

.agenda-modal-item-user {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--text-400);
}

.agenda-sidebar {
  flex: 1 1 280px;
  height: auto;
  min-height: 0;
  max-height: 100%;
}

.agenda-sidebar-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.agenda-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agenda-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  border-left: 3px solid transparent;
  background-color: var(--surface-page);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.agenda-sidebar-item:hover {
  background-color: var(--surface-card);
}
.agenda-sidebar-item.agenda-bar-green {
  border-left-color: #16a34a;
}
.agenda-sidebar-item.agenda-bar-amber {
  border-left-color: #eab308;
}
.agenda-sidebar-item.agenda-bar-red {
  border-left-color: #dc2626;
}
.agenda-sidebar-item.agenda-bar-blue {
  border-left-color: #2563eb;
}

.agenda-sidebar-date {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-500);
  width: 44px;
}

.agenda-sidebar-main {
  flex: 1;
  min-width: 0;
}

.agenda-sidebar-title {
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-sidebar-detail {
  margin: 0.125rem 0 0;
  font-size: 0.72rem;
  color: var(--text-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-sidebar-chevron {
  flex-shrink: 0;
  color: var(--text-400);
  font-size: 0.72rem;
}

@media (max-width: 1024px) {
  .agenda-layout {
    flex: none;
  }
  .agenda-card,
  .agenda-sidebar {
    max-height: none;
  }
  .agenda-grid-wrap,
  .agenda-sidebar-body {
    flex: none;
    overflow-y: visible;
  }
}
@media (max-width: 640px) {
  .agenda-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .agenda-month-select {
    width: 100%;
  }
  .agenda-month-select > select {
    flex: 1 1 0;
    width: auto;
  }
  .agenda-toolbar-right {
    justify-content: space-between;
  }
  .agenda-grid {
    gap: 0.25rem;
  }
  .agenda-cell {
    min-height: 56px;
    padding: 0.25rem;
    gap: 0.15rem;
  }
  .agenda-cell-date {
    font-size: 0.72rem;
  }
}
.toast-viewport {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: min(360px, 100vw - 2.5rem);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background-color: var(--surface-card);
  border: 1px solid var(--border-default);
  border-left: 3px solid transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  animation: toast-slide-in 0.22s ease;
}
.toast-leaving {
  animation: toast-slide-out 0.2s ease forwards;
}
.toast-success {
  border-left-color: #16a34a;
}
.toast-success .toast-icon {
  color: #16a34a;
}
.toast-error {
  border-left-color: #dc2626;
}
.toast-error .toast-icon {
  color: #dc2626;
}

.toast-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  margin-top: 0.05rem;
}

.toast-message {
  flex: 1;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-900);
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-400);
  font-size: 0.8rem;
  padding: 0.15rem;
  border-radius: 0.25rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.toast-close:hover {
  color: var(--text-900);
  background-color: var(--surface-page);
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes toast-slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(16px);
  }
}
@media (max-width: 640px) {
  .toast-viewport {
    top: auto;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}
.confirm-dialog-body {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.confirm-dialog-icon {
  flex-shrink: 0;
  font-size: 1.35rem;
  margin-top: 0.1rem;
  color: #eab308;
}
.confirm-dialog-icon-danger {
  color: #dc2626;
}

.confirm-dialog-message {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-900);
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/*# sourceMappingURL=globals.css.map */
