.reports-page{width:min(1160px,100% - 32px);margin:clamp(24px,5vw,56px) auto 72px;color:#172d27}
.reports-page *{box-sizing:border-box}
.reports-header{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:26px}
.reports-header h1{margin:4px 0 8px;color:#173b30;font-size:clamp(2rem,4vw,3rem);line-height:1.08;letter-spacing:-.04em}
.reports-header p:not(.eyebrow){margin:0;color:#526960}
.reports-header .eyebrow,.report-panel .eyebrow,.report-form__heading .eyebrow{margin:0;color:#55816e;font-size:.74rem;font-weight:850;letter-spacing:.13em;text-transform:uppercase}
.reports-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 28px}
.reports-stats article{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:76px;padding:17px 20px;border:1px solid #dfe9e4;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(21,54,42,.055)}
.reports-stats article span{color:#536b61;font-size:.9rem;font-weight:700}
.reports-stats article strong{color:#1c6248;font-size:1.7rem}
.reports-stats .reports-stats__overdue strong{color:#b43f38}
.reports-notices,.report-panel{margin-bottom:20px;padding:clamp(18px,3vw,28px);border:1px solid #e0e9e4;border-radius:20px;background:#fff;box-shadow:0 10px 32px rgba(21,54,42,.06)}
.reports-notices h2,.report-panel h2{margin:0 0 16px;color:#1b3d31}
.reports-notices a{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #e8efeb;color:#284a3d;text-decoration:none}
.reports-notices time{color:#65786f;font-size:.84rem}
.reports-filters{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr)) auto;align-items:end;gap:12px;margin:0 0 24px;padding:18px;border:1px solid #e0e9e4;border-radius:18px;background:#fff}
.reports-filters label,.report-form__field{display:grid;gap:7px;color:#294a3d;font-size:.86rem;font-weight:750}
.reports-filters input,.reports-filters select,.report-form__field input,.report-form__field select,.report-form__field textarea,.report-management input,.report-management select,.report-management textarea{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #cddbd3;border-radius:10px;background:#fff;color:#203a30;font:inherit;font-weight:500;outline:none}
.reports-filters input:focus,.reports-filters select:focus,.report-form input:focus,.report-form select:focus,.report-form textarea:focus,.report-management input:focus,.report-management select:focus,.report-management textarea:focus{border-color:#438263;box-shadow:0 0 0 3px rgba(67,130,99,.15)}
.reports-filters input[type=date]{color-scheme:light}
.reports-filter-actions{display:flex;gap:8px}
.report-action{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:10px 16px;border:1px solid transparent;border-radius:11px;font:inherit;font-size:.9rem;font-weight:800;text-align:center;text-decoration:none;cursor:pointer;transition:transform .18s,background .18s,box-shadow .18s}
.report-action:hover{transform:translateY(-1px)}
.report-action--primary{background:#176344;color:#fff}
.report-action--primary:hover{background:#104f36}
.report-action--secondary{border-color:#cddbd3;background:#fff;color:#285642}
.report-action--secondary:hover{background:#f0f6f2}
.report-action--danger{background:#a93535;color:#fff}
.report-action:disabled{opacity:.6;cursor:wait;transform:none}
.reports-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:18px}
.report-create-card,.report-category-card,.report-item-card{overflow:hidden;min-width:0;border:1px solid #dce8e1;border-radius:18px;background:#fff;color:#244638;text-decoration:none;box-shadow:0 8px 26px rgba(21,54,42,.07);transition:transform .2s,box-shadow .2s}
.report-create-card:hover,.report-category-card:hover,.report-item-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(21,54,42,.12)}
.reports-page .report-create-card{display:flex;min-height:290px;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;border:1.5px dashed #7fa994;background:#f4f9f5;color:#224d39;text-align:center}
.report-create-card__icon{display:grid;width:58px;height:58px;place-items:center;border-radius:17px;background:#dcefe2;color:#176344;font-size:2.4rem;line-height:1}
.report-create-card strong{color:#204b37;font-size:1.15rem}
.report-create-card>span:last-child{color:#61776b;font-size:.9rem}
.report-category-card img,.report-item-card__photo img{display:block;width:100%;height:205px;object-fit:cover;background:#edf3ef}
.report-category-card__body,.report-item-card__body{display:grid;gap:8px;padding:16px}
.report-category-card__body strong,.report-item-card__body>strong{color:#203f31;font-size:1.04rem;line-height:1.3}
.report-category-card__body small,.report-item-card__body small,.report-item-card__body>span{color:#62766b;font-size:.83rem;line-height:1.4}
.report-item-card__photo{position:relative}
.report-status,.report-overdue,.report-photo-count{position:absolute;z-index:1;top:12px;border-radius:999px;padding:6px 10px;background:#fff;color:#285642;font-size:.74rem;font-weight:850;text-transform:capitalize;box-shadow:0 2px 8px #0002}
.report-status{left:12px}.report-overdue{right:12px;background:#a93535;color:#fff}.report-photo-count{top:auto;right:12px;bottom:12px;background:#132d24d9;color:#fff}
.report-status--nuevo{color:#176344}.report-status--en_revision,.report-status--atendido{color:#85570c}.report-status--cerrado{color:#287042}
.reports-empty{grid-column:1/-1;padding:30px;border:1px dashed #cbd9d1;border-radius:16px;color:#60756a;text-align:center}
.report-create-dialog{width:min(670px,calc(100% - 24px));max-width:none;max-height:min(92dvh,940px);overflow:auto;padding:0;border:0;border-radius:22px;background:#fff;color:#203b30;box-shadow:0 24px 80px #10281f66}
.report-create-dialog::backdrop{background:rgba(10,25,20,.62);backdrop-filter:blur(4px)}
.report-create-dialog[open]{position:fixed;inset:50% auto auto 50%;z-index:1201;transform:translate(-50%,-50%);margin:0}
body.report-dialog-open::before{position:fixed;z-index:1200;inset:0;background:rgba(10,25,20,.62);content:""}
.camera-fab{position:fixed;z-index:1100;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));display:grid;width:58px;height:58px;place-items:center;border:0;border-radius:50%;background:#176344;color:#fff;box-shadow:0 6px 20px #10281f66;cursor:pointer}
.camera-fab svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.report-dialog-open .camera-fab{visibility:hidden}
.report-form{position:relative;display:grid;gap:18px;padding:clamp(20px,4vw,34px)}
.report-dialog-close{position:absolute;top:16px;right:16px;width:40px;height:40px;border:1px solid #d5e0d9;border-radius:12px;background:#f5f8f6;color:#315b47;font-size:1.6rem;line-height:1;cursor:pointer}
.report-form__heading{padding:0 42px 2px 0}
.report-form__heading h2{margin:5px 0 7px;color:#173d2e;font-size:1.55rem}
.report-form__heading>p:last-child{margin:0;color:#65776d;font-size:.9rem;line-height:1.5}
.report-form__two-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.report-form__field textarea{min-height:94px;resize:vertical}
.report-photo-picker{display:grid;gap:12px;min-width:0;margin:0;padding:16px;border:1px solid #dce7e0;border-radius:15px;background:#f7faf8}
.report-photo-picker legend{padding:0 7px;color:#244a38;font-weight:850}
.report-photo-picker legend span{margin-left:7px;color:#73847a;font-size:.76rem;font-weight:650}
.report-file-select{position:relative;display:grid;min-height:112px;place-content:center;gap:5px;overflow:hidden;padding:18px;border:1px dashed #88a996;border-radius:12px;background:#fff;color:#285642;text-align:center;cursor:pointer}
.report-file-select>span{font-size:1.7rem}
.report-file-select strong{color:#285642}
.report-file-select small{color:#718078}
.report-file-select input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.report-file-select--compact{min-height:78px}
.report-camera-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.report-camera-row small,.report-location-box span{color:#63776d;font-size:.82rem;line-height:1.45}
.report-photo-preview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.report-photo-preview:empty{display:none}
.report-photo-preview figure{position:relative;aspect-ratio:1;margin:0;overflow:hidden;border-radius:10px;background:#e7eee9}
.report-photo-preview img{display:block;width:100%;height:100%;object-fit:cover}
.report-photo-remove{position:absolute;top:5px;right:5px;display:grid;width:27px;height:27px;place-items:center;border:0;border-radius:50%;background:#162b22e8;color:#fff;font-size:1.2rem;cursor:pointer}
.report-location-box{display:grid;justify-items:start;gap:9px;padding:14px;border:1px solid #dce7e0;border-radius:13px;background:#f7faf8}
.report-location-box>a{color:#176344;font-size:.85rem;font-weight:800}
.report-form__submit{min-height:48px}
.report-form__status{min-height:1.3em;margin:0;color:#536d60;font-size:.88rem}
.report-detail-heading{align-items:center}
.report-detail-heading__badges{display:flex;gap:8px;align-items:center}
.report-detail-heading__badges .report-status,.report-detail-heading__badges .report-overdue{position:static}
.report-detail-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.8fr);align-items:start;gap:20px}
.report-panel__heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}
.report-panel__heading h2{margin:4px 0 0}
.report-panel__heading>span{color:#61776b;font-size:.84rem;font-weight:750}
.report-evidence-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:12px}
.report-evidence-grid figure{min-width:0;margin:0;overflow:hidden;border:1px solid #e1e9e4;border-radius:13px;background:#f7faf8}
.report-evidence-grid figure>a{display:block;aspect-ratio:4/3;background:#e9efeb}
.report-evidence-grid img{display:block;width:100%;height:100%;object-fit:cover}
.report-evidence-grid figcaption{display:grid;gap:5px;padding:11px}
.report-evidence-grid figcaption strong{color:#234534;font-size:.88rem}
.report-evidence-grid figcaption time,.report-evidence-grid figcaption span,.report-evidence-grid figcaption a{color:#62766b;font-size:.78rem;line-height:1.4;overflow-wrap:anywhere}
.report-evidence-grid figcaption a,.report-details dd a{color:#176344;font-weight:750}
.report-details dl{display:grid;grid-template-columns:minmax(90px,.55fr) 1fr;gap:11px 14px;margin:18px 0 22px}
.report-details dt{color:#6a7c72;font-size:.84rem;font-weight:750}
.report-details dd{display:grid;gap:5px;min-width:0;margin:0;color:#294639;font-size:.9rem;line-height:1.45;overflow-wrap:anywhere}
.report-map iframe{display:block;width:100%;height:340px;margin:14px 0;border:0;border-radius:14px}
.report-followup form{display:grid;justify-items:start;gap:12px;margin-bottom:22px}
.followup-timeline article{padding:14px 0 14px 16px;border-left:3px solid #9abdaa}
.followup-timeline article>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#264738}
.followup-timeline time{color:#728278;font-size:.8rem}
.followup-timeline p{margin:7px 0 0;color:#435e50;white-space:pre-wrap}
.report-management summary{display:grid;gap:5px;color:#234534;cursor:pointer}
.report-management summary small{color:#708076;font-size:.82rem;font-weight:500}
.report-management form{display:grid;gap:14px;margin-top:18px}
.report-management input[type=file]{height:auto;padding:10px}
.danger-confirmation summary{color:#a93535;font-weight:850;cursor:pointer}
.danger-confirmation form{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:12px}
.danger-confirmation small{grid-column:1/-1;color:#a93535}
.deadline-overdue{color:#a93535!important;font-weight:800}

html[data-theme=dark] .reports-page{color:#e0eae4}
html[data-theme=dark] .reports-header h1,html[data-theme=dark] .report-panel h2{color:#e5f1e9}
html[data-theme=dark] .reports-header p:not(.eyebrow),html[data-theme=dark] .reports-stats article span{color:#b7c8bd}
html[data-theme=dark] .reports-stats article,html[data-theme=dark] .reports-notices,html[data-theme=dark] .report-panel,html[data-theme=dark] .reports-filters,html[data-theme=dark] .report-item-card,html[data-theme=dark] .report-category-card{border-color:#3a5146;background:#1c2b24;color:#e0eae4}
html[data-theme=dark] .report-create-dialog,html[data-theme=dark] .report-form{background:#1c2b24;color:#e0eae4}
html[data-theme=dark] .report-form__heading h2,html[data-theme=dark] .report-create-card strong,html[data-theme=dark] .report-category-card__body strong,html[data-theme=dark] .report-item-card__body>strong,html[data-theme=dark] .report-details dd,html[data-theme=dark] .report-evidence-grid figcaption strong{color:#e0eee5}
html[data-theme=dark] .report-form__field,html[data-theme=dark] .reports-filters label,html[data-theme=dark] .report-photo-picker legend{color:#d7e4dc}
html[data-theme=dark] .report-form__field input,html[data-theme=dark] .report-form__field select,html[data-theme=dark] .report-form__field textarea,html[data-theme=dark] .reports-filters input,html[data-theme=dark] .reports-filters select,html[data-theme=dark] .report-management input,html[data-theme=dark] .report-management select,html[data-theme=dark] .report-management textarea{border-color:#4a6255;background:#132019;color:#e2eee6}
html[data-theme=dark] .report-photo-picker,html[data-theme=dark] .report-location-box{border-color:#3b5447;background:#17251e}
html[data-theme=dark] .report-file-select{border-color:#587965;background:#203329}
html[data-theme=dark] .report-file-select strong,html[data-theme=dark] .report-evidence-grid figcaption a,html[data-theme=dark] .report-details dd a{color:#9ed6b2}
html[data-theme=dark] .report-action--secondary{border-color:#4b6255;background:#22342a;color:#d7e8dc}
html[data-theme=dark] .report-evidence-grid figure{border-color:#344b3f;background:#1b2b23}
html[data-theme=dark] .report-details dt,html[data-theme=dark] .report-form__heading>p:last-child,html[data-theme=dark] .report-camera-row small,html[data-theme=dark] .report-location-box span,html[data-theme=dark] .report-photo-preview+small{color:#b6c8bc}

@media(max-width:900px){.reports-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.report-detail-layout{grid-template-columns:1fr}}
@media(max-width:620px){.reports-page{width:min(100% - 22px,1160px);margin-top:24px}.reports-header{align-items:flex-start;flex-direction:column}.reports-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.reports-stats article{min-height:65px;padding:13px}.reports-stats article span{font-size:.82rem}.reports-stats article strong{font-size:1.45rem}.reports-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:13px}.reports-filters label:last-of-type,.reports-filter-actions{grid-column:1/-1}.reports-filter-actions>*{flex:1}.reports-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.reports-page .report-create-card{min-height:205px;padding:12px}.report-create-card__icon{width:48px;height:48px}.report-category-card img,.report-item-card__photo img{height:145px}.report-category-card__body,.report-item-card__body{gap:6px;padding:11px}.report-category-card__body strong,.report-item-card__body>strong{font-size:.92rem}.report-category-card__body small,.report-item-card__body small,.report-item-card__body>span{font-size:.75rem}.report-create-dialog{max-height:94dvh;border-radius:17px}.report-form{gap:14px;padding:20px 16px}.report-form__two-columns{grid-template-columns:1fr}.report-photo-preview{grid-template-columns:repeat(3,minmax(0,1fr))}.report-evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-evidence-grid figcaption{padding:9px}.report-details dl{grid-template-columns:88px 1fr;gap:9px}.report-map iframe{height:260px}}
@media(max-width:380px){.reports-grid{grid-template-columns:1fr}.report-create-card__icon{width:42px;height:42px}.report-photo-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.report-action,.report-create-card,.report-category-card,.report-item-card{transition:none}}
