@font-face{
  font-family:'Kalam';
  font-style:normal;
  font-weight:400;
  font-display:block;
  src:url('/fonts/kalam-regular.ttf') format('truetype');
}
:root{
  font-family:Arial,sans-serif;
  color:#20332e;
  background:#f3f5f4;
  font-synthesis:none;
}
*{box-sizing:border-box}
body{margin:0}
body.auth-locked{background:#f3f5f4}
body.auth-locked header,body.auth-locked main,body.auth-locked footer{display:none}
body.auth-locked #login{display:grid}
button,input,textarea,select{font:inherit}
button{padding:11px 16px;border:1px solid #cbd5d0;border-radius:6px;background:white;color:#203d32;cursor:pointer;font-size:14px;font-weight:600}
button:hover{background:#e8efeb}
button:disabled{opacity:.5;cursor:wait}
.primary{background:#214d3e;color:white;border-color:#214d3e}
.primary:hover{background:#143a2c}
.danger-button{color:#8d2f26;border-color:#e0c8c3}
.danger-button:hover,.delete-button:hover{background:#fff1ef}
header{background:#fff;border-bottom:1px solid #dce2de;padding:20px 3%;display:flex;align-items:center;gap:30px}
.brand{display:flex;gap:12px;align-items:center}
.brand-logo{width:56px;height:56px;object-fit:contain;border-radius:4px;display:block}
.brand strong{font-size:17px;letter-spacing:2px}
.brand small{display:block;font-size:10px;letter-spacing:1.7px;margin-top:5px}
.workspace{color:#77817b;font-size:14px}.workspace strong{font-weight:800;color:#53685f}
header button{margin-left:auto}
main{max-width:1700px;margin:auto;padding:32px 3%}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.eyebrow,.step{font-size:11px;font-weight:bold;letter-spacing:1.8px;color:#587266}
h1{font-size:27px;margin:9px 0}
h2{font-size:20px;margin:12px 0}
.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.badge{background:#e5ebe7;padding:7px 11px;border-radius:20px;font-size:12px;color:#395549}
.workspace-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:27px}
.panel{background:white;padding:22px;border:1px solid #dce3de;border-radius:9px;margin-bottom:18px}
.panel h2{font-size:19px}
.panel p{font-size:14px;color:#6d7972;line-height:1.5}
textarea,input,select{width:100%;border:1px solid #cbd6ce;border-radius:5px;padding:10px;background:#fff;color:#20332e}
textarea{font-size:14px;line-height:1.55;resize:vertical}
input:focus,textarea:focus,select:focus{outline:2px solid #598875;outline-offset:1px}
label{display:block;font-size:13px;font-weight:600;margin:13px 0 6px}
label input{margin-top:6px;font-weight:normal}
.wide{width:100%;margin-top:10px}
.text-button{border:0;padding-left:0;font-size:13px;background:none}
.hint{font-size:12px!important;color:#6d7972;line-height:1.5}
.preview-label{display:flex;justify-content:space-between;margin:4px 0 13px;font-size:11px;letter-spacing:1.5px;color:#697c71}
.preview-label span+span{letter-spacing:0}
.paper-scroll{overflow:auto;padding:2px 2px 16px}

/* Approved receipt design */
.receipt{
  color:#080e13;
  background:radial-gradient(ellipse at 28% 30%,#eef6ff 0%,#e4eefc 48%,#d8e7fa 100%);
  aspect-ratio:1.414;
  min-width:980px;
  padding:3.15% 5.35% 4.15%;
  box-shadow:0 3px 12px #243f3820;
  font-family:Arial,sans-serif;
  container-type:inline-size;
}
.receipt-title{
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  gap:6.5%;
  margin:0 2.6% 2.35%;
}
.receipt-title h2{
  margin:0;
  font-size:4.12cqw;
  line-height:1;
  letter-spacing:.075em;
  white-space:nowrap;
}
.receipt-title>div{
  font-size:3.02cqw;
  line-height:1;
  font-weight:700;
  white-space:nowrap;
}
#r-number{
  color:#d92323;
  font-weight:400;
  font-size:3.76cqw;
}
.receipt-meta{
  display:grid;
  grid-template-columns:68.9% 29.1%;
  gap:2%;
  margin-bottom:.82%;
}
.line{
  display:flex;
  align-items:baseline;
  gap:.45cqw;
  margin-bottom:.32cqw;
  font-size:1.78cqw;
  line-height:1.05;
  white-space:nowrap;
}
.line b{font-weight:700}
.line span{
  flex:1;
  min-height:2.32cqw;
  border-bottom:1px solid #354253;
  font-family:'Kalam',sans-serif;
  font-size:2.08cqw;
  line-height:1.05;
  white-space:nowrap;
  overflow:hidden;
}
.receipt-table{
  border-collapse:collapse;
  width:100%;
  table-layout:fixed;
  border:2px solid #111;
}
.receipt-table col:nth-child(1){width:12.5%}
.receipt-table col:nth-child(2){width:9.8%}
.receipt-table col:nth-child(3){width:53%}
.receipt-table col:nth-child(4){width:4.8%}
.receipt-table col:nth-child(5){width:6.2%}
.receipt-table col:nth-child(6){width:6.8%}
.receipt-table col:nth-child(7){width:6.9%}
.receipt-table th,
.receipt-table td{
  border:1px solid #111;
  border-left-width:2px;
  border-right-width:2px;
}
.receipt-table th{
  height:3.5cqw;
  font-family:Arial,sans-serif;
  font-size:1.72cqw;
  line-height:1;
  text-align:center;
  white-space:nowrap;
}
.receipt-table td{
  height:3.52cqw;
  padding:.08cqw 1cqw;
  font-family:'Kalam',sans-serif;
  font-size:2.18cqw;
  line-height:1.08;
  overflow:hidden;
}
.receipt-table td:first-child,
.receipt-table td:nth-child(2){text-align:center}
.receipt-table .company{
  font-size:1.74cqw;
  white-space:nowrap;
  letter-spacing:.02em;
}
.receipt-table .description-cell{position:relative;overflow:visible}.receipt-table .description-cell span{position:absolute;z-index:1;top:.35cqw;left:1cqw;right:1cqw;height:31cqw;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.65cqw;line-height:1.35;text-align:left}
.receipt-table .route-line{
  font-size:2.05cqw;
  white-space:nowrap;
}
.receipt-table .amount-whole,
.receipt-table .amount-tail{
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  font-size:1.82cqw;
  padding-left:.15cqw;
  padding-right:.15cqw;
}
.receipt-table .amount-whole{text-align:right;padding-left:.35cqw}
.receipt-table .amount-tail{text-align:left;padding-right:.35cqw}
.receipt-table .unit-rate{
  text-align:center;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  font-size:1.82cqw;
  padding-left:.2cqw;
  padding-right:.2cqw;
}
.signatures{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  text-align:center;
  margin-top:1.45cqw;
  font-size:1.78cqw;
}
.signatures>div{width:33%}
.signatures>div:first-child{padding-top:4.55cqw}
.signatures>div:nth-child(2){width:34%}
.sign-line{
  height:4.35cqw;
  border-bottom:2px dotted #344055;
  display:flex;
  justify-content:center;
  align-items:flex-end;
  font-family:'Kalam',sans-serif;
  font-size:2.15cqw;
}
.customer-sign{
  position:relative;
  display:block;
  height:8.6cqw;
  overflow:hidden;
  background:transparent;
  border-bottom:0;
}
.customer-sign img{
  position:absolute;
  left:50%;
  bottom:.1cqw;
  width:100%;
  height:8.4cqw;
  transform:translateX(-50%);
  object-fit:contain;
  object-position:center bottom;
  z-index:2;
}
.customer-sign span{
  position:absolute;
  left:0;
  right:0;
  bottom:1.25cqw;
  z-index:3;
}
.customer-sign::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:1.05cqw;
  border-bottom:2px dotted #344055;
}
.customer-sign span{
  position:absolute;
  left:0;
  right:0;
  bottom:1.12cqw;
  width:auto;
  height:auto;
  clip:auto;
  overflow:visible;
  font-family:'Kalam',sans-serif;
  font-size:2.06cqw;
  line-height:1;
  text-align:center;
  background:transparent;
  z-index:1;
}

.total-strip{display:flex;justify-content:space-between;align-items:center;background:#e3ece7;border:1px solid #ccdcd1;border-radius:7px;margin-top:8px;padding:20px 24px;font-size:14px}
.total-strip small{display:block;color:#687c70;font-size:12px;margin-top:5px}
.total-strip strong{font-family:Georgia,serif;font-size:30px}
.register{background:white;border:1px solid #dce3de;border-radius:9px;margin-top:30px;padding:24px}
.register-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.range-panel{border-top:1px solid #d9e0dc;margin-top:18px;padding-top:24px}
.quick-ranges{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:26px}
.quick-ranges button{border-radius:999px;padding:14px 24px;font-size:18px;color:#101827;background:#fbfbfc;border-color:#d9dee3}
.filter-grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(220px,1.1fr) auto auto;gap:18px;align-items:end}
.filter-grid label{margin:0;color:#68748a;font-size:13px;letter-spacing:1px}
.filter-grid input,.filter-grid select{height:48px;margin-top:10px;border:1px solid #d9dee3;border-radius:8px;padding:0 16px;font-size:16px;font-weight:600;color:#101827;background:white}
.filter-grid .primary{background:#5147e8;border-color:#5147e8;color:white;height:48px;font-size:16px}
.filter-grid .primary:hover{background:#4036cf}
.filter-grid button{height:48px;font-size:16px;padding:0 22px;border-radius:8px}
.register-scroll{overflow:auto}
.register table{border-collapse:collapse;width:100%;margin-top:22px;text-align:left;font-size:14px}
.register th{font-size:11px;letter-spacing:1px;color:#76877b;border-bottom:1px solid #d9e2dc;padding:13px 10px}
.register td{padding:16px 10px;border-bottom:1px solid #e8ece9}
.register td small{display:block;color:#748077;margin-top:5px}
.row-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.icon-button{width:42px;height:42px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.icon-button svg{width:18px;height:18px;stroke:currentColor}
.delete-button{color:#8d2f26;border-color:#e0c8c3}
#empty{padding:24px;text-align:center;color:#77857b;font-size:14px}
#message:not(:empty){padding:14px 18px;background:#e1ece5;border:1px solid #bbcfc1;border-radius:6px;margin-bottom:20px}
#message.error{background:#fff1eb;border-color:#e8c8b9;color:#813b28}
#login{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);min-height:100svh;padding:0;background:#fff;border:1px solid #dce3de;border-radius:12px;overflow:hidden;margin-bottom:24px;box-shadow:0 12px 35px rgba(24,49,39,.08)}
.login-hero{min-height:650px;background:#183b32;position:relative;overflow:hidden}
.login-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,35,30,.08),rgba(10,35,30,.4))}
.login-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;display:block;filter:saturate(.98) contrast(1.04) brightness(.9)}
.login-card{padding:clamp(48px,8vh,100px) 8% 40px;align-self:start;width:100%;max-width:560px}
.login-card h2{font-size:32px;color:#172033;margin:14px 0 10px}
.login-card p{color:#68758b;margin:0 0 28px;line-height:1.5}
.login-card label{margin:17px 0 6px;color:#172033;font-size:14px}
.login-card input{width:100%;height:48px;border-radius:8px}
.login-card button{width:100%;margin-top:20px;height:48px;font-size:16px}
#open-change-password{margin-left:auto}
#signout{margin-left:0}
header #new{margin-left:0}
input:disabled,textarea:disabled{background:#edf1ee;color:#68776e}
[hidden]{display:none!important}
footer{padding:20px 3%;font-size:12px;color:#859188;border-top:1px solid #dce3de;display:flex;justify-content:space-between}
.site-credit{display:flex;align-items:center;gap:10px;text-align:left}.site-credit>img{width:42px;height:42px;object-fit:contain;border-radius:6px}.site-credit>span{display:flex;flex-direction:column;line-height:1.1}.site-credit small{font-size:9px;letter-spacing:.12em;color:#718078}.site-credit strong{font-size:14px;letter-spacing:.14em;color:#12372a}.site-credit em{font-style:normal;font-size:9px;letter-spacing:.2em;color:#244438;margin-top:3px}

@media(max-width:1100px){
  .workspace{display:none}
  .toolbar{align-items:start;flex-direction:column}
  .workspace-grid{grid-template-columns:240px minmax(0,1fr)}
  .panel{padding:17px}
}
@media(max-width:980px){.filter-grid{grid-template-columns:1fr 1fr}.filter-grid button{width:100%}}
@media(max-width:760px){
  header{padding:15px}
  .brand-logo{width:46px;height:46px}
  .brand strong{font-size:13px}
  .brand small{font-size:8px}
  .workspace-grid{display:flex;flex-direction:column}
  .preview-column{order:-1}
  .receipt{min-width:980px}
  .toolbar h1{font-size:23px}
  .actions button{padding:10px;font-size:12px}
  main{padding:20px 14px}
  .register-head{align-items:start;flex-direction:column}
  .preview-label{font-size:10px}
  footer span{display:none}
}
@media(max-width:620px){.filter-grid{grid-template-columns:1fr}.quick-ranges button{font-size:15px;padding:12px 18px}}
@media(max-width:760px){#login,body.auth-locked #login{display:block}.login-hero{height:240px;min-height:240px}.login-card{padding:30px 24px;max-width:none}.login-card h2{font-size:26px}}

@page{size:A4 landscape;margin:8mm}
@media print{
  body{background:white}
  header,.toolbar,aside,.preview-label,.total-strip,.register,footer,#message,#login{display:none!important}
  main{padding:0;max-width:none}
  .workspace-grid{display:block}
  .paper-scroll{overflow:visible;padding:0}
  .receipt{width:281mm;min-width:0;height:195mm;aspect-ratio:auto;padding:7.2mm 12mm 8mm;box-shadow:none;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .receipt-title{margin:0 2.6% 2.35%}
  .receipt-title h2{font-size:30px}
  .receipt-title>div{font-size:24px}
  #r-number{font-size:32px}
  .receipt-meta .line{font-size:15px}
  .receipt-meta .line span{font-size:20px;min-height:23px}
  .receipt-table th{height:31px;font-size:15px}
  .receipt-table td{height:32px;font-size:21px}
  .receipt-table .company{font-size:16px}
  .receipt-table .route-line{font-size:19px}
  .receipt-table .amount-whole,.receipt-table .amount-tail{font-size:16px}
  .signatures{font-size:16px}
  .sign-line{height:39px;font-size:20px}
  .customer-sign{height:60px}
  .customer-sign::after{bottom:9px}
  .customer-sign img{top:0;bottom:0;width:100%;height:58px}
  .customer-sign span{bottom:10px;font-size:18px}
}


.login-card #login-error{margin:16px 0 0;padding:12px 14px;background:#fff1eb;border:1px solid #e8c8b9;border-radius:8px;color:#813b28}
.register table{min-width:1050px}
.receipts-table{table-layout:fixed}
.receipts-table .receipt-number-col{width:11%}
.receipts-table .dr-number-col{width:10%}
.receipts-table .plate-number-col{width:11%}
.receipts-table .date-col{width:12%}
.receipts-table .customer-col{width:23%}
.receipts-table .amount-col{width:12%}
.receipts-table .status-col{width:10%}
.receipts-table .actions-col{width:11%}
.receipts-table th,.receipts-table td{overflow-wrap:anywhere;vertical-align:middle}
.receipts-table th:nth-child(4),.receipts-table td:nth-child(4){white-space:nowrap}

.login-card .login-caption{margin:20px 0 0;text-align:center;font-size:16px;font-weight:600;color:#214d3e}

.login-links{display:flex;flex-direction:column;align-items:flex-end;gap:10px;margin-top:32px;font-size:13px;color:#68758b}.login-links a{color:#214d3e;text-underline-offset:3px}.login-links a:hover{color:#143a2c}

.account-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.account-actions button{font-size:13px;padding:8px 12px}.workspace{overflow-wrap:anywhere;max-width:38ch}.customer-sign img[hidden],.customer-sign span[hidden]{display:none}#signature-upload{width:100%;margin:8px 0}.signature-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}.signature-preview-box{margin-top:14px;padding:12px;border:1px solid #c8d2cc;border-radius:12px;background:#f6faf7}.signature-preview-box span{display:block;margin-bottom:8px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#53685f}.signature-preview-box img{display:block;width:100%;height:140px;object-fit:contain;background:#fff;border-radius:8px}.draw-signature{margin-top:20px;padding-top:18px;border-top:1px solid #d7dfda}.draw-signature>strong{display:block;font-size:16px;color:#173b2c}.draw-signature .hint{margin:5px 0 10px}.draw-signature canvas{display:block;width:100%;height:180px;border:2px solid #8ca398;border-radius:12px;background:#fff;touch-action:none;cursor:crosshair;box-shadow:inset 0 1px 4px #183d2920}
.monthly-dashboard{margin:18px 0;padding:18px 22px;border:1px solid #d8e1db;border-radius:14px;background:#fff;display:flex;gap:24px;align-items:center;justify-content:space-between}.monthly-dashboard h2{margin:4px 0;font-size:22px}.monthly-dashboard p{margin:8px 0 0;color:#66746d}.monthly-dashboard p strong{font-size:28px;color:#173b2c}.monthly-dr-trend{display:flex;align-items:flex-end;gap:8px;min-height:90px}.monthly-dr-bar{width:28px;text-align:center;color:#62736a;font-size:10px}.monthly-dr-bar i{display:block;background:#4d73e8;border-radius:5px 5px 0 0;min-height:3px;margin-bottom:4px}.monthly-dr-bar b,.monthly-dr-bar small{display:block;font-size:10px;color:#173b2c}.monthly-dr-bar small{color:#77817b}
.auth-locked #registration-dialog[open]{display:block}
#registration-dialog{width:min(520px,calc(100% - 32px));max-height:90vh;overflow:auto;border:1px solid #bacbc0;border-radius:18px;padding:28px;color:#173b2c;background:white}
#registration-dialog::backdrop{background:#08291db3}
#registration-form{display:grid;gap:14px}
#registration-form label{display:grid;gap:6px}
#registration-form input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #bbc9c1;border-radius:8px;font:inherit}
#registration-status{overflow-wrap:anywhere}
#reset-dialog{width:min(480px,calc(100% - 32px));max-height:90vh;overflow:auto;border:1px solid #bacbc0;border-radius:18px;padding:28px;color:#173b2c;background:white}
#reset-dialog::backdrop{background:#08291db3}
#reset-form,#reset-form label{display:grid;gap:12px}
#reset-form input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #bbc9c1;border-radius:8px;font:inherit}
#tenant-reminder-dialog{width:min(500px,calc(100% - 32px));border:1px solid #bacbc0;border-radius:18px;padding:28px;color:#173b2c;background:white}
#tenant-reminder-dialog::backdrop{background:#08291dcc}
.tenant-reminder-content{display:grid;gap:16px;text-align:center}
#tenant-reminder-code{display:block;padding:18px;border:2px dashed #2e6b50;border-radius:12px;background:#eef6f0;font-size:clamp(18px,5vw,28px);font-weight:800;overflow-wrap:anywhere}
#tenant-reminder-dialog label,#first-password-fields{display:grid;gap:8px;text-align:left}
#first-password-fields{gap:12px;padding:14px;border:1px solid #c8d8ce;border-radius:12px;background:#f8fbf9}
#tenant-reminder-dialog input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #bbc9c1;border-radius:8px;font:inherit}
.support-notice{padding:12px;border-radius:10px;background:#fff5df;text-align:left;font-size:.9rem;line-height:1.45}
