/* public/components/apprentice-shell.css — navy sidebar + main pane shared by all apprentice tabs. */
:root {
  --navy: #1e3a5f; --navy-deep: #16294a; --navy-hover: #25446e; --navy-active: #2d5180;
  --gold: #c89b3c;
  --primary-orange: #F97316; --primary-deep-orange: #c2410c;
  --green: #10b981; --green-grad: linear-gradient(135deg, #10b981, #059669);
  --slate-blue: #1f2937;
  --green-pill: #d1fae5; --green-pill-ink: #047857;
  --blue-pill: #dbeafe; --blue-pill-ink: #1d4ed8;
  --yellow-pill: #fef3c7; --yellow-pill-ink: #92400e;
  --bg: #f5f6f8; --card: #fff; --ink: #0f172a; --muted: #64748b; --line: #e5e7eb;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); }
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

aside.sidebar { background: var(--navy); color: #fff; padding: 18px 14px; }
aside .brand { font-weight: 800; font-size: 18px; letter-spacing: .04em; color: var(--gold); margin-bottom: 4px; }
aside .badge { font-size: 11px; background: rgba(255,255,255,.12); padding: 3px 9px; border-radius: 999px; display: inline-block; margin-bottom: 18px; letter-spacing: .06em; font-weight: 600; }
aside .nav-section { margin: 14px 0 6px; padding: 0 8px; font-size: 11px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
aside .nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; color: #fff; text-decoration: none; border-radius: 6px; font-size: 13.5px; opacity: .85; margin-bottom: 2px; }
aside .nav-item:hover { background: var(--navy-hover); opacity: 1; }
aside .nav-item.active { background: var(--navy-active); opacity: 1; box-shadow: inset 3px 0 0 var(--gold); }
aside .nav-item .ico { width: 18px; text-align: center; font-size: 14px; }
aside .nav-item .lbl { flex: 1; }
aside .signout { color: rgba(255,255,255,.6); text-decoration: none; font-size: 12px; display: block; margin: 24px 8px 0; }
aside .signout:hover { color: var(--gold); }

main.content { padding: 20px 28px; min-width: 0; }
header.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
header.top-bar h1 { margin: 0; font-size: 24px; font-weight: 700; }
.role-pill { background: var(--navy); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-left: 8px; }
header.top-bar .right { display: flex; align-items: center; gap: 10px; }
.powered { background: #fef3c7; color: #92400e; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.user-badge { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.signout-top { background: #f3f4f6; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font-size: 13px; cursor: pointer; text-decoration: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.card h2 { margin: 0 0 14px; font-size: 17px; font-weight: 700; }
.card .caret { float: right; color: var(--muted); cursor: pointer; }

/* Progress bars */
.progress-row { margin-bottom: 14px; }
.progress-row .label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.bar-bg { background: var(--line); height: 10px; border-radius: 999px; overflow: hidden; }
.bar-fg { background: var(--primary-orange); height: 100%; border-radius: 999px; transition: width .4s ease; }

/* Quick actions */
.qa-list { display: flex; flex-direction: column; gap: 10px; }
.qa { width: 100%; padding: 12px 14px; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 10px; }
.qa.orange { background: var(--primary-orange); color: #fff; }
.qa.slate  { background: var(--slate-blue); color: #fff; }
.qa.green  { background: var(--green-grad); color: #fff; }
.qa.green2 { background: var(--green); color: #fff; }
.qa.light  { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.qa:hover { filter: brightness(0.95); }

/* Customer card */
.cust-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: #fff; margin-bottom: 10px; }
.cust-card .top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.cust-card .pills { display: flex; gap: 6px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill.green  { background: var(--green-pill);  color: var(--green-pill-ink); }
.pill.blue   { background: var(--blue-pill);   color: var(--blue-pill-ink); }
.pill.orange { background: #fed7aa;            color: #9a3412; }
.pill.yellow { background: var(--yellow-pill); color: var(--yellow-pill-ink); }
.cust-card .when { font-size: 12px; color: var(--muted); text-align: right; }
.cust-card .name { font-size: 15px; font-weight: 700; margin: 4px 0; }
.cust-card .meta { font-size: 13px; color: var(--ink); margin: 4px 0; }
.cust-card .note { font-size: 12px; color: var(--muted); margin: 8px 0; padding: 8px 10px; background: #f9fafb; border-radius: 6px; }
.cust-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.cust-card .update-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.cust-card .update-row input { flex: 1; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.act { padding: 7px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.act.complete { background: var(--green); color: #fff; border-color: var(--green); }
.act.primary  { background: var(--primary-orange); color: #fff; border-color: var(--primary-orange); }
.act.secondary{ background: #f3f4f6; }

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

table.t { width: 100%; border-collapse: collapse; }
.t th, .t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.t th { font-size: 11px; text-transform: uppercase; color: var(--muted); }
