/* V5.49.87 - one 4..12 tab rail, project permit placeholder and ledger-preserving fee form. */
#app .le87-permit{border:1px solid #bacfe4;border-radius:7px;background:#fff;min-height:154px;padding:10px;box-sizing:border-box;box-shadow:0 2px 6px #1b47701a}
#app .le87-permit h3{background:linear-gradient(#147ace,#044b91);color:#fff!important;font-size:15px;font-weight:800;padding:11px;border-radius:5px;margin:0 0 9px}
#app .le87-permit-empty{height:82px;border:1px solid #d3e4f1;border-radius:5px;background:#fbfdff}
#app .le85-toolbar{grid-template-columns:repeat(9,minmax(0,1fr));gap:3px;padding:6px}
#app .le85-icon-btn.le86-icon-btn{min-height:80px;padding:7px 2px 5px}
#app .le86-icon-btn .le86-icon-label{font-size:10px}
/* New workflow numbering: 4 quote, 5 contract, 6 claim, 7 order, 8 field, 9 supplier, 10 expense, 11 receipt, 12 tax. */
#app .le86-work-4{--le86-tint:#def8e8!important;--le86-accent:#15834d!important;--le86-text:#105d3a!important}
#app .le86-work-5{--le86-tint:#fff0d9!important;--le86-accent:#d77912!important;--le86-text:#93500f!important}
#app .le86-work-6{--le86-tint:#f0e8ff!important;--le86-accent:#7552b5!important;--le86-text:#573b93!important}
#app .le86-work-7{--le86-tint:#e1f2fe!important;--le86-accent:#1761a8!important;--le86-text:#14568e!important}
#app .le86-work-8{--le86-tint:#ffebdd!important;--le86-accent:#b05d37!important;--le86-text:#87452a!important}
#app .le86-work-9{--le86-tint:#f8e5f7!important;--le86-accent:#a13fa0!important;--le86-text:#772b76!important}
#app .le86-work-10{--le86-tint:#fff2dc!important;--le86-accent:#ad7307!important;--le86-text:#8a5b04!important}
#app .le86-work-11{--le86-tint:#dbf6ee!important;--le86-accent:#148e84!important;--le86-text:#13665f!important}
#app .le86-work-12{--le86-tint:#ffe6e8!important;--le86-accent:#c93c52!important;--le86-text:#932839!important}
#app .le87-fee-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:end}
#app .le87-fee-row .le78-formcell{min-width:0}
#app .le87-fee-row input:disabled{background:#eef1f6!important;color:#6b7683!important}
#app .le87-expense-title{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;background:#eaf4fc;padding:10px;border-radius:5px;margin-bottom:8px}
#app .le87-expense-title strong{font-size:13px;color:#12558f}#app .le87-expense-title span b{font-size:16px;color:#0b63b3}
#app .le87-expense-edit{display:grid;grid-template-columns:1fr 2fr 1fr auto auto;gap:6px;align-items:end;background:#f5f9ff;padding:9px;border:1px solid #d0e0ef;border-radius:5px;margin-bottom:9px}
#app .le87-expense-edit label{display:grid;gap:4px;font-weight:700;font-size:12px}
#app .le87-expense-edit input{width:100%;height:33px}
#app .le87-hint,.le87-hint{font-size:11.5px;color:#637889}
.le87-quick-modal{width:min(1240px,96vw)!important;max-width:none!important;max-height:94vh;overflow:auto}
.le87-quick-bg.le87-large .le87-quick-modal{width:98vw!important;height:96vh}
.le87-modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #c9deec;padding-bottom:9px;margin-bottom:12px}
.le87-modal-head h3{color:#114e87;margin:0;font-size:17px}.le87-modal-head>div{display:flex;gap:6px}
.le87-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.le87-quick-grid>section{display:flex;flex-direction:column;min-width:0}.le87-quick-grid h4{color:#16568c;font-size:13px;margin:0 0 7px}
#u_quick{resize:vertical;min-height:330px;width:100%;box-sizing:border-box;font-size:13px;border:1px solid #bed3e6;padding:10px;border-radius:5px}
.le87-quick-results{border:1px solid #c8deef;border-radius:5px;min-height:330px;max-height:60vh;overflow:auto;background:#f8fbff;padding:8px}
.le87-ai-row{display:grid;grid-template-columns:24px 130px minmax(0,1fr);gap:6px;align-items:center;border-bottom:1px solid #dbeaf6;padding:5px;font-size:12px}
.le87-ai-row input[type=text]{min-width:0;border:1px solid #bad0e4;border-radius:4px;padding:7px}
.le87-modal-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:13px}
.le87-send-modal{width:min(900px,96vw)!important;max-width:none!important}
.le87-send-modal>label{display:grid;gap:6px;margin:8px 0;font-weight:700}
.le87-send-modal input,.le87-send-modal select{min-height:34px;padding:5px;border:1px solid #c1d3e5;border-radius:4px;width:100%;box-sizing:border-box}
.le87-send-modal textarea{width:100%;min-height:320px;box-sizing:border-box;padding:10px;border:1px solid #bed3e6;border-radius:4px}
.le87-send-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.le87-send-row label{display:grid;gap:5px;font-size:12px;font-weight:700}
/* Keep the dashboard blue title bars readable, regardless of inherited old title color. */
#app .v5128-dashboard .title{color:#fff!important;font-size:16px;font-weight:800;text-shadow:0 1px 1px #07244466}
#app .v5128-formpanel>.head{color:#fff!important;background:linear-gradient(#1379c4,#074b8a)!important}
#app .v5128-daytable th:first-child,#app .v5128-daytable td:first-child{width:135px;min-width:135px;position:sticky;left:0;z-index:1;background:#f0f7ff}
#app .v5128-daytable thead th:first-child{background:#d4e9ff;z-index:3}
#app .v5128-daytable{min-width:1150px}
@media(max-width:1150px){#app .le85-toolbar{display:flex;overflow-x:auto}#app .le85-icon-btn.le86-icon-btn{flex:0 0 76px;min-height:70px}#app .le87-expense-edit{grid-template-columns:1fr 1fr}}
@media(max-width:760px){#app .le87-fee-row{grid-template-columns:1fr} .le87-quick-grid{grid-template-columns:1fr}.le87-ai-row{grid-template-columns:24px 105px minmax(0,1fr)}.le87-send-row{grid-template-columns:1fr}}

#app tr.le87-row-checked{background:#e2f1fc!important}#app .le87-accounting-projects{margin-top:12px}#app .le87-accounting-projects .le83-scroll{max-height:360px;overflow:auto}
