/* ---------- Command Center theme (director / vicerrector pages) ----------
   Re-declares the same variable names the rest of app.css already themes
   off (--brand, --p1, --line, --serif, ...), scoped to .cc-shell only, so
   every page that wraps itself in .cc-shell (panels, staff dashboard, login) shares one look.
   Loaded after app.css, which this file never edits. */
.cc-shell {
  --paper:      #FAFAFB;
  --surface:    #FFFFFF;
  --surface-2:  #F5F6F8;
  --ink:        #1F2430;
  --ink-soft:   #3B4150;
  --muted:      #6B7280;
  --faint:      #9AA0AA;
  --line:       #E7E8EC;
  --line-soft:  #F0F1F4;

  --brand:      #C8102E;
  --brand-deep: #A00C24;
  --brand-tint: #FCE8EC;

  --p1:         #C8102E;
  --p1-tint:    #FCE8EC;
  --p2:         #D97706;
  --p2-tint:    #FEF3E2;
  --ok:         #16A34A;
  --ok-tint:    #E9F8EF;

  --sidebar:       #FFFFFF;
  --sidebar-2:     #F5F6F8;
  --sidebar-ink:   #3B4150;
  --sidebar-faint: #9AA0AA;

  --shadow-sm: none;
  --shadow-md: 0 10px 30px rgba(31,36,48,.10);

  --serif: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --sans:  'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;

  background: var(--paper);
}
/* the handful of spots app.css hardcodes instead of using a variable */
.cc-shell .main { padding: 28px 36px 56px; }
.cc-shell .sidebar { padding: 20px 0; border-right-color: var(--line); }
.cc-shell .brand { display: block; padding: 0 20px 16px; border-bottom-color: var(--line); }
.cc-shell .brand .mark {
  display: inline-block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; line-height: 0;
}
.cc-shell .brand .mark img { height: 30px; width: auto; display: block; }
.cc-shell .brand .sub { display: block; margin-top: 12px; font-weight: 700; }
.cc-shell .nav { padding: 14px 12px 4px; margin-top: 0; }
.cc-shell .nav a.active { color: #fff; }
.cc-shell .nav a:hover { color: var(--ink-soft); }
.cc-shell .sidebar .foot { padding: 16px 20px 4px; border-top-color: var(--line); }
.cc-shell .cc-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); margin-right: 6px; vertical-align: middle;
}
.cc-shell .page-head h1 { font-size: 25px; font-weight: 700; }
.cc-shell .page-head .rule { background: var(--brand); }
.cc-shell .notice.info { border-color: #F3C7D3; }

/* ---------- login / change-password cards ---------- */
.cc-shell .login-wrap { background: var(--paper); }
.cc-shell .login-card {
  width: 400px; padding: 36px 36px 30px;
  border: 1px solid var(--line); border-top: 3px solid var(--brand);
  border-radius: 12px; box-shadow: var(--shadow-md);
}
.cc-shell .login-card .logo { display: block; height: 76px; width: auto; max-width: 100%; margin: 0 0 22px; }
.cc-shell .login-card .mark { font-family: var(--sans); font-size: 26px; font-weight: 700; letter-spacing: .01em; line-height: 1.1; }
.cc-shell .login-card .sub { font-size: 13.5px; letter-spacing: 0; text-transform: none; color: var(--muted); margin: 4px 0 0; }
.cc-shell .login-card h1 { font-size: 17px; font-weight: 700; margin: 26px 0 4px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.cc-shell .login-card p.hint { font-size: 13px; line-height: 1.5; margin: 0 0 20px; }
.cc-shell .login-card label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.cc-shell .login-card input[type=email],
.cc-shell .login-card input[type=password],
.cc-shell .login-card input[type=text] {
  width: 100%; height: 44px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid #D3D6DD; border-radius: 8px; margin-bottom: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.cc-shell .login-card input::placeholder { color: var(--faint); }
.cc-shell .login-card input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.cc-shell .login-card .pw-row { position: relative; }
.cc-shell .login-card .pw-row input { padding-right: 76px; }
.cc-shell .login-card .pw-toggle {
  position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.cc-shell .login-card .pw-toggle:hover { background: var(--surface-2); color: var(--ink); }
.cc-shell .login-card .pw-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.cc-shell .login-card .btn { height: 46px; margin-top: 6px; padding: 0 12px; font-size: 15px; font-weight: 600; border-radius: 8px; }
.cc-shell .login-card .btn-primary:hover { background: var(--brand-deep); }
.cc-shell .login-card .err { border: 1px solid #F3C7D3; font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-bottom: 16px; }
@media (max-width: 480px) {
  .cc-shell .login-wrap { padding: 12px; place-items: start center; padding-top: 6vh; }
  .cc-shell .login-card { padding: 28px 22px 24px; }
  .cc-shell .login-card .logo { height: 64px; }
}


/* ---------- Usuarios: add / edit person ---------- */
.add-person { margin-bottom: 18px; }
.add-person > summary { cursor: pointer; font-size: 15px; }
.user-form { display: grid; gap: 14px; max-width: 760px; margin-top: 14px; }
.user-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.user-form input[type=email], .user-form input[type=text], .user-form select {
  height: 40px; padding: 0 10px; font: inherit; font-size: 14px; border: 1px solid #D3D6DD; border-radius: 8px; background: #fff; }
.user-form input:focus, .user-form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.user-form .field-title { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.cb-group { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 10px; margin: 0 0 8px; }
.cb-group legend { font-size: 12px; color: var(--muted); padding: 0 6px; }
.cb { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; padding: 3px 0; }
.edit-row > td { background: var(--surface-2); padding: 14px 16px; }
[hidden] { display: none !important; }
