/* JheffFlow Finanças V8.3 — importação inteligente de faturas */
.statement-feature{
  margin:0 0 18px;padding:18px;border:1px solid rgba(109,40,217,.22);border-radius:22px;
  background:
    radial-gradient(circle at 92% 8%,rgba(168,85,247,.14),transparent 30%),
    linear-gradient(145deg,#0a1020,#11172a 55%,#15142a);
  color:#f8f7ff;box-shadow:0 22px 50px rgba(32,13,70,.18)
}
.statement-feature-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.statement-feature-head h3{margin:0;font-size:20px}.statement-feature-head p{margin:5px 0 0;color:#aeb7ca;font-size:13px;line-height:1.45}
.statement-feature-actions{display:flex;flex-wrap:wrap;gap:8px}
.statement-primary,.statement-secondary,.statement-danger{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px;border:0;border-radius:13px;font-weight:900;cursor:pointer
}
.statement-primary{color:#fff;background:linear-gradient(135deg,#6d28d9,#8b5cf6);box-shadow:0 11px 24px rgba(109,40,217,.28)}
.statement-secondary{color:#ece9ff;border:1px solid #34405b;background:#151d31}
.statement-danger{color:#fff;background:#be123c}
.statement-primary:disabled,.statement-secondary:disabled{opacity:.5;cursor:not-allowed}
.statement-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.statement-stat{padding:13px;border:1px solid #28344e;border-radius:15px;background:rgba(8,14,27,.76)}
.statement-stat span{display:block;color:#98a5bc;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.statement-stat strong{display:block;margin-top:7px;font-size:20px}
.statement-history{display:grid;gap:10px}
.statement-history-empty{padding:22px;text-align:center;border:1px dashed #33405a;border-radius:16px;color:#9aa6bc;background:rgba(7,12,24,.45)}
.statement-history-card{border:1px solid #2b3752;border-radius:17px;background:rgba(8,14,27,.82);overflow:hidden}
.statement-history-main{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(110px,.55fr)) auto;gap:12px;align-items:center;padding:14px}
.statement-history-title{min-width:0}.statement-history-title strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.statement-history-title small{display:block;margin-top:5px;color:#9faac0}
.statement-history-metric span{display:block;color:#8996ae;font-size:10px;text-transform:uppercase;font-weight:900}.statement-history-metric strong{display:block;margin-top:5px}
.statement-status{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}
.statement-status.pending{color:#fde68a;background:rgba(217,119,6,.18)}.statement-status.paid{color:#a7f3d0;background:rgba(5,150,105,.18)}
.statement-card-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.statement-mini{min-height:34px;padding:7px 10px;border:1px solid #34415d;border-radius:10px;color:#e9e7ff;background:#151e33;font-size:11px;font-weight:850;cursor:pointer}
.statement-details{display:none;padding:0 14px 14px;border-top:1px solid #28344e}.statement-details.open{display:block}
.statement-detail-row{display:grid;grid-template-columns:90px minmax(0,1fr) 110px;gap:10px;padding:9px 0;border-bottom:1px solid #253149;font-size:12px}.statement-detail-row:last-child{border-bottom:0}
.statement-detail-row span{color:#a9b3c7}.statement-detail-row strong:last-child{text-align:right}
.statement-note{margin-top:10px;padding:10px 12px;border-radius:12px;color:#cbd5e1;background:#10192a;font-size:12px;line-height:1.5}

.statement-modal-backdrop{position:fixed;inset:0;z-index:12000;display:none;align-items:center;justify-content:center;padding:16px;background:rgba(2,5,12,.78);backdrop-filter:blur(8px)}
.statement-modal-backdrop.open{display:flex}
.statement-modal{width:min(760px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:22px;border:1px solid #303c58;border-radius:24px;color:#f7f8ff;background:
  radial-gradient(circle at 95% 0,rgba(168,85,247,.14),transparent 28%),#0d1424;box-shadow:0 34px 90px rgba(0,0,0,.5)}
.statement-modal.wide{width:min(1080px,100%)}
.statement-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}
.statement-modal-head h2{margin:0;font-size:23px}.statement-modal-head p{margin:6px 0 0;color:#aab4c8;font-size:13px;line-height:1.5}
.statement-close{width:40px;height:40px;border:1px solid #34415d;border-radius:12px;color:#fff;background:#131d31;font-size:22px;cursor:pointer}
.statement-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.statement-full{grid-column:1/-1}
.statement-field{display:grid;gap:7px}.statement-field label{color:#aeb8ca;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.statement-input,.statement-select,.statement-textarea{width:100%;min-height:46px;padding:11px 13px;border:1px solid #34415c;border-radius:13px;outline:none;color:#f8fafc;background:#090f1d}
.statement-input:focus,.statement-select:focus,.statement-textarea:focus{border-color:#8b5cf6;box-shadow:0 0 0 4px rgba(139,92,246,.13)}
.statement-textarea{min-height:160px;resize:vertical;line-height:1.5}
.statement-source-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:6px;border:1px solid #303d58;border-radius:15px;background:#080e1a}
.statement-source-tab{min-height:42px;border:0;border-radius:10px;color:#9eabc1;background:transparent;font-weight:900;cursor:pointer}
.statement-source-tab.active{color:#fff;background:linear-gradient(135deg,#6d28d9,#8b5cf6)}
.statement-source-panel{display:none;margin-top:14px}.statement-source-panel.active{display:block}
.statement-dropzone{display:grid;place-items:center;min-height:155px;padding:18px;border:2px dashed #465473;border-radius:17px;text-align:center;color:#cbd4e4;background:rgba(8,14,26,.66);cursor:pointer}
.statement-dropzone:hover{border-color:#8b5cf6;background:rgba(109,40,217,.08)}
.statement-dropzone strong{display:block;margin-top:8px}.statement-dropzone small{display:block;margin-top:6px;color:#8996ad}
.statement-file-selected{display:none;margin-top:10px;padding:11px 13px;border:1px solid #34415d;border-radius:13px;background:#111a2c}.statement-file-selected.show{display:flex;align-items:center;justify-content:space-between;gap:10px}
.statement-file-selected span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.statement-switch-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px;border:1px solid #303d58;border-radius:14px;background:#0a1120}
.statement-switch{position:relative;width:50px;height:28px;flex:0 0 auto}.statement-switch input{opacity:0;width:0;height:0}.statement-slider{position:absolute;inset:0;border-radius:999px;background:#374151;cursor:pointer;transition:.2s}.statement-slider:before{content:"";position:absolute;width:20px;height:20px;left:4px;top:4px;border-radius:50%;background:#fff;transition:.2s}.statement-switch input:checked+.statement-slider{background:#7c3aed}.statement-switch input:checked+.statement-slider:before{transform:translateX(22px)}
.statement-message{display:none;margin-top:12px;padding:12px 13px;border-radius:12px;font-size:12px;line-height:1.5}.statement-message.show{display:block}.statement-message.info{color:#dbeafe;background:rgba(37,99,235,.14)}.statement-message.error{color:#fecdd3;background:rgba(225,29,72,.14)}.statement-message.success{color:#a7f3d0;background:rgba(5,150,105,.14)}
.statement-modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:18px}
.statement-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-bottom:14px}.statement-summary-card{padding:12px;border:1px solid #2e3a55;border-radius:14px;background:#0a1120}.statement-summary-card span{display:block;color:#8f9cb4;font-size:9px;font-weight:900;text-transform:uppercase}.statement-summary-card strong{display:block;margin-top:6px;font-size:14px;word-break:break-word}
.statement-review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.statement-review-toolbar p{margin:0;color:#9da9bd;font-size:12px}
.statement-items{display:grid;gap:8px}
.statement-item{display:grid;grid-template-columns:30px 118px minmax(180px,1.6fr) 125px 145px 84px 84px 42px;gap:7px;align-items:center;padding:9px;border:1px solid #2c3852;border-radius:13px;background:#090f1d}
.statement-item input,.statement-item select{width:100%;min-height:38px;padding:8px;border:1px solid #34415b;border-radius:9px;color:#f8fafc;background:#0f1829}
.statement-item-remove{width:38px;height:38px;border:0;border-radius:9px;color:#fecdd3;background:rgba(225,29,72,.15);font-size:18px;cursor:pointer}
.statement-check{width:20px!important;height:20px!important;accent-color:#8b5cf6}
.statement-items-head{display:grid;grid-template-columns:30px 118px minmax(180px,1.6fr) 125px 145px 84px 84px 42px;gap:7px;padding:0 9px 5px;color:#8794ab;font-size:9px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}
.statement-total-bar{display:flex;align-items:center;justify-content:flex-end;gap:18px;margin-top:13px;padding:13px;border:1px solid #34415d;border-radius:14px;background:#10192b}.statement-total-bar span{color:#a7b1c5}.statement-total-bar strong{font-size:20px}.statement-difference.ok{color:#6ee7b7}.statement-difference.warn{color:#fbbf24}
.statement-loading{display:none;align-items:center;gap:10px;margin-top:12px;color:#d8d8ff;font-size:13px}.statement-loading.show{display:flex}.statement-spinner{width:18px;height:18px;border:3px solid rgba(255,255,255,.2);border-top-color:#a78bfa;border-radius:50%;animation:statement-spin .8s linear infinite}@keyframes statement-spin{to{transform:rotate(360deg)}}

@media(max-width:900px){
  .statement-history-main{grid-template-columns:1fr 1fr}.statement-history-title{grid-column:1/-1}.statement-card-actions{grid-column:1/-1;justify-content:flex-start}
  .statement-summary{grid-template-columns:repeat(2,1fr)}
  .statement-items-head{display:none}.statement-item{grid-template-columns:28px 1fr 1fr}.statement-item .statement-desc{grid-column:2/-1}.statement-item .statement-category{grid-column:2/-1}.statement-item-remove{grid-column:3;justify-self:end}
}
@media(max-width:640px){
  .statement-feature{padding:15px}.statement-feature-head{align-items:stretch;flex-direction:column}.statement-feature-actions>*{flex:1}.statement-stats{grid-template-columns:1fr 1fr}.statement-form-grid{grid-template-columns:1fr}.statement-full{grid-column:auto}.statement-source-tabs{grid-template-columns:1fr}.statement-modal{padding:17px;border-radius:19px}.statement-summary{grid-template-columns:1fr 1fr}.statement-history-main{grid-template-columns:1fr}.statement-history-title,.statement-card-actions{grid-column:auto}.statement-detail-row{grid-template-columns:70px 1fr}.statement-detail-row strong:last-child{grid-column:2;text-align:left}.statement-modal-actions>*{flex:1}.statement-total-bar{align-items:flex-start;flex-direction:column;gap:5px}
}
