:root {
    /* Aykasoft logo: turkuaz ikon + koyu gri yazı */
    --ayka-brand: #00aeef;
    --ayka-brand-dark: #0088c6;
    --ayka-brand-deep: #006fa3;
    --ayka-brand-soft: #e6f7fd;
    --ayka-brand-muted: #b8e9fa;

    --ayka-bg: #f4f9fc;
    --ayka-surface: #ffffff;
    --ayka-sidebar: #ffffff;
    --ayka-sidebar-hover: #e8f7fd;
    --ayka-primary: var(--ayka-brand);
    --ayka-primary-soft: var(--ayka-brand-soft);
    --ayka-text: #2d3748;
    --ayka-muted: #64748b;
    --ayka-border: #d4e8f2;
    --ayka-success: #10b981;
    --ayka-warning: #f59e0b;
    --ayka-danger: #ef4444;
    --ayka-radius: 14px;
    --ayka-shadow: 0 8px 28px rgba(0, 136, 198, 0.1);
    --ayka-sidebar-w: 272px;
    --ayka-sidebar-collapsed-w: 76px;
    --ayka-topbar-h: 68px;
    --ayka-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--ayka-bg);
    color: var(--ayka-text);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.ayka-app {
    display: grid;
    grid-template-columns: var(--ayka-sidebar-w) 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    transition: grid-template-columns .22s ease;
}

.ayka-app.sidebar-closed {
    grid-template-columns: var(--ayka-sidebar-collapsed-w) minmax(0, 1fr);
}

.ayka-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
    color: var(--ayka-text);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-right: 1px solid var(--ayka-border);
    box-shadow: 4px 0 24px rgba(0, 174, 239, 0.06);
    min-width: 0;
    overflow: hidden;
    z-index: 200;
}

/* Yan menü — beyaz, daraltınca sadece ikon */
.ayka-sidebar-app {
    background: #fff;
    color: var(--ayka-text);
    padding: .75rem .55rem 1rem;
    border-right: 1px solid var(--ayka-border);
    box-shadow: 2px 0 16px rgba(15, 23, 42, 0.06);
    gap: .35rem;
    transition: padding .22s ease;
}
.ayka-sidebar-app .ayka-sidebar-head {
    justify-content: flex-start;
    margin-bottom: .1rem;
}
.ayka-sidebar-close-app {
    display: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.ayka-sidebar-close-app:hover { background: #fecaca; }
.ayka-sidebar-brand-block {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .2rem .25rem .6rem;
    margin-bottom: .15rem;
    border-bottom: 1px solid var(--ayka-border);
    transition: padding .22s ease, justify-content .22s ease;
}
.ayka-brand-link-app {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--ayka-brand-soft);
    border: 1px solid var(--ayka-brand-muted);
    border-radius: 12px;
    padding: 5px;
    flex-shrink: 0;
}
.ayka-brand-img-app {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ayka-sidebar-title {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
    overflow: hidden;
    transition: opacity .18s ease, max-width .22s ease;
    max-width: 12rem;
}
.ayka-sidebar-title strong {
    font-size: 1rem;
    letter-spacing: .04em;
    color: var(--ayka-brand-deep);
}
.ayka-sidebar-title small {
    font-size: .7rem;
    color: var(--ayka-muted);
    margin-top: .12rem;
}
.ayka-nav-app {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    gap: .15rem;
    padding-right: .1rem;
}
.ayka-nav-app::-webkit-scrollbar { width: 4px; }
.ayka-nav-app::-webkit-scrollbar-thumb {
    background: var(--ayka-border);
    border-radius: 999px;
}
.ayka-nav-app a,
.ayka-nav-app .nav-group-toggle {
    color: #475569;
    text-decoration: none;
    padding: .65rem .7rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .88rem;
    font-weight: 600;
    border: 1px solid transparent;
    background: transparent;
    width: 100%;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, padding .22s ease;
}
.ayka-nav-app a:hover,
.ayka-nav-app .nav-group-toggle:hover {
    background: var(--ayka-brand-soft);
    color: var(--ayka-brand-deep);
    border-color: var(--ayka-brand-muted);
}
.ayka-nav-app a.active {
    background: var(--ayka-brand-soft);
    color: var(--ayka-brand-deep);
    border-color: var(--ayka-brand);
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.12);
}
.ayka-nav-app .nav-icon {
    width: 1.4rem;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}
.ayka-nav-app .nav-label,
.ayka-nav-app .nav-group-label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .18s ease, max-width .22s ease;
}
.ayka-nav-app .nav-chevron {
    font-size: .7rem;
    opacity: .55;
    margin-left: auto;
    flex-shrink: 0;
    transition: opacity .18s ease;
}
.ayka-nav-app .nav-group-toggle.open .nav-chevron { transform: rotate(180deg); }
.ayka-nav-app .nav-subitems {
    padding-left: .2rem;
    margin: .05rem 0 .2rem;
}
.ayka-nav-app .nav-sublink {
    padding: .5rem .7rem .5rem 2.2rem;
    font-size: .82rem;
}
.ayka-nav-app .nav-sublink.active {
    background: var(--ayka-brand-soft);
    color: var(--ayka-brand-deep);
    border-color: var(--ayka-brand-muted);
}
.nav-footer-app {
    margin-top: auto;
    padding: .7rem .35rem 0;
    border-top: 1px solid var(--ayka-border);
    transition: opacity .18s ease;
}
.nav-footer-app .nav-domain {
    color: var(--ayka-brand-deep);
    font-weight: 600;
    font-size: .78rem;
    text-decoration: none;
    white-space: nowrap;
}
.nav-footer-app .nav-domain:hover { text-decoration: underline; }
.nav-footer-app .nav-version {
    display: block;
    margin-top: .2rem;
    font-size: .68rem;
    color: var(--ayka-muted);
}

@media (min-width: 961px) {
    /* Daraltılmış menü — sadece ikonlar */
    .ayka-app.sidebar-closed .ayka-sidebar-app {
        padding: .65rem .35rem 1rem;
    }
    .ayka-app.sidebar-closed .ayka-sidebar-brand-block {
        flex-direction: column;
        justify-content: center;
        gap: 0;
        padding-bottom: .5rem;
    }
    .ayka-app.sidebar-closed .ayka-sidebar-title,
    .ayka-app.sidebar-closed .ayka-nav-app .nav-label,
    .ayka-app.sidebar-closed .ayka-nav-app .nav-group-label,
    .ayka-app.sidebar-closed .ayka-nav-app .nav-chevron,
    .ayka-app.sidebar-closed .ayka-nav-app .nav-subitems,
    .ayka-app.sidebar-closed .nav-footer-app {
        display: none;
    }
    .ayka-app.sidebar-closed .ayka-brand-link-app {
        width: 40px;
        height: 40px;
    }
    .ayka-app.sidebar-closed .ayka-nav-app a,
    .ayka-app.sidebar-closed .ayka-nav-app .nav-group-toggle {
        justify-content: center;
        padding: .6rem .35rem;
        gap: 0;
    }
    .ayka-app.sidebar-closed .ayka-nav-app .nav-icon {
        width: auto;
        font-size: 1.2rem;
    }
}

.ayka-sidebar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
}

.ayka-sidebar-close {
    display: none;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ayka-border);
    border-radius: 10px;
    background: #fff;
    color: var(--ayka-text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.ayka-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid var(--ayka-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    padding: 0;
}

.ayka-menu-icon,
.ayka-menu-icon::before,
.ayka-menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ayka-brand-deep);
    border-radius: 2px;
    position: relative;
}

.ayka-menu-icon::before,
.ayka-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.ayka-menu-icon::before { top: -6px; }
.ayka-menu-icon::after { top: 6px; }

.ayka-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 190;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ayka-topbar-title {
    display: none;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.ayka-topbar-title strong {
    font-size: .95rem;
    color: var(--ayka-text);
}

.ayka-topbar-title small {
    font-size: .72rem;
    color: var(--ayka-muted);
}

.ayka-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.15rem 1rem 1.25rem;
    border-bottom: 1px solid var(--ayka-border);
    margin-bottom: .35rem;
}

.ayka-brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    line-height: 0;
    text-decoration: none;
    border-radius: 8px;
    transition: opacity .15s ease;
}

.ayka-brand-link:hover {
    opacity: .88;
}

.ayka-brand-link:focus-visible {
    outline: 2px solid var(--ayka-brand);
    outline-offset: 3px;
}

/* Eski sürüm önbelleğinde kalan başlık/metin varsa gizle */
.ayka-brand h1,
.ayka-brand p,
.ayka-brand > div:not(:has(.ayka-brand-link)) {
    display: none !important;
}

.ayka-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--ayka-brand-soft);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--ayka-brand-deep);
}

