
:root{
  --mafo-bg:#f5f7fb;--mafo-card:#ffffff;--mafo-text:#172033;--mafo-muted:#667085;--mafo-line:#e4eaf3;
  --mafo-blue:#163b63;--mafo-blue2:#2563eb;--mafo-green:#16a34a;--mafo-orange:#f59e0b;--mafo-red:#dc2626;
  --mafo-radius:16px;--mafo-shadow:0 12px 30px rgba(15,23,42,.08);--mafo-font:"Inter","Segoe UI",Roboto,Arial,sans-serif;
}
.mafo-wrap{font-family:var(--mafo-font);max-width:1440px;margin:18px auto;padding:0 12px;color:var(--mafo-text);font-size:14px;line-height:1.45;box-sizing:border-box}.mafo-wrap *{box-sizing:border-box}.mafo-head{display:flex;justify-content:space-between;align-items:center;gap:18px;background:linear-gradient(135deg,#0f2f54,#1d5fb8);color:#fff;border-radius:22px;padding:22px 26px;margin-bottom:16px;box-shadow:var(--mafo-shadow)}.mafo-eyebrow{display:inline-flex;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;margin-bottom:8px}.mafo-head h1{margin:0 0 6px;font-size:24px;line-height:1.15;font-weight:800;letter-spacing:-.02em}.mafo-head p{margin:0;color:rgba(255,255,255,.86);font-size:14px}.mafo-head-badge{white-space:nowrap;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);padding:10px 14px;border-radius:14px;font-weight:800}.mafo-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px}.mafo-tabs a{padding:10px 14px;border:1px solid var(--mafo-line);border-radius:999px;text-decoration:none;background:#fff;color:#173a66;font-weight:700;box-shadow:0 4px 12px rgba(15,23,42,.04);transition:.15s}.mafo-tabs a:hover{transform:translateY(-1px);border-color:#b8c7da}.mafo-tabs a.active{background:#123b67;color:#fff;border-color:#123b67}.mafo-card{background:var(--mafo-card);border:1px solid var(--mafo-line);border-radius:22px;padding:20px;box-shadow:var(--mafo-shadow)}.mafo-alert{background:#ecfdf3;border:1px solid #bbf7d0;color:#166534;padding:12px 15px;border-radius:14px;margin:10px 0;font-weight:700}.mafo-section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.mafo-section-head h2{font-size:20px;line-height:1.2;margin:0 0 4px;font-weight:800;color:#0f2238}.mafo-section-head h3{margin:0;font-size:16px}.mafo-section-head p{margin:0;color:var(--mafo-muted);font-size:13px}.mafo-stats{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px;margin-bottom:18px}.mafo-stats div{background:linear-gradient(180deg,#f8fbff,#eef5ff);border:1px solid #dce9fb;border-radius:18px;padding:18px}.mafo-stats b{display:block;font-size:30px;line-height:1;color:#123b67}.mafo-stats span{color:#65758a;font-weight:700;font-size:13px}.mafo-flow{background:#f8fafc;border:1px solid var(--mafo-line);border-radius:18px;padding:14px 18px 14px 34px}.mafo-flow li{margin:8px 0;color:#344054}.mafo-grid-form{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:12px;align-items:end}.mafo-panel-soft,.mafo-upload-panel,.mafo-import-box{background:#f8fafc;border:1px solid var(--mafo-line);border-radius:18px;padding:16px;margin-bottom:16px}.mafo-grid-form label,.mafo-form-panel label{display:flex;flex-direction:column;font-weight:750;color:#34445a;gap:6px;font-size:13px}.mafo-grid-form input,.mafo-grid-form select,.mafo-form-panel input,.mafo-form-panel select,.mafo-filter input,.mafo-filter select,.mafo-inline-form input{border:1px solid #cfd9e8;border-radius:12px;padding:11px 12px;background:#fff;color:#172033;font:inherit;min-height:42px}.mafo-grid-form input:focus,.mafo-grid-form select:focus,.mafo-form-panel input:focus,.mafo-form-panel select:focus{outline:2px solid rgba(37,99,235,.16);border-color:#7ca8f8}.mafo-file-field span{font-weight:500;color:var(--mafo-muted);font-size:12px}.mafo-wide-btn{min-height:44px;justify-content:center}.mafo-btn{border:0;background:#eef3f8;color:#173a66;border-radius:12px;padding:10px 14px;font-weight:800;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;min-height:40px;transition:.15s;font-size:13px}.mafo-btn:hover{filter:brightness(.98);transform:translateY(-1px)}.mafo-btn.primary{background:#16a34a;color:#fff}.mafo-btn.warn{background:#f59e0b;color:#fff}.mafo-btn.small{padding:7px 10px;font-size:12px;min-height:32px}.mafo-import-box{display:flex;align-items:center;justify-content:space-between;gap:12px}.mafo-import-box h3{margin:0 0 4px}.mafo-import-box p{margin:0;color:var(--mafo-muted);font-size:13px}.mafo-inline-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mafo-table-wrap{overflow:auto;margin-top:14px;border-radius:16px;border:1px solid var(--mafo-line);background:#fff}.mafo-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff}.mafo-table th{background:#f3f6fb;text-align:left;padding:12px;white-space:nowrap;font-size:12px;text-transform:uppercase;letter-spacing:.02em;color:#344054;border-bottom:1px solid var(--mafo-line)}.mafo-table td{padding:11px 12px;border-top:1px solid #eef2f7;vertical-align:middle;color:#1f2937}.mafo-table tr:nth-child(even){background:#fafcff}.mafo-badge,.mafo-conf{border-radius:999px;padding:5px 9px;font-weight:800;font-size:12px;display:inline-block;white-space:nowrap}.mafo-badge{background:#eef3fa;color:#223b57}.st-onaylandi{background:#dcfce7;color:#14733d}.st-iptal,.st-hata{background:#ffe4e6;color:#b42336}.st-ocr_bekliyor,.st-kontrol_bekliyor,.st-ai_kontrol{background:#fff7d6;color:#916400}.st-luca_kuyrukta{background:#e4edff;color:#2448a8}.st-duplicate{background:#fef3c7;color:#92400e}.mafo-conf.green{background:#dcfce7;color:#14733d}.mafo-conf.yellow{background:#fff7d6;color:#916400}.mafo-conf.red{background:#ffe4e6;color:#b42336}.mafo-filter{display:flex;gap:8px;align-items:end;flex-wrap:wrap;background:#f8fafc;border:1px solid var(--mafo-line);border-radius:16px;padding:12px}.mafo-detail{display:grid;grid-template-columns:minmax(320px,1fr) minmax(360px,520px);gap:18px}.mafo-preview{background:#111827;border-radius:18px;padding:12px;min-height:480px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}.mafo-preview img{max-width:100%;height:auto;display:block;margin:auto;border-radius:12px}.mafo-preview iframe{width:100%;height:650px;background:#fff;border:0;border-radius:12px}.mafo-preview a{color:#fff}.mafo-form-panel{display:flex;flex-direction:column;gap:12px;background:#f8fafc;border:1px solid var(--mafo-line);border-radius:18px;padding:14px}.mafo-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mafo-three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.mafo-line{display:grid;grid-template-columns:80px 1fr 1fr 1fr;gap:8px;margin-bottom:8px}.mafo-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.mafo-login-note{padding:20px;background:#fff7d6;border:1px solid #f6d36a;border-radius:14px;margin:20px auto;max-width:760px;font-family:var(--mafo-font)}.mafo-form-panel pre{white-space:pre-wrap;background:#fff;padding:12px;border:1px solid var(--mafo-line);border-radius:12px;max-height:240px;overflow:auto;font-size:12px}hr{border:0;border-top:1px solid var(--mafo-line);margin:18px 0}@media(max-width:900px){.mafo-head,.mafo-section-head,.mafo-import-box{align-items:flex-start;flex-direction:column}.mafo-stats,.mafo-grid-form,.mafo-detail{grid-template-columns:1fr}.mafo-three,.mafo-two,.mafo-line{grid-template-columns:1fr}.mafo-preview{min-height:auto}.mafo-card{padding:14px}.mafo-head h1{font-size:22px}}

.mafo-info-box{background:#f8fafc;border:1px solid #dbe4f0;border-radius:16px;padding:14px 16px;margin:12px 0;color:#334155;font-size:14px;line-height:1.55}
.mafo-actions form{display:inline-block;margin:4px 6px 4px 0}
.mafo-btn.warn{background:#f59e0b;color:#fff;border-color:#f59e0b}
.mafo-btn.warn:hover{background:#d97706;border-color:#d97706}
.mafo-method{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 10px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:700}

/* v1.3 gelen evrak müşteri bazlı liste ve toplu işlem görünümü */
.mafo-section-head.compact{margin-top:16px;padding-top:6px}.mafo-customer-list{display:grid;gap:12px;margin-top:14px}.mafo-customer-card{display:grid;grid-template-columns:minmax(220px,1fr) 100px minmax(260px,auto);gap:14px;align-items:center;text-decoration:none;background:#fff;border:1px solid var(--mafo-line);border-radius:18px;padding:16px 18px;box-shadow:0 10px 25px rgba(15,23,42,.04);transition:.16s ease}.mafo-customer-card:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(15,23,42,.08);border-color:#bfdbfe}.mafo-customer-card strong{display:block;color:#0f172a;font-size:15px;letter-spacing:.01em}.mafo-customer-card span{color:#64748b;font-size:12px}.mafo-customer-metrics{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:9px}.mafo-customer-metrics b{font-size:22px;color:#1d4ed8;line-height:1}.mafo-customer-metrics small{font-size:11px;color:#64748b;margin-top:4px}.mafo-mini-badges{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.mafo-mini-badges span{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe;border-radius:999px;padding:5px 9px;font-weight:700}.mafo-empty{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:22px;color:#64748b;text-align:center}.mafo-bulkbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px}.mafo-bulkbar select{min-width:240px}.mafo-check{display:flex;align-items:center;gap:7px;font-weight:700;color:#334155;margin:0}.mafo-check input{width:auto}.mafo-doc-link{display:flex;align-items:center;gap:10px;text-decoration:none;color:#0f172a}.mafo-doc-link b{display:block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mafo-doc-link small{display:block;color:#64748b;font-size:11px;margin-top:2px}.mafo-thumb{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;background:#f1f5f9;border:1px solid #e2e8f0;flex:0 0 42px}.mafo-thumb img{width:100%;height:100%;object-fit:cover}.mafo-thumb.file{font-weight:800;font-size:11px;color:#334155;background:#e0f2fe;border-color:#bae6fd}.mafo-btn.danger{background:#ef4444;color:#fff;border-color:#ef4444}.mafo-btn.danger:hover{background:#dc2626;border-color:#dc2626}.mafo-btn.ghost{background:#fff;color:#334155}@media(max-width:900px){.mafo-customer-card{grid-template-columns:1fr}.mafo-mini-badges{justify-content:flex-start}.mafo-bulkbar{align-items:stretch;flex-direction:column}.mafo-bulkbar select{min-width:100%}.mafo-doc-link b{max-width:160px}}

/* v1.4 modern görünüm / mobil uyum / sıkışmayan detay ekranı */
.mafo-wrap{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif!important; font-size:14px; line-height:1.5; max-width:1320px}
.mafo-head{padding:22px 24px; border-radius:22px; gap:16px}
.mafo-head h1{font-size:26px!important; line-height:1.15!important; margin:4px 0 6px!important; letter-spacing:-.02em}
.mafo-head p{font-size:14px!important; max-width:780px}
.mafo-card{padding:20px; border-radius:22px}
.mafo-section-head{gap:14px; margin:0 0 16px; align-items:flex-start}
.mafo-section-head h2{font-size:20px!important; line-height:1.25!important; margin:0 0 4px!important; letter-spacing:-.01em}
.mafo-section-head h3{font-size:17px!important; line-height:1.25!important; margin:0 0 4px!important}
.mafo-section-head p, .mafo-info-box, .mafo-flow li{font-size:13px!important; line-height:1.55}
.mafo-tabs{gap:8px; margin:14px 0 18px}
.mafo-tabs a{font-size:13px!important; padding:10px 13px; border-radius:999px; min-height:auto}
.mafo-grid-form{grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); align-items:end}
.mafo-grid-form label,.mafo-form-panel label{font-size:12.5px!important; font-weight:750; color:#344054}
.mafo-grid-form input,.mafo-grid-form select,.mafo-form-panel input,.mafo-form-panel select,.mafo-filter input,.mafo-filter select,.mafo-inline-form input,.mafo-bulkbar select{font-size:13px!important; min-height:40px; border-radius:11px; padding:9px 11px}
.mafo-btn{font-size:12.5px!important; border-radius:11px; min-height:38px; padding:9px 12px; white-space:nowrap}
.mafo-table th{font-size:11.5px!important; padding:10px 11px}
.mafo-table td{font-size:13px!important; padding:9px 11px}
.mafo-detail-top{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin:0 0 14px; padding-bottom:12px; border-bottom:1px solid var(--mafo-line)}
.mafo-detail-top h2{font-size:20px!important; margin:0 0 2px!important; color:#0f172a}
.mafo-detail-top p{margin:0; color:#64748b; font-size:12.5px; word-break:break-word}
.mafo-detail-nav{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.mafo-detail{grid-template-columns:minmax(340px,1fr) minmax(380px,500px); align-items:start}
.mafo-preview{min-height:360px; max-height:74vh; overflow:auto; position:sticky; top:16px; padding:10px; border-radius:18px}
.mafo-preview iframe{height:70vh; min-height:420px}
.mafo-form-panel{gap:10px; padding:14px; border-radius:18px}
.mafo-form-panel h3{font-size:15px; margin:8px 0 2px}
.mafo-three{grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px}
.mafo-two{grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px}
.mafo-line{grid-template-columns:70px minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap:7px; align-items:center}
.mafo-line-actions{display:flex; gap:8px; flex-wrap:wrap; margin:6px 0 10px}
.mafo-actions{gap:7px; margin-top:12px; padding-top:10px; border-top:1px dashed #d9e4f2}
.mafo-actions form{margin:0}
.mafo-export-form{margin-bottom:12px}
.mafo-export-actions{background:#f8fafc;border:1px solid var(--mafo-line);border-radius:16px;padding:12px;margin-bottom:14px}
.mafo-customer-card{border-radius:18px; padding:14px 16px; grid-template-columns:minmax(220px,1fr) 92px minmax(230px,auto)}
.mafo-doc-link b{max-width:320px}
.mafo-alert{font-size:13px!important; border-radius:14px; padding:11px 14px}
@media(max-width:1100px){.mafo-detail{grid-template-columns:1fr}.mafo-preview{position:relative;top:auto;max-height:none}.mafo-preview iframe{height:520px}.mafo-detail-nav{justify-content:flex-start}}
@media(max-width:720px){.mafo-wrap{padding:10px}.mafo-card{padding:14px}.mafo-head{padding:18px}.mafo-head h1{font-size:22px!important}.mafo-tabs{overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px}.mafo-tabs a{flex:0 0 auto}.mafo-three,.mafo-two,.mafo-line{grid-template-columns:1fr}.mafo-detail-top{flex-direction:column}.mafo-detail-nav{width:100%}.mafo-detail-nav .mafo-btn{flex:1 1 auto}.mafo-bulkbar{gap:8px}.mafo-table-wrap{border-radius:14px}.mafo-table th,.mafo-table td{font-size:12px!important;padding:8px}.mafo-doc-link b{max-width:160px}.mafo-stats{grid-template-columns:1fr 1fr}.mafo-stats b{font-size:24px}.mafo-preview iframe{height:440px}}


/* v1.5 aynı sayfada kalma, yükleme çubuğu, tablo sıkışma düzeltmeleri */
.mafo-upload-progress{grid-column:1/-1;background:#f8fafc;border:1px solid #dbe4f0;border-radius:14px;padding:12px;margin-top:4px}.mafo-upload-bar{height:12px;background:#e5edf7;border-radius:999px;overflow:hidden}.mafo-upload-bar span{display:block;height:100%;width:0;background:linear-gradient(90deg,#16a34a,#2563eb);transition:width .2s ease}.mafo-upload-progress small{display:block;margin-top:7px;color:#475569;font-weight:700}.mafo-upload-panel.is-uploading{opacity:.88}.mafo-upload-panel.is-uploading button{pointer-events:none;opacity:.7}.mafo-doc-table{table-layout:fixed}.mafo-doc-table th:nth-child(1){width:42px}.mafo-doc-table th:nth-child(2){width:260px}.mafo-doc-table th:nth-child(3),.mafo-doc-table th:nth-child(4){width:78px}.mafo-doc-table th:nth-child(5){width:105px}.mafo-doc-table th:nth-child(6){width:180px}.mafo-doc-table th:nth-child(7){width:160px}.mafo-doc-table th:nth-child(8){width:105px}.mafo-doc-table th:nth-child(9){width:95px}.mafo-doc-table th:nth-child(10){width:125px}.mafo-doc-table th:nth-child(11){width:76px}.mafo-doc-link{min-width:0}.mafo-doc-link span{min-width:0;display:block}.mafo-doc-link b{max-width:180px}.mafo-seller-cell{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mafo-file-cell{max-width:260px}.mafo-missing-list{display:flex;gap:5px;flex-wrap:wrap}.mafo-missing-list span{display:inline-flex;background:#fff7d6;border:1px solid #fde68a;color:#92400e;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:800;white-space:nowrap}.mafo-ok-mini{display:inline-flex;background:#dcfce7;border:1px solid #bbf7d0;color:#166534;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800}.mafo-missing-box{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:12px 14px;margin-bottom:14px}.mafo-calc-box{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;align-items:end;background:#fff;border:1px solid #dbe4f0;border-radius:16px;padding:12px;margin:8px 0 12px}.mafo-calc-box label{display:flex;flex-direction:column;gap:6px;font-weight:750;color:#34445a;font-size:13px}.mafo-calc-box select,.mafo-calc-box input{border:1px solid #cfd9e8;border-radius:12px;padding:10px 12px;min-height:40px;background:#fff}.mafo-alert{position:sticky;top:10px;z-index:20;box-shadow:0 10px 22px rgba(22,101,52,.08)}@media(max-width:900px){.mafo-doc-table{table-layout:auto;min-width:980px}.mafo-calc-box{grid-template-columns:1fr}.mafo-doc-link b{max-width:140px}}


/* v1.6 OCR/AI canlı bekleme kutusu */
.mafo-live-wait{display:flex;gap:12px;align-items:flex-start;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;border-radius:16px;padding:13px 15px;margin:0 0 14px 0;box-shadow:0 8px 18px rgba(37,99,235,.08)}
.mafo-live-wait b{white-space:nowrap}.mafo-live-wait span{font-size:13px;line-height:1.45;color:#334155}
@media(max-width:700px){.mafo-live-wait{display:block}.mafo-live-wait b{display:block;margin-bottom:4px;white-space:normal}}


/* v1.7 shortcode blank page / theme reset */
body.mafo-shortcode-mode{overflow:hidden!important;background:#f4f7fb!important;}
#mafo-shortcode-fullscreen.mafo-shortcode-fullscreen{position:fixed;left:0;right:0;top:var(--mafo-adminbar-offset,0px);bottom:0;z-index:2147483000;background:#f4f7fb;overflow:auto;-webkit-overflow-scrolling:touch;font-family:Inter,Arial,"Helvetica Neue",sans-serif;color:#172033;}
#mafo-shortcode-fullscreen *{box-sizing:border-box;}
#mafo-shortcode-fullscreen .mafo-wrap{max-width:1500px;margin:0 auto;padding:18px;min-height:100%;}
#mafo-shortcode-fullscreen a{text-decoration:none;}
.mafo-wrap-shortcode{background:transparent!important;}
.mafo-sticky-bulk{position:sticky;top:10px;z-index:25;background:#ffffff;border:1px solid #dbe4f0;box-shadow:0 10px 25px rgba(15,23,42,.08);}
.mafo-export-table th:nth-child(1){width:42px}.mafo-export-table th:nth-child(2){width:210px}.mafo-export-table th:nth-child(3){width:280px}.mafo-export-table th:nth-child(4){width:105px}.mafo-export-table th:nth-child(5){width:190px}.mafo-export-table th:nth-child(6){width:170px}.mafo-export-table th:nth-child(7),.mafo-export-table th:nth-child(8),.mafo-export-table th:nth-child(9){width:100px}.mafo-export-table th:nth-child(10){width:120px}
.mafo-export-table td small{display:block;color:#64748b;font-size:11px;margin-top:3px}
.mafo-shortcode-fullscreen .mafo-table-wrap{max-width:100%;overflow:auto;border-radius:18px;}
.mafo-shortcode-fullscreen .mafo-card{border-radius:22px;box-shadow:0 18px 60px rgba(15,23,42,.08)}
.mafo-shortcode-fullscreen .mafo-head h1{font-size:clamp(24px,3vw,34px);line-height:1.08;margin:4px 0 6px}.mafo-shortcode-fullscreen .mafo-head p{font-size:14px;margin:0;color:#5b6b82}.mafo-shortcode-fullscreen .mafo-tabs{overflow-x:auto;white-space:nowrap;padding-bottom:4px}.mafo-shortcode-fullscreen .mafo-tabs a{display:inline-flex;}
.mafo-excel-select-form .mafo-file-cell{max-width:280px;}
.mafo-excel-select-form .mafo-doc-link b{max-width:230px;}
@media(max-width:900px){#mafo-shortcode-fullscreen .mafo-wrap{padding:10px}.mafo-sticky-bulk{top:6px}.mafo-export-table{min-width:1050px}.mafo-shortcode-fullscreen .mafo-head{display:block}.mafo-shortcode-fullscreen .mafo-head-badge{margin-top:10px;display:inline-flex}.mafo-shortcode-fullscreen .mafo-card{padding:12px;border-radius:16px}}


/* v1.8 shortcode hard fullscreen reset: theme/adminbar completely hidden on shortcode page */
html.mafo-only-screen, html.mafo-only-screen body{margin:0!important;padding:0!important;width:100%!important;min-height:100%!important;overflow:hidden!important;background:#f4f7fb!important;}
html.mafo-only-screen body > *:not(#mafo-shortcode-fullscreen){visibility:hidden!important;pointer-events:none!important;}
html.mafo-only-screen #wpadminbar{display:none!important;visibility:hidden!important;height:0!important;pointer-events:none!important;}
html.mafo-only-screen body.admin-bar{margin-top:0!important;padding-top:0!important;}
#mafo-shortcode-fullscreen.mafo-shortcode-fullscreen{position:fixed!important;left:0!important;right:0!important;top:0!important;bottom:0!important;width:100vw!important;height:100vh!important;z-index:2147483647!important;background:#f4f7fb!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;visibility:visible!important;pointer-events:auto!important;}
#mafo-shortcode-fullscreen.mafo-shortcode-fullscreen *{visibility:visible!important;box-sizing:border-box;}
#mafo-shortcode-fullscreen .mafo-wrap{max-width:1500px!important;margin:0 auto!important;padding:18px!important;min-height:100%!important;}
#mafo-shortcode-fullscreen .mafo-head{margin-top:0!important;}
#mafo-shortcode-fullscreen .mafo-tabs{position:relative!important;z-index:4!important;}
#mafo-shortcode-fullscreen .mafo-tabs a,#mafo-shortcode-fullscreen button,#mafo-shortcode-fullscreen input,#mafo-shortcode-fullscreen select{pointer-events:auto!important;}
@media(max-width:760px){#mafo-shortcode-fullscreen .mafo-wrap{padding:10px!important;}}


/* v1.9 gerçek boş sayfa / standalone düzeltmesi */
#mafo-standalone-root{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;overflow:auto!important;background:#f4f7fb!important;z-index:2147483647!important;}
#mafo-standalone-root .mafo-wrap{max-width:1500px!important;margin:0 auto!important;padding:18px!important;}
#mafo-standalone-root .mafo-head{margin-top:0!important;}
.mafo-preview{background:#0f172a!important;}
.mafo-preview img,.mafo-preview iframe{position:relative!important;z-index:2!important;background:#fff!important;}
.mafo-preview *:not(img):not(iframe):not(p):not(a){max-width:100%;}
.mafo-form-panel{background:#ffffff!important;}
.mafo-detail{position:relative;z-index:2;}
.mafo-card{position:relative;z-index:3;}
@media(max-width:760px){#mafo-standalone-root .mafo-wrap{padding:10px!important;}.mafo-detail{gap:12px!important}.mafo-preview{min-height:auto!important}.mafo-preview img{max-height:70vh!important;object-fit:contain!important}}


/* v2.0: Detay formu taşma düzeltmeleri */
.mafo-form-panel{overflow:hidden; max-width:100%;}
.mafo-form-panel input,.mafo-form-panel select,.mafo-calc-box input,.mafo-calc-box select{width:100%; max-width:100%; min-width:0;}
.mafo-calc-box{grid-template-columns:repeat(2,minmax(0,1fr))!important; overflow:hidden; align-items:end;}
.mafo-calc-box .mafo-btn{width:100%; min-width:0;}
.mafo-line{grid-template-columns:70px repeat(3,minmax(0,1fr))!important; width:100%; max-width:100%; overflow:hidden;}
.mafo-line input{width:100%; min-width:0;}
.mafo-preview{overflow:hidden;}
.mafo-preview img{max-height:calc(100vh - 230px); object-fit:contain;}
@media(max-width:1180px){.mafo-calc-box{grid-template-columns:1fr!important}.mafo-line{grid-template-columns:1fr 1fr!important}.mafo-preview img{max-height:70vh}}
@media(max-width:720px){.mafo-line{grid-template-columns:1fr!important}.mafo-calc-box{grid-template-columns:1fr!important}.mafo-actions .mafo-btn{width:100%;}}

/* v2.2: LUCA CSV çıktı düzenleme ekranı */
.mafo-export-editor-wrap{max-width:100%;overflow:auto;border-radius:18px;border:1px solid #dbe4f0;background:#fff;}
.mafo-export-editor-table{min-width:2200px;table-layout:auto;}
.mafo-export-editor-table th{white-space:nowrap;position:sticky;top:0;z-index:5;background:#f1f5f9;}
.mafo-export-editor-table td{vertical-align:top;}
.mafo-export-editor-table .mafo-sticky-col{position:sticky;left:0;z-index:7;background:#fff;min-width:58px;text-align:center;box-shadow:4px 0 10px rgba(15,23,42,.04);}
.mafo-export-editor-table thead .mafo-sticky-col{background:#eaf2ff;z-index:9;}
.mafo-export-editor-table .mafo-sticky-col2{position:sticky;left:58px;z-index:7;background:#fff;min-width:260px;max-width:260px;box-shadow:4px 0 10px rgba(15,23,42,.04);}
.mafo-export-editor-table thead .mafo-sticky-col2{background:#eaf2ff;z-index:9;}
.mafo-export-doc-info a{display:block;color:#0f3768;font-weight:800;text-decoration:none;}
.mafo-export-doc-info small{display:block;color:#64748b;font-size:11px;line-height:1.35;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px;}
.mafo-export-input{width:118px;min-width:118px;border:1px solid #cfd9e8;border-radius:10px;padding:8px 9px;background:#fff;font-size:12px;color:#172033;}
.mafo-export-input.wide{width:190px;min-width:190px;}
.mafo-export-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12);outline:none;}
.mafo-csv-select-form .mafo-sticky-bulk{gap:8px;align-items:center;flex-wrap:wrap;}
.mafo-csv-select-form .mafo-btn{white-space:nowrap;}
@media(max-width:900px){.mafo-export-editor-table{min-width:1900px}.mafo-export-editor-table .mafo-sticky-col2{min-width:220px;max-width:220px}.mafo-export-input{width:105px;min-width:105px}.mafo-export-input.wide{width:160px;min-width:160px}}


/* v2.3 customer delete / whatsapp integration */
.mafo-muted{display:block;color:#64748b;font-size:12px;margin-top:4px;font-weight:500}.mafo-actions-cell{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.mafo-inline-delete{display:inline;margin:0}.mafo-btn.danger{background:#fff1f2;border-color:#fecdd3;color:#be123c}.mafo-btn.danger:hover{background:#ffe4e6}.mafo-badge.st-eslesme_bekliyor{background:#fff7ed;color:#9a3412;border-color:#fed7aa}


/* v2.5 müşteri toplu sil + 36 sütun LUCA hızlı fiş ön izleme */
.mafo-customer-bulk-form .mafo-bulkbar{margin:12px 0;}
.mafo-fast-fis-table{table-layout:auto;min-width:3600px;}
.mafo-fast-fis-table th,.mafo-fast-fis-table td{white-space:nowrap;vertical-align:top;}
.mafo-fast-fis-table .mafo-sticky-col{position:sticky;left:0;background:#fff;z-index:4;min-width:96px;max-width:120px;box-shadow:8px 0 12px rgba(15,23,42,.04);}
.mafo-fast-fis-table thead .mafo-sticky-col{z-index:6;background:#f8fafc;}
.mafo-row-doc{display:block;margin-top:6px;color:#64748b;font-size:10px;line-height:1.25;max-width:100px;white-space:normal;}
.mafo-export-editor-table .mafo-export-input,.mafo-export-editor-table .mafo-export-select{width:150px;min-width:150px;border:1px solid #cfd9e8;border-radius:10px;padding:8px 9px;background:#fff;font-size:12px;}
.mafo-export-editor-table .mafo-export-input.wide{width:230px;min-width:230px;}
.mafo-export-editor-table select.mafo-export-select{height:38px;}
.mafo-export-editor-wrap{max-height:70vh;overflow:auto;}
.mafo-export-editor-table thead th{position:sticky;top:0;z-index:3;background:#f8fafc;}
@media(max-width:760px){.mafo-fast-fis-table{min-width:3300px}.mafo-export-editor-wrap{max-height:72vh}.mafo-export-editor-table .mafo-export-input,.mafo-export-editor-table .mafo-export-select{width:135px;min-width:135px}.mafo-export-editor-table .mafo-export-input.wide{width:200px;min-width:200px}}

/* v2.6 LUCA CSV toplu düzenleme alanı */
.mafo-export-bulk-editor{margin:14px 0;display:grid;grid-template-columns:minmax(220px,320px) 1fr;gap:14px;align-items:start}
.mafo-export-bulk-editor h3{margin:0 0 6px;font-size:15px}
.mafo-export-bulk-editor p{margin:0;color:#64748b;font-size:13px;line-height:1.4}
.mafo-export-bulk-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mafo-export-bulk-controls select,.mafo-export-bulk-controls input{min-width:180px;max-width:260px;height:38px}
.mafo-export-bulk-controls [data-mafo-export-bulk-value]{min-width:260px}
@media(max-width:900px){.mafo-export-bulk-editor{grid-template-columns:1fr}.mafo-export-bulk-controls select,.mafo-export-bulk-controls input{width:100%;max-width:100%}.mafo-export-bulk-controls .mafo-btn{width:100%;justify-content:center}}


/* v2.7 müşteri aktif/silinenler alt sekmeleri */
.mafo-subtabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px 0;}
.mafo-subtabs .mafo-btn{min-height:38px;}

/* v4.0 Belge resmi lightbox / zoom / döndürme */
.mafo-preview-image-btn{display:block;width:100%;border:0;background:transparent;padding:0;margin:0;cursor:zoom-in;position:relative;color:#fff;text-align:center}.mafo-preview-image-btn img{max-width:100%;height:auto;display:block;margin:auto;border-radius:12px}.mafo-preview-image-btn span{position:absolute;right:12px;bottom:12px;background:rgba(15,23,42,.78);color:#fff;border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800;box-shadow:0 8px 18px rgba(0,0,0,.22)}.mafo-lightbox{position:fixed;inset:0;background:rgba(2,6,23,.92);z-index:2147483647;display:none;align-items:center;justify-content:center;padding:72px 18px 22px}.mafo-lightbox.is-open{display:flex}.mafo-lightbox-stage{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:auto;cursor:grab}.mafo-lightbox-stage:active{cursor:grabbing}.mafo-lightbox img{max-width:92vw;max-height:82vh;object-fit:contain;border-radius:12px;box-shadow:0 24px 80px rgba(0,0,0,.45);transition:transform .12s ease;transform-origin:center center}.mafo-lightbox-toolbar{position:absolute;top:16px;left:50%;transform:translateX(-50%);display:flex;gap:8px;align-items:center;background:rgba(15,23,42,.78);border:1px solid rgba(255,255,255,.16);border-radius:18px;padding:8px;box-shadow:0 14px 36px rgba(0,0,0,.28);backdrop-filter:blur(8px)}.mafo-lightbox-toolbar button{border:0;border-radius:12px;background:#fff;color:#0f172a;font-weight:900;padding:9px 12px;min-width:40px;cursor:pointer}.mafo-lightbox-toolbar button:hover{filter:brightness(.94)}.mafo-lightbox-hint{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);color:#dbeafe;font-size:12px;background:rgba(15,23,42,.6);border-radius:999px;padding:7px 11px;white-space:nowrap}@media(max-width:700px){.mafo-lightbox{padding-top:88px}.mafo-lightbox-toolbar{top:10px;flex-wrap:wrap;justify-content:center;max-width:94vw}.mafo-lightbox-toolbar button{padding:8px 10px}.mafo-lightbox-hint{display:none}}

/* v4.3 toplu Google OCR / Yapay Zeka tamamlanma barı */
.mafo-bulk-progress{background:#f8fafc;border:1px solid #dbe4f0;border-radius:14px;padding:12px;margin:10px 0 12px;box-shadow:0 6px 18px rgba(15,23,42,.04)}
.mafo-bulk-bar{height:12px;background:#e5edf7;border-radius:999px;overflow:hidden}
.mafo-bulk-bar span{display:block;height:100%;width:0;background:linear-gradient(90deg,#f59e0b,#2563eb);transition:width .22s ease}
.mafo-bulk-progress small{display:block;margin-top:7px;color:#475569;font-weight:800}
.mafo-bulk-form.is-bulk-running{opacity:.92}
.mafo-bulk-form.is-bulk-running .mafo-table-wrap{filter:saturate(.85)}
.mafo-bulk-form.is-bulk-running button,.mafo-bulk-form.is-bulk-running select{pointer-events:none;opacity:.72}

/* v4.5 Gelen Evraklar gelişmiş filtre/sıralama */
.mafo-filter-advanced{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;align-items:end}
.mafo-filter-advanced label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:800;color:#34445a}
.mafo-filter-advanced input,.mafo-filter-advanced select{width:100%}
.mafo-list-summary{background:#f8fafc;border:1px solid var(--mafo-line);border-radius:14px;padding:10px 12px;margin:10px 0 14px;color:#475569;font-weight:700}
.mafo-count-pill{background:#eef6ff;border:1px solid #cfe3ff;color:#0f3f74;border-radius:999px;padding:8px 12px;font-weight:900;white-space:nowrap}

.mafo-detail-actions-top{position:sticky;top:8px;z-index:12;background:#fff;border:1px solid #dbe4f0;border-radius:16px;padding:10px;margin:0 0 12px;box-shadow:0 10px 22px rgba(15,23,42,.07)}
.mafo-detail-actions-top .mafo-btn{white-space:nowrap}
.mafo-info-mini{background:#eef6ff;border:1px solid #d7e8ff;color:#24436a;border-radius:12px;padding:9px 11px;margin:-4px 0 12px;font-size:12px;font-weight:700;line-height:1.35}
.mafo-hidden-action-form{display:none!important}
@media(max-width:900px){.mafo-detail-actions-top{position:static;display:grid;grid-template-columns:1fr;gap:7px}.mafo-detail-actions-top .mafo-btn{width:100%}}

.mafo-detail-actions-top .mafo-detail-nav-inline{margin:0 0 9px;padding-bottom:9px;border-bottom:1px solid #e5edf7}
.mafo-detail-actions-top .mafo-detail-action-buttons{margin:0}
.mafo-detail-nav-inline .mafo-btn{background:#f8fafc}
@media(max-width:900px){.mafo-detail-actions-top .mafo-detail-nav-inline,.mafo-detail-actions-top .mafo-detail-action-buttons{display:grid;grid-template-columns:1fr;gap:7px}.mafo-detail-actions-top .mafo-detail-nav-inline .mafo-btn,.mafo-detail-actions-top .mafo-detail-action-buttons .mafo-btn{width:100%}}
.mafo-quick-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:#f8fafc;border:1px solid var(--mafo-line);border-radius:16px;padding:10px 12px;margin:10px 0 14px}.mafo-quick-filters b{color:#334155;margin-right:4px}.mafo-mini-pre{max-width:420px;white-space:pre-wrap;font-size:11px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:8px;margin:0}.mafo-job-form .mafo-bulkbar{margin:12px 0}.mafo-job-stats{margin-top:10px}

/* v5.1 görünürlük / kullanıcı deneyimi iyileştirmeleri */
.mafo-head{position:relative;overflow:hidden}.mafo-head:after{content:"";position:absolute;right:-80px;top:-80px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.08)}
.mafo-card{padding:22px;background:linear-gradient(180deg,#ffffff,#fbfdff)}
.mafo-tabs{position:sticky;top:0;z-index:30;background:#f4f7fb;padding:10px 0;margin-top:0}.mafo-tabs a{box-shadow:0 8px 20px rgba(15,23,42,.06)}
.mafo-detail-actions-top{position:sticky;top:8px;z-index:25;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border:1px solid #dbe4f0;border-radius:18px;padding:10px;margin:-4px 0 12px;box-shadow:0 12px 30px rgba(15,23,42,.08)}
.mafo-detail-action-buttons .primary{font-size:14px;padding-left:16px;padding-right:16px}.mafo-detail-nav-inline{margin-bottom:8px}.mafo-detail-nav-inline .mafo-btn{background:#f8fafc;border:1px solid #dbe4f0}.mafo-detail-action-buttons{gap:7px}
.mafo-validation-box{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239;border-radius:16px;padding:12px 14px;margin:10px 0;font-weight:650}.mafo-validation-box ul{margin:8px 0 0 18px;padding:0}.mafo-validation-box li{margin:5px 0}
.mafo-lock-box{background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;border-radius:16px;padding:12px 14px;margin:10px 0;font-weight:650}.mafo-lock-toggle{background:#f8fafc;border:1px solid #dbe4f0;border-radius:14px;padding:10px 12px;margin-bottom:2px;align-items:center!important;flex-direction:row!important;gap:9px!important}.mafo-lock-toggle input{min-height:auto!important;width:auto!important}
.mafo-line{grid-template-columns:90px minmax(110px,1fr) minmax(110px,1fr) minmax(110px,1fr);background:#fff;border:1px solid #dbe4f0;border-radius:14px;padding:8px}.mafo-line input{border-color:#dbe4f0}.mafo-line:before{content:"KDV / Matrah / KDV / Toplam";grid-column:1/-1;color:#64748b;font-size:11px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;margin-bottom:2px}
.mafo-table th{position:sticky;top:0;z-index:5}.mafo-quick-filters{display:flex;gap:7px;align-items:center;flex-wrap:wrap;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:10px 12px;margin:10px 0 12px}.mafo-quick-filters b{color:#0f2238;margin-right:4px}.mafo-job-stats div{position:relative}.mafo-mini-pre{max-height:90px;overflow:auto;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:8px;font-size:11px;white-space:pre-wrap}.mafo-info-mini{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:14px;padding:9px 11px;color:#475569;font-weight:650;margin-bottom:10px}
@media(max-width:900px){.mafo-tabs{overflow:auto;flex-wrap:nowrap}.mafo-tabs a{white-space:nowrap}.mafo-detail-actions-top{top:0}.mafo-detail-action-buttons .mafo-btn,.mafo-detail-nav-inline .mafo-btn{flex:1 1 calc(50% - 8px)}.mafo-line{grid-template-columns:1fr 1fr}.mafo-line:before{grid-column:1/-1}.mafo-preview{padding:8px}.mafo-preview-image-btn img{max-height:62vh;object-fit:contain}}

/* v5.2 LUCA çıktı ön izlemede çoklu KDV satırları */
.mafo-fast-fis-table tr.mafo-export-multi-line td{background:#fffdf7}
.mafo-fast-fis-table tr.mafo-export-multi-line:nth-child(even) td{background:#fff9ed}
.mafo-vat-line-badge{display:inline-flex;margin-top:7px;background:#eef6ff;border:1px solid #cfe3ff;color:#0f3f74;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:900;white-space:normal;line-height:1.1}
.mafo-line-mini{display:block;color:#92400e;background:#fff7d6;border:1px solid #fde68a;border-radius:999px;padding:3px 6px;margin:0 0 5px;font-size:10px;font-weight:900;text-align:center;white-space:nowrap}
.mafo-export-editor-table .mafo-sticky-col[rowspan]{vertical-align:top;background:#fff!important}

/* v5.3.1 UI: Müşteri listesine dönüş butonu daha görünür */
.mafo-btn.mafo-back-customer-list{
  background:linear-gradient(135deg,#f97316,#dc2626)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.15)!important;
  box-shadow:0 10px 22px rgba(220,38,38,.26)!important;
  padding:10px 17px!important;
  font-size:13.5px!important;
  letter-spacing:.01em;
}
.mafo-btn.mafo-back-customer-list:hover{
  filter:none!important;
  transform:translateY(-2px)!important;
  box-shadow:0 14px 28px rgba(220,38,38,.34)!important;
}


/* v5.3.2 UI düzenlemeleri */
.mafo-head-logo-only{display:flex;align-items:center;justify-content:flex-start;min-height:74px;padding:18px 22px;background:linear-gradient(135deg,#111827,#1d4ed8)}
.mafo-brand-logo-only{display:flex;align-items:center;gap:12px;position:relative;z-index:1}
.mafo-logo-mark{width:48px;height:48px;border-radius:14px;background:#fff;color:#1d4ed8;display:inline-flex;align-items:center;justify-content:center;font-size:28px;font-weight:1000;box-shadow:0 12px 30px rgba(15,23,42,.2)}
.mafo-brand-name{font-size:22px;font-weight:1000;color:#fff;letter-spacing:.01em}
.mafo-dashboard-filter{margin:14px 0 16px}.mafo-filter-inline{display:flex;gap:10px;align-items:end;flex-wrap:wrap;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px}.mafo-filter-inline label{font-size:12px;font-weight:900;color:#334155;display:flex;flex-direction:column;gap:5px}.mafo-dashboard-customer-list{display:grid;gap:10px}.mafo-dashboard-customer-card{border-left:5px solid #2563eb}.mafo-dashboard-customer-card:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(37,99,235,.12)}
.mafo-check-summary{background:#f8fafc;border:1px solid #dbe4f0;border-radius:16px;padding:12px 14px;margin:10px 0;display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap}.mafo-check-summary>b{color:#0f2238;white-space:nowrap}.mafo-check-summary-list{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.mafo-warn-mini{display:inline-flex;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;line-height:1.25}.mafo-btn.mafo-detail-back-btn{background:linear-gradient(135deg,#0ea5e9,#2563eb)!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:0 10px 22px rgba(37,99,235,.24)!important;font-weight:1000}.mafo-btn.mafo-detail-back-btn:hover{transform:translateY(-2px)!important;box-shadow:0 14px 28px rgba(37,99,235,.34)!important}.mafo-excel-select-form .mafo-bulkbar .mafo-btn{min-height:40px}.mafo-excel-select-form .mafo-bulkbar .mafo-btn.primary{box-shadow:0 8px 18px rgba(37,99,235,.18)}.mafo-excel-select-form .mafo-bulkbar .mafo-btn.warn{box-shadow:0 8px 18px rgba(245,158,11,.2)}
@media(max-width:700px){.mafo-head-logo-only{min-height:64px;padding:14px}.mafo-logo-mark{width:42px;height:42px;font-size:24px}.mafo-brand-name{font-size:19px}.mafo-check-summary{display:block}.mafo-check-summary>b{display:block;margin-bottom:8px}}

.mafo-nowrap{white-space:nowrap;}


/* v5.3.5 UI: Gelen Evraklar tablo hizalama + dosya yükleme sadeleştirme */
.mafo-upload-panel .mafo-file-field{gap:8px;}
.mafo-doc-table{min-width:1420px;table-layout:fixed;}
.mafo-doc-table th,.mafo-doc-table td{box-sizing:border-box;vertical-align:middle;}
.mafo-doc-table th:nth-child(1),.mafo-doc-table td:nth-child(1){width:42px;min-width:42px;text-align:center;}
.mafo-doc-table th:nth-child(2),.mafo-doc-table td:nth-child(2){width:285px;min-width:285px;}
.mafo-doc-table th:nth-child(3),.mafo-doc-table td:nth-child(3){width:70px;min-width:70px;}
.mafo-doc-table th:nth-child(4),.mafo-doc-table td:nth-child(4){width:70px;min-width:70px;}
.mafo-doc-table th:nth-child(5),.mafo-doc-table td:nth-child(5){width:110px;min-width:110px;}
.mafo-doc-table th:nth-child(6),.mafo-doc-table td:nth-child(6){width:210px;min-width:210px;}
.mafo-doc-table th:nth-child(7),.mafo-doc-table td:nth-child(7){width:120px;min-width:120px;}
.mafo-doc-table th:nth-child(8),.mafo-doc-table td:nth-child(8){width:135px;min-width:135px;}
.mafo-doc-table th:nth-child(9),.mafo-doc-table td:nth-child(9){width:135px;min-width:135px;}
.mafo-doc-table th:nth-child(10),.mafo-doc-table td:nth-child(10){width:95px;min-width:95px;text-align:right;}
.mafo-doc-table th:nth-child(11),.mafo-doc-table td:nth-child(11){width:96px;min-width:96px;text-align:center;}
.mafo-doc-table th:nth-child(12),.mafo-doc-table td:nth-child(12){width:118px;min-width:118px;text-align:center;}
.mafo-doc-table th:nth-child(13),.mafo-doc-table td:nth-child(13){width:86px;min-width:86px;text-align:center;}
.mafo-doc-table .mafo-btn.small{padding:7px 10px;min-width:62px;}
.mafo-doc-table .mafo-file-cell,.mafo-doc-table .mafo-seller-cell{overflow:hidden;text-overflow:ellipsis;}
.mafo-doc-table .mafo-missing-list{max-width:130px;}
.mafo-doc-table .mafo-badge,.mafo-doc-table .mafo-conf{font-size:11px;padding:5px 8px;}
.mafo-table-wrap{max-width:100%;overflow:auto;}
@media(max-width:900px){.mafo-doc-table{min-width:1380px!important;table-layout:fixed!important;}}

/* v5.3.6 - Gelen Evraklar müşteri detayında işlem/detay sütunu en başta */
.mafo-doc-table .mafo-action-cell{white-space:nowrap;min-width:86px;text-align:center;}
.mafo-doc-table .mafo-detail-first{font-weight:800;box-shadow:0 6px 14px rgba(21,101,192,.16);}

/* v5.3.7 UI: Gelen Evraklar tablo sütunları düzeltildi, genişlik/sıra ayarı eklendi */
.mafo-column-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 8px;padding:10px 12px;border:1px solid #dbe7f6;background:linear-gradient(180deg,#ffffff,#f8fbff);border-radius:14px;color:#475569;font-size:12px;font-weight:700}
.mafo-column-toolbar b{color:#0f3b67}.mafo-column-toolbar .mafo-btn{white-space:nowrap}
.mafo-doc-table[data-mafo-column-table]{table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;}
.mafo-doc-table[data-mafo-column-table] th,.mafo-doc-table[data-mafo-column-table] td{width:auto!important;min-width:0!important;max-width:none!important;box-sizing:border-box;overflow:hidden;vertical-align:middle;}
.mafo-doc-table[data-mafo-column-table] th{position:relative;cursor:grab;padding-right:18px!important;text-overflow:ellipsis;user-select:none;}
.mafo-doc-table[data-mafo-column-table] th:active{cursor:grabbing;}
.mafo-doc-table[data-mafo-column-table] th[data-mafo-col="select"],.mafo-doc-table[data-mafo-column-table] td[data-mafo-col="select"],.mafo-doc-table[data-mafo-column-table] th[data-mafo-col="action"],.mafo-doc-table[data-mafo-column-table] td[data-mafo-col="action"],.mafo-doc-table[data-mafo-column-table] th[data-mafo-col="confidence"],.mafo-doc-table[data-mafo-column-table] td[data-mafo-col="confidence"],.mafo-doc-table[data-mafo-column-table] th[data-mafo-col="status"],.mafo-doc-table[data-mafo-column-table] td[data-mafo-col="status"]{text-align:center!important;}
.mafo-doc-table[data-mafo-column-table] th[data-mafo-col="total"],.mafo-doc-table[data-mafo-column-table] td[data-mafo-col="total"]{text-align:right!important;}
.mafo-doc-table[data-mafo-column-table] .mafo-col-resizer{position:absolute;top:0;right:0;width:9px;height:100%;cursor:col-resize;z-index:2;touch-action:none;}
.mafo-doc-table[data-mafo-column-table] .mafo-col-resizer:after{content:"";position:absolute;top:22%;bottom:22%;right:3px;width:2px;border-radius:999px;background:#cbd5e1;opacity:.7;transition:.15s;}
.mafo-doc-table[data-mafo-column-table] th:hover .mafo-col-resizer:after,.mafo-doc-table[data-mafo-column-table] .mafo-col-resizer:hover:after{background:#2563eb;opacity:1;}
body.mafo-col-resizing{cursor:col-resize!important;user-select:none!important;}
.mafo-doc-table[data-mafo-column-table] th.is-dragging{opacity:.45;background:#dbeafe!important;}
.mafo-doc-table[data-mafo-column-table] th.is-drop-target{box-shadow:inset 3px 0 0 #2563eb;background:#eef6ff!important;}
.mafo-doc-table[data-mafo-column-table] th.is-drop-target.drop-after{box-shadow:inset -3px 0 0 #2563eb;}
.mafo-doc-table[data-mafo-column-table] .mafo-doc-link{min-width:0;max-width:100%;}
.mafo-doc-table[data-mafo-column-table] .mafo-doc-link span{min-width:0;max-width:100%;overflow:hidden;}
.mafo-doc-table[data-mafo-column-table] .mafo-doc-link b{max-width:100%!important;}
.mafo-doc-table[data-mafo-column-table] .mafo-file-cell,.mafo-doc-table[data-mafo-column-table] .mafo-seller-cell{max-width:none!important;white-space:normal;}
.mafo-doc-table[data-mafo-column-table] .mafo-seller-cell,.mafo-doc-table[data-mafo-column-table] td[data-mafo-col="tax"],.mafo-doc-table[data-mafo-column-table] td[data-mafo-col="docno"]{text-overflow:ellipsis;white-space:nowrap;}
.mafo-doc-table[data-mafo-column-table] .mafo-missing-list{max-width:none!important;justify-content:flex-start;}
.mafo-doc-table[data-mafo-column-table] .mafo-badge,.mafo-doc-table[data-mafo-column-table] .mafo-conf{max-width:100%;overflow:hidden;text-overflow:ellipsis;}
@media(max-width:900px){.mafo-column-toolbar{align-items:flex-start;flex-direction:column}.mafo-doc-table[data-mafo-column-table]{table-layout:fixed!important;}}

/* v5.3.15: belge önizleme döndür/kaydet kontrolleri */
.mafo-preview-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:center;margin:10px 0 4px}
.mafo-lightbox-toolbar [data-mafo-lb="save-rotate"]{font-weight:800;background:#16a34a;color:#fff;border-color:#16a34a}
