/* ── PACÍFICO SALUD DESIGN TOKENS ── */
:root {
  --ps-blue-900: #003565;
  --ps-blue-800: #004a8f;
  --ps-blue-700: #005fad;
  --ps-blue-600: #0072C6;
  --ps-blue-500: #1a8de0;
  --ps-blue-400: #4aaae8;
  --ps-blue-300: #7ec3f0;
  --ps-blue-200: #b3dbf7;
  --ps-blue-100: #d9edfb;
  --ps-blue-50:  #edf6fd;
  --ps-teal:     #00a19a;
  --ps-teal-bg:  #e6f6f5;
  --ps-green:    #1a7a4a;
  --ps-green-bg: #e7f5ee;
  --ps-amber:    #b45309;
  --ps-amber-bg: #fef3e0;
  --ps-red:      #e02020;
  --ps-red-bg:   #fee2e2;
  --ps-purple:   #6d28d9;
  --ps-purple-bg:#ede9fe;

  --bg:          #f4f7fb;
  --surface:     #ffffff;
  --surface2:    #f0f4f9;
  --surface3:    #e8eef6;
  --border:      rgba(0,72,198,0.1);
  --border-md:   rgba(0,72,198,0.18);
  --text:        #0d1f35;
  --text-muted:  #4a6080;
  --text-hint:   #8aa3bf;

  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --shadow:      0 1px 3px rgba(0,53,101,0.07), 0 1px 2px rgba(0,53,101,0.04);
  --shadow-md:   0 4px 16px rgba(0,53,101,0.1), 0 2px 4px rgba(0,53,101,0.05);
  --shadow-lg:   0 12px 32px rgba(0,53,101,0.14);
  --font:        'Roboto', sans-serif;
  --mono:        'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* ── AUTH ── */
#auth-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ps-blue-900) 0%, var(--ps-blue-700) 50%, var(--ps-teal) 100%);
  position: relative; overflow: hidden;
}
#auth-screen::before {
  content:''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0,161,154,0.15) 0%, transparent 50%);
}
.auth-card {
  background: var(--surface); border-radius: var(--radius-xl); padding: 40px;
  width: 440px; max-width: 95vw; box-shadow: var(--shadow-lg); position: relative; z-index: 1;
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.auth-brand-logo {
  width: 44px; height: 44px; background: transparent;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 16px; letter-spacing: -0.5px;
}
.auth-brand-name { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.4px; }
.auth-brand-sub { font-size: 12px; color: var(--ps-blue-600); font-weight: 500; }
.auth-tagline { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.auth-tabs { display: flex; background: var(--surface2); border-radius: 8px; padding: 3px; margin-bottom: 24px; }
.auth-tab { flex: 1; text-align: center; padding: 8px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-muted); transition: all 0.15s; }
.auth-tab.active { background: var(--surface); color: var(--ps-blue-700); box-shadow: var(--shadow); }

/* FORM ELEMENTS */
.fg { margin-bottom: 14px; }
.fl { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; letter-spacing: 0.04em; text-transform: uppercase; }
.fi, .fs, .fta {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border-md); border-radius: var(--radius);
  font-family: var(--font); font-size: 13px; color: var(--text); background: var(--surface);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.fi:focus, .fs:focus, .fta:focus {
  border-color: var(--ps-blue-600); box-shadow: 0 0 0 3px rgba(0,114,198,0.1);
}
.fi::placeholder, .fta::placeholder { color: var(--text-hint); }
.fs { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a6080' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.fta { resize: vertical; min-height: 72px; }
.gr2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius); font-family: var(--font);
  font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--ps-blue-700); color: white; }
