/*
Theme Name: Tarefas
Theme URI: https://example.com
Author: Template
Description: Tema frontend genérico — layout Canvas (SemiColonWeb / ThemeForest).
Version: 1.1.0
Text Domain: trf-theme
*/

.organiza-form .panel-title{font-weight:600}
.fonte_preta{color:#111}
.trf-dashboard__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem;margin-top:1.5rem}
.trf-dashboard-card{display:flex;gap:1.1rem;align-items:center;height:100%;text-decoration:none;color:inherit;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:1.2rem 1.3rem;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.trf-dashboard-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.1);border-color:rgba(0,0,0,.22);color:inherit;text-decoration:none}
.trf-dashboard-card__icon{flex:0 0 auto;width:3.75rem;height:3.75rem;border-radius:1rem;display:inline-flex;align-items:center;justify-content:center;font-size:1.55rem;line-height:1}
.trf-dashboard-card__icon--usuarios{background:#f3e5f5;color:#7b1fa2}
.trf-dashboard-card__icon--papeis{background:#efebe9;color:#5d4037}
.trf-dashboard-card__icon--mensagens{background:#e0f7fa;color:#00838f}
.trf-dashboard-card__icon--perfil{background:#eceff1;color:#455a64}
.trf-dashboard-card__icon--default{background:#f5f5f5;color:#616161}
.trf-dashboard-card__body{min-width:0}
.trf-dashboard-card h3{margin:0 0 .3rem;font-size:1.08rem;line-height:1.3}
.trf-dashboard-card p{margin:0;color:#666;font-size:.9rem;line-height:1.4}
.notification.is-success{background:#ecfdf3;border:1px solid #abefc6;color:#067647;padding:1rem;border-radius:6px}
.notification.is-danger{background:#fef3f2;border:1px solid #fecdca;color:#b42318;padding:1rem;border-radius:6px}
.notification.is-warning{background:#fffaeb;border:1px solid #fedf89;color:#93370d;padding:1rem;border-radius:6px}

#footer.dark .trf-footer-main{padding-top:3rem;padding-bottom:1.5rem}
#footer.dark .trf-footer-brand__logo{display:inline-block;margin-bottom:1rem}
#footer.dark .trf-footer-brand__logo img{max-height:150px;width:auto}
#footer.dark .trf-footer-brand__name{font-size:1rem;font-weight:600;margin:0 0 .5rem;color:rgba(255,255,255,.92)}
#footer.dark .trf-footer-brand__hint{margin:0;font-size:.9rem;color:rgba(255,255,255,.55);line-height:1.5}
#footer.dark .trf-footer-sitemap__title{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--cnvs-themecolor,#1f4b99);margin:0 0 1rem;font-weight:700}
#footer.dark .trf-footer-sitemap__list{list-style:none;margin:0;padding:0}
#footer.dark .trf-footer-sitemap__list li{margin:0 0 .55rem}
#footer.dark .trf-footer-sitemap__list a{color:rgba(255,255,255,.78);text-decoration:none;font-size:.95rem}
#copyrights .trf-footer-copy,#copyrights .trf-footer-credit{color:rgba(255,255,255,.55);font-size:.85rem}
#copyrights .trf-footer-credit a{color:rgba(255,255,255,.75)}

/* Pendências / stats no dashboard */
.trf-stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem}
.trf-stat-card{display:flex;flex-direction:column;gap:.35rem;min-width:0;padding:1.15rem 1.25rem;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:8px;text-decoration:none;color:inherit;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
a.trf-stat-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.08);border-color:rgba(31,75,153,.35);color:inherit}
.trf-stat-card__value{font-size:1.85rem;font-weight:700;line-height:1;color:var(--cnvs-themecolor,#1f4b99)}
.trf-stat-card__value--longo{font-size:1.05rem;line-height:1.2;overflow-wrap:anywhere}
.trf-stat-card__label{font-size:.85rem;color:#666;line-height:1.35}
.trf-stat-card--alert{border-color:#fecdca;background:#fff8f6}
.trf-stat-card--alert .trf-stat-card__value{color:#b42318}

/* Toolbar CRUD */
.trf-crud-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 1rem;margin-bottom:1rem}
.trf-muted{color:#666}
.trf-muted.small{font-size:.875rem}

/* Painéis recolhíveis */
.trf-panel{border:1px solid rgba(0,0,0,.08);border-radius:8px;overflow:hidden;background:#fff}
.trf-panel__header{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:.75rem 1rem;background:#f7f7f7;border-bottom:1px solid rgba(0,0,0,.06)}
.trf-panel__title{margin:0;font-size:1rem;font-weight:700;color:#222}
.trf-panel__meta{font-size:.8rem;color:#777;font-weight:600}
details.trf-panel>summary.trf-panel__header{cursor:pointer;list-style:none}
details.trf-panel>summary.trf-panel__header::-webkit-details-marker{display:none}
details.trf-panel:not([open])>summary.trf-panel__header{border-bottom:0}
.trf-panel__body{padding:1rem}

/* Modal */
body.trf-modal-open{overflow:hidden}
.trf-modal{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;padding:1.25rem}
.trf-modal.is-open,.trf-modal:not([hidden]){display:flex}
.trf-modal[hidden]{display:none!important}
.trf-modal__backdrop{position:absolute;inset:0;background:rgba(16,24,40,.45)}
.trf-modal__dialog{position:relative;z-index:1;width:100%;max-width:32rem;max-height:min(90vh,40rem);overflow:auto;background:#fff;border-radius:10px;box-shadow:0 20px 48px rgba(0,0,0,.22);padding:1.25rem 1.35rem}
.trf-modal--lg .trf-modal__dialog{max-width:44rem;max-height:min(92vh,48rem)}
.trf-modal__header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1rem}
.trf-modal__header h3,.trf-modal__header h4{font-size:1.15rem;font-weight:700;margin:0}
.trf-modal__body{min-width:0}