.ayka-nav {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.ayka-nav a {
    color: #475569;
    text-decoration: none;
    padding: .7rem .85rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .92rem;
    transition: .15s ease;
    border: 1px solid transparent;
}

.ayka-nav a:hover {
    background: var(--ayka-sidebar-hover);
    color: var(--ayka-brand-deep);
    border-color: var(--ayka-brand-muted);
}

.ayka-nav a.active {
    background: linear-gradient(90deg, var(--ayka-brand-soft), #fff);
    color: var(--ayka-brand-deep);
    border: 1px solid var(--ayka-brand-muted);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.12);
}

.nav-section-group { gap: .15rem; }
.nav-group-toggle {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    padding: .7rem .85rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .92rem;
    cursor: pointer;
    text-align: left;
    transition: .15s ease;
}
.nav-group-toggle:hover {
    background: var(--ayka-sidebar-hover);
    color: var(--ayka-brand-deep);
    border-color: var(--ayka-brand-muted);
}
.nav-group-toggle.open .nav-chevron { transform: rotate(180deg); }
.nav-group-label { flex: 1; font-weight: 600; }
.nav-chevron { font-size: .75rem; opacity: .6; transition: transform .15s ease; }
.nav-subitems { display: flex; flex-direction: column; gap: .1rem; padding-left: .35rem; margin-bottom: .35rem; }
.nav-subitems a, .ayka-nav a.nav-sublink {
    padding-left: 2.1rem;
    font-size: .88rem;
}
.invoice-modal-body { max-height: 78vh; }
.ayka-modal-panel-invoice { width: min(1120px, 98vw); max-height: 92vh; }

/* Tam sayfa fatura düzenleyici */
.invoice-editor-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 7rem);
    background: var(--ayka-surface);
    border-radius: var(--ayka-radius);
    border: 1px solid var(--ayka-border);
    box-shadow: var(--ayka-shadow);
}
.invoice-editor-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.invoice-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--ayka-border);
    background: linear-gradient(180deg, #f8fafc, #fff);
}
.invoice-page-header h2 { margin: .35rem 0 .2rem; font-size: 1.35rem; }
.invoice-back-btn { margin-bottom: .35rem; }
.invoice-page-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem 1.25rem;
    max-height: none;
}
.invoice-page-footer {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border-top: 1px solid var(--ayka-border);
    background: #f8fafc;
    position: sticky;
    bottom: 0;
}
.invoice-page-loading { padding: 2rem; text-align: center; color: var(--ayka-muted); }

.invoice-editor-page .invoice-form-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: end;
}
.invoice-editor-page .invoice-form-top .field-check { grid-column: 1 / -1; }

.invoice-editor-page .invoice-lines-section { margin-top: .5rem; }
.invoice-editor-page .invoice-lines-list { gap: .4rem; }

.invoice-editor-page .invoice-line-card {
    display: grid;
    grid-template-columns: minmax(160px, 1.4fr) minmax(120px, 1fr) 4.5rem 5.5rem minmax(90px, 1fr) 4.2rem 6.5rem minmax(95px, 1fr) 2.2rem;
    gap: .45rem .55rem;
    align-items: end;
    padding: .55rem .65rem;
    background: #fff;
}
.invoice-editor-page .line-card-head { display: none; }
.invoice-editor-page .line-card-row { display: contents; }
.invoice-editor-page .line-card-row .field > span {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--ayka-muted);
}
.invoice-editor-page .line-card-total {
    min-height: auto;
    padding: .4rem .5rem;
    align-items: flex-end;
}
.invoice-editor-page .line-vat-toggle .line-vat-check { padding: .35rem 0; white-space: nowrap; font-size: .75rem; }

.invoice-lines-table-head {
    display: grid;
    grid-template-columns: minmax(160px, 1.4fr) minmax(120px, 1fr) 4.5rem 5.5rem minmax(90px, 1fr) 4.2rem 6.5rem minmax(95px, 1fr) 2.2rem;
    gap: .45rem .55rem;
    padding: .4rem .65rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--ayka-muted);
    background: #eef6fb;
    border-radius: 10px;
    margin-bottom: .35rem;
}

.invoice-editor-page .invoice-bottom-grid {
    grid-template-columns: 1fr minmax(280px, 340px);
    margin-top: 1rem;
}

