/* Módulo de excusas · Latido Solidario */
.excuse-staff-page .decision-change-field{margin-top:16px;padding:16px;border:1px solid #806a3b;border-radius:12px;background:rgba(128,106,59,.1)}
.excuse-staff-page .excuse-change-history{margin-top:18px;padding:16px;border:1px solid #355573;border-radius:12px;color:#c5d7e8}
.excuse-staff-page .excuse-change-history div+div{margin-top:12px;padding-top:12px;border-top:1px solid #27445f}
.excuse-staff-page .excuse-change-history p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
.excuse-staff-page .excuse-change-history small{color:#9bb0c5}
.excuse-staff-page .excuse-deleted-by{display:grid;gap:6px;margin-top:20px;padding:16px;border:1px solid #80464d;border-radius:12px;background:rgba(128,70,77,.12);color:#ffb2b8;text-align:left;font-size:14px}
.excuse-staff-page .excuse-deleted-by span{color:#9bb0c5;font-size:12px}
.excuse-staff-page .deleted-excuse-card{border-color:#69414e}
@media(max-width:600px){.excuse-staff-page .excuse-status-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sidebar nav a.nav{ text-decoration:none; color:inherit; }
.excuse-wrap{ max-width:1500px; }
.excuse-kpis{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  margin:22px 0;
}
.excuse-kpis article{
  background:#fff;
  border:1px solid rgba(16,49,88,.09);
  border-radius:18px;
  padding:18px 20px;
  box-shadow:0 10px 30px rgba(15,35,65,.06);
  position:relative;
  overflow:hidden;
}
.excuse-kpis article::before{
  content:""; position:absolute; left:0; top:0; right:0; height:3px;
  background:linear-gradient(90deg,#0b4f8a,#2aa4d6);
}
.excuse-kpis small{display:block;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#738096}
.excuse-kpis b{display:block;font-size:30px;color:#102b4e;margin:7px 0 2px}
.excuse-kpis span{font-size:12px;color:#8792a5}
.excuse-filter-card{margin-bottom:16px}
.excuse-form-setup-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:16px 18px;border:1px solid #e6c76b;border-radius:14px;background:#fff9e8;color:#6a5110}
.excuse-form-setup-alert p{margin:5px 0 0;font-size:13px;line-height:1.5}
.excuse-filters{display:grid;grid-template-columns:minmax(260px,1fr) minmax(170px,.5fr);gap:12px}
.excuse-status-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 20px;padding:7px;border:1px solid #27445f;border-radius:16px;background:linear-gradient(140deg,#0d2034,#0a192a);box-shadow:inset 0 1px 0 rgba(143,200,232,.05)}
.excuse-status-tab{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:10px 14px;border:1px solid transparent;border-radius:11px;background:transparent;color:#9bb0c5;font:inherit;font-size:14px;font-weight:800;cursor:pointer;transition:background .16s,border-color .16s,color .16s,box-shadow .16s}
.excuse-status-tab:hover{background:#132b43;color:#e4f2ff}
.excuse-status-tab:focus-visible{outline:3px solid rgba(49,145,206,.3);outline-offset:2px}
.excuse-status-tab b{min-width:25px;padding:3px 7px;border-radius:99px;background:#1b354e;color:#b6cee2;font-size:11px}
.excuse-status-tab.active{border-color:#365a78;background:linear-gradient(145deg,#18344f,#122941);color:#f0f7ff;box-shadow:0 4px 14px rgba(0,0,0,.2),inset 0 1px 0 rgba(143,200,232,.08)}
.excuse-status-tab[data-excuse-tab="PENDIENTE"].active{border-color:#806a3b;color:#ffe3a0}
.excuse-status-tab[data-excuse-tab="PENDIENTE"].active b{background:#3f3621;color:#ffdc83}
.excuse-status-tab[data-excuse-tab="APROBADA"].active{border-color:#32725d;color:#9be3c4}
.excuse-status-tab[data-excuse-tab="APROBADA"].active b{background:#173d33;color:#9be3c4}
.excuse-status-tab[data-excuse-tab="RECHAZADA"].active{border-color:#80464d;color:#ffb2b8}
.excuse-status-tab[data-excuse-tab="RECHAZADA"].active b{background:#46272c;color:#ffb2b8}
.excuse-status-section[hidden]{display:none!important}
.excuse-status-section{margin:22px 0 30px}
.excuse-status-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:12px 16px;border:1px solid #27445f;border-radius:14px;background:linear-gradient(120deg,#10263d,#0b1b2d);box-shadow:inset 0 1px 0 rgba(143,200,232,.04)}
.excuse-status-heading>div{display:flex;align-items:center;gap:10px}
.excuse-status-heading h2{margin:0;color:#e5f1fc;font-size:17px}
.status-indicator{width:10px;height:10px;border-radius:50%;background:#d49b2a;box-shadow:0 0 0 4px rgba(212,155,42,.14)}
.approved-section .status-indicator{background:#23946b;box-shadow:0 0 0 4px rgba(35,148,107,.13)}
.rejected-section .status-indicator{background:#cf4a56;box-shadow:0 0 0 4px rgba(207,74,86,.13)}
.status-count{min-width:30px;padding:4px 9px;border-radius:99px;background:#1b354e;color:#c3d7e8;text-align:center;font-size:12px;font-weight:800}
.excuse-staff-list{display:grid;gap:16px;padding-bottom:30px}
.excuse-staff-card{padding:22px}
.excuse-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}
.excuse-identity{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:17px;color:#102b4e}
.excuse-service-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px;color:#65738b;font-size:13px}
.excuse-service-meta span,.excuse-service-meta b{background:#f4f7fb;border:1px solid #e6edf5;padding:6px 9px;border-radius:10px}
.excuse-card-state{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:7px;color:#8390a3}
.excuse-description{background:#f8fafc;border:1px solid #e8edf4;border-radius:14px;padding:14px 16px;margin-bottom:16px}
.excuse-description small{font-size:10px;letter-spacing:.12em;font-weight:800;color:#7c899c}
.excuse-description p{margin:7px 0 0;line-height:1.6;color:#2d3d55;white-space:pre-wrap}
.public-excuse-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:0 0 16px;padding:14px 16px;border:1px solid #294765;border-radius:14px;background:linear-gradient(145deg,#10243a,#0b1b2d);box-shadow:inset 0 1px 0 rgba(123,184,226,.06)}
.public-excuse-details>small{grid-column:1/-1;font-size:10px;letter-spacing:.12em;font-weight:800;color:#8fc8e8}
.public-excuse-details>div{display:grid;gap:3px;min-width:0}
.public-excuse-details span{font-size:11px;color:#9bb0c5}
.public-excuse-details b{overflow-wrap:anywhere;color:#e5f1fc;font-size:13px}
.public-excuse-details .replacement-attempt{grid-column:1/-1}
.excuse-review-grid{display:grid;grid-template-columns:minmax(180px,.4fr) minmax(300px,1.6fr);gap:14px;align-items:start}
.excuse-review-grid label{display:block;font-size:12px;font-weight:800;color:#334761;margin-bottom:6px}
.excuse-response-field textarea{min-height:92px;resize:vertical}
.excuse-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}
.excuse-decision-panel{margin-top:17px;padding:16px;border:1px solid #294765;border-radius:15px;background:linear-gradient(145deg,#10243a,#0b1b2d);box-shadow:inset 0 1px 0 rgba(143,200,232,.05)}
.excuse-decision-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:13px}
.excuse-decision-heading b{color:#e5f1fc;font-size:14px}
.excuse-decision-heading p{margin:4px 0 0;color:#9bb0c5;font-size:12px;line-height:1.5}
.decision-current{padding:5px 9px;border:1px solid #294765;border-radius:99px;background:#142d46;color:#c7d9ea;font-size:11px;font-weight:700}
.excuse-decision-panel .excuse-response-field label{display:block;font-size:12px;font-weight:800;color:#d9e6f4;margin-bottom:6px}
.excuse-decision-panel .excuse-response-field textarea{min-height:76px}
.excuse-decision-panel .field-help{margin-top:5px;color:#91a8bf}
.decision-actions{margin-top:12px}
.decision-actions .quickReview{min-height:40px;padding:9px 14px;font-weight:800}
.decision-actions .quickReview[data-status="PENDIENTE"]{background:#142d46;border:1px solid #36536f;color:#d7e8f7}
.decision-actions .quickReview[data-status="APROBADA"]{background:linear-gradient(120deg,#16815e,#21a174);border-color:#16815e;color:#fff}
.decision-actions .quickReview[data-status="RECHAZADA"]{background:#3a2229;border:1px solid #80464d;color:#ffb2b8}
.excuse-section-head{margin-top:26px;margin-bottom:14px}
.excuse-section-head h2{margin:4px 0 6px;color:#102b4e}
.excuse-section-head p{max-width:820px;color:#6f7c91}
.excuse-form-card .span-2{grid-column:1/-1}
.excuse-privacy-note{font-size:12px;line-height:1.5;color:#6e7a8e;background:#f5f8fc;border:1px solid #e5ebf3;padding:10px 12px;border-radius:10px;margin:10px 0 14px}
.excuse-history-card{border-left:3px solid #2c91cf;padding-left:16px}
.volunteer-portal-page .portal-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
#misExcusas{scroll-margin-top:24px}

@media(max-width:1100px){
  .excuse-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .excuse-filters{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .excuse-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .excuse-kpis article:first-child{grid-column:1/-1}
  .excuse-filters{grid-template-columns:1fr}
  .excuse-status-tabs{gap:5px;padding:5px}
  .excuse-status-tab{flex-direction:column;gap:4px;padding:8px 4px;font-size:12px}
  .excuse-card-top{flex-direction:column}
  .excuse-card-state{text-align:left;align-items:flex-start}
  .excuse-review-grid{grid-template-columns:1fr}
  .excuse-decision-heading{flex-direction:column}
  .volunteer-portal-page .portal-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
  .excuse-kpis,.volunteer-portal-page .portal-kpis{grid-template-columns:1fr}
  .excuse-kpis article:first-child{grid-column:auto}
}

/* Revisión, plazo y apelaciones */
.excuse-deadline-note{
  margin:10px 0 8px;
  padding:12px 14px;
  border-radius:12px;
  background:#fff8e8;
  border:1px solid #f1dfb2;
  color:#6e5723;
  font-size:12px;
  line-height:1.55;
}
.excuse-review-message{
  margin-top:16px;
  padding:17px 18px;
  border-radius:15px;
  background:linear-gradient(135deg,#fff8e8,#fffdf7);
  border:1px solid #ead8a6;
  box-shadow:0 8px 22px rgba(91,68,22,.06);
  color:#514522;
}
.excuse-review-message.compact{margin-top:14px;padding:14px 15px}
.excuse-review-message h3{margin:0 0 8px;font-size:15px;color:#5d4817}
.excuse-review-message p{margin:6px 0!important;color:#625533!important;font-size:12px!important;line-height:1.6!important}
.excuse-appeal-box{
  margin-top:15px;
  padding:16px;
  border-radius:15px;
  border:1px solid #d8e4f1;
  background:#f8fbff;
}
.excuse-appeal-box.existing{background:#fafbfe}
.excuse-appeal-title{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px}
.excuse-appeal-title>span{font-size:20px}
.excuse-appeal-title b{display:block;color:#102b4e;font-size:13px}
.excuse-appeal-title small{display:block;color:#718096;margin-top:3px}
.excuse-appeal-box textarea{min-height:105px;resize:vertical;margin:8px 0 10px}
.staff-appeal-panel{
  margin-top:18px;
  padding:18px;
  border-radius:16px;
  border:1px solid #cddced;
  background:#f7fbff;
}
.staff-appeal-panel.pending{border-left:4px solid #d29a25}
.staff-appeal-panel.resolved{border-left:4px solid #2b8f68}
.appeal-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:10px}
.appeal-panel-head small{display:block;font-size:9px;letter-spacing:.12em;font-weight:850;color:#718096}
.appeal-panel-head h4{margin:4px 0 0;color:#102b4e}
.appeal-body{white-space:pre-wrap;line-height:1.62;color:#34485f;background:#fff;border:1px solid #e5ecf4;border-radius:12px;padding:12px 14px}
.appeal-review-grid{margin-top:14px}
.field-help{display:block;margin-top:6px;color:#7a8799;font-size:11px;line-height:1.45}

@media(max-width:760px){
  .appeal-panel-head{flex-direction:column}
  .excuse-review-message{padding:14px}
}


/* Adjuntos seguros de excusas */
.excuse-attachments{margin:14px 0;padding:14px;border:1px solid rgba(73,132,190,.28);background:rgba(8,31,53,.54);border-radius:13px}
.excuse-attachments>small{display:block;font-size:9px;letter-spacing:.12em;font-weight:900;color:#7ea8ca;margin-bottom:9px}
.excuse-attachment-list{display:grid;gap:8px}
.excuse-attachment{display:flex;align-items:center;gap:10px;padding:10px 11px;border:1px solid rgba(80,145,207,.28);border-radius:10px;background:rgba(9,38,64,.72);text-decoration:none;color:#eaf5ff;transition:.16s ease}
.excuse-attachment:hover{border-color:#4389c7;background:rgba(16,55,88,.88);transform:translateY(-1px)}
.excuse-attachment>span{font-size:18px}.excuse-attachment>div{min-width:0;flex:1}.excuse-attachment b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.excuse-attachment small{color:#87a6c1;font-size:10px}.excuse-attachment em{font-style:normal;color:#67b4ff;font-size:10px;font-weight:850}
.excuse-targeted{outline:2px solid #3a9cff;box-shadow:0 0 0 5px rgba(58,156,255,.12)!important}
.portal-excuse-files{display:grid;gap:7px;margin-top:8px}
.portal-excuse-files a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:9px;border:1px solid rgba(77,142,202,.26);text-decoration:none;color:inherit;background:rgba(20,63,96,.08)}
.portal-excuse-files a small{opacity:.7;font-size:9px}
html[data-theme="dark"] .portal-excuse-files a{background:rgba(11,40,65,.72);border-color:rgba(82,150,211,.28);color:#e9f5ff}
