:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#152e40;background:#f2f5f8;font-size:16px}*{box-sizing:border-box}body{margin:0}header{height:90px;background:#0c2638;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(5%,calc((100vw - 1380px)/2));border-bottom:4px solid #5de0ae}.brand{display:flex;align-items:center;gap:13px;letter-spacing:2px;font-size:20px}.brand small{display:block;font-size:12px;color:#a8bac6;letter-spacing:1px;margin-top:5px}.logo{color:#5de0ae;font-size:36px}.badge{font-size:12px;letter-spacing:1px;border:1px solid #466071;padding:9px 12px;border-radius:5px}main{max-width:1380px;margin:auto;padding:32px 28px}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.eyebrow{font-size:12px;letter-spacing:2px;color:#637b8b;font-weight:700;margin:0 0 8px}h1{font-size:32px;letter-spacing:-1px;margin:0}.date{text-align:right;line-height:1.6;font-size:14px;color:#617585}.date strong{color:#193347}.notice{background:#e6edf4;border-left:3px solid #577d98;font-size:14px;padding:12px 16px;line-height:1.5;margin-bottom:22px}.balances{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.balance{border:1px solid #dce4eb;background:white;border-radius:10px;padding:20px}.balance:first-child{background:#12364a;color:white;border-color:#12364a}.balanceTop{display:flex;align-items:center;justify-content:space-between;font-size:14px}.coin{width:32px;height:32px;display:grid;place-items:center;background:#edf4f7;border-radius:50%;font-weight:700;color:#1a526c}.balance strong{display:block;font-size:27px;margin:17px 0 8px;font-variant-numeric:tabular-nums}.balance small{font-size:12px;color:#697e8e}.balance:first-child small{color:#b5cbd8}.workspace{display:grid;grid-template-columns:390px 1fr;gap:24px}.panel{background:#fff;border:1px solid #dce4eb;border-radius:12px;padding:24px}.panelhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.panelhead>span{color:#7b8b97;font-size:13px}h2{font-size:19px;margin:0;letter-spacing:-.3px}.panelhead p{font-size:14px;margin:7px 0 0}label{display:block;font-size:14px;font-weight:600;color:#435a69}input,select{display:block;width:100%;font:inherit;font-size:15px;margin-top:8px;border:1px solid #cfdbe4;border-radius:6px;padding:11px 10px;background:white;color:#183547;min-width:0}input:focus,select:focus{outline:2px solid #479aaa;outline-offset:1px}form>label,.two{margin-bottom:17px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.muted{color:#78909f;font-weight:400}.estimate{display:flex;align-items:center;justify-content:space-between;background:#f0f5f7;border-radius:7px;padding:17px 12px;margin-top:22px;font-size:14px}.estimate strong{font-size:21px}button{cursor:pointer}.primary{width:100%;border:0;border-radius:6px;background:#12634f;color:white;display:flex;justify-content:space-between;padding:15px 16px;font-size:16px;font-weight:600;margin-top:14px}.primary:hover{background:#0b4d3d}.hint{font-size:13px;line-height:1.6;color:#6f8594;border-top:1px solid #e2e9ee;padding-top:16px;margin:12px 0 0}#message{font-size:14px;line-height:1.5;min-height:20px;margin:12px 0 0}.filters{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:12px}.profit{background:#0c293b;border-radius:9px;color:white;display:flex;justify-content:space-between;align-items:center;padding:27px;margin:24px 0}.profit span{font-size:15px;color:#c4d8e3}.profit strong{display:block;font-size:43px;color:#70edbd;margin:12px 0 10px;font-variant-numeric:tabular-nums;letter-spacing:-1px}.profit small{color:#93b0c0;font-size:13px}.profitMark{font-size:75px;color:#275167;padding-right:15px}.breakdown>div{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #e8edf1;font-size:15px}.breakdown span{color:#6b7e8b}.methodnote{font-size:13px;line-height:1.65;color:#617888;margin-top:20px}.currencyProfits{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}.currencyProfits div{background:#f2f6f8;border-radius:5px;font-size:13px;padding:10px 13px}.currencyProfits b{margin-left:10px;color:#176750}.ledger{margin-top:24px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:14px;text-align:right}th{font-size:12px;letter-spacing:.3px;color:#7b8e9c;font-weight:600;background:#f5f8fa;padding:13px 10px}td{padding:17px 10px;border-bottom:1px solid #e8edf1;font-variant-numeric:tabular-nums}th:first-child,td:first-child,th:nth-child(2),td:nth-child(2){text-align:left}.tag{display:inline-block;border-radius:4px;background:#e6f4ee;color:#227354;font-size:12px;padding:4px 7px;margin-right:8px}.tag.sell{background:#e8f0fb;color:#3d6699}td small{display:block;color:#81929f;margin-top:6px;font-size:12px}.positive{color:#147355}.negative{color:#c24747}footer{font-size:12px;line-height:1.8;color:#738793;padding:20px 2px}#filterError{color:#b13232;font-size:14px;margin:0}@media(max-width:1050px){.workspace{grid-template-columns:350px 1fr}.filters{grid-template-columns:1fr 1fr}.filters label:last-child{grid-column:1/-1}.profitMark{display:none}.balance strong{font-size:23px}}@media(max-width:780px){header{padding:0 20px;height:80px}.badge{font-size:10px}.brand{font-size:16px}main{padding:24px 16px}.balances{grid-template-columns:1fr 1fr;gap:10px}.workspace{grid-template-columns:1fr}.balance{padding:16px}h1{font-size:27px}.date{display:none}.panel{padding:20px}.profit strong{font-size:36px}.heading{margin-bottom:18px}} 
[hidden]{display:none!important}button{font-family:inherit}header{height:82px}.headerRight{display:flex;align-items:center;gap:16px;font-size:13px;color:#b9d3df}.darkButton{background:transparent;color:white;border:1px solid #607885;padding:7px 12px;border-radius:5px}.tabs{display:flex;gap:10px;border-bottom:1px solid #cfdae2;margin:-10px 0 28px}.tabs button{background:none;border:0;border-bottom:3px solid transparent;padding:17px 20px;font-size:16px;color:#647b8a}.tabs button[aria-selected=true]{border-color:#187454;color:#125e48;font-weight:700}button:focus-visible{outline:3px solid #1b96b9;outline-offset:2px}.compact{width:auto;margin:0;display:inline-block;padding:12px 20px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.daycontrol{display:flex;align-items:center;gap:8px}.daycontrol input{width:170px;margin:0}.daycontrol button,.outline{background:white;border:1px solid #cddbe4;border-radius:6px;padding:11px 15px;color:#28465a;font-size:14px}.sheet{padding:0;overflow:hidden}.sheetHeading{padding:18px 20px;display:flex;justify-content:space-between;align-items:center}.sheetHeading span{font-size:14px;color:#6d8493}.excel{width:100%;table-layout:fixed;min-width:1100px}.excel th,.excel td{border:1px solid #8da26d;padding:8px 6px;font-size:14px;text-align:right;color:#182417}.excel th{text-align:center;white-space:nowrap}.excel .usd{background:#b4d976}.excel .eur{background:#fff184}.excel tbody td.usd{background:#edf7dd}.excel tbody td.eur{background:#fffbe0}.excel tbody tr:nth-child(even) td.usd{background:#e4f1cb}.excel tbody tr:nth-child(even) td.eur{background:#fff6c0}.excel th.currencyTitle{font-size:20px;text-align:left;padding:14px 16px;color:#253d18}.currencyTitle span{float:right;font-size:13px;font-weight:400;padding-top:5px}.excel th.sellHeader{filter:brightness(.96)}.excel tbody td:nth-child(4n+1){font-weight:700}.excel tbody td:nth-child(4n){text-align:center;padding:5px 2px}.excel th:nth-child(4n){width:48px}.excel td.divider{border-right:3px solid #748665}.excel tfoot td{font-weight:bold;background:#b4d976;padding:14px 6px}.excel tfoot td.eur{background:#fff184}.fiş{font-size:12px;border:1px solid #b4c6a0;background:#ffffffb8;color:#26433b;padding:5px;border-radius:4px}.fiş:hover{background:#fff}.dayTabs{display:flex;gap:4px;overflow:auto;padding:12px 14px 0;background:#f6f8fa}.dayTabs button{white-space:nowrap;background:#eaf0f4;color:#526c7c;border:1px solid #dce4ea;border-radius:5px 5px 0 0;padding:10px 15px;font-size:14px}.dayTabs button.selected{background:white;border-bottom:3px solid #1c7757;color:#145c48}.sheetHint{font-size:13px;color:#6a8190;padding:12px 18px;margin:0;background:#f6f8fa}.extra{margin-top:20px}.extra h2{margin-bottom:14px}.textButton{background:none;border:0;text-decoration:underline;color:#125e48;font-size:inherit;padding:0}.openingInputs{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.openingInputs>div{background:#f4f7f9;border:1px solid #dce5ec;border-radius:6px;padding:16px}.openingInputs label{margin-top:12px}.openingInputs h3{margin:0;font-size:17px}.datefield{max-width:210px}.panel>p{font-size:14px;line-height:1.7;color:#687f8e}.balance strong{font-size:25px}.report{max-width:960px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.notice{margin-top:0}dialog{border:1px solid #cfdae2;border-radius:12px;padding:25px;width:min(510px,calc(100vw - 24px));max-height:92vh;color:#183547;box-shadow:0 20px 90px #0b27385c}dialog::backdrop{background:#0824368c;backdrop-filter:blur(2px)}.dialogHeading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialogHeading button{border:0;border-radius:4px;background:#edf2f6;font-size:26px;width:34px;color:#456170}.receiptInfo{font-size:13px;line-height:1.6;color:#718795}#globalMessage:not(:empty){padding:12px 16px;background:#fff4d3;border-left:3px solid #c79220;margin-bottom:15px;font-size:14px}#entryMessage,#openingMessage{font-size:14px;line-height:1.6}.receipt{width:72mm;margin:15px auto;color:#000;background:#fff;font-family:'Lucida Console','Courier New',monospace;padding:3mm 0;font-size:9px}.receipt h3{text-align:center;font-size:13px;line-height:1.5;margin:0 0 5px;white-space:nowrap}.receipt .subtitles{display:flex;justify-content:space-between;font-size:12px;font-weight:bold;margin-bottom:5px}.receipt table{white-space:normal;font-family:inherit;font-size:10px;table-layout:fixed}.receipt td{padding:5px 0 3px;border-bottom:1px solid #000;color:#000;font-size:10px;text-align:left!important;overflow-wrap:anywhere}.receipt td:first-child{width:45%}.receipt tr.large td{font-size:13px}.receipt tr.large td:last-child{font-weight:bold}.receipt .infoRow{display:grid;grid-template-columns:45% 55%;font-size:9px;margin-top:14px;line-height:1.7;overflow-wrap:anywhere}.receipt .disclaimer{font-size:9px;margin-top:14px;line-height:1.7}.receipt .example{font-size:10px;text-align:center;border:1px dashed #555;padding:5px;margin-bottom:8px}#printArea{display:none}#receiptPreview{border:1px solid #d8e1e7;background:white;box-shadow:0 2px 7px #0001;margin-bottom:20px}button:disabled{opacity:.55;cursor:wait}@media(max-width:780px){.headerRight{gap:7px;font-size:11px}.tabs{gap:0}.tabs button{padding:15px 10px;font-size:14px}.toolbar{align-items:stretch;flex-direction:column}.heading h1{font-size:26px}.compact{padding:11px 12px;font-size:14px}.openingInputs{grid-template-columns:1fr 1fr}.daycontrol input{flex:1}.daycontrol{width:100%}.sheetHeading{padding:15px}.receipt{max-width:100%}.balances strong{font-size:21px}}@page{size:80mm 160mm;margin:3mm}@media print{html,body{margin:0!important;padding:0!important;background:white!important;color:black!important}body>header,body>main,body>dialog{display:none!important}#printArea{display:block!important;width:72mm;margin:0!important}.receipt{margin:0!important;padding:0!important;width:72mm;break-inside:avoid}.noPrint{display:none!important}}

main{max-width:1500px}.excel{min-width:1300px}.excel th:nth-child(4n){width:auto}

.entryHint{font-size:14px;color:#587565}.excel .entryCell{padding:0}.gridInput{margin:0;border:1px solid transparent;border-radius:0;width:100%;height:36px;padding:7px 5px;background:transparent;font-size:14px;color:#172d1e;text-align:right;font-variant-numeric:tabular-nums}.gridInput::placeholder{color:#64794f;font-size:12px;opacity:.7}.gridInput:focus{outline:2px solid #257549;outline-offset:-2px;background:#fff}.gridInput:disabled{cursor:not-allowed;opacity:.4}.cellSave{border:1px solid #b4c6a0;border-radius:4px;background:#ffffffb8;color:#235f42;padding:3px 7px;font-size:16px;line-height:1.3}.cellSave:hover{background:#fff}.draftTotal{font-variant-numeric:tabular-nums}@media(max-width:780px){.entryHint{font-size:12px;max-width:130px;text-align:right}} 

.gridInput:not(:disabled){cursor:text;background:#ffffff38}.gridInput:not(:disabled):hover{background:#ffffff95}.gridInput:not(:disabled):focus{background:white}.cellSave:disabled{cursor:wait}

.excel{min-width:1380px}.cellSave,.fiş{font-size:12px;padding:6px 5px;white-space:nowrap;min-width:53px}

.rowStatus{display:block;font-size:10px;line-height:1.4;margin-top:3px;color:#426e45}.rowStatus.negative{color:#ac2626}#openReceiptTab{display:inline-block;text-decoration:none;margin-bottom:16px;cursor:pointer}.entryHint{max-width:240px}

.pdfDownload{display:block;text-align:center;background:#125e48;color:white;font-weight:700;margin:14px 0;text-decoration:none;font-size:16px} @media print{dialog::backdrop{display:none!important}}

.syncBar{display:flex;justify-content:space-between;gap:16px;padding:10px 14px;background:#e7f4ee;color:#15583f;border:1px solid #bedbc9;border-radius:6px;font-size:14px;margin-bottom:18px}.payments{margin-top:24px}.paymentForm{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.paymentForm .wide{grid-column:1/-1}.paymentActions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.paymentFilters{display:flex;gap:18px;align-items:end;margin:26px 0 18px}.paymentFilters input{width:170px}.paymentFilters strong{margin-left:auto;padding-bottom:12px}.paymentNote{white-space:normal;min-width:180px;overflow-wrap:anywhere}.payments td small{display:block;color:#667785}#paymentMessage{font-size:14px}#rowConflict p{margin-top:0}@media(max-width:780px){.paymentForm{grid-template-columns:1fr 1fr}.paymentFilters,.syncBar{flex-wrap:wrap}.paymentFilters strong{margin-left:0}.paymentActions{align-items:stretch}}@media(max-width:480px){.paymentForm{grid-template-columns:1fr}}

.recurringManager{margin:18px 0 24px;padding:18px;border:1px solid #dbe4e9;border-radius:8px;background:#f9fbfc}.recurringManager h3{margin:0 0 5px}.recurringManager>p{margin:0 0 12px}.recurringRows{display:grid;gap:8px}.recurringRow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;background:white;border:1px solid #e2e9ed;border-radius:7px}.recurringRow span,.recurringRow small{display:block;color:#657b89;font-size:13px;margin-top:4px}.paymentReminder{position:fixed;z-index:1000;right:22px;bottom:22px;width:min(360px,calc(100vw - 28px));max-height:min(78vh,680px);overflow:auto;color:#173548;background:#fff;border:1px solid #d6e0e6;border-radius:12px;box-shadow:0 12px 40px #102a3b38}.reminderHeading{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;background:#fff4d9;border-bottom:1px solid #f0dfb5}.reminderClose{width:30px;height:30px;border:0;border-radius:50%;background:#f3e6c5;font-size:20px;color:#57451f}.reminderItem{padding:13px 15px;border-bottom:1px solid #e8edf0}.reminderItem strong,.reminderItem span,.reminderItem small{display:block}.reminderItem span{margin-top:4px;font-size:14px}.reminderItem small{margin-top:4px;color:#9b5a13}.reminderActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.reminderActions button{padding:9px 11px}.reminderDateLabel{display:block;margin-top:10px}.reminderDateLabel input{margin-top:4px}.reminderPill{display:flex;align-items:center;gap:8px;padding:10px 14px;margin-left:auto;border:1px solid #c58b2b;border-radius:24px;background:#fff6df;color:#68460b;font-weight:700;box-shadow:0 6px 22px #102a3b2b}.reminderDot{width:9px;height:9px;border-radius:50%;background:#d38d18;box-shadow:0 0 0 4px #f6e1b8}.paymentPeriods{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.paymentPeriods button[aria-pressed=true]{background:#173548;color:white;border-color:#173548}.paymentHistorySummary{display:flex;justify-content:space-between;align-items:center;padding:12px 0;color:#526a78}.paymentComplete td{background:#e6f5eb;color:#17583c}.paymentPending td{background:#fff7e4}.paidMark{display:inline-block;padding:5px 8px;border-radius:14px;background:#d6efdf;color:#14643c;font-size:12px;font-weight:700}.pendingMark{display:inline-block;padding:5px 8px;border-radius:14px;background:#ffefc7;color:#815d11;font-size:12px;font-weight:700}.paymentHistorySummary strong{color:#145e46}@media(max-width:480px){.tabs{flex-wrap:wrap}.tabs button{flex:1 1 auto}.paymentReminder{right:10px;bottom:10px;width:calc(100vw - 20px)}.recurringRow{align-items:flex-start}}
.balances{grid-template-columns:repeat(3,minmax(0,1fr))}.ratePanel{display:flex;gap:24px;padding:18px 22px;border:1px solid #b8cdd9;background:#fff;margin:20px 0;border-radius:8px;align-items:center}.ratePanel h2{font-size:18px}.rateQuote{display:grid;grid-template-columns:1fr 1fr;gap:8px 22px;flex:1;font-size:14px}.rateQuote>b,.rateQuote>small{grid-column:1/-1}.rateQuote strong{display:block;font-size:22px;color:#145b43}.ratePanel small{font-size:12px}.methodBadge{padding:10px;color:#205d46;font-weight:700}.methodBadge small{font-weight:400}@media(max-width:700px){.ratePanel{flex-wrap:wrap}.ratePanel>div:first-child{width:100%}.balances{grid-template-columns:1fr}}

.rateHint{font-size:12px;max-width:230px;color:#607785;line-height:1.5}

.rateTabs{display:flex;gap:6px;margin:8px 0}.rateTabs button{font-size:14px;padding:7px 10px;border:1px solid #a6bdca;border-radius:5px;background:#fff;color:#173548}.rateTabs button[aria-selected="true"]{background:#173548;color:white}.rateHint a{color:#245c78}.ratePanel{margin-top:12px}.ratePanel>div:first-child{max-width:350px}@media print{.ratePanel{display:none}}

.loginPage{min-height:100vh;background:#0c2638;display:flex;align-items:center;justify-content:center;padding:24px}.loginCard{width:min(460px,100%);margin:0;background:white;border-radius:14px;padding:32px}.loginCard h1{font-size:28px}.loginCard p{font-size:14px;line-height:1.6;color:#486275}.loginCard label{margin-top:18px}.loginBrand{color:#125e48;font-size:22px;font-weight:800;margin-bottom:26px}.headerRight a{text-decoration:none}#loginAgain{display:block;color:#8c3500;padding:12px}

.balances{grid-template-columns:repeat(5,minmax(0,1fr))}.balance strong{font-size:clamp(18px,2vw,28px);overflow-wrap:anywhere}.totalBalance{background:#e5f4ec;border:2px solid #26765a}#deviceBudgetForm{max-width:600px}@media(max-width:900px){.balances{grid-template-columns:repeat(2,minmax(0,1fr))}.totalBalance{grid-column:1/-1}}@media(max-width:480px){.balances{grid-template-columns:1fr}}
.inlineEdit{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:14px 0;padding:14px;background:#f5f9fb;border:1px solid #dbe4e9;border-radius:8px}.inlineEdit label{min-width:180px}.inlineEdit span{font-size:14px}.reminderItem input[type=number]{width:100%;margin-top:4px}.reminderNote{color:#526a78;margin-top:6px!important}.reminderDismiss{margin-left:auto}.dailyReminder{border-left:4px solid #b77a18}.dailyReminder .reminderHeading{background:#fff4d9}
