:root {
  color-scheme: dark;
  --bg: #080d17;
  --side: #0b1422;
  --surface: #101a2a;
  --surface-raised: #142035;
  --border: #26364f;
  --muted: #899bb5;
  --text: #eaf1ff;
  --accent: #4f8cff;
  --accent-light: #8cc6ff;
  --violet: #ab9eff;
  --red: #ff8291;
  --amber: #e8bd78;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 246px; flex: 0 0 246px; min-height: 100vh; height: 100vh; position: sticky; top: 0; z-index: 20; display: flex; flex-direction: column; padding: 30px 16px 20px; background: linear-gradient(180deg, #0d1728, var(--side)); border-right: 1px solid #1e3049; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 13px; white-space: nowrap; font-size: 21px; font-weight: 800; letter-spacing: -1.2px; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #74b4ff, #407eff); color: #061225; box-shadow: 0 8px 25px #4f8cff35; font-size: 22px; letter-spacing: -2px; }
.brand-mark span, .auth-logo span { color: #123c78; }
.brand-light { color: #aebdd2; font-weight: 400; }
.brand small { display: block; margin-top: 2px; color: #6781a3; font-size: 8px; font-weight: 800; letter-spacing: 2.5px; }
.sidebar-label { margin: 57px 13px 15px; color: #597291; font-size: 10px; font-weight: 800; letter-spacing: 2.2px; }
.nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 10px; color: #91a1b8; font-weight: 650; transition: background .2s, color .2s; }
.nav-link:hover { color: #fff; background: #1b2a40; }
.nav-link.active { color: #b8d9ff; background: #4f8cff1f; box-shadow: inset 2px 0 var(--accent); }
.nav-icon { width: 21px; display: inline-flex; justify-content: center; color: #7b91af; font-size: 20px; line-height: 1; }
.nav-link.active .nav-icon { color: var(--accent-light); }
.sidebar-bottom { margin-top: auto; padding: 20px 5px 0; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 37px; height: 37px; border-radius: 11px; background: #203759; color: var(--accent-light); display: grid; place-items: center; font-weight: 800; }
.user-name { flex: 1; min-width: 0; }
.user-name strong, .user-name small { display: block; overflow: hidden; text-overflow: ellipsis; }
.user-name small { color: #7188a5; font-size: 11px; margin-top: 2px; }
.logout-button { border: 0; background: none; color: #8197b4; font-size: 25px; padding: 4px 7px; }
.logout-button:hover { color: var(--accent-light); }
.workspace { flex: 1; min-width: 0; }
.main-content { max-width: 1500px; padding: 40px 42px 55px; margin: auto; }
.mobile-header { display: none; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.eyebrow, .panel-kicker, .auth-eyebrow { color: #91a9ce; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 13px #4f8cffaa; }
.page-heading h1 { margin: 10px 0 8px; font-size: clamp(29px, 3vw, 39px); line-height: 1.1; letter-spacing: -1.8px; }
.heading-dot { color: var(--accent); }
.page-heading p { margin: 0; color: var(--muted); }
.heading-actions { display: flex; align-items: center; gap: 12px; }
.date-chip { border: 1px solid var(--border); border-radius: 9px; color: #a7b8d1; padding: 10px 13px; font-size: 12px; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; font-weight: 750; white-space: nowrap; transition: background .2s, color .2s, transform .2s, border-color .2s; }
.button-primary { color: #fff; background: linear-gradient(135deg, #5b9bff, #3e74e9); box-shadow: 0 8px 22px #3269db31; }
.button-primary:hover { transform: translateY(-1px); background: linear-gradient(135deg, #77aeff, #568afa); }
.button-secondary { color: #c2d0e2; border-color: var(--border); background: var(--surface); }
.button-secondary:hover, .button-ghost:hover { border-color: #5c81b9; color: #fff; }
.button-ghost { color: #9fadc0; background: transparent; }
.button-danger { color: #210f16; background: var(--red); }
.button-danger:hover { background: #ffa0aa; }

.period-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 0 0 21px; }
.period-label { margin-right: 12px; color: #7186a4; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; }
.period-tab { padding: 8px 15px; border: 1px solid transparent; border-radius: 8px; color: #91a3bb; font-size: 12px; font-weight: 700; }
.period-tab:hover { color: #fff; }
.period-tab.selected { border-color: #436799; color: #b8d9ff; background: #4f8cff20; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.stat-card { min-width: 0; min-height: 162px; padding: 18px 19px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.main-stat { background: linear-gradient(140deg, #1a3153, #142740 64%, #112138); border-color: #355b91; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #a9b9d0; font-size: 10px; font-weight: 800; letter-spacing: 1.1px; }
.stat-icon { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 7px; background: #4f8cff25; color: var(--accent-light); font-size: 16px; }
.stat-icon.violet { background: #ab9eff22; color: var(--violet); }
.stat-icon.amber { background: #e8bd7822; color: var(--amber); }
.stat-value { margin: 17px 0 14px; white-space: nowrap; font-size: clamp(18px, 1.8vw, 27px); font-weight: 780; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.stat-value small { color: #96abc7; font-size: 14px; font-weight: 500; }
.stat-value.negative, .text-red, .capital-change.negative { color: var(--red) !important; }
.stat-bottom { color: #8499b5; font-size: 11px; line-height: 1.4; }
.text-blue { color: var(--accent-light) !important; }
.balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.balance-grid .stat-value { font-size: clamp(24px, 3vw, 32px); }

.panel { min-width: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-header h2 { margin: 6px 0 0; font-size: 18px; letter-spacing: -.45px; }
.summary-panel { margin-top: 16px; padding: 21px 22px; }
.summary-table { margin-top: 17px; }
.summary-table th[scope=row] { color: #ecf3ff; font-size: 13px; letter-spacing: 0; text-transform: none; }
.summary-table th[scope=row] small { display: block; margin-top: 3px; color: #758ba9; font-size: 10px; }
.charts-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; margin-top: 16px; }
.chart-panel { padding: 21px 22px 15px; }
.legend { display: flex; align-items: center; gap: 16px; color: #aabbd2; font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.legend-dot.blue { background: var(--accent); }
.legend-dot.violet { background: var(--violet); }
.mini-badge, .count-badge { padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; color: #a5b7cf; font-size: 11px; }
.chart { height: 254px; min-width: 0; margin-top: 13px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: #2d3e58; stroke-width: 1; }
.chart .axis-label { fill: #8197b4; font: 10px Inter, sans-serif; }
.chart .bar-revenue { fill: #5b9bff; }
.chart .bar-profit { fill: #ac9eff; }
.chart .bar-loss { fill: #ff8291; }
.chart .line-profit { stroke: #ab9eff; stroke-width: 2.7; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-capital { stroke: #68b9ff; stroke-width: 2.8; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-area { fill: url(#profitFill); }
.chart .capital-area { fill: url(#capitalFill); }
.chart .line-point { fill: #ab9eff; stroke: #15243a; stroke-width: 2; }
.chart .capital-point { fill: #68b9ff; stroke: #15243a; stroke-width: 2; }
.chart .zero-line { stroke: #7d91aa; stroke-dasharray: 3 4; }
.chart .empty-text { fill: #8296b2; font-size: 13px; text-anchor: middle; }
.chart [data-tooltip] { cursor: help; }
.chart [data-tooltip]:focus-visible { outline: none; filter: drop-shadow(0 0 5px #9fc8ff); }
.chart rect[data-tooltip]:focus-visible { stroke: #9fc8ff; stroke-width: 1; }
.capital-panel { padding: 21px 22px 16px; margin-top: 16px; }
.capital-panel-actions { display: flex; align-items: center; gap: 17px; }
.capital-change { color: var(--accent-light); font-weight: 800; font-size: 13px; white-space: nowrap; }
.capital-chart { height: 225px; }
.chart-note { margin: 2px 0 0; color: #8094b0; font-size: 11px; line-height: 1.5; }

.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; margin-top: 16px; }
.detail-grid > .panel { padding: 21px 22px; }
.text-link { color: var(--accent-light); font-size: 12px; font-weight: 750; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 15px; text-align: left; white-space: nowrap; font-size: 12px; }
.data-table th { padding: 11px 10px 12px; border-bottom: 1px solid var(--border); color: #7e94b3; font-size: 10px; font-weight: 800; letter-spacing: 1.1px; }
.data-table td { padding: 13px 10px; border-bottom: 1px solid #223149; color: #ccd8e9; font-variant-numeric: tabular-nums; }
.data-table tr:last-child td, .data-table tr:last-child th[scope=row] { border-bottom: 0; }
.data-table th:first-child, .data-table td:first-child { padding-left: 0; }
.data-table th:last-child, .data-table td:last-child { padding-right: 0; }
.summary-table th[scope=row] { padding: 13px 10px 13px 0; border-bottom: 1px solid #223149; }
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: #1b2c46aa; }
.product-name { color: #edf3ff; font-weight: 700; }
.subtle { display: block; margin-top: 3px; color: #788da9; font-size: 10px; }
.stock-pill { padding: 5px 7px; border-radius: 5px; background: #24426a; color: #a9d4ff; font-size: 10px; font-weight: 700; }
.stock-pill.stock-low { background: #52313f; color: #ffadb6; }
.tooltip-trigger { cursor: help; border-bottom: 1px dotted #6888b5; }
.stock-pill.tooltip-trigger { border-bottom: 0; }
.tooltip-trigger:focus-visible { border-radius: 3px; }
.empty-cell { padding: 42px 10px !important; color: #8b9fb9 !important; text-align: center !important; }
.empty-cell a { color: var(--accent-light); }
.breakdown { margin-top: 28px; }
.breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #26364e; color: #98a9bf; }
.breakdown strong { color: #dde8f8; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown .breakdown-total { border-bottom: 0; margin-top: 7px; color: #eff5ff; font-weight: 800; }
.breakdown-total strong { font-size: 18px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.quick-links a { padding: 8px 10px; border: 1px solid #395374; border-radius: 7px; color: #a9ceff; font-size: 11px; font-weight: 700; }
.quick-links a:hover { border-color: var(--accent); color: #d2e7ff; }
.accounting-note { margin: 18px 2px 0; color: #7287a3; font-size: 11px; line-height: 1.6; }

.messages { display: grid; gap: 8px; margin-bottom: 20px; }
.message { padding: 11px 14px; border: 1px solid #416ba2; border-radius: 8px; background: #1b3353; color: #c9e1ff; }
.message.error { border-color: #81505c; background: #3d2531; color: #ffb4bf; }
.tip-card { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; padding: 13px 16px; border: 1px solid #375a88; border-radius: 10px; background: #172942; color: #b5cce9; font-size: 12px; }
.tip-icon { color: var(--accent-light); font-size: 18px; }
.list-panel { padding: 21px 23px; }
.list-table { margin-top: 21px; }
.list-table td { padding: 16px 10px; }
.table-actions { display: flex; gap: 14px; }
.table-actions a { color: var(--accent-light); font-weight: 700; }
.table-actions a.delete-link { color: #ef9ba7; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 17px; border-top: 1px solid var(--border); color: #8499b5; font-size: 12px; }
.pagination div { display: flex; gap: 8px; }
.pagination a { padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--accent-light); }
.pagination a:hover { border-color: var(--accent); }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; align-items: start; max-width: 1100px; }
.form-panel { padding: 24px; }
.record-form { margin-top: 23px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; color: #c6d4e7; font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 43px; padding: 11px 12px; border: 1px solid #334968; border-radius: 8px; outline: none; background: #0a1321; color: #edf4ff; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #4f8cff21; }
.field select option { background: #111d30; }
.field-help, .field-error { display: block; margin-top: 6px; font-size: 11px; line-height: 1.45; }
.field-help { color: #8296b2; }
.field-error { color: var(--red); }
.form-error { margin: 10px 0; padding: 12px; border-radius: 8px; background: #402733; color: #ffc1ca; }
.form-error ul { margin: 0; padding-left: 17px; }
.form-actions { display: flex; align-items: center; gap: 8px; margin-top: 28px; padding-top: 21px; border-top: 1px solid var(--border); }
.form-aside { padding: 22px; border: 1px solid var(--border); border-radius: 13px; background: #111e30; }
.aside-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #4f8cff25; color: var(--accent-light); font-size: 20px; }
.form-aside h3 { margin: 20px 0 9px; font-size: 15px; }
.form-aside p { margin: 0; color: #96a9c1; font-size: 12px; line-height: 1.65; }
.form-aside a { display: inline-block; margin-top: 17px; color: var(--accent-light); font-size: 12px; font-weight: 700; }
.confirm-panel { max-width: 550px; padding: 42px; text-align: center; }
.danger-icon { width: 55px; height: 55px; display: grid; place-items: center; margin: auto; border-radius: 15px; background: #ff829125; color: var(--red); font-size: 33px; }
.confirm-panel h2 { margin: 22px 0 8px; font-size: 23px; }
.confirm-panel p { color: #9eb0c7; }
.confirm-panel form { display: flex; justify-content: center; gap: 10px; margin-top: 25px; }

.auth-body { background: #080d17; }
.auth-shell { display: grid; grid-template-columns: 42% 58%; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 50px 65px; border-right: 1px solid #314a70; background: radial-gradient(circle at 65% 70%, #3d74cb33, transparent 42%), linear-gradient(155deg, #152b4d, #0d1c33 62%, #102544); }
.auth-art::after { content: ""; position: absolute; right: -150px; bottom: -190px; width: 480px; height: 480px; border: 1px solid #85baff30; border-radius: 50%; box-shadow: 0 0 0 60px #85baff08, 0 0 0 130px #85baff07; }
.auth-logo { width: 57px; height: 57px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(145deg, #74b4ff, #407eff); color: #061225; font-size: 35px; font-weight: 850; letter-spacing: -4px; line-height: 1; }
.auth-art p { position: relative; z-index: 1; margin: auto 0 20px; font-size: clamp(36px, 4vw, 57px); font-weight: 330; line-height: 1.08; letter-spacing: -2.4px; }
.auth-art p strong { color: #8cc6ff; font-weight: 770; }
.auth-art small { position: relative; z-index: 1; margin-top: auto; color: #81a4d0; font-size: 10px; font-weight: 800; letter-spacing: 2.7px; }
.auth-bars { position: relative; z-index: 1; display: flex; align-items: end; gap: 13px; height: 130px; margin-bottom: 70px; opacity: .85; }
.auth-bars i { width: 36px; border-radius: 5px 5px 0 0; background: linear-gradient(#8cc6ff, #345a9a); }
.auth-bars i:nth-child(1) { height: 43px; } .auth-bars i:nth-child(2) { height: 75px; } .auth-bars i:nth-child(3) { height: 54px; } .auth-bars i:nth-child(4) { height: 98px; } .auth-bars i:nth-child(5) { height: 80px; } .auth-bars i:nth-child(6) { height: 117px; } .auth-bars i:nth-child(7) { height: 108px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 45px 25px; }
.auth-card { width: 100%; max-width: 410px; }
.auth-eyebrow { color: var(--accent-light); }
.auth-card h1 { margin: 13px 0 8px; font-size: 40px; letter-spacing: -1.8px; }
.muted { color: #94a7c0; line-height: 1.5; }
.auth-form { display: grid; gap: 18px; margin-top: 35px; }
.button-wide { width: 100%; justify-content: space-between; margin-top: 8px; padding: 13px 17px; }
.auth-switch { margin-top: 26px; color: #91a4bd; font-size: 12px; text-align: center; }
.auth-switch a { color: var(--accent-light); font-weight: 800; }
.auth-footnote { margin-top: 24px; color: #6d819e; font-size: 11px; text-align: center; }

.ui-tooltip { position: fixed; z-index: 100; max-width: min(300px, calc(100vw - 24px)); padding: 10px 12px; border: 1px solid #5484c3; border-radius: 9px; background: #1b2b43; box-shadow: 0 12px 34px #000a; color: #edf5ff; font-size: 12px; line-height: 1.45; pointer-events: none; }
.ui-tooltip[hidden] { display: none; }
.reveal { animation: reveal-up .42s both; }
.stats-grid .reveal:nth-child(2) { animation-delay: .06s; }
.stats-grid .reveal:nth-child(3) { animation-delay: .12s; }
.stats-grid .reveal:nth-child(4) { animation-delay: .18s; }
.stats-grid .reveal:nth-child(5) { animation-delay: .24s; }
.data-table tbody tr { animation: reveal-up .35s both; }
.data-table tbody tr:nth-child(2) { animation-delay: .04s; }
.data-table tbody tr:nth-child(3) { animation-delay: .08s; }
.data-table tbody tr:nth-child(4) { animation-delay: .12s; }
.data-table tbody tr:nth-child(5) { animation-delay: .16s; }
.data-table tbody tr:nth-child(n+6) { animation-delay: .2s; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1320px) { .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .main-content { padding: 32px 28px; } }
@media (max-width: 900px) {
  .sidebar { position: fixed; left: -260px; box-shadow: 20px 0 50px #0008; transition: left .25s; }
  .sidebar.open { left: 0; }
  .mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 22px; border-bottom: 1px solid var(--border); background: var(--side); }
  .mobile-header .brand { padding: 0; font-size: 19px; }
  .mobile-header .brand-mark { width: 33px; height: 33px; }
  .menu-toggle { padding: 3px 11px; border: 1px solid var(--border); border-radius: 8px; background: #182841; color: #fff; font-size: 19px; }
  .charts-grid, .detail-grid { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 600px) {
  .main-content { padding: 25px 16px 50px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; justify-content: space-between; }
  .date-chip { font-size: 11px; }
  .stat-card { min-height: 145px; padding: 15px; }
  .stat-value { font-size: 22px; white-space: normal; overflow-wrap: anywhere; }
  .stat-top { font-size: 9px; }
  .summary-panel, .chart-panel, .capital-panel, .detail-grid > .panel, .list-panel, .form-panel { padding: 18px 15px; }
  .legend { gap: 7px; font-size: 10px; }
  .chart { height: 220px; }
  .capital-panel-actions { flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .auth-panel { padding: 36px 20px; }
  .auth-card h1 { font-size: 35px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid .stat-card:last-child { grid-column: 1 / -1; }
  .balance-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: clamp(17px, 5vw, 23px); }
  .stats-grid .stat-card:last-child .stat-value { font-size: 26px; }
  .capital-panel .panel-header { align-items: flex-start; flex-direction: column; }
  .capital-panel-actions { align-items: flex-start; justify-content: flex-start; }
  .summary-table thead, .detail-grid > .panel:first-child .data-table thead { display: none; }
  .summary-table, .summary-table tbody, .detail-grid > .panel:first-child .data-table, .detail-grid > .panel:first-child .data-table tbody { display: block; width: 100%; min-width: 0; }
  .summary-table tbody tr, .detail-grid > .panel:first-child .data-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
  .summary-table tbody tr:last-child, .detail-grid > .panel:first-child .data-table tbody tr:last-child { border-bottom: 0; }
  .summary-table th[scope=row], .detail-grid > .panel:first-child .data-table td:first-child { grid-column: 1 / -1; padding: 0; border: 0; }
  .summary-table td, .detail-grid > .panel:first-child .data-table td { padding: 0; border: 0; white-space: normal; }
  .summary-table td:last-child, .detail-grid > .panel:first-child .data-table td:last-child { grid-column: 1 / -1; }
  .summary-table td::before, .detail-grid > .panel:first-child .data-table td:not(:first-child)::before { display: block; margin-bottom: 5px; color: #8198b8; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
  .summary-table td:nth-of-type(1)::before { content: 'SATILAN ADET'; }
  .summary-table td:nth-of-type(2)::before { content: 'CİRO'; }
  .summary-table td:nth-of-type(3)::before { content: 'NET KÂR / ZARAR'; }
  .detail-grid > .panel:first-child .data-table td:nth-child(2)::before { content: 'STOK'; }
  .detail-grid > .panel:first-child .data-table td:nth-child(3)::before { content: 'CİRO'; }
  .detail-grid > .panel:first-child .data-table td:nth-child(4)::before { content: 'KÂR / ZARAR'; }
  .pagination { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
