/* Web-only accounting presentation. Production data handlers and the native
   presentation remain in place; every rule is scoped to this web view. */
.app-view-shell[data-web-accounting="true"] {
    --accounting-ink: #183452;
    --accounting-muted: #5c748f;
    --accounting-line: #d6e4f1;
    --accounting-blue: #287cc6;
    --accounting-green: #16835c;
    --accounting-red: #c94c62;
    --accounting-shadow: 0 8px 24px rgba(31, 72, 111, .045);
}


[data-web-accounting="true"] > .max-w-6xl,
[data-web-accounting="true"] > .max-w-4xl {
    max-width: none !important;
    color: var(--accounting-ink);
}

[data-web-accounting="true"] > .max-w-4xl > div:first-child {
    border-color: var(--accounting-line);
    border-radius: 18px;
    box-shadow: var(--accounting-shadow);
}

[data-web-accounting="true"] > .max-w-4xl > div:first-child h2 {
    color: var(--accounting-ink);
    font-size: clamp(21px, 2vw, 27px);
}

[data-web-accounting="true"] .web-accounting-page-header {
    font-family: Inter, system-ui, sans-serif;
}

[data-web-accounting="true"] .web-accounting-page-header * {
    box-sizing: border-box;
    min-width: 0;
}

[data-web-accounting="true"] .web-accounting-heading-copy {
    flex: 1;
}

[data-web-accounting="true"] .web-accounting-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
    margin-left: auto;
}

[data-web-accounting="true"] .web-accounting-header-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 0 16px;
    border: 1px solid #d4e5f2;
    border-radius: 8px;
    background: #fff;
    color: #183a60;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
    box-shadow: var(--accounting-shadow);
}

[data-web-accounting="true"] .web-accounting-header-actions button:last-child {
    border-color: #c9e9d9;
    background: #effaf3;
    color: #138055;
}

[data-web-accounting="true"] .web-accounting-page-header :is(button):focus-visible {
    outline: 3px solid #4a9be9;
    outline-offset: 2px;
}

[data-web-accounting="true"] > .max-w-6xl > div.grid.grid-cols-4 {
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--accounting-line);
    border-radius: 16px;
    box-shadow: var(--accounting-shadow);
}

[data-web-accounting="true"] > .max-w-6xl > div.grid.grid-cols-4 > button {
    min-height: 44px;
    border-radius: 11px;
    font-size: 10px;
    letter-spacing: .045em;
}

[data-web-accounting="true"] > .max-w-6xl > div.grid.grid-cols-4 > button[class*="bg-"],
[data-web-accounting="true"] > .max-w-6xl > div.grid.grid-cols-4 > button[class*="text-white"] {
    background: linear-gradient(135deg, #2b85d5, #216db8) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(31, 109, 185, .21);
}

[data-web-accounting="true"] > .max-w-6xl > section.grid.grid-cols-2 {
    gap: 12px;
}

[data-web-accounting="true"] > .max-w-6xl > section.grid.grid-cols-2 > button {
    min-height: 112px;
    border-color: var(--accounting-line);
    border-radius: 15px;
    padding: 12px 18px;
    box-shadow: var(--accounting-shadow);
}

[data-web-accounting="true"] .web-accounting-kpis > .web-accounting-kpi-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    min-height: 112px;
    padding: 12px 18px;
    border: 1px solid var(--accounting-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--accounting-shadow);
    text-align: left;
}

[data-web-accounting="true"] .web-accounting-kpi-icon {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
}

[data-web-accounting="true"] .web-accounting-kpi-label {
    color: #42617d;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: 0;
}

[data-web-accounting="true"] .web-accounting-kpi-value {
    color: var(--accounting-ink);
    font-size: clamp(17px, 1.45vw, 21px);
    font-weight: 850;
    line-height: 1.15;
    white-space: nowrap;
}

