/* glass.css — CommandOS Surface Components
   Additional component-level styles used across portal pages */

/* Inherits design tokens from app.css */

/* ── DATA GRID PANELS ─────────────────────────────────────── */
.panel {
  background: var(--white, #fff);
  border: 1.5px solid rgba(13,32,53,0.15);
  margin-bottom: 16px;
}
.panel-header {
  padding: 14px 18px;
  background: rgba(13,32,53,0.04);
  border-bottom: 1px solid rgba(13,32,53,0.1);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-header h3 {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em; color: #0D2035;
}
.panel-body { padding: 20px 18px; }

/* ── WORKFLOW PIPELINE ────────────────────────────────────── */
.wf-stage {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
}
.wf-col {
  min-width: 200px; flex: 1;
  background: #E6F7F7;
  border: 1.5px solid rgba(13,32,53,0.12);
  display: flex; flex-direction: column;
}
.wf-col-head {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(13,32,53,0.1);
  font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  display: flex; justify-content: space-between; align-items: center;
  background: #0D2035; color: #F2F8F8;
}
.wf-col-count {
  background: rgba(255,255,255,0.15);
  padding: 1px 7px; font-size: 10px; font-weight: 800;
}
.wf-col-body { flex: 1; padding: 8px; min-height: 120px; }
.wf-card {
  background: #fff;
  border: 1.5px solid rgba(13,32,53,0.1);
  padding: 10px 12px; margin-bottom: 6px;
  font-size: 12px; cursor: pointer; transition: 0.12s;
}
.wf-card:hover { border-color: #0D2035; box-shadow: 2px 2px 0 0 rgba(13,32,53,0.15); }
.wf-card-title { font-weight: 700; line-height: 1.3; color: #0D2035; }
.wf-card-meta  { font-size: 10px; color: rgba(13,32,53,0.4); font-family: 'DM Mono', monospace; margin-top: 4px; }

/* ── FILTER BAR ───────────────────────────────────────────── */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px; padding: 14px 18px;
  background: #E6F7F7; border: 1.5px solid rgba(13,32,53,0.12);
}
.filter-bar label {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; white-space: nowrap; color: rgba(13,32,53,0.5); margin-bottom: 0;
}
.filter-bar select, .filter-bar input {
  padding: 6px 10px; font-size: 11px; width: auto; min-width: 120px;
}

/* ── DETAIL RECORD ────────────────────────────────────────── */
.record-header {
  padding: 24px 28px; border-bottom: 1.5px solid rgba(13,32,53,0.12);
  background: #0D2035; color: #F2F8F8;
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px;
}
.record-id {
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: rgba(228,227,224,0.5); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.12em;
}
.record-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.record-meta  { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.record-meta-item { font-size: 10px; color: rgba(228,227,224,0.5); }
.record-meta-item strong { display: block; color: rgba(228,227,224,0.85); font-size: 12px; }

/* ── TIMELINE / ACTIVITY ──────────────────────────────────── */
.timeline { padding: 0; }
.timeline-item {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid rgba(13,32,53,0.07);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  width: 8px; height: 8px; border: 2px solid #0D2035;
  background: #F2F8F8; margin-top: 5px; flex-shrink: 0;
}
.timeline-dot.active { background: #0D2035; }
.timeline-dot.success { background: #1A9E6E; border-color: #1A9E6E; }
.timeline-dot.warning { background: #00AEAC; border-color: #00AEAC; }
.timeline-dot.error   { background: #D94040; border-color: #D94040; }
.timeline-content { flex: 1; }
.timeline-title   { font-size: 12px; font-weight: 700; color: #0D2035; }
.timeline-time    { font-size: 10px; color: rgba(13,32,53,0.4); font-family: 'DM Mono', monospace; }
.timeline-desc    { font-size: 11px; color: rgba(13,32,53,0.55); margin-top: 3px; }

/* ── FILE UPLOAD / DROP ZONE ──────────────────────────────── */
.dropzone {
  border: 2px dashed rgba(13,32,53,0.2);
  padding: 40px 24px; text-align: center;
  cursor: pointer; transition: 0.15s;
  background: #F2F8F8;
}
.dropzone:hover, .dropzone.drag-over { border-color: #0D2035; background: rgba(13,32,53,0.03); }
.dropzone-icon { font-size: 32px; opacity: 0.2; margin-bottom: 10px; }
.dropzone p { font-size: 12px; color: rgba(13,32,53,0.4); }

/* ── SEARCH INPUT ─────────────────────────────────────────── */
.search-wrap {
  position: relative; display: flex; align-items: center;
}
.search-wrap input {
  padding-left: 36px;
}
.search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: rgba(13,32,53,0.3); pointer-events: none;
}

/* ── INLINE TAGS ──────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  background: rgba(13,32,53,0.07); color: rgba(13,32,53,0.7);
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid rgba(13,32,53,0.12);
}
.tag-close { cursor: pointer; opacity: 0.5; }
.tag-close:hover { opacity: 1; }

/* ── ROLE LABELS ──────────────────────────────────────────── */
.role-badge {
  display: inline-block; padding: 2px 8px;
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid;
}
.role-superadmin { border-color: #7C3AED; color: #7C3AED; background: rgba(124,58,237,0.08); }
.role-admin       { border-color: #0D2035; color: #0D2035; background: rgba(13,32,53,0.06); }
.role-hr          { border-color: #0EA5E9; color: #0EA5E9; background: rgba(14,165,233,0.08); }
.role-department_head { border-color: #00AEAC; color: #00AEAC; background: rgba(0,174,172,0.08); }
.role-staff       { border-color: #1A9E6E; color: #1A9E6E; background: rgba(26,158,110,0.08); }

/* ── NOTES / DESCRIPTION BLOCKS ──────────────────────────── */
.note-block {
  padding: 12px 16px;
  background: rgba(0,174,172,0.06); border: 1.5px solid rgba(0,174,172,0.2);
  font-size: 12px; line-height: 1.6; color: rgba(13,32,53,0.7);
}
.info-block {
  padding: 12px 16px;
  background: rgba(59,130,246,0.06); border: 1.5px solid rgba(59,130,246,0.2);
  font-size: 12px; line-height: 1.6; color: rgba(13,32,53,0.7);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 760px) {
  .wf-stage { flex-direction: column; }
  .wf-col   { min-width: 0; width: 100%; }
  .record-header { padding: 18px; }
}
