@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #172554;
  --navy-soft: #1E3A8A;
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-soft: #EFF6FF;
  --surface-muted: #F1F5F9;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --text-primary: #172554;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --text-on-dark-muted: #CBD5E1;

  --status-wait-bg: #FEF9C3;
  --status-wait-fg: #A16207;
  --status-proc-bg: #EFF6FF;
  --status-proc-fg: #2563EB;
  --status-done-bg: #F0FDF4;
  --status-done-fg: #15803D;
  --status-rej-bg: #FEF2F2;
  --status-rej-fg: #B91C1C;

  --radius-sm: 6px;
  --radius-tab: 9px;
  --radius-tip: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #F1F5F9;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.mobile-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 480px) {
  .mobile-shell {
    box-shadow: 0 18px 48px rgba(23, 37, 84, 0.12);
  }
}

/* Splash Theme */
.splash-shell {
  background: var(--navy);
  color: var(--white);
  justify-content: space-between;
}

.splash-content {
  flex: 1;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.splash-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-on-dark-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.splash-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-on-dark-muted);
}

.splash-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  margin: 32px 0;
}

.splash-logo-outer {
  width: 128px;
  height: 128px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo-inner {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.splash-title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.splash-tagline {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
}

.splash-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  max-width: 295px;
}

.splash-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 6px;
}

.splash-feature-pill {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark-muted);
}

.splash-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.splash-footnote {
  font-size: 12px;
  color: var(--text-on-dark-muted);
}

