/* Maiylon Cashbook reference presentation, adapted to Bright Link ledger DOM. */
@media screen and (max-width:800px){
 body.mcb-open .mcb{--accent:#5142e5;font-family:Arial,-apple-system,BlinkMacSystemFont,sans-serif!important;background:#f5f5f5!important;color:#242424!important}
 body.mcb-open .mcb .mcb-sticky-top{padding-bottom:0!important;background:#fff}
 body.mcb-open .mcb .mcb-head{min-height:76px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px!important;gap:10px}
 body.mcb-open .mcb .mcb-head h1{font:700 22px Arial,sans-serif!important;color:#142d50!important}
 body.mcb-open .mcb .mcb-search{border:0!important;border-bottom:1px solid #e5e5e5!important;border-radius:0!important;margin:0!important;padding:10px 20px!important;min-height:64px;background:white!important;box-shadow:none!important}
 body.mcb-open .mcb .mcb-search input{font-size:17px!important;color:#242424!important;-webkit-text-fill-color:#242424!important}
 body.mcb-open .mcb .mcb-search input::placeholder{color:#797979!important;-webkit-text-fill-color:#797979!important}
 body.mcb-open .mcb .mcb-search>span{color:#5142e5!important}
 body.mcb-open .mcb .mcb-filters{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:9px;padding:16px!important;scrollbar-width:none}
 body.mcb-open .mcb .mcb-filters .mcb-button{display:flex;gap:12px;align-items:center;border:1px solid #dedede;border-radius:30px;background:#fff;color:#242424;font-size:14px;font-weight:400;min-height:36px;padding:7px 14px;max-width:none}
 body.mcb-open .mcb .mcb-filters .mcb-filter-trigger{color:#5142e5;font-size:21px;padding:4px 14px}
 body.mcb-open .mcb .mcb-summary{margin:0 16px 22px;background:#fff;border-radius:14px;box-shadow:0 2px 3px #00000004}
 body.mcb-open .mcb .mcb-summary>div{padding:12px 16px;font-size:16px;color:#242424;gap:8px}
 body.mcb-open .mcb .mcb-summary>div:first-child{padding:16px;border-bottom:1px solid #ededed;margin-bottom:5px}
 body.mcb-open .mcb .mcb-summary strong{font-size:17px;color:#242424!important}
 body.mcb-open .mcb .mcb-summary>.mcb-button{color:#5142e5;font-size:17px;min-height:50px;border-top-color:#ededed}
 body.mcb-open .mcb .mcb-count{color:#777!important;font-size:13px;margin:24px 16px 16px}
 body.mcb-open .mcb .mcb-date{color:#777!important;font-size:14px;font-weight:400;margin:18px 16px 14px}
 body.mcb-open .mcb .mcb-entry{padding:20px 16px 12px;margin-bottom:8px;color:#242424!important;background:white!important}
 body.mcb-open .mcb .mcb-entry-top{grid-template-columns:minmax(0,1fr) minmax(115px,auto);gap:8px}
 body.mcb-open .mcb .mcb-tag{background:#efedf9;color:#5343af;font:12px Arial,sans-serif;padding:5px 11px;border-radius:24px;max-width:100%}
 body.mcb-open .mcb .mcb-tag.mode{background:#e8f4f8;color:#167ba4}
 body.mcb-open .mcb .mcb-amount b{font-size:18px}
 body.mcb-open .mcb .mcb-amount small{color:#777!important;font-size:11px;margin-top:8px;white-space:normal}
 body.mcb-open .mcb .mcb-entry p{font-size:15px!important;color:#242424!important;margin:22px 0 10px!important}
 body.mcb-open .mcb .mcb-entry>small{font-size:13px;color:#777!important}
 body.mcb-open .mcb .mcb-entry footer{margin-top:18px;border-top:1px solid #ececec;font-size:12px;color:#167ba4;padding-top:13px}
 body.mcb-open .mcb .mcb-bottom{padding:14px 16px calc(20px + env(safe-area-inset-bottom));gap:16px;border-top-color:#ececec}
 body.mcb-open .mcb .mcb-bottom .mcb-button{border-radius:14px;font-size:21px;font-weight:600;min-height:54px}
 body.mcb-open .mcb .mcb-summary strong.mcb-in{color:#147c48!important}
 body.mcb-open .mcb .mcb-summary strong.mcb-out{color:#c13b3e!important}
 body.mcb-open .mcb .mcb-filters .mcb-filter-selected{color:#5142e5;border-color:#5142e5;background:#f0edff;max-width:200px;overflow:hidden;text-overflow:ellipsis;display:block}
 body.mcb-open .mcb .mcb-filters{align-items:center;justify-content:flex-start;gap:8px;padding:10px 16px!important}
 body.mcb-open .mcb .mcb-filters .mcb-button{height:34px!important;min-height:34px!important;max-height:34px!important;padding:5px 12px!important;border-width:1px;border-radius:18px;line-height:22px!important;font-size:13px!important;font-weight:400;gap:10px;flex-shrink:0;white-space:nowrap}
 body.mcb-open .mcb .mcb-filters .mcb-filter-trigger{width:36px;padding:4px 9px!important;font-size:18px!important}
}
@media screen and (max-width:800px){
 body.mcb-open .mcb-filters{flex-wrap:wrap!important;overflow:visible!important}.mcb-quick-filter{flex:0 1 auto!important}.mcb-quick-filter select{height:34px!important;min-height:34px!important;padding:5px 12px!important;border-radius:18px!important;font-size:16px!important;background:#fff!important;color:#242424!important}
 .mcb-dialog,.mcb-full,.mcb-sheet{font-family:Arial,-apple-system,BlinkMacSystemFont,sans-serif!important;color:#242424!important;--text:#242424;--muted:#777;--accent:#5142e5}
 #overlay .mcb-full .modal-head{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;min-height:70px;padding:calc(12px + env(safe-area-inset-top)) 12px 12px!important;border-bottom-color:#eee}
 #overlay .mcb-full .modal-head h2{font:600 20px/1.3 Arial,sans-serif!important;text-align:center;letter-spacing:0;color:#242424!important}
 #overlay .mcb-cash-in .modal-head h2{color:#197d48!important}#overlay .mcb-cash-out .modal-head h2{color:#c13b3e!important}
 #overlay .mcb-full .modal-head .mcb-focus-guard{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important}
 .mcb-entry-settings{border:0!important;padding:0!important;width:44px;height:44px;color:#5142e5!important;font-size:26px!important}
 #overlay .mcb-entry-screen .modal-body{padding:0!important;overflow:hidden!important;display:flex;min-height:0}
 .mcb-entry-screen .mcb-dialog{display:flex;flex:1;min-height:0}
 #mcb-form{display:flex;flex-direction:column;min-height:0;flex:1;margin:0}
 #mcb-form .mcb-entry-pinned{flex:none;display:flex;flex-direction:column;gap:14px;padding:12px 16px 14px;border-bottom:1px solid #eee;background:#fff}
 #mcb-form .mcb-entry-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:14px 16px 28px;display:flex;flex-direction:column;gap:22px}
 #mcb-form .mcb-entry-scroll>*{flex-shrink:0;margin:0}
 #mcb-form .mcb-datetime{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;min-height:52px}
 #mcb-form .mcb-datetime>label{display:flex;flex-direction:row;align-items:center;border:1px solid #d8dce8;border-radius:12px;padding-left:12px;background:#fafbff;overflow:hidden;gap:0}
 #mcb-form .mcb-datetime svg{color:#5142e5;width:20px;height:20px}
 #mcb-form .mcb-datetime input{border:0!important;background:transparent!important;padding:12px 6px!important;font-size:14px!important;min-height:48px;border-radius:0!important;color:#242424!important}
 #mcb-form .mcb-field{margin:0;gap:8px;font-size:14px}
 #mcb-form .mcb-remark{position:relative;top:auto;padding:0;box-shadow:none}
 #mcb-form :is(input,select,textarea){font-family:Arial,sans-serif!important;border:1px solid #ddd!important;border-radius:8px!important;color:#242424!important;padding:14px 16px!important;box-shadow:none!important}
 #mcb-form input[name=amount]{font-size:16px!important;min-height:48px!important;padding:10px 14px!important}
 #mcb-form[data-direction=in] input[name=amount]{color:#197d48!important;-webkit-text-fill-color:#197d48!important}
 #mcb-form[data-direction=out] input[name=amount]{color:#c13b3e!important;-webkit-text-fill-color:#c13b3e!important}
 #mcb-form textarea{height:52px!important;min-height:52px!important;resize:none}
 #mcb-form ::placeholder{color:#909090!important;-webkit-text-fill-color:#909090!important}
 #mcb-form .mcb-upload{width:fit-content;margin:0;border:1px solid #ddd;border-radius:8px;padding:7px 16px;min-height:38px;font:600 14px Arial;color:#5142e5;gap:10px}
 #mcb-form .mcb-upload .mcb-icon{width:24px;height:24px}
 #mcb-form fieldset{margin:0}#mcb-form legend{font:14px Arial;color:#777;margin-bottom:16px}
 #mcb-form .mcb-modes{display:flex;gap:10px;flex-wrap:wrap}#mcb-form .mcb-modes label{flex:0 0 auto}#mcb-form .mcb-modes span{padding:6px 14px;border-radius:24px;background:#e2e2e9;color:#242424;font:16px Arial}#mcb-form .mcb-modes input:checked+span{background:#5142e5;color:white}
 .mcb-more-fields summary{display:inline-block;list-style:none;border:1px solid #ddd;border-radius:8px;padding:9px 16px;color:#5142e5;font:600 14px Arial;cursor:pointer}.mcb-more-fields summary::-webkit-details-marker{display:none}.mcb-more-fields[open] summary{margin-bottom:16px}
 #mcb-attachments:empty,#mcb-error:empty{display:none}
 .mcb-dialog .mcb-button{color:#5142e5}.mcb-dialog .mcb-button.primary,#overlay .mcb-full .modal-footer .primary{background:#5142e5!important;border-color:#5142e5!important;color:white!important}
 #overlay .mcb-full .modal-footer{gap:14px;padding:16px 16px calc(16px + env(safe-area-inset-bottom))!important;border-color:#eee}
 #overlay .mcb-entry-screen .modal-footer .mcb-button{min-height:50px;font:600 16px Arial;border:1px solid #5142e5;border-radius:12px;background:white;color:#5142e5;padding:12px 16px;flex:1}
 .mcb-dialog .mcb-detail,.mcb-dialog .mcb-meta{background:#f5f5fc;border-color:#eee}.mcb-dialog .mcb-detail.out{border-top-color:#c13b3e}.mcb-dialog .mcb-detail.in{border-top-color:#197d48}
 .mcb-preview .receipt-image-editor{overflow:auto;background:white;color:#242424;border-radius:14px;padding:16px;min-height:0}.mcb-preview .receipt-image-editor>p,.mcb-preview .receipt-image-editor>small{color:#526078}.mcb-preview .receipt-crop-buttons .btn{background:#5142e5;color:white;border-color:#5142e5}
 @media(max-height:550px){#mcb-form .mcb-entry-pinned{gap:5px;padding:6px 16px}#mcb-form .mcb-entry-pinned :is(input,textarea){min-height:38px!important;height:38px!important;padding:6px 12px!important}#mcb-form .mcb-datetime{min-height:38px}}
}
