:root{--bg:#f4f6fb;--dark:#0f172a;--muted:#64748b;--primary:#5b21b6;--primary2:#7c3aed;--success:#16a34a;--warning:#f59e0b;--danger:#dc2626;--card:#fff}*{box-sizing:border-box}body{background:linear-gradient(135deg,#f8fafc 0,#eef2ff 100%);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#0f172a}.app-shell{min-height:100vh}.sidebar{background:linear-gradient(180deg,#111827,#312e81);position:sticky;top:0;z-index:1000}.sidebar.offcanvas-lg{border:0}.brand{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.13);border-radius:18px;padding:14px;color:#fff}.brand .logo,.logo-sm{width:42px;height:42px;border-radius:14px;background:#fff;color:#4c1d95;display:grid;place-items:center;font-weight:900}
.brand .brand-logo-img,.logo-sm.brand-logo-img{display:block;object-fit:contain;padding:4px;background:#fff;border:0}
.brand.brand--logo-only{padding:10px 12px;justify-content:center;align-items:center;overflow:hidden;max-width:100%}
.brand.brand--logo-only .brand-logo-full{width:100%;max-width:100%;height:auto;max-height:58px;object-fit:contain;display:block;background:#fff;border-radius:12px;padding:8px 12px;box-sizing:border-box}
.brand-logo-full-mobile{display:block;height:40px!important;max-height:40px!important;width:auto;max-width:min(200px,45vw);object-fit:contain;background:#fff;border-radius:8px;padding:2px 8px;flex-shrink:1}
.mobile-header-brand{flex:1 1 auto;min-width:0;min-height:0;max-height:40px;overflow:hidden;display:flex;align-items:center}
.mobile-header{height:52px;min-height:52px;max-height:52px;align-items:center!important;overflow:hidden;width:100%;flex:0 0 auto;padding-top:0!important;padding-bottom:0!important}
.sidebar{overflow-x:hidden}
.logo-sm{width:32px;height:32px;border-radius:8px;font-size:14px}
.logo-sm.brand-logo-img{padding:3px}.sidebar a{color:#dbeafe;text-decoration:none;display:flex;gap:6px;align-items:center;padding:9px 11px;border-radius:12px;margin:2px 0;transition:all .2s;font-size:.875rem;min-width:0}.sidebar a:hover,.sidebar a.active{background:rgba(255,255,255,.14);color:#fff}.sidebar-nav-badge-link{justify-content:space-between;width:100%}.sidebar-nav-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-nav-badge{flex:0 0 auto;font-size:.65rem;padding:2px 5px;line-height:1.25;margin-left:2px}.topbar{background:rgba(255,255,255,.78);backdrop-filter:blur(10px);border:1px solid rgba(226,232,240,.8);border-radius:22px;box-shadow:0 18px 40px rgba(30,41,59,.07)}.mobile-header{background:#111827;position:sticky;top:0;z-index:1100;box-shadow:0 2px 10px rgba(0,0,0,.1)}.card{border:1px solid rgba(226,232,240,.9);border-radius:22px;box-shadow:0 20px 45px rgba(30,41,59,.08);background:var(--card)}.stat{overflow:hidden;position:relative}.stat:after{content:"";position:absolute;right:-24px;top:-24px;width:90px;height:90px;border-radius:50%;background:rgba(124,58,237,.12)}.stat small{color:var(--muted);font-weight:600}.stat h3{font-weight:800}.btn{border-radius:13px}.form-control,.form-select{border-radius:13px;border-color:#dbe3ef;padding:.7rem .9rem}
.money-tr-input{font-variant-numeric:tabular-nums;font-weight:600}
.order-form-footer-content{line-height:1.5;color:#475569}
.order-form-footer-content ul,.order-form-footer-content ol{margin:.35rem 0 .35rem 1.1rem;padding:0}
.order-form-footer-content p{margin:0 0 .5rem}
#footerEditor .ql-editor{min-height:180px;font-size:.95rem}
#footerEditor .ql-toolbar{border-radius:13px 13px 0 0;border-color:#dbe3ef}
#footerEditor .ql-container{border-radius:0 0 13px 13px;border-color:#dbe3ef}.table{--bs-table-bg:transparent}.table th{font-size:.78rem;text-transform:uppercase;color:#64748b;letter-spacing:.04em}.badge-pill{border-radius:999px;padding:.5em .75em}.badge-status{background:#eef2ff;color:#3730a3}.badge-danger-soft{background:#fee2e2;color:#991b1b}.badge-warning-soft{background:#fef3c7;color:#92400e}.badge-success-soft{background:#dcfce7;color:#166534}
.customer-invoice-ready{background:linear-gradient(90deg,#ecfdf5 0%,#fff 55%)!important;border-left:4px solid #16a34a}
.customer-invoice-ready td:first-child{border-radius:4px 0 0 4px}
.catalog-hover-popup{position:fixed;z-index:9999;width:200px;padding:10px;background:#fff;border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.22);pointer-events:none;opacity:0;visibility:hidden;transition:opacity .12s ease}
.catalog-hover-popup.is-visible{opacity:1;pointer-events:auto}
.catalog-popup-label{font-size:.65rem;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:700;margin-bottom:6px}
.catalog-popup-img-btn{display:block;width:100%;padding:0;margin:0 0 6px;border:0;background:transparent;border-radius:8px;cursor:zoom-in;position:relative;line-height:0}
.catalog-popup-img-btn:hover .catalog-popup-img{opacity:.92;box-shadow:0 4px 16px rgba(79,70,229,.25)}
.catalog-popup-img-btn:focus-visible{outline:2px solid #7c3aed;outline-offset:2px}
.catalog-popup-img{display:block;width:100%;height:110px;object-fit:cover;border-radius:8px;border:1px solid #e2e8f0;background:#f8fafc}
.catalog-popup-zoom-hint{position:absolute;right:6px;bottom:6px;font-size:.62rem;font-weight:700;padding:3px 7px;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;pointer-events:none;line-height:1.2}
.catalog-popup-ph{width:100%;height:72px;display:grid;place-items:center;background:#f1f5f9;color:#94a3b8;font-size:.7rem;border-radius:8px;border:1px dashed #cbd5e1;margin-bottom:6px}
.catalog-popup-name{font-size:.8rem;font-weight:700;line-height:1.25;color:#0f172a}
.catalog-popup-code{font-size:.72rem;color:#64748b;margin-top:2px}
.catalog-popup-color{font-size:.72rem;margin-top:4px;padding:3px 8px;background:#eef2ff;color:#3730a3;border-radius:999px;display:inline-block;font-weight:600}
.catalog-popup-empty{font-size:.75rem;color:#64748b;text-align:center;padding:8px 4px}
.catalog-hover-trigger:hover{border-color:#7c3aed}
.order-internal-note-btn{font-weight:700;color:#92400e!important;border:1px solid #f59e0b!important;background:#fffbeb!important;animation:order-note-blink 1.1s ease-in-out infinite}
.order-status-reason-btn{font-weight:700;color:#92400e!important;border:1px solid #f59e0b!important;background:#fffbeb!important;animation:order-note-blink 1.1s ease-in-out infinite;white-space:normal;text-align:left;line-height:1.25;max-width:100%}
.order-status-reason-btn--cancel{color:#991b1b!important;border-color:#f87171!important;background:#fef2f2!important;animation:order-status-cancel-blink 1.1s ease-in-out infinite}
.model-images-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;min-height:120px}
.model-images-preview-grid.min-h-preview{min-height:140px}
.model-preview-item{text-align:center}
.model-preview-img{width:100%;height:120px;object-fit:contain;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:4px;display:block}
.model-images-thumb-row{display:flex;flex-wrap:wrap;gap:8px;max-width:320px}
.model-thumb-wrap{position:relative;width:72px;height:72px;flex:0 0 72px}
.model-thumb-img{width:72px;height:72px;object-fit:cover;border-radius:10px;border:1px solid #e2e8f0;background:#fff;display:block}
.model-thumb-del{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;background:#dc2626;color:#fff;font-size:14px;line-height:20px;text-align:center;text-decoration:none;font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.model-thumb-del:hover{color:#fff;background:#b91c1c}
@keyframes order-status-cancel-blink{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.45)}50%{box-shadow:0 0 0 6px rgba(220,38,38,0);background:#fee2e2}}
@keyframes order-note-blink{0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,.5)}50%{box-shadow:0 0 0 6px rgba(245,158,11,0);background:#fde68a}}.order-seen-cell{min-width:140px;vertical-align:middle}.order-seen-admin-form{max-width:160px}.alert-soft{border:0;border-radius:18px}.due-red{border-left:5px solid var(--danger)}.due-orange{border-left:5px solid var(--warning)}.print-only{display:none}@media(max-width:991.98px){.topbar{border-radius:0;margin:0!important;border-left:0;border-right:0}.card{border-radius:16px;margin-bottom:12px}.p-4{padding:1.25rem!important}}@media print{.no-print,.sidebar,.topbar,.btn,.dropdown,.mobile-header{display:none!important}.print-only{display:block!important}body{background:white}.card{box-shadow:none;border:0}.col-md-10,.col-lg-10{width:100%!important}.container-fluid,.row,main{display:block!important;width:100%!important;padding:0!important;margin:0!important}}

/* Sipariş formu görsel düzen */
.print-logo{width:110px;max-height:75px;object-fit:contain;border:1px solid #e5e7eb;border-radius:14px;padding:6px;background:#fff}.address-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.address-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:16px;min-height:118px}.signature-grid{display:grid;grid-template-columns:1fr 1fr;gap:55px}.small-line{line-height:1.45}.order-info th{width:150px}.order-print-card{max-width:980px;margin:auto}
@media(max-width:768px){.address-grid,.signature-grid{grid-template-columns:1fr}.order-head{flex-direction:column;gap:14px}.print-logo{width:90px}}
@media print{.order-print-card{max-width:100%!important;padding:4mm!important}.address-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.address-box{background:#fff!important;border:1px solid #d1d5db!important;border-radius:0!important;padding:6px!important;min-height:0!important}.print-logo{width:80px!important;max-height:50px!important;border:0!important;padding:0!important}.signature-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:28px!important}.order-info th{width:88px!important}.order-head{display:flex!important;flex-direction:row!important}}

/* Tablo içindeki Durum menüsü altta kesilmesin */
.orders-card{overflow:visible!important}
.orders-table-wrap{overflow:visible!important;min-height:260px}
.order-status-dropdown{position:relative}
.order-status-dropdown .dropdown-menu{z-index:3000;border:1px solid #e2e8f0;border-radius:16px;padding:8px;box-shadow:0 20px 45px rgba(15,23,42,.18)!important;min-width:220px}
.order-status-dropdown .dropdown-item{border-radius:10px;padding:9px 12px}
.order-status-dropdown .dropdown-item:hover{background:#eef2ff;color:#312e81}
.order-status-dropdown button.dropdown-item.btn-order-status-note{cursor:pointer;border:0;background:transparent}
.order-status-dropdown button.dropdown-item.btn-order-status-note:hover{background:#fef2f2;color:#b91c1c}
@media(max-width:768px){.orders-table-wrap{overflow-x:auto!important;overflow-y:visible!important}.order-status-dropdown .dropdown-menu{min-width:200px}}
.orders-table-wrap .order-customer-phone{display:inline-block;margin-top:2px;font-size:.875rem;font-weight:700;color:#0f172a!important;text-decoration:none;letter-spacing:.01em}
.orders-table-wrap a.order-customer-phone:hover{color:#000!important;text-decoration:underline}
.orders-table-wrap .order-form-btn{--bs-btn-color:#1e293b;--bs-btn-border-color:#475569;--bs-btn-bg:rgba(255,255,255,.92);--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#334155;--bs-btn-hover-border-color:#334155}
.orders-table-wrap .table-warning{--bs-table-bg:#fffbeb;--bs-table-hover-bg:#fef3c7}
.orders-table-wrap .table-danger{--bs-table-bg:#fef2f2;--bs-table-hover-bg:#fee2e2}
.order-seen-cell .badge-success-soft{max-width:168px;font-size:.72rem;line-height:1.35}
.order-seen-admin-form .form-select-sm,.order-seen-admin-form .btn{font-size:.75rem}

/* A4 sipariş formunu tek sayfaya sığdırma ve bilgi bloklarını tablo görünümü */
.form-two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:stretch}.compact-info{font-size:.92rem}.compact-info th{width:105px;vertical-align:top;background:#f8fafc!important;color:#334155!important;text-transform:none!important;letter-spacing:0!important;font-size:.82rem}.compact-info td{vertical-align:top;line-height:1.38}.compact-info .section-title{background:#eef2ff!important;color:#111827!important;font-size:.9rem;text-transform:none!important;letter-spacing:0!important;text-align:left}.order-info{font-size:.93rem}.order-info th{width:130px;background:#f8fafc!important;color:#334155!important;text-transform:none!important;letter-spacing:0!important;font-size:.82rem}.order-info td{line-height:1.38}.signature-grid{margin-top:28px!important}.order-print-card{max-width:930px}
@media(max-width:768px){.form-two-col{grid-template-columns:1fr}.compact-info th{width:95px}}
@media print{@page{size:A4 portrait;margin:5mm}.order-print-card{max-width:100%!important;padding:3mm 4mm!important;font-size:9px!important;line-height:1.15!important;color:#000!important;background:#fff!important}.order-head{padding-bottom:4px!important;margin-bottom:4px!important}.order-head h3{font-size:14px!important;color:#000!important}.order-head h4{font-size:13px!important}.small-line{line-height:1.12!important;font-size:8.5px!important;color:#475569!important}.print-logo{width:68px!important;max-height:44px!important;border:0!important;padding:0!important;background:transparent!important}.form-two-col{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important}.compact-info,.order-info{font-size:8.5px!important;margin-bottom:3px!important}.compact-info th,.compact-info td,.order-info th,.order-info td{padding:2px 4px!important;line-height:1.12!important}.compact-info th,.order-info th{background:#f8fafc!important;color:#334155!important;border-color:#d1d5db!important}.compact-info td,.order-info td{background:#fff!important;color:#000!important;border-color:#d1d5db!important}.compact-info th{width:64px!important}.order-info th{width:72px!important}.compact-info .section-title{font-size:8.5px!important;padding:2px 4px!important;background:#eef2ff!important;color:#111827!important}.signature-grid{margin-top:6px!important;padding-top:4px!important;gap:22px!important}.badge{font-size:8px!important}.address-grid,.address-box{display:none!important}}

.order-thumb{width:80px;height:64px;object-fit:cover;border-radius:14px;border:1px solid #e2e8f0;background:#fff;padding:3px}.order-list-img{width:54px;height:42px;object-fit:cover;border-radius:10px;border:1px solid #e2e8f0;background:#fff;display:block}.order-list-img-btn{padding:0;border:0;background:transparent;cursor:zoom-in;line-height:0;border-radius:10px}.order-list-img-btn:hover .order-list-img{opacity:.88;box-shadow:0 4px 14px rgba(15,23,42,.15)}.order-image-preview{max-height:min(78vh,720px);width:auto;object-fit:contain}.print-product-gallery{display:flex;flex-wrap:wrap;gap:8px}.print-product-img{max-width:145px;max-height:90px;object-fit:contain;border:1px solid #e5e7eb;border-radius:10px;padding:4px;background:#fff}.order-form-model-previews{display:flex;flex-wrap:wrap;gap:8px}.order-form-model-preview-btn{padding:0;border:0;background:transparent;border-radius:10px;cursor:zoom-in;line-height:0}.order-form-model-preview-btn img{width:72px;height:54px;object-fit:cover;border-radius:10px;border:1px solid #e2e8f0}@media print{.print-product-img{max-width:105px!important;max-height:65px!important;padding:2px!important}.order-list-img,.order-thumb{display:none!important}}

/* v7 - logo ortalama, QR, imalat TV ve rota */
.order-head-new{display:grid;grid-template-columns:1fr 160px 1fr;align-items:start;gap:18px}.logo-center{display:flex;justify-content:center;align-items:flex-start}.logo-center .print-logo{width:135px;max-height:82px;object-fit:contain;border:0;padding:0;background:transparent}.logo-placeholder{width:120px;height:58px;border:1px dashed #cbd5e1;border-radius:14px;display:grid;place-items:center;color:#94a3b8;font-weight:800}.qr-img{width:82px;height:82px;border:1px solid #e2e8f0;border-radius:8px;padding:3px;background:#fff}.tv-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.tv-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.tv-col{background:rgba(255,255,255,.75);border:1px solid #e2e8f0;border-radius:22px;padding:14px;min-height:70vh}.tv-col h4{font-weight:900;display:flex;justify-content:space-between;align-items:center}.tv-col h4 span{font-size:15px;background:#eef2ff;color:#3730a3;border-radius:999px;padding:5px 10px}.tv-card{background:#fff;border:1px solid #e2e8f0;border-left:6px solid #6366f1;border-radius:18px;padding:14px;margin:12px 0;box-shadow:0 12px 30px rgba(15,23,42,.08)}.tv-card.soon{border-left-color:#f59e0b;background:#fffbeb}.tv-card.late{border-left-color:#dc2626;background:#fef2f2}@media(max-width:900px){.tv-grid{grid-template-columns:1fr}.order-head-new{grid-template-columns:1fr;text-align:left}.logo-center{justify-content:flex-start}.form-title{text-align:left!important}}@media print{.order-head-new{display:grid!important;grid-template-columns:1fr 120px 1fr!important;gap:8px!important;align-items:start!important}.logo-center .print-logo{width:95px!important;max-height:58px!important}.qr-img{width:58px!important;height:58px!important;padding:1px!important}.company-info h3{font-size:18px!important}.form-title h4{font-size:17px!important}.tv-head{display:none!important}}

/* v8 - sipariş formu başlık düzeni ve satış personeli */
.order-top-v8{display:grid;grid-template-columns:1fr 180px 1fr;align-items:start;gap:18px;border-bottom:1px solid #d1d5db}.logo-center-v8{display:flex;justify-content:center;align-items:flex-start}.print-logo-v8{width:145px;max-height:78px;object-fit:contain;background:transparent}.date-box-v8{font-size:.92rem;justify-self:end;text-align:right;width:100%;max-width:240px;margin-left:auto}.form-title-row-v8{border-bottom:1px solid #d1d5db;padding:14px 0;text-align:center}.form-title-row-v8 h2{font-weight:900;font-size:25px;margin:0;letter-spacing:.02em}.sales-mini{display:flex;align-items:center;gap:8px}.sales-avatar{width:34px;height:34px;border-radius:999px;background:#eef2ff;color:#3730a3;display:grid;place-items:center;font-weight:900}
@media(max-width:900px){.order-top-v8{grid-template-columns:1fr;text-align:left}.logo-center-v8{justify-content:flex-start}.date-box-v8{text-align:left!important}}
@media print{.order-top-v8{display:grid!important;grid-template-columns:1fr 110px 1fr!important;gap:5px!important;padding-bottom:4px!important;margin-bottom:4px!important}.print-logo-v8{width:72px!important;max-height:42px!important;background:transparent!important}.form-title-row-v8{padding:4px 0!important;margin-bottom:4px!important}.form-title-row-v8 h2{font-size:15px!important;color:#000!important}.date-box-v8{font-size:8.5px!important;justify-self:end!important;text-align:right!important;max-width:180px!important}.sales-mini{gap:3px!important}.sales-avatar{display:none!important}.company-info h3{font-size:13px!important;margin-bottom:2px!important;color:#000!important}.order-print-card .mb-3,.order-print-card .mb-2{margin-bottom:3px!important}.order-print-card .mt-3,.order-print-card .mt-4,.order-print-card .pt-3,.order-print-card .pb-3{margin-top:3px!important;padding-top:3px!important;margin-bottom:3px!important;padding-bottom:3px!important}.order-print-card .table{margin-bottom:3px!important}.order-print-card .compact-info th,.order-print-card .order-info th{background:#f8fafc!important;color:#334155!important;border-color:#d1d5db!important}.order-print-card .compact-info .section-title{background:#eef2ff!important;color:#111827!important}.order-print-card .compact-info td,.order-print-card .order-info td{background:#fff!important;color:#000!important;border-color:#d1d5db!important}.order-print-card .signature-line{border-top-color:#000!important;color:#000!important}.print-product-img{max-width:70px!important;max-height:46px!important;padding:1px!important;background:#fff!important}.qr-img{width:46px!important;height:46px!important;padding:1px!important;border-radius:4px!important;background:#fff!important;border-color:#e2e8f0!important}.customer-address-block{font-size:8.5px!important;line-height:1.1!important}.logo-placeholder{width:68px!important;height:34px!important;font-size:8px!important;background:#fff!important}.order-print-tail{page-break-inside:avoid!important;break-inside:avoid-page!important}.order-form-footer-note{margin-top:4px!important;padding-top:4px!important;border-color:#d1d5db!important}.order-form-footer-note .fw-bold{font-size:8.5px!important;margin-bottom:2px!important;color:#000!important}.order-form-footer-content{font-size:7.5px!important;line-height:1.1!important;color:#475569!important}.order-form-footer-content p{margin:0 0 1px!important}.order-form-footer-content ul,.order-form-footer-content ol{margin:1px 0 1px .85rem!important;padding:0!important}.order-form-footer-content li{margin:0!important;padding:0!important}.signature-grid>div>div{padding-top:4px!important;font-size:8px!important}}

/* Ana sayfa — kompakt teslimat uyarı şeridi */
.delivery-alert-strip{position:relative;display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;font-size:.84rem;overflow:hidden;border:1px solid transparent}
.delivery-alert-strip__pulse{position:absolute;inset:0;pointer-events:none;opacity:0}
.delivery-alert-strip__body{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px}
.delivery-alert-strip__title{font-weight:700;white-space:nowrap}
.delivery-alert-strip__detail{color:inherit;opacity:.92;font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.delivery-alert-strip__btn{flex-shrink:0;font-weight:600;border-radius:10px!important}
.delivery-alert-strip--danger{background:#fef2f2;border-color:#fecaca;color:#991b1b;animation:delivery-strip-bg-danger 1.4s ease-in-out infinite}
.delivery-alert-strip--danger .delivery-alert-strip__pulse{background:linear-gradient(90deg,transparent,rgba(220,38,38,.12),transparent);animation:delivery-strip-shine 2s linear infinite}
.delivery-alert-strip--danger .delivery-alert-strip__btn{background:#fff;color:#b91c1c;border:1px solid #fca5a5}
.delivery-alert-strip--warn{background:#fffbeb;border-color:#fde68a;color:#92400e;animation:delivery-strip-bg-warn 2s ease-in-out infinite}
.delivery-alert-strip--warn .delivery-alert-strip__btn{background:#fff;color:#b45309;border:1px solid #fcd34d}
.delivery-alert-strip--renewal-pending{background:#fffbeb;border-color:#f59e0b;color:#78350f;animation:renewal-pending-blink 1.1s ease-in-out infinite}
.delivery-alert-strip--renewal-pending .delivery-alert-strip__pulse{background:linear-gradient(90deg,transparent,rgba(245,158,11,.22),transparent);animation:delivery-strip-shine 1.4s linear infinite;opacity:1}
.delivery-alert-strip--renewal-pending .delivery-alert-strip__btn{background:#1a1a1a;color:#fff;border:0}
.delivery-alert-strip--renewal-pending .delivery-alert-strip__btn:hover{background:#000;color:#fff}
@keyframes renewal-pending-blink{0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,.5);background:#fffbeb}50%{box-shadow:0 0 0 6px rgba(245,158,11,0);background:#fde047}}
.platform-expiring-blink{color:#b91c1c!important;font-weight:700!important;animation:platform-expiring-blink 1.1s ease-in-out infinite}
.platform-expiring-card{border-color:#fecaca!important}
.platform-expiring-row{--bs-table-bg:#fef2f2}
@keyframes platform-expiring-blink{0%,100%{opacity:1;text-shadow:0 0 0 rgba(185,28,28,0)}50%{opacity:.45;text-shadow:0 0 8px rgba(185,28,28,.35)}}
@keyframes delivery-strip-bg-danger{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.25)}50%{box-shadow:0 0 0 3px rgba(220,38,38,.12);background:#fee2e2}}
@keyframes delivery-strip-bg-warn{0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,.2)}50%{box-shadow:0 0 0 3px rgba(245,158,11,.1);background:#fef3c7}}
@keyframes delivery-strip-shine{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
@media(max-width:576px){.delivery-alert-strip{flex-wrap:wrap}.delivery-alert-strip__detail{white-space:normal}.delivery-alert-strip__btn{width:100%}}

/* Kısıtlı üyelik — üst bant (teslimat şeridi ile aynı ölçek) */
.subscription-expired-strip{border-radius:0!important;margin:0 -1rem .75rem -1rem}
@media(min-width:768px){.subscription-expired-strip{margin:0 -1.5rem 0 -1.5rem}}
.subscription-expired-strip__who{font-weight:800;color:#7f1d1d;white-space:nowrap}
.subscription-expired-strip__phone{font-weight:800;font-size:1.02em;color:#b91c1c!important;text-decoration:underline!important;text-underline-offset:3px;white-space:nowrap}
.subscription-expired-strip__phone:hover{color:#991b1b!important}
.subscription-expired-strip .delivery-alert-strip__detail{white-space:normal}
@media(max-width:576px){.subscription-expired-strip{flex-wrap:wrap}.subscription-expired-strip .delivery-alert-strip__body{flex-direction:column;align-items:flex-start}}
body.company-readonly-mode .btn-dark:not(.no-print):not(.readonly-allow),
body.company-readonly-mode .btn-success:not(.no-print):not(.readonly-allow),
body.company-readonly-mode .btn-danger:not(.no-print):not(.readonly-allow),
body.company-readonly-mode .btn-warning:not(.no-print):not(.readonly-allow),
body.company-readonly-mode input[type=submit]:not(.no-print):not(.readonly-allow),
body.company-readonly-mode button[type=submit]:not(.no-print):not(.readonly-allow){pointer-events:none;opacity:.55}
a.cash-order-receipt-link{text-decoration:none!important}
a.cash-order-receipt-link:hover code{text-decoration:underline}
a.cash-order-receipt-link code{cursor:pointer;font-weight:600}
@media print{
.cashbox-print-area,.platform-cashbox-print-area{box-shadow:none!important;border:1px solid #333!important;background:#fff!important;color:#111!important}
.cashbox-print-area h5,.platform-cashbox-print-area h5,.cashbox-print-area .print-only,.platform-cashbox-print-area .print-only{color:#000!important;font-weight:700!important}
.cashbox-print-area .table,.platform-cashbox-print-area .table{font-size:11px;--bs-table-color:#111;--bs-table-bg:#fff;--bs-table-border-color:#333;--bs-table-striped-color:#111;--bs-table-striped-bg:#f8fafc;--bs-table-hover-color:#111;--bs-table-hover-bg:#fff}
.cashbox-print-area .table th,.cashbox-print-area .table td,.platform-cashbox-print-area .table th,.platform-cashbox-print-area .table td{color:#111!important;background-color:#fff!important;border-color:#333!important}
.cashbox-print-area .fw-bold,.cashbox-print-area .fw-semibold,.platform-cashbox-print-area .fw-bold,.platform-cashbox-print-area .fw-semibold{color:#000!important}
.cashbox-print-area .text-muted,.platform-cashbox-print-area .text-muted{color:#374151!important}
.cashbox-print-area .text-success,.platform-cashbox-print-area .text-success{color:#166534!important;font-weight:700!important}
.cashbox-print-area .text-danger,.platform-cashbox-print-area .text-danger{color:#991b1b!important;font-weight:700!important}
.cashbox-print-area .badge,.platform-cashbox-print-area .badge{color:#111!important;border:1px solid #333!important;font-weight:700!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.cashbox-print-area .badge.bg-success,.platform-cashbox-print-area .badge.bg-success{background:#dcfce7!important;color:#14532d!important}
.cashbox-print-area .badge.bg-danger,.platform-cashbox-print-area .badge.bg-danger{background:#fee2e2!important;color:#7f1d1d!important}
.cashbox-print-area a,.platform-cashbox-print-area a{color:#111!important;text-decoration:none!important}
body:has(.platform-cashbox-print-area) main .alert,
body:has(.platform-cashbox-print-area) main .row.g-3 > .no-print{display:none!important}
body:has(.platform-cashbox-print-area) main .platform-cashbox-print-area{display:block!important;width:100%!important}
body:has(.earnings-print-area) main .alert,
body:has(.earnings-print-area) main .card.no-print,
body:has(.earnings-print-area) main .row.g-3 > .no-print{display:none!important}
body:has(.earnings-print-area) main .earnings-print-area{display:block!important;width:100%!important}
body:has(.cashbox-print-area) main .row.g-3 > .no-print,
body:has(.cashbox-print-area) main .card:not(.cashbox-print-area){display:none!important}
body:has(.cashbox-print-area) main .cashbox-print-area{display:block!important;width:100%!important}
.cashbox-print-summary .card{break-inside:avoid;page-break-inside:avoid}
}
.cashbox-rates-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.65rem;font-weight:700;background:rgba(255,255,255,.22);color:#fff;border:1px solid rgba(255,255,255,.35)}
.cashbox-print-summary .card.text-white,.cashbox-print-summary .card.text-white .fw-bold,.cashbox-print-summary .card.text-white .fw-semibold,.cashbox-print-summary .card.text-white small,.cashbox-print-summary .card.text-white span{color:#fff!important}
.cashbox-summary-table th{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--bs-secondary-color)}
.cashbox-summary-table td,.cashbox-summary-table th{padding:.55rem .65rem}
.cashbox-summary-tabs .btn{font-weight:600}
.cashbox-channel-subrow td{border-top:none!important;padding-top:.15rem;padding-bottom:.15rem}
.cashbox-channel-total td{border-top:1px solid var(--bs-border-color);padding-top:.65rem}
.cashbox-channel-nakit td{border-top:1px solid var(--bs-border-color)}
[data-bs-theme="dark"] .cashbox-channel-total td{border-top-color:rgba(255,255,255,.12)}
.cashbox-bank-card{border:1px solid var(--bs-border-color);border-radius:12px;padding:.85rem 1rem;background:var(--bs-body-bg)}
.cashbox-bank-card.is-bank{border-left:4px solid #4f46e5}
.cashbox-bank-card.is-pos{border-left:4px solid #0ea5e9}
.cashbox-bank-card.is-nakit{border-left:4px solid #10b981}
.cashbox-bank-card-title{font-weight:700;font-size:.95rem;margin-bottom:.15rem}
.cashbox-bank-line:first-of-type{border-top:none!important}
[data-bs-theme="dark"] .cashbox-bank-card{background:rgba(255,255,255,.03)}
[data-bs-theme="dark"] .cashbox-summary-card{background:rgba(255,255,255,.03)}
body.company-readonly-mode .license-renewal-form,
body.company-readonly-mode .license-renewal-form input,
body.company-readonly-mode .license-renewal-form textarea,
body.company-readonly-mode .license-renewal-form button{pointer-events:auto!important;opacity:1!important}
.subscription-support-phone{color:inherit;text-decoration:underline;text-underline-offset:3px}
.subscription-support-phone:hover{color:#0d6efd}
.subscription-support-call{display:inline-flex;align-items:center;gap:.5rem;padding:.65rem 1.1rem;border-radius:12px;background:#0f766e;color:#fff!important;font-weight:700;text-decoration:none!important}
.subscription-support-call:hover{background:#0d9488;color:#fff!important}
.order-status-badge{font-weight:600;font-size:.78rem;letter-spacing:.02em;border:1px solid transparent}
.order-status-badge.order-status--waiting{background:#fef3c7;color:#92400e;border-color:#fcd34d}
.order-status-badge.order-status--production{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd}
.order-status-badge.order-status--ready{background:#d1fae5;color:#047857;border-color:#6ee7b7}
.order-status-badge.order-status--delivered{background:#bbf7d0;color:#14532d;border-color:#4ade80}
.order-status-badge.order-status--cancelled{background:#fee2e2;color:#991b1b;border-color:#fca5a5}
.order-status-legend .order-status-badge{cursor:default}
body.company-readonly-mode a[href*="action=new"],
body.company-readonly-mode a[href*="quick_order.php"],
body.company-readonly-mode a[href*="action=edit"],
body.company-readonly-mode a[href*="delete"]{pointer-events:none;opacity:.5}
body.company-readonly-mode a[href^="tel:"],
body.company-readonly-mode a.readonly-allow{pointer-events:auto!important;opacity:1!important}

/* Tema: açık (beyaz) / koyu (siyah) — data-bs-theme html üzerinde */
[data-bs-theme="dark"] body{background:linear-gradient(135deg,#0f172a 0%,#1e1b4b 100%);color:#e2e8f0}
[data-bs-theme="dark"] .topbar{background:rgba(30,41,59,.88);border-color:rgba(51,65,85,.85);box-shadow:0 18px 40px rgba(0,0,0,.2)}
[data-bs-theme="dark"] .card{--card:#1e293b;border-color:rgba(71,85,105,.75);box-shadow:0 20px 45px rgba(0,0,0,.22)}
[data-bs-theme="dark"] .form-control,[data-bs-theme="dark"] .form-select{background-color:#0f172a;border-color:#475569;color:#e2e8f0}
[data-bs-theme="dark"] .form-control:focus,[data-bs-theme="dark"] .form-select:focus{border-color:#94a3b8;box-shadow:0 0 0 .2rem rgba(148,163,184,.2)}
[data-bs-theme="dark"] .table{--bs-table-bg:transparent;--bs-table-striped-bg:rgba(255,255,255,.04);--bs-table-hover-bg:rgba(255,255,255,.06);--bs-table-color:#e2e8f0}
[data-bs-theme="dark"] .table th{color:#94a3b8}
[data-bs-theme="dark"] .customer-invoice-ready{background:linear-gradient(90deg,rgba(22,163,74,.2) 0%,rgba(30,41,59,.45) 58%)!important;border-left-color:#22c55e}
[data-bs-theme="dark"] .customer-invoice-ready td{color:#e2e8f0}
[data-bs-theme="dark"] .orders-table-wrap .table-warning{--bs-table-bg:rgba(120,53,15,.24);--bs-table-color:#fde68a;--bs-table-hover-bg:rgba(120,53,15,.34);--bs-table-border-color:rgba(180,83,9,.35)}
[data-bs-theme="dark"] .orders-table-wrap .table-danger{--bs-table-bg:rgba(127,29,29,.28);--bs-table-color:#fecaca;--bs-table-hover-bg:rgba(127,29,29,.38);--bs-table-border-color:rgba(185,28,28,.35)}
[data-bs-theme="dark"] .orders-table-wrap .table-warning .text-danger,[data-bs-theme="dark"] .orders-table-wrap .table-danger .text-danger{color:#fca5a5!important}
[data-bs-theme="dark"] .orders-table-wrap .table-warning .text-success{color:#86efac!important}
[data-bs-theme="dark"] .orders-table-wrap .order-customer-phone{color:#e2e8f0!important;background:rgba(15,23,42,.45);padding:2px 8px;border-radius:6px;border:1px solid #64748b}
[data-bs-theme="dark"] .orders-table-wrap a.order-customer-phone:hover{color:#fff!important}
[data-bs-theme="dark"] .orders-table-wrap .order-form-btn,[data-bs-theme="dark"] .orders-table-wrap .btn-outline-dark{--bs-btn-color:#e2e8f0;--bs-btn-border-color:#94a3b8;--bs-btn-bg:rgba(15,23,42,.35);--bs-btn-hover-color:#0f172a;--bs-btn-hover-bg:#e2e8f0;--bs-btn-hover-border-color:#e2e8f0}
[data-bs-theme="dark"] .badge-success-soft{background:rgba(22,163,74,.28);color:#86efac}
[data-bs-theme="dark"] .badge-warning-soft{background:rgba(180,83,9,.32);color:#fde68a}
[data-bs-theme="dark"] .badge-danger-soft{background:rgba(185,28,28,.32);color:#fecaca}
[data-bs-theme="dark"] .order-internal-note-btn,[data-bs-theme="dark"] .order-status-reason-btn{color:#fde68a!important;border-color:#b45309!important;background:rgba(120,53,15,.35)!important}
[data-bs-theme="dark"] .order-status-reason-btn--cancel{color:#fecaca!important;border-color:#f87171!important;background:rgba(127,29,29,.35)!important}
[data-bs-theme="dark"] .form-control.bg-light,[data-bs-theme="dark"] .form-control.license-field-readonly{background-color:#1e293b!important;border-color:#475569;color:#94a3b8}
[data-bs-theme="dark"] .platform-expiring-row{--bs-table-bg:#3f1d1d}
[data-bs-theme="dark"] .platform-expiring-card{border-color:#7f1d1d!important}
[data-bs-theme="dark"] .modal-content{background-color:#1e293b;border-color:#475569;color:#e2e8f0}
[data-bs-theme="dark"] .modal-header,[data-bs-theme="dark"] .modal-footer{border-color:#475569}
[data-bs-theme="dark"] .modal-title{color:#f1f5f9}
[data-bs-theme="dark"] .btn-close{filter:invert(1) grayscale(100%) brightness(200%)}
[data-bs-theme="dark"] .btn-light,[data-bs-theme="dark"] .btn-outline-secondary{
  --bs-btn-color:#e2e8f0;
  --bs-btn-bg:#334155;
  --bs-btn-border-color:#64748b;
  --bs-btn-hover-color:#fff;
  --bs-btn-hover-bg:#475569;
  --bs-btn-hover-border-color:#94a3b8;
  --bs-btn-active-color:#fff;
  --bs-btn-active-bg:#64748b;
  --bs-btn-active-border-color:#94a3b8;
}
[data-bs-theme="dark"] .btn-outline-dark{
  --bs-btn-color:#e2e8f0;
  --bs-btn-bg:transparent;
  --bs-btn-border-color:#94a3b8;
  --bs-btn-hover-color:#0f172a;
  --bs-btn-hover-bg:#e2e8f0;
  --bs-btn-hover-border-color:#e2e8f0;
  --bs-btn-active-color:#0f172a;
  --bs-btn-active-bg:#cbd5e1;
  --bs-btn-active-border-color:#cbd5e1;
}
[data-bs-theme="dark"] .btn-dark{
  --bs-btn-color:#fff;
  --bs-btn-bg:#6366f1;
  --bs-btn-border-color:#6366f1;
  --bs-btn-hover-color:#fff;
  --bs-btn-hover-bg:#4f46e5;
  --bs-btn-hover-border-color:#4f46e5;
  --bs-btn-active-bg:#4338ca;
  --bs-btn-active-border-color:#4338ca;
}
[data-bs-theme="dark"] .catalog-quick-add-group .btn-outline-dark{
  --bs-btn-bg:rgba(15,23,42,.6);
  --bs-btn-hover-color:#0f172a;
}
[data-bs-theme="dark"] .input-group .form-select{border-right-color:#475569}
[data-bs-theme="dark"] .text-muted{color:#94a3b8!important}
[data-bs-theme="dark"] .text-dark{color:#f1f5f9!important}
[data-bs-theme="dark"] .bg-light{--bs-bg-opacity:1;background-color:#334155!important;color:#e2e8f0!important}
[data-bs-theme="dark"] .order-form-footer-content{color:#94a3b8}
[data-bs-theme="dark"] .delivery-alert-strip--renewal-pending{color:#fde68a}

/* Sipariş formu — koyu tema (ekran); yazdırma aşağıda ayrıca beyaz kağıt */
@media screen{
[data-bs-theme="dark"] .order-print-card{color:#e2e8f0}
[data-bs-theme="dark"] .order-print-card .company-info h3,[data-bs-theme="dark"] .order-print-card .form-title-row-v8 h2,[data-bs-theme="dark"] .order-print-card .date-box-v8 b{color:#f1f5f9}
[data-bs-theme="dark"] .order-top-v8,[data-bs-theme="dark"] .form-title-row-v8,[data-bs-theme="dark"] .order-form-footer-note{border-color:#475569!important}
[data-bs-theme="dark"] .order-print-card .table-bordered{--bs-table-border-color:#475569;--bs-table-color:#e2e8f0}
[data-bs-theme="dark"] .order-print-card .compact-info th,[data-bs-theme="dark"] .order-print-card .order-info th{background:#334155!important;color:#cbd5e1!important;border-color:#475569!important}
[data-bs-theme="dark"] .order-print-card .compact-info .section-title{background:rgba(99,102,241,.35)!important;color:#e0e7ff!important;border-color:#475569!important}
[data-bs-theme="dark"] .order-print-card .compact-info td,[data-bs-theme="dark"] .order-print-card .order-info td{background:#1e293b!important;color:#e2e8f0!important;border-color:#475569!important}
[data-bs-theme="dark"] .order-print-card .print-logo-v8{background:#0f172a;border-radius:10px;padding:6px}
[data-bs-theme="dark"] .order-print-card .logo-placeholder{background:#0f172a;border-color:#64748b;color:#94a3b8}
[data-bs-theme="dark"] .order-print-card .qr-img{background:#0f172a;border-color:#475569}
[data-bs-theme="dark"] .order-print-card .signature-line{border-top-color:#94a3b8!important;color:#cbd5e1}
[data-bs-theme="dark"] .order-print-card .print-product-img{background:#0f172a;border-color:#475569}
}
.signature-line{border-top:1px solid #000;padding-top:6px}

/* Ayarlar — Quill editör & logo */
.order-footer-editor{min-height:220px;background:#fff;border:1px solid #dee2e6;border-radius:.75rem;overflow:hidden}
.order-footer-editor .ql-toolbar.ql-snow{border:0;border-bottom:1px solid #dee2e6;background:#f8fafc}
.order-footer-editor .ql-container.ql-snow{border:0;font-size:.95rem}
.order-footer-editor .ql-editor{min-height:180px;color:#0f172a;line-height:1.5}
.settings-logo-preview-wrap{display:inline-block;padding:10px;background:#fff;border:1px solid #e2e8f0;border-radius:14px}
.settings-logo-preview{display:block;max-width:220px;max-height:78px;object-fit:contain}
[data-bs-theme="dark"] .order-footer-editor{background:#0f172a;border-color:#475569}
[data-bs-theme="dark"] .order-footer-editor .ql-toolbar.ql-snow{background:#1e293b;border-bottom-color:#475569}
[data-bs-theme="dark"] .order-footer-editor .ql-editor{color:#e2e8f0;background:#0f172a}
[data-bs-theme="dark"] .order-footer-editor .ql-editor.ql-blank::before{color:#64748b}
[data-bs-theme="dark"] .ql-snow .ql-stroke{stroke:#cbd5e1}
[data-bs-theme="dark"] .ql-snow .ql-fill{fill:#cbd5e1}
[data-bs-theme="dark"] .ql-snow .ql-picker{color:#e2e8f0}
[data-bs-theme="dark"] .ql-snow .ql-picker-options{background:#1e293b;border-color:#475569}
[data-bs-theme="dark"] .order-form-logo-specs{background:#334155!important;border-color:#475569!important;color:#e2e8f0}
[data-bs-theme="dark"] .order-form-logo-specs .text-muted{color:#94a3b8!important}
[data-bs-theme="dark"] .settings-logo-preview-wrap{background:#1e293b;border-color:#475569}
.settings-logo-card{border:1px solid #e2e8f0}
.settings-logo-upload-zone{padding:16px;border:2px dashed #94a3b8;border-radius:16px;background:rgba(248,250,252,.85)}
.settings-logo-preview-box{display:flex;align-items:center;justify-content:center;min-width:200px;min-height:96px;padding:12px;background:#fff;border:1px solid #e2e8f0;border-radius:14px}
.settings-logo-preview{display:block;max-width:200px;max-height:78px;object-fit:contain}
.settings-logo-placeholder{text-align:center;font-weight:800;font-size:.85rem;line-height:1.35;color:#64748b}
.settings-logo-file-input{max-width:480px;border:2px solid #cbd5e1;background:#fff}
.settings-logo-file-input:focus{border-color:#6366f1;box-shadow:0 0 0 .2rem rgba(99,102,241,.2)}
[data-bs-theme="dark"] .settings-logo-card{border-color:#475569}
[data-bs-theme="dark"] .settings-logo-upload-zone{background:rgba(15,23,42,.55);border-color:#64748b}
[data-bs-theme="dark"] .settings-logo-preview-box{background:#1e293b;border-color:#475569}
[data-bs-theme="dark"] .settings-logo-placeholder{color:#94a3b8}
[data-bs-theme="dark"] .settings-logo-file-input{background:#0f172a;border-color:#64748b;color:#e2e8f0}
[data-bs-theme="dark"] .settings-logo-file-input::file-selector-button{background:#334155;border-color:#64748b;color:#e2e8f0}
.theme-toggle-sidebar{width:100%;margin-top:8px;color:#dbeafe;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:11px 14px;display:flex;align-items:center;gap:10px;font-weight:600;cursor:pointer;transition:background .2s}
.theme-toggle-sidebar:hover{background:rgba(255,255,255,.16);color:#fff}
.theme-toggle-topbar{white-space:nowrap}

/* Sidebar — Ayarlar alt menü */
.nav-submenu-head{display:flex;align-items:stretch;gap:2px}
.nav-submenu-main{flex:1;color:#dbeafe!important;text-decoration:none;display:flex;align-items:center;padding:11px 14px;border-radius:14px;font-weight:500;transition:background .2s,color .2s}
.nav-submenu-main:hover,.nav-submenu-main.active{background:rgba(255,255,255,.14);color:#fff!important}
.nav-submenu-chevron-btn{flex:0 0 auto;border:0;background:transparent;color:#dbeafe;padding:11px 12px;border-radius:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s}
.nav-submenu-chevron-btn:hover,.nav-submenu-chevron-btn:not(.collapsed){background:rgba(255,255,255,.14);color:#fff}
.nav-submenu-chevron-btn .nav-submenu-chevron{margin:0}
.nav-submenu-chevron-btn:not(.collapsed) .nav-submenu-chevron{transform:rotate(-135deg);margin-top:4px}
.nav-submenu{margin:4px 0 6px}
.nav-submenu-toggle{width:100%;border:0;background:transparent;color:#dbeafe;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;border-radius:14px;font:inherit;font-weight:500;cursor:pointer;transition:background .2s,color .2s}
.nav-submenu-toggle:hover,.nav-submenu-toggle:not(.collapsed){background:rgba(255,255,255,.14);color:#fff}
.nav-submenu-chevron{display:inline-block;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s;margin-right:4px;opacity:.85}
.nav-submenu-toggle:not(.collapsed) .nav-submenu-chevron{transform:rotate(-135deg);margin-top:4px}
.nav-submenu .collapse{padding:2px 0 4px 8px}
.nav-submenu-link{color:#cbd5e1!important;text-decoration:none;display:block;padding:8px 14px 8px 22px;border-radius:12px;font-size:.92rem;margin:1px 0;transition:background .2s,color .2s}
.nav-submenu-link:hover,.nav-submenu-link.active{background:rgba(255,255,255,.12);color:#fff!important}
.nav-submenu--nested{margin:2px 0 4px;padding-left:6px}
.nav-submenu-toggle--nested{padding:8px 14px 8px 20px;font-size:.92rem}
.nav-submenu--nested .nav-submenu-link{padding-left:28px;font-size:.88rem}
.phone-call-link{font-weight:600;text-decoration:none;color:#4f46e5}
.phone-call-link:hover{text-decoration:underline;color:#4338ca}
[data-bs-theme="dark"] .phone-call-link{color:#a5b4fc}
[data-bs-theme="dark"] .phone-call-link:hover{color:#c7d2fe}

.orders-subnav .nav-link{border-radius:999px;font-weight:600;color:#475569;padding:8px 16px;background:rgba(255,255,255,.7);border:1px solid #e2e8f0}
.orders-subnav .nav-link.active{background:#1e293b;color:#fff;border-color:#1e293b}
.orders-subnav-badge{display:inline-block;min-width:1.4em;padding:1px 7px;margin-left:4px;border-radius:999px;font-size:.72rem;font-weight:700;background:rgba(0,0,0,.08)}
.orders-subnav .nav-link.active .orders-subnav-badge{background:rgba(255,255,255,.2)}
[data-bs-theme="dark"] .orders-subnav .nav-link{background:rgba(30,41,59,.6);border-color:#475569;color:#cbd5e1}
[data-bs-theme="dark"] .orders-subnav .nav-link.active{background:#6366f1;border-color:#6366f1;color:#fff}

/* Ana sayfa — dashboard widget'ları */
.dash-widget-card{border:0;box-shadow:0 4px 24px rgba(15,23,42,.06);border-radius:16px}
.dash-widget-label{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#64748b}
.dash-live-clock{font-size:2.4rem;font-weight:800;line-height:1.1;letter-spacing:-.02em;color:#1e293b;font-variant-numeric:tabular-nums}
.dash-live-date{font-size:.88rem;margin-top:4px}
.dash-weather-temp{font-size:1.75rem;font-weight:700;color:#0ea5e9}
.dash-rate-item{border-radius:12px;padding:10px 12px;height:100%;display:flex;flex-direction:column;gap:2px}
.dash-rate-code{font-size:.7rem;font-weight:700;text-transform:uppercase;opacity:.85}
.dash-rate-val{font-size:1rem;font-weight:700;font-variant-numeric:tabular-nums}
.dash-rate-hint{font-size:.65rem}
.dash-rate-item--usd{background:linear-gradient(135deg,#eff6ff,#dbeafe);color:#1e40af}
.dash-rate-item--eur{background:linear-gradient(135deg,#f0fdf4,#dcfce7);color:#166534}
.dash-rate-item--gbp{background:linear-gradient(135deg,#faf5ff,#ede9fe);color:#5b21b6}
.dash-rate-item--gold{background:linear-gradient(135deg,#fffbeb,#fef3c7);color:#92400e}
.dash-chart-wrap{position:relative;height:220px}
.dash-activity-list{max-height:280px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}
.dash-activity-item{padding-bottom:10px;border-bottom:1px solid rgba(148,163,184,.25)}
.dash-activity-item:last-child{border-bottom:0;padding-bottom:0}
.dash-activity-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:4px}
.dash-activity-body{font-size:.88rem;line-height:1.35}
.dash-mini-list{display:flex;flex-direction:column;gap:10px}
.dash-mini-list__item{padding:8px 10px;border-radius:10px;background:rgba(248,250,252,.9);border:1px solid rgba(226,232,240,.9)}
.dash-mini-list__item--warn{border-color:#fde68a;background:#fffbeb}
.dash-mini-list__item--danger{border-color:#fecaca;background:#fef2f2}
.dash-staff-sales{display:block;font-weight:700;color:#4f46e5;font-size:.95rem}
[data-bs-theme="dark"] .dash-live-clock{color:#f1f5f9}
[data-bs-theme="dark"] .dash-rate-item--usd{background:rgba(30,58,138,.35);color:#bfdbfe}
[data-bs-theme="dark"] .dash-rate-item--eur{background:rgba(20,83,45,.35);color:#bbf7d0}
[data-bs-theme="dark"] .dash-rate-item--gbp{background:rgba(76,29,149,.35);color:#ddd6fe}
[data-bs-theme="dark"] .dash-rate-item--gold{background:rgba(120,53,15,.35);color:#fde68a}
[data-bs-theme="dark"] .dash-mini-list__item{background:rgba(15,23,42,.5);border-color:rgba(71,85,105,.6)}
[data-bs-theme="dark"] .dash-mini-list__item--warn{background:rgba(120,53,15,.25);border-color:#b45309}
[data-bs-theme="dark"] .dash-mini-list__item--danger{background:rgba(127,29,29,.3);border-color:#b91c1c}
[data-bs-theme="dark"] .dash-staff-sales{color:#a5b4fc}
[data-bs-theme="dark"] .dash-activity-item{border-color:rgba(71,85,105,.5)}

/* Lisans kontrol */
.license-page-header{margin-bottom:1.25rem}
.license-status-card{border-radius:20px;overflow:hidden}
.license-status-card--expired{border-color:#dc2626!important}
.license-status-card--warn{border-color:#f59e0b!important}
.license-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(min-width:768px){.license-metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.license-metric{background:rgba(248,250,252,.85);border:1px solid #e2e8f0;border-radius:14px;padding:12px 14px;min-height:100%}
.license-metric-label{display:block;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#64748b;margin-bottom:4px}
.license-metric-value{font-size:.95rem;font-weight:700;color:#0f172a;line-height:1.35;word-break:break-word}
.license-metric-value--lg{font-size:1.15rem}
.license-days-pill{display:inline-flex;align-items:center;justify-content:center;min-width:88px;padding:10px 16px;border-radius:999px;font-weight:800;font-size:1rem}
.license-days-pill--ok{background:#dcfce7;color:#166534}
.license-days-pill--warn{background:#fef3c7;color:#92400e}
.license-days-pill--danger{background:#fee2e2;color:#991b1b}
.license-renew-card .form-label{font-size:.85rem;font-weight:600;margin-bottom:.35rem}
.license-field-readonly{background:#f1f5f9;border-color:#e2e8f0;color:#64748b;cursor:default}
.license-requests-table th{font-size:.72rem}
[data-bs-theme="dark"] .license-metric{background:rgba(15,23,42,.55);border-color:#475569}
[data-bs-theme="dark"] .license-metric-label{color:#94a3b8}
[data-bs-theme="dark"] .license-metric-value{color:#f1f5f9}
[data-bs-theme="dark"] .license-days-pill--ok{background:rgba(22,163,74,.28);color:#86efac}
[data-bs-theme="dark"] .license-days-pill--warn{background:rgba(180,83,9,.32);color:#fde68a}
[data-bs-theme="dark"] .license-days-pill--danger{background:rgba(185,28,28,.32);color:#fecaca}

/* === Mobil & tablet uyumluluk === */
html{-webkit-text-size-adjust:100%}
body{overflow-x:hidden}
.page-main{min-width:0;max-width:100%}
.page-body{min-width:0}
.min-w-0{min-width:0!important}
.text-break{word-break:break-word;overflow-wrap:anywhere}
.alert code.text-break{display:inline;word-break:break-all;white-space:normal}
.table-responsive{-webkit-overflow-scrolling:touch}

@media(max-width:991.98px){
  .app-shell{display:block;min-height:0}
  .app-shell-body{width:100%;min-height:0}
  .app-shell>.sidebar.offcanvas-lg{position:fixed!important;top:0;left:0;z-index:2000;width:min(300px,88vw)!important;min-height:0!important;max-height:100vh!important;height:100vh!important;border-radius:0;overflow-x:hidden;overflow-y:auto;transform:translateX(-100%);visibility:hidden;pointer-events:none!important;display:flex!important;flex-direction:column}
  .app-shell>.sidebar.offcanvas-lg.show,.app-shell>.sidebar.offcanvas-lg.showing{transform:none!important;visibility:visible!important;pointer-events:auto!important;display:flex!important}
  .app-shell>.sidebar.offcanvas-lg:not(.show):not(.showing){display:none!important;height:0!important;max-height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;visibility:hidden!important;pointer-events:none!important;transform:none!important}
  .sidebar{min-height:0!important;position:fixed!important}
  .offcanvas-backdrop{pointer-events:none}
  .offcanvas-backdrop.show{pointer-events:auto}
  .page-main{max-width:100%;width:100%;padding-top:0!important;margin-top:0!important}
  .page-main>.topbar{display:none!important}
  .row>.col-lg-4,.row>.col-lg-5,.row>.col-lg-6,.row>.col-lg-7,.row>.col-lg-8,.row>.col-lg-9,.row>.col-lg-10,.row>.col-lg-11{
    flex:0 0 100%;max-width:100%
  }
  .sidebar a{font-size:.93rem;padding:10px 12px;white-space:normal;word-break:break-word}
  .brand.brand--logo-only .brand-logo-full{max-height:48px;padding:6px 10px}
}

@media(min-width:992px){
  .app-shell{display:flex;flex-direction:row;align-items:stretch;min-height:100vh}
  .app-shell>.sidebar.offcanvas-lg{position:sticky!important;top:0;flex:0 0 16.666667%;width:16.666667%!important;max-width:16.666667%;height:100vh!important;min-height:100vh;display:flex!important;flex-direction:column;transform:none!important;visibility:visible!important;pointer-events:auto!important;overflow-x:hidden;overflow-y:auto;border-radius:0;z-index:1000}
  .app-shell-body{flex:1 1 auto;min-width:0;width:auto}
  .page-main{width:100%}
}

@media(max-width:767.98px){
  .page-main>.topbar.d-none-mobile-topbar{display:none!important}
  .page-main>.topbar{display:none!important}
  .topbar-actions{width:100%;justify-content:space-between}
  .card.p-3,.card.p-4{padding:1rem!important}
  .row>[class*="col-md-"],.row>[class*="col-lg-"],.row>[class*="col-xl-"]{
    flex:0 0 100%;max-width:100%
  }
  .table{font-size:.84rem}
  .table th,.table td{vertical-align:middle}
  .table .text-nowrap{white-space:normal!important}
  .table .btn-sm{margin:2px 0}
  .form-control,.form-select{font-size:16px}
  .btn:not(.btn-link){min-height:40px}
  .modal-dialog{margin:.65rem;max-width:calc(100% - 1.3rem)}
  .modal-body{max-height:min(70vh,520px);overflow-y:auto}
  .orders-subnav{flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:6px;margin-bottom:12px!important}
  .orders-subnav .nav-link{flex:0 0 auto;white-space:nowrap}
  .orders-table-wrap .table{min-width:880px}
  .order-seen-cell{min-width:128px}
  .order-seen-admin-form{max-width:100%}
  .catalog-quick-add-group .form-select{min-width:0;flex:1 1 auto}
  .settings-logo-upload-zone .row{flex-direction:column}
  .settings-logo-preview-box{width:100%}
  .dash-live-clock{font-size:1.75rem}
  .dash-chart-wrap{height:200px}
  .d-flex.gap-2.flex-wrap>.btn,.col-md-12.d-flex.gap-2>.btn{flex:1 1 calc(50% - .5rem);min-width:0}
  .subscription-expired-strip{margin-left:calc(-1 * var(--bs-gutter-x, .75rem));margin-right:calc(-1 * var(--bs-gutter-x, .75rem))}
}

@media(min-width:768px) and (max-width:991.98px){
  .brand-logo-full-mobile{height:40px!important;max-height:40px!important;max-width:min(200px,34vw)}
  .orders-table-wrap .table{min-width:720px}
  .form-two-col{grid-template-columns:1fr}
}

@media(orientation:portrait) and (max-width:991.98px){
  .app-shell{min-height:0!important;display:block!important}
  .app-shell-body{margin-top:0!important;padding-top:0!important;width:100%!important}
  .page-main,.page-body{margin-top:0!important;padding-top:0!important}
}

@media(max-width:575.98px){
  .mobile-header{height:48px;min-height:48px;max-height:48px;padding:.5rem 1rem!important}
  .brand-logo-full-mobile{height:36px!important;max-height:36px!important;max-width:min(140px,52vw)}
  .card{border-radius:14px!important}
  .d-flex.gap-2.flex-wrap>.btn,.col-md-12.d-flex.gap-2>.btn{flex:1 1 100%}
  .topbar h4{font-size:1.05rem}
}
