/* /idsahome/csc/assets/csc_ui.css
   Minimal CSC panel styling (no external deps). */

.idsa-csc-root {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0b1220;
  color: #e6edf7;
  overflow-x: clip;
}

.csc-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100vw;
  box-sizing: border-box;
}

.csc-side {
  background: #0f1a2f;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
}

.csc-brand {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.csc-brand-title { font-weight: 700; letter-spacing: 0.2px; }
.csc-brand-sub { opacity: 0.75; font-size: 12px; margin-top: 4px; }

.csc-nav { padding: 8px; display: grid; gap: 6px; }
.csc-nav-link {
  text-decoration: none;
  color: inherit;
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.csc-nav-link:hover { background: rgba(255,255,255,0.06); }
.csc-nav-link.is-active { background: rgba(83, 149, 255, 0.18); border-color: rgba(83,149,255,0.35); }

.csc-side-footer { margin-top: auto; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.csc-user-name { font-weight: 600; }
.csc-user-meta { opacity: 0.7; font-size: 12px; margin-top: 2px; }
.csc-logout { display: inline-block; margin-top: 10px; color: #cfe0ff; text-decoration: none; }
.csc-logout:hover { text-decoration: underline; }

.csc-main {
  background: #0b1220;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.csc-top { padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.csc-top-title { font-size: 18px; font-weight: 700; }
.csc-content {
  padding: 18px;
  display: grid;
  gap: 14px;
  min-width: 0;
  box-sizing: border-box;
}

.csc-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.csc-card h1, .csc-card h2 { margin: 0 0 10px 0; }
.csc-muted { opacity: 0.8; margin-top: 0; }
.csc-warn { color: #ffcc66; }
.csc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; opacity: 0.85; }

.csc-btn {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(83,149,255,0.45);
  background: rgba(83,149,255,0.22);
  color: #eaf2ff;
  text-decoration: none;
  cursor: pointer;
}
.csc-btn:hover { background: rgba(83,149,255,0.30); }

.csc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.csc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.csc-k { font-size: 12px; opacity: 0.75; }
.csc-v { font-weight: 700; }
/* Station / reference IDs on dashboard — less visual weight than summary stats */
.csc-v.csc-ref { font-weight: 500; opacity: 0.72; font-size: 13px; }

.csc-ref-details {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.15);
}
.csc-ref-summary {
  cursor: pointer;
  font-size: 13px;
  opacity: 0.85;
  list-style: none;
}
.csc-ref-summary::-webkit-details-marker { display: none; }
.csc-ref-details__body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.csc-auth { min-height: 100vh; display: grid; place-items: center; padding: 18px; }
.csc-label { display: grid; gap: 6px; margin: 10px 0; }
.csc-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
}
.csc-input:focus { border-color: rgba(83,149,255,0.6); }
.csc-alert {
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid rgba(255, 92, 92, 0.30);
  color: #ffd2d2;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 10px 0;
}
.csc-footnote { opacity: 0.75; font-size: 12px; margin-top: 12px; }

.csc-table-wrap { overflow: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }
.csc-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.csc-table th, .csc-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; }
.csc-table th { font-size: 12px; opacity: 0.8; font-weight: 700; }

.csc-badge { padding: 4px 8px; border-radius: 999px; font-size: 12px; border: 1px solid rgba(255,255,255,0.15); }
.csc-badge-pending { background: rgba(255, 204, 102, 0.12); border-color: rgba(255, 204, 102, 0.35); }
.csc-badge-payable { background: rgba(83, 149, 255, 0.12); border-color: rgba(83, 149, 255, 0.35); }
.csc-badge-paid { background: rgba(72, 197, 125, 0.12); border-color: rgba(72, 197, 125, 0.35); }
.csc-badge-reversed { background: rgba(255, 92, 92, 0.12); border-color: rgba(255, 92, 92, 0.35); }

@media (max-width: 900px) {
  .csc-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .csc-side {
    position: sticky;
    top: 0;
    z-index: 10;
    max-width: 100%;
    box-sizing: border-box;
  }
  /* Stack/wrap — avoid whole-page horizontal scroll from a sideways nav rail */
  .csc-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible;
    padding: 8px 10px;
  }
  .csc-nav-link {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    text-align: center;
    box-sizing: border-box;
  }
  .csc-nav-help {
    flex: 1 1 100%;
    text-align: center;
  }
  .csc-side-footer {
    display: block;
    padding: 10px 12px;
    font-size: 13px;
  }
  .csc-grid { grid-template-columns: 1fr; }
  .csc-table {
    min-width: 0;
  }
}

/* Disabled booking button state */
.csc-btn-disabled {
  opacity: .55;
  cursor: not-allowed;
  border-style: dashed;
}

/* KYC location update — 3-step grid */
.csc-kyc-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:10px; margin-top: 10px; }
.csc-kyc-step { border:1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,0.02); }
.csc-kyc-step strong { display:block; font-size: 13px; margin-bottom: 4px; }
.csc-kyc-step.done { border-color: rgba(72,197,125,0.55); background: rgba(72,197,125,0.12); }
.csc-kyc-step.next { border-color: rgba(83,149,255,0.55); background: rgba(83,149,255,0.12); }
.csc-kyc-row { display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.csc-kyc-help { font-size: 12px; opacity: .82; margin-top: 8px; }
.csc-alert-ok { background: rgba(72, 197, 125, 0.12); border: 1px solid rgba(72, 197, 125, 0.4); color: #d3ffe4; }
.csc-alert-warn { background: rgba(255, 204, 102, 0.12); border: 1px solid rgba(255, 204, 102, 0.4); color: #ffe2a8; }
.csc-readonly-box { border: 1px dashed rgba(255,255,255,0.2); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,0.02); }
@media (max-width: 900px) {
  .csc-kyc-grid, .csc-kyc-row { grid-template-columns: 1fr; }
}

.csc-desk-presence {
  margin-top: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.csc-desk-presence__label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.csc-desk-presence__hint {
  margin: 0;
  font-size: 11px;
  opacity: 0.72;
  line-height: 1.4;
}
.csc-btn-ghost {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.04);
}
.csc-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

