:root{
  --navy-900:#141a45;
  --navy-800:#1b2263;
  --navy-700:#2a3383;
  --navy-600:#4a55ab;
  --lavender:#b6bee7;
  --lavender-light:#eceffb;
  --gold:#e5b13c;
  --gold-dark:#b6871c;
  --green:#1fa971;
  --green-light:#e3f6ec;
  --red:#d1495b;
  --red-light:#fbe8ea;
  --gray:#8b90b3;
  --gray-light:#eef0f7;
  --bg:#eef0f8;
  --white:#ffffff;
  --text-dark:#171c4a;
  --text-muted:#6c7099;
  --radius:20px;
  --radius-sm:12px;
  --shadow: 0 6px 20px rgba(20,26,69,0.07);
}
*{box-sizing:border-box;}
body{
  margin:0;
  font-family:'Manrope', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background:var(--bg);
  color:var(--text-dark);
}
a{ text-decoration:none; color:inherit; }
.hidden{ display:none !important; }

/* ===== LOGIN ===== */
.login-screen{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
  padding:20px;
}
.login-card{
  background:#fff; border-radius:24px; padding:40px 36px; width:100%; max-width:400px;
  box-shadow:0 30px 60px rgba(10,14,40,0.35);
}
.login-card .login-brand{ display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.login-card .login-brand b{ font-size:22px; font-weight:800; color:var(--navy-900); }
.login-card .login-sub{ color:var(--text-muted); font-size:14px; margin-bottom:26px; }
.login-card .form-field{ margin-bottom:16px; }
.login-card label{ display:block; font-size:13px; font-weight:700; color:var(--navy-800); margin-bottom:6px; }
.login-card input{
  width:100%; border:1.5px solid #e2e5f5; border-radius:12px; padding:12px 14px;
  font-size:14.5px; font-family:inherit;
}
.login-card .btn{ width:100%; justify-content:center; margin-top:8px; }
.login-error{
  background:var(--red-light); color:var(--red); font-size:13.5px; font-weight:600;
  padding:10px 14px; border-radius:10px; margin-bottom:14px; display:none;
}
.login-error.show{ display:block; }
.login-footer{ margin-top:22px; text-align:center; font-size:12.5px; color:var(--text-muted); }
.login-link{ font-size:12.5px; font-weight:700; color:var(--navy-700); text-decoration:none; }
.login-link:hover{ text-decoration:underline; }
.login-info{
  background:var(--green-light); color:var(--green); font-size:13.5px; font-weight:600;
  padding:10px 14px; border-radius:10px; margin-bottom:14px; display:none;
}
.login-info.show{ display:block; }
.input-with-icon{ position:relative; }
.input-with-icon input{ padding-right:42px; }
.toggle-password{
  position:absolute; right:14px; top:50%; transform:translateY(-50%);
  color:var(--text-muted); cursor:pointer; font-size:15px;
}
.toggle-password:hover{ color:var(--navy-700); }
.login-flag-footer{
  margin-top:18px; text-align:center; font-size:11px; color:#b7bad0;
  display:flex; align-items:center; justify-content:center; gap:6px;
}
.login-flag-footer .flag-dot{
  width:12px; height:12px; border-radius:50%; display:inline-block;
  background:linear-gradient(to right, #d91023 0% 33%, #fff 33% 67%, #d91023 67% 100%);
  border:1px solid #eee;
}

/* ===== NAVBAR ===== */
.navbar{
  background:var(--navy-900);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 32px;
  flex-wrap:wrap;
  gap:12px;
}
.navbar-left{ display:flex; align-items:center; gap:10px; font-size:17px; position:relative; }
.navbar-left b{ font-weight:800; letter-spacing:-0.01em; }
.navbar-left span.sep{ opacity:0.45; margin:0 2px; }
.client-switch{
  display:flex; align-items:center; gap:8px; font-weight:600; opacity:0.92; font-size:15px;
  cursor:pointer; padding:6px 10px; border-radius:9px; transition:background .15s;
}
.client-switch:hover{ background:rgba(255,255,255,0.08); }
.client-switch i.fa-chevron-down{ font-size:10px; opacity:0.7; }
.client-dropdown{
  position:absolute; top:44px; left:0; background:#fff; border-radius:14px; min-width:250px;
  box-shadow:0 14px 34px rgba(20,26,69,0.25); padding:8px; display:none; z-index:200; color:var(--text-dark);
}
.client-dropdown.open{ display:block; }
.client-dropdown .cd-item{
  display:flex; align-items:center; justify-content:space-between; padding:9px 12px; border-radius:9px;
  cursor:pointer; font-size:14px; font-weight:600;
}
.client-dropdown .cd-item:hover{ background:var(--lavender-light); }
.client-dropdown .cd-item.active{ color:var(--navy-800); background:var(--lavender-light); }
.client-dropdown hr{ border:none; border-top:1px solid #eceefb; margin:6px 4px; }
.client-dropdown .cd-manage{
  display:flex; align-items:center; gap:8px; padding:9px 12px; border-radius:9px; cursor:pointer;
  font-size:13.5px; font-weight:700; color:var(--navy-700);
}
.client-dropdown .cd-manage:hover{ background:var(--lavender-light); }
.navtabs{ display:flex; gap:6px; flex-wrap:wrap; }
.navtab{
  display:flex; align-items:center; gap:8px;
  padding:10px 16px; border-radius:12px;
  font-weight:600; font-size:14.5px; cursor:pointer;
  color:#c7cbea; transition:background .15s, color .15s;
  border:none; background:transparent;
}
.navtab:hover{ background:rgba(255,255,255,0.08); color:#fff; }
.navtab.active{ background:rgba(255,255,255,0.16); color:#fff; }
.nav-badge{
  background:var(--red); color:#fff; font-size:10.5px; font-weight:800; border-radius:10px;
  padding:1px 7px; min-width:18px; text-align:center; line-height:1.5;
}
.navbar-right{ display:flex; align-items:center; gap:14px; position:relative; }
.navbar-right .icon-btn{
  width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.08); cursor:pointer; border:none; color:#fff;
}
.user-pill{
  background:rgba(255,255,255,0.14); padding:8px 14px; border-radius:20px;
  font-weight:700; font-size:14px; display:flex; align-items:center; gap:8px; cursor:pointer;
}
.role-badge{
  font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:0.03em;
  padding:2px 8px; border-radius:10px; background:rgba(255,255,255,0.18);
}
.user-dropdown{
  position:absolute; top:52px; right:0; background:#fff; border-radius:14px; min-width:210px;
  box-shadow:0 14px 34px rgba(20,26,69,0.25); padding:8px; display:none; z-index:200; color:var(--text-dark);
}
.user-dropdown.open{ display:block; }
.user-dropdown .ud-item{
  display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:9px; cursor:pointer;
  font-size:13.5px; font-weight:700; color:var(--red);
}
.user-dropdown .ud-item:hover{ background:var(--red-light); }

/* ===== LAYOUT ===== */
.container{ max-width:1400px; margin:0 auto; padding:24px 28px 60px; }
.page{ display:none; }
.page.active{ display:block; }
.page.export-render{
  display:block !important;
  position:fixed !important;
  top:0 !important;
  left:-10000px !important;
  z-index:-1 !important;
}
.card{
  background:var(--white); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:24px 28px;
}
.header-card{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:20px; flex-wrap:wrap; gap:16px;
}
.header-card .title-block{ display:flex; align-items:flex-start; gap:14px; }
.header-card .title-icon{ color:var(--navy-700); font-size:22px; margin-top:4px; }
.header-card h1{ margin:0 0 4px; font-size:26px; font-weight:800; color:var(--navy-900); }
.header-card p{ margin:0; color:var(--text-muted); font-size:15px; }
.btn{
  border:none; border-radius:12px; padding:12px 20px; font-weight:700;
  font-size:14.5px; cursor:pointer; display:inline-flex; align-items:center; gap:8px;
  transition:transform .1s, opacity .15s;
}
.btn:hover{ opacity:0.92; }
.btn:active{ transform:scale(0.98); }
.btn-navy{ background:var(--navy-800); color:#fff; }
.btn-gold{ background:var(--gold); color:var(--navy-900); }
.btn-outline{ background:var(--white); color:var(--navy-800); border:1.5px solid #dfe2f3; }
.btn-outline:hover{ background:var(--gray-light); }
.btn-sm{ padding:8px 14px; font-size:13.5px; border-radius:9px; }
.btn-danger{ background:var(--red-light); color:var(--red); }
.btn:disabled{ opacity:0.5; cursor:not-allowed; }

/* ===== METRIC CARDS ===== */
.metrics-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:24px; }
.metric-card{
  border-radius:24px; padding:28px 26px; position:relative; overflow:hidden;
  min-height:126px; display:flex; flex-direction:column; justify-content:space-between;
}
.metric-card .m-value{ font-size:36px; font-weight:800; letter-spacing:-0.01em; }
.metric-card .m-label{ font-size:14.5px; font-weight:600; opacity:0.92; margin-top:6px; }
.metric-card .m-icon{
  position:absolute; top:24px; right:24px; width:44px; height:44px; border-radius:13px;
  display:flex; align-items:center; justify-content:center; font-size:16px;
}
.metric-1{ background:var(--navy-800); color:#fff; }
.metric-1 .m-icon{ background:rgba(255,255,255,0.14); }
.metric-2{ background:var(--navy-600); color:#fff; }
.metric-2 .m-icon{ background:rgba(255,255,255,0.16); }
.metric-3{ background:var(--lavender); color:var(--navy-900); }
.metric-3 .m-icon{ background:rgba(255,255,255,0.5); }
.metric-4{ background:var(--gold); color:var(--navy-900); }
.metric-4 .m-icon{ background:rgba(255,255,255,0.35); }

/* ===== QUICK ACTIONS ===== */
.section-card{ margin-bottom:24px; }
.section-title{ display:flex; align-items:center; gap:10px; font-size:18px; font-weight:800; color:var(--navy-900); margin-bottom:4px;}
.section-sub{ color:var(--text-muted); font-size:14px; margin-bottom:16px; }
hr.divider{ border:none; border-top:1px solid #eceefb; margin:14px 0 18px; }
.actions-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:14px; }
.action-tile{
  border:1.5px solid #e7e9f7; border-radius:var(--radius-sm); padding:22px 14px;
  display:flex; flex-direction:column; align-items:center; gap:12px; cursor:pointer;
  background:#fff; transition:border-color .15s, background .15s;
  text-align:center; font-weight:700; font-size:13.5px; color:var(--navy-900);
}
.action-tile:hover{ border-color:var(--navy-600); background:var(--lavender-light); }
.action-tile .a-icon{
  width:42px; height:42px; border-radius:11px; background:var(--lavender-light);
  color:var(--navy-700); display:flex; align-items:center; justify-content:center; font-size:17px;
}

/* ===== FILTER BAR ===== */
.filter-bar{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:18px; }
.filter-bar input, .filter-bar select{
  border:1.5px solid #e2e5f5; border-radius:10px; padding:10px 12px; font-size:14px;
  font-family:inherit; color:var(--text-dark); background:#fff;
}
.filter-bar input[type="text"]{ min-width:220px; }
.filter-bar .grow{ flex:1; }

/* ===== TABLE ===== */
table.data-table{ width:100%; border-collapse:collapse; font-size:13.5px; table-layout:auto; }
table.data-table th{
  text-align:left; padding:10px 10px; background:var(--lavender-light); color:var(--navy-800);
  font-weight:700; font-size:11.5px; text-transform:uppercase; letter-spacing:0.02em; white-space:nowrap;
}
table.data-table th:first-child{ border-radius:10px 0 0 10px; }
table.data-table th:last-child{ border-radius:0 10px 10px 0; }
table.data-table td{ padding:10px 10px; border-bottom:1px solid #f0f1f9; vertical-align:middle; }
table.data-table tr:hover td{ background:#fafbff; }
.pill{ display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:20px; font-weight:700; font-size:12.5px; }
.pill-gray{ background:var(--gray-light); color:#5b6089; }
.pill-blue{ background:#e6ecfb; color:var(--navy-700); }
.pill-gold{ background:#fdf1d8; color:var(--gold-dark); }
.pill-green{ background:var(--green-light); color:#157a4c; }
.pill-red{ background:var(--red-light); color:var(--red); }
.pill-select{
  border:none; border-radius:20px; padding:5px 10px; font-weight:700; font-size:12.5px;
  cursor:pointer; outline:none; font-family:inherit; -webkit-appearance:menulist; appearance:menulist;
  transition:filter .1s;
}
.pill-select:hover{ filter:brightness(0.94); }
.pill-select:focus{ box-shadow:0 0 0 2px rgba(23,28,69,0.18); }
.pill-select:disabled{ opacity:0.6; cursor:wait; }
.mini-select{
  border:1.5px solid #e2e5f5; border-radius:7px; padding:3px 6px; font-size:11.5px; font-weight:600;
  color:var(--navy-800); font-family:inherit; cursor:pointer; max-width:150px; background:#fff;
}
.mini-select.sin-asignar{ color:var(--text-muted); border-color:#eceefb; font-style:italic; }
.mini-select:hover{ border-color:var(--navy-600); }
.activity-item{ border-radius:12px; padding:10px 12px; font-size:13px; }
.adjunto-item{
  display:flex; align-items:center; gap:10px; background:#fafbff; border:1.5px solid #eceefb;
  border-radius:10px; padding:8px 12px; font-size:12.5px;
}
.adjunto-item .a-icon{ font-size:16px; color:var(--navy-700); flex-shrink:0; }
.adjunto-item .a-nombre{ flex:1; font-weight:600; color:var(--navy-800); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.adjunto-item .a-meta{ color:var(--text-muted); font-size:11px; white-space:nowrap; }
.activity-item.comment{ background:var(--lavender-light); }
.activity-item.system{ background:#fbfbfe; border:1px dashed #e7e9f7; color:var(--text-muted); font-size:12px; }
.activity-item .a-head{ display:flex; justify-content:space-between; font-weight:700; color:var(--navy-800); margin-bottom:4px; font-size:12.5px; }
.activity-item .a-time{ font-weight:500; color:var(--text-muted); font-size:11px; }
.overdue-dot{ width:7px; height:7px; border-radius:50%; background:var(--red); display:inline-block; margin-left:6px; }
.ticket-num{ font-family:'Courier New', monospace; font-weight:800; font-size:12.5px; color:var(--navy-700); background:var(--lavender-light); padding:3px 8px; border-radius:8px; white-space:nowrap; }
.desc-preview{
  font-size:11.5px; color:var(--text-muted); max-width:230px; margin-top:2px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; text-overflow:ellipsis; line-height:1.35; cursor:help;
}
.correo-item{ padding:14px 18px; border-bottom:1px solid #f2f3fa; cursor:pointer; transition:background .15s; }
.correo-item:hover{ background:var(--lavender-light); }
.correo-item.activo{ background:var(--lavender-light); border-left:3px solid var(--navy-700); }
.correo-item.no-leido .correo-asunto{ font-weight:800; }
.correo-item .correo-top{ display:flex; justify-content:space-between; font-size:11.5px; color:var(--text-muted); margin-bottom:3px; }
.correo-item .correo-remitente{ font-weight:700; font-size:12.5px; color:var(--navy-800); }
.correo-item .correo-asunto{ font-size:12.5px; color:var(--text-dark); margin-top:2px; }
.correo-item .correo-snippet{ font-size:11.5px; color:var(--text-muted); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.correo-bubble{ max-width:80%; padding:12px 16px; border-radius:14px; margin-bottom:14px; font-size:13.5px; line-height:1.5; white-space:pre-wrap; }
.correo-bubble.entrante{ background:var(--lavender-light); align-self:flex-start; }
.correo-bubble.saliente{ background:var(--navy-800); color:#fff; align-self:flex-end; }
.correo-bubble .cb-meta{ font-size:11px; opacity:0.7; margin-bottom:6px; font-weight:700; }
.icon-action{ cursor:pointer; color:var(--text-muted); padding:6px; border-radius:8px; }
.icon-action:hover{ background:var(--gray-light); color:var(--navy-800); }
.empty-state{ text-align:center; padding:50px 20px; color:var(--text-muted); }
.empty-state i{ font-size:32px; color:var(--lavender); margin-bottom:10px; display:block; }
.sub-row td:first-child{ padding-left:38px; }
.sub-row .sub-arrow{ color:var(--lavender); margin-right:8px; }
.sub-row td{ background:#fbfbfe; }
.btn-add-sub{ color:var(--text-muted); cursor:pointer; padding:6px; border-radius:8px; }
.btn-add-sub:hover{ background:var(--gray-light); color:var(--navy-800); }
.subtask-badge{ font-size:11px; font-weight:700; color:var(--text-muted); background:var(--gray-light); padding:2px 8px; border-radius:10px; margin-left:8px; }
.bulk-bar{
  display:flex; align-items:center; gap:12px; background:var(--lavender-light); border-radius:12px;
  padding:12px 16px; margin-bottom:14px; font-weight:700; font-size:13.5px; color:var(--navy-800);
}
.bulk-bar.hidden{ display:none; }
.pagination-bar{
  display:flex; align-items:center; gap:12px; margin-top:14px; font-size:13px; color:var(--text-muted); font-weight:600;
}
.pagination-bar select{
  border:1.5px solid #e2e5f5; border-radius:9px; padding:7px 10px; font-size:13px; font-family:inherit; color:var(--text-dark);
}
.pagination-bar #pagina-actual-label{ font-weight:800; color:var(--navy-800); min-width:50px; text-align:center; }
input[type="checkbox"]{ width:16px; height:16px; cursor:pointer; accent-color:var(--navy-700); }
.gantt-group-header{ display:flex; align-items:center; background:var(--navy-900); color:#fff; font-weight:800; font-size:12.5px; padding:8px 16px; position:sticky; left:0; }
.gantt-sub .gantt-label{ padding-left:34px; }
.gantt-sub .g-title{ font-weight:600; font-size:12px; color:var(--navy-700); }
.gantt-sub .gantt-bar{ opacity:0.82; height:18px; top:11px; }

/* ===== MODAL ===== */
.modal-overlay{
  position:fixed; inset:0; background:rgba(23,27,70,0.55); display:none;
  align-items:center; justify-content:center; z-index:100; padding:20px;
}
.modal-overlay.active{ display:flex; }
.modal-box{
  background:#fff; border-radius:18px; padding:28px 30px; max-width:560px; width:100%;
  max-height:90vh; overflow-y:auto; box-shadow:0 20px 50px rgba(23,27,70,0.3);
}
#modal-solicitud .modal-box{ max-width:620px; }
.modal-box h2{ margin:0 0 4px; font-size:20px; font-weight:800; color:var(--navy-900); }
.modal-box .modal-sub{ color:var(--text-muted); font-size:13.5px; margin-bottom:18px; }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-grid .full{ grid-column:1 / -1; }
.form-field label{ display:block; font-size:13px; font-weight:700; color:var(--navy-800); margin-bottom:6px; }
.form-field input, .form-field select, .form-field textarea{
  width:100%; border:1.5px solid #e2e5f5; border-radius:10px; padding:10px 12px;
  font-size:14px; font-family:inherit; color:var(--text-dark);
}
.form-field textarea{ resize:vertical; min-height:64px; }
.form-field input:disabled, .form-field select:disabled, .form-field textarea:disabled{
  background:#f5f6fb; color:var(--text-muted); cursor:not-allowed;
}
.modal-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }
.field-note{ font-size:12px; color:var(--text-muted); margin-top:4px; }

/* ===== GANTT ===== */
.gantt-legend{ display:flex; gap:20px; align-items:center; margin-bottom:16px; flex-wrap:wrap; }
.legend-item{ display:flex; align-items:center; gap:8px; font-size:13.5px; font-weight:600; color:var(--text-muted); }
.legend-dot{ width:12px; height:12px; border-radius:4px; }
.gantt-scroll{ overflow-x:auto; border-radius:12px; border:1px solid #eceefb; }
.gantt-inner{ background:#fff; padding:6px 0; min-width:max-content; }
.gantt-row{ display:flex; align-items:stretch; border-bottom:1px solid #f2f3fa; }
.gantt-row:last-child{ border-bottom:none; }
.gantt-label{
  width:300px; min-width:300px; padding:10px 16px; display:flex; flex-direction:column;
  justify-content:center; gap:2px; background:#fff; position:sticky; left:0; z-index:2;
  border-right:1.5px solid #eceefb;
}
.gantt-label .g-title{ font-weight:700; font-size:13px; color:var(--navy-900); }
.gantt-label .g-sub{ font-size:11.5px; color:var(--text-muted); }
.gantt-header{ display:flex; background:var(--lavender-light); position:sticky; top:0; z-index:3; }
.gantt-header .gantt-label{ background:var(--lavender-light); font-weight:800; color:var(--navy-800); font-size:13px; justify-content:center; }
.gantt-months{ display:flex; position:relative; }
.gantt-month{
  border-right:1px solid #dde1f2; font-size:12px; font-weight:700; color:var(--navy-700);
  text-align:center; padding:10px 0; flex-shrink:0;
}
.gantt-track{ position:relative; flex-shrink:0; }
.gantt-bar{
  position:absolute; border-radius:7px; display:flex; align-items:center;
  padding:0 10px; font-size:11.5px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,0.15);
}
.gantt-gridlines{ position:absolute; inset:0; }
.gantt-gridline{ position:absolute; top:0; bottom:0; border-right:1px dashed #dde1f2; z-index:1; }
.gantt-gridline-week{ position:absolute; top:0; bottom:0; border-right:1px dotted #eef0f7; }
.today-line{ position:absolute; top:0; bottom:0; width:2px; background:var(--red); z-index:1; }
.gantt-subheader{ display:flex; background:#f5f6fc; position:sticky; top:38px; z-index:3; border-bottom:1.5px solid #eceefb; }
.gantt-subheader .gantt-label{ background:#f5f6fc; border-right:1.5px solid #eceefb; }
.gantt-weeks{ display:flex; position:relative; }
.gantt-week{
  border-right:1px dotted #dde1f2; font-size:10.5px; font-weight:700; color:var(--text-muted);
  text-align:center; padding:6px 0; flex-shrink:0;
}

/* ===== CLIENTES / EQUIPOS / USUARIOS ===== */
.two-col{ display:grid; grid-template-columns:1.1fr 1fr; gap:20px; }
.team-block{ border:1.5px solid #eceefb; border-radius:14px; padding:16px 18px; margin-bottom:14px; }
.team-block h3{ margin:0 0 10px; font-size:15.5px; font-weight:800; color:var(--navy-800); display:flex; align-items:center; gap:8px; }
.member-row{ display:flex; align-items:center; justify-content:space-between; padding:9px 0; border-bottom:1px solid #f5f6fb; }
.member-row:last-child{ border-bottom:none; }
.member-name{ font-weight:600; font-size:14px; display:flex; align-items:center; gap:10px; }
.avatar{
  width:30px; height:30px; border-radius:50%; background:var(--navy-700); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800;
}
.member-row select{ border:1.5px solid #e2e5f5; border-radius:8px; padding:6px 10px; font-size:12.5px; }
.checkbox-list{ display:block; max-height:220px; overflow-y:auto; padding:10px 12px; border:1.5px solid #e2e5f5; border-radius:10px; }
.checkbox-list label{
  display:block; font-size:13.5px; font-weight:600; color:var(--text-dark);
  cursor:pointer; padding:5px 0; text-align:left;
}
.checkbox-list label input[type="checkbox"]{ margin:0 8px 0 0; vertical-align:middle; }

/* ===== SELECTOR DE VISTAS (dentro de Solicitudes) ===== */
.view-switch{ display:flex; gap:2px; background:var(--gray-light); border-radius:12px; padding:3px; }
.view-btn{
  border:none; background:transparent; padding:8px 14px; border-radius:9px; font-weight:700; font-size:13px;
  color:var(--text-muted); cursor:pointer; display:flex; align-items:center; gap:7px; white-space:nowrap;
  transition:background .15s, color .15s;
}
.view-btn:hover{ color:var(--navy-800); }
.view-btn.active{ background:#fff; color:var(--navy-800); box-shadow:0 2px 6px rgba(20,26,69,0.12); }
.subvista{ margin-top:18px; }
.subvista.hidden{ display:none; }

/* ===== PIPELINE (kanban) ===== */
.pipeline-board{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; align-items:start; }
.pipeline-col{ background:#fafbff; border-radius:14px; border:1.5px solid #eceefb; min-height:120px; }
.pipeline-col-header{
  font-weight:800; font-size:13px; padding:12px 14px; border-radius:14px 14px 0 0;
  display:flex; align-items:center; justify-content:space-between;
}
.pipeline-count{ background:rgba(0,0,0,0.08); border-radius:10px; padding:1px 8px; font-size:11.5px; }
.pipeline-col-body{ padding:12px; display:flex; flex-direction:column; gap:10px; min-height:80px; }
.pipeline-col-body.drag-over{ background:var(--lavender-light); border-radius:10px; }
.pipeline-card{
  background:#fff; border:1.5px solid #eceefb; border-radius:12px; padding:12px 14px; cursor:grab;
  box-shadow:0 1px 4px rgba(20,26,69,0.06); transition:box-shadow .15s, transform .1s;
}
.pipeline-card:hover{ box-shadow:0 4px 12px rgba(20,26,69,0.14); }
.pipeline-card.dragging{ opacity:0.4; }
.pipeline-card-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.pipeline-card-title{ font-weight:700; font-size:13.5px; color:var(--navy-900); margin-bottom:6px; line-height:1.3; }
.pipeline-card-meta{ font-size:11.5px; color:var(--text-muted); margin-bottom:8px; }
.pipeline-card-footer{ display:flex; justify-content:space-between; align-items:center; font-size:11.5px; color:var(--text-muted); border-top:1px dashed #eceefb; padding-top:8px; }
.overdue-text{ color:var(--red); font-weight:700; }
.pipeline-empty{ text-align:center; color:var(--text-muted); font-size:12.5px; padding:20px 0; }

/* ===== CALENDARIO ===== */
.calendar-header{ display:flex; align-items:center; justify-content:center; gap:18px; margin-bottom:16px; }
.calendar-header #calendar-mes-label{ font-weight:800; font-size:16px; color:var(--navy-900); min-width:160px; text-align:center; }
.cal-weekdays{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin-bottom:6px; }
.cal-weekdays div{ text-align:center; font-size:11.5px; font-weight:800; color:var(--text-muted); text-transform:uppercase; }
.cal-days{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal-cell{ background:#fafbff; border:1.5px solid #eceefb; border-radius:10px; min-height:96px; padding:6px; display:flex; flex-direction:column; gap:3px; }
.cal-cell.cal-empty{ background:transparent; border:none; }
.cal-cell.cal-today{ border-color:var(--gold); background:#fffaf0; }
.cal-day-num{ font-size:11.5px; font-weight:800; color:var(--navy-700); }
.cal-items{ display:flex; flex-direction:column; gap:3px; overflow:hidden; }
.cal-chip{ font-size:10.5px; font-weight:700; padding:2px 6px; border-radius:6px; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#fff; }
.cal-chip.pill-gray{ background:var(--gray); color:#fff; }
.cal-chip.pill-gold{ background:var(--gold); color:var(--navy-900); }
.cal-chip.pill-green{ background:var(--green); color:#fff; }
.cal-more{ font-size:10px; color:var(--text-muted); font-weight:700; padding-left:2px; }

@media (max-width: 1100px){
  .pipeline-board{ grid-template-columns:1fr; }
}

@media (max-width: 1100px){
  .metrics-row{ grid-template-columns:repeat(2,1fr); }
  .actions-grid{ grid-template-columns:repeat(3,1fr); }
  .two-col{ grid-template-columns:1fr; }
  .form-grid{ grid-template-columns:1fr; }
}
@media (max-width: 640px){
  .actions-grid{ grid-template-columns:repeat(2,1fr); }
  .navbar{ padding:12px 16px; }
}