@media (max-width: 1200px) {
    .invoice-editor-page .invoice-form-top { grid-template-columns: 1fr 1fr; }
    .invoice-editor-page .invoice-line-card,
    .invoice-lines-table-head {
        grid-template-columns: 1fr 1fr;
    }
    .invoice-editor-page .line-card-row { display: grid; }
    .invoice-editor-page .line-card-head { display: flex; }
}
.invoice-form-top { margin-bottom: .5rem; }
.invoice-lines-section { margin-top: 1.25rem; }
.invoice-lines-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: .85rem; padding-bottom: .65rem; border-bottom: 1px solid var(--ayka-border); }
.invoice-lines-header h3 { margin: 0; font-size: 1.05rem; }
.invoice-lines-toolbar { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; }
.field-compact { min-width: 10rem; }
.field-compact span { font-size: .78rem; }
.invoice-lines-list { display: flex; flex-direction: column; gap: .85rem; }
.invoice-line-card { padding: 1rem 1.1rem; background: #f8fbfd; border: 1px solid var(--ayka-border); border-radius: 14px; }
.line-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.line-card-no { font-size: .8rem; font-weight: 600; color: var(--ayka-brand-deep); text-transform: uppercase; letter-spacing: .03em; }
.line-card-row { display: grid; gap: .85rem 1rem; align-items: start; }
.line-card-product { grid-template-columns: 1fr 1fr; }
.line-card-metrics { grid-template-columns: 5.5rem 6.5rem 1fr 5rem auto minmax(7.5rem, 1fr); margin-top: .65rem; padding-top: .75rem; border-top: 1px dashed var(--ayka-border); }
.field-grow { min-width: 0; }
.line-search-wrap { position: relative; }
.line-search-wrap input,
.invoice-line-card .field input,
.invoice-line-card .field select { width: 100%; padding: .55rem .65rem; border: 1px solid var(--ayka-border); border-radius: 10px; font-size: .9rem; background: #fff; }
.product-suggest-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .35rem 0; list-style: none; background: var(--ayka-surface); border: 1px solid var(--ayka-border); border-radius: 12px; box-shadow: var(--ayka-shadow); max-height: 240px; overflow-y: auto; }
.product-suggest-item { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; width: 100%; padding: .5rem .75rem; border: none; background: transparent; text-align: left; cursor: pointer; font-size: .88rem; color: var(--ayka-text); }
.product-suggest-item:hover { background: var(--ayka-brand-soft); }
.product-suggest-item strong { color: var(--ayka-brand-deep); font-size: .82rem; }
.product-suggest-item small { color: var(--ayka-muted); font-size: .75rem; }
.line-vat-toggle .line-vat-check { display: flex; align-items: center; gap: .4rem; padding: .55rem .5rem; font-size: .82rem; color: var(--ayka-muted); white-space: nowrap; }
.line-card-total { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: .2rem; padding: .5rem .75rem; background: #fff; border-radius: 12px; border: 1px solid var(--ayka-border); min-height: 3.2rem; }
.line-card-total span { font-size: .75rem; color: var(--ayka-muted); }
.line-card-total strong { font-size: 1.05rem; color: var(--ayka-brand-deep); }
.line-card-total small { font-size: .78rem; color: var(--ayka-muted); }
.invoice-bottom-grid { display: grid; grid-template-columns: 1fr minmax(260px, 320px); gap: 1.25rem; align-items: start; margin-top: 1.25rem; }
.invoice-fx-banner { margin: .75rem 0; }
.party-type-checks { display: flex; flex-direction: column; gap: .4rem; margin-top: .35rem; }
.party-type-checks .field-check { font-size: .9rem; }
.invoice-fx-row { font-size: .88rem; color: var(--ayka-muted); }
.invoice-fx-row strong { color: var(--ayka-text); }
.invoice-totals-panel { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem; background: linear-gradient(180deg, #f0f9ff, #fff); border-radius: 14px; border: 1px solid var(--ayka-border); }
.invoice-totals-title { font-size: .8rem; font-weight: 700; color: var(--ayka-brand-deep); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; }
.invoice-totals-panel > div:not(.invoice-totals-title) { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.invoice-totals-panel .grand strong { font-size: 1.2rem; color: var(--ayka-brand-deep); }
@media (max-width: 900px) {
    .line-card-product { grid-template-columns: 1fr; }
    .line-card-metrics { grid-template-columns: 1fr 1fr; }
    .line-card-total { grid-column: 1 / -1; align-items: flex-start; }
    .invoice-bottom-grid { grid-template-columns: 1fr; }
}
.field textarea { padding: .6rem .75rem; border: 1px solid var(--ayka-border); border-radius: 10px; font-size: .95rem; resize: vertical; min-height: 4rem; }

.ayka-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ayka-topbar {
    height: 68px;
    background: var(--ayka-surface);
    border-bottom: 1px solid var(--ayka-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.ayka-search {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.ayka-search input {
    width: 100%;
    border: 1px solid var(--ayka-border);
    background: #f8fafc;
    border-radius: 999px;
    padding: .65rem 1rem .65rem 2.4rem;
    outline: none;
}

.ayka-search input:focus {
    border-color: var(--ayka-brand);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, .18);
}

.ayka-search-icon {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ayka-muted);
    font-size: .9rem;
}

.ayka-topbar-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.ayka-pill {
    font-size: .75rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: var(--ayka-primary-soft);
    color: var(--ayka-brand-deep);
    border: 1px solid var(--ayka-brand-muted);
}

.ayka-user {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .5rem;
    border-radius: 999px;
    border: 1px solid var(--ayka-border);
    background: #fff;
}

.ayka-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ayka-brand), var(--ayka-brand-dark));
    color: white;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 700;
}

.ayka-content {
    padding: 1.25rem;
}

.page-title {
    margin: 0 0 .25rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.page-subtitle {
    margin: 0 0 1.25rem;
    color: var(--ayka-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    background: var(--ayka-surface);
    border: 1px solid var(--ayka-border);
    border-radius: var(--ayka-radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--ayka-shadow);
}

.stat-card .label {
    color: var(--ayka-muted);
    font-size: .85rem;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: .35rem;
}

.stat-card.success .value { color: var(--ayka-success); }
.stat-card.warning .value { color: var(--ayka-warning); }
.stat-card.danger .value { color: var(--ayka-danger); }

.panel-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.panel {
    background: var(--ayka-surface);
    border: 1px solid var(--ayka-border);
    border-radius: var(--ayka-radius);
    padding: 1rem;
    box-shadow: var(--ayka-shadow);
}

.panel h3 {
    margin: 0 0 .75rem;
    font-size: 1rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

.quick-btn {
    border: 1px solid var(--ayka-border);
    background: #f8fafc;
    border-radius: 12px;
    padding: .85rem;
    text-align: left;
    cursor: pointer;
    transition: .15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.quick-btn:hover {
    border-color: var(--ayka-brand);
    background: var(--ayka-brand-soft);
}

.api-status {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
}

.api-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
}

.api-dot.online { background: var(--ayka-success); }
.api-dot.offline { background: var(--ayka-danger); }

.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.page-actions { display: flex; gap: .5rem; }
.ayka-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--ayka-border); }
.ayka-table th, .ayka-table td { padding: .65rem .85rem; text-align: left; border-bottom: 1px solid var(--ayka-border); font-size: .9rem; }
.ayka-table th { background: #f8fafc; color: var(--ayka-muted); font-weight: 600; }
.ayka-table tr:hover td { background: #f8fafc; }
.btn { border: 1px solid var(--ayka-border); background: #fff; border-radius: 10px; padding: .5rem 1rem; cursor: pointer; }
.btn-primary { background: linear-gradient(180deg, var(--ayka-brand), var(--ayka-brand-dark)); color: #fff; border-color: var(--ayka-brand-dark); }
.btn-primary:hover { filter: brightness(1.05); }

.btn-sm { padding: .2rem .5rem; font-size: .8rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; margin-bottom: .75rem; }
.form-grid input { padding: .5rem .75rem; border: 1px solid var(--ayka-border); border-radius: 8px; }
.form-panel { margin-bottom: 1rem; }
/* —— POS / Hızlı Satış (masaüstü kasa) —— */
.ayka-content:has(.pos-screen) { padding: 0; height: calc(100vh - 68px); overflow: hidden; }
.pos-screen { display: flex; flex-direction: column; height: 100%; background: var(--ayka-bg); }
.pos-topbar { display: flex; align-items: center; gap: 1rem; padding: .65rem 1rem; background: #fff; color: var(--ayka-text); flex-shrink: 0; border-bottom: 3px solid var(--ayka-brand); box-shadow: 0 2px 12px rgba(0, 174, 239, 0.08); }
.pos-topbar-brand { display: flex; align-items: center; gap: .65rem; min-width: 200px; }
.pos-topbar-brand img { width: 40px; height: 40px; object-fit: contain; background: var(--ayka-brand-soft); border-radius: 8px; padding: 3px; border: 1px solid var(--ayka-border); }
.pos-topbar-brand strong { display: block; font-size: .95rem; color: #1a2b3c; }
.pos-topbar-brand span { font-size: .72rem; color: var(--ayka-muted); }
.pos-barcode-wrap { flex: 1; display: flex; align-items: center; background: #f8fcff; border: 2px solid var(--ayka-border); border-radius: 12px; padding: 0 .5rem 0 1rem; max-width: 720px; }
.pos-barcode-wrap:focus-within { border-color: var(--ayka-brand); box-shadow: 0 0 0 3px rgba(0, 174, 239, .2); }
.pos-barcode-icon { font-size: 1.25rem; color: var(--ayka-brand); margin-right: .5rem; }
.pos-barcode-input { flex: 1; border: none; background: transparent; color: var(--ayka-text); font-size: 1.15rem; padding: .75rem 0; outline: none; }
.pos-barcode-input::placeholder { color: #94a3b8; }
.pos-barcode-clear { background: var(--ayka-brand-soft); border: 1px solid var(--ayka-border); color: var(--ayka-brand-deep); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 1rem; }
.pos-barcode-clear:hover { background: var(--ayka-brand-muted); }
.pos-topbar-chips { display: flex; gap: .5rem; }
.pos-chip { font-size: .78rem; padding: .35rem .7rem; border-radius: 999px; background: #f1f8fc; border: 1px solid var(--ayka-border); color: var(--ayka-text); }
.pos-chip-accent { background: linear-gradient(135deg, var(--ayka-brand), var(--ayka-brand-dark)); border-color: var(--ayka-brand-dark); color: #fff; }
.pos-body { display: grid; grid-template-columns: 1fr minmax(360px, 440px); flex: 1; min-height: 0; gap: 0; }
.pos-body-classic { grid-template-columns: minmax(0, 1fr) minmax(320px, 42%); }
.pos-catalog { display: flex; flex-direction: column; min-height: 0; background: #f1f5f9; border-right: 1px solid #cbd5e1; }
.pos-catalog-toolbar { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem; background: #fff; border-bottom: 1px solid var(--ayka-border); flex-shrink: 0; }
.pos-filter-tabs { display: flex; gap: .35rem; }
.pos-filter-tab { padding: .4rem .85rem; border-radius: 8px; border: 1px solid var(--ayka-border); background: #f8fafc; font-size: .85rem; cursor: pointer; }
.pos-filter-tab.active { background: var(--ayka-primary); color: #fff; border-color: var(--ayka-primary); }
.pos-filter-tab:disabled { opacity: .5; cursor: not-allowed; }
.pos-catalog-hint { font-size: .8rem; color: var(--ayka-muted); }
.pos-product-grid { flex: 1; overflow-y: auto; padding: .75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: .65rem; align-content: start; }
.pos-product-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: .75rem; min-height: 118px; background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; cursor: pointer; transition: transform .1s, border-color .15s, box-shadow .15s; box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.pos-product-card:hover { border-color: var(--ayka-brand); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 174, 239, .18); }
.pos-product-card:active { transform: scale(.98); }
.pos-product-price { font-size: 1.1rem; font-weight: 800; color: var(--ayka-brand-deep); margin-bottom: .35rem; }
.pos-product-name { font-size: .88rem; font-weight: 600; line-height: 1.25; color: var(--ayka-text); flex: 1; }
.pos-product-meta { font-size: .7rem; color: #64748b; margin-top: .35rem; }
.pos-product-barcode { font-size: .68rem; font-family: ui-monospace, monospace; background: #f1f5f9; padding: .15rem .4rem; border-radius: 4px; margin-top: .25rem; }
.pos-empty-products { grid-column: 1 / -1; text-align: center; padding: 3rem; color: var(--ayka-muted); }
.pos-empty-products span { font-size: 2.5rem; }
.pos-checkout {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    background: #fff;
    box-shadow: -4px 0 24px rgba(15,23,42,.08);
}
.pos-customer-bar {
    padding: .55rem .75rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--ayka-border);
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}
.pos-customer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.pos-customer-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ayka-muted); }
.pos-customer-clear { border: none; background: #e2e8f0; width: 24px; height: 24px; border-radius: 6px; cursor: pointer; line-height: 1; }
.pos-customer-search {
    width: 100%;
    padding: .45rem .65rem;
    border: 1px solid var(--ayka-border);
    border-radius: 8px;
    font-size: .88rem;
}
.pos-customer-selected strong { display: block; font-size: .9rem; }
.pos-customer-selected small { display: block; color: var(--ayka-muted); font-size: .75rem; }
.pos-credit-hint { color: var(--ayka-brand-deep); }
.pos-customer-retail {
    margin-top: .35rem;
    width: 100%;
    padding: .35rem;
    border: 1px dashed var(--ayka-border);
    background: transparent;
    border-radius: 8px;
    font-size: .78rem;
    color: var(--ayka-muted);
    cursor: pointer;
}
.pos-customer-suggest {
    list-style: none;
    margin: .35rem 0 0;
    padding: 0;
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid var(--ayka-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--ayka-shadow);
}
.pos-customer-suggest button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: .5rem .65rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: .85rem;
}
.pos-customer-suggest button:hover { background: var(--ayka-brand-soft); }
.pos-customer-suggest span { font-size: .72rem; color: var(--ayka-muted); }
.pos-cart-header { display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; background: linear-gradient(135deg, var(--ayka-brand) 0%, var(--ayka-brand-dark) 100%); color: #fff; flex-shrink: 0; }
.pos-cart-header h2 { margin: 0; font-size: .95rem; display: flex; align-items: center; gap: .4rem; }
.pos-line-count {
    background: rgba(255,255,255,.25);
    padding: .1rem .45rem;
    border-radius: 999px;
    font-size: .75rem;
}
.pos-text-btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); color: #fff; padding: .25rem .55rem; border-radius: 6px; cursor: pointer; font-size: .75rem; }
.pos-text-btn:disabled { opacity: .4; cursor: not-allowed; }
.pos-cart-lines {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: .35rem .5rem;
    -webkit-overflow-scrolling: touch;
}
.pos-cart-empty { text-align: center; padding: 1.5rem .75rem; color: var(--ayka-muted); }
.pos-cart-empty span { font-size: 1.75rem; display: block; margin-bottom: .35rem; }
.pos-cart-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px 58px 26px;
    gap: .35rem;
    align-items: center;
    padding: .45rem .5rem;
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: .25rem;
    background: #f8fafc;
    cursor: pointer;
}
.pos-cart-line.selected { border-color: var(--ayka-brand); background: var(--ayka-brand-soft); }
.pos-line-info { min-width: 0; }
.pos-line-info strong {
    display: block;
    font-size: .82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pos-line-info small { color: var(--ayka-muted); font-size: .68rem; }
.pos-line-qty { display: flex; align-items: center; gap: .25rem; }
.pos-line-qty button { width: 24px; height: 24px; border: 1px solid var(--ayka-border); background: #fff; border-radius: 5px; cursor: pointer; font-size: .9rem; line-height: 1; padding: 0; }
.pos-line-qty span { min-width: 1.5rem; text-align: center; font-weight: 700; font-size: .82rem; }
.pos-line-total { font-weight: 800; font-size: .82rem; text-align: right; }
.pos-line-remove { width: 24px; height: 24px; border: none; background: #fee2e2; color: #b91c1c; border-radius: 5px; cursor: pointer; font-size: 1rem; padding: 0; }
.pos-checkout-foot {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--ayka-border);
    background: #fff;
    max-height: none;
}
.pos-totals { padding: .5rem .75rem; background: #f8fafc; flex-shrink: 0; }
.pos-totals-compact .pos-total-row { font-size: .78rem; padding: .1rem 0; }
.pos-totals-compact .pos-total-grand { font-size: 1rem; padding-top: .35rem; margin-top: .2rem; }
.pos-totals-compact .pos-total-grand span:last-child { font-size: 1.15rem; }
.pos-total-row { display: flex; justify-content: space-between; font-size: .88rem; padding: .2rem 0; color: var(--ayka-muted); }
.pos-total-grand { font-size: 1.15rem; font-weight: 800; color: var(--ayka-text); padding-top: .5rem; margin-top: .35rem; border-top: 2px dashed #cbd5e1; }
.pos-total-grand span:last-child { color: var(--ayka-brand-deep); font-size: 1.35rem; }
.pos-payment { padding: .75rem 1rem 1rem; background: linear-gradient(180deg, #f0f9ff 0%, #e8f7fd 100%); flex-shrink: 0; border-top: 1px solid var(--ayka-border); }
.pos-pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .65rem; }
.pos-pay-method { padding: .55rem; border-radius: 10px; border: 2px solid var(--ayka-border); background: #fff; color: var(--ayka-text); cursor: pointer; font-size: .88rem; font-weight: 600; }
.pos-pay-method.active { border-color: var(--ayka-brand); background: var(--ayka-brand-soft); color: var(--ayka-brand-deep); }
.pos-paid-row label { display: block; font-size: .72rem; color: var(--ayka-muted); margin-bottom: .25rem; }
.pos-paid-display { width: 100%; font-size: 1.5rem; font-weight: 800; text-align: right; padding: .5rem .75rem; border: 2px solid var(--ayka-border); border-radius: 10px; background: #fff; color: var(--ayka-text); }
.pos-numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .65rem 0; }
.pos-numpad-key { padding: .85rem; font-size: 1.2rem; font-weight: 700; border: 1px solid var(--ayka-border); border-radius: 10px; background: #fff; color: var(--ayka-text); cursor: pointer; }
.pos-numpad-key:hover { background: var(--ayka-brand-soft); border-color: var(--ayka-brand); }
.pos-numpad-key.wide { grid-column: span 1; background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.pos-change { display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; background: #14532d; border-radius: 8px; margin-bottom: .5rem; color: #bbf7d0; }
.pos-change.negative { background: #7f1d1d; color: #fecaca; }
.pos-change strong { font-size: 1.2rem; }
.pos-actions { display: flex; flex-direction: column; gap: .45rem; }
.pos-btn-complete { width: 100%; padding: 1rem; font-size: 1rem; font-weight: 800; border: none; border-radius: 12px; background: linear-gradient(180deg, #22c55e, #16a34a); color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(22,163,74,.4); }
.pos-btn-complete:hover:not(:disabled) { filter: brightness(1.05); }
.pos-btn-complete:disabled { opacity: .5; cursor: not-allowed; }
.pos-btn-exact { padding: .5rem; border: 1px solid var(--ayka-border); background: #fff; color: var(--ayka-muted); border-radius: 8px; cursor: pointer; font-size: .85rem; }
.pos-btn-exact:hover:not(:disabled) { background: var(--ayka-brand-soft); color: var(--ayka-brand-deep); border-color: var(--ayka-brand); }
.pos-msg { margin: .5rem 0 0; font-size: .85rem; text-align: center; padding: .4rem; border-radius: 6px; }
.pos-msg.ok { background: #14532d; color: #bbf7d0; }
.pos-msg.err { background: #7f1d1d; color: #fecaca; }
.totals { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--ayka-border); }
.msg { color: var(--ayka-success); font-weight: 600; }
.chart-placeholder { height: 200px; display: grid; place-items: center; color: var(--ayka-muted); border: 1px dashed var(--ayka-border); border-radius: 12px; }
.search { width: 100%; margin-bottom: .75rem; padding: .5rem .75rem; border: 1px solid var(--ayka-border); border-radius: 8px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.settings-grid .muted, .page-subtitle { color: var(--ayka-muted); font-size: .9rem; }
.settings-fx-panel { margin-bottom: 1.25rem; }
.settings-fx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.settings-fx-head h3 { margin: 0 0 .35rem; }
.settings-fx-current { display: flex; gap: 2.5rem; margin-bottom: 1rem; padding: 1rem 1.25rem; background: linear-gradient(135deg, #e6f7fd, #f8fcff); border-radius: 12px; border: 1px solid var(--ayka-border); }
.settings-fx-label { display: block; font-size: .78rem; color: var(--ayka-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }
.settings-fx-value { font-size: 1.35rem; color: var(--ayka-brand-deep); }
.settings-fx-form { margin-bottom: .75rem; }
.form-grid select { padding: .5rem .75rem; border: 1px solid var(--ayka-border); border-radius: 8px; background: #fff; }

/* Brand & sidebar */
.ayka-brand-img {
    display: block;
    width: min(210px, 92%);
    height: auto;
    max-height: 88px;
    min-height: 64px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
}
.nav-section { margin-bottom: .5rem; }
.nav-section-title { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ayka-brand-dark); padding: .5rem .85rem .25rem; font-weight: 700; opacity: .85; }
.nav-icon { width: 1.25rem; text-align: center; }
.nav-footer { margin-top: auto; padding: 1rem .75rem 0; border-top: 1px solid var(--ayka-border); }
.nav-domain { color: var(--ayka-brand); font-size: .8rem; text-decoration: none; font-weight: 600; }
.nav-domain:hover { color: var(--ayka-brand-deep); text-decoration: underline; }
.nav-version { display: block; font-size: .7rem; color: var(--ayka-muted); margin-top: .25rem; }
.ayka-branch-pill { font-size: .75rem; padding: .35rem .65rem; border-radius: 999px; background: #f1f5f9; border: 1px solid var(--ayka-border); }
.ayka-pill-cloud { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.ayka-user strong { display: block; font-size: .85rem; line-height: 1.2; }
.ayka-user small { color: var(--ayka-muted); font-size: .72rem; }

/* Dashboard hero */
.dashboard-hero { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: linear-gradient(135deg, var(--ayka-brand) 0%, var(--ayka-brand-dark) 55%, var(--ayka-brand-deep) 100%); color: #fff; border-radius: var(--ayka-radius); padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; box-shadow: var(--ayka-shadow); }
.hero-text { display: flex; align-items: center; gap: 1.25rem; }
.hero-logo { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 14px; padding: 6px; }
.dashboard-hero h1 { margin: 0 0 .35rem; font-size: 1.45rem; }
.dashboard-hero p { margin: 0; opacity: .92; font-size: .95rem; max-width: 520px; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-lg { padding: .65rem 1.25rem; font-size: .95rem; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); text-decoration: none; border-radius: 10px; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.stats-grid-6 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat-card-top { display: flex; align-items: center; gap: .5rem; }
.stat-icon { font-size: 1.1rem; }
.stat-hint { font-size: .75rem; color: var(--ayka-muted); margin-top: .25rem; }
.dashboard-grid { grid-template-columns: 2fr 1fr; }
.panel-span-2 { grid-column: span 1; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.panel-head h3 { margin: 0; }
.link-sm { font-size: .85rem; color: var(--ayka-primary); text-decoration: none; }
.quick-actions-rich { grid-template-columns: 1fr; }
.quick-actions-rich .quick-btn span { font-size: 1.25rem; display: block; margin-bottom: .25rem; }
.quick-actions-rich .quick-btn strong { display: block; font-size: .9rem; }
.quick-actions-rich .quick-btn small { color: var(--ayka-muted); font-size: .75rem; }
.chart-bars { display: flex; align-items: flex-end; gap: .5rem; height: 140px; padding-top: .5rem; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; max-width: 36px; background: linear-gradient(180deg, var(--ayka-brand), var(--ayka-brand-dark)); border-radius: 6px 6px 0 0; min-height: 4px; }
.chart-bar-wrap span { font-size: .7rem; color: var(--ayka-muted); }
.chart-note, .ref-note { font-size: .8rem; margin: .75rem 0 0; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: .4rem 0; font-size: .9rem; display: flex; gap: .5rem; align-items: center; }
.feat-ok { color: var(--ayka-success); font-weight: 700; }
.feat-plan { color: var(--ayka-warning); }
.loading-skeleton { padding: 2rem; text-align: center; color: var(--ayka-muted); }

/* Module UI */
.module-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; padding: .75rem 1rem; background: var(--ayka-surface); border: 1px solid var(--ayka-border); border-radius: var(--ayka-radius); }
.module-toolbar-left, .module-toolbar-right { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.toolbar-search { min-width: 220px; padding: .5rem .85rem; border: 1px solid var(--ayka-border); border-radius: 8px; }
.filter-select { padding: .5rem .75rem; border: 1px solid var(--ayka-border); border-radius: 8px; background: #fff; }
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: var(--ayka-brand-soft); color: var(--ayka-brand-deep); }
.text-end { text-align: right; }
.text-danger { color: var(--ayka-danger); font-weight: 600; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--ayka-muted); }
.empty-icon { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.empty-state h4 { margin: 0 0 .35rem; color: var(--ayka-text); }
.form-grid label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; color: var(--ayka-muted); }
.form-grid label input, .form-grid label select { margin-top: 0; }
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--ayka-border);
}
.module-tabs { display: flex; gap: .35rem; margin-bottom: 1rem; flex-wrap: wrap; }
.module-tab { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--ayka-border); background: #fff; cursor: pointer; font-size: .88rem; }
.module-tab.active { background: var(--ayka-primary); color: #fff; border-color: var(--ayka-primary); }
.summary-strip { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .88rem; color: var(--ayka-muted); }
.summary-strip strong { color: var(--ayka-text); }
.text-success { color: var(--ayka-success); font-weight: 600; }
.depo-list { list-style: none; padding: 0; margin: 0; }
.depo-list li { padding: .5rem 0; border-bottom: 1px solid var(--ayka-border); }
.settings-hero { display: flex; align-items: center; gap: 1rem; grid-column: 1 / -1; }
.settings-logo { width: 64px; height: 64px; object-fit: contain; }
.ayka-table.compact td, .ayka-table.compact th { padding: .45rem .65rem; }

/* Product editor modal (ayka-* avoids Bootstrap .modal-dialog / .modal-backdrop clash) */
.ayka-modal-root {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}
.ayka-modal-scrim {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    pointer-events: auto;
}
.ayka-modal-panel-wide { width: min(820px, 96vw); }
.ayka-modal-panel-xl { width: min(960px, 98vw); }
.ayka-modal-panel {
    position: relative;
    z-index: 1;
    width: min(720px, 94vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--ayka-text);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    pointer-events: auto;
}
.ayka-modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--ayka-border); background: linear-gradient(180deg, #f8fafc, #fff); }
.ayka-modal-header h2 { margin: 0 0 .25rem; font-size: 1.25rem; color: var(--ayka-text); }
.ayka-modal-header p { margin: 0; font-size: .85rem; color: var(--ayka-muted); }
.ayka-modal-close { border: none; background: #f1f5f9; width: 36px; height: 36px; border-radius: 10px; font-size: 1.4rem; cursor: pointer; line-height: 1; color: var(--ayka-text); }
.ayka-modal-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--ayka-border); padding: 0 1rem; background: #f8fafc; }
.ayka-modal-tab { padding: .75rem 1.1rem; border: none; background: transparent; cursor: pointer; font-size: .9rem; color: var(--ayka-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ayka-modal-tab.active { color: var(--ayka-primary); border-bottom-color: var(--ayka-primary); font-weight: 600; background: #fff; }
.ayka-modal-body { padding: 1.25rem 1.5rem; overflow-y: auto; flex: 1; background: #fff; }
.ayka-modal-footer { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.5rem; border-top: 1px solid var(--ayka-border); background: #f8fafc; }
.form-section { display: flex; flex-direction: column; gap: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field span { font-size: .8rem; font-weight: 600; color: var(--ayka-muted); }
.field input, .field select { padding: .6rem .75rem; border: 1px solid var(--ayka-border); border-radius: 10px; font-size: .95rem; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ayka-brand); box-shadow: 0 0 0 3px rgba(0, 174, 239, .15); }
.field-full { grid-column: 1 / -1; }
.field-check { flex-direction: row; align-items: center; gap: .5rem; }
.field-check span { font-size: .9rem; color: var(--ayka-text); font-weight: 500; }
.input-with-btn { display: flex; gap: .35rem; }
.input-with-btn input { flex: 1; }
.btn-icon { width: 42px; border: 1px solid var(--ayka-border); background: #f8fafc; border-radius: 10px; cursor: pointer; font-size: 1rem; }
.btn-icon:hover { background: var(--ayka-brand-soft); border-color: var(--ayka-brand); }
.vat-quick { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .85rem; }
.vat-chip { padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--ayka-border); background: #fff; cursor: pointer; font-size: .85rem; }
.vat-chip.active { background: var(--ayka-primary); color: #fff; border-color: var(--ayka-primary); }
.margin-slider { background: #f8fafc; border: 1px solid var(--ayka-border); border-radius: 12px; padding: 1rem; }
.margin-slider input[type=range] { width: 100%; margin: .5rem 0; }
.price-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: .5rem; }
.price-preview > div { background: var(--ayka-brand-soft); border-radius: 10px; padding: .75rem; text-align: center; }
.price-preview span { display: block; font-size: .75rem; color: var(--ayka-muted); }
.price-preview strong { font-size: 1.1rem; }
.form-error-banner { background: #fee2e2; color: #991b1b; padding: .65rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.field-hint { font-size: .8rem; color: var(--ayka-muted); margin: 0; }
.toast-banner { padding: .65rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; }
.toast-banner.ok { background: #d1fae5; color: #065f46; }
.toast-banner.err { background: #fee2e2; color: #991b1b; }
.api-offline-banner { margin-bottom: 1.25rem; }
.api-offline-hint { margin: .5rem 0 0; font-size: .85rem; font-weight: 400; }
.api-offline-hint code { background: rgba(0,0,0,.06); padding: .1rem .35rem; border-radius: 4px; }
.barcode-tag { font-size: .78rem; background: #f1f5f9; padding: .15rem .4rem; border-radius: 4px; }
.unit-tag { display: block; color: var(--ayka-muted); font-size: .75rem; }
.row-actions { white-space: nowrap; }
.btn-icon-sm { border: 1px solid var(--ayka-border); background: #fff; border-radius: 6px; padding: .2rem .45rem; cursor: pointer; margin-left: .2rem; }
.btn-icon-sm.danger:hover { background: #fee2e2; border-color: #fca5a5; }
.product-table { font-size: .88rem; }
.muted { color: var(--ayka-muted); }

.fx-panel h3 { margin: 0 0 1rem; font-size: 1rem; }
.fx-rates-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    padding: .75rem 1rem;
    background: var(--ayka-brand-soft);
    border: 1px solid var(--ayka-brand-muted);
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: .88rem;
}
.currency-price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-bottom: 1rem;
}
.currency-price-card {
    border: 2px solid var(--ayka-border);
    border-radius: 12px;
    padding: .75rem;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.currency-price-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 0 .5rem;
    padding: 0 0 .35rem;
    border: none;
    border-bottom: 1px solid var(--ayka-border);
    background: transparent;
    cursor: pointer;
    font: inherit;
}
.currency-price-card.active {
    border-color: var(--ayka-brand);
    box-shadow: 0 4px 14px rgba(0, 174, 239, .15);
}
.currency-price-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
    padding-bottom: .35rem;
    border-bottom: 1px dashed var(--ayka-border);
}
.currency-price-head strong { font-size: .95rem; color: var(--ayka-brand-deep); }
.currency-line-hint { display: block; margin-top: .35rem; color: var(--ayka-muted); font-size: .75rem; }
.pos-currency-bar { display: flex; gap: .35rem; flex-shrink: 0; }
.pos-currency-btn {
    padding: .4rem .75rem;
    border-radius: 8px;
    border: 1px solid var(--ayka-border);
    background: #f8fcff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}
.pos-currency-btn.active {
    background: linear-gradient(135deg, var(--ayka-brand), var(--ayka-brand-dark));
    color: #fff;
    border-color: var(--ayka-brand-dark);
}

/* Ürün grupları */
.product-groups-panel { margin-bottom: 1rem; }
.product-groups-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}
.product-groups-head h3 { margin: 0 0 .25rem; font-size: 1rem; }
.product-group-add {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    flex-wrap: wrap;
}
.product-group-add .field-grow { flex: 1; min-width: 140px; }
.product-group-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.product-group-chip {
    padding: .35rem .75rem;
    border-radius: 999px;
    background: var(--ayka-brand-soft);
    border: 1px solid var(--ayka-brand-muted);
    font-size: .85rem;
    color: var(--ayka-brand-deep);
    font-weight: 600;
}
.pos-group-tabs {
    flex-wrap: wrap;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .25rem;
}
.pos-group-tabs .pos-filter-tab { flex-shrink: 0; white-space: nowrap; }

/* POS ödeme v2 */
.pos-payment-v2 {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: .5rem .75rem .65rem;
    background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
    overflow-y: auto;
    min-height: 0;
}
.pos-pay-methods-v2 { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.pos-pay-methods-3 { grid-template-columns: repeat(3, 1fr); }
.pos-cash-panel { display: flex; flex-direction: column; gap: .4rem; }
.pos-pay-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: .45rem .25rem;
    border: 2px solid var(--ayka-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: .72rem;
    color: var(--ayka-text);
    transition: border-color .15s, background .15s;
}
.pos-pay-card-icon { font-size: 1.1rem; }
.pos-pay-card.active {
    border-color: var(--ayka-brand);
    background: var(--ayka-brand-soft);
    color: var(--ayka-brand-deep);
}
.pos-quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .3rem;
}
.pos-quick-amt {
    padding: .35rem .2rem;
    border: 1px solid var(--ayka-border);
    border-radius: 6px;
    background: #fff;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--ayka-text);
}
.pos-quick-amt:hover:not(:disabled) {
    border-color: var(--ayka-brand);
    background: var(--ayka-brand-soft);
}
.pos-quick-amt:disabled { opacity: .45; cursor: not-allowed; }
.pos-quick-exact {
    grid-column: span 1;
    background: var(--ayka-brand-soft);
    color: var(--ayka-brand-deep);
    border-color: var(--ayka-brand-muted);
}
.pos-paid-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem .75rem;
    background: #fff;
    border: 2px solid var(--ayka-border);
    border-radius: 10px;
}
.pos-paid-box span { font-size: .78rem; color: var(--ayka-muted); text-transform: uppercase; }
.pos-paid-box strong { font-size: 1.1rem; color: var(--ayka-text); }
.pos-numpad-compact { margin: 0; gap: .3rem; }
.pos-numpad-compact .pos-numpad-key {
    padding: .45rem;
    font-size: .95rem;
    min-height: 36px;
}
.pos-account-info {
    text-align: center;
    padding: .65rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
}
.pos-account-info.warn { background: #fef2f2; border-color: #fecaca; }
.pos-account-info p { margin: 0 0 .25rem; font-size: .82rem; }
.pos-account-info strong { font-size: 1.1rem; color: var(--ayka-brand-deep); }
.pos-account-info small { display: block; color: var(--ayka-muted); font-size: .75rem; margin-top: .2rem; }
.pos-numpad-v2 { margin: 0; }
.pos-change-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem .75rem;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.pos-change-card.negative {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.pos-change-card.positive strong { font-size: 1.2rem; }
.pos-card-info {
    text-align: center;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed var(--ayka-border);
}
.pos-card-info span { font-size: 2rem; display: block; margin-bottom: .35rem; }
.pos-card-info p { margin: 0 0 .35rem; color: var(--ayka-muted); font-size: .88rem; }
.pos-card-info strong { font-size: 1.25rem; color: var(--ayka-brand-deep); }
.pos-btn-complete-v2 {
    width: 100%;
    padding: .75rem;
    font-size: .92rem;
    font-weight: 800;
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(22, 163, 74, .35);
}
.pos-btn-complete-v2:hover:not(:disabled) { filter: brightness(1.05); }
.pos-btn-complete-v2:disabled { opacity: .5; cursor: not-allowed; }

/* POS ödeme — yan panel butonları + popup */
.pos-pay-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem;
    padding: .5rem .75rem .65rem;
    background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
}
.pos-pay-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: .5rem .25rem;
    border: 2px solid var(--ayka-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: .72rem;
    color: var(--ayka-text);
}
.pos-pay-type-btn span:first-child { font-size: 1.15rem; }
.pos-pay-type-btn:hover:not(:disabled) {
    border-color: var(--ayka-brand);
    background: var(--ayka-brand-soft);
}
.pos-pay-type-btn:disabled { opacity: .45; cursor: not-allowed; }
.pos-pay-type-btn.cash.active,
.pos-pay-type-btn.card.active,
.pos-pay-type-btn.account.active {
    border-color: var(--ayka-brand);
    background: var(--ayka-brand-soft);
    color: var(--ayka-brand-deep);
}
.pos-btn-pay-main {
    grid-column: 1 / -1;
    padding: .85rem;
    font-size: .95rem;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(22, 163, 74, .35);
}
.pos-btn-pay-main:hover:not(:disabled) { filter: brightness(1.05); }
.pos-btn-pay-main:disabled { opacity: .5; cursor: not-allowed; }
.pos-checkout-foot .pos-msg { margin: 0 .75rem .5rem; }

.pos-pay-modal-root {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.pos-pay-modal-scrim {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(2px);
}
.pos-pay-modal-panel {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    max-height: min(92vh, 720px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, .2);
    animation: pos-pay-slide .22s ease;
}
@keyframes pos-pay-slide {
    from { transform: translateY(100%); opacity: .6; }
    to { transform: translateY(0); opacity: 1; }
}
.pos-pay-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1rem .5rem;
    border-bottom: 1px solid var(--ayka-border);
}
.pos-pay-modal-head h2 { margin: 0; font-size: 1.15rem; }
.pos-pay-modal-total { margin: .2rem 0 0; font-size: 1.35rem; font-weight: 800; color: var(--ayka-brand-deep); }
.pos-pay-modal-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem;
    padding: .65rem 1rem;
}
.pos-pay-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 1rem .75rem;
}
.pos-pay-modal-foot {
    display: flex;
    gap: .5rem;
    padding: .75rem 1rem max(.75rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--ayka-border);
    background: #f8fafc;
}
.pos-pay-modal-foot .btn { flex: 1; }
.pos-btn-complete-modal {
    flex: 2 !important;
    font-weight: 800;
}
.pos-numpad-modal { margin: .35rem 0; }
.pos-numpad-modal .pos-numpad-key {
    padding: .65rem;
    font-size: 1.05rem;
    min-height: 44px;
}
.pos-quick-amt.full { width: 100%; margin-bottom: .25rem; }
.pos-modal-big-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: .35rem;
}
.pos-card-info .pos-modal-big-icon,
.pos-account-info .pos-modal-big-icon { margin: 0 auto .35rem; }

/* POS klasik hızlı satış (örnek ekran düzeni) */
.pos-classic .pos-topbar {
    flex-wrap: wrap;
    gap: .5rem .65rem;
    padding: .5rem .75rem;
}
.pos-topbar-currency { flex-shrink: 0; }
.pos-currency-select {
    padding: .55rem .75rem;
    border: 1px solid var(--ayka-border);
    border-radius: 8px;
    font-weight: 700;
    font-size: .88rem;
    background: #fff;
    min-width: 5.5rem;
}
.pos-topbar-actions { display: flex; gap: .35rem; flex-shrink: 0; }
.pos-tb-btn {
    padding: .5rem .75rem;
    border-radius: 8px;
    border: 1px solid var(--ayka-border);
    background: #fff;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.pos-tb-btn.accent {
    background: linear-gradient(180deg, var(--ayka-brand), var(--ayka-brand-dark));
    border-color: var(--ayka-brand-dark);
    color: #fff;
}
.pos-tb-btn:disabled { opacity: .45; cursor: not-allowed; }
.pos-topbar-totals {
    display: flex;
    gap: .5rem;
    margin-left: auto;
    flex-shrink: 0;
}
.pos-total-box {
    min-width: 5.5rem;
    padding: .35rem .65rem;
    border: 2px solid var(--ayka-border);
    border-radius: 8px;
    background: #fff;
    text-align: center;
}
.pos-total-box-label {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ayka-muted);
    letter-spacing: .04em;
}
.pos-total-box strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}
.pos-total-box.amount strong { color: #dc2626; }
.pos-total-box.change.positive strong { color: #16a34a; }
.pos-total-box.change.negative strong { color: #dc2626; }
.pos-banner-msg {
    margin: 0;
    padding: .4rem .75rem;
    font-size: .85rem;
    text-align: center;
    flex-shrink: 0;
}
.pos-banner-msg.ok { background: #14532d; color: #bbf7d0; }
.pos-banner-msg.err { background: #7f1d1d; color: #fecaca; }

.pos-cart-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border-right: 1px solid #cbd5e1;
}
.pos-cart-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .75rem;
    background: #f1f5f9;
    border-bottom: 1px solid var(--ayka-border);
    flex-shrink: 0;
}
.pos-cart-toolbar h2 { margin: 0; font-size: .92rem; }
.pos-cart-toolbar-meta { font-size: .78rem; color: var(--ayka-muted); }
.pos-cart-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
}
.pos-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
.pos-cart-table thead { position: sticky; top: 0; z-index: 2; background: #e2e8f0; }
.pos-cart-table th {
    padding: .45rem .5rem;
    text-align: left;
    font-size: .72rem;
    text-transform: uppercase;
    color: #475569;
    font-weight: 700;
}
.pos-cart-table td { padding: .4rem .5rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.pos-cart-table tbody tr { cursor: pointer; }
.pos-cart-table tbody tr:hover { background: #f8fafc; }
.pos-cart-table tbody tr.selected { background: var(--ayka-brand-soft); }
.pos-cart-table .col-act { width: 2rem; }
.pos-cart-table .col-qty { width: 7rem; }
.pos-cart-table .col-price,
.pos-cart-table .col-total { width: 5rem; text-align: right; white-space: nowrap; }
.pos-cart-table .col-product strong {
    display: block;
    font-size: .85rem;
    max-width: 28rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pos-cart-table .col-product small { color: var(--ayka-muted); font-size: .68rem; }

.pos-side-panel {
    display: grid;
    grid-template-rows: auto auto 1fr;
    min-height: 0;
    background: #f8fafc;
    overflow: hidden;
}
.pos-customer-row {
    display: flex;
    gap: .35rem;
    align-items: stretch;
}
.pos-customer-pick {
    padding: 0 .65rem;
    border: none;
    border-radius: 8px;
    background: var(--ayka-brand);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.pos-customer-pick:disabled { opacity: .45; cursor: not-allowed; }
.pos-side-meta {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin-top: .4rem;
    font-size: .72rem;
    color: var(--ayka-muted);
}
.pos-pay-big-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
    padding: .55rem .65rem;
    flex-shrink: 0;
}
.pos-pay-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    min-height: 72px;
    padding: .5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}
.pos-pay-big:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.3); }
.pos-pay-big.cash { background: linear-gradient(180deg, #22c55e, #15803d); }
.pos-pay-big.account { background: linear-gradient(180deg, var(--ayka-brand-deep), #004d73); }
.pos-pay-big.pay { background: linear-gradient(180deg, var(--ayka-brand), var(--ayka-brand-dark)); }
.pos-pay-big.partial { background: linear-gradient(180deg, #64748b, #475569); }
.pos-pay-big.card { background: linear-gradient(180deg, #4dc4f0, var(--ayka-brand-dark)); }
.pos-pay-big-icon { font-size: 1.35rem; line-height: 1; }
.pos-pay-big-label { font-size: .78rem; letter-spacing: .03em; }
.pos-pay-big small { font-size: .62rem; opacity: .85; font-weight: 600; }

.pos-side-catalog {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-top: 1px solid var(--ayka-border);
    background: #fff;
}
.pos-side-catalog .pos-group-tabs {
    flex-shrink: 0;
    padding: .45rem .5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
}
.pos-product-grid-compact {
    flex: 1;
    min-height: 0;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: .4rem;
    padding: .45rem;
}
.pos-product-grid-compact .pos-product-card {
    min-height: 72px;
    padding: .45rem;
}
.pos-product-grid-compact .pos-product-price { font-size: .92rem; margin-bottom: .2rem; }
.pos-product-grid-compact .pos-product-name { font-size: .75rem; }

/* POS modern — sol ürünler, sağ sepet */
.pos-modern { background: #f8fafc; }
.pos-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: .65rem 1rem .35rem;
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid var(--ayka-border);
}
.pos-page-title h1 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--ayka-brand-deep); }
.pos-page-title p { margin: .15rem 0 0; font-size: .78rem; color: var(--ayka-muted); }
.pos-refresh-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--ayka-border);
    border-radius: 10px;
    background: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--ayka-muted);
}
.pos-refresh-btn:hover:not(:disabled) { border-color: var(--ayka-brand); color: var(--ayka-brand-deep); }
.pos-modern .pos-catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    padding: .65rem 1rem;
}
.pos-search-row {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: 0 .65rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
}
.pos-search-row:focus-within { border-color: var(--ayka-brand); box-shadow: 0 0 0 3px rgba(0, 174, 239, .2); }
.pos-search-icon { font-size: 1rem; opacity: .6; }
.pos-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: .7rem 0;
    font-size: .95rem;
    outline: none;
}
.pos-search-clear {
    border: none;
    background: transparent;
    color: var(--ayka-muted);
    cursor: pointer;
    padding: .25rem;
}
.pos-currency-select-inline {
    border: none;
    border-left: 1px solid #e2e8f0;
    padding: .5rem .35rem .5rem .5rem;
    font-weight: 700;
    font-size: .8rem;
    background: transparent;
    color: var(--ayka-text);
}
.pos-modern .pos-filter-tab {
    border-radius: 999px;
    padding: .4rem .9rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: .82rem;
}
.pos-modern .pos-filter-tab.active {
    background: linear-gradient(135deg, var(--ayka-brand), var(--ayka-brand-dark));
    border-color: var(--ayka-brand-dark);
    color: #fff;
}
.pos-modern .pos-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .65rem;
    padding: .75rem 1rem;
    background: #f1f5f9;
}
.pos-product-card-modern {
    align-items: center;
    text-align: center;
    padding: 0 !important;
    min-height: 0 !important;
    overflow: hidden;
    border-color: var(--ayka-brand-muted) !important;
}
.pos-product-card-modern:hover {
    border-color: var(--ayka-brand) !important;
    box-shadow: 0 6px 18px rgba(0, 174, 239, .2);
}
.pos-product-thumb {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 56px;
    background: linear-gradient(180deg, var(--ayka-brand-soft), var(--ayka-brand-muted));
    font-size: 1.35rem;
    color: var(--ayka-brand-deep);
}
.pos-product-card-modern .pos-product-name {
    display: block;
    width: 100%;
    padding: .45rem .5rem .15rem;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.2;
}
.pos-product-card-modern .pos-product-price {
    display: block;
    width: 100%;
    padding: 0 .5rem .55rem;
    margin: 0 !important;
    color: var(--ayka-brand-deep) !important;
    font-size: 1rem !important;
}
.pos-modern .pos-checkout {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    box-shadow: -4px 0 24px rgba(0, 136, 198, .08);
}
.pos-modern .pos-line-qty button:hover {
    border-color: var(--ayka-brand);
    background: var(--ayka-brand-soft);
    color: var(--ayka-brand-deep);
}
.pos-modern .pos-total-grand span:last-child { color: var(--ayka-brand-deep); }
.pos-pay-big-grid-sidebar {
    padding: .5rem .65rem;
    gap: .4rem;
}
.pos-pay-big-grid-sidebar .pos-pay-big {
    min-height: 58px;
}
.pos-pay-big-grid-sidebar .pos-pay-big-label { font-size: .72rem; }
.pos-reload-link {
    display: block;
    width: 100%;
    padding: .35rem;
    border: none;
    background: transparent;
    color: var(--ayka-muted);
    font-size: .75rem;
    cursor: pointer;
    text-align: center;
}
.pos-reload-link:hover:not(:disabled) { color: var(--ayka-brand-deep); }

.pos-partial-form { display: flex; flex-direction: column; gap: .65rem; }
.pos-partial-row {
    display: grid;
    grid-template-columns: 1fr 5.5rem auto;
    gap: .4rem;
    align-items: center;
}
.pos-partial-row label { font-size: .82rem; font-weight: 700; }
.pos-partial-input {
    padding: .5rem .65rem;
    border: 2px solid var(--ayka-border);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
}
.pos-partial-fill {
    padding: .45rem .55rem;
    border: 1px solid var(--ayka-border);
    border-radius: 8px;
    background: var(--ayka-brand-soft);
    color: var(--ayka-brand-deep);
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.pos-partial-hint { margin: 0; font-size: .78rem; color: var(--ayka-muted); }
.pos-partial-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .25rem .75rem;
    padding: .65rem .75rem;
    border-radius: 10px;
    font-size: .85rem;
}
.pos-partial-summary.ok { background: #ecfdf5; border: 1px solid #a7f3d0; }
.pos-partial-summary.warn { background: #fffbeb; border: 1px solid #fde68a; }
.pos-partial-summary strong { text-align: right; font-size: 1rem; }

@media (min-width: 640px) {
    .pos-pay-modal-root {
        align-items: center;
        padding: 1rem;
    }
    .pos-pay-modal-panel {
        border-radius: 16px;
        max-height: min(88vh, 680px);
    }
}

.muted { color: var(--ayka-muted); }
@media (max-width: 640px) {
    .form-row-2, .price-preview { grid-template-columns: 1fr; }
    .currency-price-grid { grid-template-columns: 1fr; }
}

/* —— Mobil & dar ekran —— */
@media (max-width: 960px) {
    .ayka-app,
    .ayka-app.sidebar-closed,
    .ayka-app.sidebar-open {
        grid-template-columns: 1fr;
    }

    .ayka-app.sidebar-closed {
        grid-template-columns: 1fr !important;
    }

    .ayka-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(288px, 88vw);
        max-width: 100%;
        transform: translateX(-105%);
        transition: transform .24s ease;
        padding-top: max(.75rem, env(safe-area-inset-top));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .ayka-app.sidebar-open .ayka-sidebar {
        transform: translateX(0);
    }

    .ayka-app.sidebar-open .ayka-nav-overlay {
        display: block;
    }

    .ayka-sidebar-close-app {
        display: grid;
    }

    .ayka-topbar {
        height: auto;
        min-height: var(--ayka-topbar-h);
        padding: .65rem .85rem;
        padding-top: max(.65rem, env(safe-area-inset-top));
        gap: .65rem;
    }

    .ayka-topbar-title {
        display: flex;
        flex: 1;
    }

    .ayka-search-desktop {
        display: none;
    }

    .ayka-pill-hide-sm,
    .ayka-user-text-hide-sm {
        display: none;
    }

    .ayka-content {
        padding: .85rem;
        padding-bottom: max(.85rem, var(--ayka-safe-bottom));
    }

    .page-title { font-size: 1.25rem; }
    .page-header { flex-direction: column; align-items: stretch; }
    .page-actions { width: 100%; }
    .page-actions .btn { flex: 1; text-align: center; }
    .module-toolbar { flex-direction: column; align-items: stretch; }
    .module-toolbar-left,
    .module-toolbar-right { width: 100%; }
    .toolbar-search { min-width: 0; width: 100%; }
    .stats-grid,
    .stats-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-grid,
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-hero { flex-direction: column; align-items: flex-start; }
    .hero-logo { width: 56px; height: 56px; }
    .settings-fx-current { flex-direction: column; gap: 1rem; }
    .settings-fx-head { flex-direction: column; }

    .invoice-editor-page {
        min-height: calc(100dvh - var(--ayka-topbar-h) - 1.5rem);
        border-radius: 12px;
    }
    .invoice-editor-page .invoice-form-top { grid-template-columns: 1fr; }
    .invoice-page-header { flex-direction: column; gap: .75rem; }
    .invoice-page-body { padding: .85rem; }
    .invoice-page-footer {
        flex-wrap: wrap;
        padding: .75rem .85rem;
        padding-bottom: max(.75rem, var(--ayka-safe-bottom));
    }
    .invoice-page-footer .btn { flex: 1; min-width: 7rem; }

    /* POS — mobil uygulama hissi */
    .route-pos .ayka-topbar { display: none; }
    .ayka-main-pos .ayka-content {
        padding: 0;
        height: 100dvh;
        overflow: hidden;
    }
    .ayka-content:has(.pos-screen) {
        padding: 0;
        height: 100dvh;
        overflow: hidden;
    }

    .pos-screen {
        height: 100dvh;
        padding-bottom: calc(56px + var(--ayka-safe-bottom));
    }

    .pos-topbar {
        flex-wrap: wrap;
        gap: .5rem;
        padding: .5rem .65rem;
        padding-top: max(.5rem, env(safe-area-inset-top));
    }

    .pos-topbar-brand { min-width: 0; flex: 1 1 45%; }
    .pos-topbar-brand img { width: 32px; height: 32px; }
    .pos-topbar-chips { display: none; }
    .pos-barcode-wrap { flex: 1 1 100%; max-width: none; order: 3; }
    .pos-currency-bar { flex: 1 1 100%; order: 4; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .pos-currency-btn { flex-shrink: 0; min-height: 40px; }

    .pos-body {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    .pos-catalog,
    .pos-checkout,
    .pos-cart-panel,
    .pos-side-panel {
        display: none;
        flex: 1;
        min-height: 0;
        max-height: none;
    }

    .pos-screen.pos-tab-products .pos-catalog { display: flex; }
    .pos-screen.pos-tab-cart .pos-checkout { display: grid; }

    .pos-modern .pos-page-head { padding: .5rem .65rem; }
    .pos-pay-big { min-height: 52px; }

    .pos-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: .5rem;
        padding: .5rem;
    }

    .pos-product-card { min-height: 100px; padding: .6rem; }
    .pos-numpad-key { min-height: 48px; }
    .pos-pay-method,
    .pos-btn-complete,
    .pos-btn-exact { min-height: 44px; }

    .pos-mobile-tabs {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        background: #fff;
        border-top: 1px solid var(--ayka-border);
        padding-bottom: var(--ayka-safe-bottom);
        box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.1);
    }

    .pos-mobile-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .15rem;
        min-height: 56px;
        border: none;
        background: transparent;
        color: var(--ayka-muted);
        font-size: .72rem;
        font-weight: 600;
        cursor: pointer;
    }

    .pos-mobile-tab span:first-child { font-size: 1.15rem; }
    .pos-mobile-tab.active {
        color: var(--ayka-brand-deep);
        background: var(--ayka-brand-soft);
    }

    .pos-mobile-tab-badge {
        font-size: .65rem;
        background: var(--ayka-brand);
        color: #fff;
        border-radius: 999px;
        padding: .1rem .45rem;
        margin-top: .1rem;
    }

    .ayka-table { font-size: .82rem; }
    .ayka-table th,
    .ayka-table td { padding: .5rem .55rem; white-space: nowrap; }
    .ayka-modal-panel,
    .ayka-modal-panel-wide,
    .ayka-modal-panel-xl {
        width: 100%;
        max-width: 100%;
        max-height: 100dvh;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
    }
    .ayka-modal-root { align-items: flex-end; padding: 0; }
}

.pos-mobile-tabs { display: none; }

@media (max-width: 480px) {
    .stats-grid,
    .stats-grid-6 { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
    .pos-pay-methods { grid-template-columns: 1fr; }
    .pos-pay-methods-3 { grid-template-columns: repeat(3, 1fr); }
    .pos-quick-amounts { grid-template-columns: repeat(3, 1fr); }
    .pos-checkout-foot { max-height: 55vh; }
}

/* —— Masaüstü başlatıcı (kare kare modüller) —— */
.launcher-shell {
    min-height: 100dvh;
    background: linear-gradient(165deg, #0c1929 0%, #132f4c 42%, #1a3a5c 100%);
    color: #e8f4fc;
}

.launcher-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 2.5rem;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.launcher-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.launcher-logo {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 174, 239, 0.35));
}

.launcher-header h1 {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.launcher-header p {
    margin: .25rem 0 0;
    color: rgba(232, 244, 252, 0.72);
    font-size: .9rem;
}

.launcher-header-actions {
    margin-left: auto;
}

.launcher-header-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.launcher-header-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.desktop-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 1rem;
    flex: 1;
}

.desktop-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .35rem;
    min-height: 132px;
    padding: 1rem .75rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.desktop-tile:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(0, 174, 239, 0.25);
    border-color: rgba(0, 174, 239, 0.45);
}

.desktop-tile-icon {
    font-size: 2rem;
    line-height: 1;
}

.desktop-tile-title {
    font-weight: 700;
    font-size: .92rem;
}

.desktop-tile-desc {
    font-size: .72rem;
    color: rgba(232, 244, 252, 0.65);
    line-height: 1.25;
}

.desktop-tile.tile-pos { border-top: 3px solid #00aeef; }
.desktop-tile.tile-party { border-top: 3px solid #38bdf8; }
.desktop-tile.tile-sale { border-top: 3px solid #22c55e; }
.desktop-tile.tile-buy { border-top: 3px solid #f59e0b; }
.desktop-tile.tile-product { border-top: 3px solid #a78bfa; }
.desktop-tile.tile-stock { border-top: 3px solid #64748b; }
.desktop-tile.tile-cash { border-top: 3px solid #10b981; }
.desktop-tile.tile-bank { border-top: 3px solid #3b82f6; }
.desktop-tile.tile-check { border-top: 3px solid #ec4899; }
.desktop-tile.tile-report { border-top: 3px solid #06b6d4; }
.desktop-tile.tile-settings { border-top: 3px solid #94a3b8; }
.desktop-tile.tile-dash { border-top: 3px solid #00aeef; }

.launcher-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .8rem;
    color: rgba(232, 244, 252, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.launcher-footer a {
    color: #00aeef;
}

.ayka-launcher-link {
    white-space: nowrap;
}

@media (min-width: 961px) {
    .desktop-tile-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 640px) {
    .desktop-tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .launcher-header { flex-direction: column; align-items: flex-start; }
    .launcher-header-actions { margin-left: 0; }
}

/* —— Giriş ekranı —— */
.login-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 174, 239, 0.18), transparent),
        linear-gradient(165deg, #0a1628 0%, #0f2744 45%, #0a1e35 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--ayka-surface);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
    padding: 2rem 2rem 1.5rem;
    animation: login-in .45s ease;
}

@keyframes login-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.login-card-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-card-logo {
    width: 72px;
    height: auto;
    margin-bottom: .75rem;
}

.login-card-brand h1 {
    margin: 0 0 .35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ayka-text);
}

.login-card-brand p {
    margin: 0;
    font-size: .9rem;
    color: var(--ayka-muted);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.login-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ayka-muted);
    margin-top: .25rem;
}

.login-input {
    border-radius: 10px;
    border: 1px solid var(--ayka-border);
    padding: .65rem .85rem;
    font-size: 1rem;
}

.login-input:focus {
    border-color: var(--ayka-brand);
    box-shadow: 0 0 0 3px var(--ayka-brand-soft);
}

.login-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: .6rem .85rem;
    font-size: .875rem;
}

.login-submit {
    margin-top: .5rem;
    width: 100%;
    padding: .75rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ayka-brand) 0%, var(--ayka-brand-dark) 100%);
    border: none;
}

.login-submit:disabled {
    opacity: .7;
}

.login-foot {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: .75rem;
    color: var(--ayka-muted);
}

.ayka-logout-btn {
    margin-left: .35rem;
    padding: .35rem .65rem;
    font-size: .75rem;
    border-radius: 8px;
}
