*{box-sizing:border-box}
body{margin:0;background:#F3F4F6;color:#0F1B2D;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;line-height:1.45}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer}
h1,h2,h3{margin:0}
.muted{color:#5B6676}
.shell{display:flex;flex-wrap:wrap;min-height:100vh}
.side{flex:0 0 248px;background:#0F1B2D;color:#fff;padding:28px 20px;display:flex;flex-direction:column;gap:28px}
.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:16px}
.brand i{width:36px;height:36px;border-radius:10px;background:#F5A524;color:#0F1B2D;display:flex;align-items:center;justify-content:center;font-style:normal}
.nav{display:flex;flex-direction:column;gap:4px}
.nav a{display:block;padding:12px 14px;border-radius:10px;color:#C5CEDB;font-weight:500}
.nav a.on{background:#1F2F47;color:#fff;font-weight:600}
.nav a:hover{background:#1A2940}
.side .foot{margin-top:auto;padding:14px;border-radius:12px;background:#1F2F47;font-size:12px;color:#C5CEDB;display:flex;flex-direction:column;gap:6px}
.side .foot b{color:#fff;font-size:13px}
.main{flex:999 1 560px;min-width:0;padding:32px;display:flex;flex-direction:column;gap:24px}
.head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.head h1{font-size:28px;font-weight:700}
.head p{margin:4px 0 0;color:#5B6676}
.row{display:flex;flex-wrap:wrap;gap:16px}
.card{background:#fff;border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:16px;min-width:0}
.card h2{font-size:18px;font-weight:700}
.kpi{flex:1 1 200px;background:#fff;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:8px}
.kpi .l{font-size:13px;color:#5B6676;font-weight:500}
.kpi .v{font-size:30px;font-weight:700}
.kpi .s{font-size:13px;font-weight:600;color:#5B6676}
.good{color:#14633A!important}.warn{color:#7A4A00!important}.badc{color:#9B1C1C!important}
.btn{display:inline-block;padding:12px 16px;border-radius:10px;border:1px solid #D5D9E0;background:#fff;font-weight:600;min-height:44px}
.btn.dark{background:#0F1B2D;color:#fff;border-color:#0F1B2D}
.btn.sm{padding:8px 12px;min-height:36px;font-size:13px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.cp{padding:10px 16px;border-radius:999px;background:#fff;border:1px solid #D5D9E0;font-weight:600;min-height:40px}
.cp.on{background:#0F1B2D;color:#fff;border-color:#0F1B2D}
.seg{display:flex;gap:6px;flex-wrap:wrap}
.saleasin{color:#7C3AED;white-space:nowrap}html[data-theme=dark] .saleasin{color:#C4B5FD}
.status{display:inline-block;padding:4px 12px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap}
.st-pending{background:#E3E8F0;color:#334155}.st-in_transit{background:#FFF1D6;color:#7A4A00}.st-delivered{background:#E3F4EA;color:#14633A}
.st-unknown{background:#EEF0F3;color:#5B6676}.st-cancelled{background:#FDE8E8;color:#B42318}.st-returned,.st-partial{background:#FDE8E8;color:#9B1C1C}
.tag.sub{background:#E6EEFB;color:#1F4E9C}
.tag{display:inline-block;padding:2px 8px;border-radius:999px;background:#FDE8E8;color:#9B1C1C;font-size:12px;font-weight:600}
.tbl-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;min-width:720px}
th{text-align:left;font-size:12px;font-weight:600;color:#5B6676;padding:10px 12px;border-bottom:1px solid #E3E6EB;white-space:nowrap}
td{padding:12px;border-bottom:1px solid #EEF0F3;vertical-align:middle}
td.nw{white-space:nowrap}
.timg,.tph{border-radius:8px;background:#EEF0F3;object-fit:contain;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center}
.asin{color:#2F5D9E;font-weight:600;text-decoration:underline}
.bar{height:12px;border-radius:6px;background:#EEF0F3;overflow:hidden}
.bar>i{display:block;height:100%;border-radius:6px}
.stack{display:flex;height:16px;border-radius:8px;overflow:hidden;gap:2px}
.leg{display:flex;justify-content:space-between;align-items:center;gap:12px}
.leg>span{display:flex;align-items:center;gap:10px}
.leg i{width:10px;height:10px;border-radius:3px;display:inline-block}
/* Sipariş satırı = ayrı kart. Geniş listede tek sıra: görseller | sipariş no + etiketler + takip | tarih + durum | ok.
   Liste daraldığında (dar pencere, telefon) kendiliğinden iki kata geçer — bkz. @container olist */
#olist{container:olist/inline-size;gap:8px}
details.ord{border:1px solid #E6E9EE;border-radius:14px;margin:0;background:#FBFCFD;overflow:hidden}
details.ord[open]{border-color:#C9D0DA}
details.ord>summary{list-style:none;display:grid;grid-template-columns:auto minmax(0,1fr) auto 20px;align-items:center;column-gap:18px;row-gap:6px;padding:12px 16px;cursor:pointer}
details.ord>summary::-webkit-details-marker{display:none}
details.ord:not(.isnew):not(.newdel):not(.payissue)>summary:hover{background:rgba(15,27,45,.03)}
details.ord>summary .othumbs{display:flex;gap:6px;min-width:0}
details.ord>summary .no{min-width:0;font-size:16px;font-weight:700}
details.ord>summary .ohead{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
details.ord>summary .oid{white-space:nowrap}
details.ord>summary .otags{display:flex;flex-wrap:wrap;gap:4px 6px;margin-top:5px}
details.ord>summary .otags:not(:has(*)){display:none}
details.ord>summary .tag{white-space:nowrap}
details.ord>summary .chev{transition:transform .15s;flex:none}
details.ord>summary .oend{display:flex;align-items:center;justify-content:flex-end;gap:14px}
details.ord[open]>summary .chev{transform:rotate(180deg)}
details.ord>.odet{margin:0 12px 12px}
html[data-theme=dark] details.ord{background:rgba(255,255,255,.025);border-color:#22314A}
html[data-theme=dark] details.ord[open]{border-color:#34465F}
html[data-theme=dark] details.ord:not(.isnew):not(.newdel):not(.payissue)>summary:hover{background:rgba(255,255,255,.04)}
@container olist (max-width:720px){
  details.ord>summary{grid-template-columns:44px minmax(0,1fr) 20px;align-items:start;column-gap:12px;padding:12px}
  details.ord>summary .othumbs{grid-row:1/span 2}
  details.ord>summary .othumbs>*:not(:first-child){display:none}
  details.ord>summary .othumbs .timg,details.ord>summary .othumbs .tph{width:44px!important;height:44px!important}
  details.ord>summary .no{font-size:15px}
  details.ord>summary .chev{grid-column:3;grid-row:1;margin-top:2px}
  details.ord>summary .oend{grid-column:2/span 2;justify-content:flex-start;flex-wrap:wrap;gap:6px 10px}
  details.ord>summary .oend .stcol{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;order:-1}
  details.ord>summary .est{white-space:normal}
  details.ord>.odet{margin:0 8px 8px}
}
.odet{margin:4px 0 20px;border:1px solid #E3E6EB;border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:20px}
.meta{display:flex;flex-wrap:wrap;gap:20px 32px}
.meta div{display:flex;flex-direction:column;gap:4px;min-width:150px}
.meta small{font-size:12px;color:#5B6676;font-weight:500}.meta b{font-size:14px}
.steps{display:flex;flex-wrap:wrap;gap:16px;padding:18px;border-radius:12px;background:#F3F4F6}
.step{flex:1 1 150px;display:flex;gap:12px;align-items:flex-start;min-width:0}
.dot{width:28px;height:28px;border-radius:50%;background:#E3E6EB;display:flex;align-items:center;justify-content:center;flex:0 0 28px}
.dot.done{background:#1E8E55}.dot.cur{background:#F5A524}
.dot.cur::after{content:"";width:10px;height:10px;border-radius:50%;background:#0F1B2D}
.step b{font-size:14px;display:block}.step small{font-size:12px;color:#5B6676}
.refund{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:12px;background:#FDE8E8}
.sum{display:flex;justify-content:flex-end}.sum>div{display:flex;flex-direction:column;gap:8px;min-width:260px}
.sum p{display:flex;justify-content:space-between;gap:32px;margin:0}
.sum p.t{border-top:1px solid #E3E6EB;padding-top:8px;font-weight:700}
input[type=text],input[type=search],input[type=password],input[type=number]{padding:12px 14px;min-height:44px;border-radius:10px;border:1px solid #D5D9E0;font:inherit;background:#fff;color:#0F1B2D;width:100%}
label.f{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#5B6676}
.stats{display:flex;flex-wrap:wrap;gap:12px}
.stat{flex:1 1 150px;padding:14px 16px;border-radius:12px;background:#F3F4F6;display:flex;flex-direction:column;gap:4px}
.stat small{font-size:12px;color:#5B6676;font-weight:500}.stat b{font-size:18px}
.alert{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px;border-radius:12px;background:#F3F4F6}
.alert.new{outline:2px solid #1E8E55;outline-offset:-2px;background:#F1FAF4}
.empty{padding:32px;text-align:center;color:#5B6676}
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px}
.login form{background:#fff;border-radius:16px;padding:32px;width:100%;max-width:380px;display:flex;flex-direction:column;gap:16px}
.err{color:#9B1C1C;font-weight:600;min-height:20px}
code{background:#EEF0F3;border-radius:6px;padding:2px 6px;word-break:break-all}
.sr{position:absolute;left:-9999px}
@media(max-width:700px){.main{padding:16px}.side{flex-basis:100%;padding:16px}.nav{flex-direction:row;flex-wrap:wrap}.side .foot{display:none}}

.manual{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0;font-size:13px;color:#5B6676}.manual select{font:inherit;font-weight:600;padding:6px 8px;border:1px solid #D5D9E0;border-radius:8px;background:#fff;color:#0F1B2D}
.est{font-size:12px;color:#7A4A00;font-weight:600;white-space:nowrap}.cancel-note{margin:12px 0;padding:10px 14px;border-radius:10px;background:#FDE8E8;color:#B42318;font-weight:600;font-size:13px}

input[type=date],select{padding:12px 14px;min-height:44px;border-radius:10px;border:1px solid #D5D9E0;font:inherit;background:#fff;color:#0F1B2D;width:100%}
#addbox[hidden]{display:none}
#addbox .row>.f{flex:1 1 150px}
.irow{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;padding:10px;background:#F3F4F6;border-radius:10px;margin-bottom:8px}
.irow .f{flex:1 1 120px}.irow .f.grow{flex:3 1 240px}.irow .hint{flex:1 0 100%;font-size:12px}
.irow .ph{flex:none;width:64px;height:64px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:8px;overflow:hidden}
.irow .ph:empty{background:#E3E6EB}
.hint.warn{color:#7A4A00}

/* ------------------------------------------------------------ koyu tema */
.theme-btn{display:flex;align-items:center;gap:10px;width:100%;padding:10px 14px;border-radius:10px;border:1px solid #2A3A52;background:transparent;color:#C5CEDB;font-weight:600;text-align:left}
.theme-btn:hover{background:#1A2940}
.theme-btn svg{flex:none}
@media(max-width:700px){.theme-btn{width:auto}}
html[data-theme=dark]{color-scheme:dark}
html[data-theme=dark] body{background:#0B1220;color:#E8EDF5}
html[data-theme=dark] .muted,html[data-theme=dark] .head p,html[data-theme=dark] .kpi .l,html[data-theme=dark] .kpi .s,html[data-theme=dark] th,html[data-theme=dark] .meta small,
html[data-theme=dark] .step small,html[data-theme=dark] .stat small,html[data-theme=dark] label.f,html[data-theme=dark] .empty,html[data-theme=dark] .manual{color:#9AA7BA}
html[data-theme=dark] .side{background:#070D18}
html[data-theme=dark] .nav a.on,html[data-theme=dark] .side .foot{background:#16243A}
html[data-theme=dark] .nav a:hover{background:#111D30}
html[data-theme=dark] .card,html[data-theme=dark] .kpi,html[data-theme=dark] .login form{background:#141F33}
html[data-theme=dark] .good{color:#5FD08F!important}html[data-theme=dark] .warn{color:#F2B65C!important}html[data-theme=dark] .badc,html[data-theme=dark] .err{color:#F28B82!important}
html[data-theme=dark] .btn,html[data-theme=dark] .cp{background:#141F33;border-color:#2A3A52;color:#E8EDF5}
html[data-theme=dark] .btn:hover,html[data-theme=dark] .cp:hover{background:#1B2A44}
html[data-theme=dark] .btn.dark,html[data-theme=dark] .cp.on{background:#E8EDF5;color:#0F1B2D;border-color:#E8EDF5}
html[data-theme=dark] .st-pending{background:#25324A;color:#C5CEDB}html[data-theme=dark] .st-in_transit{background:#3A2E14;color:#F2B65C}html[data-theme=dark] .st-delivered{background:#14301F;color:#5FD08F}
html[data-theme=dark] .st-unknown{background:#1E2A3F;color:#9AA7BA}html[data-theme=dark] .st-cancelled,html[data-theme=dark] .st-returned,html[data-theme=dark] .st-partial{background:#3A1A1C;color:#F28B82}
html[data-theme=dark] .tag.sub{background:#1B2D52;color:#8FB1E6}html[data-theme=dark] .tag{background:#3A1A1C;color:#F28B82}
html[data-theme=dark] th{border-bottom-color:#2A3A52}html[data-theme=dark] td,html[data-theme=dark] details.ord{border-bottom-color:#22314A}
html[data-theme=dark] .odet,html[data-theme=dark] .sum p.t{border-color:#2A3A52}
html[data-theme=dark] .asin{color:#8FB1E6}
html[data-theme=dark] .bar,html[data-theme=dark] code{background:#22314A}
html[data-theme=dark] .timg,html[data-theme=dark] .tph{background:#22314A}
html[data-theme=dark] .steps,html[data-theme=dark] .stat,html[data-theme=dark] .alert,html[data-theme=dark] .irow{background:#0F1828}
html[data-theme=dark] .dot{background:#2A3A52}html[data-theme=dark] .dot.cur::after{background:#0B1220}
html[data-theme=dark] .refund,html[data-theme=dark] .cancel-note{background:#3A1A1C;color:#F28B82}
html[data-theme=dark] .alert.new{background:#10281A}
html[data-theme=dark] input[type=text],html[data-theme=dark] input[type=search],html[data-theme=dark] input[type=password],html[data-theme=dark] input[type=number],
html[data-theme=dark] input[type=date],html[data-theme=dark] select,html[data-theme=dark] .manual select{background:#0F1828;color:#E8EDF5;border-color:#2A3A52}
html[data-theme=dark] input::placeholder{color:#6E7C92}
html[data-theme=dark] .est,html[data-theme=dark] .hint.warn{color:#F2B65C}
html[data-theme=dark] .irow .ph:empty{background:#22314A}
/* satır içi renkler ve SVG grafikler */
html[data-theme=dark] [style*="color:#0F1B2D"]{color:#E8EDF5!important}
html[data-theme=dark] [style*="background:#0F1B2D"]{background:#8FB1E6!important}
html[data-theme=dark] [style*="border-bottom:1px solid #EEF0F3"]{border-bottom-color:#22314A!important}
html[data-theme=dark] [style*="background:#FFF1D6"]{background:#3A2E14!important;color:#F2B65C!important}
html[data-theme=dark] [style*="color:#B42318"]{color:#F28B82!important}
html[data-theme=dark] svg [fill="#0F1B2D"]{fill:#E8EDF5}
html[data-theme=dark] svg [fill="#5B6676"]{fill:#9AA7BA}
html[data-theme=dark] svg [fill="#14633A"]{fill:#5FD08F}
html[data-theme=dark] svg [stroke="#E3E6EB"]{stroke:#2A3A52}
html[data-theme=dark] svg [stroke="#fff"]{stroke:#141F33}
html[data-theme=dark] svg[stroke="#5B6676"]{stroke:#9AA7BA}

.trk{display:block;margin-top:3px;font-size:12px;font-weight:500;color:#5B6676}.trk b{font-weight:700;color:#334155}.trk code{padding:1px 5px;font-size:12px}
html[data-theme=dark] .trk{color:#9AA7BA}html[data-theme=dark] .trk b{color:#C5CEDB}
.trk code{white-space:nowrap;word-break:normal}

#ocustom[hidden]{display:none}
#osum h2{font-size:18px}
.stat.ok b{color:#14633A}.stat.bad b{color:#9B1C1C}
html[data-theme=dark] .stat.ok b{color:#5FD08F}html[data-theme=dark] .stat.bad b{color:#F28B82}

.tag.card{background:#EEF2F7;color:#334155}html[data-theme=dark] .tag.card{background:#26334A;color:#CBD5E1}

.trk1{display:block;margin-top:1px}

.pbar{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;justify-content:flex-end}

/* Sipariş detay penceresi: daha kompakt */
.odet{margin:2px 0 12px;border-radius:12px;padding:14px 16px;gap:10px;font-size:13px}
.odet .meta{gap:10px 24px}.odet .meta div{gap:2px;min-width:130px}.odet .meta small{font-size:11px}.odet .meta b{font-size:13px}
.odet .steps{gap:10px;padding:10px 12px;border-radius:10px}
.odet .step{flex:1 1 120px;gap:8px}.odet .dot{width:20px;height:20px;flex:0 0 20px}.odet .dot svg{width:12px;height:12px}.odet .dot.cur::after{width:7px;height:7px}
.odet .step b{font-size:12px}.odet .step small{font-size:11px}
.odet table{font-size:12.5px}.odet th,.odet td{padding:6px 8px}
.odet .manual{font-size:12px}.odet .manual select{min-height:32px;padding:4px 8px}.odet .manual .cp{padding:4px 10px;min-height:30px;font-size:12px}
.odet .refund{padding:8px 12px;gap:8px}
.odet .sum>div{min-width:220px;gap:4px}
.odet .cancel-note{padding:8px 12px;font-size:12px}
.odet .manual{margin:0;padding:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.odet .manual label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.odet select{min-height:30px;height:30px;padding:2px 8px;width:auto;font-size:12px}
.odet .meta{row-gap:6px}

.newcard[hidden]{display:none}
html[data-theme=dark] textarea{background:#0F1828!important;color:#E8EDF5!important;border-color:#2A3A52!important}

/* Amazon tarzı ince ilerleme şeridi */
.stepwrap{display:flex;flex-direction:column;gap:0;border-radius:10px;background:#F3F4F6;overflow:hidden}
.stepwrap .steps{background:transparent;border-radius:0}
.prog{height:4px;background:#D5D9E0}
.prog i{display:block;height:100%;background:#1E8E55;border-radius:0 2px 2px 0;transition:width .6s ease}
html[data-theme=dark] .stepwrap{background:#0F1828}html[data-theme=dark] .prog{background:#2A3A52}

.cardlist{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.ochead{align-items:center}
.octoggle{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;cursor:pointer;flex:1 1 auto;min-width:0;border-radius:10px;padding:2px 4px 2px 0}
.octoggle>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.octoggle .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.octoggle:focus-visible{outline:2px solid #2F5D9E;outline-offset:2px}
.occhev{flex:none;transition:transform .2s ease;opacity:.7}
.octoggle[aria-expanded="true"] .occhev{transform:rotate(90deg)}
#ocards:has(.cardlist[hidden]){gap:0}
.cardrow{all:unset;box-sizing:border-box;display:block;width:100%;cursor:pointer;padding:10px 12px;border:1px solid #E3E7ED;border-radius:10px}
.cardrow:hover{background:rgba(47,93,158,.07)}
.cardrow:focus-visible{outline:2px solid #2F5D9E;outline-offset:2px}
.cardrow.on{border-color:#0F1B2D;background:rgba(15,27,45,.06);box-shadow:inset 3px 0 0 #0F1B2D}
.pager{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:center;margin:14px 0 4px}
.pager .cp[disabled]{opacity:.4;cursor:default}
.pgap{padding:0 2px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .cardrow{border-color:#2A3445}:root:not([data-theme="light"]) .cardrow.on{border-color:#9DB7E0;box-shadow:inset 3px 0 0 #9DB7E0;background:rgba(157,183,224,.12)}}
:root[data-theme="dark"] .cardrow{border-color:#2A3445}:root[data-theme="dark"] .cardrow.on{border-color:#9DB7E0;box-shadow:inset 3px 0 0 #9DB7E0;background:rgba(157,183,224,.12)}

.refundbox{margin:0}
.refundbox .rfform:not([hidden]){margin:8px 0;padding:10px 12px;border-radius:10px;background:rgba(127,140,160,.08)}
.rfform input[type=number],.rfform input[type=date],.rfform select{padding:6px 8px;border-radius:8px;border:1px solid #D5D9E0;font:inherit}
[hidden]{display:none!important}

/* Yeni eklenen siparişler (uzantı, e-posta veya elle) */
.tag.new{background:#DCFCE7;color:#166534}
details.ord.isnew>summary{box-shadow:inset 3px 0 0 #16A34A;background:rgba(22,163,74,.06)}
.nav a .navnew{display:inline-block;min-width:20px;padding:1px 7px;margin-left:6px;border-radius:999px;background:#16A34A;color:#fff;font-size:12px;font-weight:700;text-align:center}
.cp.cpnew:not(.on){border-color:#16A34A;color:#166534}
html[data-theme=dark] .tag.new{background:#123B24;color:#86EFAC}
html[data-theme=dark] details.ord.isnew>summary{background:rgba(34,197,94,.08);box-shadow:inset 3px 0 0 #22C55E}
html[data-theme=dark] .cp.cpnew:not(.on){border-color:#22C55E;color:#86EFAC}
/* Ödemesi alınamayan siparişler: kırmızı uyarı (ödeme alınana / kullanıcı kapatana kadar) */
.tag.payfail{background:#DC2626;color:#fff;cursor:pointer}
details.ord.payissue>summary{box-shadow:inset 4px 0 0 #DC2626;background:rgba(220,38,38,.07)}
.payfailbox{border:1px solid #FCA5A5;background:#FEF2F2;color:#7F1D1D;border-radius:12px;padding:12px 14px;margin:4px 0 12px;font-size:14px;line-height:1.5}
.payfailbox b{display:block;font-size:15px;color:#B91C1C;margin-bottom:2px}
.nav a .navnew.navpay{background:#DC2626}
.cp.cppay:not(.on){border-color:#DC2626;color:#B91C1C}
html[data-theme=dark] details.ord.payissue>summary{background:rgba(239,68,68,.10);box-shadow:inset 4px 0 0 #EF4444}
html[data-theme=dark] .payfailbox{background:#3A1214;border-color:#7F1D1D;color:#FECACA}
html[data-theme=dark] .payfailbox b{color:#FCA5A5}
html[data-theme=dark] .cp.cppay:not(.on){border-color:#EF4444;color:#FCA5A5}html[data-theme=dark] .tag.payfail{background:#DC2626;color:#fff}

/* Paket bazında takip */
.pkgs{display:grid;gap:8px;margin-top:6px}
.pkg{border:1px solid #E3E6EB;border-radius:10px;padding:8px 12px}
.pkgh{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.pkst{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:700}
.pkst.pend{background:#EEF2F7;color:#334155}.pkst.ship{background:#E6EEFB;color:#1F4E9C}.pkst.ofd{background:#FEF3C7;color:#92400E}.pkst.del{background:#DCFCE7;color:#166534}
html[data-theme=dark] .pkg{border-color:#2A3A52}
html[data-theme=dark] .pkst.pend{background:#26334A;color:#CBD5E1}html[data-theme=dark] .pkst.ship{background:#1B2D52;color:#8FB1E6}html[data-theme=dark] .pkst.ofd{background:#3B2A0A;color:#FCD34D}html[data-theme=dark] .pkst.del{background:#123B24;color:#86EFAC}.pkgsec{margin:4px 0 12px;text-align:left}.pkgsec .pkgs{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.pkg code{display:inline;padding:0 4px}
.tag.trkoff{background:#FEF3C7;color:#92400E}html[data-theme=dark] .tag.trkoff{background:#3B2A0A;color:#FCD34D}

/* Teslimat: kalıcı teslim saati + teslimattan sonraki 12 saat "Yeni teslim" vurgusu (yeşil "Yeni"den ayrışsın diye dolgulu camgöbeği) */
.delat{font-size:12px;color:#14633A;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
/* Örnek görünüm: sağda alt alta yeşil hap etiketler — TESLİM EDİLDİ / ✦ YENİ TESLİM */
.stcol{display:inline-flex;flex-direction:column;align-items:flex-end;gap:6px}
.status.st-delivered,.tag.newdel{font-weight:700}
.status.st-delivered{background:#DCFCE7;color:#166534}
.tag.newdel{display:inline-flex;align-items:center;gap:5px;padding:4px 12px;font-size:13px;background:#DCFCE7;color:#166534;white-space:nowrap}
.tag .ic{flex:0 0 auto;display:block}
details.ord.newdel>summary{box-shadow:inset 4px 0 0 #16A34A;background:rgba(22,163,74,.08)}
.cp.cptoday:not(.on){border-color:#16A34A;color:#166534}
/* Detayın üstündeki kalın ilerleme kutusu: aşama aşama yeşile dolar (Aşama 1-4), teslimde tamamı koyu yeşil */
.pband{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:16px 18px;margin:4px 0 8px;border-radius:14px;background:#E9EDF2;color:#0F1B2D}
.pband .fill{position:absolute;top:0;bottom:0;left:0;width:var(--p);background:#BBF7D0;z-index:-2;animation:pfill .9s cubic-bezier(.2,.7,.2,1)}
@keyframes pfill{from{width:0}}
.pband .tick{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:rgba(255,255,255,.75);z-index:-1}
.pband .pic{display:flex;color:#15803D}
.pband b{display:block;font-size:17px;line-height:1.3}
.pband .sub{display:block;font-size:14px;color:#334155;font-variant-numeric:tabular-nums}
.pband .stage{font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;background:rgba(255,255,255,.7);color:#334155;white-space:nowrap}
.pband.full{color:#fff}.pband.full .fill{background:#16A34A}.pband.full .pic{color:#fff}.pband.full .sub{color:rgba(255,255,255,.92)}
.pband.full .tick{background:rgba(255,255,255,.22)}.pband.full .stage{background:rgba(255,255,255,.2);color:#fff}
.pnote{margin:0 0 12px 4px;font-size:13px}
.pband.zones{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:14px 0}
.pband .pz{display:flex;align-items:center;gap:8px;min-width:0;padding:0 14px}
.pband .pz>div{min-width:0}
.pband .pz b{font-size:14px;line-height:1.25}
.pband .pz .sub{font-size:13px}
.pband .pz .pic svg{width:26px;height:26px;flex:none}
.pband .pz.pend{opacity:.6}
.pband .pz.done b{font-weight:600}
/* Transfer sürecinde: kargo aracı ileri geri gidip hafifçe zıplar, arkasında hız çizgileri */
.pband .pic.drive{position:relative}
.pband .pic.drive svg{animation:truckgo 1.8s ease-in-out infinite}
.pband .pic.drive::before{content:"";position:absolute;left:-12px;top:50%;width:10px;height:2px;margin-top:-3px;border-radius:2px;background:currentColor;opacity:0;box-shadow:-2px 6px 0 currentColor;animation:truckwind 1.8s ease-in-out infinite}
@keyframes truckgo{0%{transform:translateX(-4px)}25%{transform:translate(1px,-1.5px)}50%{transform:translateX(5px)}75%{transform:translate(1px,-1px)}100%{transform:translateX(-4px)}}
@keyframes truckwind{0%,100%{opacity:0;transform:translateX(4px)}40%,60%{opacity:.7;transform:translateX(-2px)}}
@media (prefers-reduced-motion:reduce){.pband .pic.drive svg,.pband .pic.drive::before{animation:none}}
@media (max-width:700px){.pband.zones{padding:10px 0}.pband .pz{padding:0 6px;gap:4px}.pband .pz b{font-size:11.5px}.pband .pz .sub{font-size:11px}.pband .pz .pic{display:none}}
html[data-theme=dark] .pband{background:#1A2638;color:#E8EDF5}
html[data-theme=dark] .pband .fill{background:rgba(34,197,94,.32)}html[data-theme=dark] .pband .pic{color:#4ADE80}
html[data-theme=dark] .pband .sub{color:#C5CEDB}html[data-theme=dark] .pband .tick{background:rgba(11,18,32,.6)}
html[data-theme=dark] .pband .stage{background:rgba(11,18,32,.45);color:#E8EDF5}
html[data-theme=dark] .pband.full .fill{background:#16A34A}html[data-theme=dark] .pband.full,html[data-theme=dark] .pband.full .pic{color:#fff}
html[data-theme=dark] .pband.full .tick{background:rgba(255,255,255,.22)}
html[data-theme=dark] .pband.full .sub{color:rgba(255,255,255,.92)}html[data-theme=dark] .pband.full .stage{background:rgba(255,255,255,.2);color:#fff}
html[data-theme=dark] .delat{color:#5FD08F}
html[data-theme=dark] .status.st-delivered,html[data-theme=dark] .tag.newdel{background:#12301E;color:#5FD08F}
html[data-theme=dark] details.ord.newdel>summary{background:rgba(34,197,94,.09);box-shadow:inset 4px 0 0 #22C55E}
html[data-theme=dark] .cp.cptoday:not(.on){border-color:#22C55E;color:#86EFAC}

/* İçerik geniş ekranda (ve menü daraltılınca) yayılmasın: ortalanmış, en fazla 1200px */
.main>*{width:100%;max-width:1200px;margin-left:auto;margin-right:auto}

/* ================================================== açılır/kapanır sol menü */
.sidetop{display:flex;align-items:center;justify-content:space-between;gap:8px}
.navtoggle{flex:none;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;border:1px solid #2A3A52;background:transparent;color:#C5CEDB}
.navtoggle:hover{background:#1A2940;color:#fff}
.navtoggle:focus-visible,.nav a:focus-visible,.theme-btn:focus-visible{outline:2px solid #F5A524;outline-offset:2px}
.nav a{display:flex;align-items:center;gap:12px;white-space:nowrap}
.nav a .nic{flex:none;opacity:.85}.nav a.on .nic{opacity:1}
.nav a .nl{min-width:0;overflow:hidden;text-overflow:ellipsis}
.nav a .navnew{margin-left:auto}
.side{transition:flex-basis .2s ease,padding .2s ease}
.brand .bt{white-space:nowrap}
/* Bilgisayar: daraltılmış ikon şeridi */
@media(min-width:701px){
  .shell.nav-collapsed .side{flex-basis:76px;padding:20px 12px;gap:20px}
  .shell.nav-collapsed .sidetop{flex-direction:column;gap:14px}
  .shell.nav-collapsed .brand .bt,.shell.nav-collapsed .nav a .nl,.shell.nav-collapsed .theme-btn .tl,.shell.nav-collapsed .side .foot{display:none}
  .shell.nav-collapsed .nav a{position:relative;justify-content:center;padding:12px 0}
  .shell.nav-collapsed .nav a .navnew{position:absolute;top:3px;right:2px;margin:0;min-width:18px;padding:0 5px;font-size:11px;line-height:18px}
  .shell.nav-collapsed .nav a .navnew+.navnew{top:24px}
  .shell.nav-collapsed .theme-btn{justify-content:center;padding:10px 0}
  .side{position:sticky;top:0;height:100vh;overflow-y:auto}
}

/* ================================================================ TELEFON (≤700px) */
@media(max-width:700px){
  body{-webkit-text-size-adjust:100%}
  /* Üst çubuk: marka | tema | ☰ — menü ☰ ile açılır liste olarak iner, sayfa seçilince kapanır */
  .side{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:0 8px;padding:10px 16px;position:sticky;top:0;z-index:20;box-shadow:0 1px 0 rgba(255,255,255,.06)}
  .sidetop{display:contents}
  .brand{grid-column:1;grid-row:1;font-size:15px}.brand i{width:30px;height:30px;border-radius:8px}
  .theme-btn{grid-column:2;grid-row:1;width:38px;height:38px;min-height:0;padding:0;justify-content:center}.theme-btn .tl{display:none}
  .navtoggle{grid-column:3;grid-row:1}
  .shell.nav-open .navtoggle{background:#1F2F47;color:#fff}
  .nav{grid-row:2;grid-column:1/-1;display:none;flex-direction:column;gap:2px;margin-top:10px;padding-top:8px;border-top:1px solid #1F2F47;max-height:calc(100vh - 70px);overflow-y:auto}
  .shell.nav-open .nav{display:flex}
  .nav a{padding:12px 12px;font-size:15px}
  .main{padding:14px 12px 28px;gap:14px}
  .head{gap:10px}.head h1{font-size:22px}.head p{font-size:13px}
  .head .btn{flex:1 1 auto;text-align:center}
  .card:not(.tag){padding:16px 14px;border-radius:14px;gap:12px}
  .row{gap:10px}
  .kpi{flex:1 1 calc(50% - 5px);min-width:0;padding:14px;border-radius:14px;gap:4px}.kpi .v{font-size:22px}.kpi .l,.kpi .s{font-size:12px}
  /* Filtre/dönem çipleri: tek sıra, yana kaydırılır */
  .chips{flex-wrap:nowrap;overflow-x:auto;margin:0 -12px;padding:0 12px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .chips::-webkit-scrollbar{display:none}
  .chips,.row>*,.pbar>*,.f{min-width:0;max-width:100%}
  .pbar{display:block;flex:1 1 100%;min-width:0;max-width:100%}.head>*{min-width:0;max-width:100%}.row>.f:has(.chips){flex:1 1 100%}
  .cp{flex:none;white-space:nowrap;padding:7px 13px;min-height:36px;font-size:13px}
  .pager .cp{padding:6px 11px}
  .stats{gap:8px}.stat{flex:1 1 calc(50% - 4px);padding:10px 12px}.stat b{font-size:16px}

  /* Sipariş satırı: görsel | sipariş no + etiketler | ok; altında tarih ve durum etiketleri */
  #olist{padding:10px!important}
  details.ord>summary{padding:10px}
  details.ord>summary .no{font-size:14px;line-height:1.45}
  details.ord>summary .no .tag.card{display:none} /* kart bilgisi detayda görünür */
  details.ord>summary .no .tag{padding:1px 7px}
  details.ord>summary .status,details.ord>summary .tag.newdel{padding:3px 10px;font-size:12px}
  details.ord>summary .est,details.ord>summary .delat{font-size:11.5px}
  .tag{font-size:11.5px}
  .trk code{display:inline-block;max-width:100%;white-space:nowrap;overflow-wrap:anywhere;vertical-align:bottom}

  /* Sipariş detayı */
  .odet{padding:12px;margin:0 0 12px;gap:10px}
  .pband{grid-template-columns:auto 1fr;gap:4px 12px;padding:12px 14px}
  .pband .pic svg{width:28px;height:28px}
  .pband b{font-size:15px}.pband .sub{font-size:13px}
  .pband .stage{grid-column:2;justify-self:start;font-size:11px;padding:2px 8px}
  .odet .steps{padding:10px;gap:8px 10px}
  .odet .step{flex:1 1 calc(50% - 10px)}
  .odet .meta div{min-width:calc(50% - 12px)}
  .pkgsec .pkgs{grid-template-columns:1fr}
  .sum{justify-content:stretch}.sum>div,.odet .sum>div{min-width:0;width:100%}
  .odet .manual label{flex:1 1 100%}
  .odet .manual textarea{font-size:16px}
  .refund{padding:10px 12px}
  /* Formlar: iOS'ta odaklanınca yakınlaştırma olmasın diye yazı 16px */
  input[type=text],input[type=search],input[type=password],input[type=number],input[type=date],select,textarea{font-size:16px}
  .odet select{font-size:14px;height:36px;min-height:36px}
  .irow .f,.irow .f.grow{flex:1 1 100%}
  /* Detaydaki ürün tablosu → ürün kartları (görsel + ad, altında etiketli değerler) */
  table.mtable{min-width:0!important;width:100%;display:block}
  table.mtable thead{display:none}
  table.mtable tbody{display:flex;flex-direction:column;gap:8px}
  table.mtable tr{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 10px;padding:10px 12px;border:1px solid #E3E6EB;border-radius:10px}
  table.mtable td{display:block;padding:0!important;border:0;min-width:0!important;white-space:normal}
  table.mtable td.m-img{grid-column:1}
  table.mtable td.m-title{grid-column:2;margin-bottom:4px}
  table.mtable td:not(.m-img):not(.m-title){grid-column:1/-1}
  table.mtable td[data-l]{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;text-align:right}
  table.mtable td[data-l]::before{content:attr(data-l);color:#5B6676;font-weight:500;text-align:left;flex:none;max-width:55%}
  table.mtable td[data-l]>div{justify-content:flex-end}
  table.mtable td[data-l]>.bar{flex:0 1 55%;margin-left:auto}
  html[data-theme=dark] table.mtable tr{border-color:#2A3A52}html[data-theme=dark] table.mtable td[data-l]::before{color:#9AA7BA}
  .login form{padding:24px 18px}
  .empty{padding:20px 8px}
}