[data-web-accounting="true"] .web-accounting-kpi-value-blue { color: #1672d8; }
[data-web-accounting="true"] .web-accounting-kpi-value-green { color: #12945e; }
[data-web-accounting="true"] .web-accounting-kpi-value-red { color: #e0233c; }

[data-web-accounting="true"] > .max-w-6xl > section.grid.grid-cols-2 > button:hover,
[data-web-accounting="true"] > .max-w-6xl > section.grid.grid-cols-2 > button:focus-visible {
    border-color: #a6c9e7;
    transform: translateY(-2px);
}

[data-web-accounting="true"] > .max-w-6xl > button:has(.fa-user-check) {
    border-radius: 16px;
    border-color: #ecd8ac;
    box-shadow: var(--accounting-shadow);
}

[data-web-accounting="true"] > .max-w-6xl > section.grid.gap-3 > div,
[data-web-accounting="true"] > .max-w-6xl > section:has(> div > h3) {
    border-color: var(--accounting-line);
    border-radius: 17px;
    box-shadow: var(--accounting-shadow);
}

[data-web-accounting="true"] > .max-w-6xl > section.grid.gap-3 h3,
[data-web-accounting="true"] > .max-w-6xl > section:has(> div > h3) h3 {
    color: var(--accounting-ink);
    font-size: 15px;
}

[data-web-accounting="true"] > .max-w-6xl > section.grid.gap-3 > div:first-child button {
    min-height: 73px;
    border-color: var(--accounting-line);
    border-radius: 13px;
    font-size: 11px;
    background: #f6faff;
}

[data-web-accounting="true"] > .max-w-6xl > section.grid.gap-3 > div:first-child button:nth-child(2) {
    border-color: #c9ebdb;
    background: #f0fbf5;
}

[data-web-accounting="true"] > .max-w-6xl > section.grid.gap-3 > div:first-child button:nth-child(3) {
    border-color: #ded4f4;
    background: #f8f5ff;
}

[data-web-accounting="true"] > .max-w-6xl > section.grid.gap-3 > div:first-child button:nth-child(4) {
    border-color: #f1d2db;
    background: #fff5f7;
}

[data-web-accounting="true"] > .max-w-6xl > section.grid.gap-3 > div:first-child button:hover {
    border-color: #8dbbe2;
}

[data-web-accounting="true"] > .max-w-6xl > section.grid.gap-3 .web-accounting-quick-action {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 10px;
    align-items: center;
    gap: 12px;
    min-height: 69px;
    padding: 10px 13px;
    border: 1px solid #d4e5f4;
    border-radius: 12px;
    background: #f4f9ff;
    text-align: left;
}

[data-web-accounting="true"] > .max-w-6xl > section.grid.gap-3 .web-accounting-quick-action-collection {
    border-color: #cbe9dc;
    background: #f2fcf7;
}

[data-web-accounting="true"] > .max-w-6xl > section.grid.gap-3 .web-accounting-quick-action-income {
    border-color: #ded6f2;
    background: #f8f6ff;
}

[data-web-accounting="true"] > .max-w-6xl > section.grid.gap-3 .web-accounting-quick-action-expense {
    border-color: #f3d3dc;
    background: #fff6f8;
}

[data-web-accounting="true"] .web-accounting-quick-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #e3f0ff;
    color: #2576c2;
    font-size: 16px;
}

[data-web-accounting="true"] .web-accounting-quick-action-collection .web-accounting-quick-icon { background: #ddf5e9; color: #198760; }
[data-web-accounting="true"] .web-accounting-quick-action-income .web-accounting-quick-icon { background: #eae4ff; color: #7254bf; }
[data-web-accounting="true"] .web-accounting-quick-action-expense .web-accounting-quick-icon { background: #fde5eb; color: #c34b66; }
[data-web-accounting="true"] .web-accounting-quick-copy { min-width: 0; }
[data-web-accounting="true"] .web-accounting-quick-copy strong { display: block; color: var(--accounting-ink); font-size: 12px; font-weight: 800; }
[data-web-accounting="true"] .web-accounting-quick-copy small { display: block; margin-top: 3px; color: var(--accounting-muted); font-size: 10px; }
[data-web-accounting="true"] .web-accounting-quick-arrow { color: #6f91b0; font-size: 10px; }

[data-web-accounting="true"] .web-accounting-direct-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--accounting-line);
    border-radius: 10px;
    background: #f9fcff;
    color: #45627f;
    font-size: 10px;
    font-weight: 750;
    text-align: left;
}

[data-web-accounting="true"] .web-accounting-direct-summary strong { display: flex; gap: 8px; margin-left: auto; white-space: nowrap; }
[data-web-accounting="true"] .web-accounting-direct-summary strong span:first-child { color: var(--accounting-green); }
[data-web-accounting="true"] .web-accounting-direct-summary strong span:last-child { color: var(--accounting-red); }
[data-web-accounting="true"] .web-accounting-direct-summary > i { color: #92a8bd; font-size: 9px; }

[data-web-accounting="true"] > .max-w-6xl > section > div.space-y-2 {
    overflow: hidden;
    border: 1px solid var(--accounting-line);
    border-radius: 16px;
    background: white;
    box-shadow: var(--accounting-shadow);
}

[data-web-accounting="true"] > .max-w-6xl > section > div.space-y-2 > article {
    margin: 0;
    border: 0;
    border-bottom: 1px solid #eaf0f6;
    border-radius: 0;
    padding: 14px 17px;
    box-shadow: none;
}

[data-web-accounting="true"] > .max-w-6xl > section > div.space-y-2 > article:last-child {
    border-bottom: 0;
}

[data-web-accounting="true"] > .max-w-6xl > section > div.space-y-2 > article:hover {
    background: #f8fbff;
}

[data-web-accounting="true"] .web-accounting-recent-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--accounting-line);
    border-radius: 13px;
    background: white;
    box-shadow: var(--accounting-shadow);
}

[data-web-accounting="true"] .web-accounting-recent-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: left;
}

[data-web-accounting="true"] .web-accounting-recent-table th {
    padding: 11px 13px;
    border-bottom: 1px solid var(--accounting-line);
    background: #f4f9fd;
    color: #6b839c;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

[data-web-accounting="true"] .web-accounting-recent-table td {
    padding: 11px 13px;
    border-bottom: 1px solid #e8f0f7;
    color: #48627d;
    font-size: 10px;
    font-weight: 650;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

[data-web-accounting="true"] .web-accounting-recent-table tr:last-child td { border-bottom: 0; }
[data-web-accounting="true"] .web-accounting-recent-table tbody tr:hover { background: #f8fbff; }
[data-web-accounting="true"] .web-accounting-recent-table th:nth-child(1) { width: 100px; }
[data-web-accounting="true"] .web-accounting-recent-table th:nth-child(2) { width: 120px; }
[data-web-accounting="true"] .web-accounting-recent-table th:nth-child(3) { width: 20%; }
[data-web-accounting="true"] .web-accounting-recent-table th:nth-child(5) { width: 125px; text-align: right; }
[data-web-accounting="true"] .web-accounting-recent-table th:nth-child(6) { width: 250px; }
[data-web-accounting="true"] .web-accounting-recent-table td:nth-child(5) { color: var(--accounting-ink); font-size: 11px; font-weight: 850; text-align: right; white-space: nowrap; }
[data-web-accounting="true"] .web-accounting-recent-table td:nth-child(5).positive { color: var(--accounting-green); }
[data-web-accounting="true"] .web-accounting-recent-table td:nth-child(5).negative { color: var(--accounting-red); }
[data-web-accounting="true"] .web-accounting-recent-table td strong { display: block; color: var(--accounting-ink); font-size: 11px; font-weight: 800; }
[data-web-accounting="true"] .web-accounting-recent-table td small { display: block; margin-top: 3px; color: #8195aa; font-size: 9px; }
[data-web-accounting="true"] .web-accounting-recent-type { display: inline; padding: 0; border: 0; border-radius: 0; background: none !important; font-size: 11px; font-weight: 750; white-space: nowrap; }
[data-web-accounting="true"] .web-accounting-recent-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
[data-web-accounting="true"] .web-accounting-recent-actions button { padding: 5px 7px; border: 1px solid #d7e7f5; border-radius: 7px; background: #f3f9ff; color: #276eaa; font-size: 9px; font-weight: 800; white-space: nowrap; }
[data-web-accounting="true"] .web-accounting-recent-actions button.invoice-done { border-color: #ccebd9; background: #effaf3; color: #208059; }
[data-web-accounting="true"] .web-accounting-recent-actions button.invoice-pending,
[data-web-accounting="true"] .web-accounting-recent-actions button.void { border-color: #f2d6dc; background: #fff6f8; color: #b7495f; }
[data-web-accounting="true"] .web-accounting-recent-actions button:disabled { opacity: .5; }

[data-web-accounting="true"] > .max-w-6xl > section.space-y-3 > div.rounded-\[24px\],
[data-web-accounting="true"] > .max-w-6xl > section.space-y-3 > div.overflow-hidden,
[data-web-accounting="true"] > .max-w-6xl > section.space-y-3 > button {
    border-color: var(--accounting-line);
    box-shadow: var(--accounting-shadow);
}

[data-web-accounting="true"] > .max-w-6xl > section:has(input[placeholder^="Cari, şube"]) > div.grid > button {
    min-height: 82px;
    padding: 15px 18px;
    border-color: var(--accounting-line);
    border-radius: 14px;
    box-shadow: var(--accounting-shadow);
    transition: border-color .16s, background .16s, transform .16s;
}

[data-web-accounting="true"] > .max-w-6xl > section:has(input[placeholder^="Cari, şube"]) > div.grid > button:hover {
    border-color: #8dbbe2;
    background: #f8fbff;
    transform: translateY(-1px);
}

[data-web-accounting="true"] > .max-w-6xl > section.space-y-3 > div > div > button,
[data-web-accounting="true"] > .max-w-6xl > section.space-y-3 > div > button {
    transition: border-color .16s, background .16s, transform .16s;
}

[data-web-accounting="true"] > .max-w-6xl > section.space-y-3 input:focus-visible,
[data-web-accounting="true"] > .max-w-6xl > section.space-y-3 select:focus-visible,
[data-web-accounting="true"] > .max-w-6xl button:focus-visible,
[data-web-accounting="true"] > .max-w-6xl a:focus-visible {
    outline: 3px solid #80c4f3;
    outline-offset: 2px;
}

[data-web-accounting="true"] > .max-w-6xl > section.space-y-3 input {
    border-color: #d4e2ee;
}

[data-web-accounting="true"] > .max-w-6xl > section.space-y-3 input:focus {
    border-color: var(--accounting-blue);
}

/* The desktop account workspace is genuinely master-detail. The shared
   component still owns selection, Firestore subscriptions and every handler. */
[data-web-accounting="true"] .web-accounting-workspace {
    display: grid;
    grid-template-columns: minmax(340px, .38fr) minmax(0, .62fr);
    gap: 14px;
    align-items: start;
    min-height: 690px;
}

[data-web-accounting="true"] .web-accounting-master,
[data-web-accounting="true"] .web-accounting-detail {
    min-width: 0;
    border: 1px solid var(--accounting-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--accounting-shadow);
}

[data-web-accounting="true"] .web-accounting-master {
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    height: min(76vh, 880px);
    min-height: 630px;
    overflow: hidden;
}

[data-web-accounting="true"] .web-accounting-master-head,
[data-web-accounting="true"] .web-accounting-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
}

[data-web-accounting="true"] .web-accounting-master h3,
[data-web-accounting="true"] .web-accounting-detail h3 {
    color: var(--accounting-ink);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
}

[data-web-accounting="true"] .web-accounting-master-head p {
    margin-top: 4px;
    color: var(--accounting-muted);
    font-size: 11px;
    line-height: 1.4;
}

[data-web-accounting="true"] .web-accounting-primary {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--accounting-blue);
    color: white;
    font-size: 10px;
    font-weight: 800;
}

[data-web-accounting="true"] .web-accounting-search-container {
    min-width: 0;
    padding: 0 20px 12px;
}

[data-web-accounting="true"] .web-accounting-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid #d3e2ef;
    border-radius: 11px;
    color: #738ca4;
}

[data-web-accounting="true"] .web-accounting-search:focus-within {
    border-color: var(--accounting-blue);
    box-shadow: 0 0 0 3px #2182d226;
}

[data-web-accounting="true"] .web-accounting-search input {
    width: 100%;
    height: 42px;
    min-width: 0;
    border: 0 !important;
    background: transparent;
    color: var(--accounting-ink);
    font-size: 12px;
    outline: 0;
}

[data-web-accounting="true"] .web-accounting-filter-container {
    min-width: 0;
    min-height: 49px;
    padding: 0 20px 13px;
}

[data-web-accounting="true"] .web-accounting-filters {
    display: flex;
    gap: 6px;
    min-height: 36px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 2px;
    scrollbar-width: thin;
}

[data-web-accounting="true"] .web-accounting-filters button {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #dce8f3;
    border-radius: 9px;
    color: #516c86;
    font-size: 10px;
    font-weight: 750;
}

[data-web-accounting="true"] .web-accounting-filters button[aria-pressed="true"] {
    border-color: var(--accounting-blue);
    background: var(--accounting-blue);
    color: white;
}

[data-web-accounting="true"] .web-accounting-filters span {
    font-size: 9px;
    opacity: .7;
}

[data-web-accounting="true"] .web-accounting-list-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 8px 20px;
    border-block: 1px solid #edf2f7;
    background: #f8fbfe;
    color: var(--accounting-muted);
    font-size: 10px;
    font-weight: 700;
}

[data-web-accounting="true"] .web-accounting-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #afc6d9 transparent;
}

[data-web-accounting="true"] .web-accounting-list-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) minmax(76px, auto) 9px;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 62px;
    padding: 9px 18px;
    border-bottom: 1px solid #eaf0f6;
    text-align: left;
}

[data-web-accounting="true"] .web-accounting-list-row:hover {
    background: #f3f9ff;
}

[data-web-accounting="true"] .web-accounting-list-row.is-selected {
    background: #eaf5ff;
}

[data-web-accounting="true"] .web-accounting-list-row.is-selected {
    box-shadow: inset 3px 0 var(--accounting-blue);
}

[data-web-accounting="true"] .web-accounting-list-icon,
[data-web-accounting="true"] .web-accounting-detail-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #e8f3fd;
    color: #227ac2;
}

[data-web-accounting="true"] .web-accounting-list-copy { min-width: 0; }
[data-web-accounting="true"] .web-accounting-list-copy strong,
[data-web-accounting="true"] .web-accounting-list-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-web-accounting="true"] .web-accounting-list-copy strong { color: var(--accounting-ink); font-size: 12px; font-weight: 800; }
[data-web-accounting="true"] .web-accounting-list-copy small { margin-top: 3px; color: var(--accounting-muted); font-size: 10px; }
[data-web-accounting="true"] .web-accounting-list-balance { color: #637a93; font-size: 11px; font-weight: 800; white-space: nowrap; text-align: right; }
[data-web-accounting="true"] .web-accounting-list-balance.positive { color: var(--accounting-green); }
[data-web-accounting="true"] .web-accounting-list-balance.negative { color: var(--accounting-red); }
[data-web-accounting="true"] .web-accounting-list-arrow { color: #9bb0c3; font-size: 9px; }
[data-web-accounting="true"] .web-accounting-price-link { display: flex; align-items: center; gap: 9px; width: 100%; padding: 14px 18px; border-top: 1px solid var(--accounting-line); color: #1e7060; font-size: 11px; font-weight: 800; text-align: left; }
[data-web-accounting="true"] .web-accounting-price-link .fa-arrow-right { margin-left: auto; }
[data-web-accounting="true"] .web-accounting-empty { padding: 26px 18px; color: var(--accounting-muted); font-size: 12px; text-align: center; }

[data-web-accounting="true"] .web-accounting-detail { overflow: hidden; min-height: 630px; }
[data-web-accounting="true"] .web-accounting-detail-empty { display: grid; place-content: center; justify-items: center; min-height: 540px; padding: 35px; text-align: center; }
[data-web-accounting="true"] .web-accounting-detail-empty > i { display: grid; place-items: center; width: 65px; height: 65px; margin-bottom: 18px; border-radius: 18px; background: #e7f3fe; color: #237aca; font-size: 26px; }
[data-web-accounting="true"] .web-accounting-detail-empty p { max-width: 280px; margin-top: 7px; color: var(--accounting-muted); font-size: 12px; line-height: 1.5; }
[data-web-accounting="true"] .web-accounting-mobile-back { display: none; }
[data-web-accounting="true"] .web-accounting-detail-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
[data-web-accounting="true"] .web-accounting-detail-avatar { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 15px; font-size: 22px; }
[data-web-accounting="true"] .web-accounting-detail-identity h3 { overflow-wrap: anywhere; }
[data-web-accounting="true"] .web-accounting-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
[data-web-accounting="true"] .web-accounting-tags span { padding: 4px 7px; border-radius: 6px; background: #eaf5ef; color: #1b805b; font-size: 9px; font-weight: 800; }
[data-web-accounting="true"] .web-accounting-tags span + span { background: #eef4fb; color: #47708f; }
[data-web-accounting="true"] .web-accounting-balance { flex: 0 0 auto; min-width: 155px; padding: 11px 16px; border-radius: 12px; background: #eaf8f1; color: var(--accounting-green); text-align: right; }
[data-web-accounting="true"] .web-accounting-balance.negative { background: #fff0f2; color: var(--accounting-red); }
[data-web-accounting="true"] .web-accounting-balance small { display: block; margin-bottom: 3px; color: #637f73; font-size: 9px; font-weight: 750; text-transform: uppercase; }
[data-web-accounting="true"] .web-accounting-balance strong { font-size: 20px; font-weight: 850; white-space: nowrap; }
[data-web-accounting="true"] .web-accounting-detail-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 0 18px 16px; padding: 12px 0; border-block: 1px solid var(--accounting-line); }
[data-web-accounting="true"] .web-accounting-detail-facts > div { min-width: 0; padding-inline: 12px; border-right: 1px solid var(--accounting-line); }
[data-web-accounting="true"] .web-accounting-detail-facts > div:first-child { padding-left: 0; }
[data-web-accounting="true"] .web-accounting-detail-facts > div:last-child { border-right: 0; }
[data-web-accounting="true"] .web-accounting-detail-facts small { display: block; margin-bottom: 4px; color: var(--accounting-muted); font-size: 9px; }
[data-web-accounting="true"] .web-accounting-detail-facts strong { color: var(--accounting-ink); font-size: 11px; font-weight: 750; overflow-wrap: anywhere; }
[data-web-accounting="true"] .web-accounting-detail-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 18px 14px; }
[data-web-accounting="true"] .web-accounting-detail-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 11px; border: 1px solid #d2e1ef; border-radius: 10px; color: #264b6a; font-size: 10px; font-weight: 800; }
[data-web-accounting="true"] .web-accounting-detail-actions button.primary { border-color: var(--accounting-blue); background: var(--accounting-blue); color: white; }
[data-web-accounting="true"] .web-accounting-detail-actions button.green { border-color: #bfe5d2; background: #edfbf3; color: var(--accounting-green); }
[data-web-accounting="true"] .web-accounting-detail-actions button.danger { border-color: #f2cbd1; background: #fff5f5; color: #bb394c; }
[data-web-accounting="true"] .web-accounting-unbilled { display: flex; align-items: center; gap: 8px; width: calc(100% - 36px); margin: 0 18px 14px; padding: 10px 13px; border: 1px solid #f1d3d9; border-radius: 10px; background: #fff7f8; color: #a7394b; font-size: 10px; font-weight: 800; text-align: left; }
[data-web-accounting="true"] .web-accounting-unbilled strong { margin-left: auto; }
[data-web-accounting="true"] .web-accounting-detail-tabs { display: flex; gap: 3px; overflow-x: auto; padding: 0 18px; border-bottom: 1px solid var(--accounting-line); }
[data-web-accounting="true"] .web-accounting-detail-tabs button { flex: 0 0 auto; min-height: 43px; padding: 0 12px; border-bottom: 3px solid transparent; color: #69819a; font-size: 11px; font-weight: 800; }
[data-web-accounting="true"] .web-accounting-detail-tabs button[aria-selected="true"] { border-color: var(--accounting-blue); color: #186fbb; }
[data-web-accounting="true"] .web-accounting-detail-body { padding: 18px; }
[data-web-accounting="true"] .web-accounting-detail-body > div.space-y-2 { overflow: hidden; border: 1px solid var(--accounting-line); border-radius: 12px; }
[data-web-accounting="true"] .web-accounting-detail-body > div.space-y-2 > article { margin: 0; border: 0; border-bottom: 1px solid #e9f0f6; border-radius: 0; box-shadow: none; }
[data-web-accounting="true"] .web-accounting-detail-body > div.space-y-2 > article:last-child { border-bottom: 0; }
[data-web-accounting="true"] .web-accounting-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
[data-web-accounting="true"] .web-accounting-section-head h4 { color: var(--accounting-ink); font-size: 14px; font-weight: 800; }
[data-web-accounting="true"] .web-accounting-section-head span { color: var(--accounting-muted); font-size: 10px; }
[data-web-accounting="true"] .web-accounting-branch-list,
[data-web-accounting="true"] .web-accounting-receipt-list { display: grid; gap: 7px; }
[data-web-accounting="true"] .web-accounting-branch-list button,
[data-web-accounting="true"] .web-accounting-receipt-list > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 10px 13px; border: 1px solid var(--accounting-line); border-radius: 10px; font-size: 11px; text-align: left; }
[data-web-accounting="true"] .web-accounting-branch-list button.is-selected { border-color: #80bae5; background: #eff8ff; }
[data-web-accounting="true"] .web-accounting-branch-list span { color: var(--accounting-green); font-weight: 800; }
[data-web-accounting="true"] .web-accounting-receipt-list button { color: #176eb7; font-weight: 800; }
[data-web-accounting="true"] .web-accounting-info { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
[data-web-accounting="true"] .web-accounting-info > div { padding: 11px; border: 1px solid var(--accounting-line); border-radius: 10px; }
[data-web-accounting="true"] .web-accounting-info dt { color: var(--accounting-muted); font-size: 10px; }
[data-web-accounting="true"] .web-accounting-info dd { margin-top: 5px; color: var(--accounting-ink); font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }

/* Existing save, validation, account/branch selection and PDF callbacks stay
   inside AccountingDashboard; only the web dialog structure is presented anew. */
[data-web-accounting="true"] .web-accounting-movement-form {
    max-width: 760px;
    padding: 0 !important;
    border: 1px solid #cee0ef;
    border-radius: 19px;
    background: #f8fbfe;
}

[data-web-accounting="true"] .web-accounting-movement-form > div:first-child {
    position: sticky;
    z-index: 12;
    top: 0;
    align-items: center;
    margin: 0;
    padding: 20px 24px;
    border-bottom: 1px solid var(--accounting-line);
    background: #fff;
}

[data-web-accounting="true"] .web-accounting-movement-form > div:first-child h3 {
    color: var(--accounting-ink);
    font-size: 22px;
}

[data-web-accounting="true"] .web-accounting-movement-form > div.mt-5 {
    margin: 18px 24px;
}

[data-web-accounting="true"] .web-accounting-movement-types {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 9px;
}

[data-web-accounting="true"] .web-accounting-movement-types > button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 9px;
    min-height: 82px;
    padding: 13px;
    border-radius: 12px;
    text-align: left;
    font-size: 10px;
    line-height: 1.25;
}

[data-web-accounting="true"] .web-accounting-movement-types > button i {
    font-size: 18px;
}

[data-web-accounting="true"] .web-accounting-movement-types > button[class*="bg-white"] {
    background: white;
}

[data-web-accounting="true"] .web-accounting-movement-types > button[class*="text-white"] {
    border-color: var(--accounting-blue) !important;
    background: var(--accounting-blue) !important;
}

[data-web-accounting="true"] .web-accounting-movement-form label > span:first-child {
    color: #526f8a;
    font-size: 10px;
    letter-spacing: .07em;
}

[data-web-accounting="true"] .web-accounting-movement-form :is(input,select,textarea) {
    border-color: #cddfec;
    border-radius: 10px;
    background: white;
}

[data-web-accounting="true"] .web-accounting-movement-form > div:last-child {
    position: sticky;
    z-index: 10;
    bottom: 0;
    margin: 0;
    padding: 14px 24px;
    border-top: 1px solid var(--accounting-line);
    background: white;
}

[data-web-accounting="true"] .web-accounting-movement-form > div:last-child button[type="submit"] {
    background: var(--accounting-blue);
}

[data-web-accounting="true"] .web-accounting-account-form {
    max-width: 820px;
    border: 1px solid #cddfec;
    border-radius: 19px;
    background: #f3f8fc;
}

[data-web-accounting="true"] .web-accounting-account-form > header {
    border-color: var(--accounting-line);
    padding: 22px 28px;
    background: #fff;
}

[data-web-accounting="true"] .web-accounting-account-form > header h3 {
    color: var(--accounting-ink);
}

[data-web-accounting="true"] .web-accounting-account-form > div.space-y-6 {
    padding: 24px 28px;
}

[data-web-accounting="true"] .web-accounting-account-form > div.space-y-6 > section {
    border: 1px solid var(--accounting-line);
    border-radius: 15px;
    background: white;
    padding: 18px;
}

[data-web-accounting="true"] .web-accounting-account-form > div.space-y-6 > section button[class*="min-h-\[78px\]"] {
    min-height: 90px;
    border-radius: 13px;
}

[data-web-accounting="true"] .web-accounting-account-form :is(input,select,textarea) {
    border-color: #cddfec;
}

[data-web-accounting="true"] .web-accounting-statement {
    max-width: 1430px;
    border: 1px solid #cddfec;
    border-radius: 18px;
    background: #f4f9fd;
}

[data-web-accounting="true"] .web-accounting-statement > div:first-child {
    border-color: var(--accounting-line);
    padding: 20px 25px;
    background: white;
}

[data-web-accounting="true"] .web-accounting-statement > div:first-child h3 {
    color: var(--accounting-ink);
    font-size: 22px;
}

[data-web-accounting="true"] .web-accounting-statement > div:last-child button:last-child {
    background: var(--accounting-blue);
}

[data-web-accounting="true"] .web-accounting-receipts {
    overflow: hidden;
    border: 1px solid var(--accounting-line);
    border-radius: 17px;
    background: white;
    box-shadow: var(--accounting-shadow);
}

[data-web-accounting="true"] .web-accounting-receipts-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--accounting-line);
}

[data-web-accounting="true"] .web-accounting-receipts-head h3 {
    color: var(--accounting-ink);
    font-size: 18px;
    font-weight: 800;
}

[data-web-accounting="true"] .web-accounting-receipts-head p {
    margin-top: 4px;
    color: var(--accounting-muted);
    font-size: 11px;
}

[data-web-accounting="true"] .web-accounting-receipts-head button {
    flex: 0 0 auto;
    min-height: 39px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--accounting-blue);
    color: white;
    font-size: 10px;
    font-weight: 800;
}

[data-web-accounting="true"] .web-accounting-receipts-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
}

[data-web-accounting="true"] .web-accounting-receipts-toolbar label {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 auto;
    max-width: 530px;
    padding: 0 12px;
    border: 1px solid var(--accounting-line);
    border-radius: 10px;
    color: #7a92a9;
}

[data-web-accounting="true"] .web-accounting-receipts-toolbar input {
    width: 100%;
    min-width: 0;
    height: 39px;
    border: 0;
    outline: 0;
    color: var(--accounting-ink);
    font-size: 12px;
}

[data-web-accounting="true"] .web-accounting-receipts-toolbar > span {
    margin-left: auto;
    color: var(--accounting-muted);
    font-size: 10px;
    font-weight: 750;
}

[data-web-accounting="true"] .web-accounting-receipts-scroll {
    overflow-x: auto;
}

[data-web-accounting="true"] .web-accounting-receipts table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    text-align: left;
}

[data-web-accounting="true"] .web-accounting-receipts th {
    padding: 11px 16px;
    background: #f3f8fc;
    color: #657f98;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

[data-web-accounting="true"] .web-accounting-receipts td {
    padding: 12px 16px;
    border-top: 1px solid #eaf0f6;
    color: var(--accounting-ink);
    font-size: 11px;
}

[data-web-accounting="true"] .web-accounting-receipts td strong,
[data-web-accounting="true"] .web-accounting-receipts td small {
    display: block;
}

[data-web-accounting="true"] .web-accounting-receipts td small {
    margin-top: 3px;
    color: var(--accounting-muted);
}

[data-web-accounting="true"] .web-accounting-receipt-amount {
    color: var(--accounting-green) !important;
    font-weight: 800;
    white-space: nowrap;
}

[data-web-accounting="true"] .web-accounting-receipt-actions {
    display: flex;
    gap: 4px;
}

[data-web-accounting="true"] .web-accounting-receipt-actions button {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid var(--accounting-line);
    border-radius: 7px;
    color: #2474b7;
}

[data-web-accounting="true"] .web-accounting-receipt-actions button:hover {
    background: #eaf5ff;
}

[data-web-accounting="true"] .web-accounting-receipt-actions button.danger {
    border-color: #f3d4da;
    color: var(--accounting-red);
}

[data-web-accounting="true"] .web-accounting-receipt-actions button:disabled {
    opacity: .45;
}

@media (min-width: 1280px) {
    [data-web-accounting="true"] > .max-w-6xl > section.grid.grid-cols-2 {
        grid-template-columns: repeat(6,minmax(0,1fr));
    }
}

@media (max-width: 900px) {
    [data-web-accounting="true"] .web-accounting-workspace {
        grid-template-columns: minmax(255px, .43fr) minmax(0, .57fr);
        gap: 9px;
    }
    [data-web-accounting="true"] .web-accounting-detail-head {
        flex-wrap: wrap;
    }
    [data-web-accounting="true"] .web-accounting-detail-facts {
        grid-template-columns: repeat(2,minmax(0,1fr));
        row-gap: 10px;
    }
    [data-web-accounting="true"] .web-accounting-detail-facts > div:nth-child(2) {
        border-right: 0;
    }
    [data-web-accounting="true"] .web-accounting-page-header .web-history-heading {
        flex-wrap: wrap;
    }
    [data-web-accounting="true"] .web-accounting-header-actions {
        flex-basis: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
    [data-web-accounting="true"] > .max-w-6xl > section.grid.grid-cols-2 > button {
        min-height: 110px;
    }
}

@media (max-width: 640px) {
    [data-web-accounting="true"] .web-accounting-workspace {
        display: block;
    }
    [data-web-accounting="true"] .web-accounting-master {
        height: min(73vh, 700px);
        min-height: 450px;
    }
    [data-web-accounting="true"] .web-accounting-workspace.has-selection .web-accounting-master,
    [data-web-accounting="true"] .web-accounting-workspace:not(.has-selection) .web-accounting-detail {
        display: none;
    }
    [data-web-accounting="true"] .web-accounting-mobile-back {
        display: block;
        flex-basis: 100%;
        margin-bottom: 5px;
        color: #2379c3;
        font-size: 11px;
        font-weight: 800;
        text-align: left;
    }
    [data-web-accounting="true"] .web-accounting-detail-facts {
        margin-inline: 13px;
    }
    [data-web-accounting="true"] .web-accounting-detail-actions,
    [data-web-accounting="true"] .web-accounting-detail-tabs {
        margin-inline: 13px;
    }
    [data-web-accounting="true"] .web-accounting-detail-actions button {
        flex: 1 1 43%;
    }
    [data-web-accounting="true"] .web-accounting-balance {
        min-width: 130px;
    }
    [data-web-accounting="true"] .web-accounting-balance strong {
        font-size: 16px;
    }
    [data-web-accounting="true"] .web-accounting-info {
        grid-template-columns: 1fr;
    }
    [data-web-accounting="true"] .web-accounting-header-actions button {
        flex: 1;
        padding-inline: 8px;
    }
    [data-web-accounting="true"] > .max-w-6xl > div.grid.grid-cols-4 > button {
        font-size: 8px;
        letter-spacing: 0;
    }
    [data-web-accounting="true"] > .max-w-6xl > section.grid.grid-cols-2 > button {
        padding: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-web-accounting="true"] > .max-w-6xl > section.grid.grid-cols-2 > button,
    [data-web-accounting="true"] > .max-w-6xl > section:has(input[placeholder^="Cari, şube"]) > div.grid > button {
        transition: none;
    }
}

/* Common production shell and breadcrumb own all outer positioning. */
[data-web-accounting="true"] .web-history-heading { display:flex; align-items:center; gap:15px; margin-bottom:15px; }
[data-web-accounting="true"] .web-history-heading-icon { display:grid; place-items:center; flex:none; width:56px; height:56px; border-radius:13px; background:#e4f1ff; color:#1466d8; font-size:24px; }
[data-web-accounting="true"] .web-history-heading h1 { color:#142b4b; font-size:27px; font-weight:750; line-height:1.15; }
[data-web-accounting="true"] .web-history-heading p { margin-top:4px; color:#71839f; font-size:12px; }
@media(max-width:699px){[data-web-accounting="true"] .web-history-heading{flex-wrap:wrap;}[data-web-accounting="true"] .web-history-heading h1{font-size:23px;}[data-web-accounting="true"] .web-history-heading-icon{width:46px;height:46px;font-size:20px;}}
