:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#163c5b;background:#f3f7fb;font-synthesis:none;--brand-blue:#014b8a;--muted:#647b8e;--line:#dfe9f1}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button,a,input,select{ -webkit-tap-highlight-color:transparent}
button{cursor:pointer;border:1px solid var(--line);border-radius:9px;padding:10px 15px;background:white;color:inherit;font-weight:600}
button:hover{background:#eaf7f8}
button.primary{background:var(--brand-blue);border-color:var(--brand-blue);color:white}
button.danger{color:#b3443a}
button:disabled{opacity:.5;cursor:wait}
a{color:inherit;text-decoration:none}
input,select,textarea{width:100%;padding:12px;border:1px solid #cbdce8;border-radius:8px;background:white;color:#163c5b}
input:focus,select:focus,textarea:focus{outline:2px solid #01b9ba;outline-offset:2px}
label{display:grid;gap:7px;font-size:13px;font-weight:600}
h1,h2,h3,p{margin-top:0}
h1{font-size:29px;letter-spacing:-1px;margin-bottom:8px}
h2{font-size:18px}
small,.muted{color:var(--muted)}
.shell{display:grid;grid-template-columns:235px 1fr;min-height:100vh}
.sidebar{background:#07365e;color:#e0edf7;padding:30px 18px;display:flex;flex-direction:column;gap:25px;position:sticky;top:0;height:100vh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.brand{font-size:23px;font-weight:750;letter-spacing:-1px;display:flex;align-items:center;gap:10px}
.sidebar .brand{padding:16px 10px;background:#fff;border-radius:12px}
.nav-label{font-size:10px;letter-spacing:2px;opacity:.55;margin:0 12px 12px}
.sidebar nav{display:grid;gap:4px}
.sidebar nav a{padding:11px 13px;border-radius:8px;font-size:14px;display:flex;gap:13px}
.sidebar nav a.active{background:#015582;color:#fff}
.sidebar nav a:hover{background:#124970}
.sidebar footer{margin-top:auto;padding:15px 12px;border-top:1px solid #ffffff20;font-size:12px;line-height:1.8}
.workspace{min-width:0}
.topbar{height:77px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;font-size:13px}
.topbar .account{display:flex;align-items:center;gap:12px}
.topbar-right{display:flex;align-items:center;gap:18px}
.exchange-rates{display:grid;grid-template-columns:auto auto;gap:2px 16px;align-items:center;font-variant-numeric:tabular-nums}
.exchange-rates div{display:flex;gap:7px;align-items:baseline;font-size:12px}
.exchange-rates div strong{color:var(--muted);font-size:10px}
.exchange-rates small{grid-column:1/-1;text-align:right;font-size:10px}
.currency-picker{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;white-space:nowrap}
.currency-picker select{width:auto;padding:7px 9px;font-size:12px}
.avatar{background:#e2f4f5;padding:10px;border-radius:50%;font-weight:700}
.content{padding:36px 38px;max-width:1600px;margin:auto}
.heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:27px}
.eyebrow{color:var(--brand-blue);font-size:11px;letter-spacing:1.6px;font-weight:700;margin-bottom:12px}
.heading p{color:var(--muted);font-size:14px;margin:0}
.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:25px}
.card,.panel{background:white;border:1px solid var(--line);border-radius:13px;padding:23px}
.card small{display:block;margin-bottom:20px}
.card strong{display:block;font-size:27px;letter-spacing:-.8px}
.card em{display:block;font-style:normal;font-size:12px;color:var(--muted);margin-top:13px}
.card.highlight{background:#e2f7f7;border-color:#b8e6e9}
button.card{text-align:left;font-weight:inherit;min-width:0}
button.card:hover{border-color:#006b83;background:#f0f8fa}
button.card:focus-visible,.summary-link:focus-visible{outline:2px solid #006b83;outline-offset:3px}
.summary-link{padding:0;border:0;background:none;font:inherit;color:inherit;text-align:left}
.summary-link:hover{text-decoration:underline}
.grid{display:grid;grid-template-columns:1.6fr 1fr;gap:23px}
.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.panel-head h2{margin:0}
.table-wrap{overflow:auto}
table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap}
th{text-align:left;font-weight:500;font-size:11px;letter-spacing:.3px;color:var(--muted);padding:14px 12px;background:#f3f8fc}
td{padding:16px 12px;border-bottom:1px solid #e8eff5}
tbody tr:last-child td{border-bottom:0}
td button{font-size:11px;padding:6px 10px;margin-right:6px}
.badge{background:#e0f5f5;color:#006b75;padding:5px 9px;border-radius:6px;font-size:11px}
.badge.warn{background:#fff0db;color:#986329}
.empty{text-align:center;padding:45px 20px;color:var(--muted);line-height:1.8}
.toolbar{display:flex;gap:12px;margin-bottom:20px;align-items:end}
.toolbar input[type=search]{max-width:350px}
.toolbar label{max-width:200px}
.loading{padding:60px;text-align:center}
.error{color:#ae3f34;background:#fff0ec;padding:13px;border-radius:8px;line-height:1.5}
.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}
.auth-art{background:#07365e;color:white;padding:65px;display:flex;flex-direction:column;justify-content:space-between}
.auth-art h1{font-size:48px;max-width:500px;line-height:1.15}
.auth-art p{color:#bddbe9;max-width:430px;line-height:1.8}
.art-cards{display:flex;gap:14px;margin:35px 0}
.art-cards div{border:1px solid #ffffff25;border-radius:13px;padding:22px;flex:1}
.art-cards strong{display:block;margin:12px 0;font-size:23px}
.auth-form{display:flex;align-items:center;justify-content:center;padding:45px}
.auth-box{width:100%;max-width:400px}
.auth-box h1{font-size:30px}
.auth-box form{display:grid;gap:19px;margin-top:27px}
.auth-links{display:flex;justify-content:center;gap:8px;margin-top:20px}
.auth-links button{border:0;font-size:12px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.form-grid .wide{grid-column:1/-1}
dialog{border:0;border-radius:16px;width:min(780px,94vw);max-height:90vh;padding:28px;color:#163c5b;box-shadow:0 25px 90px #102b3e35}
dialog::backdrop{background:#102c3866;backdrop-filter:blur(3px)}
.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}
.dialog-head h2{margin:0}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}
.lines{display:grid;gap:12px;margin:20px 0}
.line{display:grid;grid-template-columns:2fr .7fr 1fr auto;gap:8px;align-items:end}
.total{text-align:right;font-size:22px;font-weight:700;margin:20px 0}
.quick{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.quick a{padding:20px;border:1px solid var(--line);border-radius:10px;font-size:14px}
.quick a:hover{background:#eaf7fb}
.meter-row{margin:22px 0}
.meter-row div{display:flex;justify-content:space-between;font-size:13px;margin-bottom:9px}
.meter{height:8px;background:#e4f1f7;border-radius:20px;overflow:hidden}
.meter i{display:block;height:100%;background:#01b9ba;border-radius:20px}
#toast{position:fixed;bottom:25px;right:25px;z-index:5;background:#014b8a;color:white;border-radius:10px;padding:15px 22px;box-shadow:0 8px 30px #0002;max-width:90vw}
#toast:empty{display:none}
.profile{max-width:650px}
.profile form{display:grid;gap:17px;margin-top:25px}
.mobile-menu,.topbar-brand{display:none}
@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}
.grid{grid-template-columns:1fr}
.content{padding:26px}
.topbar{padding:0 26px}
.topbar-right{gap:12px}
}
@media(max-width:750px){.shell{grid-template-columns:1fr}
.sidebar{position:fixed;top:0;left:0;bottom:0;z-index:40;width:min(290px,84vw);height:100dvh;padding:20px 16px;gap:16px;transform:translateX(-105%);transition:transform .22s ease;box-shadow:0 0 40px #0c2a4030;visibility:hidden}
.shell.nav-open .sidebar{transform:none;visibility:visible}
.shell.nav-open::after{content:'';position:fixed;inset:0;z-index:30;background:#102c3866}
body:has(.shell.nav-open){overflow:hidden}
.sidebar nav{grid-template-columns:1fr;gap:2px}
.sidebar nav a{font-size:15px;padding:12px 13px}
.sidebar footer{display:none}
.topbar{position:sticky;top:0;z-index:20;height:auto;padding:8px 12px;display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"menu brand account" "rates rates currency";gap:6px 10px;align-items:center}
.topbar-right{display:contents}
.mobile-menu{grid-area:menu;display:inline-grid;place-items:center;width:42px;height:42px;padding:0;font-size:20px;line-height:1}
.topbar-brand{grid-area:brand;display:block;width:128px;max-width:100%}
.topbar .account{grid-area:account}
.exchange-rates{grid-area:rates;display:flex;flex-wrap:wrap;gap:2px 12px;padding-top:6px;border-top:1px solid var(--line)}
.exchange-rates small{text-align:left}
.currency-picker{grid-area:currency;padding-top:6px;border-top:1px solid var(--line)}
.exchange-rates{gap:1px 8px}
.exchange-rates div{font-size:11px}
.exchange-rates small{font-size:9px}
.currency-picker{gap:4px;font-size:10px}
.currency-picker select{padding:6px;font-size:11px}
.topbar .account{gap:6px}
.topbar .account strong{display:none}
.topbar .account button{padding:7px 9px;font-size:11px}
.content{padding:23px 16px}
.heading{align-items:start;flex-direction:column}
.cards{gap:10px}
.card{padding:17px}
.card strong{font-size:23px}
.panel{padding:16px}
.auth{grid-template-columns:1fr}
.auth-art{display:none}
.auth-form{padding:30px 22px}
.toolbar{flex-wrap:wrap}
.form-grid{grid-template-columns:1fr}
.line{grid-template-columns:1fr 1fr}
.line label:first-child{grid-column:1/-1}
.topbar>span{display:none}
}
@media print{.sidebar,.topbar,.actions,.toolbar,button,#toast{display:none!important}
.shell{display:block}
.content{padding:0}
.panel,.card{break-inside:avoid}
.cards{grid-template-columns:repeat(4,1fr)}
}


/* Original logo files retain their transparent margins; only the display is framed. */
.logo-window { display:block; position:relative; width:100%; aspect-ratio:1894 / 345; overflow:hidden; }

.logo-window img { position:absolute; width:105.5966%; max-width:none; height:auto; left:-3.3791%; top:-66.3768%; }

.auth-art > .brand { width:310px; max-width:100%; padding:22px 18px; background:white; border-radius:14px; }

.app-icon { display:block; position:relative; width:45px; aspect-ratio:630 / 666; overflow:hidden; margin-bottom:24px; }

.app-icon img { position:absolute; width:199.0476%; height:auto; max-width:none; left:-49.6825%; top:-44.1441%; }

.sidebar nav a.active { box-shadow:inset 3px 0 #01b9ba; }

.auth-art { background:linear-gradient(145deg,#014b8a 0%,#07365e 62%,#006a79 100%); }

.auth-art small { color:#bddbe9; }

button.primary:hover { background:#006279; border-color:#006279; }

@media(max-width:750px) { .sidebar .brand { width:200px; }
 }

/* Logos sit directly on light page surfaces, without separate white badges. */
.sidebar { background:#f7fbfe; color:#163c5b; border-right:1px solid var(--line); }
.sidebar .brand { background:transparent; border-radius:0; padding:6px 0 20px; }
.sidebar nav a.active { background:#e0f3f7; color:#014b8a; }
.sidebar nav a:hover { background:#eaf2f8; }
.sidebar footer { border-color:var(--line); }
.auth-caption { font-size:12px; letter-spacing:2px; }
.auth-logo { width:260px; max-width:100%; margin-bottom:26px; }
.back-home { display:block; font-size:13px; color:var(--muted); margin-bottom:38px; }
.landing { background:#fff; }
.site-header,.site-footer { max-width:1240px; margin:auto; padding:30px 32px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.site-header .brand,.site-footer .brand { width:210px; flex-shrink:0; }
.site-header nav { display:flex; align-items:center; gap:32px; font-size:14px; }
.site-login { border:1px solid #bed4e6; border-radius:8px; padding:12px 20px; color:#014b8a; font-weight:600; }
.hero { max-width:1240px; margin:auto; padding:70px 32px 85px; display:grid; grid-template-columns:1.2fr 1fr; gap:65px; align-items:center; }
.hero h1 { font-size:clamp(38px,4vw,58px); line-height:1.12; letter-spacing:-2px; margin:22px 0; }
.hero h1 span { color:#008d99; }
.hero-description { max-width:520px; font-size:17px; color:#647b8e; line-height:1.8; }
.hero-actions { display:flex; align-items:center; flex-wrap:wrap; gap:22px; margin:30px 0 16px; }
.cta { display:inline-flex; justify-content:space-between; gap:28px; background:#014b8a; color:white; border-radius:9px; padding:16px 24px; font-size:14px; font-weight:600; }
.cta:hover { background:#006279; }
.text-link { font-size:14px; color:#014b8a; }
.trial-note { font-size:13px; color:#647b8e; }
.trial-note span { color:#008d99; margin-right:7px; }
.platforms { display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; }
.platforms span { font-size:12px; color:#47677f; border:1px solid #dbe7f0; padding:9px 13px; border-radius:6px; }
.hero-visual { background:#f2f9fc; border:1px solid #dcecf4; border-radius:24px; padding:28px; box-shadow:0 25px 65px #014b8a0d; transform:rotate(-2deg); }
.visual-top { display:flex; gap:14px; align-items:center; border-bottom:1px solid #dce8ef; padding-bottom:23px; }
.visual-top .app-icon { width:30px; flex-shrink:0; margin:0; }
.visual-top strong { font-size:14px; display:block; }
.visual-top small { display:block; font-size:11px; margin-top:5px; }
.live-dot { width:8px; height:8px; background:#01b9ba; border-radius:50%; margin-left:auto; }
.visual-title { font-size:23px; font-weight:650; margin:28px 0 20px; }
.feature-tiles { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.feature-tiles > div { background:white; padding:21px 16px; border:1px solid #e0ecf3; border-radius:12px; }
.feature-tiles span { font-size:23px; color:#009ba5; display:block; margin-bottom:20px; }
.feature-tiles strong,.feature-tiles small { display:block; }
.feature-tiles small { font-size:11px; margin-top:7px; }
.visual-bottom { display:grid; gap:6px; font-size:12px; margin-top:23px; color:#647b8e; }
.visual-bottom strong { color:#014b8a; }
.features-section { background:#f5f9fc; padding:75px max(32px,calc((100% - 1176px)/2)); scroll-margin-top:20px; }
.section-intro { max-width:590px; }
.landing h2 { font-size:36px; line-height:1.2; letter-spacing:-1px; margin-bottom:20px; }
.section-intro>p:last-child,.mobile-section p,.marketing-cards p { color:#647b8e; line-height:1.8; }
.marketing-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; margin-top:42px; }
.marketing-cards article { border-top:2px solid #b9e5ea; padding-top:24px; }
.feature-number { color:#00818d; font-size:11px; letter-spacing:1px; }
.marketing-cards h3 { font-size:20px; margin:20px 0 12px; }
.marketing-cards p { font-size:14px; }
.mobile-section { max-width:1240px; margin:auto; padding:80px 32px; display:grid; grid-template-columns:1fr 1fr; gap:100px; align-items:center; }
.trial-panel { background:#eaf8f9; border-radius:18px; padding:35px; }
.trial-days { font-size:70px; font-weight:750; color:#014b8a; letter-spacing:-3px; }
.trial-days small { font-size:21px; letter-spacing:0; color:#008d99; }
.trial-panel h3 { font-size:26px; margin:12px 0; }
.site-footer { border-top:1px solid #e0eaf1; font-size:13px; }
.site-footer .brand { width:170px; }
.site-footer p { margin:0; color:#647b8e; }
@media(max-width:900px) { .hero { gap:30px; }.mobile-section { gap:40px; }.site-header nav { gap:18px; } }
@media(max-width:750px) { .site-header,.site-footer { padding:24px 20px; }.site-header .brand { width:170px; }.site-header nav>a:not(.site-login) { display:none; }.site-login { padding:10px 14px; }.hero { grid-template-columns:1fr; padding:38px 22px 55px; gap:45px; }.hero h1 { font-size:42px; }.hero-visual { transform:none; padding:22px; }.features-section { padding:50px 22px; }.marketing-cards { grid-template-columns:1fr; gap:18px; }.landing h2 { font-size:30px; }.mobile-section { grid-template-columns:1fr; padding:50px 22px; gap:28px; }.site-footer { flex-wrap:wrap; }.auth-logo { width:240px; } }
@media(prefers-reduced-motion:no-preference) { html { scroll-behavior:smooth; } }
.password-rules { font-size:12px; line-height:1.6; color:var(--muted); margin: -8px 0 0; }
.verification-email { display:grid; gap:8px; overflow-wrap:anywhere; padding:14px 0; }
.password-feedback { margin-top:-5px; font-size:12px; }
.strength-heading { display:flex; justify-content:space-between; gap:12px; margin-bottom:9px; }
.strength-track { height:7px; background:#e7edf2; border-radius:10px; overflow:hidden; }
.strength-track>span { display:block; height:100%; background:#bb3e43; transition:width .2s,background-color .2s; }
.strength-track[data-level="2"]>span { background:#cc8a19; }
.strength-track[data-level="3"]>span { background:#519845; }
.strength-track[data-level="4"]>span { background:#16804a; }
#password-checks { display:grid; gap:6px; list-style:none; padding:0; margin:13px 0; color:#647b8e; }
#password-checks .met,.match-ok { color:#16804a; }
.match-error { color:#ad3b43; }
.password-feedback small { line-height:1.6; display:block; }
#password-match { margin:10px 0 0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(prefers-reduced-motion:reduce) { .strength-track>span { transition:none; } }
.field-hint { display:block; margin-top:-12px; font-size:12px; line-height:1.5; }
.account-settings{max-width:960px;display:grid;gap:22px}
.account-settings .panel h2{margin-bottom:8px}
.account-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0}
.account-row+.account-row{border-top:1px solid var(--line)}
.account-row:last-child{padding-bottom:4px}
.account-detail{min-width:0}
.account-detail h3{font-size:13px;color:var(--muted);font-weight:500;margin:0 0 8px}
.account-detail p{font-size:16px;font-weight:600;margin:0;overflow-wrap:anywhere}
.account-detail .badge{margin-top:10px}
.account-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;flex-shrink:0}
.account-dialog form{display:grid;gap:18px}
.account-dialog>p{margin-top:0;line-height:1.6}
dialog:has(.account-dialog){width:min(520px,94vw)}
.account-dialog .dialog-actions{margin-top:8px}
.account-dialog .verification-email{overflow-wrap:anywhere}
.account-dialog .email-resend{border-top:1px solid var(--line);margin-top:24px;padding-top:18px;gap:8px;font-size:13px}
.email-resend p{margin:0;line-height:1.6}
.email-resend button{justify-self:start}
@media(max-width:600px){.account-row{align-items:flex-start;flex-direction:column;gap:16px}.account-actions{justify-content:flex-start}.account-dialog .dialog-actions{flex-wrap:wrap}}

#report-form [hidden]{display:none}
/* Dashboard accents and contact history */
#dashboard-data .card{position:relative;overflow:hidden;border:0;box-shadow:0 6px 22px #163c5b0a}
#dashboard-data .card:before{content:'';position:absolute;right:-24px;top:-24px;width:95px;height:95px;border-radius:50%;background:#ffffff55}
#dashboard-data .card:nth-child(1){background:linear-gradient(125deg,#dcfaf0,#bceee0);color:#125c4c}
#dashboard-data .card:nth-child(2){background:linear-gradient(125deg,#e6efff,#d0defb);color:#244889}
#dashboard-data .card:nth-child(3){background:linear-gradient(125deg,#fff0e5,#ffdec7);color:#8a471d}
#dashboard-data .card:nth-child(4){background:linear-gradient(125deg,#f0eaff,#dfd0f9);color:#5b368a}
#dashboard-data .card small,#dashboard-data .card em{color:inherit}
#dashboard-data .grid>.panel{border-top:4px solid #28b9ac}
#dashboard-data .grid>.panel:nth-child(2){border-top-color:#6995e5;background:linear-gradient(160deg,#f3f7ff,#fff)}
#dashboard-data .grid>.panel:nth-child(3){border-top-color:#f0b252}
#dashboard-data .grid>.panel:nth-child(4){border-top-color:#a083da}
#dashboard-data .meter-row:nth-of-type(3) .meter i{background:#6896e6}
#dashboard-data .meter-row:nth-of-type(4) .meter i{background:#f0a163}
.party-link{padding:0;border:0;background:none;text-align:left;color:#006b83;text-decoration:underline;text-underline-offset:4px}
.party-row{cursor:pointer}
.party-row:hover{background:#f0f8fa}
.party-row:focus-visible{outline:2px solid #006b83;outline-offset:-2px}
.general-party{border-color:#b8dcdf;background:#eaf8f8;color:#006879}
.history-summary{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0 24px}
.history-summary span{flex:1;min-width:140px;background:#eef8fa;padding:16px;border-radius:12px;font-size:12px}
.history-summary strong{display:block;font-size:20px;margin-top:8px}
.history-payments{margin-top:28px}
#transaction-form[hidden]{display:none}
/* Report preparation workspace */
.reports-page{display:grid;gap:26px;min-width:0}
.reports-intro{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce5ed;padding-bottom:24px;gap:20px}
.reports-intro .eyebrow{color:#7063a9;margin-bottom:12px}
.reports-intro h1{font-size:32px}
.reports-intro p:last-child{color:var(--muted);margin:0;font-size:14px;line-height:1.6}
.reports-mark{font-size:42px;color:#7768b2;background:#ece8f7;border-radius:18px;padding:12px 20px}
.report-builder{border:1px solid #dce5ed;border-radius:16px;background:#fff;padding:26px;display:grid;grid-template-columns:1fr auto;gap:22px}
.report-builder-title,.report-section-title{display:flex;gap:13px;align-items:center}
.report-step{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;border:1px solid #d9dfea;border-radius:50%;font-size:11px;color:#7a7891;font-weight:700}
.report-builder h2,.report-section-title h2{font-size:16px;margin:0}
.report-builder-title p,.report-section-title p{font-size:12px;color:var(--muted);margin:6px 0 0;line-height:1.5}
.report-controls{display:flex;align-items:end;gap:12px}
.report-controls input{max-width:170px;padding:10px;font-size:13px}
.period-arrow{align-self:center;padding-top:16px;color:#8293a6}
.report-presets{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
.report-presets button{border-radius:20px;padding:7px 14px;font-size:12px;font-weight:500;background:#f6f8fb;border-color:transparent}
.report-presets button[aria-pressed=true]{background:#ece8f7;border-color:#d2c7eb;color:#574187}
#report-date-error{grid-column:1/-1;margin:0;font-size:13px}
.report-workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:26px}
.report-overview,.report-ledger{background:white;border:1px solid #dce5ed;border-radius:16px;padding:26px;min-width:0}
#report-period-label{margin-left:auto;font-size:11px;color:var(--muted);text-align:right}
.report-breakdown{margin:24px 0 0}
.report-total{display:flex;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid #edf0f5}
.report-total dt{display:flex;gap:10px;align-items:center;font-size:13px}
.report-total dt i{width:8px;height:8px;border-radius:50%;background:#5b94d5}
.report-total dt small{font-size:11px;color:#8190a1;margin-left:8px}
.report-total dd{margin:0;font-size:15px;font-weight:650;white-space:nowrap}
.report-total.sales dt i{background:#2cae94}.report-total.expenses dt i{background:#e6a266}.report-total.collections dt i{background:#8b75c4}.report-total.payments dt i{background:#cd809c}
.report-net{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f0f4fa;border-radius:10px;padding:18px;margin-top:18px}
.report-net strong{font-size:15px}.report-net>strong{font-size:23px;white-space:nowrap}.report-net small{display:block;font-size:10px;margin-top:7px;line-height:1.5}
.report-note{font-size:11px;color:#7b8899;line-height:1.6;margin:14px 0 0}
.report-custom{background:linear-gradient(150deg,#263953,#3a4264);color:#fff;border-radius:16px;padding:32px;display:flex;align-items:flex-start;flex-direction:column}
.report-custom-icon{font-size:30px;margin-bottom:24px;color:#a3dbda}
.report-custom .eyebrow{color:#b5c5e5;font-size:10px}.report-custom h2{font-size:27px;font-weight:600;line-height:1.25;margin-bottom:18px}.report-custom p:not(.eyebrow){font-size:13px;line-height:1.9;color:#d0daeb}
.report-custom button{width:100%;display:flex;justify-content:space-between;background:#f3f7fe;border:0;color:#263953;margin-top:auto}
.report-custom small{color:#b8c8dd;font-size:11px;line-height:1.6;margin-top:16px}
.report-ledger .report-section-title{margin-bottom:20px}.report-ledger .badge{margin-left:auto;background:#f0edf8;color:#75619f}
.report-ledger th{background:#f5f6fa}.report-ledger td:last-child,.report-ledger th:last-child{text-align:right}
@media(max-width:1200px){.report-builder{grid-template-columns:1fr}.report-controls{justify-content:flex-start}.report-workspace{grid-template-columns:minmax(0,1.4fr) minmax(230px,1fr)}}
@media(max-width:750px){.reports-mark{display:none}.reports-intro h1{font-size:27px}.report-workspace{grid-template-columns:1fr}.report-builder,.report-overview,.report-ledger{padding:20px}.report-controls{flex-wrap:wrap}.report-controls label{flex:1;min-width:115px}.report-controls input{max-width:100%;min-width:0}.report-controls button{width:100%}.report-custom{padding:25px}.report-custom-icon{margin-bottom:15px}.report-custom button{margin-top:12px}.report-total dt{flex-wrap:wrap}.report-total dt small{margin-left:18px}.report-net{align-items:flex-start;flex-direction:column}.report-section-title{flex-wrap:wrap}#report-period-label{width:100%;text-align:left;margin-left:45px}.report-ledger .report-section-title .badge{margin-left:45px}}
/* Colorful public landing page; scoped away from the business panel. */
.landing { background:radial-gradient(ellipse at 90% 6%,#dcefff 0,transparent 22%),radial-gradient(ellipse at 3% 14%,#e2faf1 0,transparent 22%),#fff; }
.landing .hero { padding-top:82px; padding-bottom:100px; }
.landing .hero h1 span { color:#00877e; }
.landing .hero-visual { background:linear-gradient(135deg,#fff,#e7edff); border:1px solid #fff; box-shadow:0 30px 70px #375fa523; }
.landing .feature-tiles>div:nth-child(1) { background:#d6f6eb; border-color:#c2eadc; }
.landing .feature-tiles>div:nth-child(2) { background:#ece3ff; border-color:#ded0f4; }
.landing .feature-tiles>div:nth-child(3) { background:#fff0cb; border-color:#f3dfaa; }
.landing .feature-tiles>div:nth-child(4) { background:#dceeff; border-color:#c8def4; }
.landing .feature-tiles>div:nth-child(2) span { color:#7850b0; }
.landing .feature-tiles>div:nth-child(3) span { color:#936400; }
.landing .cta { background:linear-gradient(110deg,#015091,#007f8a); box-shadow:0 8px 20px #005c8a20; }
.store-badges { display:flex; flex-wrap:wrap; gap:12px; margin-top:27px; }
.store-badge { display:flex; align-items:center; gap:12px; background:#132a3e; color:white; border-radius:12px; padding:12px 19px; min-width:166px; }
.store-badge svg { width:25px; height:29px; flex:none; overflow:visible; }
.store-badge small,.store-badge strong { display:block; }
.store-badge small { font-size:9px; letter-spacing:1.1px; color:#dce6f0; }
.store-badge strong { font-size:19px; line-height:1.4; font-weight:600; }
.landing .store-caption { font-size:12px; }
.benefit-ribbon { display:flex; flex-wrap:wrap; justify-content:center; gap:25px 55px; padding:27px 24px; background:#073e60; color:#e0f7fb; font-size:14px; }
.benefit-ribbon strong { color:#aff0ce; }
.landing .features-section { background:#f8fafc; padding-top:90px; padding-bottom:90px; }
.landing .marketing-cards { gap:22px; }
.landing .marketing-cards article { border:1px solid #cdeadd; border-radius:22px; padding:30px; background:#e9f8ef; }
.landing .marketing-cards article:nth-child(2) { background:#f0eafe; border-color:#e2d8f5; }
.landing .marketing-cards article:nth-child(3) { background:#fff3d9; border-color:#f0e1bc; }
.landing .marketing-cards article:nth-child(2) .feature-number { color:#69449b; }
.landing .marketing-cards article:nth-child(3) .feature-number { color:#856013; }
.workflow-section,.insight-section,.faq-section { max-width:1240px; margin:auto; padding:90px 32px; }
.workflow-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:48px; margin-top:45px; }
.workflow-grid article>span { display:grid; place-items:center; width:48px; height:48px; background:#e1f3ff; color:#035e96; border-radius:16px; font-size:21px; font-weight:700; }
.workflow-grid article:nth-child(2)>span { background:#eee5ff; color:#7350a7; }
.workflow-grid article:nth-child(3)>span { background:#def5ea; color:#14785d; }
.workflow-grid h3 { font-size:21px; margin:22px 0 12px; }
.workflow-grid p,.insight-section p,.faq-list p { color:#587084; line-height:1.85; font-size:15px; }
.insight-section { display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; background:#edf5ff; border-radius:28px; padding:58px; max-width:1176px; }
.insight-section ul { list-style:none; padding:0; margin:25px 0; color:#365870; font-size:14px; }
.insight-section li { margin:14px 0; }
.insight-section li::before { content:'✓'; color:#008578; margin-right:12px; font-weight:700; }
.report-preview { background:#fff; padding:28px; border:1px solid #e0eafa; border-radius:20px; box-shadow:0 18px 40px #244e8110; }
.report-preview-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.report-preview-top>span { color:#667c8f; font-size:10px; background:#f0f4f8; padding:6px 9px; border-radius:20px; }
.report-bars { display:flex; align-items:end; gap:13px; height:180px; margin-top:26px; border-bottom:1px solid #e4ecf1; background:repeating-linear-gradient(to top,transparent 0,transparent 44px,#eef3f7 44px,#eef3f7 45px); }
.report-bars i { flex:1; height:var(--bar); background:linear-gradient(#38c4b0,#009786); border-radius:7px 7px 0 0; }
.report-bars i:nth-child(2n) { background:linear-gradient(#a899ef,#7965cc); }
.report-labels { display:flex; justify-content:space-around; margin-top:10px; font-size:10px; color:#647b8e; }
.report-note { display:flex; gap:14px; align-items:center; background:#f1f8f7; padding:16px; border-radius:12px; margin-top:25px; }
.report-note>span { font-size:27px; color:#008578; }
.report-note strong,.report-note small { display:block; }
.report-note strong { font-size:13px; }.report-note small { font-size:11px; color:#587084; margin-top:5px; }
.landing .mobile-section { padding-top:100px; padding-bottom:100px; }
.landing .trial-panel { background:linear-gradient(120deg,#e4f7ed,#e5edff); border:1px solid #d6e7e7; padding:42px; border-radius:24px; }
.faq-section { display:grid; grid-template-columns:1fr 1.5fr; gap:65px; border-top:1px solid #e4edf2; }
.faq-list details { border-bottom:1px solid #dfe8ef; padding:20px 0; }
.faq-list summary { cursor:pointer; font-weight:600; font-size:16px; line-height:1.6; }
.faq-list p { margin-bottom:0; }
.closing-section { text-align:center; padding:70px 24px 80px; background:linear-gradient(120deg,#063f61,#075e70 60%,#127b77); color:#fff; }
.closing-section .eyebrow { color:#a6e6d8; }.closing-section p { color:#d4e9ed; }
.landing .closing-section .cta { margin-top:20px; background:#e1ffac; color:#173e38; }
.landing a:focus-visible,.landing summary:focus-visible { outline:3px solid #bd7900; outline-offset:5px; }
@media(max-width:750px) {
 .landing .hero { padding:40px 22px 60px; }.landing .features-section { padding:55px 22px; }
 .workflow-section,.faq-section { padding:55px 22px; }.workflow-grid { grid-template-columns:1fr; gap:28px; }
 .workflow-grid h3 { margin-top:15px; }.insight-section { grid-template-columns:1fr; margin:0 14px; padding:32px 22px; gap:25px; }
 .report-preview { padding:20px; }.report-bars { gap:9px; }.faq-section { grid-template-columns:1fr; gap:10px; }
 .landing .mobile-section { padding:60px 22px; }.landing .trial-panel { padding:28px; }.benefit-ribbon { gap:16px 24px; font-size:12px; }
 .store-badge { padding:11px 14px; min-width:145px; }.store-badge strong { font-size:17px; }.store-badges { gap:9px; }
}
.login-actions { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.login-actions>.primary { flex:1; }
.forgot-password { color:var(--brand-blue); font-size:13px; font-weight:600; padding:12px 0; }
.forgot-password:hover,.auth-links>a:hover { text-decoration:underline; }
#reset-form { display:grid; gap:18px; }
.reset-steps { list-style:none; padding:0; display:flex; gap:15px; margin:0 0 27px; }
.reset-steps li { display:flex; align-items:center; gap:7px; font-size:11px; color:#5f7485; }
.reset-steps li>span { display:grid; place-items:center; width:25px; height:25px; flex-shrink:0; border-radius:50%; background:#edf3f7; font-weight:700; }
.reset-steps .current { color:#014b8a; font-weight:700; }.reset-steps .current>span { background:#014b8a; color:white; }
.reset-steps .complete>span { background:#dff4ee; color:#087f65; }
.reset-resend { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.reset-resend button { color:#014b8a; font-size:12px; }.reset-resend small { font-size:11px; }
.reset-success { padding:20px; border:1px solid #bfe5d8; border-radius:12px; background:#eaf8f2; color:#076b51; line-height:1.6; }
.reset-success>span { margin-right:8px; font-size:20px; }
#reset-form .verification-email { overflow-wrap:anywhere; }
@media(max-width:400px) { .reset-steps { gap:8px; }.reset-steps li { gap:4px; font-size:10px; } }
.legal-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:16px 28px;padding:28px 20px;border-top:1px solid var(--line);background:#f4f8fb;font-size:13px;color:#31546d}
.legal-footer a:hover,.consent-check a:hover{text-decoration:underline}
.legal-layout{background:#f4f8fb;min-height:100vh}.legal-header{max-width:960px;margin:auto;display:flex;justify-content:space-between;padding:24px;gap:18px}.legal-document{max-width:880px;margin:0 auto 48px;padding:42px;background:white;border:1px solid var(--line);border-radius:20px}.legal-document h1{font-size:36px;line-height:1.2}.legal-intro{font-size:19px;color:#436178}.legal-document section{margin-top:32px;scroll-margin-top:24px}.legal-document h2{font-size:21px}.legal-document p{line-height:1.8;overflow-wrap:anywhere}.legal-toc{display:grid;gap:10px;padding:22px;background:#f4f8fb;border-radius:12px}.legal-draft{background:#fff6df;padding:16px;border-radius:10px;color:#725411}.consent-check{display:flex;align-items:flex-start;gap:10px;line-height:1.6;font-size:14px}.consent-check input{width:20px;height:20px;min-width:20px;margin-top:2px;padding:0;accent-color:#008d99}.consent-check a,.field-hint a{color:#006d83;text-decoration:underline}
@media(max-width:600px){.legal-document{margin:0 12px 24px;padding:24px 20px}.legal-document h1{font-size:28px}.legal-footer{gap:16px;font-size:12px}.legal-header{padding:20px}}

/* Transaction warnings and quick entry helpers */
.stock-warning{padding:12px 14px;margin:14px 0;border:1px solid #e9c773;border-radius:10px;background:#fff8e7;color:#76530b;font-size:13px;line-height:1.6}
.stock-warning[hidden]{display:none}
.category-suggestions{display:grid;gap:14px;margin-top:18px}
.category-suggestions strong{font-size:12px;color:var(--muted)}
.category-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}
.category-chips button{padding:7px 11px;font-size:12px;max-width:100%;overflow-wrap:anywhere;text-align:left}
.payment-context{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}
.payment-context h3{font-size:14px;margin:16px 0 10px}
.payment-history{max-height:230px;overflow:auto}
.payment-context .history-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:550px){.payment-context .history-summary{grid-template-columns:1fr}}

.sidebar>*{flex-shrink:0}
@media(max-width:750px){.sidebar{overscroll-behavior:contain}}

/* Report document: the same content is previewed, exported and printed. */
dialog.report-preview-dialog{width:min(1240px,96vw);max-width:96vw;height:94dvh;max-height:94dvh;padding:0;overflow:hidden}
.report-preview-dialog[open]{display:flex;flex-direction:column}
.report-preview-dialog>.dialog-head{padding:18px 24px;margin:0;border-bottom:1px solid var(--line);flex-shrink:0}
.report-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 24px 8px;flex-shrink:0}
.report-toolbar p{margin:0;font-size:13px;color:var(--muted)}
.report-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}
.report-help{font-size:11px;line-height:1.5;margin:0;padding:0 24px 12px;color:var(--muted)}
.report-sections{display:flex;gap:6px;overflow-x:auto;padding:10px 24px;border-top:1px solid var(--line);flex-shrink:0}
.report-sections button{white-space:nowrap;padding:7px 12px;font-size:12px}
.report-document-scroll{overflow:auto;min-height:0;flex:1;background:#e9eef3;padding:26px;overscroll-behavior:contain}
.report-document{background:white;max-width:1120px;margin:0 auto;padding:38px;color:#20394a;border:1px solid #d5dee6;box-shadow:0 5px 20px #183a5010;font-size:13px}
.report-document-header{display:flex;justify-content:space-between;gap:25px;padding-bottom:24px;border-bottom:3px solid #014b8a}
.report-document-header img{width:156px;height:auto;display:block;margin-bottom:20px}
.report-document-header h1{font-size:27px;margin:8px 0 16px;letter-spacing:-.5px}
.report-document-header p{margin:5px 0;line-height:1.5;overflow-wrap:anywhere}
.report-document-business{font-weight:600;color:#014b8a}
.report-document-issued{text-align:right;flex-shrink:0;padding-top:4px}
.report-document-issued span{display:block;font-size:9px;letter-spacing:1px;color:#677d8c;margin-bottom:7px}
.report-document-issued strong{font-size:12px}
.report-document-section{margin-top:28px;scroll-margin-top:16px;outline-offset:4px}
.report-document-section-title{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:12px}
.report-document-section-title h2{font-size:16px;margin:0}
.report-document-section-title span{font-size:11px;color:#637c8c;white-space:nowrap}
.report-document-table{overflow:auto;border:1px solid #dfe7ed;border-radius:4px}
.report-document table{width:100%;border-collapse:collapse;font-size:11px;min-width:0}
.report-document th,.report-document td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid #e4eaf0;line-height:1.5;max-width:420px;white-space:normal;overflow-wrap:anywhere}
.report-document th{background:#edf3f8;color:#25475d;font-size:10px;font-weight:700}
.report-document tbody tr:nth-child(even){background:#f8fafc}
.report-document .report-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.report-document .report-negative{color:#a33d34}
.report-document tfoot td,.report-document tfoot th{background:#e8f3f3;font-weight:700;border-top:2px solid #a8caca}
.report-document-footer{border-top:1px solid #dfe7ed;margin-top:30px;padding-top:14px;color:#6a7f8e;font-size:10px;overflow-wrap:anywhere}
.report-empty{padding:20px;background:#f5f8fb;color:#627a8d;line-height:1.6}
#report-preview-error{margin:0;padding:12px 24px;flex-shrink:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:650px){
 dialog.report-preview-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0}
 .report-preview-dialog>.dialog-head{padding:14px 16px}.report-preview-dialog>.dialog-head h2{font-size:17px}
 .report-toolbar{padding:12px 16px 8px;align-items:stretch;flex-direction:column}.report-toolbar button{font-size:12px;padding:9px 11px}
 .report-help{padding:0 16px 10px}.report-sections{padding:8px 16px}
 .report-document-scroll{padding:12px}.report-document{padding:20px 16px}
 .report-document-header{flex-direction:column;gap:15px}.report-document-header h1{font-size:23px}
 .report-document-issued{text-align:left}.report-document-header img{width:136px;margin-bottom:16px}
 .report-document-table table{min-width:580px}.report-document-section:first-of-type table{min-width:0}
 .report-document th,.report-document td{padding:8px;font-size:11px}
}
@media print{
 @page{size:A4 landscape;margin:12mm}
 html:has(dialog.report-preview-dialog[open]),body:has(dialog.report-preview-dialog[open]){background:white}
 body:has(dialog.report-preview-dialog[open])>#app,body:has(dialog.report-preview-dialog[open])>#toast{display:none!important}
 dialog.report-preview-dialog[open]{display:block!important;position:static;width:100%;max-width:none;height:auto;max-height:none;margin:0;padding:0;overflow:visible;border:0;box-shadow:none;border-radius:0}
 .report-preview-dialog::backdrop{display:none}
 .report-preview-dialog>.dialog-head,.report-toolbar,.report-help,.report-sections,#report-preview-error{display:none!important}
 .report-document-scroll{overflow:visible;display:block;background:white;padding:0}
 .report-document{max-width:none;margin:0;padding:0;border:0;box-shadow:none;color:#000}
 .report-document-header{break-inside:avoid}.report-document-header img{width:130px}.report-document-header h1{font-size:22px}
 .report-document-section-title{break-after:avoid}.report-document-section{break-inside:auto;margin-top:20px}
 .report-document-table{overflow:visible;border:0}.report-document-table table{min-width:0;table-layout:fixed}
 .report-document th,.report-document td{font-size:8pt;padding:5px;max-width:none;overflow-wrap:anywhere}
 .report-document .report-number{white-space:normal}.report-document tr{break-inside:avoid}
 .report-document thead{display:table-header-group}.report-document tfoot{display:table-row-group}
 .report-document-footer{break-inside:avoid}.report-document *{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

.pager{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.pager span{color:var(--muted);font-size:14px}
.grid>*{min-width:0}

/* Mobile layout: card-style tables, full-width controls and comfortable dialogs. */
@media(max-width:750px){
 input,select,textarea{font-size:16px}
 .heading .actions{width:100%}
 .heading .actions>button{flex:1 1 auto}
 .card{min-width:0}
 .card strong{font-size:clamp(17px,5.4vw,23px);overflow-wrap:anywhere}
 .card small{margin-bottom:12px}
 .panel-head{flex-wrap:wrap;gap:8px}
 .toolbar{gap:10px}
 .toolbar input[type=search]{max-width:none;flex:1 1 100%}
 .toolbar label{max-width:none;flex:1 1 140px;min-width:0}
 .toolbar>button{flex:1 1 auto}
 .toolbar>small{flex-basis:100%}
 .table-wrap{overflow:visible}
 .table-wrap table,.table-wrap tbody,.table-wrap tr,.table-wrap td{display:block;width:100%}
 .table-wrap table{white-space:normal}
 .table-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .table-wrap tr{border:1px solid var(--line);border-radius:12px;padding:4px 14px;margin-bottom:10px;background:#fff}
 .table-wrap tbody tr:last-child{margin-bottom:0}
 .table-wrap td,.table-wrap tbody tr:last-child td{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid #eef3f7;text-align:right;overflow-wrap:anywhere;min-width:0}
 .table-wrap td::before{content:attr(data-label);color:var(--muted);font-size:12px;font-weight:500;text-align:left;flex-shrink:0;max-width:45%}
 .table-wrap td:last-child{border-bottom:0}
 .table-wrap td.row-actions{flex-wrap:wrap;justify-content:flex-start;gap:6px;padding-top:12px}
 .table-wrap td.row-actions::before{display:none}
 .table-wrap td.row-actions button{margin:0;flex:1 1 auto;padding:9px 10px;font-size:12px}
 .table-wrap .party-link{text-align:right}
 .party-row:hover{background:#fff}
 dialog{width:calc(100vw - 16px);max-width:none;max-height:calc(100dvh - 16px);padding:20px 16px}
 .dialog-head{margin-bottom:18px;gap:12px}
 .dialog-head h2{font-size:17px}
 .dialog-actions{flex-wrap:wrap}
 .dialog-actions>button{flex:1 1 auto}
 .line{grid-template-columns:1fr 1fr auto;padding-bottom:12px;border-bottom:1px solid var(--line)}
 .line>button{height:46px}
 .total{font-size:19px}
 .quick{grid-template-columns:1fr}
 .history-summary{gap:10px}
 .history-summary span{min-width:120px}
 #toast{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));max-width:none}
 .auth-form{align-items:flex-start}
 .login-actions>.primary{flex-basis:100%}
}
@media(max-width:360px){.topbar-brand{width:104px}.cards{grid-template-columns:1fr}}

.party-lines-cell{min-width:240px}
.party-line-items{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.party-line-items li{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.party-line-items li+li{border-top:1px dashed var(--line,#e5e7eb);padding-top:6px}
.party-line-items span{display:flex;flex-direction:column;min-width:0}
.party-line-items b{font-weight:500}
.party-line-items small{color:var(--muted,#6b7280);font-size:12px}
.party-line-items strong{white-space:nowrap;font-weight:600}

/* Satış/alış belgesi: ekranda önizlenir, dikey A4 olarak yazdırılır veya PDF kaydedilir. */
.transaction-document-cta,.summary-export{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#f3f7fa;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:16px}
.transaction-document-cta p,.summary-export span{margin:0;font-size:13px;color:var(--muted);flex:1 1 220px}
dialog.transaction-document-dialog{width:min(900px,96vw)}
.transaction-document{max-width:794px;padding:40px;color:#17364d;border-top:6px solid #014b8a}
.td-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:20px;border-bottom:1px solid #dde8ef}
.td-business{min-width:0;display:flex;flex-direction:column;gap:6px}
.td-business strong{font-size:20px;line-height:1.25;overflow-wrap:anywhere}
.td-business span,.td-title span{font-size:12px;color:#5f7485;overflow-wrap:anywhere}
.td-title{text-align:right;flex-shrink:0;display:flex;flex-direction:column;gap:6px}
.td-title h1{margin:0;font-size:20px;color:#014b8a;letter-spacing:.3px}
.td-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 22px}
.td-info>div{background:#f3f7fa;padding:12px 14px;border-radius:4px;min-width:0}
.td-info span{display:block;font-size:10px;letter-spacing:.6px;color:#5f7485;margin-bottom:6px}
.td-info strong{font-size:15px;overflow-wrap:anywhere}
.transaction-document .td-lines{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}
.td-lines .col-no{width:38px}.td-lines .col-qty{width:110px}.td-lines .col-price{width:120px}.td-lines .col-total{width:120px}
.transaction-document .td-lines th{background:#014b8a;color:#fff;font-size:10px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;padding:8px 10px;border:0}
.transaction-document .td-lines td{padding:9px 10px;border-bottom:1px solid #dde8ef;vertical-align:top;overflow-wrap:anywhere;max-width:none}
.transaction-document .td-lines tbody tr:nth-child(even){background:#f3f7fa}
.td-lines .td-no{color:#5f7485}
.td-lines .td-qty,.td-lines .td-price,.td-lines .td-total{text-align:right;font-variant-numeric:tabular-nums}
.td-lines td.td-total{font-weight:700}
.td-lines .td-empty{color:#5f7485;text-align:left}
.td-summary{margin:18px 0 0 auto;width:min(340px,100%);display:grid;gap:10px}
.td-summary>div{display:flex;justify-content:space-between;align-items:center;gap:12px}
.td-count{font-size:12px;color:#5f7485;padding:0 12px}.td-count strong{color:#17364d}
.td-grand{background:#014b8a;color:#fff;padding:11px 12px;border-radius:4px}
.td-grand span{font-size:11px;font-weight:700;letter-spacing:.4px}
.td-grand strong{font-size:17px;overflow-wrap:anywhere;text-align:right}
.td-footer{margin-top:40px;padding-top:10px;border-top:1px solid #dde8ef;color:#5f7485;font-size:10px;line-height:1.5}
.td-footer p{margin:0}
@media screen and (max-width:650px){
 .transaction-document{padding:20px 16px}
 .td-header{flex-direction:column;gap:14px}
 .td-title{text-align:left}
 .td-business strong,.td-title h1{font-size:18px}
 .td-info{grid-template-columns:1fr;gap:10px;margin:16px 0}
 .transaction-document-cta button,.summary-export button{flex:1 1 100%}
 .transaction-document-dialog .report-toolbar>div>button{flex:1 1 0}
}
/* Dar ekranda tablo yerine kalem kartları: ürün adı tam satır, altında miktar/fiyat/tutar. */
@media screen and (max-width:520px){
 .transaction-document .td-lines,.td-lines tbody,.td-lines tr,.td-lines td{display:block;width:100%}
 .td-lines colgroup,.td-lines thead{display:none}
 .transaction-document .td-lines tr{display:grid;grid-template-columns:auto 1fr;column-gap:10px;padding:10px 0;border-bottom:1px solid #dde8ef}
 .transaction-document .td-lines tbody tr:nth-child(even){background:transparent}
 .transaction-document .td-lines td{border:0;padding:2px 0}
 .td-lines td.td-no{grid-row:span 4;padding-top:3px}
 .td-lines td.td-product{font-weight:600}
 .td-lines td.td-qty,.td-lines td.td-price,.td-lines td.td-total{display:flex;justify-content:space-between;gap:10px;font-size:12px}
 .td-lines td.td-qty::before,.td-lines td.td-price::before,.td-lines td.td-total::before{content:attr(data-label);color:#5f7485;font-weight:400;text-align:left}
 .td-lines td.td-empty{grid-column:1/-1}
 .td-summary{width:100%}
}
@media print{
 .transaction-document-dialog .transaction-document{max-width:none;padding:0;border-top:5px solid #014b8a;padding-top:14px;color:#17364d}
 .transaction-document .td-header,.transaction-document .td-info,.transaction-document .td-summary,.transaction-document .td-footer{break-inside:avoid}
 .transaction-document .td-lines th{font-size:8pt;padding:6px 8px}
 .transaction-document .td-lines td{font-size:9pt;padding:7px 8px}
 .transaction-document .td-lines tr{break-inside:avoid}
}
/* Satış/alış satırında PDF düğmesiyle beş işlem olur; orta genişlikte tabloyu taşırmadan alt satıra geçer. */
@media(min-width:751px) and (max-width:1280px){.table-wrap td.row-actions:has([data-document]){white-space:normal;min-width:190px}.table-wrap td.row-actions:has([data-document]) button{margin-bottom:4px}}
/* Cari geçmişinde Düzenle + PDF çıkar: dar pencerede tabloyu taşırmadan alt alta dizilir. */
@media(min-width:751px){#party-history td.row-actions{white-space:normal;width:1%}#party-history td.row-actions button{display:block;width:100%;white-space:nowrap;margin:3px 0}}

/* ===== Belirginlik katmanı (7 Kasım 2026) =====
   Beyaz tema korunur; sayfa zemini biraz koyulaştırılır, beyaz yüzeyler (kart, panel, pencere)
   net çerçeve ve hafif gölgeyle ayrılır, düğme ve alan çerçeveleri görünür hale getirilir. */
:root{--line:#c8d7e3;--line-strong:#a9bfd0;--surface-shadow:0 1px 2px #0f2f4a14,0 4px 14px #0f2f4a0d;--page-bg:#eaf0f6;background:var(--page-bg)}
body{background:var(--page-bg)}
.landing,.auth{background-color:#fff}

/* Düğmeler */
button{border-color:var(--line-strong);box-shadow:0 1px 2px #0f2f4a14;transition:background-color .12s,border-color .12s,box-shadow .12s}
button:hover{background:#e8f3f8;border-color:#6f97b5}
button:focus-visible{outline:2px solid #01b9ba;outline-offset:2px}
button.primary{box-shadow:0 1px 3px #014b8a40}
button.primary:hover{border-color:#006279}
button.danger{border-color:#e2b3ad;background:#fff}
button.danger:hover{background:#fdeeec;border-color:#c9776d}
button:disabled{box-shadow:none}
.summary-link,.party-link,.auth-links button,.report-custom button{box-shadow:none}
.report-custom button{border:1px solid #fff}
.report-presets button{background:#fff;border-color:var(--line-strong)}
.report-presets button[aria-pressed=true]{background:#ece8f7;border-color:#9d8bd0}
.general-party{border-color:#8fc6cc}

/* Form alanları */
input,select,textarea{border-color:var(--line-strong)}
input:hover,select:hover,textarea:hover{border-color:#7f9fb8}
input:disabled,select:disabled,textarea:disabled{background:#f1f5f8}

/* Yüzeyler: kart, panel ve rapor kutuları */
.card,.panel,.report-builder,.report-overview,.report-ledger{border:1px solid var(--line);box-shadow:var(--surface-shadow)}
#dashboard-data .card{border:1px solid #0f2f4a1f;box-shadow:var(--surface-shadow)}
#dashboard-data .grid>.panel{border-top-width:4px}
.card.highlight{border-color:#8fd0d5}
.history-summary span{border:1px solid #bfdfe5}
.report-net{border:1px solid var(--line)}
.quick a{border-color:var(--line-strong);background:#fff}
.quick a:hover{border-color:#6f97b5}

/* Üst çubuk ve kenar menü */
.topbar{border-bottom-color:var(--line);box-shadow:0 1px 0 #0f2f4a0a}
.sidebar{border-right-color:var(--line)}
.sidebar nav a.active{box-shadow:inset 3px 0 #01b9ba,0 0 0 1px #b6dfe6}
.sidebar footer{border-color:var(--line)}

/* Tablolar */
th{background:#e7eff6;color:#4d667a;font-weight:600;border-bottom:1px solid var(--line)}
td{border-bottom-color:#d9e4ed}
.report-ledger th{background:#eceef6}
.report-total{border-bottom-color:#dfe5ee}
@media(min-width:751px){
 .panel .table-wrap,dialog .table-wrap{border:1px solid var(--line);border-radius:10px}
 .table-wrap tbody tr:hover{background:#f5f9fc}
}
@media(max-width:750px){
 .table-wrap tr{border-color:var(--line-strong);box-shadow:0 1px 3px #0f2f4a0f}
 .table-wrap td{border-bottom-color:#e1e9f0}
}

/* Pencereler (dialog) */
dialog{border:1px solid #9fb6c9;box-shadow:0 0 0 1px #ffffff80,0 24px 70px #0b223566}
dialog::backdrop{background:#0b2233a6;backdrop-filter:blur(2px)}
.dialog-head{border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:22px}
.dialog-actions{border-top:1px solid var(--line);padding-top:18px}
.report-preview-dialog>.dialog-head{padding-bottom:18px}
.report-document-scroll{background:#dfe7ee}
.report-document{border-color:#b9c9d6}
@media print{
 dialog{border:0;box-shadow:none}
 .dialog-head,.dialog-actions{border:0}
 .card,.panel{box-shadow:none}
}
