/* MCHILS FATOORA fiscal preparation — disabled production flow, refined modal */
.ft-overlay{position:fixed;inset:0;z-index:300;background:#030b14dd;backdrop-filter:blur(13px);display:grid;place-items:center;padding:11px;overflow:auto}
.ft-dialog{color:var(--ink,#f4f6f9);background:var(--card,#141f2c);border:1px solid var(--edge,#344252);width:min(1230px,100%);max-height:96vh;overflow:auto;border-radius:22px;box-shadow:0 25px 110px #0009;font-family:system-ui,"Segoe UI",Arial,sans-serif}
.ft-head{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:clamp(22px,3vw,40px);border-bottom:1px solid var(--edge);background:linear-gradient(110deg,color-mix(in srgb,var(--accent) 14%,var(--card)),var(--card))}
.ft-head small{color:var(--accent);font-size:10px;letter-spacing:.17em;font-weight:950}.ft-head h2{font-size:clamp(37px,5vw,62px);line-height:1;letter-spacing:-.08em;margin:11px 0 15px;font-weight:950}.ft-head h2 span{color:var(--accent)}.ft-head p{font-size:12px;color:var(--muted);line-height:1.6;margin:0}
.ft-head>button{border-radius:11px;border:1px solid var(--edge);background:var(--panel2);color:var(--ink);width:44px;height:44px;font-size:25px;flex:none;cursor:pointer}
.ft-content{padding:clamp(17px,3vw,35px)}
.ft-alert{border:1px solid #deb16e80;border-radius:11px;padding:19px;background:#db9e5a13;color:var(--ink);font-size:12px;line-height:1.65;margin-bottom:16px}
.ft-alert strong{color:#e3b279;font-size:13px;margin-right:8px}
.ft-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.ft-card{background:var(--panel2);border:1px solid var(--edge);border-radius:12px;min-height:166px;padding:20px;display:flex;flex-direction:column;gap:5px;min-width:0}
.ft-card-icon{font-size:26px;color:var(--accent);line-height:1;margin-bottom:13px}
.ft-card small{font-size:10px;color:var(--muted)}.ft-card strong{font-size:17px;letter-spacing:-.04em;line-height:1.1}.ft-card>span{font-size:10px;color:#e5b97d;font-weight:850;margin-top:auto}
.ft-sectionhead{margin:39px 0 18px;display:flex;justify-content:space-between;align-items:end;gap:17px}
.ft-sectionhead small{display:block;color:var(--accent);font-size:10px;font-weight:950;letter-spacing:.13em}.ft-sectionhead h3{font-size:clamp(25px,3.6vw,39px);line-height:1.08;letter-spacing:-.065em;margin:8px 0 0}.ft-sectionhead>span{font-size:11px;color:var(--muted)}
.ft-generator{display:grid;grid-template-columns:1.13fr .87fr;gap:13px}
.ft-form,.ft-form-aside{padding:24px;border:1px solid var(--edge);border-radius:14px;background:var(--panel2)}
.ft-form{display:flex;flex-direction:column;gap:11px}.ft-form label{font-size:11px;color:var(--muted);font-weight:850}.ft-form select{width:100%;padding:13px;border-radius:9px;background:var(--card);color:var(--ink);border:1px solid var(--edge);font-size:12px;min-width:0}
.ft-form small{font-size:10px;color:var(--muted);line-height:1.7}.ft-mainbtn{background:var(--accent);color:var(--bg,#09131f);font-size:12px;font-weight:950;border:none;padding:15px 19px;border-radius:10px;text-align:center;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:47px;cursor:pointer}
.ft-mainbtn:disabled{cursor:not-allowed;opacity:.5}
.ft-form-aside>b{font-size:12px;display:block;margin-bottom:15px;color:var(--accent)}
.ft-form-aside>div{padding:12px 0;border-top:1px solid var(--edge)}.ft-form-aside strong{font-size:12px}.ft-form-aside p{color:var(--muted);font-size:11px;line-height:1.5;margin:5px 0}
.ft-placeholder,.ft-error{padding:30px;border:1px solid var(--edge);background:var(--panel2);border-radius:12px;color:var(--muted);font-size:12px;line-height:1.7}
.ft-error button{padding:8px 13px;border:1px solid var(--accent);color:var(--accent);background:transparent;border-radius:8px}
.ft-draft{border:1px solid var(--edge);border-radius:14px;background:var(--panel2);padding:24px}
.ft-drafthead{display:flex;justify-content:space-between;align-items:start;gap:12px}.ft-drafthead small{font-size:10px;color:var(--accent);font-weight:950;letter-spacing:.13em}.ft-drafthead h4{font-size:clamp(18px,2.6vw,29px);letter-spacing:-.06em;margin:8px 0}.ft-drafthead p{font-size:11px;color:var(--muted)}.ft-drafthead>span{color:#e8c385;background:#e9bd6e19;border:1px solid #e9bd6e6d;border-radius:30px;padding:8px 11px;font-size:10px;font-weight:950}
.ft-gridinfo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:18px 0}
.ft-gridinfo>div{padding:14px;border:1px solid var(--edge);background:var(--card);border-radius:10px;min-width:0}
.ft-gridinfo small{font-size:10px;color:var(--muted);display:block;margin-bottom:7px}.ft-gridinfo b{font-size:11px;overflow-wrap:anywhere}
.ft-note{font-size:11px;color:var(--muted);line-height:1.7}.ft-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.ft-actions button,.ft-table button{background:var(--card);border:1px solid var(--edge);border-radius:9px;color:var(--ink);padding:12px 15px;font-size:11px;font-weight:850;cursor:pointer}.ft-actions button:hover,.ft-table button:hover{border-color:var(--accent)}
.ft-xml{margin-top:21px;border:1px solid var(--edge);border-radius:10px;padding:14px}.ft-xml summary{font-size:11px;font-weight:850;cursor:pointer}
.ft-xml pre{font:11px/1.7 ui-monospace,Menlo,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:#08121e;color:#e0eaee;padding:15px;margin-bottom:0;border-radius:9px;max-height:240px;overflow:auto}
.ft-tablewrap{border:1px solid var(--edge);border-radius:12px;overflow-x:auto}
.ft-table{border-collapse:collapse;width:100%;min-width:670px;text-align:left}.ft-table th{background:var(--panel2);padding:15px;font-size:10px;text-transform:uppercase;color:var(--muted);letter-spacing:.09em}
.ft-table td{padding:12px 15px;border-top:1px solid var(--edge);font-size:11px}.ft-table button{padding:10px 12px}.ft-empty{color:var(--muted);text-align:center;padding:28px!important}
.ft-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ft-stage{background:var(--panel2);border:1px solid var(--edge);border-radius:12px;padding:21px;display:flex;align-items:start;gap:15px}
.ft-stage>b{background:var(--card);display:grid;place-items:center;border:1px solid var(--edge);width:36px;height:36px;flex:none;border-radius:9px;color:var(--accent);font-size:12px}
.ft-stage>div{flex:1}.ft-stage strong{font-size:12px}.ft-stage p{font-size:11px;color:var(--muted);line-height:1.6;margin:6px 0 0}
.ft-lock{font-size:9px;font-weight:900;color:#e5b982;border:1px solid #e5b98261;border-radius:50px;padding:5px 8px;white-space:nowrap}
.ft-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--edge);margin-top:36px;padding-top:20px}.ft-bottom strong{font-size:12px}.ft-bottom p{font-size:11px;color:var(--muted)}.ft-bottom a{color:var(--accent);font-size:11px;font-weight:850}
.ft-toast{position:fixed;z-index:320;bottom:20px;left:50%;transform:translateX(-50%);border:1px solid #fff4;background:#14243b;color:#f6f7f9;border-radius:11px;padding:16px 21px;max-width:95vw;font-size:12px;box-shadow:0 18px 60px #0009}
@media(max-width:950px){.ft-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.ft-generator{grid-template-columns:1fr}.ft-stages{grid-template-columns:1fr}}
@media(max-width:650px){.ft-overlay{padding:5px}.ft-dialog{max-height:97vh}.ft-head{padding:19px}.ft-head h2{font-size:36px}.ft-head>button{width:38px;height:38px}.ft-content{padding:12px}.ft-card{min-height:144px;padding:14px}.ft-sectionhead{align-items:start;flex-direction:column;margin-top:30px}.ft-form,.ft-form-aside,.ft-draft{padding:15px}.ft-gridinfo{grid-template-columns:1fr}.ft-stage{padding:13px;gap:9px}.ft-lock{padding:4px 6px}.ft-bottom{align-items:start;flex-direction:column}.ft-actions{flex-direction:column}.ft-actions>*{width:100%}}
