@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,500;0,6..12,600;0,6..12,700;0,6..12,800;1,6..12,400&display=swap');

:root {
  /* B-CHECK / Dashboard Minimalist Light Palette */
  --bg-main: #f4f6f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --text-main: #1e293b;
  --text-secondary: #475569;
  --text-muted: #8492a6;
  --border: #e9eef5;

  --c-gm: #1282c8;
  --c-gm-glow: #e0f2fe;
  --c-rm: #7c3aed;
  --c-rm-glow: #f3e8ff;
  --c-proj: #d97706;
  --c-proj-glow: #fef3c7;

  --c-primary: #1282c8;
  --c-primary-hover: #0e6da8;
  --c-danger: #e11d48;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  user-select: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.launcher-container {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-main);
  padding-bottom: 80px;
}

/* Header (B-CHECK Blue Brand Header) */
.launcher-header {
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, #2589cf 0%, #1c75b6 100%);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 10px rgba(18, 130, 200, 0.18);
}

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

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

.brand-logo {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #ffffff;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-icon:active {
  transform: scale(0.93);
}

/* Install Banner */
.install-bar {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.install-bar.active {
  display: flex;
}

.install-bar span {
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-install {
  background: #ffffff;
  color: #1282c8;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

/* Section Title */
.section-title {
  padding: 18px 20px 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 800;
}

/* App Launcher Grid / Cards */
.apps-grid {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 6px 20px 20px;
}

.app-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.app-tile:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.app-tile:active {
  transform: scale(0.985);
}

.app-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.app-tile.theme-gm::before { background: #1282c8; }
.app-tile.theme-rm::before { background: #7c3aed; }
.app-tile.theme-proj::before { background: #d97706; }
.app-tile.theme-apar::before { background: #e11d48; }
.app-tile.theme-ac::before { background: #0284c7; }
.app-tile.theme-hydrant::before { background: #d97706; }

.tile-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tile-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.theme-gm .tile-icon-box { background: #e0f2fe; color: #1282c8; }
.theme-rm .tile-icon-box { background: #f3e8ff; color: #7c3aed; }
.theme-proj .tile-icon-box { background: #fef3c7; color: #d97706; }
.theme-apar .tile-icon-box { background: #fee2e2; color: #e11d48; }
.theme-ac .tile-icon-box { background: #e0f2fe; color: #0284c7; }
.theme-hydrant .tile-icon-box { background: #fef3c7; color: #d97706; }

.tile-info {
  flex: 1;
}

.tile-info h2 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.tile-arrow {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s, color 0.18s;
}

.app-tile:hover .tile-arrow {
  color: var(--c-primary);
  transform: translateX(3px);
}

/* Module Screen (When an app is opened) */
.module-view {
  display: none;
  flex-direction: column;
  position: absolute;
  inset: 0;
  background: var(--bg-main);
  z-index: 40;
  min-height: 100vh;
}

.module-view.active {
  display: flex;
}

.module-header {
  padding: 14px 20px;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.btn-back {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
}

.btn-back:hover {
  background: #f8fafc;
}

.module-title h2 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}

.module-title p {
  font-size: 0.73rem;
  color: var(--c-primary);
  font-weight: 700;
}

.module-filter-bar {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
}

.m-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.m-chip.active {
  background: var(--c-primary);
  color: #ffffff;
  border-color: var(--c-primary);
  box-shadow: 0 2px 6px rgba(18, 130, 200, 0.25);
}

.ticket-list {
  padding: 6px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  overflow-y: auto;
}

.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
  box-shadow: var(--shadow);
  user-select: none;
}

.ticket-card:hover {
  border-color: #bae6fd;
  background: #f8fafc;
}

.ticket-card:active {
  transform: scale(0.99);
}

.ticket-name-box {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  overflow: hidden;
  pointer-events: none;
}

.ticket-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  pointer-events: none;
}

.ticket-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.ticket-arrow {
  color: #94a3b8;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  pointer-events: none;
  transition: transform 0.18s, color 0.18s;
}

.ticket-card:hover .ticket-arrow {
  color: var(--c-primary);
  transform: translateX(3px);
}

/* DETAIL SCREEN STYLING (Minimalist Light) */
.detail-container {
  padding: 16px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: var(--shadow);
}

.detail-header-card {
  background: #ffffff;
  border: 1px solid #bae6fd;
  box-shadow: 0 2px 10px rgba(18, 130, 200, 0.06);
}

.detail-card-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
}

.detail-label {
  color: var(--text-muted);
  font-size: 0.77rem;
  font-weight: 600;
}

.detail-value {
  color: var(--text-main);
  font-weight: 700;
  text-align: right;
}

.detail-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

@media (max-width: 480px) {
  .detail-grid-2 {
    grid-template-columns: 1fr;
  }
}

.detail-check-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-check-box.checked {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.detail-check-box.unchecked {
  background: #fef2f2;
  border-color: #fecaca;
}

.detail-check-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.detail-check-info h4 {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.detail-check-info p {
  font-size: 0.71rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.25;
}

.detail-temuan-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-left: 3px solid var(--c-primary);
}

.detail-full-photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.detail-actions-footer {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 6px;
}

.btn-detail-status {
  background: var(--c-primary);
  color: #ffffff;
  border: none;
  padding: 11px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s;
}

.btn-detail-status:hover {
  background: var(--c-primary-hover);
}

.btn-detail-del {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  padding: 11px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s;
}

.btn-detail-del:hover {
  background: #ffe4e6;
}

.t-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
}

.tag-pending { background: #fef3c7; color: #b45309; }
.tag-progress { background: #e0f2fe; color: #0369a1; }
.tag-done { background: #dcfce7; color: #15803d; }

.t-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Empty State */
.m-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.m-empty-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* Floating Action Button */
.fab-module {
  position: fixed;
  bottom: 24px;
  right: calc(50% - 260px + 24px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(18, 130, 200, 0.35);
  cursor: pointer;
  z-index: 50;
  transition: transform 0.18s, background 0.18s;
}

.fab-module:hover {
  background: var(--c-primary-hover);
}

@media (max-width: 520px) {
  .fab-module { right: 20px; }
}

.fab-module:active {
  transform: scale(0.92);
}

/* Modal Form (Full Screen Page) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  display: none;
  align-items: stretch;
  justify-content: center;
  z-index: 60;
}

.modal-overlay.active {
  display: flex;
}

.modal-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  padding: 20px 20px 36px;
  border-top: none;
  box-shadow: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -20px -20px 18px -20px;
  padding: 15px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: -20px;
  z-index: 10;
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.form-group {
  margin-bottom: 13px;
}

.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 10px 13px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.86rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(18, 130, 200, 0.08);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-form {
  flex: 1;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
}

.btn-form-cancel {
  background: #f1f5f9;
  color: var(--text-secondary);
}

.btn-form-save {
  background: var(--c-primary);
  color: #ffffff;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  z-index: 70;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================================
   APAR Inspection Form & QR Scanner
   =================================== */
.btn-scan-qr {
  background: var(--c-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-scan-qr:active {
  transform: scale(0.96);
}

.check-item-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.18s;
}

.check-item-box input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--c-primary);
  cursor: pointer;
}

.check-item-text h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1px;
}

.check-item-text p {
  font-size: 0.71rem;
  color: var(--text-muted);
}

.apar-status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-apar-status {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.18s;
}

.btn-apar-status.status-baik.active {
  background: #dcfce7;
  border-color: #16a34a;
  color: #15803d;
}

.btn-apar-status.status-buruk.active {
  background: #fee2e2;
  border-color: #e11d48;
  color: #b91c1c;
}

/* Photo Upload Box */
.photo-uploader {
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.18s;
}

.photo-uploader:hover {
  border-color: var(--c-primary);
  background: #f0f9ff;
}

.photo-preview-wrap {
  position: relative;
  display: inline-block;
  margin-top: 10px;
}

.photo-preview-img {
  max-width: 100%;
  max-height: 180px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  display: block;
}

.btn-remove-photo {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #e11d48;
  color: #ffffff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Modal QR Scanner */
.modal-qr-body {
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#qrReader {
  width: 100% !important;
  max-width: 360px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--c-primary);
  background: #000000;
}

#qrReader video {
  border-radius: 12px;
}

.apar-tag-baik {
  background: #dcfce7;
  color: #15803d;
}

.apar-tag-buruk {
  background: #fee2e2;
  color: #b91c1c;
}

/* ===================================
   Room Maintenance - Accordion Sections (Entrance & Bathroom)
   =================================== */
.rm-sections-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rm-section-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rm-section-card.open {
  border-color: #1282c8;
  box-shadow: 0 6px 16px rgba(18, 130, 200, 0.1);
}

.rm-section-header {
  width: 100%;
  background: linear-gradient(135deg, #1282c8 0%, #0f6ca8 100%);
  color: #ffffff;
  padding: 15px 18px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: filter 0.18s;
}

.rm-section-header:hover {
  filter: brightness(1.04);
}

.rm-section-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rm-section-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
}

.rm-section-title {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 0;
  color: #ffffff;
}

.rm-section-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}

.rm-section-chevron {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.22s ease, background 0.18s ease;
}

.rm-section-card.open .rm-section-chevron {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.28);
}

.rm-section-body {
  display: none;
  padding: 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-direction: column;
  gap: 10px;
}

.rm-section-card.open .rm-section-body {
  display: flex;
}

.entrance-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entrance-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.entrance-item-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px dashed #e2e8f0;
}

.entrance-item-num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #e0f2fe;
  color: #1282c8;
  font-size: 0.74rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.entrance-item-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1e293b;
}

.entrance-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 420px) {
  .entrance-controls-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.entrance-control-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entrance-control-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
}

.entrance-toggle-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.btn-entrance-opt {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  padding: 7px 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-entrance-opt:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.btn-entrance-opt.opt-bagus.active {
  background: #dcfce7;
  border-color: #16a34a;
  color: #15803d;
}

.btn-entrance-opt.opt-rusak.active {
  background: #fee2e2;
  border-color: #e11d48;
  color: #b91c1c;
}

.btn-entrance-opt.opt-perbaikan.active {
  background: #fef3c7;
  border-color: #d97706;
  color: #b45309;
}

.btn-entrance-opt.opt-pembersihan.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}

/* Detail View Entrance Table */
.entrance-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.entrance-detail-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1.5px solid #e2e8f0;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.entrance-detail-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  font-weight: 700;
}

.entrance-detail-table tr:last-child td {
  border-bottom: none;
}

.badge-kondisi-bagus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
}

.badge-kondisi-rusak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fee2e2;
  color: #b91c1c;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
}

.badge-action-perbaikan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
}

.badge-action-pembersihan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
}
