.rf-host #rf-operation.add-operation>section{width:560px;padding:18px 20px}
.rf-host #rf-operation.add-operation h3{display:flex;align-items:center;gap:7px;font-weight:650}
.rf-host #rf-operation .add-symbol{display:grid;place-items:center;background:#eef5ff;border:1px solid #dce9fb;color:#2d75d0;font-size:17px;border-radius:6px;width:26px;height:26px}
.rf-host #rf-operation .add-scope{display:flex;gap:9px;align-items:center;padding:10px;border:1px solid #e6edf6;border-radius:8px;margin:12px 0 0;background:#fbfdff;font-size:12px;color:#2d486a}
.rf-host #rf-operation .scope-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:#edf5ff;color:#4278ba;font-size:20px;flex-shrink:0}
.rf-host #rf-operation .add-scope>div{min-width:0;flex:1}
.rf-host .add-scope strong{display:block;font-weight:600;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.rf-host .add-scope small{display:block;margin-top:3px;font-size:10px;color:#758aa4}
.rf-host .add-scope small span{margin-left:8px;color:#8799b0}
.rf-host #rf-operation .scope-direction{font-size:10px;border-radius:5px;background:#eaf8f0;color:#228457;padding:3px 7px;white-space:nowrap}
.rf-host #rf-operation.expense .scope-direction{background:#fff0ef;color:#ba6570}
.rf-host #rf-operation.add-operation .operation-note{font-size:10px;background:transparent;padding:0;margin:8px 0 12px;line-height:1.7;color:#8394aa}
.rf-host #rf-add-form{color:#425873;font-size:12px}
.rf-host .form-section-title{font-weight:600;font-size:12px;color:#2d486a;border-bottom:1px solid #edf2f8;padding-bottom:8px;margin-bottom:10px}
.rf-host .add-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
.rf-host #rf-add-form label{font-size:11px;color:#647a94;min-width:0;display:block}
.rf-host #rf-add-form em{font-style:normal;color:#d16b71;font-size:10px}
.rf-host #rf-add-form select,.rf-host #rf-add-form input:not([type=file]),.rf-host #rf-add-form textarea{font-family:inherit;font-size:12px;display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:32px;border:1px solid #dce6f1;border-radius:6px;background:#fff;padding:7px 8px;color:#263e5c;margin-top:4px;outline:none}
.rf-host #rf-add-form input:focus,.rf-host #rf-add-form select:focus,.rf-host #rf-add-form textarea:focus{border-color:#90b5e8;box-shadow:0 0 0 2px #edf4ff}
.rf-host #rf-add-form .amount-input{position:relative}
.rf-host .amount-input>span{position:absolute;top:8px;left:9px;color:#7092bc;font-size:14px}
.rf-host #rf-add-form .amount-input input{padding-left:24px;font-weight:600;color:#294f80}
.rf-host #rf-add-form .period-label{font-size:11px;margin-top:12px;color:#647a94}
.rf-host #rf-add-form small{font-size:10px;color:#899bb1;font-weight:400}
.rf-host #rf-add-form .period-label small,.rf-host #rf-add-form .add-note small{margin-left:4px}
.rf-host .add-period{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}
.rf-host .add-period>span{font-size:10px;color:#8597ae;margin-top:4px}
.rf-host #rf-add-form .add-note{margin-top:12px}
.rf-host #rf-add-form textarea{resize:vertical;min-height:54px;max-height:120px}
.rf-host .photo-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 7px;font-size:11px}
.rf-host .photo-heading small{margin-left:5px}
.rf-host #rf-operation .photo-heading button{min-height:24px;font-size:10px;border:0;padding:3px 6px;color:#3c78bf;background:#f2f7ff}
.rf-host .photo-area{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}
.rf-host #rf-draft-photos,.rf-host .saved-vouchers{display:flex;flex-wrap:wrap;gap:8px}
.rf-host #rf-add-form .photo-upload{width:60px;height:60px;box-sizing:border-box;border:1px dashed #c4d7ed;border-radius:7px;background:#fbfdff;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;position:relative;overflow:hidden;color:#6a8fb9}
.rf-host .photo-upload>span{font-size:21px}
.rf-host .photo-upload>small{font-size:9px!important}
.rf-host .photo-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.rf-host .voucher-tile{width:60px;position:relative;min-width:0}
.rf-host .voucher-tile>button:first-child{width:60px;height:60px;padding:0!important;overflow:hidden;border:1px solid #dce6f1!important;background:#f7faff!important;border-radius:7px;display:block;cursor:pointer}
.rf-host .voucher-tile img{width:100%;height:100%;object-fit:cover;display:block}
.rf-host .voucher-tile>span{display:block;font-size:9px;color:#8b9bae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px;line-height:14px}
.rf-host #rf-operation .voucher-tile .remove-photo{position:absolute;right:-4px;top:-4px;min-height:16px!important;height:16px;width:16px;padding:0;font-size:11px;line-height:14px;background:#fff;border-radius:50%;color:#af6571}
.rf-host .photo-hint{font-size:10px;color:#8b9bae;margin:7px 0 0;line-height:1.6}
.rf-host #rf-operation.add-operation footer{border-top:1px solid #edf2f8;padding-top:12px;margin-top:12px;align-items:center}
.rf-host #rf-operation.add-operation footer>span{margin-right:auto;font-size:10px;color:#8597ae}
.rf-host #rf-operation.add-operation footer button{font-size:11px;padding:5px 10px;min-height:30px}
.rf-host #rf-operation.expense .save-preview{background:#fff4f2;border-color:#f0dad5;color:#ad6456}
.rf-host #rf-error{background:#fff4f2;border:1px solid #f3d8d3;border-radius:6px;font-size:11px;line-height:1.6;color:#bb5b53;padding:7px 9px;margin:10px 0 0}
.rf-host.rf-mobile #rf-operation.add-operation{padding:12px}
.rf-host.rf-mobile #rf-operation.add-operation>section{width:366px;padding:14px}
.rf-host.rf-mobile .add-fields{gap:9px}
.rf-host.rf-mobile .add-period{gap:6px}
.rf-host.rf-mobile #rf-add-form input:not([type=file]){padding:6px;min-height:32px;font-size:11px}
.rf-host.rf-mobile #rf-add-form .amount-input input{padding-left:22px}
.rf-host.rf-mobile #rf-operation .add-scope{padding:8px;gap:7px}
.rf-host.rf-mobile .add-scope small span{margin-left:4px}
.rf-host.rf-mobile #rf-operation.add-operation .operation-note{margin-bottom:10px}
.rf-host.rf-mobile #rf-operation.add-operation footer{gap:6px}
.rf-host.rf-mobile #rf-operation.add-operation footer button{padding:5px 8px}
.rf-host #rf-voucher{position:fixed;inset:0;background:#1c314fbb;display:flex;align-items:center;justify-content:center;z-index:100040;padding:20px;box-sizing:border-box}
.rf-host #rf-voucher>section{background:#fff;border-radius:12px;max-width:620px;width:100%;padding:14px;box-sizing:border-box}
.rf-host #rf-voucher header{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#42607f;margin-bottom:10px}
.rf-host #rf-voucher button{border:1px solid #dce6f1;background:#fff;border-radius:6px;width:28px;height:28px;color:#748aa6;cursor:pointer}
.rf-host #rf-voucher img{display:block;max-height:65dvh;max-width:100%;margin:auto;object-fit:contain}
.rf-host #rf-voucher p{font-size:10px;color:#899bb1;margin:10px 0 0;text-align:center}
.rf-host.rf-mobile #rf-voucher>section{max-width:366px}
.rf-host.rf-mobile .bill-card .hf-r4{gap:6px}
.rf-host.rf-mobile .bill-card .bill-actions button{min-width:14px!important;width:14px;padding:0!important}
@media(max-width:380px){.rf-host.rf-mobile .bill-card .hf-r4{gap:3px}
}
.rf-host .bill-card{padding:0!important;margin:9px 0 0!important;border:0!important;border-radius:0!important;min-width:0}
.rf-host .bill-card .nrow{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #e0e9f4;border-radius:10px;background:#fff;cursor:pointer;line-height:normal;color:#0f172a}
.rf-host .bill-card .nrow:hover{border-color:#c6dcf5;background:#fbfdff}
.rf-host .bill-card .nrow:focus-visible{outline:2px solid #397fd3;outline-offset:2px}
.rf-host .bill-card .nbi{width:40px;height:40px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.rf-host .bill-card .nbi.in{background:rgba(5,150,105,.12)}
.rf-host .bill-card .nbi.ex{background:rgba(37,99,235,.1)}
.rf-host .bill-card .nbm{flex:1;min-width:0}
.rf-host .bill-card .nbd{font-size:13.5px;font-weight:700;display:flex;align-items:center;gap:8px}
.rf-host .bill-card .nbt{font-weight:800}
.rf-host .bill-card .nst{font-size:10px;padding:2px 7px;border-radius:12px;font-weight:600;flex-shrink:0}
.rf-host .bill-card .nst.green{background:#e8f8f0;color:#159667}
.rf-host .bill-card .nst.amber{background:#fff2df;color:#b27d29}
.rf-host .bill-card .namt{margin-left:auto;font-size:15px;font-weight:800;flex-shrink:0;font-variant-numeric:tabular-nums}
.rf-host .bill-card .namt.in{color:#159667}
.rf-host .bill-card .namt.ex{color:#d15f66}
.rf-host .bill-card .hf-r2{margin-top:6px;font-size:12px;font-weight:700;line-height:18px;overflow-wrap:anywhere;color:#21344c}
.rf-host .bill-card .hf-r3{margin-top:5px;display:flex;align-items:center;gap:8px;font-size:11px;color:#64748b;flex-wrap:wrap}
.rf-host .bill-card .hf-r3>span:first-child,.rf-host .bill-card .operator{font-weight:600;color:#42566e}
.rf-host .bill-card .recorded{font-weight:600;color:#527eca}
.rf-host .bill-card .separator{color:#95a0b1}
.rf-host .bill-card .short-time{display:none}
.rf-host .bill-card .hf-r4{margin-top:5px;display:flex;align-items:center;gap:8px;font-size:11px;color:#64748b;flex-wrap:wrap}
.rf-host .bill-card .original-period{color:#7c3aed;background:#f5f3ff;border:1px solid #e9e0ff;padding:1px 7px;border-radius:6px;font-weight:600;font-size:10px;line-height:16px;white-space:normal;overflow-wrap:anywhere;width:fit-content;flex:0 1 auto}
.rf-host .bill-card .bill-actions{margin-left:auto;display:inline-flex;align-items:center;gap:2px;flex-shrink:0}
.rf-host .bill-card .bill-actions button{border:0!important;min-height:20px!important;min-width:18px!important;background:transparent!important;border-radius:4px;padding:2px!important;font-size:11px;cursor:pointer;line-height:16px;color:#2563eb}
.rf-host .bill-card .bill-actions button:hover{background:#eef4ff!important}
.rf-host .bill-card .bill-actions button:last-child:hover{background:#fff0ef!important}
.rf-host .bill-card .narr{color:#6593cb;font-size:16px;flex-shrink:0}
.rf-host .bill-card .nrow.open{border-radius:10px 10px 0 0;border-bottom-color:transparent}
.rf-host .bill-card .ndet{padding:15px;background:#fff;border:1px solid #e0e9f4;border-top:0;border-radius:0 0 10px 10px;margin:-1px 0 8px;box-sizing:border-box;width:100%;line-height:1.65}
.rf-host .gqf-section-title{color:#30527d;font-size:12px;font-weight:700;padding:12px 0 8px;border-bottom:1px solid #edf2f8;margin-bottom:8px}
.rf-host .gqf-section-title:first-child{padding-top:0}
.rf-host .gqf-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 26px}
.rf-host .gqf-field{display:grid;grid-template-columns:85px minmax(0,1fr);gap:8px;font-size:12px;line-height:1.65;min-width:0}
.rf-host .gqf-field.wide{grid-column:1/-1}
.rf-host .gqf-field>span{color:#899ab1}
.rf-host .gqf-field>strong{font-weight:400;color:#34516f;min-height:19px;overflow-wrap:anywhere}
.rf-host #rf-modal.standard-bill-modal{padding:24px!important;background:rgba(28,49,79,.38)!important}
.rf-host #rf-modal.standard-bill-modal>section{width:min(960px,100%)!important;max-width:960px!important;max-height:calc(100dvh - 64px)!important;border-radius:14px!important;display:flex;flex-direction:column;overflow:hidden!important;padding:0!important;color:#254268;box-shadow:0 24px 90px #183a6438}
.rf-host #rf-modal.standard-bill-modal>section>header{padding:18px 22px 0!important;flex-shrink:0;background:linear-gradient(120deg,#f0f6ff,#f8fbff);margin:0!important;border:0!important;gap:8px}
.rf-host #rf-modal.standard-bill-modal h3{font-size:16px!important;font-weight:600!important;color:#254268!important;margin:0!important}
.rf-host #rf-modal.standard-bill-modal #rf-close{background:#fff;color:#6c85a5;border:1px solid #d9e5f4;border-radius:8px;width:34px;height:34px;flex-shrink:0;font-size:18px}
.rf-host #rf-modal.standard-bill-modal #rf-body{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden;margin:0!important;line-height:normal}
.rf-host #rf-modal .n-hero{flex:0 0 auto;background:linear-gradient(120deg,#f0f6ff,#f8fbff);border-bottom:1px solid #dfeaf6;padding:8px 22px 18px;color:#254268}
.rf-host #rf-modal .n-hero .v{font-size:25px;font-weight:800;margin-top:0;letter-spacing:.3px}
.rf-host .n-hero .v.in{color:#159667}
.rf-host .n-hero .v.ex{color:#d15f66}
.rf-host #rf-modal .n-hero .tg{font-size:12px;color:#7f93af;margin-top:4px}
.rf-host #rf-modal .n-body{flex:1;min-height:0;overflow:auto;padding:6px 20px 14px;background:#f5f8fc}
.rf-host .bill-modal-footer{display:flex;align-items:center;gap:12px;padding:12px 20px;background:#fff;border-top:1px solid #e4edf7;flex-shrink:0}
.rf-host .bill-modal-footer>span{margin-right:auto;font-size:11px;color:#8195ad}
.rf-host .bill-modal-footer #rf-ok{min-width:88px!important;min-height:32px;padding:7px 18px!important;background:#edf5ff!important;color:#2d75d0!important;border:1px solid #d7e6f9!important;border-radius:8px!important;width:auto!important;margin:0!important}
.rf-host #rf-operation{position:fixed;inset:0;z-index:100030;background:#1c314f61;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;color:#213752}
.rf-host #rf-operation>section{width:420px;max-width:100%;max-height:85dvh;overflow:auto;background:#fff;border-radius:12px;padding:16px;box-shadow:0 24px 90px #183a6438}
.rf-host #rf-operation header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rf-host #rf-operation h3{font-size:15px;margin:0}
.rf-host #rf-operation button{min-height:30px;padding:5px 10px;border:1px solid #dce6f1;border-radius:6px;background:#fff;color:#47617d;font-size:12px;cursor:pointer}
.rf-host #rf-operation .operation-note{font-size:11px;color:#73869f;background:#f3f7fd;padding:8px;border-radius:6px;line-height:1.6;margin:12px 0}
.rf-host #rf-edit-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rf-host #rf-edit-form label{font-size:11px;color:#6a7d96;min-width:0}
.rf-host #rf-edit-form input,.rf-host #rf-edit-form select,.rf-host #rf-edit-form textarea{display:block;width:100%;box-sizing:border-box;min-height:32px;font-family:inherit;font-size:12px;color:#243e60;border:1px solid #dce6f1;border-radius:6px;background:#fff;padding:7px;margin-top:4px;min-width:0}
.rf-host #rf-edit-form textarea{resize:vertical;min-height:56px}
.rf-host #rf-edit-form .wide,.rf-host #rf-edit-form footer{grid-column:1/-1}
.rf-host #rf-operation footer{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}
.rf-host #rf-operation .save-preview{background:#edf5ff;color:#2d75d0;border-color:#d7e6f9}
.rf-host #rf-operation .delete-preview{background:#fff0ef;color:#cc5962;border-color:#f6d4d5}
.rf-host .delete-warning{font-size:12px;line-height:1.8;padding:4px}
.rf-host .delete-warning b{font-size:14px;color:#263e5c}
.rf-host .delete-warning small{color:#8495ac;font-size:11px}
.rf-host.rf-mobile .bill-card .nrow{padding:13px 4px;gap:12px}
.rf-host.rf-mobile .bill-card .nbi{width:30px;height:30px}
.rf-host.rf-mobile .bill-card .nbt{font-size:12px}
.rf-host.rf-mobile .bill-card .namt{font-size:15px}
.rf-host.rf-mobile .bill-card .short-time{display:inline}
.rf-host.rf-mobile .bill-card .full-time{display:none}
.rf-host.rf-mobile .bill-card .ndet{padding:13px}
.rf-host.rf-mobile .gqf-fields{grid-template-columns:minmax(0,1fr);gap:8px}
.rf-host.rf-mobile .gqf-field{grid-template-columns:75px minmax(0,1fr)}
.rf-host.rf-mobile #rf-modal.standard-bill-modal{padding:12px!important}
.rf-host.rf-mobile #rf-modal.standard-bill-modal>section{width:366px!important;max-height:calc(100dvh - 30px)!important;border-radius:15px!important}
.rf-host.rf-mobile #rf-modal.standard-bill-modal>section>header{padding:16px 16px 0!important}
.rf-host.rf-mobile #rf-modal.standard-bill-modal h3{font-size:14px!important}
.rf-host.rf-mobile #rf-modal .n-hero{padding:8px 16px 16px}
.rf-host.rf-mobile #rf-modal .n-body{padding:6px 10px 10px}
.rf-host.rf-mobile .bill-modal-footer{padding:10px 13px;gap:10px}
.rf-host.rf-mobile .bill-modal-footer>span{font-size:10px}
.rf-host.rf-mobile .bill-modal-footer #rf-ok{min-height:32px!important;padding:7px 14px!important}
.rf-host.rf-mobile #rf-operation>section{width:358px}
.rf-host .finance .category-row.zero .ca small{color:#7b8ea8}
.rf-host .finance .duo>.fc{display:flex;flex-direction:column}
.rf-host .finance .duo>.fc .sum-foot{margin-top:auto}
.rf-host .finance .duo>.fc .sum-foot{margin-top:10px}
.rf-host .finance .expense .zero-toggle{margin-top:auto}
.rf-host .finance .expense .sum-foot{margin-top:auto}
.rf-host.rf-mobile .finance .expense .sum-foot{margin-top:10px}
.rf-host .finance .duo .fc .sum-foot{margin-top:auto}
.rf-host .finance .duo .fc .zero-toggle{margin:9px auto 0}
.rf-host.rf-mobile .finance .duo .fc .sum-foot{margin-top:10px}
.rf-host .finance{color:#20334e}
.rf-host .finance button,.rf-host .finance select,.rf-host .finance input{font-size:12px;min-height:30px;border:1px solid #dae4f1;border-radius:6px;background:#fff;color:#425773;padding:4px 9px;max-width:100%}
.rf-host .finance button:hover{background:#eef4ff;border-color:#adc7ef}
.rf-host .finance button:active{background:#dceaff;transform:translateY(1px)}
.rf-host .finance button.active{color:#1c5de0;background:#edf4ff;border-color:#b7cff6;font-weight:600}
.rf-host .finance .fc{padding:14px;background:white;border:1px solid #e1e8f2;border-radius:10px;box-shadow:0 2px 6px #1b3c6205;min-width:0}
.rf-host .finance .fh{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:14px;font-weight:650;color:#183050}
.rf-host .finance .fh button{font-size:11px;min-height:26px;color:#1e5eda;background:#edf4ff;border-color:#d7e6ff;padding:3px 8px}
.rf-host .finance .fh small{font-size:11px;color:#697c95;font-weight:400}
.rf-host .finance .amount{font-variant-numeric:tabular-nums;white-space:nowrap}
.rf-host .finance .in{color:#198454}
.rf-host .finance .out{color:#b65839}
.rf-host .finance .muted{color:#718097;font-size:11px;line-height:1.7}
.rf-host .finance .filter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;padding:10px 12px}
.rf-host .period-title{font-size:12px;font-weight:600;color:#2358ad;margin-right:auto}
.rf-host .periods{display:flex;gap:4px}
.rf-host .finance .periods button{min-height:28px;padding:4px 11px}
.rf-host .finance .advanced{flex-basis:100%;border-top:1px solid #edf1f7;padding-top:10px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.rf-host .finance .advanced label{font-size:11px;color:#60728c}
.rf-host .finance .summary{display:grid;grid-template-columns:1.1fr 2fr;gap:14px;margin-bottom:12px;align-items:center;background:linear-gradient(105deg,#f0faf4,#fff 65%)}
.rf-host .summary-core span{font-size:12px;color:#47615c}
.rf-host .summary-core strong{display:block;font-size:28px;letter-spacing:-.6px;color:#16824e;line-height:1.4;margin:5px 0}
.rf-host .summary-core small{display:block;font-size:10px;color:#6b8076;line-height:1.7}
.rf-host .summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.rf-host .summary-grid button{padding:10px 12px;text-align:left;border-color:#e1ece6;background:#ffffffc7;min-height:62px}
.rf-host .summary-grid span{display:block;color:#697c92;font-size:11px}
.rf-host .summary-grid b{display:block;margin-top:5px;font-size:17px;font-weight:650}
.rf-host .finance .duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch;margin-bottom:12px}
.rf-host .finance .category-row{width:100%;display:flex;align-items:center;gap:8px;padding:9px 0;border:0;border-bottom:1px solid #edf1f7;border-radius:0;background:white;text-align:left;min-height:48px}
.rf-host .finance .category-row:hover{background:#f5f8fd}
.rf-host .category-row .ci{width:27px;height:27px;border-radius:7px;color:#235dd0;background:#edf4ff;display:grid;place-items:center;flex-shrink:0;font-size:13px}
.rf-host .category-row .ct{flex:1;min-width:0;font-size:12px;font-weight:550}
.rf-host .category-row .ct small{display:block;font-size:10px;color:#8290a2;font-weight:400;margin-top:3px}
.rf-host .category-row .ca{text-align:right;font-size:13px;font-weight:650}
.rf-host .category-row .ca small{display:block;font-size:10px;font-weight:400;color:#647ea5;margin-top:2px}
.rf-host .finance .category-row.zero .ca{color:#91a0b2}
.rf-host .finance .zero-toggle{display:block;margin:9px auto 0;border:0;background:white;color:#5b75a0;min-height:24px;font-size:11px}
.rf-host .finance .sum-foot{display:flex;justify-content:space-between;gap:10px;font-size:12px;background:#f4f8ff;border-radius:6px;padding:9px 10px;margin-top:10px;color:#476387}
.rf-host .finance .expense .sum-foot{background:#fff7f3;color:#9a6048}
.rf-host .utility-hero{display:flex;align-items:center;justify-content:space-between;background:#f4f8ff;border-radius:8px;padding:10px;font-size:11px;color:#526988;margin-bottom:8px}
.rf-host .utility-hero b{font-size:19px;color:#1c8557}
.rf-host .utility-head,.rf-host .utility-row{display:grid;grid-template-columns:.8fr 1fr 1fr 1fr;gap:6px;align-items:center;text-align:right;font-size:11px;padding:8px 0;border-bottom:1px solid #edf1f7}
.rf-host .utility-head{font-size:10px;color:#7a8ba3}
.rf-host .utility-head span:first-child,.rf-host .utility-row span:first-child{text-align:left}
.rf-host .utility-row b{font-weight:600}
.rf-host .state-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rf-host .finance .state-item{text-align:left;padding:10px;border:1px solid #e8edf5;background:#fafcff;border-radius:8px}
.rf-host .state-item span{font-size:11px;color:#65758d;display:block}
.rf-host .state-item b{display:block;font-size:18px;margin:5px 0;color:#325c9d}
.rf-host .state-item small{font-size:10px;color:#8390a2}
.rf-host .state-item.warm{background:#fff8f0;border-color:#f7e3cc}
.rf-host .state-item.warm b{color:#b16825}
.rf-host .finance .advice{margin-top:10px;background:#f6f9fd;border-radius:6px;padding:8px 10px;font-size:11px;color:#536b8a;line-height:1.8}
.rf-host .finance .advice button{float:right;min-height:24px;padding:2px 7px;font-size:10px;color:#315fb0}
.rf-host .ledger{margin-bottom:12px}
.rf-host .ledger-tools{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 10px}
.rf-host .ledger-tools input{flex:1;min-width:100px}
.rf-host .status{padding:2px 5px;border-radius:4px;font-size:10px;white-space:nowrap;background:#eaf8ef;color:#1c864b;width:fit-content}
.rf-host .status.pending{background:#fff2df;color:#ad6d19}
.rf-host .pagination{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:#788ba4;margin-top:12px}
.rf-host .pagination div{display:flex;gap:5px;align-items:center}
.rf-host .finance .empty{padding:30px 8px;text-align:center;color:#7c8ba3;font-size:12px;line-height:2}
.rf-host .finance .empty button{margin:10px}
.rf-host.rf-mobile .finance .duo{grid-template-columns:1fr;gap:10px;margin-bottom:10px}
.rf-host.rf-mobile .finance .fc{border-radius:10px;padding:12px 11px}
.rf-host.rf-mobile .finance .filter{padding:10px;margin-bottom:10px;gap:7px}
.rf-host.rf-mobile .periods{width:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
.rf-host.rf-mobile .finance .periods button{padding:4px 2px;min-height:28px;font-size:11px}
.rf-host.rf-mobile .finance .summary{grid-template-columns:1fr;gap:10px;margin-bottom:10px}
.rf-host.rf-mobile .summary-core strong{font-size:26px;margin:4px 0}
.rf-host.rf-mobile .summary-grid button{min-height:56px;padding:8px 10px}
.rf-host.rf-mobile .summary-grid b{font-size:16px}
.rf-host.rf-mobile .finance .fh{font-size:13px;margin-bottom:8px;gap:5px}
.rf-host.rf-mobile .finance .fh small{font-size:10px}
.rf-host.rf-mobile .finance .category-row{padding:8px 0;min-height:47px}
.rf-host.rf-mobile .finance .category-row .ct{font-size:12px}
.rf-host.rf-mobile .finance .category-row .ca{font-size:13px}
.rf-host.rf-mobile .finance .advanced input{min-width:0;width:116px}
.rf-host.rf-mobile .finance .muted{font-size:10px}
.rf-host.rf-mobile .state-item b{font-size:16px}
.rf-host.rf-mobile .finance{padding-bottom:16px}
.rf-host #rf-modal>section{width:640px;padding:16px;color:#213752}
.rf-host #rf-modal h3{color:#173456;font-size:15px}
.rf-host #rf-body{font-size:12px;line-height:1.7}
.rf-host .bill-summary{display:flex;justify-content:space-between;align-items:center;color:#647a99;margin:10px 0;font-size:12px}
.rf-host .bill-card{border:1px solid #e0e7f0;border-radius:9px;padding:10px;margin:8px 0;background:white}
.rf-host .bill-actions{display:flex;gap:2px;flex-shrink:0}
.rf-host .bill-actions button{border:0;background:white;padding:3px;color:#386bbb;font-size:12px}
.rf-host .bill-card details{border-top:1px solid #edf2f7;padding-top:6px;margin-top:5px}
.rf-host .bill-card summary{cursor:pointer;color:#315fb4;font-size:11px}
.rf-host #rf-modal .tip{background:#f3f7fc;border-radius:6px;padding:9px;color:#6a7e99;font-size:11px}
.rf-host.rf-mobile #rf-modal>section{width:390px;max-width:100%;padding:12px}
.rf-host.rf-mobile #rf-modal{padding:10px}
.rf-host.rf-mobile .bill-card{padding:8px}
.rf-host.rf-mobile .bill-actions button{padding:2px}
.rf-host #rf-ok{min-height:28px;font-size:12px}
/* Room finance only. Existing public finance and mobile upper shell are untouched. */
.rmp-info #dt-finance.active{grid-column:1/10;grid-row:9;min-width:0;display:block!important}
.rf-host{font-family:inherit;font-size:13px;color:#20334e;line-height:1.5;min-width:0}
.rf-host *{box-sizing:border-box}
.rf-host [hidden]{display:none!important}
.rf-host button{font-family:inherit;cursor:pointer}
.rf-host button:disabled{opacity:.5;cursor:default;transform:none}
.rf-host .finance{padding:0;background:transparent}
.rf-host .finance>.rf-notice{padding:9px 12px;margin-bottom:12px;background:#fff8ec;border:1px solid #f2dfba;border-radius:8px;color:#8d692d;font-size:11px;line-height:1.7}
.rf-host .rf-error-card{background:white;border:1px solid #f1d5d4;border-radius:10px;padding:22px;text-align:center;color:#a66661}
.rf-host .rf-error-card button{background:#fff;border:1px solid #dce6f1;color:#3467b3;border-radius:6px;padding:6px 12px;margin-top:10px}
.rf-host #rf-modal{position:fixed;inset:0;z-index:100020;display:flex;align-items:center;justify-content:center;background:#1c314f61;padding:24px;box-sizing:border-box}
.rf-host #rf-modal>section{max-width:100%;max-height:calc(100dvh - 48px);overflow:auto;background:white;border-radius:14px;box-sizing:border-box}
.rf-host #rf-modal header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rf-host #rf-modal button{font-family:inherit;cursor:pointer}
.rf-host .bill-card .hf-r4{flex-wrap:nowrap}
.rf-host .bill-card .operator{flex-shrink:0}
.rf-host .bill-card .original-period{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;min-width:0;padding:1px 5px;flex:0 1 auto}
.rf-host .bill-card .hf-r2{font-weight:600}
.rf-host .bill-card .hf-r3{flex-wrap:nowrap;white-space:nowrap;overflow:hidden;gap:6px}
.rf-host .bill-card .nst.conflict{background:#fff0ef;color:#b9565d}
.rf-host .bill-card .rf-identity-note{margin-top:9px;color:#8c7a64;font-size:11px}
.rf-host .rf-modal-count{font-size:11px;color:#879ab0;font-weight:400;margin-left:8px}
.rf-host #rf-modal .rf-load-more{display:block;margin:14px auto;border:1px solid #dce6f1;border-radius:6px;background:#fff;color:#4e74a5;padding:5px 12px}
.rf-host #rf-operation>section{box-sizing:border-box}
.rf-host #rf-operation.add-operation>section{width:560px;max-width:100%;max-height:calc(100dvh - 40px)}
.rf-host #rf-error{background:#fff4f2;border:1px solid #f3d8d3;border-radius:6px;color:#b45e58;font-size:11px;padding:8px;margin-top:10px}
.rf-host .rf-photo-progress{font-size:10px;color:#7a8ea7}
@media(max-width:768px){
 .rf-host .finance{padding:0 0 16px}
 .rf-host .bill-card .nrow{padding:12px 6px;gap:7px}
 .rf-host .bill-card .nbi{width:27px;height:30px;font-size:16px}
 .rf-host .bill-card .nbd{gap:5px;font-size:12px}
 .rf-host .bill-card .nst{font-size:9px;padding:2px 5px}
 .rf-host .bill-card .hf-r2{font-size:11px;line-height:17px}
 .rf-host .bill-card .hf-r3,.rf-host .bill-card .hf-r4{font-size:10px;gap:4px}
 .rf-host .bill-card .original-period{font-size:9px;padding:1px 4px}
 .rf-host .bill-card .operator{max-width:72px;overflow:hidden;text-overflow:ellipsis}
 .rf-host #rf-modal.standard-bill-modal .n-body{padding:6px 8px 10px}
 .rf-host #rf-operation.add-operation>section{width:366px;padding:14px;max-height:calc(100dvh - 24px)}
 .rf-host .finance .duo{grid-template-columns:1fr}
}

/* Desktop ledger cards share the same outer edges as the finance summary. */
@media(min-width:769px){
 #dt-finance .rf-host .finance>.ledger{padding:0;border:0;background:transparent;box-shadow:none}
 #dt-finance .rf-host .ledger>.fh{padding:14px 14px 10px;margin:0;background:#fff;border:1px solid #e1e8f2;border-bottom:0;border-radius:10px 10px 0 0}
 #dt-finance .rf-host .ledger>.ledger-tools{padding:0 14px 14px;margin:0;background:#fff;border:1px solid #e1e8f2;border-top:0;border-radius:0 0 10px 10px}
 #dt-finance .rf-host #rf-ledger,#dt-finance .rf-host #rf-ledger>.bill-card,#dt-finance .rf-host #rf-ledger .nrow,#dt-finance .rf-host #rf-ledger .ndet{width:100%;max-width:none;min-width:0}
 #dt-finance .rf-host .ledger>.pagination{padding:10px 14px;background:#fff;border:1px solid #e1e8f2;border-radius:10px}
}
