/* KG Finance: shared accessible blue-and-white theme. */
:root{--purple:#1260c7;--purple-dark:#08499f;--purple-light:#e6f1ff;--text:#172c4b;--muted:#536a85;--line:#d7e4f2;--bg:#f2f7fd;--ink:#172c4b;--green:#16765b}body{background:#f2f7fd;color:#172c4b;font-size:14px}.brand strong,.c-brand{color:#12396b}.brand>.icon,.c-brand>svg{background:#1260c7;color:#fff}.brand strong span,.c-brand small{color:#476687}.brand strong:before,.c-brand>div:before{content:'KG ';font-weight:800;color:#1260c7}.sidebar{background:#fff;border-right-color:#ccddf0;width:245px}.main-shell{margin-left:245px}.topbar,.c-header{background:#fff;border-bottom-color:#ccddf0}.topbar{padding-left:30px;padding-right:30px}.workspace{background:#edf5ff;border-color:#cbdff6}.workspace-icon,.avatar,.user-avatar{background:#dcecff;color:#1257a8}.workspace b,.profile b{color:#143b69;font-size:12px}.workspace small,.profile small{color:#506b8a;font-size:11px}.nav-label{font-size:11px;color:#55708d}.nav-item{font-size:13px;color:#385574;padding:12px}.nav-item.active{background:#e5f0ff;color:#0957b3;font-weight:700}.nav-item:hover{background:#edf5ff}.nav-item.active:before{background:#1260c7}.nav-item em,.count{background:#d9eaff;color:#15599e}.local-note{color:#35567b}.local-note small{color:#5b708a;font-size:10px}.local-note>.icon{color:#1260c7}.breadcrumb{color:#536b88;font-size:12px}.breadcrumb b{color:#173d6c}.breadcrumb span{color:#95adca}.preview-label,.demo-pill{color:#426383;font-size:11px}.icon-button,.icon-btn{color:#365d8a}.page-heading h1,.c-page-heading h1{color:#12365f;font-weight:700;font-size:29px}.page-heading p,.c-page-heading p{color:#4b6583;font-size:13px;line-height:1.8}.eyebrow{color:#326eae;font-size:10px}.btn,.primary,.secondary{font-size:12px;font-weight:600;border-radius:6px}.primary,.btn.primary,.kg-button{background:#1260c7;color:#fff;border-color:#1260c7}.primary:hover,.btn.primary:hover,.kg-button:hover{background:#084fa9}.secondary,.btn.secondary{background:#fff;border:1px solid #b8cee7;color:#205184}.secondary:hover,.btn.secondary:hover{background:#edf5ff}.date-chip{color:#355a82;border-color:#c8dbee;background:#fff;font-size:12px}.date-chip>.icon{color:#1260c7}.tag,.tag.neutral{background:#edf5ff;color:#185a9b;border-color:#c4dbf4}.section-title,.stats-heading h2{font-size:14px;color:#183b67}.section-title>.muted,.compact-select,.stats-heading small{color:#536f8e;font-size:11px}.stat-card,.card,.panel,.c-stats article{border-color:#d5e3f2;box-shadow:0 2px 6px #194d8504}.stat-top,.c-stats article>div{color:#385776;font-size:13px}.stat-card>strong,.c-stats article>strong{color:#123761;font-size:29px;font-weight:650}.stat-card>small,.c-stats article>small{color:#526c89;font-size:11px}.currency-label,.c-stats article>small b{color:#365779}.stat-icon,.c-stats article svg{background:#e8f2ff;color:#2867b2}.stat-icon.blue{background:#e7f2ff;color:#2667ad}.stat-icon.teal{background:#e5f4ee;color:#21785d}.stat-icon.orange{background:#fff3df;color:#996217}.card-heading h2,.panel-heading h2,.quick-card h2,.account-card h2{color:#173b68;font-size:15px;font-weight:650}.card-heading p,.panel-heading p{color:#526e8b;font-size:11px}.legend{font-size:11px;color:#4e6783}.legend i{background:#1260c7}.legend .pale{background:#80b4ee}.trend-chart text{fill:#607892}.trend-chart polyline:not([stroke-dasharray]){stroke:#1260c7}.trend-chart polyline[stroke-dasharray]{stroke:#7cacdf}.trend-chart circle{stroke:#1260c7}.donut-number{fill:#123b69}.donut-label{fill:#536f90}.donut-legend>div{color:#3c587a;font-size:11px}.donut-legend b{color:#1c4373;font-size:12px}.todo-card,.support-card{background:#e7f1ff;border-color:#cbdff7;color:#1e568f}.todo-card strong{color:#104b91}.todo-card span,.todo-card>a{color:#315f91;font-size:12px}.todo-card>a{border-color:#c4daf3}.todo-symbol{color:#1260c7;background:#d3e6ff}.todo-card strong small{color:#446a94}.quick-grid button{color:#285583;font-size:12px}.quick-grid button .icon{background:#edf5ff;color:#2366b2}.c-table-wrap table,.table-wrap table{font-size:13px}th{background:#eaf3ff;color:#234c7c;font-size:12px;font-weight:650;padding-top:14px;padding-bottom:14px;border-color:#d0e1f4}td{color:#2b4666;font-size:13px;border-color:#e0eaf5;padding-top:17px;padding-bottom:17px}tbody>tr:nth-child(even){background:#f4f8fe}tbody>tr:hover{background:#ebf3ff}td b{color:#183d6c;font-size:13px;font-weight:550}td small{color:#58708c;font-size:11px}.amount,.num{color:#123e73;font-size:14px;font-weight:650}.amount.income,.positive{color:#167459}.amount small,.num small{font-size:11px;color:#53718e;font-weight:450}.direction{font-size:12px}.direction.in{color:#167459}.direction.out{color:#50647b}.badge,.c-badge{font-size:11px;font-weight:550;padding:5px 8px}.badge.green,.c-badge.good{color:#146c50;background:#e5f4ed}.badge.amber,.c-badge.pending{color:#8f5a10;background:#fff2d9}.badge.red,.c-badge.bad{color:#a3374b;background:#fbe9ed}.badge.gray{color:#516379;background:#eaf0f7}.c-badge.neutral{color:#155aa6;background:#e7f1ff}.text-link,.link-button,.record-link{color:#095cb9;font-size:12px;font-weight:550}.record-id,.record-code{color:#275b93;font-size:12px}.text-link:hover,.link-button:hover,.record-link:hover,.record-id:hover{text-decoration:underline}.muted,.subtle{color:#5a718c;font-size:12px}.table-foot,.table-footer{color:#526d88;font-size:11px;border-color:#dbe5f1}.search-field,.c-search{background:#fff;border-color:#bcd0e6}.search-field input,.c-search input{color:#1c3e68;font-size:13px}.search-field input::placeholder,.c-search input::placeholder{color:#647c98}.search-field>.icon,.c-search svg{color:#3970ae}.filters select,.c-filters select{font-size:12px;color:#315574;border-color:#bed2e9}.date-filter,.c-date-filters label{color:#4a6988;font-size:12px}.date-filter input,.c-date-filters input{font-size:12px;color:#244a73}.info-strip,.process-strip{background:#e8f2ff;border-color:#c7ddf4;color:#285988;font-size:12px}.info-strip>.icon{color:#1260c7}.process-strip>span{color:#2a5687;font-size:12px}.process-strip i{color:#1260c7}.role,.currency-pill{background:#eff6ff;border-color:#d1e2f6;color:#2b5b8e;font-size:11px}.entity-avatar,.file-symbol{background:#e5f1ff;color:#2465ad}.site-symbol{background:#e3efff;color:#2366b5}.site-card h2{color:#183c68;font-size:17px}.domain{color:#557292;font-size:12px}.site-info>span{color:#526d89;font-size:12px}.site-info b{color:#244c78}.site-bottom small{color:#58728f;font-size:11px}.upload-banner,.invoice-intro{background:#e8f2ff;border-color:#c7dcf4}.upload-banner h2,.invoice-intro h2{color:#174a83;font-size:16px}.upload-banner p,.invoice-intro p{color:#456e98;font-size:12px}.upload-illustration,.invoice-intro-icon{background:#d6e8ff;color:#1963b9}.rate-card small,.rate-card span:not(.currency-bubble){color:#526f8d;font-size:11px}.rate-card strong{color:#174574}.currency-bubble{background:#e5f0ff;color:#2363ac}.rate-generator label,.form-grid>label,#upload-form>label{color:#244d79;font-size:13px;font-weight:500}.rate-generator label small{color:#5b728d;font-size:11px}.form-grid input,.form-grid select,input,select{border-color:#b9cfe6;color:#183d69;font-size:13px;background:#fff}.rate-result,.settlement-preview,.detail-amount,.settlement-amount{background:#edf5ff;border-color:#c8dff6}.rate-result span,.rate-result small,.settlement-preview small,.settlement-preview>span,.detail-amount>span,.settlement-amount>small{color:#42698f;font-size:12px}.rate-result strong,.settlement-preview strong,.detail-amount strong,.settlement-amount strong{color:#15569d}.settlement-preview b{color:#244f81}.form-note,.invoice-notes,.invoice-entry-heading span{color:#4e6c8c;font-size:12px;line-height:1.9}.purple-text{color:#1260c7}.modal-heading h2,.c-dialog>header h2{color:#163f70}.modal-heading p,.c-dialog>header p{color:#54728e;font-size:12px}.modal-footer,.dialog-footer{background:#f4f8ff;border-color:#d6e4f5}.form-error,.error,.kg-mfa-error{color:#af2d43;font-size:13px}.dropzone,.file-picker{background:#eef6ff;border-color:#8ab6e7}.dropzone b,.file-picker>span{color:#205fa5;font-size:13px}.dropzone>svg,.file-picker>svg{color:#296cb9}.dropzone span{color:#50749a;font-size:12px}.detail-list dt,.detail-grid dt{color:#4a6a8c}.detail-list dd,.detail-grid dd{color:#1d4877}.detail-list>div,.detail-grid{font-size:13px}.linked-items>div,.activity-list>div{color:#2e5885;font-size:12px}.linked-items small,.activity-list small{color:#5b7794;font-size:11px}.attachment{color:#1c5a9d;background:#edf5ff;font-size:12px}.empty,.c-empty{color:#5e7b9d}.empty h3,.c-empty h3{color:#2d5787}.empty p,.c-empty p{color:#567592;font-size:12px}.page-footer,.c-main>footer{color:#587493;font-size:10px}.kg-language{display:inline-flex;align-items:center;gap:4px;color:#2362a7}.kg-language select{padding:7px 8px;font-size:12px;max-width:125px;border-color:#c3d7ef}.login-panel{position:relative}.login-panel>.kg-language{position:absolute;right:30px;top:25px}.login-story{background:linear-gradient(145deg,#063d83,#0d60bd 65%,#1b7ad8);color:white}.login-story .brand strong,.login-story .c-brand{color:white}.login-story .brand strong:before,.login-story .c-brand>div:before{color:#8bc5ff}.login-story .brand strong span,.login-story .c-brand small{color:#d3e8ff}.login-copy h1,.story-copy h1{color:white}.login-copy>.eyebrow,.story-copy>.eyebrow{color:#bcddff}.login-copy>p,.story-copy>p{color:#e0edff;font-size:14px}.login-footer,.story-footer{color:#c6e1ff}.art-circle{background:#2976c8}.art-card{background:#fff;border-color:#e0edff}.art-card>small{color:#426b94}.art-card>strong{color:#16549c}.art-card>span{color:#3a6795}.mini-bars i{background:#4389d8}.mini-bars i:nth-child(2n){background:#b3d4fa}.art-chip{color:#255d98}.login-box h2{color:#133f73}.login-box>p{color:#476b91;font-size:13px}.login-box label{color:#254d79;font-size:13px}.login-box input{color:#1e436e;font-size:14px;border-color:#b8cee5}.demo-note,.demo-details{background:#edf5ff;border-color:#d0e2f7;color:#456a91;font-size:12px}.demo-note b,.demo-details strong{color:#1b558e}.demo-details p{color:#4f7195;font-size:11px}.login-modules,.login-bottom{color:#557493;font-size:11px}.story-invoice{background:#ffffff12;border-color:#89bbef66}.story-card-top,.story-invoice>small,.story-invoice em,.art-line,.story-card-foot{color:#d3e9ff}.story-invoice>strong{color:white}.story-invoice>strong>span{color:#bddfff}.art-line i{background:linear-gradient(90deg,#c2e4ff,#6bb6ff88)}.story-features b{color:#fff;font-size:12px}.story-features small{color:#c9e1fc;font-size:11px}.story-features svg{color:#b6dcff}.login-mark{background:#e4f1ff;color:#1260c7}.language{color:#2c6097}.language select{color:#244f7f;font-size:12px}.admin-link{color:#1260c7;font-size:12px}.c-nav{border-color:#c8dbf0}.c-nav button{font-size:13px;color:#3a5c82}.c-nav button.active{color:#0757b1;border-bottom-color:#1260c7}.c-nav em{background:#dcecff;color:#155eaa}.c-hero{background:linear-gradient(115deg,#073e83,#1261bc 70%,#2783d9);border-color:#1a5fa9}.c-hero h1{color:#fff;font-weight:550}.c-hero h1 span{color:#d2e9ff}.c-hero p{color:#dcecff;font-size:13px}.c-hero .eyebrow,.hero-date{color:#b9dcff}.hero-button{background:#ffffff17;color:white;border-color:#9bc9f675;font-size:12px}.hero-orbit>div{color:#cbe5ff}.header-account b{color:#1e4d7f}.header-account small{color:#58769a}.account-identity b{color:#204c7d;font-size:14px}.account-identity small,.account-card dt{color:#5d7896;font-size:12px}.account-card dd{color:#2a527f;font-size:12px}.support-card h3{color:#1a518d;font-size:14px}.support-card p{color:#456d96;font-size:12px}.support-card>svg{color:#1260c7}.client-invoice{color:#183b65}.client-invoice h1{color:#174b82}.invoice-brand{color:#1c60a9}.invoice-brand span,.invoice-info,.invoice-info span{color:#4d7398}.invoice-info strong{color:#174d82}.client-invoice th,.client-invoice td{color:#244b75}.client-invoice th{background:#e9f3ff}.client-invoice tr:nth-child(even):not(.invoice-sum){background:#f4f8ff}.invoice-sum.grand th,.invoice-sum.grand td{background:#e3efff!important;color:#104c94}.invoice-footnote{color:#536f8e}.invoice-document{color:#172d4b}.invoice-grand-preview{background:#eaf3ff;border-color:#c7dff8}.invoice-grand-preview small{color:#456d96}.invoice-grand-preview strong{color:#125ba9}.invoice-preview,.invoice-scroll{background:#eff5fc}.invoice-fineprint{color:#5c708a}#toast,#client-toast{background:#0a3e7b;color:#fff;border-color:#1c61ae}.kg-security-card{display:flex;gap:25px;border:1px solid #c8ddf4;border-radius:10px;background:#fff;padding:32px;max-width:900px;box-shadow:0 5px 20px #134e8d05}.kg-security-card h2{font-size:22px;color:#123f76;margin:0 0 10px}.kg-security-card p{color:#456687;line-height:1.9;font-size:14px}.kg-shield{width:72px;height:72px;background:#e3f0ff;border-radius:18px;display:grid;place-items:center;color:#1055a1;font-size:16px;font-weight:750;flex-shrink:0}.kg-status{display:inline-block;font-size:12px;font-weight:600;background:#edf2f8;color:#49617e;padding:5px 9px;border-radius:5px}.kg-status.on{background:#e0f3e9;color:#12684e}.kg-button{border:1px solid #1260c7;border-radius:6px;padding:11px 17px;font-size:13px;font-weight:600;cursor:pointer}.kg-button.outline{background:white;color:#195d9f;margin-left:9px}.kg-button:disabled{opacity:.5}#kg-mfa-overlay{position:fixed;inset:0;background:#0c284957;backdrop-filter:blur(3px);z-index:300;display:flex;align-items:center;justify-content:center;padding:20px}.kg-mfa-dialog{max-width:100%;width:520px;max-height:92vh;overflow:auto;background:white;border-radius:12px;box-shadow:0 20px 80px #08264b40}.kg-mfa-dialog header{display:flex;align-items:flex-start;justify-content:space-between;padding:23px 25px;border-bottom:1px solid #d5e4f4;gap:14px}.kg-mfa-dialog h2{font-size:19px;margin:0;color:#163f6d}.kg-mfa-close{border:0;background:transparent;font-size:25px;line-height:1;color:#476988;padding:2px 5px}.kg-mfa-body{padding:24px 26px;color:#355778;font-size:13px}.kg-mfa-body p{line-height:1.9;margin:0 0 18px}.kg-mfa-body label{display:grid;gap:9px;margin:18px 0;color:#1e4b7a;font-size:13px}.kg-mfa-body input{padding:12px;font-size:15px;border:1px solid #a9c4e1;border-radius:6px;width:100%}.kg-qr{display:block;width:235px;height:235px;max-width:100%;background:white;margin:0 auto 18px}.kg-secret{display:block;padding:13px;background:#edf5ff;border:1px solid #c9def6;color:#164e8c;word-break:break-all;border-radius:6px;font-size:14px;user-select:all}.kg-help{font-size:12px;margin-top:14px!important;color:#59728e}.kg-recovery{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.kg-recovery code{padding:10px 8px;background:#edf5ff;border:1px solid #ccdef3;border-radius:5px;color:#16528e;font-size:12px;user-select:all}
@media(max-width:1200px){.sidebar{width:220px}.main-shell{margin-left:220px}.top-right{gap:12px}.topbar{padding:0 24px}.stat-card>strong,.c-stats article>strong{font-size:25px}}
@media(max-width:960px){.sidebar{width:210px}.main-shell{margin-left:210px}.top-right .preview-label,.top-right .top-divider{display:none}.kg-language select{max-width:110px}.c-stats article>strong{font-size:23px}.nav-item{font-size:12px}}
@media(max-width:720px){.sidebar{width:245px}.main-shell{margin-left:0}.topbar{padding:0 14px;gap:8px}.breadcrumb{font-size:10px;gap:6px;max-width:120px}.top-right{gap:8px}.top-right>.avatar{display:none}.kg-language select{max-width:105px;font-size:11px;padding:6px}.page-heading h1,.c-page-heading h1{font-size:25px}.page-heading p,.c-page-heading p{font-size:12px}.stat-card>strong,.c-stats article>strong{font-size:24px}.stat-top,.c-stats article>div{font-size:12px}.stat-card>small,.c-stats article>small{font-size:10px}.c-brand{font-size:19px}.brand strong{font-size:24px}.language select{font-size:11px;max-width:105px}.c-nav button{font-size:12px}.c-hero p{font-size:12px}.kg-security-card{padding:22px;gap:15px;flex-direction:column}.kg-shield{width:52px;height:52px;font-size:12px;border-radius:12px}.kg-security-card h2{font-size:20px}.kg-security-card p{font-size:13px}.kg-mfa-body{padding:22px 20px}.kg-mfa-dialog header{padding:20px}.kg-mfa-dialog h2{font-size:17px}.kg-button{font-size:12px}.kg-recovery{gap:7px}.kg-recovery code{font-size:10px}.kg-button.outline{margin-left:0;margin-top:10px}.info-strip,.process-strip{font-size:11px}.c-page-heading>.primary,.c-page-heading>.secondary{font-size:11px}}

.invoice-register{margin-bottom:24px}.invoice-register .text-link{margin-right:15px}.import-summary{margin:20px 0}.import-summary>.form-grid{margin:15px 0}.import-summary strong{display:block;margin-top:6px}.import-summary .table-wrap{max-height:330px;overflow:auto}.import-reviewed{display:flex!important;align-items:center;gap:10px;margin:20px 0}.import-reviewed input{width:18px!important}.invoice-entry input[type=checkbox]{width:18px}.invoice-form-body>label{display:grid;gap:10px;margin-bottom:12px}

.production .demo-note,.production .demo-details,.production .demo-pill,.production .login-art,.production .story-invoice{display:none!important}.production .c-main>footer>span:last-child{display:none}.production .login-story .story-features{margin-top:50px}
