:root {
  --forest: #174e43;
  --forest-dark: #0e362f;
  --forest-ink: #103b34;
  --mint: #dff0e4;
  --lime: #b3d335;
  --amber: #eabf58;
  --coral: #ef7d68;
  --paper: #f5f7f4;
  --surface: #fff;
  --ink: #1d2c29;
  --muted: #75827e;
  --line: #e1e8e3;
  --shadow: 0 12px 36px rgba(20, 58, 49, .08);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; background: #f7faf6; }
.login-visual { position: relative; overflow: hidden; padding: 58px clamp(36px, 7vw, 115px); background: var(--forest); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.login-visual:before, .login-visual:after { content: ""; position: absolute; border-radius: 50%; background: rgba(179,211,53,.15); }
.login-visual:before { width: 480px; height: 480px; top: -230px; right: -140px; }
.login-visual:after { width: 350px; height: 350px; bottom: -150px; left: -130px; }
.brand { display: inline-flex; align-items: center; gap: 10px; z-index: 1; font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: -.8px; font-size: 28px; }
.brand-mark { width: 38px; height: 38px; position: relative; display: grid; place-items: center; border: 2px solid var(--lime); color: var(--lime); font-size: 18px; border-radius: 11px 3px 11px 3px; }
.brand-mark:after { content: ""; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: var(--lime); transform: rotate(-45deg); position: absolute; right: -5px; bottom: -5px; }
.login-quote { position: relative; z-index: 1; max-width: 580px; margin: auto 0; padding: 70px 0; }
.eyebrow { color: var(--lime); letter-spacing: .14em; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.login-quote h1 { max-width: 520px; margin: 18px 0; font: 700 clamp(35px, 4vw, 58px)/1.1 Manrope, sans-serif; letter-spacing: -2.2px; }
.login-quote p { max-width: 460px; color: #c1d6cf; line-height: 1.65; font-size: 17px; }
.login-points { display: flex; gap: 28px; position: relative; z-index: 1; color: #c4d4cf; font-size: 13px; }
.login-points span { display: flex; align-items: center; gap: 8px; }
.login-points i { color: var(--lime); }
.login-panel { display: grid; place-items: center; padding: 36px; }
.login-card { width: min(100%, 420px); }
.login-card h2 { margin: 0 0 9px; font: 700 30px/1.2 Manrope, sans-serif; letter-spacing: -1px; }
.login-card > p { color: var(--muted); line-height: 1.55; margin: 0 0 34px; }
.field { display: grid; gap: 8px; margin-bottom: 19px; }
.field label { color: #3e514c; font-weight: 600; font-size: 14px; }
.input-wrap { position: relative; }
.input-wrap i { position: absolute; color: #95a39e; left: 15px; top: 50%; transform: translateY(-50%); }
.input-wrap input, .field > input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea, .offer-modal input[name="yillikMiktarKg"] { width: 100%; border: 1px solid #d8e1dc; border-radius: 10px; background: #fff; color: var(--ink); outline: none; padding: 13px 15px 13px 44px; transition: .2s ease; }
.field > input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea, .offer-modal input[name="yillikMiktarKg"] { min-height: 51px; box-sizing: border-box; padding-left: 14px; }
.field textarea { min-height: 95px; resize: vertical; }
.input-wrap input:focus, .field > input:not([type="checkbox"]):not([type="file"]):focus, .field select:focus, .field textarea:focus, .offer-modal input[name="yillikMiktarKg"]:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(23,78,67,.09); }
.password-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--muted); padding: 2px; }
.form-row { display: flex; justify-content: space-between; align-items: center; margin: 3px 0 25px; font-size: 13px; }
.check { display: inline-flex; gap: 8px; align-items: center; color: #60706a; }
.check input { accent-color: var(--forest); }
.link { border: 0; background: transparent; padding: 0; color: var(--forest); font-weight: 700; text-decoration: none; }
.btn { border: 0; border-radius: 9px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--forest); box-shadow: 0 8px 16px rgba(23,78,67,.18); }
.btn-primary:hover { background: var(--forest-dark); }
.btn-secondary { background: #e7f0e8; color: var(--forest); }
.btn-danger { color: #b94435; background: #fff0ee; }
.btn-block { width: 100%; }
.login-help { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 22px; color: var(--muted); font-size: 13px; text-align: center; }
.login-help a { color: var(--forest); font-weight: 700; }
.login-alert { margin: -15px 0 18px; border-radius: 8px; background: #fff0ee; color: #a94736; padding: 10px 12px; font-size: 13px; }

.portal { min-height: 100vh; display: grid; grid-template-columns: 254px 1fr; }
.sidebar { position: fixed; width: 254px; height: 100vh; overflow-y: auto; padding: 26px 16px; background: var(--forest); color: #e5efeb; display: flex; flex-direction: column; z-index: 3; }
.sidebar .brand { padding: 0 12px; font-size: 25px; }
.account-mini { padding: 24px 12px 22px; margin-top: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.account-mini small { display: block; margin-bottom: 4px; color: #a9beb7; }
.account-mini strong { display: block; color: #fff; font-size: 14px; line-height: 1.3; }
.nav { padding-top: 18px; display: grid; gap: 4px; }
.nav-item { width: 100%; color: #bcd0c9; background: transparent; border: 0; text-align: left; padding: 11px 12px; border-radius: 8px; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.nav-item i { font-size: 18px; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: var(--lime); color: #173f36; font-weight: 700; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 16px 4px 4px; }
.sidebar-footer button { width: 100%; color: #bdd1ca; background: transparent; border: 0; text-align: left; padding: 10px 8px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.content { grid-column: 2; min-width: 0; }
.topbar { height: 76px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 clamp(22px, 4vw, 52px); display: flex; align-items: center; justify-content: space-between; }
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb b { color: #41554f; }
.top-actions { display: flex; gap: 16px; align-items: center; }
.top-actions button { background: transparent; border: 0; color: var(--muted); padding: 6px; position: relative; }
.notification-dot { position: absolute; width: 7px; height: 7px; top: 4px; right: 5px; background: var(--coral); border-radius: 50%; border: 1px solid #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; background: #6e9b8c; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.page { padding: 38px clamp(22px, 4vw, 52px) 52px; max-width: 1600px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading h1 { margin: 0 0 5px; font: 700 28px/1.25 Manrope, sans-serif; letter-spacing: -1px; }
.page-heading p { color: var(--muted); margin: 0; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 27px; }
.summary-card { min-height: 148px; padding: 21px; border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.summary-card .summary-icon { width: 38px; height: 38px; border-radius: 10px; background: #edf4ef; color: var(--forest); display: grid; place-items: center; }
.summary-card:nth-child(2) .summary-icon { color: #8e6a1b; background: #fdf4de; }
.summary-card:nth-child(3) .summary-icon { color: #417d68; background: #e4f1e9; }
.summary-card:nth-child(4) .summary-icon { color: #b25142; background: #fff0ee; }
.summary-card h3 { margin: 17px 0 3px; font: 700 24px Manrope, sans-serif; letter-spacing: -.8px; }
.summary-card p { margin: 0; color: var(--muted); font-size: 13px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; }
.card { border-radius: 13px; padding: 23px; background: var(--surface); box-shadow: var(--shadow); }
.card-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.card-heading h2 { margin: 0; font: 700 17px Manrope, sans-serif; letter-spacing: -.4px; }
.card-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.text-link { border: 0; padding: 0; background: transparent; color: var(--forest); font-weight: 700; font-size: 13px; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: #82908a; font-size: 11px; text-align: left; text-transform: uppercase; letter-spacing: .05em; padding: 0 10px 11px; font-weight: 700; }
td { border-top: 1px solid #edf0ee; color: #3c4c48; padding: 14px 10px; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 0; } th:last-child, td:last-child { padding-right: 0; text-align: right; }
.table-title { display: block; color: #263834; font-weight: 700; } .table-sub { color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge.pending { color: #926e22; background: #fff5dc; } .badge.approved, .badge.done { color: #287053; background: #e8f5ed; } .badge.road { color: #326a98; background: #e8f3fb; } .badge.rejected { color: #ae4d3d; background: #fff0ee; }
.quick-actions { display: grid; gap: 10px; }
.quick-action { border: 1px solid var(--line); color: #334741; background: #fff; border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 12px; text-align: left; transition: .15s ease; }
.quick-action:hover { border-color: #9fc3b7; background: #f8fbf8; }
.quick-action .action-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; color: var(--forest); background: #e8f3eb; }
.quick-action strong { display: block; font-size: 13px; } .quick-action span { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }
.notice { margin-top: 20px; background: #edf6ef; border-radius: 11px; color: #456057; padding: 16px; display: flex; gap: 11px; line-height: 1.45; font-size: 13px; }
.notice i { color: var(--forest); margin-top: 2px; }
.filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; padding: 18px; border-radius: 11px; background: #f6f8f6; }
.filters .field { margin: 0; min-width: 150px; flex: 1; }.filters .field label { font-size: 12px; }.filters .field input, .filters .field select { padding: 10px 12px; }
.filters .btn { padding: 10px 15px; }
.main-card { padding: 24px; }
.pagination { border-top: 1px solid #edf0ee; margin-top: 6px; padding: 16px 0 0; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.pager-buttons { display: flex; gap: 5px; }.pager-buttons button { width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; color: #4c5d57; border-radius: 7px; }.pager-buttons button.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }.empty-state i { font-size: 36px; display: block; margin-bottom: 10px; color: #aac4bb; }.empty-state h3 { margin: 0 0 5px; color: #41534d; font: 700 17px Manrope, sans-serif; }
.modal-overlay { position: fixed; z-index: 10; inset: 0; background: rgba(11, 42, 35, .45); padding: 25px; display: grid; place-items: center; }
.modal { max-height: calc(100vh - 50px); overflow-y: auto; width: min(100%, 680px); background: #fff; padding: 28px; border-radius: 15px; box-shadow: 0 24px 70px rgba(5,30,24,.25); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }.modal-header h2 { margin: 0 0 5px; font: 700 22px Manrope, sans-serif; letter-spacing: -.7px; }.modal-header p { margin: 0; color: var(--muted); font-size: 13px; }.modal-header button { border: 0; background: #f1f4f2; color: var(--muted); width: 32px; height: 32px; border-radius: 50%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }.form-grid .wide { grid-column: 1 / -1; }
.product-line { display: grid; grid-template-columns: 1fr 150px 38px; gap: 10px; align-items: end; padding: 12px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 10px; }.product-line .field { margin: 0; }.icon-btn { height: 40px; border: 0; color: #bf594a; background: #fff0ee; border-radius: 8px; }
.offer-modal { width: min(100%, 980px); }.offer-waste-section, .offer-preferences { margin-top: 20px; }.section-label h3, .offer-preferences h3 { margin: 0 0 4px; color: #294039; font: 700 16px Manrope, sans-serif; }.section-label p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }.offer-waste-line { display: grid; grid-template-columns: 34px minmax(145px,1.35fr) minmax(105px,.7fr) minmax(100px,.7fr) minmax(110px,.8fr) minmax(150px,1fr) 38px; gap: 10px; align-items: end; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfa; }.offer-waste-line .field { margin: 0; }.offer-waste-line .field label { font-size: 11px; }.offer-waste-line .field input { width: 100%; min-height: 51px; box-sizing: border-box; padding: 13px 14px; border: 1px solid #d8e1dc; border-radius: 10px; background: #fff; color: var(--ink); outline: none; transition: .2s ease; }.offer-waste-line .field input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(23,78,67,.09); }.line-number { align-self: center; color: #21654d; font-weight: 800; text-align: center; }.offer-preferences { padding: 16px; border-radius: 10px; background: #f7faf8; }.offer-preferences .field { margin: 12px 0; }.offer-preferences small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }.check-line { display: block; margin-top: 10px; color: #315348; font-size: 14px; font-weight: 600; }.check-line input { margin-right: 7px; }
#new-vehicle-form .field > input:not([type="checkbox"]):not([type="file"]), #new-vehicle-form .field > select, #new-vehicle-form .field > textarea { width: 100%; min-height: 51px; box-sizing: border-box; padding: 13px 14px; border: 1px solid #d8e1dc; border-radius: 10px; background: #fff; color: var(--ink); outline: none; transition: .2s ease; }
#new-vehicle-form .field > input:not([type="checkbox"]):not([type="file"]):focus, #new-vehicle-form .field > select:focus, #new-vehicle-form .field > textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(23,78,67,.09); }
.profile-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; align-items: start; }.profile-readonly { margin: 6px 0 0; }.profile-readonly div { padding: 12px 0; border-bottom: 1px solid var(--line); }.profile-readonly dt { margin-bottom: 5px; color: var(--muted); font-size: 12px; }.profile-readonly dd { margin: 0; color: #294039; font-weight: 650; white-space: pre-line; }.password-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; }.password-card h2 { margin: 0 0 5px; font: 700 17px Manrope, sans-serif; }.password-card p { margin: 0; color: var(--muted); font-size: 13px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.detail-modal { width: min(100%, 760px); }
.detail-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.detail-meta > div { min-height: 76px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf8; }
.detail-meta > div.driver-document-box { grid-column: 3; }
.detail-meta span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.detail-meta strong { display: block; color: #294039; font-size: 13px; }
.detail-section { margin-top: 20px; }.detail-section h3 { margin: 0 0 8px; color: #294039; font: 700 15px Manrope, sans-serif; }.detail-section p { margin: 0; color: #566863; line-height: 1.55; }.document-list { display: grid; gap: 9px; }.document-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }.document-row strong, .document-row small { display: block; }.document-row small { margin-top: 3px; color: var(--muted); }.btn-small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.detail-table th:last-child, .detail-table td:last-child { text-align: right; }.detail-table th:nth-child(2), .detail-table td:nth-child(2) { text-align: right; }
.detail-loading { display: flex; align-items: center; gap: 10px; min-height: 150px; justify-content: center; color: var(--muted); }
.payment-notice { display: flex; gap: 9px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px; background: #eff8f4; border: 1px solid #cde9dc; border-radius: 10px; color: #315d50; font-size: 13px; line-height: 1.45; }
.payment-notice i { color: #2f8c66; font-size: 18px; flex: 0 0 auto; }
.payment-modal { width: min(100%, 720px); }
.payment-selection-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 9px; }.payment-selection-head label { display: block; color: #314940; font-size: 14px; font-weight: 700; }.payment-selection-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.payment-invoice-list { max-height: 218px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.payment-invoice-option { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; min-height: 67px; padding: 11px 13px; border-bottom: 1px solid #edf1ef; cursor: pointer; }.payment-invoice-option:last-child { border-bottom: 0; }.payment-invoice-option:hover { background: #f7fbf9; }.payment-invoice-option input { position: absolute; opacity: 0; }.payment-checkbox { width: 18px; height: 18px; border: 1.5px solid #aac2b8; border-radius: 5px; position: relative; }.payment-invoice-option input:checked + .payment-checkbox { background: var(--forest); border-color: var(--forest); }.payment-invoice-option input:checked + .payment-checkbox:after { content: ""; position: absolute; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); left: 3px; top: 4px; }.payment-invoice-copy { min-width: 0; }.payment-invoice-copy strong { display: block; color: #294039; font-size: 13px; }.payment-invoice-copy small { display: block; margin-top: 4px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.payment-invoice-option > strong { color: #234b3f; font-size: 13px; white-space: nowrap; }
.payment-invoice-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 18px; }
.payment-invoice-summary > div { padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf8; }
.payment-invoice-summary span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; }.payment-invoice-summary strong { display: block; color: #294039; font: 700 14px Manrope, sans-serif; }
.input-with-suffix { display: flex; align-items: stretch; }.input-with-suffix input { min-width: 0; border-radius: 8px 0 0 8px; }.input-with-suffix span { display: grid; place-items: center; padding: 0 15px; color: #486159; background: #f0f4f1; border: 1px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0; font-weight: 700; font-size: 13px; }.payment-help { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.payment-breakdown { display: grid; grid-template-columns: 1fr auto; gap: 7px 16px; margin-top: 15px; padding: 13px; border-radius: 9px; background: #f8faf8; color: #5e706a; font-size: 13px; }.payment-breakdown strong { color: #294039; text-align: right; }
.btn-danger { border: 0; background: #b74d40; color: #fff; }.btn-danger:hover { background: #983b31; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; background: #1c473e; color: #fff; box-shadow: 0 10px 24px rgba(17,52,44,.22); padding: 14px 16px; border-radius: 10px; display: flex; align-items: center; gap: 9px; font-size: 14px; }
.hamburger { display: none; }

@media (max-width: 1050px) { .summary-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.portal { grid-template-columns: 1fr; }.sidebar { transform: translateX(-100%); transition: transform .2s; }.sidebar.open { transform: translateX(0); }.content { grid-column: 1; }.hamburger { display: block !important; }.topbar { padding: 0 22px; } }
@media (max-width: 700px) { .login-page { grid-template-columns: 1fr; }.login-visual { min-height: 260px; padding: 28px; }.login-quote { padding: 40px 0 25px; }.login-points { display: none; }.login-panel { padding: 35px 24px; }.page { padding: 28px 16px; }.page-heading { display: grid; }.summary-grid { grid-template-columns: 1fr 1fr; gap: 11px; }.summary-card { min-height: 130px; padding: 16px; }.summary-card h3 { font-size: 20px; }.card, .main-card { padding: 17px; }.topbar { height: 65px; }.breadcrumb { display: none; }.filters { display: grid; }.filters .field { min-width: 0; }.pagination { gap: 14px; }.form-grid, .profile-grid { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; }.product-line { grid-template-columns: 1fr 100px 36px; padding: 8px; }.offer-waste-line { grid-template-columns: 28px 1fr 1fr; padding: 10px; }.offer-waste-line .line-number { grid-row: 1 / span 2; }.offer-waste-line .icon-btn { grid-column: 3; }.modal-overlay { padding: 12px; }.modal { padding: 20px; }.detail-meta, .payment-invoice-summary { grid-template-columns: 1fr; }.detail-meta > div.driver-document-box { grid-column: auto; }.payment-invoice-option { grid-template-columns: 20px 1fr; }.payment-invoice-option > strong { grid-column: 2; }.password-card { display: grid; }.modal-actions { flex-wrap: wrap; }.modal-actions .btn { flex: 1; }.page-heading .btn { width: 100%; }.avatar { display: none; } }
#new-vehicle-form .field { min-width: 0; }
#new-vehicle-form input[type="file"] { max-width: 100%; }
