@font-face{font-family:'Noto Deva';src:url('/fonts/NotoSansDevanagari-400-deva-sub.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Noto Deva';src:url('/fonts/NotoSansDevanagari-600-deva-sub.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Noto Deva';src:url('/fonts/NotoSansDevanagari-700-deva-sub.woff2') format('woff2');font-weight:700;font-display:swap}
:root{--g:#1f5f3f;--g2:#2f7d55;--bg:#f6f7f4;--card:#fff;--ink:#1b1f1c;--muted:#6b716d;--line:#e2e6e1;--red:#b3261e;--amber:#9a6700;--blue:#1d4ed8;--cust:#1d4ed8}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:'Noto Deva',system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:16px;line-height:1.4}
body{padding-bottom:72px}
body.customer{--g:var(--cust);--g2:#2b5cd9}
body.customer::before{content:"";position:fixed;inset:0;border:6px solid var(--cust);pointer-events:none;z-index:50}
a{color:var(--g)}
.bill-photo{display:block;width:64px;min-height:44px;margin-top:4px}
.bill-photo img{display:block;width:64px;height:48px;object-fit:cover;border-radius:4px}
.bill-marker{margin-top:4px;color:var(--g);font-size:13px}
input[type=file]{max-width:100%;min-width:0}
.visually-hidden{position:absolute;width:0;min-width:0;height:0;min-height:0;padding:0;margin:0;overflow:hidden;border:0;opacity:0}
label.file-btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;margin:10px 0 4px;background:#fff;color:var(--g);border:1px solid var(--g);border-radius:8px;padding:9px 14px;cursor:pointer;font-size:16px;font-weight:600;text-align:center}
button,input,select,textarea{font:inherit}
button{cursor:pointer;border:1px solid var(--g);background:var(--g);color:#fff;border-radius:8px;padding:9px 14px;min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;gap:4px}
button.sec{background:#fff;color:var(--g)}
button.danger{background:#fff;color:var(--red);border-color:var(--red)}
button.sm{padding:5px 10px;font-size:14px}
button:disabled{opacity:.5;cursor:default}
input,select,textarea{width:100%;padding:9px 10px;border:1px solid #c9cfc9;border-radius:8px;background:#fff;min-height:44px}
input[type=checkbox]{width:20px;height:20px;min-height:0;padding:0;flex:0 0 auto}
label{display:block;font-size:14px;color:var(--muted);margin:10px 0 4px}
label.chk{display:flex;align-items:center;gap:8px;min-height:44px;margin:4px 0;font-size:16px;color:var(--ink)}
.help{font-size:13px;color:var(--muted);margin-top:4px}
.amt-preview{font-size:19px;font-weight:700;color:var(--g);margin-top:4px;min-height:24px;overflow-wrap:break-word}
header.top{position:sticky;top:0;z-index:40;background:var(--g);color:#fff;padding:10px 14px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
header.top .title{font-weight:700;flex:1 1 100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
header.top button{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.4);padding:6px 10px;font-size:14px}
.banner{background:var(--cust);color:#fff;text-align:center;padding:6px 10px;font-size:14px;font-weight:600}
main{padding:14px;max-width:860px;margin:0 auto}
nav.bottom{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:flex;z-index:40;padding-bottom:env(safe-area-inset-bottom)}
nav.bottom a{flex:1;text-align:center;padding:10px 4px;font-size:12px;color:var(--muted);text-decoration:none}
nav.bottom a.on{color:var(--g);font-weight:700}
nav.bottom a .ic{display:block;font-size:20px;line-height:1.1}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:12px}
.card h2{margin:0 0 10px;font-size:17px}
h1{font-size:20px;margin:4px 0 12px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.row>*{flex:1}
.row.tight>*{flex:0 0 auto}
.right{text-align:right}
.muted{color:var(--muted)}
.center{text-align:center;padding:40px 10px}
.small{font-size:13px}
.big{font-size:22px;font-weight:700}
.pos{color:var(--g2)} .neg{color:var(--red)} .warn{color:var(--amber)}
.tag{display:inline-block;font-size:12px;padding:2px 8px;border-radius:999px;background:#eef1ec;color:#333}
.tag.confirmed,.tag.done,.tag.booked{background:#dcefe3;color:#15532f}
.tag.hold,.tag.enquiry{background:#fff3cd;color:#7a5200}
.tag.cancelled{background:#f3d6d4;color:#7a1f19}
.list{display:flex;flex-direction:column;gap:8px}
.item{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:flex;justify-content:space-between;gap:10px;align-items:center;text-decoration:none;color:inherit}
.item .t{font-weight:600}
.item .s{font-size:13px;color:var(--muted)}
table{width:100%;border-collapse:collapse}
td,th{padding:7px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
th{font-size:13px;color:var(--muted);font-weight:600}
td.n,th.n{text-align:right;white-space:nowrap}
tr.tot td{font-weight:700;border-top:2px solid var(--g);border-bottom:0;font-size:19px}
.tablewrap{overflow-x:auto;max-width:100%}
.tablewrap table{min-width:100%}
.tablewrap td .small{overflow-wrap:anywhere}
.permtable{table-layout:fixed}
.permtable th,.permtable td{overflow-wrap:break-word;word-break:break-word}
.permtable th:nth-child(1),.permtable td:nth-child(1){width:34%}
.permtable th:nth-child(2),.permtable td:nth-child(2){width:24%}
.permtable th:nth-child(3),.permtable td:nth-child(3){width:18%}
.permtable th:nth-child(4),.permtable td:nth-child(4){width:24%}
.evlist{display:flex;flex-direction:column}
.evrow{padding:8px 0;border-bottom:1px solid var(--line)}
.evrow:last-child{border-bottom:0}
.evrow-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.evrow-bot{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px;font-size:14px}
.evrow-bot .pos,.evrow-bot .neg{font-weight:700}
.evlink{display:inline-flex;align-items:center;min-height:44px;padding:4px 6px}
.amtcell{display:flex;flex-direction:column;align-items:flex-end;gap:4px;white-space:normal}
.amtcell button{padding:2px 7px}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chips button{flex:1 1 0;min-width:0;padding:9px 4px}
.chips.catchips{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.tabs{display:flex;flex-wrap:wrap;gap:4px;margin:10px 0}
.tabs button{background:#fff;color:var(--g);border-radius:999px;padding:7px 6px;white-space:nowrap}
.tabs button.on{background:var(--g);color:#fff}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cal .dow{min-width:0;text-align:center;font-size:12px;color:var(--muted);padding:4px 0}
.cal .d{min-width:0;min-height:54px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:4px;font-size:13px;position:relative;cursor:pointer;overflow:hidden}
.cal .d.today{border-color:var(--g);border-width:2px}
.cal .d.booked{background:#dcefe3}
.cal .d.hold{background:#fff3cd}
.cal .d.part{background:linear-gradient(135deg,#dcefe3 50%,#fff 50%)}
.cal .d .n{font-weight:600}
.cal .d .who{font-size:11px;color:#15532f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal .d.sel{outline:2px solid var(--blue)}
.calhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.calhead b{font-size:17px}
.legend{display:flex;gap:12px;font-size:13px;color:var(--muted);margin:8px 0}
.legend i{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-1px;margin-right:4px;border:1px solid var(--line)}
.kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.kpi>div{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px}
.kpi .l{font-size:12px;color:var(--muted)}
.kpi .v{font-size:19px;font-weight:700}
.toast{position:fixed;bottom:144px;left:50%;transform:translateX(-50%);background:#222;color:#fff;padding:8px 16px;border-radius:999px;font-size:14px;z-index:60}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:55;display:flex;align-items:flex-end;justify-content:center}
.modal .box{background:#fff;border-radius:16px 16px 0 0;padding:16px;width:100%;max-width:560px;max-height:92vh;overflow:auto}
.lines input{padding:6px 8px;font-size:15px;min-width:0}
.linehdr{margin-bottom:4px}
.lineedit{padding:8px 0;border-bottom:1px solid var(--line)}
.lineedit:last-child{border-bottom:0}
.linerow{display:flex;gap:6px;align-items:center;margin-top:6px}
.linerow .q{flex:0 0 54px}
.linerow .r{flex:0 0 88px}
.linerow .a{flex:1;min-width:0;text-align:right;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden}
.linerow button{flex:0 0 auto;padding:6px 10px}
.linetot{display:flex;justify-content:space-between;gap:10px;padding:8px 2px;font-weight:700}
.linetot.b{border-top:2px solid var(--g);margin-top:2px;font-size:19px}
.card.flush{padding:14px 8px}
.fab{position:fixed;right:16px;bottom:84px;z-index:45;border-radius:999px;padding:12px 18px;box-shadow:0 4px 14px rgba(0,0,0,.25);font-weight:600}
.lang{display:inline-flex;border:1px solid rgba(255,255,255,.5);border-radius:999px;overflow:hidden}
.lang button{border:0;border-radius:0;padding:4px 9px;font-size:13px;background:transparent}
.lang button.on{background:#fff;color:var(--g)}
@media(min-width:700px){nav.bottom a{font-size:13px}}