/* Status bar (compact top accent matching mobile viewport) */
.status-bar {
  height: 44px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.status-bar-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Page Header / App Bar */
.app-bar {
  min-height: 68px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.app-bar-titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-bar-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.app-bar-subtitle {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--border);
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  margin-left: -6px;
  flex-shrink: 0;
}

.back-btn:hover {
  background: var(--surface-muted);
}

/* Main Content Area */
.page-body {
  flex: 1;
  padding: 12px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-body.has-bottom-nav {
  padding-bottom: 100px;
}

/* Login Screen */
.login-body {
  flex: 1;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.login-brand-name {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
}

.login-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.login-heading {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.login-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Form Elements */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input-control {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text-primary);
  padding: 14px 0;
}

.input-control::placeholder {
  color: var(--text-subtle);
}

select.input-control {
  cursor: pointer;
  appearance: auto;
}

.textarea-wrap {
  align-items: flex-start;
  padding: 12px 14px;
}

.textarea-control {
  width: 100%;
  min-height: 92px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
  resize: vertical;
}

.textarea-control::placeholder {
  color: var(--text-subtle);
}

.input-icon-btn {
  background: transparent;
  border: none;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}

.text-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.text-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.99);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover:not(:disabled) {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.btn-secondary {
  background: var(--surface-muted);
  color: var(--blue);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--border);
}

.btn-outline {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-outline:hover:not(:disabled) {
  background: var(--surface-muted);
}

/* Alerts & Banners */
.info-banner {
  padding: 12px 14px;
  border-radius: var(--radius-tip);
  background: var(--blue-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-primary);
}

.info-banner.muted {
  background: var(--surface-muted);
  color: var(--text-muted);
  border-radius: var(--radius-md);
}

.error-banner {
  padding: 12px 14px;
  border-radius: var(--radius-tip);
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 12px;
  line-height: 1.5;
  display: none;
}

.error-banner.visible {
  display: block;
}

.helper-card {
  padding: 18px 20px;
  background: var(--surface-muted);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.helper-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.helper-card-text {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.demo-chip-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
}

.demo-chip-btn:hover {
  background: var(--blue-soft);
}

/* Home Dashboard */
.greeting-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.greeting-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

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

.hero-card {
  padding: 20px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--white);
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-room-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-room-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

.hero-room-meta {
  font-size: 12px;
  color: var(--text-on-dark-muted);
  margin-top: 3px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  padding: 12px;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
}

.stat-label.wait { color: var(--status-wait-fg); }
.stat-label.proc { color: var(--status-proc-fg); }
.stat-label.done { color: var(--status-done-fg); }

.nav-shortcut-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-shortcut-card:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

/* Report Cards */
.report-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-card {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.report-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(23, 37, 84, 0.05);
}

.report-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-code {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.report-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-tip);
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}

.report-card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-menunggu {
  background: var(--status-wait-bg);
  color: var(--status-wait-fg);
}

.status-diproses {
  background: var(--status-proc-bg);
  color: var(--status-proc-fg);
}

.status-selesai {
  background: var(--status-done-bg);
  color: var(--status-done-fg);
}

.status-ditolak {
  background: var(--status-rej-bg);
  color: var(--status-rej-fg);
}

/* Search & Filter Tabs */
.search-box {
  height: 48px;
  padding: 0 14px;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.search-box:focus-within {
  background: var(--white);
  border-color: var(--blue);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.filter-tabs.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.filter-tabs.five-cols {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs.five-cols::-webkit-scrollbar {
  display: none;
}

.filter-tabs.five-cols .filter-tab {
  flex: 0 0 auto;
  padding: 0 12px;
}

.segment-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
}

.segment-tab {
  height: 36px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.segment-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.bell-btn-wrap {
  position: relative;
}

.notif-count-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #DC2626;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.notif-count-badge.visible {
  display: inline-flex;
}

.notif-card {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.notif-card.unread {
  background: var(--blue-soft);
  border-color: #BFDBFE;
}

.notif-card:hover {
  border-color: #93C5FD;
}

.filter-tab {
  height: 36px;
  border-radius: var(--radius-tab);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Quick Chips for Location */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-chip {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.quick-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

/* Photo Upload & Detail Placeholder Box */
.photo-preview-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
}

.photo-thumb-box {
  position: relative;
  width: 68px;
  height: 66px;
  border-radius: 8px;
  background: var(--surface-muted);
  border: 1px dashed #CBD5E1;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-box {
  position: relative;
  width: 100%;
  height: 176px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  border: 1.5px dashed #CBD5E1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-box.has-image,
.photo-thumb-box.has-image {
  border-style: solid;
  border-color: var(--border);
}

.photo-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-img[src=""],
.photo-img:not([src]) {
  display: none;
}

.photo-placeholder-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.photo-box.has-image .photo-placeholder-label,
.photo-thumb-box.has-image .photo-placeholder-label {
  display: none;
}

.photo-count-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  background: rgba(23, 37, 84, 0.9);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Detail Screen */
.detail-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text-primary);
}

.detail-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

.detail-location-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.handler-card {
  padding: 14px;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.handler-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.timeline-rail {
  width: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
}

.timeline-dot.done {
  background: var(--blue-soft);
  color: var(--blue);
}

.timeline-dot.active {
  background: var(--blue);
}

.timeline-dot.active::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

.timeline-dot.pending::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-subtle);
}

.timeline-dot.rejected {
  background: var(--status-rej-bg);
  color: var(--status-rej-fg);
}

.timeline-line {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 3px 0;
}

.timeline-content {
  flex: 1;
  padding-top: 1px;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.timeline-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timeline-note {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
}

.timeline-cost-pill {
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}

.timeline-label {
  font-size: 12px;
  color: var(--text-primary);
}

.timeline-label.bold {
  font-weight: 600;
}

.timeline-label.muted {
  color: var(--text-subtle);
}

.timeline-time {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
}

/* Success Screen */
.success-body {
  flex: 1;
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.success-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-top: 12px;
}

.success-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-ticket-card {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 40;
  padding: 6px 12px 12px;
}

.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.bottom-nav-item {
  height: 52px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}

.bottom-nav-item svg {
  color: var(--text-subtle);
}

.bottom-nav-item.active {
  color: var(--blue);
  font-weight: 600;
}

.bottom-nav-item.active svg {
  color: var(--blue);
}

/* Modal / Sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop.open {
  display: flex;
}

.sheet-panel {
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 82vh;
  overflow-y: auto;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--border);
  align-self: center;
}

.empty-state {
  padding: 28px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: #F8FAFC;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.loading-state {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Extended CRUD & Shared Component Styles */
.success-banner {
  padding: 12px 14px;
  border-radius: var(--radius-tip);
  background: var(--status-done-bg);
  border: 1px solid #BBF7D0;
  color: var(--status-done-fg);
  font-size: 12px;
  line-height: 1.5;
  display: none;
}

.success-banner.visible {
  display: block;
}

.btn-danger {
  background: #DC2626;
  color: var(--white);
  border-color: #DC2626;
}

.btn-danger:hover:not(:disabled) {
  background: #B91C1C;
  border-color: #B91C1C;
}

.btn-danger-outline {
  background: var(--white);
  color: #B91C1C;
  border-color: #FECACA;
}

.btn-danger-outline:hover:not(:disabled) {
  background: #FEF2F2;
  border-color: #FCA5A5;
}

.btn-sm {
  height: 38px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 10px;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.section-card {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.facility-card {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.facility-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.facility-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.facility-brand {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
}

.facility-notes {
  margin: 0;
  padding: 10px 12px;
  background: var(--surface-muted);
  border-radius: var(--radius-tip);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.profile-hero {
  padding: 20px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.profile-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.35);
  color: #DBEAFE;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.danger-zone-card {
  padding: 16px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-footer-link {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.readonly-value {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* Owner Panel Styles */
.owner-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.owner-stat-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.owner-stat-card:hover {
  border-color: #CBD5E1;
}

.owner-stat-card.navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.owner-stat-card.navy .stat-value {
  color: var(--white);
}

.owner-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.owner-stat-card.navy .owner-stat-label {
  color: var(--text-on-dark-muted);
}

.owner-stat-label.wait { color: var(--status-wait-fg); }
.owner-stat-label.proc { color: var(--status-proc-fg); }
.owner-stat-label.done { color: var(--status-done-fg); }

.owner-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.priority-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 600;
}

.priority-pill.high {
  background: #FEF2F2;
  color: #B91C1C;
}

.priority-pill.medium {
  background: #FEF9C3;
  color: #A16207;
}

.priority-pill.low {
  background: #F0FDF4;
  color: #15803D;
}

.resident-info-card {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.resident-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-mini-card {
  padding: 14px 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-body.has-bottom-action {
  padding-bottom: 104px;
}

.owner-bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 10px;
}

.owner-bottom-action-bar.single {
  grid-template-columns: 1fr;
}

.asset-preview-box {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.confirm-ring-danger {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #FEF2F2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-circle-danger {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #DC2626;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-banner.danger {
  background: #FEF2F2;
  color: #991B1B;
}

.kv-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.kv-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.kv-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

/* Penanda Darurat, Fasilitas Umum (+1 Terdampak), dan Kontrol Form Tambahan */
.report-card.urgent-card,
.notif-card.urgent-card {
  border-color: #FCA5A5;
  background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 100%);
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.08);
}

.terdampak-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 10px;
  font-weight: 700;
}

.umum-banner-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.umum-alert-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.umum-alert-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.umum-alert-title {
  font-size: 13px;
  font-weight: 700;
  color: #92400E;
  margin: 0;
}

.umum-alert-sub {
  font-size: 12px;
  color: #78350F;
  line-height: 1.45;
}

.warning-banner {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  font-size: 12px;
  line-height: 1.5;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.warning-banner.visible {
  display: flex;
}

.toggle-box-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.checkbox-label-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #DC2626;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-box-card.urgent-active {
  background: #FEF2F2;
  border-color: #FCA5A5;
}

.schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  background: #EFF6FF;
  color: #1E40AF;
  font-size: 11px;
  font-weight: 600;
}

.izin-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
}

.izin-pill.ok {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
}

.izin-pill.warn {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
}

.biaya-internal-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 10px;
  font-weight: 600;
}

.owner-expense-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #F8FAFC;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-mini-timeline {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-tl-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}

.mini-tl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
  background: var(--blue);
}

.mini-tl-dot.done {
  background: #15803D;
}

.mini-tl-dot.rejected {
  background: #B91C1C;
}

.mini-tl-dot.wait {
  background: #CA8A04;
}

.mini-tl-body {
  flex: 1;
  min-width: 0;
}

.mini-tl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.mini-tl-time {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-subtle);
  flex-shrink: 0;
}

.mini-tl-note {
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
