@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --ink: #17324f;
    --muted: #657b94;
    --paper: #f1f6fc;
    --white: #ffffff;
    --line: #d7e3ef;
    --blue: #116bb5;
    --blue-dark: #10396f;
    --blue-soft: #e3effb;
    --danger-soft: #fbf1e2;
    --accent: #55bce6;
    --customer-blue: #176fba;
    --customer-blue-dark: #103b72;
    --customer-cyan: #4a98c9;
    --customer-line: #d7e3ef;
    --shadow: 0 14px 34px rgba(23, 43, 60, .07);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: linear-gradient(rgba(45, 100, 153, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 100, 153, .035) 1px, transparent 1px);
    background-size: 18px 18px;
    font-family: "DM Sans", "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    width: 100%;
    min-height: 72px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #fff;
    background: linear-gradient(108deg, #0a3470 0%, #0b55a0 52%, #1177c4 100%);
    box-shadow: 0 5px 18px rgba(9, 53, 107, .24);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0;
}
.topbar .brand { position: absolute; top: 50%; left: 28px; display: flex; align-items: center; justify-content: center; transform: translateY(-50%); }
.brand-logo { width: 180px; height: 48px; padding: 0; display: block; object-fit: contain; background: transparent; border-radius: 0; }
.topbar-tools { min-width: 0; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.topbar-meta { min-width: 0; display: inline-flex; align-items: center; gap: 9px; color: #e0eaf3; font-size: 12px; font-weight: 600; }
.topbar-meta-copy { min-width: 0; display: grid; gap: 2px; line-height: 1.2; }
.topbar-meta-copy strong, .topbar-meta-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-meta-copy strong { color: #fff; font-size: 11px; font-weight: 700; }
.topbar-meta-copy small { color: #c7def3; font-size: 9px; font-weight: 500; }
.page-heading-title-row, .access-heading-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.page-heading-title-row h1 { margin: 0; }
.page-back-shortcut { width: max-content; min-height: 34px; margin: 0; padding: 3px 11px 3px 4px; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: #234b70; background: linear-gradient(180deg, #fff, #f4f8fc); border: 1px solid #bfd2e4; border-radius: 6px; box-shadow: 0 2px 5px rgba(18, 59, 99, .08); font-size: 11px; font-weight: 700; text-decoration: none; transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.page-back-shortcut--heading { margin-left: auto; }
.access-page-back { margin-left: auto; }
.page-back-shortcut:hover { color: var(--blue-dark); background: #eaf3fc; border-color: #8fb3d3; box-shadow: 0 4px 10px rgba(18, 59, 99, .13); transform: translateY(-1px); }
.page-back-shortcut:focus-visible { outline: 3px solid rgba(17, 107, 181, .25); outline-offset: 2px; }
.page-back-shortcut-icon { width: 27px; height: 27px; display: grid; place-items: center; color: #145f9e; background: #e3effa; border: 1px solid #d1e2f1; border-radius: 5px; }
.page-back-shortcut-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.topbar-logout { margin: 0; }
.topbar-logout-button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25); border-radius: 6px; cursor: pointer; transition: background 150ms ease, border-color 150ms ease; }
.topbar-logout-button:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.42); }
.topbar-logout-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: #f3bd72; box-shadow: 0 0 0 4px rgba(243, 189, 114, .14); }
.connection-dot.is-online { background: #ffffff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .16); }
.module-menu { position: fixed; z-index: 30; top: 72px; bottom: 0; left: 0; width: 260px; overflow-y: auto; overscroll-behavior: contain; }
.module-menu > summary { display: none; }
.module-sidebar { min-height: 100%; padding: 18px 13px 18px; display: flex; flex-direction: column; gap: 6px; color: #e5f1ff; background: linear-gradient(180deg, #0a3470 0%, #0c4d91 58%, #1165ad 100%); border-right: 1px solid #2466a7; }
.nav-primary, .menu-group > summary { min-height: 43px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #dceaff; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.075); border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; text-decoration: none; }
.menu-group > summary::-webkit-details-marker { display: none; }
.nav-primary:hover, .menu-group > summary:hover { color: #fff; background: rgba(255,255,255,.13); }
.nav-primary.is-current, .nav-item.is-current { color: #fff; background: linear-gradient(105deg, #1779c4, #10599f); box-shadow: inset 3px 0 #66d0f4, 0 5px 12px rgba(3, 30, 68, .18); }
.menu-group { margin-top: 2px; }
.menu-group > summary span { color: #9cc5e8; }
.menu-group-items { padding: 4px 0 7px 10px; display: grid; gap: 3px; }
.menu-subgroup { margin: 3px 0 1px; }
.menu-group--nested { margin: 2px 0; }
.menu-group--nested > summary { min-height: 32px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #c2d8ef; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 5px; cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; }
.menu-group--nested > summary::-webkit-details-marker { display: none; }
.menu-group--nested > summary span { color: #8db9e1; }
.menu-group--nested > summary:hover { color: #fff; background: rgba(255,255,255,.1); }
.menu-group--nested > .menu-group-items { padding: 3px 0 4px 10px; }
.menu-subgroup > summary { min-height: 34px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #c2d8ef; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 5px; cursor: pointer; font-size: 10px; font-weight: 700; list-style: none; }
.menu-subgroup > summary::-webkit-details-marker { display: none; }
.menu-subgroup > summary span { color: #8db9e1; }
.menu-subgroup > summary:hover { color: #fff; background: rgba(255,255,255,.1); }
.menu-subgroup-items { padding: 3px 0 4px 8px; display: grid; gap: 2px; }
.menu-subgroup-items .menu-subgroup-items { padding-left: 7px; }
.nav-item { min-height: 38px; padding: 0 12px; display: flex; align-items: center; color: #c2d8ef; border-radius: 5px; font-size: 11px; text-decoration: none; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.1); }
.sidebar-account { margin-top: auto; padding: 13px 5px 3px; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.2); }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: #168cbd; border-radius: 10px; font-weight: 700; }
.account-name { min-width: 0; flex: 1; overflow: hidden; color: #fff; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-name small { display: block; margin-top: 3px; color: #b8d0e9; font-size: 9px; font-weight: 400; }
.sidebar-account form button { width: 38px; height: 38px; color: #c3d8ee; background: transparent; border: 0; border-radius: 6px; cursor: pointer; font-size: 18px; }
.sidebar-account form button:hover { color: #fff; background: rgba(255,255,255,.14); }
.layout { width: min(1240px, calc(100% - 324px)); margin: 0 auto 0 286px; padding: 38px 0 36px; }
.page-heading { min-height: 0; padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; color: #fff; background: linear-gradient(115deg, #10396f 0%, #126bb5 58%, #3d91c8 100%); border-left: 4px solid #55bce6; border-radius: 6px; box-shadow: 0 12px 26px rgba(16, 57, 111, .17); }
.page-heading--stable { position: relative; min-height: 104px; padding-right: 132px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.page-heading--stable::before { position: absolute; z-index: 0; inset: 0 0 auto; height: 104px; background: linear-gradient(115deg, #10396f 0%, #126bb5 58%, #3d91c8 100%); border-left: 4px solid #55bce6; border-radius: 6px; box-shadow: 0 12px 26px rgba(16, 57, 111, .17); content: ""; pointer-events: none; }
.page-heading--stable > :not(.page-back-shortcut--heading) { position: relative; z-index: 1; }
.page-heading--no-back { padding-right: 28px; }
.page-heading--stable > .page-back-shortcut--heading { position: absolute; z-index: 1; top: 52px; right: 20px; margin: 0; transform: translateY(-50%); }
.page-heading--stable > .page-back-shortcut--heading:hover { transform: translateY(calc(-50% - 1px)); }
.heading-actions--outside { margin: -14px 0 18px; justify-content: flex-end; }
.page-heading .eyebrow { display: inline-flex; margin-bottom: 9px; padding: 5px 9px; color: #e8f4ff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); border-radius: 3px; font-size: 9px; letter-spacing: 1px; }
.page-heading h1 { color: #fff; }
.page-heading .sync-button { color: #fff; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.28); }
.page-heading .sync-button:hover { background: rgba(255,255,255,.24); }
.page-heading .customer-create-link { color: var(--blue-dark); background: #fff; box-shadow: 0 5px 12px rgba(6, 37, 78, .16); }
.page-heading .customer-create-link:hover { color: var(--blue-dark); background: #eaf4ff; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: 1.25px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font: 700 34px/1.12 "Manrope", "Segoe UI", sans-serif; letter-spacing: 0; }
.subtitle { margin-bottom: 0; color: var(--muted); }
.product-create { position: relative; }
.product-create > summary { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--blue-dark); background: var(--white); border: 1px solid #b8cbe4; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; white-space: nowrap; }
.product-create > summary::-webkit-details-marker { display: none; }
.product-create > summary span { color: var(--blue); font-size: 19px; line-height: 1; }
.product-form { position: absolute; z-index: 5; top: calc(100% + 10px); right: 0; width: min(370px, calc(100vw - 40px)); padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 18px 40px rgba(28, 40, 36, .17); }
.product-form h2 { margin-bottom: 17px; }
.form-field { min-width: 0; display: grid; gap: 7px; margin-bottom: 13px; color: #53615a; font-size: 11px; font-weight: 700; }
.form-field small { margin-left: 4px; color: #8a938e; font-size: 10px; font-weight: 400; }
.form-field input { width: 100%; height: 30px; padding: 0 10px; color: var(--ink); background: #fbfcfa; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 12px; }
.form-field input:focus { border-color: var(--blue); outline: 2px solid rgba(0, 66, 152, .12); }
.form-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }
.form-note { margin: 2px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.save-product { width: 100%; min-height: 44px; color: #fff; background: linear-gradient(105deg, #1267b1, #1682cc); border: 0; border-radius: 6px; cursor: pointer; font: 700 13px "DM Sans", "Segoe UI", sans-serif; box-shadow: 0 4px 10px rgba(14, 93, 163, .16); }
.save-product:hover { background: linear-gradient(105deg, #0e4f96, #126bb2); }
.sync-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 16px;
    color: #f8faf7;
    background: var(--blue);
    border: 0;
    border-radius: 7px;
    font: 700 13px "DM Sans", "Segoe UI", sans-serif;
}
.sync-button span { font-size: 18px; line-height: 1; }
.sync-button:disabled { cursor: not-allowed; opacity: .56; }
.status-strip {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 19px;
    background: var(--danger-soft);
    border: 1px solid #f0d7b1;
    border-radius: 7px;
}
.status-icon { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; color: #70420e; border: 1px solid #d8a75e; border-radius: 50%; font-weight: 700; }
.status-strip.is-success { background: #edf3fb; border-color: #c8d8ec; }
.status-strip.is-success .status-icon { color: var(--blue); border-color: #89a9d0; }
.status-strip.is-success .status-copy p { color: #49617e; }
.status-strip.is-error { background: #fff0ed; border-color: #edc3ba; }
.status-strip.is-error .status-icon { color: #8d3021; border-color: #d18a7e; }
.status-copy { flex: 1; min-width: 0; }
.status-copy strong { display: block; margin-bottom: 4px; font-size: 13px; }
.status-copy p { margin: 0; color: #705b3b; font-size: 12px; line-height: 1.5; }
.status-tag { padding: 6px 9px; color: #70420e; background: #f8e7c9; border-radius: 4px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.summary {
    width: min(290px, 100%);
    margin: 23px 0 28px;
    padding: 19px 21px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.summary-label { color: var(--muted); font-size: 12px; }
.summary-value { margin: 9px 0 6px; font: 500 32px/1 Georgia, "Times New Roman", serif; }
.summary-foot { color: var(--muted); font-size: 11px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.shortcut-manager { overflow: hidden; border-top: 3px solid var(--blue); }
.shortcut-add-form { padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; border-bottom: 1px solid var(--line); }
.shortcut-add-form .form-field { min-width: 0; margin: 0; gap: 5px; color: #355774; }
.shortcut-add-form select { width: 100%; min-width: 0; height: 38px; padding: 0 10px; color: var(--ink); background: #fff; border: 1px solid #d2dfeb; border-radius: 5px; font: 500 12px "DM Sans", "Segoe UI", sans-serif; }
.shortcut-add-button { width: auto; min-width: 132px; min-height: 34px; padding: 0 12px; font-size: 11px; }
.shortcut-add-button:disabled { cursor: not-allowed; opacity: .55; }
.shortcut-grid { padding: 18px 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 12px; }
.shortcut-item { position: relative; min-width: 0; }
.shortcut-card { min-height: 86px; padding: 11px 38px 11px 14px; display: flex; flex-direction: column; justify-content: center; gap: 7px; color: var(--ink); background: linear-gradient(135deg, #f6faff, #e8f2fc); border: 1px solid #cfdeec; border-left: 3px solid #2879b9; border-radius: 6px; text-decoration: none; transition: background 150ms ease, border-color 150ms ease, transform 150ms ease; }
.shortcut-card:hover { background: linear-gradient(135deg, #edf6ff, #dceafb); border-color: #a9c6e0; transform: translateY(-1px); }
.shortcut-card-kicker { color: #64819c; font-size: 9px; font-weight: 700; }
.shortcut-card strong { color: #173d62; font: 700 14px/1.3 "Manrope", "Segoe UI", sans-serif; overflow-wrap: anywhere; }
.shortcut-remove-form { position: absolute; top: 8px; right: 8px; }
.shortcut-remove-button { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; color: #59738b; background: rgba(255,255,255,.85); border: 1px solid #ccdae7; border-radius: 5px; cursor: pointer; font: 500 16px/1 "DM Sans", "Segoe UI", sans-serif; }
.shortcut-remove-button:hover { color: #8d3021; background: #fff0ed; border-color: #edc3ba; }
.shortcut-empty { margin: 0; padding: 26px 20px; color: var(--muted); font-size: 12px; }
.metric-panel { min-width: 0; min-height: 142px; padding: 19px; display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 8px; text-decoration: none; box-shadow: var(--shadow); transition: transform 150ms ease, box-shadow 150ms ease; }
.metric-panel:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(23, 43, 60, .11); }
.metric-panel:nth-child(2) { border-top-color: #3b78b5; }
.metric-panel:nth-child(3) { border-top-color: #6e9cae; }
.metric-panel:nth-child(4) { border-top-color: var(--accent); }
.metric-panel span { color: var(--muted); font-size: 11px; }
.metric-panel strong { margin: 12px 0 7px; font: 700 25px/1.1 "Manrope", "Segoe UI", sans-serif; overflow-wrap: anywhere; }
.metric-panel small { margin-top: auto; color: #89938d; font-size: 10px; }
.text-link, .row-link, .back-link { color: var(--blue); font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-link:hover, .row-link:hover, .back-link:hover { text-decoration: underline; }
.detail-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.detail-summary > div { min-width: 0; padding: 15px 18px; display: grid; gap: 8px; border-right: 1px solid var(--line); }
.detail-summary > div:last-child { border-right: 0; }
.detail-summary span { color: var(--muted); font-size: 10px; }
.detail-summary strong { overflow-wrap: anywhere; font-size: 13px; }
.customer-editor { margin-bottom: 24px; }
.customer-create-link { min-height: 45px; padding: 0 17px; display: inline-flex; align-items: center; gap: 9px; color: #fff; background: linear-gradient(105deg, #176fba, #3389c6); border-radius: 5px; box-shadow: 0 5px 12px rgba(23, 102, 177, .2); font-size: 12px; font-weight: 700; text-decoration: none; transition: filter 150ms ease, transform 150ms ease; }
.customer-create-link:hover { filter: brightness(.92); transform: translateY(-1px); }
.customer-create-link span { font-size: 19px; line-height: 1; }
.record-form { padding: 20px 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.record-form .span-2 { grid-column: span 2; }
.record-form .save-product { width: auto; min-width: 180px; padding: 0 18px; justify-self: start; }
.record-form.customer-record-form { padding: 2px 24px 25px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.customer-form-panel { overflow: hidden; border-top: 3px solid var(--customer-blue); }
.record-form-section { min-width: 0; margin: 0; padding: 19px 0 13px; border: 0; border-top: 1px solid var(--customer-line); }
.record-form-section h3 { margin: 0 0 15px; padding: 9px 12px; color: #164f83; background: linear-gradient(95deg, #e3effb, #f1f7fc); border-left: 3px solid var(--customer-blue); border-radius: 0 4px 4px 0; font: 700 13px/1.3 "DM Sans", "Segoe UI", sans-serif; }
.record-form-section--address h3 { color: #225d88; background: linear-gradient(95deg, #e5f2fb, #f3f9fd); border-left-color: #4f98c5; }
.record-form-section--communication h3 { color: #245679; background: linear-gradient(95deg, #e8f2f9, #f4f8fc); border-left-color: #3d82ad; }
.record-form-section--tax h3 { color: #315779; background: linear-gradient(95deg, #eaf0f9, #f5f8fc); border-left-color: #6c86b0; }
.record-form-section--groups h3 { color: #315779; background: linear-gradient(95deg, #e7eef8, #f3f7fb); border-left-color: #6682a7; }
.record-form-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.record-form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customer-record-form .form-field { min-width: 0; margin: 0; gap: 6px; color: #40586a; font-size: 12px; }
.customer-record-form .form-field input { height: 30px; padding: 0 12px; color: var(--ink); background: #fbfcfc; border: 1px solid #d4e0e5; border-radius: 5px; font: 500 13px "DM Sans", "Segoe UI", sans-serif; }
.customer-record-form .form-field select { width: 100%; height: 30px; padding: 0 12px; color: var(--ink); background: #fbfcfc; border: 1px solid #d4e0e5; border-radius: 5px; font: 500 13px "DM Sans", "Segoe UI", sans-serif; }
.customer-record-form .form-field select:disabled { color: #8495a6; background: #f0f4f8; cursor: not-allowed; }
.customer-record-form .form-field input:focus { background: #fff; border-color: var(--customer-blue); outline: 3px solid rgba(23, 102, 177, .14); }
.customer-record-form .form-field select:focus { border-color: var(--customer-blue); outline: 3px solid rgba(23, 102, 177, .14); }
.stock-currency-toggle { width: fit-content; min-height: 30px; margin: 12px 0 4px; display: flex; align-items: center; gap: 8px; color: #40586a; font-size: 12px; font-weight: 600; cursor: pointer; }
.stock-currency-toggle input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--customer-blue); }
.stock-currency-fields { margin-top: 12px; }
.stock-currency-fields[hidden] { display: none; }
.customer-record-form .save-product { min-width: 200px; min-height: 47px; margin-top: 8px; background: linear-gradient(105deg, #176fba, #3389c6); border-radius: 5px; box-shadow: 0 6px 14px rgba(23, 102, 177, .2); transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.customer-record-form .save-product:hover { filter: brightness(.92); box-shadow: 0 8px 17px rgba(16, 57, 111, .23); transform: translateY(-1px); }
.cheque-entry-panel { margin: 0 0 26px; padding: 20px 24px 0; overflow: hidden; border-color: #ccdae8; border-radius: 8px; box-shadow: 0 10px 26px rgba(25, 58, 91, .07); }
.record-form.customer-record-form.cheque-entry-form { padding: 0; }
.cheque-entry-form .cheque-form-section { padding: 0 0 16px; border: 0; }
.cheque-entry-form .cheque-form-heading { margin: 0 0 16px; padding: 9px 12px; color: #164f83; background: linear-gradient(95deg, #e3effb, #f1f7fc); border-left: 3px solid var(--customer-blue); border-radius: 0 4px 4px 0; font: 700 13px/1.3 "DM Sans", "Segoe UI", sans-serif; }
.cheque-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.cheque-entry-form .form-field { gap: 6px; color: #40586a; font-size: 11px; }
.cheque-entry-form .form-field > span { color: #40586a; font-size: 11px; }
.cheque-entry-form .form-field input { height: 30px; padding: 0 11px; background: #fbfcfc; border-color: #d4e0e5; border-radius: 5px; font-size: 12px; }
.cheque-entry-form .form-field input:focus { border-color: var(--customer-blue); outline: 3px solid rgba(23, 102, 177, .12); }
.cheque-entry-form .cheque-customer-picker { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; }
.cheque-entry-form .cheque-customer-picker > span { grid-column: 1 / -1; }
.cheque-entry-form .cheque-customer-picker output { height: 30px; background: #fbfcfc; border-color: #d4e0e5; border-radius: 5px; font-size: 12px; }
.cheque-entry-form .cheque-customer-picker .invoice-picker-open { min-height: 30px; padding: 0 13px; font-size: 10px; }
.cheque-amount-field { max-width: 100%; }
.cheque-form-footer { min-height: 62px; margin: 0 -24px; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #f8fafc; border-top: 1px solid #e2eaf2; }
.cheque-form-footer > small { color: #73879a; font-size: 9px; }
.cheque-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.cheque-entry-form .cheque-form-actions .back-link { color: #718398; }
.cheque-entry-form .cheque-form-actions .save-product { min-width: 120px; min-height: 35px; margin: 0; border-radius: 5px; font-size: 11px; }
.stock-price-note { grid-column: 1 / -1; margin: 1px 0 0; color: #687f95; font-size: 10px; }
.stock-entry-form .stock-entry-details { margin: 14px 0 0; background: #f8fbfe; border: 1px solid #d6e3ee; border-radius: 6px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stock-entry-form .stock-entry-details[hidden] { display: none; }
.stock-entry-form .currency-fields { margin: 0 0 14px; }
.stock-entry-options { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.stock-entry-options .stock-currency-toggle { margin: 0; }
.stock-entry-last { margin: 0 0 12px; padding: 9px 14px; color: #234b70; background: #eef6fd; border: 1px solid #cfe0f0; border-radius: 6px; font-size: 12px; }
.stock-entry-last a { margin-left: 6px; color: var(--customer-blue); font-weight: 700; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 24px 0 12px; }
.section-heading h2 { margin-bottom: 4px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.archive-form { display: flex; justify-content: flex-end; margin-top: 16px; }
.archive-button { min-height: 37px; padding: 0 12px; color: #8d3021; background: #fff; border: 1px solid #edc3ba; border-radius: 5px; cursor: pointer; font: 600 11px "Trebuchet MS", "Segoe UI", sans-serif; }
.filter-form { padding: 18px 22px; display: grid; grid-template-columns: 2fr 1fr 1fr auto; align-items: end; gap: 13px; }
.filter-form .form-field { margin: 0; }
.filter-form select { width: 100%; min-width: 0; height: 30px; padding: 0 9px; color: var(--ink); background: #fbfcfa; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 11px; }
.filter-button { width: auto; padding: 0 15px; }
.customer-list-panel > .inventory-heading { padding-bottom: 12px; }
.customer-filter-disclosure { margin: 0 22px 18px; overflow: hidden; background: #f5f9fd; border: 1px solid #d5e2ef; border-radius: 6px; }
.customer-list-panel > .customer-filter-disclosure { margin-top: 18px; }
.stock-filter-disclosure { margin-top: 18px; }
.customer-filter-disclosure > summary { min-height: 43px; padding: 0 14px; display: flex; align-items: center; gap: 12px; color: #174b7a; cursor: pointer; list-style: none; }
.customer-filter-disclosure > summary::-webkit-details-marker { display: none; }
.customer-filter-disclosure > summary strong { font-size: 11px; font-weight: 700; }
.customer-filter-disclosure > summary span { margin-left: auto; color: #68819a; font-size: 10px; }
.customer-filter-disclosure > summary::after { color: var(--blue); content: "⌄"; font-size: 16px; line-height: 1; }
.customer-filter-disclosure[open] > summary { background: linear-gradient(100deg, #eaf3fc, #f4f8fc); border-bottom: 1px solid #d5e2ef; }
.customer-filter-disclosure[open] > summary::after { content: "⌃"; }
.customer-list-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 7px 10px; padding: 12px 16px; background: linear-gradient(100deg, #f5f9fd, #fff 72%); border-top: 1px solid var(--line); }
.customer-filter-disclosure .customer-list-filters { padding: 12px 14px; background: transparent; border-top: 0; }
.customer-list-filters .form-field { min-width: 0; margin: 0; gap: 3px; color: #355774; font-size: 11px; }
.customer-list-filters .customer-filter-span-2 { grid-column: span 2; }
.customer-list-filters .form-field input,
.customer-list-filters .form-field select { width: 100%; min-width: 0; height: 30px; padding: 0 10px; color: var(--ink); background: #fff; border: 1px solid #d2dfeb; border-radius: 5px; font: 500 12px "DM Sans", "Segoe UI", sans-serif; }
.customer-list-filters .form-field input:focus,
.customer-list-filters .form-field select:focus { border-color: var(--blue); outline: 3px solid rgba(17, 107, 181, .12); }
.customer-filter-groups { min-width: 0; grid-column: 1 / -1; margin: 1px 0 0; padding: 6px 9px 8px; background: #f1f6fc; border: 1px solid #d7e3ef; border-radius: 6px; }
.customer-filter-groups legend { padding: 0 5px; color: #315779; font-size: 10px; font-weight: 700; }
.customer-filter-group-grid { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.customer-filter-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.customer-filter-actions .save-product { width: auto; min-width: 145px; min-height: 34px; padding: 0 12px; font-size: 11px; }
.customer-filter-clear { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; color: #42627e; background: #fff; border: 1px solid #d2dfeb; border-radius: 5px; font-size: 11px; font-weight: 700; text-decoration: none; }
.customer-filter-clear:hover { color: var(--blue); border-color: var(--blue); }
.invoice-report-panel > .invoice-filter-disclosure { margin: 0 0 18px; }
.invoice-report-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.invoice-report-filters .customer-filter-groups { grid-column: 1 / -1; }
.invoice-customer-filter { grid-column: 1 / -1; }
.invoice-customer-clear { flex: 0 0 auto; cursor: pointer; font: inherit; font-size: 10px; }
.invoice-customer-clear[hidden] { display: none; }
.customer-picker-body { padding-top: 1px; }
.invoice-report-table { min-width: 1120px; }
.invoice-report-table th,
.invoice-report-table td { height: 30px; padding: 0 8px; line-height: 30px; white-space: nowrap; }
.invoice-report-table td { overflow: hidden; text-overflow: ellipsis; }
.cheque-date-filter,
.cheque-radio-filter { min-width: 0; margin: 0; padding: 7px; border: 1px solid #ccd7e1; }
.cheque-report-filters > .cheque-date-filter,
.cheque-report-filters > .cheque-radio-filter { grid-column: 1 / -1; }
.cheque-date-filter legend,
.cheque-radio-filter legend { padding: 0 4px; color: #354b5e; font-size: 10px; font-weight: 700; }
.cheque-date-filter .form-field { margin: 4px 0 0; }
.cheque-radio-filter { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.cheque-radio-filter label { display: inline-flex; align-items: center; gap: 4px; color: #354b5e; font-size: 10px; font-weight: 600; }
.cheque-radio-filter input { margin: 0; accent-color: var(--blue); }
.cheque-report-table { min-width: 1580px; }
.cheque-report-table th,
.cheque-report-table td { height: 30px; padding: 0 8px; line-height: 30px; white-space: nowrap; }
.cheque-report-table tbody tr { height: 30px; }
.cheque-report-table tbody td { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.stock-count-panel { padding: 22px 24px 0; }
.stock-count-form { padding: 0; }
.stock-count-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 10px; }
.stock-count-pick .invoice-picker-open { min-height: 30px; padding: 0 16px; font-size: 11px; }
.stock-count-scan { width: 38px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
.stock-count-scan svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stock-count-hint { margin: 10px 0 0; color: #687f95; font-size: 11px; }
.stock-count-hint.is-error { color: #b3402a; font-weight: 600; }
.stock-count-total { margin-left: 6px; color: #5a7690; font-weight: 600; }
.stock-count-table { min-width: 640px; }
.stock-count-table th, .stock-count-table td { height: 30px; padding: 0 8px; line-height: 30px; white-space: nowrap; }
.stock-count-table tbody tr[data-entry] { height: 30px; }
.stock-count-table tbody td { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.stock-count-table td input { width: 110px; height: 24px; padding: 0 8px; text-align: right; background: #fbfcfc; border: 1px solid #d4e0e5; border-radius: 4px; font: 600 12px "DM Sans", "Segoe UI", sans-serif; }
.stock-count-table td input:focus { border-color: var(--customer-blue); outline: 3px solid rgba(23, 102, 177, .12); }
.stock-count-table .empty-cell { height: 110px; line-height: 1.5; }
.stock-count-table .empty-cell strong, .stock-count-table .empty-cell span { display: block; }
.stock-count-remove, .stock-count-clear { color: #8d3021; background: none; border: 0; cursor: pointer; font: 600 11px "DM Sans", "Segoe UI", sans-serif; }
.stock-count-clear { color: #718398; }
.stock-count-qty-stock { margin: 0 0 12px; color: var(--ink); font-weight: 600; font-size: 13px; }
.stock-count-qty-dialog .form-field b { font-weight: 600; color: #5a7690; }
.stock-count-qty-actions { display: flex; justify-content: flex-end; gap: 10px; }
.stock-count-qty-actions .save-product { width: auto; min-width: 130px; min-height: 34px; padding: 0 14px; }
.stock-count-camera video { width: 100%; max-height: 52vh; background: #0f2438; border-radius: 6px; object-fit: cover; }
.stock-count-photo { margin-top: 10px; display: flex; align-items: center; justify-content: center; text-align: center; }
.stock-count-photo[hidden] { display: none; }
.admin-panel { margin-bottom: 18px; }
.admin-filters { display: grid; grid-template-columns: minmax(300px, 1.5fr) minmax(150px, 1fr) 100px minmax(150px, 1fr) 140px; gap: 12px; align-items: center; margin-bottom: 14px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px 8px rgba(16, 42, 67, .06); }
.admin-filters input, .admin-filters select { width: 100%; min-height: 40px; padding: 0 10px; color: var(--ink); background: #f3f6fa; border: 1px solid var(--line); border-radius: 4px; font: 500 13px "DM Sans", "Segoe UI", sans-serif; }
.admin-filters select:disabled { color: #8a97a8; }
.admin-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.admin-range span { color: #5c6b80; }
.admin-filter-button { min-height: 40px; color: #fff; background: linear-gradient(105deg, #1267b1, #1682cc); border: 0; border-radius: 4px; cursor: pointer; font: 700 13px "DM Sans", "Segoe UI", sans-serif; }
.admin-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-card { min-height: 104px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid #e4eaf1; border-radius: 6px; box-shadow: 0 2px 8px rgba(16, 42, 67, .06); }
.admin-card div { min-width: 0; }
.admin-card strong { display: block; font-size: 24px; font-weight: 400; color: var(--ink); line-height: 1.2; overflow-wrap: anywhere; }
.admin-card span { display: block; margin-top: 6px; color: #5c6b80; font-size: 14px; }
.admin-card svg { flex: 0 0 52px; width: 52px; height: 40px; fill: none; stroke: #6b7686; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.admin-note { margin: 10px 2px 0; color: #5c6b80; font-size: 12px; }
@media (max-width: 1100px) {
    .admin-filters { grid-template-columns: 1fr 1fr; }
    .admin-range { grid-column: 1 / -1; }
    .admin-filter-button { grid-column: 1 / -1; min-height: 44px; }
    .admin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .admin-filters { grid-template-columns: 1fr; padding: 10px; }
    .admin-range { grid-template-columns: 1fr; }
    .admin-range span { display: none; }
    .admin-filters input, .admin-filters select { min-height: 44px; }
    .admin-cards { gap: 10px; }
    .admin-card { min-height: 88px; padding: 14px; }
    .admin-card strong { font-size: 18px; }
    .admin-card span { font-size: 12px; }
    .admin-card svg { display: none; }
}
.stock-count-draft.is-error { color: #b42318; }
.price-check-panel { padding-bottom: 14px; }
.price-check-result[hidden] { display: none; }
.price-check-head { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; }
.price-check-image { width: 132px; height: 132px; border: 1px solid #c9d5e3; border-radius: 8px; background: #f3f6fa; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #7b8aa0; font-size: 12px; }
.price-check-image img { width: 100%; height: 100%; object-fit: contain; }
.price-check-image img[hidden], .price-check-image span[hidden] { display: none; }
.price-check-title h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.price-check-title p { margin: 0; color: #5c6b80; font-size: 13px; overflow-wrap: anywhere; }
.price-check-quantity { margin: 14px 0; padding: 12px 14px; border-radius: 8px; background: #eaf3ff; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price-check-quantity span { color: #3b4d66; font-size: 13px; }
.price-check-quantity strong { font-size: 22px; color: #12315c; }
.price-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-check-card { border: 1px solid #c9d5e3; border-radius: 8px; padding: 12px 14px; background: #fff; }
.price-check-card h4 { margin: 0 0 8px; font-size: 13px; color: #3b4d66; text-transform: uppercase; letter-spacing: .03em; }
.price-check-card.is-sale { border-left: 4px solid #1b8a4b; }
.price-check-card.is-purchase { border-left: 4px solid #c27a10; }
.price-check-card dl { margin: 0; }
.price-check-card dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid #edf1f6; }
.price-check-card dl > div:first-child { border-top: 0; }
.price-check-card dt { font-size: 12px; color: #5c6b80; }
.price-check-card dd { margin: 0; font-size: 17px; font-weight: 700; text-align: right; }
.price-check-none { margin: 0; color: #7b8aa0; font-size: 13px; }
@media (max-width: 760px) {
    .price-check-head { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
    .price-check-image { width: 96px; height: 96px; }
    .price-check-grid { grid-template-columns: 1fr; }
    .price-check-quantity strong { font-size: 24px; }
    .price-check-card dd { font-size: 19px; }
}
@media (max-width: 760px) {
    .stock-count-panel { padding: 14px 14px 0; }
    .stock-count-pick { grid-template-columns: 1fr 1fr; }
    .stock-count-pick .stock-count-barcode { grid-column: 1 / -1; }
    .stock-count-pick .invoice-picker-open { min-height: 44px; font-size: 13px; }
    .stock-count-scan { width: 100%; }
    .stock-count-form .cheque-form-footer { margin: 0 -14px; padding: 10px 14px; flex-direction: column; align-items: stretch; }
    .stock-count-form .cheque-form-actions { flex-direction: column-reverse; align-items: stretch; }
    .stock-count-form .cheque-form-actions .save-product { width: 100%; min-height: 48px; }
    .stock-count-qty-actions .save-product { min-height: 44px; }
}
.cheque-edit-form .form-field input,
.cheque-edit-form .form-field select { height: 30px; padding: 0 11px; background: #fbfcfc; border-color: #d4e0e5; border-radius: 5px; font-size: 12px; }
.cheque-edit-form .form-field input[readonly] { color: #63798b; background: #f2f6f9; }
.cheque-edit-form [data-status-extra][hidden] { display: none; }
.cheque-edit-form .form-note { margin: 4px 0 0; }
.cheque-report-actions { display: flex; align-items: center; gap: 10px; line-height: normal !important; }
.cheque-report-actions .row-link { display: inline-flex; align-items: center; min-height: 28px; }
.cheque-readonly-details { margin: 0; padding: 16px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.cheque-readonly-details > div { min-width: 0; }
.cheque-readonly-details dt { margin-bottom: 4px; color: #73879a; font-size: 10px; font-weight: 600; }
.cheque-readonly-details dd { margin: 0; color: #234b70; font-size: 12px; overflow-wrap: anywhere; }
.cheque-readonly-details-wide { grid-column: 1 / -1; }
.invoice-report-table .invoice-row-actions { line-height: normal; }
.invoice-report-table .invoice-row-actions .row-link { display: inline-flex; align-items: center; min-height: 28px; }
.offers-report-table .offer-actions-cell { width: 150px; min-width: 150px; overflow: visible; text-overflow: clip; }
.offers-report-table .invoice-row-actions { min-height: 30px; gap: 6px; }
.offers-report-table .invoice-row-actions > .row-link { display: inline-flex; align-items: center; }
.offers-report-table .invoice-row-actions form { flex: 0 0 auto; }
.invoice-report-table .invoice-row--sales td { background: #e8f1fc; }
.invoice-report-table .invoice-row--sales td:first-child { border-left: 4px solid #5f91c7; }
.invoice-report-table .invoice-row--purchase td { background: #fff0dd; }
.invoice-report-table .invoice-row--purchase td:first-child { border-left: 4px solid #d58a35; }
.invoice-report-table .invoice-row--expense td { background: #f0eafd; }
.invoice-report-table .invoice-row--expense td:first-child { border-left: 4px solid #8970bd; }
.invoice-report-table .invoice-report-totals td { background: #f1f5fa; }
.waybill-movement-options { min-width: 0; margin: 0; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; background: #f5f9fd; border: 1px solid #d5e2ef; border-radius: 6px; }
.waybill-movement-options legend { padding: 0 5px; color: #315779; font-size: 11px; font-weight: 700; }
.waybill-movement-options label { display: inline-flex; align-items: center; gap: 7px; color: #355774; font-size: 11px; font-weight: 600; }
.waybill-movement-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.waybill-movement-options p { flex-basis: 100%; margin: 0; color: #73879a; font-size: 10px; line-height: 1.5; }
.waybill-movement-options:disabled { opacity: .78; }
.customer-cash-panel { width: min(760px, 100%); overflow: hidden; border-top: 3px solid var(--blue); }
.customer-cash-form { padding: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.customer-cash-form [hidden] { display: none !important; }
.customer-picker-current { min-width: 0; grid-column: 1 / -1; padding: 10px 12px; display: flex; align-items: center; gap: 12px; background: linear-gradient(100deg, #edf5fc, #f8fbfe); border: 1px solid #d7e4f0; border-radius: 6px; }
.customer-picker-open { min-height: 36px; padding: 0 13px; display: inline-flex; align-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(105deg, #176fba, #3389c6); border: 0; border-radius: 5px; cursor: pointer; font: 700 11px "DM Sans", "Segoe UI", sans-serif; box-shadow: 0 4px 10px rgba(23, 102, 177, .16); }
.customer-picker-open:hover { filter: brightness(.93); }
.customer-picker-current > span { min-width: 0; overflow: hidden; color: #315779; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.customer-picker-dialog { width: min(540px, calc(100vw - 24px)); max-height: min(680px, calc(100dvh - 24px)); padding: 0; color: var(--ink); background: #fff; border: 1px solid #cadced; border-radius: 8px; box-shadow: 0 24px 70px rgba(12, 39, 77, .28); }
.customer-picker-dialog::backdrop { background: rgba(8, 31, 64, .58); backdrop-filter: blur(2px); }
.customer-picker-header { padding: 16px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; color: #fff; background: linear-gradient(105deg, #10396f, #126bb5 65%, #3d91c8); }
.customer-picker-header h2 { margin: 0 0 4px; color: #fff; font: 700 17px/1.2 "Manrope", "Segoe UI", sans-serif; }
.customer-picker-header p { margin: 0; color: #d8eafa; font-size: 10px; }
.customer-picker-close { width: 30px; height: 30px; padding: 0; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 5px; cursor: pointer; font-size: 20px; line-height: 1; }
.customer-picker-search { margin: 14px 16px 10px; }
.customer-cash-form .customer-picker-dialog .customer-picker-search { margin: 14px 16px 10px; gap: 6px; }
.customer-cash-form .customer-picker-search > span { color: #355774; font-size: 10px; font-weight: 700; }
.customer-picker-results { max-height: min(440px, calc(100dvh - 210px)); padding: 0 16px 16px; display: grid; gap: 6px; overflow-y: auto; }
.customer-picker-result { width: 100%; min-width: 0; min-height: 44px; padding: 7px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #274864; text-align: left; background: #f7fafd; border: 1px solid #dce7f1; border-radius: 5px; cursor: pointer; }
.customer-picker-result:hover { background: #eaf3fc; border-color: #9dbddc; }
.customer-picker-result > span:first-child { min-width: 0; display: grid; gap: 3px; }
.customer-picker-result strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.customer-picker-result small { color: #6a8197; font-size: 9px; }
.customer-picker-select-label { flex: 0 0 auto; color: var(--blue); font-size: 10px; font-weight: 700; }
.customer-picker-empty { margin: 0; padding: 20px 10px; color: var(--muted); font-size: 11px; text-align: center; }
.customer-picker-empty[hidden] { display: none; }
.customer-cash-form .form-field { min-width: 0; margin: 0; gap: 6px; color: #355774; font-size: 11px; }
.customer-cash-form .form-field input,
.customer-cash-form .form-field select { width: 100%; min-width: 0; height: 30px; padding: 0 11px; color: var(--ink); background: #fff; border: 1px solid #d2dfeb; border-radius: 5px; font: 500 12px "DM Sans", "Segoe UI", sans-serif; }
.customer-cash-form .form-field input:focus,
.customer-cash-form .form-field select:focus { border-color: var(--blue); outline: 3px solid rgba(17, 107, 181, .12); }
.customer-cash-form .customer-cash-description,
.customer-cash-form .save-product { grid-column: 1 / -1; }
.customer-cash-form .save-product { width: auto; min-width: 190px; justify-self: end; }
.report-table { margin-top: 20px; }
.movement-totals-wrap { margin-top: 16px; border-top: 2px solid #d7e3ef; }
.movement-totals-table { min-width: 560px; }
.movement-totals-table thead { color: #315779; background: #edf4fb; }
.movement-totals-table th { height: 34px; padding: 0 12px; font-size: 9px; letter-spacing: .35px; }
.movement-totals-table td { padding: 10px 12px; color: #234b70; background: #e8f5f1; font-size: 11px; font-weight: 700; }
.movement-row td { height: 30px; padding: 0 12px; line-height: 30px; white-space: nowrap; }
.movement-row--debit td { background: #dceafb; }
.movement-row--debit td:first-child { border-left: 4px solid #5f91c7; }
.movement-row--credit td { background: #d9f0e2; }
.movement-row--credit td:first-child { border-left: 4px solid #5c9b77; }
.movement-filter-disclosure { margin-top: 18px; }
@media (max-width: 900px) {
    .movement-filter-disclosure { margin-top: 14px; }
    .movement-totals-wrap { overflow-x: hidden; }
    .movement-totals-table { width: 100%; min-width: 0; table-layout: fixed; }
    .movement-totals-table th,
    .movement-totals-table td { padding: 6px 2px; line-height: 1.25; letter-spacing: 0; white-space: normal; overflow-wrap: anywhere; }
    .movement-totals-table th { font-size: 10px; }
    .movement-totals-table td { font-size: 11px; }
    .movement-totals-table th:nth-child(1), .movement-totals-table td:nth-child(1) { width: 12%; }
    .movement-totals-table th:nth-child(2), .movement-totals-table td:nth-child(2) { width: 22%; }
    .movement-totals-table th:nth-child(3), .movement-totals-table td:nth-child(3) { width: 22%; }
    .movement-totals-table th:nth-child(4), .movement-totals-table td:nth-child(4) { width: 26%; }
    .movement-totals-table th:nth-child(5), .movement-totals-table td:nth-child(5) { width: 18%; }
}
.invoice-summary { margin-top: 18px; }
.invoice-totals { padding: 16px 20px; display: flex; justify-content: flex-end; gap: 28px; border-top: 1px solid var(--line); }
.invoice-totals > div { display: grid; gap: 6px; text-align: right; }
.invoice-totals span { color: var(--muted); font-size: 10px; }
.invoice-totals strong { font-size: 12px; }
.invoice-totals > div:last-child strong { color: var(--blue-dark); font-size: 15px; }
.invoice-row-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.invoice-row-actions form { margin: 0; }
.invoice-danger-button { min-height: 28px; padding: 0 9px; color: #a53636; background: #fff; border: 1px solid #e4b8b8; border-radius: 4px; cursor: pointer; font: 600 10px "Trebuchet MS", "Segoe UI", sans-serif; }
.invoice-danger-button:hover { background: #fff4f4; border-color: #c86d6d; }
.invoice-report-totals td { background: #f1f5fa; border-top: 2px solid #cbd5e1; font-weight: 700; }
.invoice-report-totals td:first-child { text-align: right; }
.invoice-row-actions .save-product { min-height: 34px; }
.stock-movement-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stock-movement-filters .customer-filter-groups { grid-column: span 2; }
.stock-movement-filters .customer-filter-actions { align-self: end; }
.stock-name-filter-field > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.stock-movement-table { min-width: 1120px; }
.inventory-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inventory-filters .customer-filter-groups { grid-column: span 2; }
.inventory-stock-table { min-width: 1360px; }
.inventory-stock-table th, .inventory-stock-table td { height: 30px; padding: 0 8px; line-height: 30px; white-space: nowrap; }
.inventory-stock-table td { overflow: hidden; text-overflow: ellipsis; }
.inventory-stock-table td:nth-child(3) { min-width: 180px; max-width: 320px; }
.stock-movement-totals.inventory-totals { grid-template-columns: repeat(7, minmax(max-content, 1fr)); overflow-x: auto; }
.stock-movement-totals.inventory-totals strong { white-space: nowrap; overflow-wrap: normal; }
.stock-movement-totals { padding: 13px 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); background: #f8fafb; }
.stock-movement-totals > div { min-width: 0; display: grid; gap: 6px; }
.stock-movement-totals span { color: var(--muted); font-size: 10px; }
.stock-movement-totals strong { overflow-wrap: anywhere; color: var(--blue-dark); font-size: 12px; }
.sales-invoice-form { gap: 0; }
.currency-fields { box-sizing: border-box; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--customer-line); border-radius: 8px; background: #f8fbfe; }
.customer-cash-form .currency-fields { grid-column: 1 / -1; width: 100%; }
.sales-invoice-form > .currency-fields, .order-entry-form > .currency-fields { grid-column: 1 / -1; }
.currency-fields legend { padding: 0 7px; color: #164f83; font-weight: 700; }
.currency-fields .form-field { margin: 0; }
.currency-rate-date, .currency-tl-equivalent, .currency-rate-error { grid-column: 1 / -1; font-size: 12px; color: #5d6f80; }
.currency-tl-equivalent { font-weight: 700; }
.currency-rate-error { color: #a02727; font-weight: 700; }
.service-slip-form .currency-fields { margin-top: 15px; }
@media (max-width: 720px) {
    .currency-fields { grid-template-columns: minmax(0, 1fr); }
}
.order-entry-form { gap: 0; }
.order-line { grid-template-columns: minmax(250px, 2fr) minmax(85px, .55fr) minmax(125px, .85fr) minmax(82px, .55fr) minmax(112px, .75fr) minmax(105px, .7fr) 34px; }
.order-manual-fields { grid-column: 1 / span 2; }
.order-manual-fields[hidden] { display: none; }
.order-totals strong { color: var(--ink); }
.order-entry-form > .invoice-form-actions { padding: 0 0 18px; display: flex; justify-content: flex-end; }
.sales-invoice-lines { display: grid; gap: 0; }
.sales-invoice-line { min-width: 0; padding: 12px 0; display: grid; grid-template-columns: minmax(360px, 2.2fr) minmax(80px, .55fr) minmax(120px, .8fr) minmax(78px, .5fr) minmax(116px, .8fr) minmax(105px, .75fr) 34px; align-items: end; gap: 10px; border-bottom: 1px solid var(--customer-line); }
.sales-invoice-line .form-field { margin: 0; }
.invoice-manual-fields { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 85px; gap: 8px; }
.invoice-manual-fields[hidden] { display: none; }
.sales-invoice-line .form-field[hidden] { display: none; }
.invoice-ebelge-fields { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.invoice-ebelge-fields:has(.form-field:not([hidden])) { padding-top: 10px; border-top: 1px dashed var(--customer-line); }
.invoice-manual-fields .form-field { margin: 0; }
.sales-invoice-line-total { min-width: 0; display: grid; gap: 6px; padding-bottom: 7px; text-align: right; }
.sales-invoice-line-total span { color: var(--muted); font-size: 10px; }
.sales-invoice-line-total output { overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 700; }
.invoice-line-remove { width: 30px; height: 30px; color: #8d3021; background: #fff; border: 1px solid #edc3ba; border-radius: 4px; cursor: pointer; font-size: 18px; line-height: 1; }
.invoice-line-add { min-height: 34px; margin-top: 12px; padding: 0 10px; color: var(--blue-dark); background: #fff; border: 1px solid #c8d9e7; border-radius: 4px; cursor: pointer; font: 600 11px "DM Sans", "Segoe UI", sans-serif; }
.invoice-line-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.expense-payment-lines { display: grid; gap: 8px; }
.expense-payment-line { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(160px, 1.2fr) minmax(160px, 1.2fr) minmax(160px, 1.2fr) minmax(120px, .8fr) 34px; align-items: end; gap: 10px; }
.expense-payment-line .form-field { margin: 0; }
.expense-payment-line [hidden] { display: none; }
.sales-invoice-summary { display: grid; justify-content: end; gap: 8px; padding: 16px 0; }
.sales-invoice-summary > div { min-width: 230px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 11px; }
.sales-invoice-summary output { color: var(--ink); font-weight: 600; }
.sales-invoice-grand-total { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; }
.sales-invoice-grand-total output { color: var(--blue-dark); font-size: 15px; }
.invoice-picker-field { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 10px; color: #40586a; font-size: 12px; }
.invoice-picker-field > span { grid-column: 1 / -1; }
.invoice-picker-field output { min-width: 0; height: 30px; padding: 7px 10px; overflow: hidden; color: var(--ink); background: #fbfcfc; border: 1px solid #d4e0e5; border-radius: 5px; text-overflow: ellipsis; white-space: nowrap; font: 500 13px "DM Sans", "Segoe UI", sans-serif; }
.invoice-picker-open { min-height: 30px; padding: 0 10px; color: #fff; background: var(--customer-blue); border: 1px solid var(--customer-blue); border-radius: 4px; cursor: pointer; font: 600 11px "DM Sans", "Segoe UI", sans-serif; }
.invoice-picker-open--secondary { color: var(--blue-dark); background: #fff; border-color: #c8d9e7; }
.invoice-item-picker { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 8px; color: #40586a; font-size: 12px; }
.invoice-item-picker[hidden] { display: none; }
.invoice-item-picker > span { grid-column: 1 / -1; }
.invoice-item-picker > output { min-width: 0; min-height: 30px; padding: 7px 10px; overflow-wrap: anywhere; color: var(--ink); background: #fbfcfc; border: 1px solid #d4e0e5; border-radius: 5px; font: 500 12px "DM Sans", "Segoe UI", sans-serif; }
.invoice-item-picker > div { display: flex; flex-wrap: nowrap; gap: 4px; }
.invoice-item-picker .invoice-picker-open { padding: 0 7px; white-space: nowrap; }
.invoice-manual-item { display: grid; gap: 10px; }
.invoice-manual-item .form-field { margin: 0; }
.invoice-picker-dialog { width: min(620px, calc(100vw - 32px)); max-width: none; max-height: min(78vh, 720px); padding: 18px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 60px rgba(16, 42, 67, .25); }
.invoice-picker-dialog::backdrop { background: rgba(18, 34, 52, .48); }
.app-dialog { width: min(420px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 26px 24px 20px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 70px rgba(16, 42, 67, .32); text-align: center; }
.app-dialog::backdrop { background: rgba(18, 34, 52, .55); backdrop-filter: blur(2px); }
.app-dialog[open] { animation: app-dialog-in .16s ease-out; }
@keyframes app-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.app-dialog-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 24px "DM Sans", "Segoe UI", sans-serif; color: #1267b1; background: #e5f1fb; }
.app-dialog.is-danger .app-dialog-icon { color: #b42318; background: #fdeceb; }
.app-dialog h2 { margin: 0 0 8px; font-size: 18px; }
.app-dialog p { margin: 0 0 20px; color: #4a5b70; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.app-dialog-actions { display: flex; gap: 10px; justify-content: center; }
.app-dialog-actions button { flex: 1 1 0; min-height: 44px; padding: 0 16px; border-radius: 6px; cursor: pointer; font: 700 13px "DM Sans", "Segoe UI", sans-serif; }
.app-dialog-actions button[hidden] { display: none; }
.app-dialog-cancel { color: #1b3a5c; background: #fff; border: 1px solid var(--line); }
.app-dialog-cancel:hover { background: #f3f6fa; }
.app-dialog-confirm { color: #fff; background: linear-gradient(105deg, #1267b1, #1682cc); border: 0; box-shadow: 0 4px 10px rgba(14, 93, 163, .16); }
.app-dialog.is-danger .app-dialog-confirm { background: linear-gradient(105deg, #b42318, #d03a2c); box-shadow: 0 4px 10px rgba(180, 35, 24, .18); }
@media (max-width: 480px) { .app-dialog-actions { flex-direction: column-reverse; } }
.invoice-picker-heading { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.invoice-picker-heading h2 { margin: 0; font-size: 16px; }
.invoice-picker-close { width: 32px; height: 32px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 20px; line-height: 1; }
.invoice-picker-dialog .form-field { margin: 0 0 12px; }
.invoice-picker-dialog .form-field input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; font: inherit; }
.invoice-picker-options { max-height: 48vh; overflow-y: auto; display: grid; gap: 6px; }
.invoice-picker-options[hidden] { display: none; }
.invoice-manual-item[hidden] { display: none; }
.invoice-picker-option { min-height: 38px; padding: 8px 10px; color: var(--ink); text-align: left; background: #f7f9fb; border: 1px solid #e1e8ee; border-radius: 4px; cursor: pointer; font: 500 12px "DM Sans", "Segoe UI", sans-serif; }
.invoice-picker-option:hover, .invoice-picker-option:focus-visible { background: #eaf3fb; border-color: #8fb9d9; outline: none; }
.invoice-picker-empty { margin: 8px 0; color: var(--muted); font-size: 12px; }
.invoice-picker-tabs { margin-bottom: 12px; display: flex; gap: 6px; }
.invoice-picker-tabs button { min-height: 32px; padding: 0 12px; color: var(--blue-dark); background: #f7f9fb; border: 1px solid #d6e1ea; border-radius: 4px; cursor: pointer; font: 600 11px "DM Sans", "Segoe UI", sans-serif; }
.invoice-picker-tabs button[aria-selected="true"] { color: #fff; background: var(--customer-blue); border-color: var(--customer-blue); }
@media (max-width: 1040px) {
    .sales-invoice-line { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sales-invoice-line .invoice-item-picker { grid-column: 1 / -1; }
    .order-line { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .order-manual-fields { grid-column: 1 / span 2; }
}
@media (max-width: 760px) {
    .cheque-entry-panel { padding: 16px 18px 0; }
    .cheque-form-grid { gap: 11px 14px; }
    .cheque-form-footer { margin: 0 -18px; padding: 10px 18px; }
    .stock-movement-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stock-movement-filters .customer-filter-groups { grid-column: 1 / -1; }
    .inventory-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inventory-filters .customer-filter-groups { grid-column: 1 / -1; }
    .stock-movement-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sales-invoice-lines { gap: 12px; }
    .sales-invoice-line { padding: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 12px; background: #f8fbfe; border: 1px solid #d6e3ee; border-radius: 8px; }
    .expense-payment-lines { gap: 12px; }
    .expense-payment-line { padding: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; background: #f8fbfe; border: 1px solid #d6e3ee; border-radius: 8px; }
    .expense-payment-line .form-field:first-child { grid-column: 1 / -1; }
    .expense-payment-line .invoice-line-remove { grid-column: 2; justify-self: end; }
    .sales-invoice-line .invoice-manual-fields, .sales-invoice-line .invoice-item-picker { grid-column: 1 / -1; }
    .invoice-ebelge-fields { grid-template-columns: minmax(0, 1fr); }
    .order-line .order-item-picker { grid-column: 1 / -1; }
    .order-manual-fields { grid-column: 1 / -1; }
    .order-entry-form .invoice-line-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-entry-form.customer-record-form .form-field { font-size: 13px; }
    .order-entry-form.customer-record-form .form-field input, .order-entry-form.customer-record-form .form-field select { height: 44px; font-size: 16px; }
    .invoice-manual-fields { grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; }
    .sales-invoice-line-total { grid-column: 1; padding-bottom: 0; align-self: center; text-align: left; }
    .sales-invoice-line-total span { font-size: 11px; }
    .sales-invoice-line-total output { font-size: 15px; }
    .invoice-line-remove { grid-column: 2; justify-self: end; width: 44px; height: 44px; font-size: 22px; }
    .sales-invoice-form.customer-record-form .form-field { font-size: 13px; }
    .sales-invoice-form.customer-record-form .form-field input, .sales-invoice-form.customer-record-form .form-field select { height: 44px; font-size: 16px; }
    .invoice-picker-field { grid-template-columns: minmax(0, 1fr); font-size: 13px; }
    .invoice-picker-field output, .invoice-item-picker > output { min-height: 44px; height: auto; display: flex; align-items: center; font-size: 15px; white-space: normal; }
    .invoice-picker-field .invoice-picker-open { width: 100%; }
    .invoice-picker-open { min-height: 44px; padding: 0 12px; font-size: 13px; }
    .invoice-line-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
    .invoice-line-actions .invoice-picker-open { padding: 0 6px; }
    .sales-invoice-summary { justify-content: stretch; padding: 16px 0 6px; }
    .sales-invoice-summary > div { min-width: 0; width: 100%; font-size: 13px; }
    .sales-invoice-grand-total output { font-size: 19px; }
    .sales-invoice-form.customer-record-form .save-product { min-height: 52px; margin-top: 12px; font-size: 15px; }
    .invoice-picker-dialog { width: calc(100vw - 16px); max-height: 88vh; padding: 14px; }
    .invoice-picker-dialog .form-field input { height: 44px; font-size: 16px; }
    .invoice-picker-options { max-height: 55vh; }
    .invoice-picker-option { min-height: 48px; padding: 10px 12px; font-size: 14px; }
    .invoice-picker-tabs button { min-height: 44px; flex: 1; font-size: 13px; }
    .invoice-picker-close { width: 44px; height: 44px; }
    .cheque-entry-panel { padding: 13px 13px 0; }
    .cheque-form-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .cheque-readonly-details { grid-template-columns: minmax(0, 1fr); padding: 13px; }
    .cheque-readonly-details-wide { grid-column: 1; }
    .stock-entry-form .stock-entry-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stock-entry-options { flex-direction: column; }
    .cheque-entry-form .cheque-customer-picker,
    .cheque-entry-form .cheque-description-field { grid-column: 1; }
    .cheque-entry-form .cheque-customer-picker { grid-template-columns: minmax(0, 1fr); }
    .cheque-entry-form .cheque-customer-picker > span { grid-column: 1; }
    .cheque-entry-form .cheque-customer-picker .invoice-picker-open { width: 100%; }
    .cheque-form-footer { margin: 0 -13px; padding: 12px 13px; align-items: stretch; flex-direction: column; gap: 9px; }
    .cheque-form-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
    .cheque-entry-form .cheque-form-actions .save-product { width: 100%; }
}
.inventory { background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.inventory-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 22px; }
h2 { margin-bottom: 5px; font: 700 17px "Manrope", "Segoe UI", sans-serif; letter-spacing: 0; }
.inventory-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.search-box { display: flex; align-items: center; gap: 8px; width: min(290px, 42%); height: 36px; padding: 0 10px; color: var(--muted); background: #f7f8f6; border: 1px solid var(--line); border-radius: 5px; }
.search-box span { font-size: 21px; }
.search-box input { width: 100%; min-width: 0; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font: inherit; font-size: 11px; }
.search-box input::placeholder { color: #87918c; }
.search-box input:disabled { cursor: not-allowed; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.customer-data-row td,
.balance-data-row td { height: 30px; padding: 0 12px; line-height: 30px; white-space: nowrap; }
.stock-report-table, .customer-list-table { min-width: 1120px; }
.stock-report-table th, .customer-list-table th { padding: 0 9px; white-space: nowrap; }
.stock-report-table td, .customer-list-table td { padding: 11px 9px; white-space: nowrap; }
.customer-list-table .customer-data-row td { padding: 0 9px; }
.stock-report-table tbody td:not(.empty-cell) { height: 30px; padding: 0 9px; line-height: 30px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { color: #737e78; background: #f8f9f7; }
th { height: 40px; padding: 0 20px; font-size: 9px; font-weight: 700; letter-spacing: .8px; white-space: nowrap; }
td { padding: 13px 20px; border-top: 1px solid #edf0ed; font-size: 12px; }
.stock-code { color: var(--blue); font-family: Consolas, "Courier New", monospace; font-weight: 700; }
.stock-state { padding: 4px 7px; color: #815b25; background: #f8ebd5; border-radius: 4px; font-size: 10px; white-space: nowrap; }
.stock-state.is-active { color: var(--blue-dark); background: #e5eef9; }
.inline-actions { min-width: 68px; }
.inline-actions > summary { color: var(--blue); cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; white-space: nowrap; }
.inline-actions > summary::-webkit-details-marker { display: none; }
.inline-actions-panel { width: 240px; padding: 12px; background: #f8faf7; border: 1px solid var(--line); border-radius: 5px; }
.inline-edit-form .form-field { gap: 5px; margin-bottom: 9px; }
.inline-edit-form .form-field input { height: 30px; }
.inline-edit-form .save-product { min-height: 35px; margin-bottom: 8px; }
.inline-actions-panel .archive-form { margin-top: 4px; justify-content: flex-start; }
.inline-actions-panel .archive-button { min-height: 33px; }
.numeric { text-align: right; }
.empty-cell { height: 205px; color: var(--muted); text-align: center; }
.empty-cell > * { display: block; margin-right: auto; margin-left: auto; }
.empty-mark { width: 37px; height: 37px; margin-bottom: 11px; display: grid; place-items: center; color: var(--blue); background: #eaf1fa; border-radius: 50%; font-size: 20px; }
.empty-cell strong { margin-bottom: 6px; color: var(--ink); font-size: 13px; }
.empty-cell span:last-child { max-width: 420px; padding: 0 15px; font-size: 11px; line-height: 1.55; }
.page-footer { padding-top: 18px; color: #77817c; font-size: 11px; }
.page-footer span { padding: 0 4px; color: var(--blue); }
.auth-page { min-height: 100vh; padding: clamp(16px, 4vw, 48px); display: grid; place-items: center; background-color: #eff5fc; background-image: linear-gradient(rgba(45, 100, 153, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 100, 153, .035) 1px, transparent 1px); background-size: 18px 18px; }
.auth-layout { width: min(1000px, 100%); min-height: 570px; display: grid; grid-template-columns: 1.08fr .92fr; background: var(--white); border: 1px solid #d4e2ef; border-radius: 9px; overflow: hidden; box-shadow: 0 24px 65px rgba(12, 39, 77, .17); }
.auth-brand { position: relative; overflow: hidden; padding: 44px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: #fff; background-color: var(--blue-dark); background-image: linear-gradient(125deg, #0a3470 0%, #0b55a0 56%, #1177c4 100%), repeating-linear-gradient(135deg, transparent 0 26px, rgba(255, 255, 255, .035) 26px 27px); }
.auth-brand::before { position: absolute; inset: 0 auto 0 0; width: 5px; background: #55bce6; content: ""; }
.auth-brand-mark { margin-bottom: auto; color: #fff; }
.auth-logo { width: 210px; height: 59px; padding: 0; background: transparent; border-radius: 0; }
.auth-brand .eyebrow { margin-top: auto; color: #d5e3fa; }
.auth-brand h1 { max-width: 430px; margin: 0 0 14px; font: 700 39px/1.08 "Manrope", "Segoe UI", sans-serif; }
.auth-brand > p:last-child { max-width: 390px; margin: 0; color: #d9e5f5; font-size: 13px; line-height: 1.65; }
.auth-form { padding: 48px clamp(25px, 5vw, 58px); display: flex; flex-direction: column; justify-content: center; }
.auth-kicker { margin: 0 0 8px; color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.auth-form h2 { margin-bottom: 5px; color: #173b63; font: 700 26px/1.2 "Manrope", "Segoe UI", sans-serif; }
.auth-intro { margin: 0 0 23px; color: var(--muted); font-size: 12px; }
.auth-form .form-field { gap: 8px; margin-bottom: 17px; color: #344b5c; font-size: 13px; }
.auth-form .form-field input { height: 48px; padding: 0 13px; background: #fff; border-color: #cdd6e1; border-radius: 7px; font-size: 14px; }
.auth-form .form-field select { width: 100%; height: 48px; padding: 0 13px; color: var(--ink); background: #fff; border: 1px solid #cdd6e1; border-radius: 7px; font: inherit; font-size: 14px; }
.auth-form .form-field input:focus { border-color: var(--blue); outline-color: rgba(0, 66, 152, .13); }
.auth-note { margin: 0 0 19px; color: #718095; font-size: 10px; line-height: 1.55; }
.auth-submit { width: 100%; min-height: 48px; color: #fff; background: linear-gradient(105deg, #1267b1, #1682cc); border: 0; border-radius: 6px; cursor: pointer; font: 700 13px "DM Sans", "Segoe UI", sans-serif; box-shadow: 0 5px 12px rgba(14, 93, 163, .18); }
.auth-submit:hover { background: linear-gradient(105deg, #0e4f96, #126bb2); }
.auth-submit:focus-visible, .save-product:focus-visible, .sync-button:focus-visible, .quiet-button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(238, 129, 94, .6); outline-offset: 2px; }
.form-error { margin-bottom: 16px; padding: 11px 12px; color: #8d3021; background: #fff0ed; border: 1px solid #edc3ba; border-radius: 5px; font-size: 11px; line-height: 1.45; }
.access-panel { width: min(480px, 100%); padding: clamp(24px, 5vw, 42px); background: var(--white); border: 1px solid #d6dee8; border-radius: 8px; box-shadow: var(--shadow); }
.access-symbol { width: 38px; height: 38px; margin-bottom: 20px; display: grid; place-items: center; color: var(--blue); background: #e5eef9; border-radius: 50%; font-weight: 700; }
.access-panel .eyebrow { margin-bottom: 8px; }
.access-panel h1 { margin-bottom: 10px; font-size: 28px; }
.access-panel > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.6; }
.access-actions { margin-top: 21px; display: flex; align-items: center; gap: 10px; }
.access-users { min-height: 37px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; }
.users-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: start; gap: 16px; }
.user-create-form { padding: 20px; }
.user-create-form .save-product { margin-top: 2px; }
.permission-editor { margin-top: 19px; }
.permissions-form { padding: 12px 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.permission-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.permission-module { min-width: 0; background: #f6f8fb; border: 1px solid #e3e8ef; border-radius: 5px; overflow: hidden; }
.permission-module header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: #eef2f7; border-bottom: 1px solid #e3e8ef; }
.permission-module h3 { margin: 0; color: #30445d; font-size: 13px; }
.permission-module header button { margin-left: 8px; padding: 0; color: var(--blue); background: none; border: 0; cursor: pointer; font: 600 11px "Trebuchet MS", "Segoe UI", sans-serif; }
.permission-table-wrap { overflow-x: auto; }
.permission-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.permission-table th, .permission-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid #e8edf3; font-size: 12px; color: #506074; }
.permission-table thead th { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: #6b7a8e; background: transparent; }
.permission-table tbody th { color: #30445d; font-weight: 600; }
.permission-table tr:last-child th, .permission-table tr:last-child td { border-bottom: 0; }
.permission-cell { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; cursor: pointer; }
.permission-cell input { width: 17px; height: 17px; accent-color: var(--blue); }
.permissions-save { grid-column: 1 / -1; justify-self: end; width: min(240px, 100%); }
.quiet-button { min-height: 37px; padding: 0 13px; color: #39516e; background: #fff; border: 1px solid #cbd5e1; border-radius: 5px; cursor: pointer; font: 600 11px "Trebuchet MS", "Segoe UI", sans-serif; }
.quiet-button:hover { color: var(--blue); border-color: var(--blue); }
.permission-empty { margin: 0; padding: 20px 22px; color: var(--muted); font-size: 12px; }
.report-filters { grid-template-columns: repeat(5, minmax(130px, 1fr)); align-items: end; width: min(100%, 1080px); padding: 0; }
.report-filters .form-field { min-width: 0; }

@media (min-width: 901px) and (max-width: 1200px) {
    .layout { width: calc(100% - 306px); margin-left: 274px; }
    .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .topbar { min-height: 62px; padding: 0 14px; gap: 10px; }
    .topbar .brand { position: relative; top: auto; left: auto; min-height: 62px; flex: 0 0 auto; transform: none; }
    .brand-logo { width: min(154px, 40vw); height: 42px; }
    .auth-logo { width: 96px; height: 88px; }
    .topbar-tools { width: auto; max-width: calc(100% - 110px); gap: 6px; }
    .topbar-meta { display: none; }
    .topbar-meta-copy { max-width: min(112px, 29vw); }
    .topbar-meta-copy strong { font-size: 10px; }
    .topbar-meta-copy small { font-size: 8px; }
    .module-menu { position: static; z-index: 45; order: 1; width: auto; margin-left: 0; flex: 0 0 auto; }
    .topbar-logout { order: 2; flex: 0 0 auto; }
    .topbar-logout-button { width: 34px; height: 36px; }
    .module-menu > summary { min-height: 36px; padding: 0 9px; display: inline-flex; align-items: center; gap: 7px; color: #fff; background: rgba(255,255,255,.12); border-radius: 5px; cursor: pointer; font-size: 11px; list-style: none; white-space: nowrap; }
    .module-menu > summary::-webkit-details-marker { display: none; }
    .module-menu > summary span { font-size: 16px; }
    .module-menu[open]::before { position: fixed; z-index: 40; inset: 62px 0 0; background: rgba(10, 24, 43, .34); content: ""; }
    .module-sidebar { position: fixed; z-index: 41; top: 62px; bottom: 0; left: 0; width: min(82vw, 310px); height: auto; padding: 15px 13px 18px; box-shadow: 12px 0 28px rgba(0, 23, 57, .14); }
    .layout { width: min(100% - 32px, 760px); margin: 0 auto; padding: 27px 0 36px; }
    .auth-page { padding: 14px; align-items: start; }
    .auth-layout { min-height: 0; grid-template-columns: 1fr; }
    .auth-brand { min-height: 190px; padding: 22px; }
    .auth-logo { width: 170px; height: 48px; }
    .auth-brand-mark { margin: 0 0 24px; }
    .auth-brand .eyebrow { margin: 0 0 8px; }
    .auth-brand h1 { max-width: none; margin-bottom: 8px; font-size: 27px; }
    .auth-brand > p:last-child { font-size: 11px; }
    .auth-form { padding: 24px 22px 26px; }
    .users-grid { grid-template-columns: 1fr; }
    .shortcut-add-form { grid-template-columns: 1fr; padding: 15px; }
    .shortcut-add-button { width: 100%; }
    .shortcut-grid { padding: 15px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
    .permissions-form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
    .page-heading { min-height: 0; padding: 18px; align-items: flex-start; flex-direction: column; gap: 17px; }
    .page-heading--stable { min-height: 104px; padding: 18px 112px 18px 18px; align-items: center; flex-direction: row; gap: 0; }
    .page-heading--stable h1 { font-size: 25px; overflow-wrap: anywhere; }
    .page-heading--no-back { padding-right: 18px; }
    .heading-actions { width: 100%; align-items: stretch; }
    .heading-actions > form { flex: 1; }
    .heading-actions .sync-button { width: 100%; justify-content: center; padding: 0 10px; }
    .product-create > summary { min-height: 42px; }
    .product-form { left: 0; right: auto; }
    h1 { font-size: 31px; }
    .status-strip { align-items: flex-start; padding: 14px; }
    .status-tag { display: none; }
    .summary { width: 100%; }
    .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .metric-panel { min-height: 116px; padding: 14px; }
    .metric-panel strong { font-size: 21px; }
    .detail-summary { grid-template-columns: 1fr; }
    .detail-summary > div { padding: 12px 15px; border-right: 0; border-bottom: 1px solid var(--line); }
    .detail-summary > div:last-child { border-bottom: 0; }
    .record-form { grid-template-columns: 1fr; padding: 16px; }
    .record-form .span-2 { grid-column: auto; }
    .record-form .save-product { width: 100%; }
    .record-form.customer-record-form { padding: 0 18px 20px; }
    .customer-record-form .record-form-grid,
    .customer-record-form .record-form-grid--three { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .customer-record-form .record-form-grid .span-2 { grid-column: auto; }
    .customer-record-form .save-product { width: 100%; }
    .filter-form { grid-template-columns: 1fr 1fr; padding: 16px; }
    .customer-filter-disclosure { margin: 0 16px 16px; }
    .customer-list-panel > .customer-filter-disclosure { margin-top: 14px; }
    .stock-filter-disclosure { margin-top: 14px; }
    .customer-list-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 9px; padding: 10px; }
    .customer-filter-disclosure .customer-list-filters { padding: 9px 10px; }
    .customer-filter-group-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .report-filters { width: 100%; grid-template-columns: 1fr 1fr; padding: 16px; }
    .report-filters .form-field:first-of-type { grid-column: span 2; }
    .report-filters .filter-button { grid-column: span 2; }
    .filter-form .form-field:first-of-type { grid-column: span 2; }
    .filter-button { width: 100%; }
    .invoice-totals { justify-content: space-between; gap: 10px; padding: 14px; }
    .inventory-heading { align-items: stretch; flex-direction: column; padding: 18px 16px; }
    .search-box { width: 100%; }
    th { padding: 0 13px; }
    .empty-cell { height: 190px; }
    .page-footer { line-height: 1.6; }
}

@media (max-width: 480px) {
    .topbar { padding: 0 11px; gap: 8px; }
    .brand-logo { width: min(174px, 45vw); height: 49px; }
    .topbar-tools { max-width: calc(100% - 110px); gap: 4px; }
    .topbar-meta-copy { max-width: min(92px, 26vw); }
    .topbar-logout-button { width: 32px; height: 36px; }
    .module-menu > summary { min-height: 40px; padding: 0 10px; }
    .module-menu > summary .menu-summary-label { font-size: 0; }
    .module-menu > summary .menu-summary-label::after { content: "Menü"; font-size: 11px; }
    .layout { width: calc(100% - 24px); padding-top: 22px; }
    .page-heading { margin-bottom: 20px; }
    h1 { font-size: 29px; }
    .heading-actions { flex-direction: column; }
    .auth-page { padding: 10px; }
    .auth-layout { border-radius: 11px; }
    .auth-brand { min-height: 180px; padding: 18px; }
    .auth-logo { width: 150px; height: 42px; }
    .auth-brand-mark { margin-bottom: 17px; }
    .auth-brand h1 { font-size: 25px; }
    .auth-form { padding: 21px 18px 23px; }
    .auth-form h2 { margin-bottom: 19px; font-size: 21px; }
    .record-form.customer-record-form { padding: 0 14px 17px; }
    .page-heading { padding: 15px; }
    .page-heading--stable { padding: 15px 104px 15px 15px; }
    .page-heading--no-back { padding-right: 15px; }
    .record-form-section { padding-top: 17px; }
    .record-form-section h3 { margin-bottom: 11px; }
    .filter-form, .report-filters { grid-template-columns: minmax(0, 1fr); }
    .customer-list-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 8px; padding: 9px; }
    .customer-filter-disclosure { margin: 0 14px 14px; }
    .customer-list-panel > .customer-filter-disclosure { margin-top: 12px; }
    .stock-filter-disclosure { margin-top: 12px; }
    .customer-list-filters .customer-filter-span-2 { grid-column: 1 / -1; }
    .customer-filter-disclosure .customer-list-filters { padding: 9px 10px; }
    .customer-filter-disclosure .customer-list-filters { padding: 8px 9px; }
    .customer-filter-groups { padding: 5px 8px 7px; }
    .customer-filter-group-grid { gap: 5px; }
    .customer-filter-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
    .customer-filter-actions .save-product { min-height: 32px; min-width: 0; width: 100%; padding: 0 8px; font-size: 10px; }
    .customer-filter-clear { min-height: 32px; padding: 0 9px; }
    .filter-form .form-field:first-of-type, .report-filters .form-field:first-of-type,
    .report-filters .filter-button, .filter-button { grid-column: auto; }
    .filter-form.warehouse-movement-filters .stock-name-filter-field,
    .filter-form.warehouse-inventory-filters .stock-name-filter-field { grid-column: 1 / -1; }
    .permissions-form { grid-template-columns: minmax(0, 1fr); }
    .permissions-save { grid-column: auto; justify-self: stretch; width: 100%; }
}

@media (max-width: 360px) {
    .topbar { padding: 0 8px; gap: 4px; }
    .brand-logo { width: min(144px, 45vw); height: 40px; }
    .topbar-tools { max-width: calc(100% - 152px); gap: 4px; }
    .module-menu > summary { padding: 0 6px; gap: 4px; }
    .topbar-logout-button { width: 30px; height: 34px; }
}

.row-delete-form{display:inline;margin:0 0 0 .5rem}
.row-delete{background:none;border:0;padding:0;font:inherit;color:#b42318;cursor:pointer}
.row-delete:hover{text-decoration:underline}
.auth-form .remember-field { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; font-weight: 600; cursor: pointer; }
.auth-form .remember-field input { width: 18px; height: 18px; padding: 0; accent-color: var(--blue); }

.company-layout { width: min(1080px, 100%); grid-template-columns: .72fr 1.28fr; }
.company-form { justify-content: flex-start; padding-top: 36px; padding-bottom: 30px; }
.company-form h2 { margin-bottom: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.company-step { display: flex; align-items: center; gap: 9px; margin: 14px 0 8px; color: #173b63; font: 700 13px "DM Sans", "Segoe UI", sans-serif; }
.company-step em { color: #7a8ba0; font-style: normal; font-weight: 500; }
.company-step-no { display: grid; place-items: center; width: 22px; height: 22px; color: #fff; background: #1267b1; border-radius: 50%; font-size: 12px; }
.company-form .company-search { width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; border: 1px solid #cdd6e1; border-radius: 7px; font: inherit; font-size: 14px; margin-bottom: 8px; }
.company-list { display: grid; gap: 4px; max-height: max(220px, calc(100vh - 470px)); overflow: auto; padding: 2px; }
.auth-form.company-form .form-field select { height: 34px; padding: 0 10px; font-size: 13px; }
.company-form .company-step { margin: 10px 0 5px; }
.company-form .company-default { margin: 6px 0 8px; }
.company-form .company-summary { margin: 2px 0 8px; padding: 7px 10px; }
.company-form .auth-submit { min-height: 42px; }
.company-card { position: relative; display: grid; grid-template-columns: 96px minmax(70px, .7fr) 1.6fr 18px; align-items: center; gap: 10px; padding: 6px 10px; background: #fff; border: 1.5px solid #d5deeb; border-radius: 7px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.company-card[hidden], .company-year-chip[hidden], .company-empty[hidden] { display: none; }
.company-card:hover { border-color: #8fb4dc; background: #f6faff; }
.company-card input, .company-year-chip input { position: absolute; opacity: 0; pointer-events: none; }
.company-avatar { display: grid; place-items: center; width: 40px; height: 40px; color: #1267b1; background: #e6f0fb; border-radius: 9px; font: 800 17px "Manrope", "Segoe UI", sans-serif; }
.company-card-text { display: grid; min-width: 0; }
.company-card-text strong { color: #173b63; font-size: 14px; }
.company-card-text small { overflow: hidden; color: #66788c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.company-code { overflow: hidden; padding: 3px 6px; color: #4b627a; background: #eef3fa; border-radius: 5px; font-size: 11px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.company-title { overflow: hidden; color: #66788c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.company-card.is-selected .company-code { color: #fff; background: #1267b1; }
.company-card-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-check { width: 18px; height: 18px; border: 2px solid #b9c8d9; border-radius: 50%; }
.company-card.is-selected { background: #eef6ff; border-color: #1267b1; box-shadow: 0 0 0 3px rgba(18, 103, 177, .12); }
.company-card.is-selected .company-avatar { color: #fff; background: #1267b1; }
.company-card.is-selected .company-check { background: #1267b1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l3 3 5-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: #1267b1; }
.company-card:focus-within { outline: 3px solid rgba(238, 129, 94, .55); outline-offset: 1px; }
.company-empty { margin: 8px 0; color: #66788c; font-size: 13px; text-align: center; }
.company-years { display: flex; flex-wrap: wrap; gap: 8px; }
.company-year-chip { position: relative; min-width: 76px; padding: 9px 16px; color: #344b5c; background: #fff; border: 1.5px solid #d5deeb; border-radius: 8px; cursor: pointer; font: 700 14px "DM Sans", "Segoe UI", sans-serif; text-align: center; }
.company-year-chip:hover { border-color: #8fb4dc; }
.company-year-chip.is-selected { color: #fff; background: #1267b1; border-color: #1267b1; }
.company-year-chip:focus-within { outline: 3px solid rgba(238, 129, 94, .55); outline-offset: 1px; }
.company-form .company-year { margin-bottom: 4px; }
.company-form .company-year select { width: 100%; }
.company-form .company-default { margin: 8px 0 12px; font-size: 13px; }
.company-summary { margin: 4px 0 12px; padding: 10px 12px; color: #35507a; background: #f3f7fd; border-left: 4px solid #1267b1; border-radius: 6px; font-size: 13px; }
.company-summary strong { color: #173b63; }
@media (max-width: 860px) { .company-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
    .company-card { grid-template-columns: auto 1fr 18px; grid-template-areas: "code name check" "title title title"; row-gap: 2px; padding: 8px 10px; }
    .company-card .company-code { grid-area: code; min-width: 56px; }
    .company-card .company-card-text { grid-area: name; }
    .company-card .company-title { grid-area: title; white-space: normal; }
    .company-card .company-check { grid-area: check; }
    .company-list { max-height: none; }
}

.nav-item-soon { color: #8a9bb0; font-size: 12px; font-style: italic; cursor: default; pointer-events: none; }

.bank-card-panel { padding-bottom: 18px; }
.bank-card-head { margin: 18px 22px 0; padding: 12px 16px; display: flex; align-items: center; gap: 14px; color: #fff; background: linear-gradient(100deg, #0b5fa5, #1a84c9); border-radius: 6px 6px 0 0; }
.bank-card-head strong { font-size: 15px; }
.bank-card-head span { margin-left: auto; padding: 3px 9px; color: #e8f3fc; background: rgba(255, 255, 255, .16); border-radius: 4px; font-size: 11px; }
.bank-tabs { margin: 0 22px; padding: 0; display: flex; gap: 2px; overflow-x: auto; background: #eaf2fa; border: 1px solid #d5e2ef; border-top: 0; }
.bank-tab { min-height: 36px; padding: 0 16px; flex: 0 0 auto; color: #42627e; background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; font: 700 11px "DM Sans", "Segoe UI", sans-serif; white-space: nowrap; }
.bank-tab:hover { color: var(--blue); }
.bank-tab.is-active { color: var(--blue); background: #fff; border-bottom-color: var(--blue); }
.bank-tab:disabled { color: #9aabbb; cursor: not-allowed; }
.bank-tab-panel { margin: 0 22px; padding: 14px 0 0; border: 1px solid #d5e2ef; border-top: 0; background: #fff; }
.bank-tab-panel[hidden] { display: none; }
.bank-tab-panel > .table-wrap { margin: 12px 0 0; }
.bank-tab-note { margin: 0; padding: 0 14px 12px; color: #68819a; font-size: 11px; }
.bank-card-form { margin: 0; padding: 0 14px 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px 10px; align-items: end; }
.bank-card-form .form-field { margin: 0; gap: 3px; color: #355774; font-size: 11px; }
.bank-card-form .form-span-2 { grid-column: span 2; }
.bank-card-form .form-span-4 { grid-column: 1 / -1; }
.bank-card-form input, .bank-card-form select, .bank-card-form textarea { width: 100%; min-width: 0; color: var(--ink); background: #fff; border: 1px solid #d2dfeb; border-radius: 5px; font: 500 12px "DM Sans", "Segoe UI", sans-serif; }
.bank-card-form input, .bank-card-form select { height: 30px; padding: 0 10px; }
.bank-card-form textarea { padding: 7px 10px; resize: vertical; }
.bank-card-form input:read-only { color: #6b7f92; background: #f0f4f8; }
.bank-card-form input:focus, .bank-card-form select:focus, .bank-card-form textarea:focus { border-color: var(--blue); outline: 3px solid rgba(17, 107, 181, .12); }
.bank-card-form .customer-filter-actions { grid-column: 1 / -1; }
.bank-card-picker { margin: 18px 22px 12px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: end; }
.bank-card-picker .form-field { margin: 0; gap: 3px; color: #355774; font-size: 11px; }
.bank-card-picker select { width: 100%; height: 30px; padding: 0 10px; background: #fff; border: 1px solid #d2dfeb; border-radius: 5px; font: 500 12px "DM Sans", "Segoe UI", sans-serif; }
.bank-card-picker .save-product { width: auto; min-width: 90px; min-height: 30px; margin: 0; padding: 0 12px; font-size: 11px; }
@media (max-width: 900px) {
    .bank-card-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bank-card-head, .bank-tabs, .bank-tab-panel, .bank-card-picker { margin-left: 10px; margin-right: 10px; }
}
@media (max-width: 560px) {
    .bank-card-form .form-span-2 { grid-column: 1 / -1; }
    .bank-card-picker { grid-template-columns: 1fr 1fr; }
    .bank-card-picker .form-field { grid-column: 1 / -1; }
}

.service-slip-panel { padding: 0; overflow: hidden; }
.service-slip-form { padding: 18px 22px; }
.service-form-section { margin-bottom: 20px; padding: 15px; background: #f8fbfe; border: 1px solid #dce7f1; border-radius: 7px; }
.service-form-section h2 { margin: 0; color: #174b7a; font-size: 14px; }
.service-form-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.service-form-grid .form-field { min-width: 0; margin: 0; gap: 4px; color: #355774; font-size: 11px; }
.service-form-grid input, .service-form-grid select, .service-form-grid textarea,
.service-line-row input, .service-line-row select { width: 100%; min-width: 0; color: var(--ink); background: #fff; border: 1px solid #d2dfeb; border-radius: 5px; font: 500 12px "DM Sans", "Segoe UI", sans-serif; }
.service-form-grid input, .service-form-grid select, .service-line-row input, .service-line-row select { height: 32px; padding: 0 9px; }
.service-form-grid textarea { padding: 8px 9px; resize: vertical; }
.service-form-grid input:focus, .service-form-grid select:focus, .service-form-grid textarea:focus,
.service-line-row input:focus, .service-line-row select:focus { border-color: var(--blue); outline: 3px solid rgba(17, 107, 181, .12); }
.service-span-2 { grid-column: span 2; }
.service-customer-field { min-width: 0; margin: 0; }
.service-customer-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.service-customer-control select { width: 100%; min-width: 0; }
.service-customer-control .invoice-picker-open { min-height: 32px; padding: 0 13px; white-space: nowrap; }
.service-lines-heading { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.service-lines-heading p { margin: 4px 0 0; color: #68819a; font-size: 10px; }
.service-add-line { width: auto; min-height: 32px; margin: 0; padding: 0 13px; font-size: 11px; }
.service-line-list { display: grid; gap: 9px; }
.service-line-row { min-width: 0; padding: 10px; display: grid; grid-template-columns: minmax(125px, 1fr) minmax(220px, 2fr) minmax(90px, .7fr) minmax(140px, 1fr) minmax(85px, .55fr) auto; gap: 8px; align-items: end; background: #fff; border: 1px solid #dce7f1; border-radius: 6px; }
.service-line-row .form-field { min-width: 0; margin: 0; gap: 4px; color: #355774; font-size: 10px; }
.service-line-remove { min-height: 32px; padding: 0 8px; }
.service-form-actions { margin-top: 2px; }
.service-report-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-report-customer-filter { min-width: 0; grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.service-report-customer-filter .form-field { min-width: 0; }
.service-report-customer-filter .customer-picker-open { min-height: 30px; margin-bottom: 1px; padding: 0 12px; font-size: 10px; }
.service-report-date-range { min-width: 0; grid-column: span 2; margin: 0; padding: 5px 9px 7px; background: #f1f6fc; border: 1px solid #d7e3ef; border-radius: 6px; }
.service-report-date-range legend { padding: 0 5px; color: #315779; font-size: 10px; font-weight: 700; }
.service-report-date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.service-report-date-fields .form-field { min-width: 0; }
.service-report-table .invoice-report-table { min-width: 1250px; }
.service-report-table .invoice-row-actions { min-height: 30px; gap: 6px; }
.service-invoice-form { display: flex; align-items: end; gap: 8px; }
.service-invoice-warehouse { min-width: 150px; margin: 0; gap: 3px; }
.service-invoice-warehouse select { width: 100%; min-height: 30px; padding: 0 8px; border: 1px solid #d2dfeb; border-radius: 5px; background: #fff; font: inherit; }
.service-report-row--pending td { background: #fff8e8; }
.service-report-row--pending td:first-child { border-left: 4px solid #d59b32; }
.service-report-row--processing td { background: #edf5ff; }
.service-report-row--processing td:first-child { border-left: 4px solid #4f86c6; }
.service-report-row--completed td { background: #edf8f0; }
.service-report-row--completed td:first-child { border-left: 4px solid #4e9b63; }
.service-report-row--delivered td { background: #eaf8f7; }
.service-report-row--delivered td:first-child { border-left: 4px solid #379990; }
.service-report-row--cancelled td { background: #fff0ef; }
.service-report-row--cancelled td:first-child { border-left: 4px solid #d2645d; }
.service-report-row--other td { background: #f7f9fb; }
.service-report-row--other td:first-child { border-left: 4px solid #8392a2; }
.service-report-locked { color: #73879a; font-size: 10px; }
.service-invoice-panel .customer-filter-disclosure { margin-top: 18px; }
@media (max-width: 900px) {
    .service-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-slip-form { padding: 12px; }
    .service-form-section { padding: 12px; }
    .service-line-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-line-item { grid-column: 1 / -1; }
    .service-line-remove { justify-self: end; }
}
@media (max-width: 560px) {
    .service-span-2 { grid-column: 1 / -1; }
    .service-lines-heading { align-items: flex-start; }
    .service-line-row { padding: 8px; gap: 7px; }
    .service-report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.service-slip-form { padding: 0; gap: 0; }
.service-tab-list { display: flex; min-width: 0; overflow-x: auto; padding: 0 8px; background: #f2f5f8; border-bottom: 1px solid #bfcbd4; scrollbar-width: thin; }
.service-tab-list button { flex: 0 0 auto; min-height: 34px; padding: 0 10px; color: #243b50; background: transparent; border: 0; border-right: 1px solid #d6dfe6; border-bottom: 2px solid transparent; cursor: pointer; font: 600 11px "DM Sans", "Segoe UI", sans-serif; white-space: nowrap; }
.service-tab-list button:hover { color: #0e5e9e; background: #e8f0f7; }
.service-tab-list button[aria-selected="true"] { color: #0e5e9e; background: #fff; border-bottom-color: #176fb2; }
.service-tab-panel { min-height: 124px; margin: 0; padding: 15px 18px; border: 0; border-bottom: 1px solid #d4dce3; }
.service-tab-panel[hidden], .service-total-content[hidden] { display: none; }
.service-tab-panel .service-form-grid { margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.service-tab-panel .service-form-grid .form-field { min-width: 0; margin: 0; }
.service-tab-panel .service-form-grid .form-field select,
.service-tab-panel .service-form-grid .form-field input,
.service-tab-panel .service-form-grid .form-field textarea { width: 100%; }
.service-tab-panel .service-form-grid input[type="file"] { height: auto; min-height: 34px; padding: 5px; }
.service-tab-hint { margin: 10px 0 0; color: #62758a; font-size: 10px; }
.service-image-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.service-image-preview { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 8px 5px 5px; color: #35536d; background: #f7fafc; border: 1px solid #dce6ee; border-radius: 6px; font-size: 10px; }
.service-image-preview img { width: 48px; height: 48px; flex: 0 0 auto; object-fit: cover; border-radius: 4px; }
.service-image-preview span { overflow-wrap: anywhere; }
.service-image-remove { flex: 0 0 auto; padding: 4px 7px; color: #9a3c3c; background: #fff; border: 1px solid #e3caca; border-radius: 4px; cursor: pointer; font: 600 10px "DM Sans", "Segoe UI", sans-serif; }
.service-image-error { margin: 0; color: #a33c3c; font-size: 10px; }
.service-image-error[hidden] { display: none; }
.service-tab-message { min-height: 124px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.service-tab-message[hidden] { display: none; }
.service-tab-message strong { color: #174b7a; font-size: 12px; }
.service-tab-message p { margin: 0; color: #62758a; font-size: 11px; line-height: 1.5; }
.service-tab-message .invoice-picker-open { align-self: flex-start; margin-top: 6px; }
.service-operation-list { display: grid; gap: 6px; }
.service-operation-empty,
.service-operation-limit { color: #73879a !important; font-size: 10px !important; }
.service-operation-row { min-width: 0; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #315779; background: #f7fafd; border: 1px solid #dce7f1; border-radius: 5px; font-size: 11px; }
.service-operation-row > span { min-width: 0; overflow-wrap: anywhere; }
.service-operation-remove { flex: 0 0 auto; padding: 4px 8px; color: #9a3c3c; background: #fff; border: 1px solid #e3caca; border-radius: 4px; cursor: pointer; font: 600 10px "DM Sans", "Segoe UI", sans-serif; }
.service-operation-dialog .customer-picker-result:disabled { color: #708195; background: #edf2f7; cursor: default; }
.service-operation-dialog .customer-picker-result:disabled .customer-picker-select-label { color: #708195; }
.service-lines-section { margin: 0; padding: 14px 18px 9px; border: 0; border-bottom: 1px solid #d4dce3; }
.service-lines-heading { margin-bottom: 8px; }
.service-lines-heading h3 { margin: 0; color: #174b7a; font-size: 13px; }
.service-lines-heading p { margin: 3px 0 0; color: #68819a; font-size: 10px; }
.service-line-list { gap: 0; }
.service-slip-line { grid-template-columns: minmax(250px, 1.8fr) minmax(60px, .45fr) minmax(76px, .5fr) minmax(100px, .7fr) minmax(90px, .6fr) minmax(96px, .65fr) minmax(105px, .75fr) 30px; padding: 9px 0; gap: 8px; }
.service-slip-line .form-field { min-width: 0; margin: 0; }
.service-slip-line .form-field span { font-size: 10px; }
.service-slip-line .form-field input,
.service-slip-line .form-field select { min-width: 0; height: 32px; }
.service-slip-line .sales-invoice-line-total { padding: 0 0 5px; }
.service-slip-line .sales-invoice-line-total span { font-size: 9px; }
.service-slip-line .sales-invoice-line-total output { font-size: 11px; }
.service-total-section { margin: 0; padding: 8px 18px 13px; border: 0; }
.service-total-summary { width: min(320px, 100%); margin-left: auto; display: grid; gap: 7px; padding: 2px 4px 0; }
.service-total-summary-row { display: flex; justify-content: space-between; gap: 12px; color: #536a7e; font-size: 11px; }
.service-total-summary-row output { color: #243b50; font-weight: 600; white-space: nowrap; }
.service-total-grand { margin-top: 2px; padding-top: 8px; border-top: 1px solid #d4dce3; color: #174b7a; font-weight: 700; }
.service-total-grand output { color: #174b7a; font-size: 15px; font-weight: 700; }
.service-form-actions { justify-content: flex-end; padding: 0 18px 16px; }
.service-form-actions .save-product { min-width: 190px; }
@media (max-width: 1000px) {
    .service-tab-panel .service-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-slip-line { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .service-slip-line .service-line-product { grid-column: span 2; }
    .service-slip-line .invoice-line-remove { justify-self: end; }
}
@media (max-width: 560px) {
    .service-tab-list { padding: 0 4px; }
    .service-tab-list button { padding: 0 8px; }
    .service-tab-panel { padding: 12px; }
    .service-tab-panel .service-form-grid { grid-template-columns: minmax(0, 1fr); }
    .service-tab-panel .service-form-grid .service-span-2 { grid-column: auto; }
    .service-customer-control .invoice-picker-open { min-height: 44px; }
    .service-lines-section { padding: 12px; }
    .service-slip-line { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .service-slip-line .service-line-product { grid-column: 1 / -1; }
    .service-slip-line .sales-invoice-line-total { text-align: left; }
    .service-total-section { padding: 8px 12px 12px; }
    .service-form-actions { padding: 0 12px 14px; }
}

.license-days-banner { min-height: 70px; margin: -7px 0 20px; padding: 13px 17px; display: flex; align-items: center; gap: 13px; color: #174b7a; background: #edf5fd; border: 1px solid #cbdff1; border-left: 4px solid #1682cc; border-radius: 7px; }
.license-days-banner.is-warning { color: #765116; background: #fff8e9; border-color: #edd7a7; border-left-color: #d99a27; }
.license-days-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: #1682cc; border-radius: 50%; font-size: 16px; font-weight: 700; }
.license-days-banner.is-warning .license-days-icon { background: #d99a27; }
.license-days-copy { min-width: 0; display: grid; gap: 4px; }
.license-days-copy strong { font-size: 13px; }
.license-days-copy span { color: #58728c; font-size: 11px; }
.license-days-banner.is-warning .license-days-copy span { color: #876c3d; }
.license-days-link { margin-left: auto; padding: 9px 12px; flex: 0 0 auto; color: #175d98; background: #fff; border: 1px solid #c4d9eb; border-radius: 5px; font-size: 11px; font-weight: 700; text-decoration: none; }
.license-days-link:hover { background: #f5faff; border-color: #8cb7d9; }
.license-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.license-summary-card { min-width: 0; padding: 22px; }
.license-card-label { margin: 0 0 10px; color: #6b7c8d; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.license-summary-card h2 { margin: 0; color: #174b7a; font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; }
.license-card-detail { margin: 14px 0 0; color: #65788a; font-size: 11px; }
.license-card-detail strong { color: #2e4b66; font-weight: 700; }
.license-dates { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.license-dates div { min-width: 0; display: grid; gap: 5px; }
.license-dates span { color: #708195; font-size: 10px; }
.license-dates strong { color: #234766; font-size: 13px; }
.license-change-card, .license-about-card { margin-bottom: 18px; padding: 20px 22px; }
.license-change-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr); align-items: end; gap: 16px; }
.license-change-form .form-field { margin: 0; }
.license-change-form .save-product { min-height: 42px; }
.license-about-card > p { margin: 0; color: #65788a; font-size: 11px; line-height: 1.6; }
.license-error { margin-bottom: 18px; }
@media (max-width: 760px) {
    .license-days-banner { align-items: flex-start; flex-wrap: wrap; }
    .license-days-link { margin-left: 47px; }
    .license-summary-grid { grid-template-columns: minmax(0, 1fr); }
    .license-change-form { grid-template-columns: minmax(0, 1fr); }
}

/* Grup tanımları ekranı */
.group-module-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #eef3f7; border: 1px solid var(--line); border-radius: 8px; }
.group-module-tab { padding: 7px 16px; color: #4c6072; border-radius: 6px; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.group-module-tab:hover { color: var(--blue); }
.group-module-tab.is-active { color: var(--blue); background: #fff; box-shadow: 0 1px 3px rgba(15, 45, 75, .12); }
.group-create-form { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(180px, 1.2fr) minmax(0, auto); align-items: end; gap: 12px; padding: 0 22px 20px; }
.group-create-form .form-field { margin: 0; }
.group-create-form .form-field[hidden] { display: none; }
.group-create-form .form-field input,
.group-create-form .form-field select { width: 100%; height: 36px; padding: 0 12px; color: var(--ink); background: #fbfcfc; border: 1px solid #d4e0e5; border-radius: 5px; font: 500 13px "DM Sans", "Segoe UI", sans-serif; }
.group-create-form .form-field input:focus,
.group-create-form .form-field select:focus { border-color: var(--blue); outline: 2px solid rgba(0, 66, 152, .12); }
.group-create-actions { min-width: 0; }
.group-create-actions .save-product { width: 100%; min-width: 0; min-height: 36px; padding: 0 16px; white-space: nowrap; }
.group-create-form--unit { grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(0, auto); }
.group-list-table th { padding: 0 20px; }
.group-list-table td { padding: 10px 20px; }
.group-list-table .group-action-cell { width: 90px; text-align: right; }
.group-list-table .group-action-cell form { display: inline-flex; }
@media (max-width: 900px) {
    .group-create-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0 16px 16px; }
    .group-create-actions { grid-column: 1 / -1; }
    .group-create-actions .save-product { width: 100%; }
}
@media (max-width: 560px) {
    .group-create-form { grid-template-columns: minmax(0, 1fr); }
    .group-module-tabs { width: 100%; }
    .group-module-tab { flex: 1; text-align: center; }
}

/* Kayıt ekranı buton çubuğu: geri, düzenle, kaydet ve sil aynı boyutta. Sınıf iki kez yazılarak eski form kurallarının önüne geçilir. */
.record-action-bar.record-action-bar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.record-action-bar.record-action-bar form { display: inline-flex; margin: 0; }
.record-action-bar.record-action-bar .back-link,
.record-action-bar.record-action-bar .save-product,
.record-action-bar.record-action-bar .invoice-danger-button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 104px; height: 38px; min-height: 38px; margin: 0; padding: 0 18px; border-radius: 6px; font: 700 12px "DM Sans", "Segoe UI", sans-serif; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.record-action-bar.record-action-bar .back-link { color: #39516e; background: #fff; border: 1px solid #cbd5e1; }
.record-action-bar.record-action-bar .back-link:hover { color: var(--blue); border-color: var(--blue); background: #f5f9fd; text-decoration: none; }
.record-action-bar.record-action-bar .save-product { color: #fff; border: 0; }
.record-action-bar.record-action-bar .save-product:hover { text-decoration: none; }
.record-action-bar.record-action-bar .invoice-danger-button { color: #b42318; background: #fff; border: 1px solid #f0b4ad; }
.record-action-bar.record-action-bar .invoice-danger-button:hover { color: #fff; background: #d92d20; border-color: #d92d20; }
@media (max-width: 700px) {
    .record-action-bar.record-action-bar { display: grid; grid-template-columns: 1fr; width: 100%; }
    .record-action-bar.record-action-bar .back-link,
    .record-action-bar.record-action-bar .save-product,
    .record-action-bar.record-action-bar .invoice-danger-button,
    .record-action-bar.record-action-bar form { width: 100%; }
}.record-action-bar.record-action-bar .archive-button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 104px; height: 38px; margin: 0; padding: 0 18px; color: #8a5a12; background: #fff; border: 1px solid #ead2a6; border-radius: 6px; font: 700 12px "DM Sans", "Segoe UI", sans-serif; cursor: pointer; }
.record-action-bar.record-action-bar .archive-button:hover { background: #fff8eb; border-color: #c9932f; }
@media (max-width: 700px) { .record-action-bar.record-action-bar .archive-button { width: 100%; } }
/* Cari Listesi: Grup ve Konum filtreleri yan yana. */
.customer-list-filters .customer-filter-groups.customer-filter-half { grid-column: span 2; }
@media (max-width: 900px) { .customer-list-filters .customer-filter-groups.customer-filter-half { grid-column: 1 / -1; } }
/* Doviz hesabi kapali carilerde doviz alani gizlenir. */
.currency-fields[hidden] { display: none; }
.customer-record-form .stock-currency-toggle { margin: 4px 0 0; }

/* Alt toplamli raporlarda hareketler kendi alaninda kayar; baslik ve alt toplam sabit kalir. */
.table-wrap:has(+ .movement-totals-wrap),
.table-wrap:has(+ .stock-movement-totals),
.table-wrap:has(.invoice-report-totals) { max-height: max(320px, calc(100vh - 290px)); overflow: auto; }
.table-wrap:has(+ .movement-totals-wrap) > table > thead,
.table-wrap:has(+ .stock-movement-totals) > table > thead,
.table-wrap:has(.invoice-report-totals) > table > thead { position: sticky; top: 0; z-index: 3; box-shadow: 0 1px 0 var(--line); }
.table-wrap:has(+ .movement-totals-wrap) > table > thead th,
.table-wrap:has(+ .stock-movement-totals) > table > thead th,
.table-wrap:has(.invoice-report-totals) > table > thead th { background: #f8f9f7; }
.table-wrap .invoice-report-totals td { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -1px 0 #cbd5e1; }
.table-wrap:has(+ .movement-totals-wrap) + .movement-totals-wrap { margin-top: 0; }
.table-wrap:has(+ .movement-totals-wrap) + .movement-totals-wrap,
.table-wrap:has(+ .stock-movement-totals) + .stock-movement-totals { position: sticky; bottom: 0; z-index: 4; box-shadow: 0 -6px 14px rgba(15, 45, 80, .08); }
/* Uygulamadaki tum kaydirma cubuklari tema mavisi (sayfa, tablolar, listeler, diyaloglar). */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--blue-soft); }
::-webkit-scrollbar-thumb { background: var(--blue); border: 2px solid var(--blue-soft); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-dark); }
::-webkit-scrollbar-corner { background: var(--blue-soft); }
@supports (-moz-appearance: none) {
    * { scrollbar-color: var(--blue) var(--blue-soft); }
}
@media (max-width: 720px) {
    /* Dar ekranda alt toplam tek satirlik yatay seride kalir; tablo alani kalan yuksekligi kullanir. */
    .table-wrap:has(+ .movement-totals-wrap),
    .table-wrap:has(+ .stock-movement-totals),
    .table-wrap:has(.invoice-report-totals) { max-height: max(220px, calc(100dvh - 230px)); }
    .table-wrap:has(+ .stock-movement-totals) + .stock-movement-totals { padding: 8px 12px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(118px, max-content); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; }
    .table-wrap:has(+ .stock-movement-totals) + .stock-movement-totals > div { gap: 2px; }
    .table-wrap:has(+ .stock-movement-totals) + .stock-movement-totals strong { white-space: nowrap; overflow-wrap: normal; }
}
/* Depo Yonetimi */
.warehouse-list-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px 0; }
.warehouse-new-button, .warehouse-line-add { min-height: 34px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--customer-blue); border: 1px solid var(--customer-blue); border-radius: 5px; font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.warehouse-new-button:hover, .warehouse-line-add:hover { filter: brightness(1.08); }
.warehouse-line-add { color: var(--customer-blue); background: #fff; }
.warehouse-line-add:hover { color: #fff; background: var(--customer-blue); filter: none; }
.warehouse-badge { display: inline-block; line-height: 1.5; margin-left: 6px; padding: 1px 7px; color: var(--customer-blue); background: #eaf3fc; border: 1px solid #cfe0f0; border-radius: 10px; font-size: 10px; font-weight: 700; vertical-align: middle; }
.warehouse-lines { display: grid; gap: 10px; margin: 6px 0 10px; }
.warehouse-transfer-help { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.warehouse-transfer-panel:has(input[name="transfer_mode"][value="single"]) .warehouse-line { grid-template-columns: minmax(0, 1fr) 150px 140px; }
.warehouse-line { display: grid; grid-template-columns: minmax(0, 1fr) 150px 140px auto; gap: 12px; align-items: end; padding: 10px 12px; background: #f8fbfe; border: 1px solid #d6e3ee; border-radius: 6px; }
.warehouse-line .warehouse-line-stock { min-width: 0; }
.warehouse-line-available { display: grid; gap: 6px; padding-bottom: 8px; }
.warehouse-line-available span { color: var(--muted); font-size: 10px; }
.warehouse-line-available strong { color: var(--blue-dark); font-size: 13px; }
.warehouse-line.is-short { border-color: #e7a7a7; background: #fff6f6; }
.warehouse-line.is-short .warehouse-line-available strong { color: #b42318; }
.warehouse-line-remove { align-self: end; }
.warehouse-line-add { margin-bottom: 4px; }
.warehouse-stock-table td.is-negative { color: #b42318; font-weight: 700; }
.warehouse-zero-toggle { align-self: end; }
.stock-movement-totals.warehouse-stock-totals { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); overflow-x: auto; }
.stock-movement-totals > .warehouse-stock-breakdown { display: contents; }
.stock-movement-totals.warehouse-movement-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stock-movement-totals.warehouse-transfer-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.warehouse-card-lines { width: 100%; }
@media (max-width: 720px) {
    .warehouse-list-actions { padding: 10px 12px 0; }
    .warehouse-new-button, .warehouse-line-add { width: 100%; }
    .warehouse-line { grid-template-columns: 1fr 1fr; }
    .warehouse-transfer-panel:has(input[name="transfer_mode"][value="single"]) .warehouse-line { grid-template-columns: 1fr 1fr; }
    .warehouse-line .warehouse-line-stock { grid-column: 1 / -1; }
    .warehouse-line-remove { grid-column: 1 / -1; width: 100%; }
    .stock-movement-totals.warehouse-transfer-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .table-wrap:has(+ .warehouse-movement-totals) + .warehouse-movement-totals,
    .table-wrap:has(+ .warehouse-stock-totals) + .warehouse-stock-totals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        grid-auto-columns: auto;
        gap: 8px 12px;
        overflow-x: hidden;
    }
    .table-wrap:has(+ .warehouse-movement-totals) + .warehouse-movement-totals strong,
    .table-wrap:has(+ .warehouse-stock-totals) + .warehouse-stock-totals strong {
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .table-wrap:has(+ .warehouse-stock-totals) + .warehouse-stock-totals { row-gap: 4px; }
    .table-wrap:has(+ .warehouse-stock-totals) + .warehouse-stock-totals > div:not(.warehouse-stock-breakdown) { gap: 0; }
    .warehouse-stock-totals span, .warehouse-stock-totals strong { line-height: 1.2; }
    .stock-movement-totals.warehouse-stock-totals > .warehouse-stock-breakdown {
        grid-column: 1 / -1;
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }
    .warehouse-stock-breakdown > div { display: grid; flex: 0 0 124px; gap: 2px; min-width: 0; }
}
/* ============================================================
   E-Belge (E-Dönüşüm Yönetimi)
   ============================================================ */
.ebelge-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ebelge-toolbar form { margin: 0; }
.ebelge-toolbar select { height: 32px; padding: 0 9px; color: var(--ink); background: #fbfcfb; border: 1px solid var(--line); border-radius: 5px; font: inherit; font-size: 12px; }
.ebelge-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ebelge-status--success { color: #166534; background: #dcfce7; }
.ebelge-status--error { color: #991b1b; background: #fee2e2; }
.ebelge-status--pending { color: #815b25; background: #f8ebd5; }
.ebelge-doc-message { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
.ebelge-table td { white-space: nowrap; }
.ebelge-table td.ebelge-cell-title, .ebelge-table td.ebelge-cell-status { white-space: normal; }
.ebelge-doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); }
.ebelge-doc-grid > div { min-width: 0; padding: 14px 18px; display: grid; gap: 6px; align-content: start; border-right: 1px solid var(--line); }
.ebelge-doc-grid > div:last-child { border-right: 0; }
.ebelge-doc-grid span { color: var(--muted); font-size: 10px; }
.ebelge-doc-grid strong { overflow-wrap: anywhere; font-size: 13px; }
.ebelge-panel-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 22px 18px; }
.ebelge-panel-actions form { margin: 0; }
.ebelge-panel-actions .save-product { width: auto; min-width: 170px; min-height: 38px; }
.ebelge-inline-status { align-self: center; font-size: 12px; font-weight: 600; white-space: normal; }
.ebelge-hint { margin: 14px 22px 0; padding: 12px 14px; color: #49617e; background: #edf3fb; border: 1px solid #c8d8ec; border-radius: 6px; font-size: 12px; line-height: 1.55; }
.ebelge-hint a { color: var(--blue); font-weight: 700; }
.ebelge-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 4px 22px 6px; }
.ebelge-settings-grid .form-field { margin: 0; }
.ebelge-settings-grid .form-field select { width: 100%; height: 30px; padding: 0 9px; color: var(--ink); background: #fbfcfb; border: 1px solid var(--line); border-radius: 5px; font: inherit; font-size: 12px; }
.ebelge-settings-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 12px 22px 21px; }
.ebelge-settings-actions form { margin: 0; }
.ebelge-settings-actions .save-product { width: auto; min-width: 180px; min-height: 40px; }
.ebelge-mode-pill { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; vertical-align: middle; }
.ebelge-mode-pill--test { color: #854d0e; background: #fef9c3; }
.ebelge-mode-pill--live { color: #166534; background: #dcfce7; }

@media (max-width: 760px) {
    .ebelge-toolbar { width: 100%; }
    .ebelge-toolbar form, .ebelge-toolbar select { width: 100%; }
    .ebelge-toolbar .row-link, .ebelge-toolbar button { display: inline-flex; justify-content: center; width: 100%; min-height: 40px; padding: 0 12px; align-items: center; border: 1px solid var(--line); border-radius: 5px; }
    .ebelge-table thead { display: none; }
    .ebelge-table, .ebelge-table tbody, .ebelge-table tr, .ebelge-table td { display: block; width: 100%; }
    .ebelge-table tbody tr { padding: 8px 14px; }
    .ebelge-table tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 5px 0; border-top: 0; }
    .ebelge-table tbody td > * { min-width: 0; text-align: right; overflow-wrap: anywhere; }
    .ebelge-table tbody td .invoice-row-actions { justify-content: flex-end; }
    .ebelge-table tbody td .ebelge-status { white-space: normal; }
    .ebelge-table tbody td .ebelge-doc-message { text-align: right; }
    .ebelge-table tbody td::before { content: attr(data-label); flex: 0 0 auto; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .8px; }
    .ebelge-table tbody td.ebelge-cell-actions { display: block; padding-top: 9px; }
    .ebelge-table tbody td.ebelge-cell-actions::before { display: none; }
    .ebelge-table tbody td.empty-cell { display: block; height: auto; padding: 30px 14px; }
    .ebelge-table tbody td.empty-cell::before { display: none; }
    .ebelge-doc-grid { grid-template-columns: 1fr; }
    .ebelge-doc-grid > div { border-right: 0; border-top: 1px solid var(--line); }
    .ebelge-doc-grid > div:first-child { border-top: 0; }
    .ebelge-panel-actions { flex-direction: column; align-items: stretch; padding: 12px 16px 16px; }
    .ebelge-panel-actions .save-product, .ebelge-panel-actions form { width: 100%; }
    .ebelge-hint { margin: 12px 16px 0; }
    .ebelge-settings-grid { grid-template-columns: 1fr; padding: 4px 16px 6px; }
    .ebelge-settings-actions { flex-direction: column; align-items: stretch; padding: 12px 16px 18px; }
    .ebelge-settings-actions .save-product { width: 100%; }
}
/* Genel Bakış günlük araçları (piyasa, takvim-saat, hava durumu) */
.dashboard-widgets { margin-top: 1.25rem; }
.dw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; }
.dw-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; box-shadow: var(--shadow); }
.dw-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.dw-card-head h2 { margin: 0; font-size: 1rem; color: var(--blue-dark); }
.dw-source { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.dw-empty { margin: .5rem 0; color: var(--muted); font-size: .88rem; }
.dw-foot { margin: .75rem 0 0; font-size: .72rem; color: var(--muted); }
.dw-market-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dw-market-list li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.dw-market-list li:last-child { border-bottom: 0; }
.dw-market-label { flex: 1; display: flex; flex-direction: column; }
.dw-market-label strong { font-size: .92rem; color: var(--blue-dark); }
.dw-market-label small { font-size: .74rem; color: var(--muted); }
.dw-market-price { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.dw-market-change { font-size: .74rem; font-weight: 600; padding: .15rem .45rem; border-radius: 999px; white-space: nowrap; }
.dw-market-change.is-up { color: #0f7b3d; background: #e4f6ec; }
.dw-market-change.is-down { color: #b3261e; background: #fdecea; }
.dw-datetime { text-align: center; }
.dw-clock { font-size: 2rem; font-weight: 700; color: var(--blue-dark); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.dw-date { color: var(--muted); font-size: .85rem; margin: .15rem 0 .75rem; text-transform: capitalize; }
.dw-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.dw-cal-head strong { font-size: .88rem; text-transform: capitalize; color: var(--blue-dark); }
.dw-cal-head button { border: 1px solid var(--line); background: var(--blue-soft); color: var(--blue-dark); border-radius: 8px; width: 1.7rem; height: 1.7rem; cursor: pointer; font-size: 1rem; line-height: 1; }
.dw-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: .76rem; }
.dw-cal-dow { color: var(--muted); font-weight: 600; padding: .2rem 0; }
.dw-cal-day { padding: .25rem 0; border-radius: 6px; }
.dw-cal-day.is-today { background: var(--blue); color: #fff; font-weight: 700; }
.dw-city { width: 100%; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: var(--white); margin-bottom: .75rem; }
.dw-weather-main { display: flex; align-items: center; gap: .75rem; }
.dw-weather-icon { font-size: 2.2rem; line-height: 1; }
.dw-weather-main strong { font-size: 1.7rem; color: var(--blue-dark); }
.dw-weather-main span:last-child { color: var(--muted); font-size: .9rem; }
.dw-weather-meta { display: flex; gap: 1rem; margin-top: .6rem; font-size: .78rem; color: var(--muted); }
@media (max-width: 640px) {
    .dw-grid { grid-template-columns: 1fr; }
    .dw-clock { font-size: 1.6rem; }
}
/* Widget kartları kompakt görünüm */
.dw-card { padding: .75rem 1rem; }
.dw-card-head { margin-bottom: .5rem; }
.dw-market-list li { padding: .35rem 0; }
.dw-clock { font-size: 1.5rem; }
.dw-date { margin: .1rem 0 .5rem; font-size: .8rem; }
.dw-cal-head { margin-bottom: .25rem; }
.dw-cal-day { padding: .12rem 0; }
.dw-cal-dow { padding: .1rem 0; }
.dw-city { margin-bottom: .5rem; padding: .45rem .6rem; }
.dw-weather-icon { font-size: 1.7rem; }
.dw-weather-main strong { font-size: 1.35rem; }
.dw-weather-meta { margin-top: .4rem; }
.dw-foot { margin-top: .5rem; }
/* Yönetici kartı renk tonları */
.admin-card--green { border-top-color: #1e9e5a; }
.admin-card--green strong { color: #157347; }
.admin-card--green svg { stroke: #1e9e5a; }
.admin-card--orange { border-top-color: #e08a1e; }
.admin-card--orange strong { color: #b06a0a; }
.admin-card--orange svg { stroke: #e08a1e; }
.admin-card--red { border-top-color: #d64545; }
.admin-card--red strong { color: #b3261e; }
.admin-card--red svg { stroke: #d64545; }
.admin-card--blue { border-top-color: var(--blue); }
.admin-card--blue strong { color: var(--blue-dark); }
.admin-card--blue svg { stroke: var(--blue); }
.admin-card--teal { border-top-color: #1296a0; }
.admin-card--teal strong { color: #0d7377; }
.admin-card--teal svg { stroke: #1296a0; }
/* Yönetici kartı dolgu renkleri */
.admin-card--green { background: linear-gradient(135deg, #e8f7ef, #d3f0e1); border-color: #b7e4cd; }
.admin-card--green strong { color: #157347; }
.admin-card--green span { color: #3d7a5c; }
.admin-card--orange { background: linear-gradient(135deg, #fdf3e3, #fbe7c8); border-color: #f3d5a5; }
.admin-card--orange strong { color: #b06a0a; }
.admin-card--orange span { color: #8a5a1d; }
.admin-card--red { background: linear-gradient(135deg, #fdecec, #fbdada); border-color: #f3bcbc; }
.admin-card--red strong { color: #b3261e; }
.admin-card--red span { color: #8f3a34; }
.admin-card--blue { background: linear-gradient(135deg, #e7f1fb, #d6e7f8); border-color: #b8d4ee; }
.admin-card--blue strong { color: var(--blue-dark); }
.admin-card--blue span { color: #3d6390; }
.admin-card--teal { background: linear-gradient(135deg, #e4f6f7, #d0eef0); border-color: #aee0e3; }
.admin-card--teal strong { color: #0d7377; }
.admin-card--teal span { color: #2d6a6e; }
/* Yönetici kartı yazıları kalın siyah */
.admin-card strong, .admin-card span { color: #111 !important; }
.admin-card strong { font-weight: 800; }
.admin-card span { font-weight: 600; }
/* Yönetici kartı yazıları normal kalınlıkta siyah */
.admin-card strong { font-weight: 600; }
.admin-card span { font-weight: 400; }
/* Filtre çubuğu: butonlar sağa yaslı */
.admin-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.admin-filter-actions { margin-left: auto; display: flex; gap: .5rem; }
.admin-print-button { border: 1px solid var(--blue); background: var(--white); color: var(--blue-dark); border-radius: 10px; padding: .55rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; }
.admin-print-button:hover { background: var(--blue-soft); }

/* A4 yatay yazdırma: yalnızca rapor alanı */
@media print {
    @page { size: A4 landscape; margin: 10mm; }
    body { background: #fff; }
    .module-menu, .sidebar-account, .topbar, .admin-filters, .dashboard-widgets, .admin-note, .page-heading .eyebrow { display: none !important; }
    .admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .admin-card { break-inside: avoid; box-shadow: none; }
}
/* Filtre çubuğu kompakt hizalama */
.admin-filters select { width: auto; min-width: 130px; }
.admin-filters .admin-range { display: flex; align-items: center; gap: .4rem; }
/* Filtre butonları genişlet */
.admin-filter-button, .admin-print-button { padding: .6rem 1.8rem; font-size: .95rem; }
/* Yazdırma rapor başlığı ve tek sayfa düzeni */
.print-report-header { display: none; }
@media print {
    .print-report-header { display: block; text-align: center; margin-bottom: 6mm; border-bottom: 2px solid #17324f; padding-bottom: 3mm; }
    .print-report-header strong { display: block; font-size: 15pt; color: #17324f; }
    .print-report-header span { display: block; font-size: 10pt; margin-top: 1mm; }
    .print-report-header small { display: block; font-size: 8pt; color: #555; margin-top: 1mm; }
    .admin-cards { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .admin-card { padding: 8px 10px; border-radius: 8px; }
    .admin-card strong { font-size: 11pt; }
    .admin-card span { font-size: 8pt; }
    .admin-card svg { width: 26px; height: 20px; }
    .admin-panel { margin: 0; }
}
/* Yazdırmada mavi başlık bandı ve alt bilgi gizle */
@media print {
    .page-heading, footer, .layout > footer { display: none !important; }
    main.layout { padding: 0; }
}
/* Hava durumu 3 günlük tahmin */
.dw-weather-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .75rem; border-top: 1px dashed var(--line); padding-top: .65rem; }
.dw-weather-day { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .78rem; color: var(--muted); }
.dw-weather-day span:first-child { font-weight: 600; color: var(--blue-dark); text-transform: capitalize; }
.dw-weather-day span:nth-child(2) { font-size: 1.15rem; }
/* Mobilde filtre butonları tam genişlik üstte */
@media (max-width: 640px) {
    .admin-filters { flex-direction: column; align-items: stretch; }
    .admin-filters select, .admin-filters .admin-range { width: 100%; }
    .admin-filters .admin-range input { flex: 1; min-width: 0; }
    .admin-filter-actions { margin-left: 0; order: -1; }
    .admin-filter-actions .admin-filter-button, .admin-filter-actions .admin-print-button { flex: 1; }
}
/* Mobilde yatay taşma koruması */
@media (max-width: 900px) {
    html, body { overflow-x: hidden; }
    .module-menu:not([open]) .module-sidebar { display: none; }
}
/* Cari bul butonu ve satır renkleri */
.customer-title-row { display: flex; gap: .5rem; align-items: center; }
.customer-title-row input { flex: 1; }
.customer-data-row td, .balance-data-row td { background: #e3effb; }
.customer-data-row:hover td, .balance-data-row:hover td { background: #d0e4f7; }
/* E-Belge filtre çubuğu */
.ebelge-filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .75rem 1.25rem; border-bottom: 1px solid var(--line); background: #f8fbfe; }
.ebelge-filter-bar input[type="search"], .ebelge-filter-bar input[type="date"], .ebelge-filter-bar select { height: 36px; padding: 0 .65rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .85rem; color: var(--ink); background: var(--white); }
.ebelge-filter-bar input[type="search"] { flex: 1; min-width: 180px; }
.ebelge-filter-bar .save-product { width: auto; min-width: 0; min-height: 36px; padding: 0 1.1rem; font-size: .85rem; }
.ebelge-filter-bar .customer-filter-clear { font-size: .82rem; }
@media (max-width: 640px) {
    .ebelge-filter-bar { flex-direction: column; align-items: stretch; }
    .ebelge-filter-bar input, .ebelge-filter-bar select, .ebelge-filter-bar .save-product { width: 100%; }
}
/* E-Belge tablosu kompakt */
.ebelge-table { font-size: .82rem; }
.ebelge-table th, .ebelge-table td { padding: 6px 8px; }
.ebelge-table td.ebelge-cell-title { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.ebelge-table .invoice-row-actions { flex-wrap: nowrap; gap: 6px; }
.ebelge-table .invoice-row-actions .row-link { white-space: nowrap; font-size: .78rem; }
/* E-Belge kurumsal butonlar */
.ebelge-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 .9rem; border-radius: 8px; font: inherit; font-size: .8rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.ebelge-btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.ebelge-btn--primary:hover { background: var(--blue-dark); }
.ebelge-btn--secondary { background: var(--white); color: var(--blue-dark); border-color: var(--blue); }
.ebelge-btn--secondary:hover { background: var(--blue-soft); }
.ebelge-btn--ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.ebelge-btn--ghost:hover { background: var(--blue-soft); border-color: var(--blue); }
.ebelge-filter-bar .ebelge-btn { min-height: 36px; }
.ebelge-table .invoice-row-actions { align-items: center; }
.ebelge-table .invoice-row-actions form { margin: 0; }
/* Filtre çubuğu tek satır */
.ebelge-filter-bar { flex-wrap: nowrap; }
.ebelge-filter-bar input[type="search"] { flex: 1 1 auto; min-width: 140px; }
.ebelge-filter-bar input[type="date"] { width: 150px; flex: 0 0 auto; }
.ebelge-filter-bar select { width: auto; min-width: 120px; flex: 0 0 auto; }
.ebelge-filter-bar .ebelge-btn { flex: 0 0 auto; }
@media (max-width: 900px) {
    .ebelge-filter-bar { flex-wrap: wrap; }
}
/* İndir menüsü (PDF/XML seçimi) */
.ebelge-download-group { position: relative; display: inline-flex; }
.ebelge-download-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 50; display: flex; flex-direction: column; min-width: 90px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.ebelge-download-menu a { padding: .5rem .9rem; font-size: .8rem; font-weight: 600; color: var(--blue-dark); text-decoration: none; }
.ebelge-download-menu a:hover { background: var(--blue-soft); }
/* İndir menüsü taşma düzeltmesi */
.ebelge-download-menu { position: fixed; }
/* İndir menüsü display tabanlı */
.ebelge-download-menu { position: fixed; display: none; flex-direction: column; }
.ebelge-download-menu[style*="display: flex"] { display: flex !important; }
/* E-Belge ikon butonları */
.ebelge-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--blue); cursor: pointer; text-decoration: none; }
.ebelge-icon-btn:hover { background: var(--blue-soft); border-color: var(--blue); }
.ebelge-icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ebelge-icon-btn--wa { color: #25d366; }
.ebelge-icon-btn--wa:hover { background: #e9f9ef; border-color: #25d366; }
.ebelge-icon-btn--wa svg path:last-child { fill: currentColor; stroke: none; }
.ebelge-icon-btn:disabled { opacity: .5; cursor: wait; }
.ebelge-icon-btn--ok { color: #15803d; }
.ebelge-icon-btn--ok:hover { background: #dcfce7; border-color: #15803d; }
.ebelge-icon-btn--danger { color: #b91c1c; }
.ebelge-icon-btn--danger:hover { background: #fee2e2; border-color: #b91c1c; }
.ebelge-cell-status .ebelge-status { white-space: nowrap; }
/* E-Belge işlem butonları sağa yaslı */
.ebelge-table td.ebelge-cell-actions { text-align: right; width: 1%; white-space: nowrap; }
.ebelge-table td.ebelge-cell-actions .invoice-row-actions { justify-content: flex-end; }.ebelge-table td.ebelge-cell-actions { padding-right: 6px; }