:root{font-family:Arial,sans-serif;color:#202a25;background:#f3f6f4}*{box-sizing:border-box}body{margin:0}header{background:#183d30;color:white;padding:15px 4%;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}header a{color:#fff}nav{background:#245640;padding:10px 4%;display:flex;gap:8px;flex-wrap:wrap}nav a{color:#fff;text-decoration:none;padding:8px 10px;border-radius:6px}nav a:hover{background:#397654}main{max-width:1450px;margin:24px auto;padding:0 18px}h1{font-size:26px;margin:10px 0 18px}h2{font-size:18px;margin-top:0}.muted{color:#65736b}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.cards article,.panel,.login{background:#fff;border:1px solid #e1e8e3;border-radius:12px;padding:18px;margin-bottom:16px;box-shadow:0 2px 8px #102b1710}.cards small{display:block;color:#637168}.cards strong{display:block;font-size:25px;margin-top:8px;color:#1c4c36}.gridform{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;align-items:end}.gridform label,form label{display:flex;flex-direction:column;gap:6px;font-size:14px}.wide{grid-column:1/-1}input,select,textarea{font:inherit;border:1px solid #cbd7ce;border-radius:7px;padding:11px;background:#fff;width:100%;min-width:0}button,.button{border:0;border-radius:7px;background:#226342;color:white;padding:11px 16px;font-weight:600;cursor:pointer;text-decoration:none;display:inline-block}button:hover,.button:hover{background:#174b30}.secondary{background:#63736a}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px}.flash{padding:12px;border-radius:8px;margin:10px 0;background:#e2f3e8}.flash.error{background:#ffe8e5;color:#9b2c20}table{border-collapse:collapse;width:100%;font-size:14px}th,td{border-bottom:1px solid #e4eae5;text-align:left;padding:9px 8px;vertical-align:top}th{background:#f0f5f1}section.panel{overflow-x:auto}.login{max-width:420px;margin:8vh auto}.login form{display:grid;gap:14px}footer{text-align:center;color:#829087;padding:24px;font-size:12px}.notes{display:grid;grid-template-columns:1fr 1fr;gap:12px}.slip{background:white;border:1px dashed #888;padding:14px;min-width:0}.slip h2{text-align:center;font-size:16px}.slip table{font-size:12px}.slip td,.slip th{padding:5px 3px}.slip h3{font-size:16px}@media(max-width:700px){.notes{grid-template-columns:1fr}nav{gap:2px}nav a{font-size:13px;padding:8px}main{padding:0 10px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cards strong{font-size:19px}}@media print{body{background:white}header,nav,footer,.no-print{display:none!important}main{margin:0;padding:0;max-width:none}.notes{display:grid;grid-template-columns:1fr 1fr;gap:0;height:29.7cm}.slip{border:0;border-right:1px dashed #888;padding:8mm 5mm;break-inside:avoid}.slip:last-child{border-right:0}table{font-size:9pt}.slip h2{font-size:12pt}.slip h3{font-size:11pt}@page{size:A4 portrait;margin:8mm}}
.labelgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.qrlabel{background:#fff;border:1px solid #ddd;padding:10px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px}.qrlabel img{width:105px;height:105px}.qrlabel small{font-size:11px}@media print{.labelgrid{grid-template-columns:repeat(4,1fr)}.qrlabel{break-inside:avoid}}

/* Default label layout for a common 100 x 50 mm thermal label. Adjust after the physical printer/label size is confirmed. */
@page thermal-label { size: 100mm 50mm; margin: 1.5mm; }
@media print {
  body.label-print-screen { page: thermal-label; background: #fff; }
  body.label-print-screen main { margin: 0; padding: 0; max-width: none; }
  body.label-print-screen footer { display: none !important; }
  body.label-print-screen .labelgrid { display: block; margin: 0; padding: 0; }
  body.label-print-screen .qrlabel { width: 97mm; height: 47mm; margin: 0; padding: 2mm; display: grid; grid-template-columns: 28mm 1fr; gap: 3mm; align-items: center; justify-items: center; border: 0; border-bottom: 0; border-radius: 0; box-shadow: none; page-break-after: always; break-after: page; overflow: hidden; }
  body.label-print-screen .qrlabel:last-child { page-break-after: auto; break-after: auto; }
  body.label-print-screen .qrlabel img { width: 25mm; height: 25mm; object-fit: contain; }
  body.label-print-screen .qrlabel b { font-size: 16pt; overflow-wrap: anywhere; }
  body.label-print-screen .qrlabel small { display: block; font-size: 9pt; margin-top: 2mm; }
  body.label-print-screen .no-print { display: none !important; }
}

.header-user{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.inline-form{display:inline;margin:0}.logout-button{padding:6px 10px;background:#49685a;font-size:12px}.logout-button:hover{background:#355244}


/* ==========================================================
   APLIKASI TEMBAKAU — UI CONSISTENCY REVISION 2.3.0
   Global visual refinement. Does not change business logic.
   ========================================================== */
:root {
  color-scheme: light;
  --tb-brand: #1d5a40;
  --tb-brand-dark: #153f2e;
  --tb-brand-soft: #eaf4ee;
  --tb-brand-border: #cfe2d5;
  --tb-ink: #17251d;
  --tb-muted: #66766d;
  --tb-border: #dce5de;
  --tb-surface: #ffffff;
  --tb-surface-soft: #f7faf8;
  --tb-canvas: #f1f5f2;
  --tb-danger: #a52c28;
  --tb-danger-soft: #fff0ee;
  --tb-warn: #81530c;
  --tb-warn-soft: #fff6e5;
  --tb-radius: 14px;
  --tb-radius-sm: 9px;
  --tb-shadow: 0 4px 16px rgba(22, 50, 34, .055);
  --tb-focus: 0 0 0 3px rgba(37, 116, 76, .16);
}

html { background: var(--tb-canvas); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--tb-canvas);
  color: var(--tb-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
header {
  align-items: center;
  padding: 16px clamp(16px, 3.2vw, 44px);
  background: linear-gradient(112deg, var(--tb-brand-dark), var(--tb-brand));
  box-shadow: 0 2px 10px rgba(13, 49, 31, .12);
}
header > b { font-size: 16px; letter-spacing: .025em; }
.header-user { color: rgba(255,255,255,.92); font-size: 13px; gap: 12px; }
nav {
  padding: 9px clamp(12px, 3vw, 42px);
  gap: 5px;
  background: #fff;
  border-bottom: 1px solid var(--tb-border);
  box-shadow: 0 2px 8px rgba(25, 55, 37, .035);
}
nav a {
  color: #385447;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
nav a:hover, nav a:focus-visible {
  color: var(--tb-brand-dark);
  background: var(--tb-brand-soft);
  border-color: var(--tb-brand-border);
}
main {
  width: min(100% - 32px, 1480px);
  max-width: 1480px;
  margin: 26px auto 38px;
  padding: 0;
}
footer { padding: 26px 16px 32px; color: #829087; }

h1, h2, h3, h4 { color: var(--tb-ink); line-height: 1.25; }
h1 {
  margin: 0 0 20px;
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 750;
  letter-spacing: -.025em;
}
h2 { margin: 0 0 13px; font-size: 18px; font-weight: 720; letter-spacing: -.012em; }
h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
p { margin-top: 0; }
.muted, small { color: var(--tb-muted); }
.muted { line-height: 1.55; }

.panel, .cards article, .login {
  background: var(--tb-surface);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow);
}
.panel {
  padding: clamp(16px, 2vw, 24px);
  margin-bottom: 18px;
  min-width: 0;
}
section.panel { overflow: visible; }
.cards { gap: 14px; align-items: stretch; }
.cards article {
  min-width: 0;
  padding: 19px 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.cards small { font-size: 12px; font-weight: 600; }
.cards strong { color: var(--tb-brand); font-size: clamp(21px, 2vw, 27px); line-height: 1.2; overflow-wrap: anywhere; }

/* Forms: aligned labels, consistent input dimensions and spacing */
form { min-width: 0; }
.gridform {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(min(100%, 220px), 1fr) );
  align-items: end;
  gap: 16px;
}
.gridform label, form label {
  min-width: 0;
  gap: 7px;
  color: #344a3e;
  font-size: 13px;
  font-weight: 650;
}
label small, form label small {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
input, select, textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #cbd8cf;
  border-radius: var(--tb-radius-sm);
  background: #fff;
  color: var(--tb-ink);
  font: inherit;
  font-size: 14px;
  box-shadow: inset 0 1px 1px rgba(20, 45, 29, .025);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9aa79f; }
input:hover, select:hover, textarea:hover { border-color: #9bb5a4; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #3c8b61;
  box-shadow: var(--tb-focus);
}
input:disabled, select:disabled, textarea:disabled { background: #f1f4f2; color: #849087; cursor: not-allowed; }
input[type="checkbox"], input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 auto;
  padding: 0;
  accent-color: var(--tb-brand);
  box-shadow: none;
}
input[type="file"] { padding: 7px; background: var(--tb-surface-soft); }
input[type="date"], input[type="number"] { font-variant-numeric: tabular-nums; }
.wide { grid-column: 1 / -1; }
.actions, .report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 14px 0 18px;
}

/* Buttons and links have consistent visual weight */
button, .button {
  min-height: 41px;
  border: 1px solid var(--tb-brand);
  border-radius: 9px;
  padding: 10px 15px;
  background: var(--tb-brand);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: transform .08s ease, background .14s ease, box-shadow .14s ease;
}
button:hover, .button:hover { background: var(--tb-brand-dark); border-color: var(--tb-brand-dark); color: #fff; }
button:active, .button:active { transform: translateY(1px); }
button:focus-visible, .button:focus-visible { outline: none; box-shadow: var(--tb-focus); }
button:disabled, .button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
button.secondary, .button.secondary, a.secondary {
  color: #33483c;
  background: #f0f5f1;
  border-color: #d5e1d8;
}
button.secondary:hover, .button.secondary:hover, a.secondary:hover { background: #e5efe8; border-color: #bfd4c5; color: var(--tb-brand-dark); }
.logout-button { min-height: 32px; padding: 6px 10px; border-color: rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.13); color: #fff; font-size: 12px; }
.logout-button:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.25); }
.inline-form { display: inline-flex; margin: 0; }

/* Tables: readable, compact, horizontal scroll where needed */
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--tb-border); border-radius: 11px; background: #fff; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th, td { padding: 11px 12px; border-bottom: 1px solid #e7ede9; text-align: left; vertical-align: middle; }
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f7f4;
  color: #365143;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}
td { color: #2c3d32; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfdfb; }
td .button, td button { min-height: 34px; padding: 7px 10px; font-size: 12px; white-space: nowrap; }
td form { margin: 0; }
.table-wrap table { min-width: 640px; }
.table-wrap table th:first-child { border-top-left-radius: 10px; }
.table-wrap table th:last-child { border-top-right-radius: 10px; }

/* Flash messages and small state badges */
.flash {
  padding: 12px 15px;
  border: 1px solid #cde3d3;
  border-left: 4px solid #3d8c5d;
  border-radius: 10px;
  margin: 0 0 15px;
  background: #eef8f1;
  color: #22543a;
  line-height: 1.45;
}
.flash.error { background: var(--tb-danger-soft); border-color: #f1ceca; border-left-color: #c2443c; color: var(--tb-danger); }
.flash.warning { background: var(--tb-warn-soft); border-color: #eedeb9; border-left-color: #c58b26; color: var(--tb-warn); }
.count-badge, .warehouse-badge, .status-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--tb-brand-border);
  border-radius: 999px;
  background: var(--tb-brand-soft);
  color: var(--tb-brand-dark);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

/* Accordions, section headers, and detail panels */
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 15px; }
.section-heading > div { min-width: 0; }
.section-heading .muted { margin: 5px 0 0; }
details {
  border: 1px solid var(--tb-border);
  border-radius: 11px;
  background: var(--tb-surface-soft);
  padding: 0;
  overflow: hidden;
}
details + details { margin-top: 12px; }
details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #294a38;
  background: #f5f9f6;
  cursor: pointer;
  font-weight: 750;
  list-style-position: inside;
}
details > summary:hover { background: #edf5ef; }
details[open] > summary { border-bottom: 1px solid var(--tb-border); }
details > p, details > form, details > .table-wrap, details > div, details > section { margin: 16px; }
details > form { max-width: 100%; }
hr, .divider { border: 0; border-top: 1px solid var(--tb-border); }

/* Dashboard/report cards and report switches */
.report-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 13px; margin: 14px 0 20px; }
.report-card { min-width: 0; padding: 17px 18px; border: 1px solid var(--tb-border); border-radius: 12px; background: #fff; box-shadow: var(--tb-shadow); }
.report-card .num, .report-card .number { display: block; margin-top: 6px; color: var(--tb-brand); font-size: clamp(20px, 2vw, 25px); font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.report-subtitle { color: var(--tb-muted); margin-top: -8px; margin-bottom: 18px; }
.report-title { margin-bottom: 14px; }
.report-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.report-switch a { padding: 9px 13px; border: 1px solid var(--tb-border); border-radius: 9px; background: #fff; color: #375644; text-decoration: none; font-weight: 700; }
.report-switch a:hover, .report-switch a.active { background: var(--tb-brand-soft); border-color: var(--tb-brand-border); color: var(--tb-brand-dark); }
.report-table { max-width: 100%; overflow-x: auto; }

/* Improve common input-heavy modules */
.finance-form, .finance-primary-fields { gap: 15px; }
.finance-primary-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: end; }
.weigh-page { max-width: 1120px; margin-inline: auto; }
.weigh-panel { padding: clamp(16px, 2.3vw, 24px); }
.weigh-entry-form, .admin-correction-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: end; }
.weigh-entry-form .weigh-bale-field { grid-column: 1 / -1; }
.weigh-entry-form .weigh-gross-field { grid-column: 1 / -1; }
.weigh-mat-choice { grid-column: 1 / -1; padding: 13px 14px; border: 1px solid var(--tb-border); background: var(--tb-surface-soft); border-radius: 10px; }
.check-line { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 11px !important; cursor: pointer; }
.check-line span { display: flex; flex-direction: column; gap: 4px; }
.weigh-mat-fee { grid-column: 1 / -1; }
.weigh-submit { grid-column: 1 / -1; width: 100%; min-height: 48px; font-size: 14px; }
.weigh-rule-note { display: flex; flex-direction: column; gap: 5px; margin-top: 16px; padding: 13px 15px; border: 1px solid var(--tb-brand-border); border-radius: 10px; background: var(--tb-brand-soft); color: #365a43; font-size: 12px; }
.warehouse-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 13px; align-items: end; }
.warehouse-form label { min-width: 0; }
.weigh-entry-panel { border-top: 3px solid #3b8a5d; }
.admin-weigh-tools { background: #fffefa; }
.admin-correction-submit { grid-column: 1 / -1; }
.legacy-mat-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; align-items: end; padding: 13px 0; border-bottom: 1px solid var(--tb-border); }
.legacy-mat-form:last-child { border-bottom: 0; }

/* Login and full-width page sections */
.login { padding: 27px; }
.login h1, .login h2 { margin-top: 0; }
.login form { display: grid; gap: 15px; }
.login button { width: 100%; }
.labelgrid { gap: 12px; }
.qrlabel { border-radius: 10px; border-color: var(--tb-border); box-shadow: 0 2px 8px rgba(20, 50, 31, .04); }

/* Small screens: prevent cramped or overflowing form boxes */
@media (max-width: 900px) {
  main { width: min(100% - 24px, 1480px); margin-top: 20px; }
  nav { padding-inline: 12px; }
  nav a { padding: 8px 9px; }
  .panel { padding: 16px; }
  .table-wrap table { min-width: 620px; }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  header { padding: 14px 15px; align-items: flex-start; }
  header > b { font-size: 14px; }
  .header-user { width: 100%; justify-content: space-between; }
  nav { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; padding: 8px 10px; }
  nav a { flex: 0 0 auto; white-space: nowrap; font-size: 12px; }
  main { width: calc(100% - 20px); margin: 17px auto 28px; }
  h1 { font-size: 23px; margin-bottom: 15px; }
  h2 { font-size: 17px; }
  .panel { padding: 14px; border-radius: 12px; margin-bottom: 13px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cards article { padding: 13px; border-radius: 11px; }
  .cards strong { font-size: 18px; }
  .gridform, .weigh-entry-form, .admin-correction-form, .finance-primary-fields { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .gridform > *, .weigh-entry-form > *, .admin-correction-form > *, .finance-primary-fields > * { grid-column: 1 / -1; }
  .warehouse-form { grid-template-columns: minmax(0, 1fr); }
  .warehouse-form button { width: 100%; }
  .section-heading { flex-direction: column; gap: 9px; }
  .section-heading > .count-badge, .section-heading > .warehouse-badge { align-self: flex-start; }
  .actions button, .actions .button { flex: 1 1 auto; }
  .report-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .report-card { padding: 13px; }
  .report-card .num, .report-card .number { font-size: 19px; }
  .table-wrap { border-radius: 9px; }
  .table-wrap table { min-width: 620px; }
  th, td { padding: 9px 10px; }
  button, .button { min-height: 42px; }
  .notes { grid-template-columns: 1fr; }
  .weigh-submit { min-height: 50px; }
  details > p, details > form, details > .table-wrap, details > div, details > section { margin: 12px; }
}

/* Preserve receipt and QR-label print layouts; remove screen decoration on paper. */
@media print {
  html, body { background: #fff !important; color: #000 !important; font-family: Arial, sans-serif !important; }
  header, nav, footer, .no-print, button, .actions { display: none !important; }
  main { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .panel, .cards article, .report-card, .login { box-shadow: none !important; }
  .panel { border-color: #ddd !important; }
  .table-wrap { overflow: visible !important; border: 0 !important; }
  .table-wrap table { min-width: 0 !important; }
  th { position: static !important; background: #f3f3f3 !important; color: #000 !important; }
}


/* ==========================================================
   REVISION 2.4.0 — FORM ALIGNMENT AND ACTIVE NAVIGATION
   ========================================================== */
/* Align labels and controls at a shared top edge. Helper text no longer
   pushes its input vertically out of line with neighboring fields. */
.gridform,
.finance-primary-fields,
.finance-form {
  align-items: start !important;
}
.gridform > label,
.finance-primary-fields > label,
.finance-form > label {
  align-self: stretch;
}
.gridform > button,
.finance-primary-fields > button,
.finance-form > button {
  align-self: end;
}
/* Align season filter and report actions cleanly on desktop. */
.report-actions {
  display: grid !important;
  grid-template-columns: minmax(180px, 260px) repeat(3, max-content);
  align-items: end;
  justify-content: start;
  column-gap: 12px;
  row-gap: 10px;
}
.report-actions label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}
.report-actions button,
.report-actions .button {
  align-self: end;
  white-space: nowrap;
}
/* Current page in navigation: dark-green active pill with a marker. */
nav a.active,
nav a[aria-current="page"] {
  color: #fff !important;
  background: var(--tb-brand, #1d5a40) !important;
  border-color: var(--tb-brand-dark, #153f2e) !important;
  box-shadow: inset 0 -3px 0 rgba(255,255,255,.24), 0 2px 5px rgba(18,56,36,.12);
}
nav a.active::before,
nav a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: #bcecc9;
  vertical-align: middle;
}
nav a.active:hover,
nav a[aria-current="page"]:hover {
  color: #fff !important;
  background: var(--tb-brand-dark, #153f2e) !important;
}
@media (max-width: 900px) {
  .report-actions {
    grid-template-columns: minmax(170px, 1fr) max-content max-content max-content;
  }
}
@media (max-width: 620px) {
  .gridform,
  .finance-primary-fields,
  .finance-form {
    align-items: stretch !important;
  }
  .gridform > button,
  .finance-primary-fields > button,
  .finance-form > button {
    align-self: stretch;
    width: 100%;
  }
  .report-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch;
  }
  .report-actions label,
  .report-actions button,
  .report-actions .button {
    width: 100%;
  }
}