.btn-primary:hover { background: var(--ps-blue-800); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,72,198,0.3); }
.btn-ghost { background: transparent; border: 1.5px solid var(--border-md); color: var(--text); }
.btn-ghost:hover { background: var(--surface2); }
.btn-danger { background: var(--ps-red-bg); color: var(--ps-red); border: 1.5px solid rgba(192,57,43,0.2); }
.btn-danger:hover { background: var(--ps-red); color: white; }
.btn-teal { background: var(--ps-teal); color: white; }
.btn-teal:hover { background: #008a84; }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; }
.auth-note { font-size: 12px; color: var(--text-hint); text-align: center; margin-top: 14px; line-height: 1.6; }
.alert { padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 14px; display: none; }
.alert-error { background: var(--ps-red-bg); color: var(--ps-red); border: 1px solid rgba(192,57,43,0.2); }
.alert-success { background: var(--ps-green-bg); color: var(--ps-green); border: 1px solid rgba(26,122,74,0.2); }
.alert-info { background: var(--ps-blue-50); color: var(--ps-blue-700); border: 1px solid var(--border-md); }

/* ── APP SHELL ── */
#app { display: none; height: 100vh; flex-direction: row; }
#app.visible { display: flex; }

/* SIDEBAR */
.sidebar {
  width: 224px; background: var(--ps-blue-900); display: flex; flex-direction: column;
  flex-shrink: 0; overflow-y: auto; overflow-x: hidden;
}
.sb-header { padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sb-brand { display: flex; align-items: center; gap: 10px; }
.sb-logo {
  width: 32px; height: 32px; background: transparent;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.sb-name { color: white; font-size: 14px; font-weight: 700; letter-spacing: -0.3px; }
.sb-sub { color: var(--ps-blue-300); font-size: 10px; font-weight: 500; }
.q-selector {
  margin-top: 12px; background: rgba(255,255,255,0.08); border-radius: 8px;
  padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.q-selector:hover { background: rgba(255,255,255,0.12); }
.q-label { color: var(--ps-blue-200); font-size: 11px; font-weight: 500; }
.q-value { color: white; font-size: 13px; font-weight: 600; }
.q-chevron { color: var(--ps-blue-300); font-size: 10px; }

.sb-section { padding: 14px 8px 4px; }
.sb-section-label { font-size: 9px; font-weight: 700; color: var(--ps-blue-400); letter-spacing: 0.1em; text-transform: uppercase; padding: 0 8px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px;
  cursor: pointer; color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 500;
  transition: all 0.12s; margin-bottom: 1px; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.nav-item.active { background: rgba(255,255,255,0.13); color: white; }
.nav-item.active::before { content:''; position:absolute; left:0; top:25%; bottom:25%; width:3px; background: var(--ps-blue-300); border-radius: 0 3px 3px 0; }
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; }
.nav-item.active .nav-icon { opacity: 1; }
.nav-badge { margin-left: auto; background: var(--ps-red); color: white; border-radius: 10px; padding: 1px 6px; font-size: 10px; font-weight: 700; }

.sb-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,0.08); padding: 12px 8px; }
.user-pill { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.user-pill:hover { background: rgba(255,255,255,0.08); }
.user-av { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--ps-blue-500), var(--ps-teal)); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: white; flex-shrink: 0; }
.user-name { color: white; font-size: 12px; font-weight: 600; }
.user-role { color: var(--ps-blue-300); font-size: 10px; }
.sb-logout { font-size: 11px; color: rgba(255,255,255,0.35); cursor: pointer; padding: 5px 10px; border-radius: 6px; margin-top: 2px; }
.sb-logout:hover { color: var(--ps-red-bg); background: rgba(192,57,43,0.2); }

/* MAIN CONTENT */
.main { flex: 1; overflow-y: auto; display: flex; flex-direction: column; background: var(--bg); }
.ph { padding: 24px 28px 0; }
.ph-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.page-title { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; color: var(--text); }
.page-sub { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.content { padding: 20px 28px 40px; display: flex; flex-direction: column; gap: 20px; }

/* CARDS */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: -0.1px; }
.card-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* METRICS */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.metric-card::after {
  content:''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ps-blue-600), var(--ps-blue-400));
}
.metric-label { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.metric-value { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.8px; line-height: 1; font-family: var(--mono); }
.metric-sub { font-size: 12px; color: var(--text-hint); margin-top: 6px; }
.metric-card.danger::after { background: linear-gradient(90deg, var(--ps-red), #e74c3c); }
.metric-card.success::after { background: linear-gradient(90deg, var(--ps-green), var(--ps-teal)); }
.metric-card.warn::after { background: linear-gradient(90deg, var(--ps-amber), #f59e0b); }

/* TABLE */
.table-wrap { border-radius: var(--radius-lg); border: 1px solid var(--border); overflow-x: auto; overflow-y: hidden; background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px 16px; font-size: 10px; font-weight: 700; color: var(--text-muted); background: var(--surface2); border-bottom: 1px solid var(--border); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
td { padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--ps-blue-50); }

/* BADGES */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.b-blue   { background: var(--ps-blue-100); color: var(--ps-blue-800); }
.b-green  { background: var(--ps-green-bg); color: var(--ps-green); }
.b-amber  { background: var(--ps-amber-bg); color: var(--ps-amber); }
.b-red    { background: var(--ps-red-bg);   color: var(--ps-red); }
.b-gray   { background: var(--surface2);    color: var(--text-muted); }
.b-teal   { background: var(--ps-teal-bg);  color: var(--ps-teal); }
.b-purple { background: var(--ps-purple-bg);color: var(--ps-purple); }
.b-eps    { background: var(--ps-blue-100); color: var(--ps-blue-800); }
.b-innova { background: var(--ps-teal-bg);  color: var(--ps-teal); }

/* CAPACITY BAR */
.cap-wrap { display: flex; align-items: center; gap: 8px; }
.cap-bar { flex: 1; height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; min-width: 60px; }
.cap-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.cf-ok   { background: linear-gradient(90deg, var(--ps-green), var(--ps-teal)); }
.cf-warn { background: linear-gradient(90deg, var(--ps-amber), #f59e0b); }
.cf-over { background: linear-gradient(90deg, var(--ps-red), #ff4040); }
.cap-pct { font-size: 12px; font-weight: 700; min-width: 38px; text-align: right; font-family: var(--mono); }

/* SPRINT BLOCKS */
.sprint-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.sprint-block { background: var(--surface2); border-radius: 8px; padding: 12px 6px; text-align: center; border: 1.5px solid transparent; transition: all 0.15s; cursor: default; }
.sprint-block:hover { border-color: var(--border-md); background: var(--ps-blue-50); }
.sb-label { font-size: 9px; font-weight: 700; color: var(--text-hint); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.sb-val { font-size: 16px; font-weight: 700; color: var(--text); font-family: var(--mono); }
.sb-pct { font-size: 10px; font-weight: 600; margin-top: 3px; }

/* PROFILE BANNER */
.profile-banner {
  background: linear-gradient(135deg, var(--ps-blue-900) 0%, var(--ps-blue-700) 60%, var(--ps-teal) 100%);
  border-radius: var(--radius-lg); padding: 24px 28px; display: flex; align-items: center;
  gap: 20px; color: white; box-shadow: var(--shadow-md);
}
.pav-lg { width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex-shrink: 0; backdrop-filter: blur(4px); }
.pname { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.pmeta { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 3px; }
.pbadge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,0.18); color: white; margin-top: 8px; }
.pstats { display: flex; gap: 32px; margin-left: auto; text-align: right; }
.pstat-val { font-size: 26px; font-weight: 700; font-family: var(--mono); line-height: 1; }
.pstat-label { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 3px; }

/* TASK ROW */
.task-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.task-row:last-child { border-bottom: none; }
.task-info { flex: 1; min-width: 0; }
.task-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.task-hrs { font-size: 13px; font-weight: 700; font-family: var(--mono); color: var(--text-muted); white-space: nowrap; }

/* PILLS */
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { padding: 5px 13px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--border-md); color: var(--text-muted); background: transparent; font-family: var(--font); transition: all 0.12s; }
.pill.active { background: var(--ps-blue-700); color: white; border-color: var(--ps-blue-700); }
.pill:hover:not(.active) { background: var(--ps-blue-50); border-color: var(--ps-blue-300); color: var(--ps-blue-700); }

/* AVATAR SM */
.av-sm { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; background: var(--ps-blue-100); color: var(--ps-blue-800); }

/* MODAL */
.modal-bg { position: fixed; inset: 0; background: rgba(0,30,60,0.4); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.modal-bg.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius-xl); padding: 28px; width: 560px; max-width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.modal-title { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 22px; color: var(--text); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; border-top: 1px solid var(--border); padding-top: 16px; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.modal-full { grid-column: 1 / -1; }

/* ANNOUNCEMENT CARD */
.ann-card { background: var(--ps-blue-50); border: 1px solid var(--border-md); border-radius: var(--radius-lg); padding: 16px 20px; border-left: 4px solid var(--ps-blue-600); }
.ann-pin { background: linear-gradient(135deg, var(--ps-blue-600), var(--ps-teal)); border-radius: var(--radius-lg); padding: 16px 20px; border-left: none; color: white; }
.ann-pin .ann-author { color: rgba(255,255,255,0.7); }
.ann-pin .ann-text { color: white; }
.ann-date { font-size: 10px; font-weight: 600; color: var(--text-hint); text-transform: uppercase; letter-spacing: 0.06em; }
.ann-title { font-size: 14px; font-weight: 700; margin: 4px 0; }
.ann-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.ann-author { font-size: 11px; color: var(--text-hint); margin-top: 8px; }

/* INSTRUCTION SECTION */
.instr-step { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.instr-step:last-child { border-bottom: none; }
.instr-num { width: 28px; height: 28px; border-radius: 50%; background: var(--ps-blue-700); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.instr-title { font-size: 13px; font-weight: 700; }
.instr-text { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.6; }

/* VACATION CALENDAR */
.vac-bar-wrap { position: relative; height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.vac-bar-fill { position: absolute; height: 100%; background: linear-gradient(90deg, var(--ps-blue-500), var(--ps-teal)); border-radius: 4px; }
.vac-bar-used { background: linear-gradient(90deg, var(--ps-amber), #f59e0b); }

/* Q DROPDOWN */
.q-dropdown { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 8px; min-width: 180px; }
.q-opt { padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.q-opt:hover { background: var(--ps-blue-50); color: var(--ps-blue-700); }
.q-opt.active { background: var(--ps-blue-700); color: white; }

/* REMINDER CARD */
.reminder-card { background: var(--ps-amber-bg); border: 1px solid rgba(180,83,9,0.2); border-radius: var(--radius-lg); padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
.reminder-icon { width: 36px; height: 36px; background: var(--ps-amber); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 16px; flex-shrink: 0; }

/* PERSON DASHBOARD */
.person-cap-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.person-cap-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.person-av-lg { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--ps-blue-600), var(--ps-teal)); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: white; }

/* EMPTY */
.empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.5; }
.empty-title { font-size: 14px; font-weight: 600; }
.empty-sub { font-size: 12px; color: var(--text-hint); margin-top: 4px; }

/* PENDING */
.pending-screen { display: flex; align-items: center; justify-content: center; flex: 1; padding: 40px; }
.pending-card { max-width: 420px; text-align: center; }
.pending-icon-wrap { width: 72px; height: 72px; background: var(--ps-amber-bg); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 20px; }
.pending-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pending-sub { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* TOGGLE */
.tog-wrap { display: flex; align-items: center; gap: 8px; }
.tog { width: 36px; height: 20px; background: var(--border-md); border-radius: 10px; position: relative; cursor: pointer; border: none; padding: 0; transition: background 0.2s; }
.tog.on { background: var(--ps-blue-600); }
.tog-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: white; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.tog.on .tog-knob { transform: translateX(16px); }

/* DIVIDER */
.divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ADMIN CHIP */
.admin-chip { background: linear-gradient(135deg, var(--ps-purple), #7c3aed); color: white; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; }

@media (max-width: 900px) {
  .sidebar { width: 60px; }
  .sb-name, .sb-sub, .sb-section-label, .nav-item span, .user-name, .user-role, .q-selector { display: none; }
  .nav-item { justify-content: center; padding: 10px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .sprint-grid { grid-template-columns: repeat(4, 1fr); }
  .pstats { display: none; }
}

@media (max-width: 640px) {
  /* Shell & spacing */
  .sidebar { width: 52px; }
  .nav-item { padding: 8px 6px; }
  .ph { padding: 14px 12px 0; }
  .ph-row { flex-direction: column; align-items: stretch; gap: 6px; min-height: unset; }
  .ph-row > div:first-child { flex: none; width: 100%; }
  .ph-row .btn, .ph-row button { font-size: 11px !important; padding: 6px 10px !important; }
  .content { padding: 14px 12px 28px; gap: 14px; }

  /* Typography */
  .page-title { font-size: 16px; }
  .page-sub { font-size: 12px; }

  /* Grids → single column */
  .gr2 { grid-template-columns: 1fr; }
  .edit-profile-grid { grid-template-columns: 1fr; }
  .modal-row { grid-template-columns: 1fr; }
  .equipo-cards-grid { grid-template-columns: 1fr !important; }
  .profile-stats-row { grid-template-columns: 1fr 1fr; }
  .sprint-grid { grid-template-columns: repeat(3, 1fr); }

  /* Cards */
  .card { padding: 14px 12px; }
  .equipo-card { padding: 14px 12px; }

  /* Tables: horizontal scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 480px; }

  /* Dashboard filters: stack full width */
  .dash-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .dash-toolbar select, .dash-toolbar .fs { width: 100% !important; }

  /* Pills */
  .pills { flex-wrap: wrap; gap: 5px; }
  .pill { font-size: 11px; padding: 4px 10px; }

  /* Modal */
  .modal-bg { padding: 8px; align-items: flex-end; }
  .modal { padding: 20px 16px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 92vh; width: 100% !important; }
  .modal-task-wide { width: 100% !important; }

  /* Vacation summary */
  .vac-summary { flex-wrap: wrap; gap: 12px; }
  .vac-stat-row { margin-left: 0; flex-wrap: wrap; gap: 16px; }

  /* Person cap card */
  .person-cap-header { flex-wrap: wrap; }
  .person-cap-header > div:last-child { flex-direction: row; gap: 16px; }

  /* Export row: hide CSV buttons on mobile (too wide) */
  #dash-export { display: none; }

  /* Page header button groups */
  .ph-row > div[style*="display:flex"] { flex-wrap: wrap; gap: 6px; }

  /* ── TASK MODAL: hide sprint calendar, form takes full width ── */
  .task-sprint-cal { display: none; }

  /* ── VACATION DATE PICKER: single month per view ── */
  .drp-months { grid-template-columns: 1fr !important; }
  .date-range-picker { padding: 14px; }

  /* ── PROFILE HERO: stack vertically on mobile ── */
  .profile-hero-content { flex-direction: column; align-items: flex-start; padding: 20px 16px; gap: 12px; }
  .profile-av-ring { width: 72px !important; height: 72px !important; }
  .profile-av-ring .av-text { font-size: 24px !important; }
  .btn-hero-edit { position: static; margin-top: 4px; font-size: 12px; padding: 7px 14px; }
  .profile-hero-name { font-size: 22px; }

  /* ── PROFILE GRID: single column ── */
  .profile-grid { grid-template-columns: 1fr; }

  /* ── VACATION DASHBOARD: 2 columns instead of 3 ── */
  .vac-dashboard { grid-template-columns: 1fr 1fr; }

  /* ── METRICS GRID: override any inline column declaration ── */
  .metrics-grid { grid-template-columns: 1fr 1fr !important; }

  /* ── INLINE 2-COLUMN GRIDS: collapse to single column ── */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* ── EQUIPO SPRINT PILLS: allow wrapping ── */
  #eq-sprint-pills { flex-wrap: wrap; }

  /* ── DASHBOARD FILTER SELECTS: full width ── */
  #dsf-team, #dsf-sprint, #dsf-project { width: 100% !important; }
}

/* ── PROFILE PAGE ── */
.profile-page-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.profile-cover { height: 120px; background: linear-gradient(135deg, var(--ps-blue-900) 0%, var(--ps-blue-600) 60%, var(--ps-teal) 100%); position: relative; }
.profile-cover-edit { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.15); border: none; color: white; border-radius: 8px; padding: 6px 12px; font-size: 12px; cursor: pointer; backdrop-filter: blur(4px); font-family: var(--font); }
.profile-cover-edit:hover { background: rgba(255,255,255,0.25); }
.profile-body { padding: 0 28px 28px; }
.profile-av-wrap { position: relative; display: inline-block; margin-top: -36px; margin-bottom: 12px; }
.profile-av-img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; border: 3px solid var(--surface); box-shadow: var(--shadow-md); display: block; }
.profile-av-placeholder { width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(135deg, var(--ps-blue-600), var(--ps-teal)); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: white; border: 3px solid var(--surface); box-shadow: var(--shadow-md); }
.profile-av-upload { position: absolute; bottom: -4px; right: -4px; width: 24px; height: 24px; background: var(--ps-blue-700); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid var(--surface); }
.profile-av-upload:hover { background: var(--ps-blue-800); }
.profile-av-upload svg { width: 12px; height: 12px; color: white; }
.profile-info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.profile-display-name { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }
.profile-role-line { font-size: 13px; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.profile-bio { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.profile-bio-empty { font-size: 13px; color: var(--text-hint); font-style: italic; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.profile-stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 20px; }
.pstat-box { background: var(--surface2); border-radius: var(--radius); padding: 14px 16px; }
.pstat-box-val { font-size: 22px; font-weight: 700; font-family: var(--mono); color: var(--text); }
.pstat-box-label { font-size: 11px; color: var(--text-muted); margin-top: 3px; font-weight: 500; }

/* EDIT PROFILE FORM */
.edit-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* TASK ACTIONS */
.task-action-btn { border: none; background: none; cursor: pointer; color: var(--text-hint); padding: 5px 7px; border-radius: 6px; font-size: 12px; transition: all 0.12s; }
.task-action-btn:hover { background: var(--surface2); color: var(--text); }
.task-action-btn.del:hover { background: var(--ps-red-bg); color: var(--ps-red); }


/* ── UX FIXES ── */

/* Consistent action bar pattern — filters left, primary CTA right */
.view-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.view-toolbar-left { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.view-toolbar-right { display:flex; align-items:center; gap:8px; flex-shrink:0; }

/* Table action buttons — proper affordance, not emoji-only */
.tbl-btn { display:inline-flex; align-items:center; gap:4px; border:1px solid var(--border-md); background:var(--surface); cursor:pointer; color:var(--text-muted); padding:5px 10px; border-radius:6px; font-size:11px; font-weight:600; transition:all 0.12s; font-family:var(--font); white-space:nowrap; }
.tbl-btn:hover { background:var(--surface2); color:var(--text); border-color:var(--ps-blue-300); }
.tbl-btn.danger:hover { background:var(--ps-red-bg); color:var(--ps-red); border-color:rgba(192,57,43,0.3); }
.tbl-btn-icon { width:12px; height:12px; }

/* Vacation entry card — warm, human design */
.vac-summary { background:linear-gradient(135deg, var(--ps-blue-50) 0%, var(--ps-teal-bg) 100%); border:1px solid var(--border-md); border-radius:var(--radius-lg); padding:20px 24px; display:flex; align-items:center; gap:20px; margin-bottom:0; }
.vac-summary-icon { width:48px; height:48px; background:white; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; box-shadow:var(--shadow); }
.vac-summary-title { font-size:15px; font-weight:700; color:var(--text); }
.vac-summary-sub { font-size:13px; color:var(--text-muted); margin-top:3px; line-height:1.5; }
.vac-stat-row { display:flex; gap:24px; margin-left:auto; }
.vac-stat { text-align:right; }
.vac-stat-val { font-size:22px; font-weight:700; font-family:var(--mono); color:var(--ps-blue-700); line-height:1; }
.vac-stat-label { font-size:11px; color:var(--text-muted); margin-top:2px; }

/* Empty vacation state */
.vac-empty { text-align:center; padding:48px 20px; }
.vac-empty-icon { font-size:40px; margin-bottom:12px; }
.vac-empty-title { font-size:15px; font-weight:700; color:var(--text); margin-bottom:6px; }
.vac-empty-sub { font-size:13px; color:var(--text-muted); max-width:300px; margin:0 auto 20px; line-height:1.6; }

/* Dashboard toolbar consistency */
.dash-toolbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }

/* Page header — enforce consistent spacing */
.ph { padding:24px 28px 0; }
.ph-row { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; min-height:44px; }

/* Filter + CTA separation — visual grouping */
.filter-group { display:flex; align-items:center; gap:6px; background:var(--surface2); border:1px solid var(--border); border-radius:8px; padding:3px; }
.filter-group .pill { border:none; border-radius:6px; background:transparent; }
.filter-group .pill.active { background:var(--surface); box-shadow:var(--shadow); }

/* Breadcrumb-style Q indicator */
.q-indicator { display:inline-flex; align-items:center; gap:6px; background:var(--ps-blue-100); color:var(--ps-blue-800); border-radius:20px; padding:4px 12px; font-size:11px; font-weight:700; }


/* ── REMEMBER ME ── */
.remember-row { display:flex; align-items:center; justify-content:space-between; margin:12px 0 16px; }
.checkbox-label { display:flex; align-items:center; gap:7px; cursor:pointer; font-size:13px; color:var(--text-muted); user-select:none; }
.checkbox-label input[type=checkbox] { width:15px; height:15px; accent-color:var(--ps-blue-700); cursor:pointer; }
.forgot-link { font-size:12px; color:var(--ps-blue-600); cursor:pointer; text-decoration:none; }
.forgot-link:hover { color:var(--ps-blue-800); text-decoration:underline; }

/* saved accounts chip strip */
.saved-accounts { margin-bottom:16px; }
.saved-label { font-size:10px; font-weight:700; color:var(--text-hint); letter-spacing:0.06em; text-transform:uppercase; margin-bottom:8px; }
.account-chips { display:flex; flex-wrap:wrap; gap:6px; }
.account-chip {
  display:flex; align-items:center; gap:8px;
  background:var(--ps-blue-50); border:1px solid var(--border-md);
  border-radius:10px; padding:7px 10px 7px 8px; cursor:pointer;
  transition:all 0.12s; max-width:100%;
}
.account-chip:hover { background:var(--ps-blue-100); border-color:var(--ps-blue-300); }
.account-chip-av {
  width:26px; height:26px; border-radius:7px; flex-shrink:0;
  background:linear-gradient(135deg, var(--ps-blue-600), var(--ps-teal));
  display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:700; color:white;
}
.account-chip-info { min-width:0; }
.account-chip-name { font-size:12px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:180px; }
.account-chip-email { font-size:10px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:180px; }
.account-chip-remove { margin-left:4px; color:var(--text-hint); font-size:14px; line-height:1; flex-shrink:0; padding:2px; border-radius:4px; }
.account-chip-remove:hover { color:var(--ps-red); background:var(--ps-red-bg); }
.divider-or { display:flex; align-items:center; gap:10px; margin:14px 0; }
.divider-or-line { flex:1; height:1px; background:var(--border); }
.divider-or-text { font-size:11px; color:var(--text-hint); font-weight:500; }


/* ══ PROFILE SIDEBAR BUTTON ══ */
.user-pill-full {
  display:flex; align-items:center; gap:10px; padding:10px 12px;
  border-radius:10px; cursor:pointer; transition:all 0.15s; width:100%;
  border:none; background:rgba(255,255,255,0.06); text-align:left;
}
.user-pill-full:hover { background:rgba(255,255,255,0.12); }
.user-pill-full .user-av { border:2px solid rgba(255,255,255,0.2); }
.user-pill-full .user-badge { font-size:9px; font-weight:700; letter-spacing:0.06em; color:var(--ps-blue-300); text-transform:uppercase; margin-top:1px; }

/* ══ PROFILE PAGE ══ */
.profile-page { display:flex; flex-direction:column; gap:20px; }
.profile-hero {
  background: linear-gradient(135deg, var(--ps-blue-900) 0%, var(--ps-blue-700) 50%, var(--ps-teal) 100%);
  border-radius: var(--radius-xl); overflow:hidden; position:relative; min-height:190px;
}
.profile-hero-bg {
  position:absolute; inset:0;
  background-image:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(0,161,154,0.35) 0%, transparent 70%),
    radial-gradient(circle at 20% 50%, white 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, white 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  opacity:0.25;
}
.profile-hero-content { position:relative; padding:32px 32px 32px; display:flex; align-items:center; gap:28px; }
.profile-av-ring {
  width:120px; height:120px; border-radius:50%; flex-shrink:0;
  border:3px solid rgba(255,255,255,0.5);
  box-shadow: 0 0 0 5px rgba(255,255,255,0.12), 0 12px 32px rgba(0,0,0,0.35);
  position:relative; cursor:pointer;
  overflow:hidden; background:linear-gradient(135deg,rgba(255,255,255,0.2),rgba(255,255,255,0.05));
  display:flex; align-items:center; justify-content:center;
  transition:border-color 0.2s, box-shadow 0.2s;
}
.profile-av-ring:hover { border-color:rgba(255,255,255,0.85); box-shadow:0 0 0 5px rgba(255,255,255,0.22), 0 12px 32px rgba(0,0,0,0.4); }
.profile-av-ring img { width:100%; height:100%; object-fit:cover; }
.profile-av-ring .av-text { font-size:40px; font-weight:700; color:white; letter-spacing:-1px; }
.profile-av-ring .av-overlay {
  position:absolute; inset:0; background:rgba(0,0,0,0.5);
  display:none; align-items:center; justify-content:center; flex-direction:column;
  color:white; font-size:10px; font-weight:600; gap:4px; text-align:center;
  border-radius:50%;
}
.profile-av-ring:hover .av-overlay { display:flex; }
.profile-av-ring .av-overlay svg { width:20px; height:20px; }
.profile-hero-info { flex:1; min-width:0; }
.profile-hero-name { font-size:30px; font-weight:700; color:white; letter-spacing:-0.7px; line-height:1.1; }
.profile-hero-role { font-size:14px; color:rgba(255,255,255,0.78); margin-top:5px; font-weight:400; }
.profile-hero-chips { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
.hero-chip { background:rgba(255,255,255,0.15); color:white; padding:4px 12px; border-radius:20px; font-size:11px; font-weight:600; backdrop-filter:blur(4px); border:1px solid rgba(255,255,255,0.2); }
.hero-chip.birthday { background:rgba(255,200,100,0.25); border-color:rgba(255,200,100,0.4); }
.btn-hero-edit {
  position:absolute; top:22px; right:28px;
  display:inline-flex; align-items:center; gap:7px;
  background:rgba(255,255,255,0.16); border:1px solid rgba(255,255,255,0.38);
  color:white; border-radius:8px; padding:9px 18px; font-size:13px; font-weight:600;
  cursor:pointer; font-family:var(--font); backdrop-filter:blur(8px); transition:all 0.18s;
  white-space:nowrap;
}
.btn-hero-edit:hover { background:rgba(255,255,255,0.28); border-color:rgba(255,255,255,0.65); transform:translateY(-1px); }
.btn-inline-edit {
  display:inline-flex; align-items:center; gap:4px;
  background:none; border:1px solid var(--border-md); color:var(--text-hint);
  border-radius:6px; padding:4px 10px; font-size:11px; font-weight:600;
  cursor:pointer; font-family:var(--font); transition:all 0.15s;
}
.btn-inline-edit:hover { border-color:var(--primary); color:var(--primary); background:var(--ps-blue-50); }
.profile-edit-btn {
  position:absolute; top:16px; right:16px;
  background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,0.25);
  color:white; border-radius:8px; padding:7px 14px; font-size:12px; font-weight:600;
  cursor:pointer; font-family:var(--font); backdrop-filter:blur(4px); transition:all 0.15s;
}
.profile-edit-btn:hover { background:rgba(255,255,255,0.25); }

/* PROFILE GRID */
.profile-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.profile-info-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px; }
.profile-info-card.full { grid-column:1/-1; }
.pic-section-label { font-size:12px; font-weight:700; color:var(--text-muted); letter-spacing:0.05em; text-transform:uppercase; margin-bottom:14px; }
.profile-field-row { display:flex; align-items:flex-start; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); }
.profile-field-row:last-child { border-bottom:none; padding-bottom:0; }
.profile-field-row:first-of-type { padding-top:0; }
.pf-icon { width:32px; height:32px; border-radius:8px; background:var(--surface2); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:15px; }
.pf-label { font-size:10px; font-weight:600; color:var(--text-hint); letter-spacing:0.04em; text-transform:uppercase; }
.pf-value { font-size:13px; font-weight:500; color:var(--text); margin-top:2px; }
.pf-value.empty { color:var(--text-hint); font-style:italic; font-weight:400; }
.skills-wrap { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.skill-tag { background:var(--ps-blue-50); color:var(--ps-blue-800); border:1px solid var(--border-md); border-radius:20px; padding:3px 10px; font-size:11px; font-weight:600; }

/* SOBRE MÍ CARD */
.sobre-mi-card { display:flex; flex-direction:column; gap:16px; }
.sobre-mi-bio-wrap {
  position:relative;
  background:var(--surface2); border-radius:var(--radius); padding:16px 16px 16px 20px;
  border-left:3px solid var(--ps-teal);
}
.sobre-mi-quote-mark {
  position:absolute; top:-4px; left:10px;
  font-size:48px; font-weight:900; color:var(--ps-teal); opacity:0.18;
  line-height:1; font-family:Georgia,serif; pointer-events:none; user-select:none;
}
.sobre-mi-bio {
  font-size:13px; color:var(--text); line-height:1.8; position:relative;
  font-style:italic;
}
.sobre-mi-bio.empty { color:var(--text-hint); }
.sobre-mi-funfact-wrap {
  background:linear-gradient(135deg, rgba(255,214,0,0.08) 0%, rgba(255,170,0,0.06) 100%);
  border:1px solid rgba(255,195,0,0.25);
  border-radius:var(--radius); padding:14px 16px;
  display:flex; flex-direction:column; gap:5px;
}
.sobre-mi-funfact-label {
  display:flex; align-items:center; gap:6px;
  font-size:10px; font-weight:700; color:var(--text-hint);
  letter-spacing:0.07em; text-transform:uppercase;
}
.sobre-mi-funfact-icon { font-size:14px; }
.sobre-mi-funfact-text { font-size:13px; font-weight:500; color:var(--text); line-height:1.6; }
.sobre-mi-funfact-text.empty { color:var(--text-hint); font-style:italic; font-weight:400; }

/* DIRECTORY */
.directory-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:12px; }
.dir-card {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:16px; display:flex; flex-direction:column; align-items:center; text-align:center;
  cursor:pointer; transition:all 0.15s; box-shadow:var(--shadow);
}
.dir-card:hover { border-color:var(--ps-blue-300); box-shadow:var(--shadow-md); transform:translateY(-2px); }
.dir-av { width:56px; height:56px; border-radius:14px; margin-bottom:10px; flex-shrink:0; overflow:hidden; }
.dir-av img { width:100%; height:100%; object-fit:cover; }
.dir-av-placeholder { width:56px; height:56px; border-radius:14px; background:linear-gradient(135deg,var(--ps-blue-600),var(--ps-teal)); display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700; color:white; margin-bottom:10px; }
.dir-name { font-size:13px; font-weight:700; color:var(--text); }
.dir-role { font-size:11px; color:var(--text-muted); margin-top:2px; }
.dir-chips { display:flex; gap:4px; flex-wrap:wrap; justify-content:center; margin-top:8px; }
.dir-birthday { font-size:11px; color:var(--ps-amber); margin-top:6px; font-weight:600; }
.dir-bio { font-size:11px; color:var(--text-muted); margin-top:6px; line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* BIRTHDAY BANNER */
.birthday-banner {
  background:linear-gradient(135deg, #fef3cd, #fff8e6);
  border:1px solid rgba(180,120,0,0.2); border-radius:var(--radius-lg);
  padding:14px 18px; display:flex; align-items:center; gap:12px;
}
.birthday-banner-icon { font-size:28px; flex-shrink:0; }
.birthday-banner-text { font-size:14px; font-weight:600; color:#7c5800; }
.birthday-banner-sub { font-size:12px; color:#a07000; margin-top:2px; }

/* MODAL PROFILE SHEET */
.profile-sheet {
  background:var(--surface); border-radius:var(--radius-xl); padding:0;
  width:500px; max-width:100%; max-height:92vh; overflow-y:auto;
  box-shadow:var(--shadow-lg); border:1px solid var(--border);
}
.sheet-header { padding:20px 24px 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.sheet-body { padding:20px 24px 24px; display:flex; flex-direction:column; gap:14px; }
.sheet-close { border:none; background:none; color:var(--text-muted); font-size:20px; cursor:pointer; padding:4px 8px; border-radius:6px; line-height:1; }
.sheet-close:hover { background:var(--surface2); }


/* ══ PROFILE FIELDS — COMPACT ROWS ══ */
.pf-row {
  display:flex; align-items:center; gap:10px;
  padding:9px 0; border-bottom:1px solid var(--border);
}
.pf-icon-sm {
  width:28px; height:28px; border-radius:7px; background:var(--surface2);
  display:flex; align-items:center; justify-content:center;
  font-size:13px; flex-shrink:0;
}
.pf-content { flex:1; min-width:0; }
.pf-label { font-size:10px; font-weight:700; color:var(--text-hint); letter-spacing:0.05em; text-transform:uppercase; line-height:1; margin-bottom:2px; }
.pf-value { font-size:13px; font-weight:500; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pf-value.empty { color:var(--text-hint); font-weight:400; font-style:italic; }

/* ══ VACATION STATUS BADGES ══ */
.vac-status-en_revision { background:#FEF3E0; color:#B45309; border:1px solid rgba(180,83,9,0.2); }
.vac-status-aprobado    { background:#E7F5EE; color:#1A7A4A; border:1px solid rgba(26,122,74,0.2); }
.vac-status-rechazado   { background:#FDECEA; color:#C0392B; border:1px solid rgba(192,57,43,0.2); }
.vac-status-badge { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:20px; font-size:11px; font-weight:700; }
.vac-status-dot { width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.dot-en_revision { background:#B45309; }
.dot-aprobado    { background:#1A7A4A; }
.dot-rechazado   { background:#C0392B; }

/* ══ APPROVAL CARDS ══ */
.approval-card {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:16px 20px; display:flex; align-items:center; gap:14px;
  transition:box-shadow 0.15s;
}
.approval-card:hover { box-shadow:var(--shadow-md); }
.approval-av { width:40px; height:40px; border-radius:10px; background:linear-gradient(135deg,var(--ps-blue-600),var(--ps-teal)); display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; color:white; flex-shrink:0; }
.approval-info { flex:1; min-width:0; }
.approval-name { font-size:13px; font-weight:700; }
.approval-dates { font-size:12px; color:var(--text-muted); margin-top:2px; }
.approval-meta  { font-size:11px; color:var(--text-hint); margin-top:2px; }
.approval-actions { display:flex; gap:6px; flex-shrink:0; }





/* ══ VACATION DASHBOARD ══ */
.vac-dashboard { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:20px; }
.vac-dash-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:18px 20px; }
.vac-dash-card.highlight { background:linear-gradient(135deg,var(--ps-blue-700),var(--ps-teal)); color:white; border:none; }
.vac-dash-num { font-size:32px; font-weight:800; font-family:var(--mono); line-height:1; }
.vac-dash-label { font-size:11px; font-weight:700; opacity:0.7; text-transform:uppercase; letter-spacing:0.05em; margin-top:4px; }
.vac-dash-sub { font-size:12px; opacity:0.6; margin-top:4px; }

/* ══ DATE RANGE PICKER (Airbnb style) ══ */
.date-range-picker { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px; margin-bottom:16px; }
.drp-months { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.drp-month-title { font-size:13px; font-weight:700; text-align:center; margin-bottom:12px; }
.drp-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; overflow:visible; }
.drp-day-header { font-size:10px; font-weight:700; color:var(--text-hint); text-align:center; padding:4px 0; }
.drp-day { min-height:32px; display:flex; align-items:center; justify-content:center; font-size:12px; border-radius:6px; cursor:pointer; transition:all 0.1s; position:relative; padding-bottom:6px; }
.drp-day:hover:not(.drp-disabled):not(.drp-empty) { background:var(--ps-blue-100); color:var(--ps-blue-700); }
.drp-day.drp-selected { background:var(--ps-blue-700); color:white; border-radius:6px; }
.drp-day.drp-in-range { background:var(--ps-blue-50); color:var(--ps-blue-700); border-radius:0; }
.drp-day.drp-range-start { background:var(--ps-blue-700); color:white; border-radius:6px 0 0 6px; }
.drp-day.drp-range-end { background:var(--ps-blue-700); color:white; border-radius:0 6px 6px 0; }
.drp-day.drp-today { font-weight:800; }
.drp-day.drp-disabled { color:var(--text-hint); cursor:not-allowed; opacity:0.4; pointer-events:none; }
.drp-day.drp-weekend { color:var(--text-hint); }
.drp-day.drp-weekend.drp-range-start,.drp-day.drp-weekend.drp-range-end,.drp-day.drp-weekend.drp-selected { color:#fff; }
.drp-day.drp-weekend.drp-in-range { color:var(--ps-blue-700); }
.drp-day.drp-birthday { color:var(--ps-teal) !important; }
.drp-day.drp-birthday::after { content:'🎂'; position:absolute; bottom:1px; left:50%; transform:translateX(-50%); font-size:6px; line-height:1; }
.drp-day.drp-feriado { color:var(--ps-red) !important; }
.drp-day.drp-feriado.drp-range-start,.drp-day.drp-feriado.drp-range-end,.drp-day.drp-feriado.drp-selected,.drp-day.drp-feriado.drp-in-range { color:var(--ps-red) !important; }
.drp-day.drp-feriado::after { content:''; position:absolute; bottom:3px; left:50%; transform:translateX(-50%); width:4px; height:4px; background:var(--ps-red); border-radius:50%; }
.drp-day.drp-empty { cursor:default; }
.drp-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.drp-nav-btn { background:none; border:1px solid var(--border); border-radius:6px; width:28px; height:28px; cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center; color:var(--text); }
.drp-nav-btn:hover { background:var(--surface2); }
.drp-summary { display:flex; align-items:center; gap:12px; padding:12px 16px; background:var(--ps-blue-50); border-radius:var(--radius); border:1px solid var(--ps-blue-200); font-size:13px; }
.drp-summary strong { color:var(--ps-blue-700); }

/* ══ TEAM VACATION CALENDAR ══ */
.team-cal-grid { display:grid; gap:0; border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; }
.team-cal-header { display:grid; grid-template-columns:140px repeat(31,1fr); background:var(--ps-blue-800); color:white; }
.team-cal-header-cell { padding:8px 2px; font-size:10px; font-weight:700; text-align:center; border-right:1px solid rgba(255,255,255,0.1); }
.team-cal-row { display:grid; grid-template-columns:140px repeat(31,1fr); border-bottom:1px solid var(--border); }
.team-cal-row:last-child { border-bottom:none; }
.team-cal-name { padding:8px 12px; font-size:12px; font-weight:600; display:flex; align-items:center; gap:8px; background:var(--surface); border-right:1px solid var(--border); }
.team-cal-cell { border-right:1px solid var(--border-light, #f0f0f0); height:36px; position:relative; }
.team-cal-cell.vac-approved { background:var(--ps-teal); opacity:0.7; }
.team-cal-cell.vac-pending { background:var(--ps-amber); opacity:0.5; }
.team-cal-cell.feriado { background:rgba(239,68,68,0.12); }
.team-cal-cell.weekend { background:var(--surface2); }
.team-cal-cell.today { outline:2px solid var(--ps-blue-600); outline-offset:-2px; }
.cal-month-tabs { display:flex; gap:4px; margin-bottom:14px; flex-wrap:wrap; }
.cal-month-tab { padding:5px 14px; border-radius:20px; font-size:12px; font-weight:600; cursor:pointer; border:1px solid var(--border); background:var(--surface); color:var(--text-muted); transition:all 0.15s; }
.cal-month-tab.active { background:var(--ps-blue-700); color:white; border-color:var(--ps-blue-700); }

/* ══ EQUIPO CARDS VIEW ══ */
.equipo-cards-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; }
.equipo-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:18px; transition:box-shadow 0.15s; }
.equipo-card:hover { box-shadow:var(--shadow-md); }
.equipo-card-header { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.equipo-card-av { width:44px; height:44px; border-radius:12px; background:linear-gradient(135deg,var(--ps-blue-600),var(--ps-teal)); display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:700; color:white; flex-shrink:0; overflow:hidden; }
.equipo-cap-bar-wrap { margin:10px 0 8px; }
.equipo-cap-bar { height:6px; background:var(--border); border-radius:3px; overflow:hidden; }
.equipo-cap-fill { height:100%; border-radius:3px; transition:width 0.4s; }

/* ── FAB ── */
.fab { position:fixed; bottom:28px; right:28px; height:44px; padding:0 20px; border-radius:100px; background:#01A355; color:white; border:none; font-size:14px; font-weight:600; cursor:pointer; box-shadow:0 4px 16px rgba(1,163,85,0.4); display:none; align-items:center; justify-content:center; gap:8px; z-index:100; transition:transform 0.15s, box-shadow 0.15s; white-space:nowrap; }
.fab:hover { transform:scale(1.04); box-shadow:0 6px 20px rgba(1,163,85,0.55); }

/* ── LOADER ── */
.page-loader { display:flex; align-items:center; justify-content:center; padding:60px 20px; gap:12px; color:var(--text-hint); font-size:13px; }
.loader-dots { display:flex; gap:5px; }
.loader-dot { width:7px; height:7px; border-radius:50%; background:var(--ps-blue-400); animation:dot-bounce 1.2s infinite ease-in-out; }
.loader-dot:nth-child(2) { animation-delay:0.2s; }
.loader-dot:nth-child(3) { animation-delay:0.4s; }
@keyframes dot-bounce { 0%,80%,100%{transform:scale(0.6);opacity:0.4} 40%{transform:scale(1);opacity:1} }

/* ── TOAST ── */
#toast-container { position:fixed; bottom:24px; right:24px; z-index:9999; display:flex; flex-direction:column; gap:8px; pointer-events:none; }
.toast { padding:12px 18px; border-radius:var(--radius); font-size:13px; font-weight:600; box-shadow:var(--shadow-md); pointer-events:all; animation:toast-in 0.2s ease; max-width:320px; display:flex; align-items:center; gap:10px; }
.toast-success { background:var(--ps-green); color:white; }
.toast-error   { background:var(--ps-red); color:white; }
.toast-info    { background:var(--ps-blue-700); color:white; }
@keyframes toast-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }


/* modal ancho dos columnas */
.modal-task-wide { width:900px !important; max-width:calc(100vw - 40px) !important; }

/* Calendario lateral de sprints */
.task-sprint-cal { width:220px; flex-shrink:0; background:var(--bg); border-radius:12px; padding:16px; border:1px solid var(--border); }
.task-sprint-cal h4 { font-size:11px; font-weight:700; letter-spacing:.06em; color:var(--text-hint); text-transform:uppercase; margin:0 0 12px; }
.tsc-row { display:flex; align-items:flex-start; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); }
.tsc-row:last-child { border-bottom:none; }
.tsc-dot { width:10px; height:10px; border-radius:3px; flex-shrink:0; margin-top:3px; }
.tsc-info { display:flex; flex-direction:column; gap:1px; }
.tsc-name { font-size:12px; font-weight:600; color:var(--text-primary); }
.tsc-dates { font-size:11px; color:var(--text-hint); }
