/* =========================================================
   Approval Mode – color overrides ONLY
   Uses existing app layout (760px card)
   ========================================================= */

/* Page background (staff only) */
body.approval-mode {
  background: linear-gradient(135deg, #0f3d2e, #1b6b44);
}

/* Card surface */
body.approval-mode .card {
  background: linear-gradient(160deg, #0f4d35, #1f7a4f);
  border: 1px solid #1fa36b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* Header / titles */
body.approval-mode h1,
body.approval-mode h2,
body.approval-mode h3 {
  color: #e6fff1;
}

/* Muted text */
body.approval-mode .muted {
  color: rgba(230, 255, 241, 0.7);
}

body {
  background: #1b6b44 linear-gradient(135deg, #0f3d2e, #1b6b44) no-repeat !important;
}

/* =========================================
   Breadcrumbs (staff apps)
   ========================================= */

.breadcrumb {
  font-size: 12px;          /* smaller text */
  line-height: 1.2;
  margin-bottom: 8px;       /* pull card upward */
  color: #6b7280;           /* muted gray */
}

.breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 6px;
  color: #9ca3af;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: 0.2s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #2c7be5;
}

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

.toggle span {
  font-size: 14px;
}

/* =========================================
   Staff app tiles (dashboard + sub-dashboards)
   Overrides the dark landing-page .tile in app.css
   ========================================= */

body.approval-mode .tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

body.approval-mode .tile {
  min-height: 0;
  padding: 18px;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(230, 255, 241, 0.18);
  background: rgba(0, 0, 0, 0.16);
  box-shadow: none;
  overflow: hidden;
}

/* The landing-page glow overflowed the rounded corners */
body.approval-mode .tile::before {
  display: none;
}

body.approval-mode .tile:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(230, 255, 241, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

body.approval-mode .tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  background: rgba(230, 255, 241, 0.10);
  border: 1px solid rgba(230, 255, 241, 0.18);
}

body.approval-mode .tile-title {
  font-size: 16px;
  font-weight: 650;
  color: #e6fff1;
  line-height: 1.3;
}

body.approval-mode .tile-count {
  align-self: flex-start;
  margin-top: auto;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0f3d2e;
  background: #8ff0c0;
}

body.approval-mode .tile-disabled {
  cursor: default;
  opacity: 0.55;
}

body.approval-mode .tile-disabled:hover {
  transform: none;
  background: rgba(0, 0, 0, 0.16);
  border-color: rgba(230, 255, 241, 0.18);
  box-shadow: none;
}

body.approval-mode .tile-note {
  margin-top: auto;
  font-size: 12px;
  opacity: 0.8;
}

body.approval-mode .tile-sub {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(230, 255, 241, 0.72);
}

body.approval-mode .tile-add {
  border-style: dashed;
  border-color: rgba(230, 255, 241, 0.35);
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- Action buttons ----------
   Approve/complete = green, reject/delete = red, back/cancel = plain,
   matching the approval pop-up. */
.btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.btn-success {
  border-color: rgba(46,204,113,0.65);
  background: rgba(46,204,113,0.28);
  color: #eafff3;
}
.btn-success:hover {
  border-color: rgba(46,204,113,0.85);
  background: rgba(46,204,113,0.38);
}
.btn-danger {
  border-color: rgba(255,120,120,0.55);
  background: rgba(255,120,120,0.14);
  color: #ffd0d0;
}
.btn-danger:hover {
  border-color: rgba(255,120,120,0.8);
  background: rgba(255,120,120,0.22);
}
