/* RESTOM_ADISYON_V1 */
.adx { --ax-bg: var(--bg-main, #f4f7f5); --ax-card: var(--sidebar-bg, #fff); --ax-tx: var(--text-main, #14261d); --ax-mu: var(--text-muted, #6b7f74); --ax-ln: rgba(8, 50, 32, .09); --ax-ac: var(--accent, #10b981); --ax-acd: var(--accent-dark, #047857); width: 100%; min-width: 0; color: var(--ax-tx); }
body.dark-mode .adx { --ax-ln: rgba(255, 255, 255, .1); }
.adx * { box-sizing: border-box; }
.adx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.adx-head h2 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.adx-head p { margin: 3px 0 0; font-size: .84rem; color: var(--ax-mu); }
.adx-date { display: flex; align-items: center; gap: 6px; }
.adx-date button, .adx-date input { height: 40px; border: 1px solid var(--ax-ln); background: var(--ax-card); color: var(--ax-tx); border-radius: 11px; font: inherit; font-weight: 700; font-size: .88rem; }
.adx-date button { width: 40px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.adx-date button:hover:not(:disabled) { border-color: var(--ax-ac); color: var(--ax-acd); }
.adx-date button:disabled { opacity: .4; cursor: default; }
.adx-date .tdy { width: auto; padding: 0 14px; }
.adx-date input { padding: 0 10px; min-width: 0; }
/* ozet kartlari */
.adx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.adx-stat { background: var(--ax-card); border: 1px solid var(--ax-ln); border-radius: 16px; padding: 14px 16px; min-width: 0; box-shadow: 0 1px 2px rgba(8, 50, 32, .04); }
.adx-stat small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ax-mu); }
.adx-stat strong { display: block; margin: 6px 0 4px; font-size: 1.45rem; font-weight: 900; letter-spacing: -.03em; overflow-wrap: anywhere; }
.adx-stat.hl { background: linear-gradient(135deg, #10b981, #047857); border-color: transparent; color: #fff; }
.adx-stat.hl small, .adx-stat.hl .adx-sub { color: rgba(255, 255, 255, .82); }
.adx-sub { font-size: .76rem; color: var(--ax-mu); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adx-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.adx-dot.open { background: #f59e0b; } .adx-dot.closed { background: #10b981; margin-left: 6px; }
.adx-split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin: 12px 0 8px; background: var(--ax-ln); }
.adx-split i { display: block; height: 100%; }
.adx-leg { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: .74rem; color: var(--ax-mu); }
.adx-leg span { display: inline-flex; align-items: center; gap: 5px; }
.adx-leg b { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.adx-leg em { font-style: normal; font-weight: 800; color: var(--ax-tx); }
/* liste karti */
.adx-card-wrap { background: var(--ax-card); border: 1px solid var(--ax-ln); border-radius: 18px; padding: 14px; min-width: 0; box-shadow: 0 1px 2px rgba(8, 50, 32, .04); }
.adx-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.adx-search { flex: 1 1 220px; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--ax-ln); border-radius: 11px; background: var(--ax-bg); color: var(--ax-mu); }
.adx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ax-tx); font: inherit; font-size: .9rem; }
.adx-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.adx-chips button { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--ax-ln); background: var(--ax-bg); color: var(--ax-tx); font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; }
.adx-chips button.on { background: var(--ax-ac); border-color: var(--ax-ac); color: #fff; }
.adx-chips.sm { margin-bottom: 10px; } .adx-chips.sm button { height: 32px; padding: 0 12px; font-size: .78rem; }
.adx-bar select { height: 40px; border: 1px solid var(--ax-ln); border-radius: 11px; background: var(--ax-bg); color: var(--ax-tx); font: inherit; font-weight: 700; font-size: .84rem; padding: 0 10px; }
.adx-count { margin-left: auto; font-size: .78rem; font-weight: 800; color: var(--ax-mu); }
/* tablo */
.adx-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.adx-t { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .9rem; }
.adx-t th { padding: 10px 12px; text-align: left; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ax-mu); border-bottom: 1px solid var(--ax-ln); background: var(--ax-bg); position: sticky; top: 0; }
.adx-t td { padding: 11px 12px; border-bottom: 1px solid var(--ax-ln); }
.adx-t tr[data-i] { cursor: pointer; transition: background .12s; }
.adx-t tr[data-i]:hover { background: rgba(16, 185, 129, .07); }
.adx-t .r { text-align: right; } .adx-t .c { text-align: center; width: 48px; } .adx-t .n { color: var(--ax-mu); width: 40px; } .adx-t .d { color: var(--ax-mu); white-space: nowrap; }
.adx-t .tn { font-weight: 800; }
.adx-eye { width: 32px; height: 32px; border-radius: 9px; border: 0; background: rgba(16, 185, 129, .12); color: var(--ax-acd); display: inline-grid; place-items: center; cursor: pointer; }
.adx-pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 800; color: #fff; }
.adx-pill.open { background: #f59e0b; } .adx-pill.closed { background: #10b981; } .adx-pill.cancel { background: #ef4444; }
.adx-who { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .84rem; }
.adx-who svg, .adx-log .mt svg, .adx-cl .mt svg, .adx-card .meta svg { flex: none; opacity: .75; }
/* mobil kartlar */
.adx-cards { display: flex; flex-direction: column; gap: 10px; }
.adx-card { position: relative; padding: 13px 14px 13px 18px; border: 1px solid var(--ax-ln); border-radius: 15px; background: var(--ax-bg); cursor: pointer; overflow: hidden; }
.adx-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #ef4444; }
.adx-card.open::before { background: #f59e0b; } .adx-card.closed::before { background: #10b981; }
.adx-card:active { transform: scale(.992); }
.adx-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.adx-card .top > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.adx-card .tn { font-size: 1.02rem; font-weight: 900; overflow-wrap: anywhere; }
.adx-card .top strong { font-size: 1.08rem; font-weight: 900; color: var(--ax-acd); flex: none; }
.adx-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 9px; font-size: .78rem; color: var(--ax-mu); }
.adx-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.adx-empty { padding: 38px 16px; text-align: center; color: var(--ax-mu); display: flex; flex-direction: column; gap: 4px; }
.adx-empty b { color: var(--ax-tx); } .adx-empty.err b { color: #ef4444; }
/* detay */
.adx-modal { align-items: center; justify-content: center; z-index: 4000; }
.adx-sheet { width: min(680px, calc(100vw - 24px)); max-height: min(92vh, 860px); display: flex; flex-direction: column; background: var(--ax-card, var(--sidebar-bg, #fff)); color: var(--text-main, #14261d); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: adxIn .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes adxIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.adx-sh { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 20px 14px; border-bottom: 1px solid rgba(8, 50, 32, .09); }
.adx-sh h3 { margin: 0; font-size: 1.25rem; font-weight: 900; letter-spacing: -.02em; }
.adx-sh p { margin: 3px 0 0; font-size: .8rem; color: var(--text-muted, #6b7f74); }
.adx-sh .act { display: flex; align-items: center; gap: 10px; }
.adx-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .06); color: inherit; display: grid; place-items: center; cursor: pointer; }
.adx-sb { padding: 14px 20px 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; min-height: 0; }
.adx-sb h4 { margin: 16px 0 8px; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted, #6b7f74); display: flex; align-items: center; gap: 8px; }
.adx-sb h4:first-of-type { margin-top: 6px; } .adx-sb h4.g { color: #059669; }
.adx-sb h4 em { font-style: normal; background: rgba(0, 0, 0, .07); border-radius: 99px; padding: 1px 8px; font-size: .72rem; }
.adx-chipsrow { display: flex; flex-wrap: wrap; gap: 8px; }
.adx-chipsrow span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; background: rgba(16, 185, 129, .1); font-size: .8rem; color: var(--text-muted, #6b7f74); }
.adx-chipsrow b { color: var(--text-main, #14261d); }
.adx-note { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(245, 158, 11, .12); font-size: .84rem; }
.adx-list { display: flex; flex-direction: column; border: 1px solid rgba(8, 50, 32, .09); border-radius: 14px; overflow: hidden; }
.adx-it, .adx-pay { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(8, 50, 32, .07); }
.adx-it:last-child, .adx-pay:last-child { border-bottom: 0; }
.adx-it .q { min-width: 34px; font-weight: 900; color: var(--accent-dark, #047857); }
.adx-it .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.adx-it .nm b { font-size: .92rem; overflow-wrap: anywhere; } .adx-it .nm small { color: var(--text-muted, #6b7f74); font-size: .76rem; } .adx-it .st { font-size: .72rem; font-weight: 800; }
.adx-it strong, .adx-pay strong { font-weight: 800; flex: none; }
.adx-it.x { opacity: .5; } .adx-it.x .nm b, .adx-it.x strong { text-decoration: line-through; }
.adx-pay .k { width: 26px; height: 26px; border-radius: 50%; background: rgba(16, 185, 129, .14); color: #047857; display: grid; place-items: center; font-size: .76rem; font-weight: 900; flex: none; }
.adx-pay > div { flex: 1; display: flex; flex-direction: column; } .adx-pay small { color: var(--text-muted, #6b7f74); font-size: .76rem; } .adx-pay strong { color: #059669; }
.adx-none { padding: 16px; text-align: center; color: var(--text-muted, #6b7f74); font-size: .86rem; }
.adx-sum { margin: 16px 0 10px; padding: 12px 14px; border-radius: 14px; background: rgba(8, 50, 32, .04); display: flex; flex-direction: column; gap: 7px; }
.adx-sum > div { display: flex; justify-content: space-between; font-size: .88rem; color: var(--text-muted, #6b7f74); } .adx-sum b { color: var(--text-main, #14261d); }
.adx-sum .neg b { color: #ef4444; }
.adx-sum .tot { padding-top: 9px; margin-top: 3px; border-top: 1px dashed rgba(8, 50, 32, .2); font-size: 1rem; font-weight: 800; color: var(--text-main, #14261d); }
.adx-sum .tot b { font-size: 1.4rem; font-weight: 900; color: var(--accent-dark, #047857); }
.adx-sf { padding: 12px 20px 16px; border-top: 1px solid rgba(8, 50, 32, .09); }
.adx-sf .reopen { width: 100%; height: 44px; border: 0; border-radius: 12px; background: #f59e0b; color: #fff; font: inherit; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; }
/* arsiv */
.adx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.adx-h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.adx-h3 em { font-style: normal; font-size: .74rem; font-weight: 800; color: var(--ax-mu); background: var(--ax-bg); border-radius: 99px; padding: 2px 9px; }
.adx-scroll { max-height: 560px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 2px; }
.adx-log, .adx-cl { display: flex; align-items: flex-start; gap: 11px; padding: 11px 12px; border-radius: 13px; background: var(--ax-bg); min-width: 0; }
.adx-cl { align-items: center; justify-content: space-between; }
.adx-cl .l { min-width: 0; } .adx-cl .l b { font-size: .95rem; } .adx-cl strong { font-weight: 900; color: var(--ax-acd); flex: none; }
.adx-log .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 1rem; flex: none; }
.adx-log .bd { flex: 1; min-width: 0; } .adx-log .bd b { font-size: .86rem; font-weight: 700; overflow-wrap: anywhere; display: block; }
.adx-log strong { flex: none; font-size: .86rem; font-weight: 900; }
.mt { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 4px; font-size: .74rem; color: var(--ax-mu); }
.mt span { display: inline-flex; align-items: center; gap: 4px; }
.mt .who { font-weight: 800; color: var(--ax-acd); } .mt .who.none { color: var(--ax-mu); font-weight: 600; font-style: italic; }
/* dar ekran */
@media (max-width: 1000px) { .adx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .adx-two { grid-template-columns: minmax(0, 1fr); } .adx-stat.wide { grid-column: 1 / -1; } }
@media (max-width: 560px) { .adx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adx-stat:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 768px) {
    .adx-head h2 { font-size: 1.25rem; } .adx-head p { display: none; }
    .adx-date { width: 100%; } .adx-date input { flex: 1; }
    .adx-stats { gap: 8px; } .adx-stat { padding: 11px 12px; border-radius: 14px; } .adx-stat strong { font-size: 1.12rem; }
    .adx-card-wrap { padding: 10px; border-radius: 16px; }
    .adx-bar { gap: 8px; } .adx-search { flex-basis: 100%; }
    .adx-chips { flex: 1 1 auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .adx-chips::-webkit-scrollbar { display: none; } .adx-chips button { flex: none; }
    .adx-count { display: none; }
    .adx-modal { align-items: flex-end; }
    .adx-sheet { width: 100vw; max-width: none; max-height: 94dvh; border-radius: 22px 22px 0 0; animation-name: adxUp; }
    .adx-sh { padding: 14px 14px 12px; } .adx-sb { padding: 12px 14px 6px; } .adx-sf { padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 14px); }
    .adx-scroll { max-height: none; }
}
@keyframes adxUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .adx-sheet { animation: none; } }

.mt .who small { font-weight: 600; color: var(--ax-mu); font-size: .92em; }
