:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --text: #132235;
  --muted: #5c6f84;
  --line: #d8e1ea;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --danger: #b42318;
  --warn: #b54708;
  --ok: #027a48;
  --radius: 16px;
  --shadow: 0 14px 30px rgba(19, 34, 53, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 110% -10%, #d7f2ef 0%, transparent 55%),
    radial-gradient(1000px 500px at -10% -20%, #e6f0fb 0%, transparent 60%),
    var(--bg);
  min-height: 100vh;
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(15, 118, 110, 0.07), transparent 30%),
    linear-gradient(310deg, rgba(17, 94, 89, 0.05), transparent 35%);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92vw); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 225, 234, 0.8);
  background: rgba(255, 255, 255, 0.86);
}

.topbar-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav a {
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface-soft);
}

.user-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  margin-left: auto;
}

.user-chip-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.user-chip strong {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.user-chip span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.user-chip-sub {
  color: var(--muted);
  font-size: 12px;
}

.user-chip-sub small {
  font-size: 13px;
}

.main-shell {
  padding: 22px 0 18px;
  position: relative;
  z-index: 1;
  animation: fade-up 0.45s ease;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  display: block;
  font-size: 24px;
  margin-top: 5px;
}

.metric-chip {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 10px 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.form,
.form-grid {
  display: grid;
  gap: 10px;
}

.form.compact { gap: 8px; }

.form-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  resize: vertical;
}

.row input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

input:focus, select:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.58);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(19, 34, 53, 0.09);
}

.btn.primary {
  color: #fff;
  border-color: var(--brand-strong);
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
}

.btn.danger {
  color: #fff;
  border-color: var(--danger);
  background: var(--danger);
}

.btn.success {
  color: #fff;
  border-color: #15803d;
  background: #16a34a;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.space { justify-content: space-between; }

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.table th, .table td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.table .compact-col {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

.receipt-btn {
  min-height: 26px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
}

.table thead th {
  background: #f8fbfc;
  color: var(--muted);
  font-weight: 700;
}

.table tfoot th {
  background: #f8fbfc;
}

.sms-panel {
  font-size: 12px;
}

.sms-panel h1 {
  font-size: 22px;
  margin-bottom: 4px;
}

.sms-panel h2 {
  font-size: 17px;
  margin-bottom: 4px;
}

.sms-panel label,
.sms-panel .muted {
  font-size: 11px;
}

.sms-panel .btn {
  font-size: 11px;
}

.sms-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.sms-top-grid .section {
  margin: 0;
}

.sms-panel-entry {
  justify-self: stretch;
}

.sms-send-section {
  justify-self: stretch;
}

.sms-send-section .section-head {
  justify-content: flex-end;
  text-align: right;
}

.sms-personnel-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

.sms-personnel-form input,
.sms-personnel-form select {
  min-height: 31px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
}

.sms-form-action {
  display: flex;
  align-items: end;
}

.sms-form-action .btn {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
}

.sms-list-actions {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.sms-active-count {
  margin: -2px 0 8px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sms-excel-import {
  display: flex;
  align-items: end;
}

.sms-person-search {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 170px;
}

.sms-person-search input {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.sms-status-filter {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 150px;
}

.sms-payment-filter {
  display: flex;
  align-items: end;
  gap: 6px;
}

.sms-payment-filter > div {
  width: 94px;
}

.sms-payment-filter select {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.sms-payment-filter .btn {
  white-space: nowrap;
}

.sms-status-filter select,
.sms-status-update select {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.sms-status-update {
  min-width: 0;
}

.sms-status-update select {
  min-height: 22px;
  padding: 2px 4px;
  border-radius: 6px;
  font-size: 9px;
  width: 54px;
}

.sms-list-actions .btn {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.sms-send-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: end;
}

.sms-send-form textarea {
  min-height: 72px;
  font-size: 11px;
}

.sms-schedule-fields {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.sms-schedule-fields input {
  min-height: 31px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
}

.sms-plans-panel {
  margin-top: 10px;
}

.sms-plans-table {
  table-layout: fixed;
  min-width: 720px;
}

.sms-plans-table th,
.sms-plans-table td {
  max-width: 1px;
  padding: 5px 6px;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sms-plans-table th:nth-child(1),
.sms-plans-table td:nth-child(1) {
  width: 34px;
  text-align: center;
}

.sms-plans-table input[type="checkbox"] {
  width: 13px;
  min-height: 13px;
}

.sms-log-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}

.sms-log-filters input {
  min-height: 31px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
}

.sms-log-filter-actions {
  display: flex;
  gap: 6px;
}

.sms-log-filter-actions .btn {
  flex: 1;
  min-height: 31px;
  padding: 6px 8px;
}

.sms-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.sms-document-table {
  table-layout: fixed;
  min-width: 1460px;
  width: max-content;
}

.sms-document-table th,
.sms-document-table td {
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.sms-document-table th {
  color: var(--muted);
  font-weight: 800;
}

.sms-document-table th:nth-child(1),
.sms-document-table td:nth-child(1) {
  width: 92px;
}

.sms-document-table th:nth-child(2),
.sms-document-table td:nth-child(2) {
  width: 132px;
}

.sms-document-table th:nth-child(3),
.sms-document-table td:nth-child(3) {
  width: 94px;
}

.sms-document-table th:nth-child(4),
.sms-document-table td:nth-child(4) {
  width: 100px;
}

.sms-document-table th:nth-child(5),
.sms-document-table td:nth-child(5) {
  width: 62px;
}

.sms-document-table th:nth-last-child(1),
.sms-document-table td:nth-last-child(1),
.sms-document-table th:nth-last-child(2),
.sms-document-table td:nth-last-child(2),
.sms-document-table th:nth-last-child(3),
.sms-document-table td:nth-last-child(3) {
  width: 110px;
}

.sms-document-month-cell {
  width: 74px;
  min-width: 74px;
  color: var(--muted);
}

.sms-document-month-cell b {
  color: var(--text);
}

.sms-document-pay-status {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.sms-document-pay-status.is-paid {
  color: #059669;
}

.sms-document-pay-status.is-unpaid {
  color: #dc2626;
}

.sms-personnel-table {
  table-layout: fixed;
  min-width: 1464px;
  width: 1464px;
}

.sms-personnel-table th,
.sms-personnel-table td {
  padding: 7px 8px;
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sms-personnel-table th:nth-child(1),
.sms-personnel-table td:nth-child(1) {
  width: 36px;
  text-align: center;
}

.sms-personnel-table th:nth-child(2),
.sms-personnel-table td:nth-child(2) {
  width: 82px;
  padding-left: 4px;
  padding-right: 3px;
  text-align: left;
}

.sms-personnel-table th:nth-child(3),
.sms-personnel-table td:nth-child(3) {
  width: 84px;
  padding-left: 3px;
  padding-right: 4px;
  text-align: left;
}

.sms-personnel-table th:nth-child(4),
.sms-personnel-table td:nth-child(4) {
  width: 84px;
  padding-left: 3px;
  padding-right: 4px;
  text-align: left;
}

.sms-personnel-table th:nth-child(5),
.sms-personnel-table td:nth-child(5) {
  width: 82px;
}

.sms-personnel-table th:nth-child(6),
.sms-personnel-table td:nth-child(6) {
  width: 88px;
}

.sms-personnel-table th:nth-child(7),
.sms-personnel-table td:nth-child(7) {
  width: 94px;
}

.sms-personnel-table th:nth-child(8),
.sms-personnel-table td:nth-child(8) {
  width: 92px;
}

.sms-personnel-table th:nth-child(9),
.sms-personnel-table td:nth-child(9) {
  width: 70px;
}

.sms-personnel-table th:nth-child(10),
.sms-personnel-table td:nth-child(10) {
  width: 62px;
  padding-left: 3px;
  padding-right: 3px;
}

.sms-personnel-table th:nth-child(11),
.sms-personnel-table td:nth-child(11) {
  width: 112px;
}

.sms-personnel-table th:nth-child(12),
.sms-personnel-table td:nth-child(12) {
  width: 72px;
}

.sms-personnel-table th:nth-child(13),
.sms-personnel-table td:nth-child(13) {
  width: 52px;
}

.sms-personnel-table th:nth-child(14),
.sms-personnel-table td:nth-child(14) {
  width: 92px;
}

.sms-personnel-table th:nth-child(15),
.sms-personnel-table td:nth-child(15) {
  width: 92px;
}

.sms-personnel-table th:nth-child(16),
.sms-personnel-table td:nth-child(16) {
  width: 80px;
}

.sms-personnel-table th:nth-child(17),
.sms-personnel-table td:nth-child(17) {
  width: 98px;
}

.sms-filter-row th {
  padding: 3px 3px;
}

.sms-filter-row input {
  min-height: 21px;
  padding: 2px 4px;
  border-radius: 6px;
  font-size: 9px;
}

.sms-personnel-table input[type="checkbox"] {
  width: 12px;
  min-height: 12px;
}

.sms-note-toggle {
  min-height: 21px;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 9px;
}

.sms-payment-total {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  overflow: visible;
  text-overflow: clip;
}

.sms-receivable-total {
  font-weight: 800;
  color: var(--warn);
  text-align: left;
}

.sms-remaining-total {
  font-weight: 800;
  color: var(--danger);
  text-align: left;
}

.sms-name-cell {
  line-height: 1.05;
}

.sms-name-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sms-total-row th {
  background: #f8fbfc;
  color: var(--text);
  font-weight: 800;
}

.sms-note-row td {
  max-width: none;
  white-space: normal;
  overflow: visible;
  background: #fbfdfe;
}

.sms-note-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 8px;
  align-items: end;
}

.sms-note-editor textarea {
  min-height: 74px;
  font-size: 12px;
}

.sms-settings-panel h1 {
  margin-bottom: 4px;
}

.sms-settings-head-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.sms-settings-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sms-settings-count {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.sms-settings-result-count {
  color: var(--ok);
}

.sms-settings-search {
  width: min(320px, 100%);
  margin-bottom: 10px;
}

.sms-month-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px 7px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sms-month-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 10px;
  color: var(--text);
  white-space: nowrap;
}

.sms-month-option input {
  width: 11px;
  min-height: 11px;
}

.sms-month-all {
  grid-column: 1 / -1;
  font-weight: 700;
}

.sms-settings-table {
  table-layout: fixed;
  min-width: 860px;
}

.sms-settings-table th,
.sms-settings-table td {
  padding: 5px 7px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sms-settings-table th:nth-child(1),
.sms-settings-table td:nth-child(1) {
  width: 38px;
  text-align: center;
}

.sms-settings-table th:nth-child(2),
.sms-settings-table td:nth-child(2) {
  width: 66px;
}

.sms-settings-table input[type="checkbox"] {
  width: 12px;
  min-height: 12px;
}

.sms-settings-submit {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.sms-payment-panel {
  padding: 12px;
}

.sms-payment-panel .section-head {
  margin-bottom: 8px;
}

.sms-payment-panel .section-head > div:first-child {
  flex: 1;
  text-align: center;
}

.sms-payment-panel h1 {
  font-size: 18px;
  margin: 0 0 2px;
}

.sms-payment-person-name {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.sms-payment-panel h2 {
  font-size: 14px;
  margin: 0 0 8px;
}

.sms-payment-panel label,
.sms-payment-panel .muted {
  font-size: 10px;
}

.sms-payment-panel .section {
  margin-top: 8px;
}

.sms-payment-panel .form-grid {
  gap: 7px;
}

.sms-payment-panel input {
  min-height: 30px;
  padding: 5px 7px;
  border-radius: 8px;
  font-size: 11px;
}

.sms-payment-panel .btn {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 11px;
}

.sms-payment-panel .sms-month-picker {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px 6px;
  padding: 6px;
}

.sms-payment-panel .sms-month-option {
  font-size: 9px;
}

.sms-payment-panel .table th,
.sms-payment-panel .table td {
  padding: 5px 7px;
  font-size: 11px;
}

.months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.month {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px;
}

.month .mname { font-weight: 700; }
.month .mtag { margin: 6px 0; font-weight: 800; }
.month.paid { border-color: rgba(2, 122, 72, 0.35); }
.month.unpaid { border-color: rgba(180, 35, 24, 0.35); }
.month.partial { border-color: rgba(181, 71, 8, 0.4); }
.month.overdue { border-color: rgba(180, 35, 24, 0.7); background: #fff7f6; }
.month.none { opacity: 0.65; }

.flash-wrap {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.flash {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
}

.flash.success { border-color: rgba(2, 122, 72, 0.4); }
.flash.error { border-color: rgba(180, 35, 24, 0.4); }
.flash.info { border-color: rgba(15, 118, 110, 0.35); }

.notice-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 12px;
  margin: 14px 0;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface-soft);
  padding: 14px;
}

.info-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.muted { color: var(--muted); }
.small { font-size: 12px; }
.big { font-size: 24px; font-weight: 800; }
.ok { color: var(--ok); }
.bad { color: var(--danger); }
.warn { color: var(--warn); }

.narrow {
  width: min(560px, 100%);
}

.login-page {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 42px 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 34% 48%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.12) 38%, rgba(19, 34, 53, 0.74) 100%),
    linear-gradient(120deg, rgba(255, 249, 236, 0.88), rgba(13, 30, 48, 0.86));
  box-shadow: 0 28px 80px rgba(19, 34, 53, 0.18);
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(19, 34, 53, 0.18) 46%, rgba(7, 17, 29, 0.76)),
    radial-gradient(circle at 78% 42%, rgba(197, 143, 48, 0.34), transparent 30%);
}

.login-bg-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 18% center;
  transform: scale(1.28);
  filter: saturate(1.08) contrast(1.04);
}

.login-panel {
  width: min(480px, 100%);
  margin-right: min(5vw, 58px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(7, 17, 29, 0.28);
  padding: 28px;
  backdrop-filter: blur(16px);
}

.login-heading {
  margin-bottom: 20px;
}

.login-heading h1 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
}

.login-heading p {
  margin: 0;
  color: var(--muted);
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #7c4a03;
  background: rgba(255, 244, 214, 0.9);
  border: 1px solid rgba(242, 207, 134, 0.9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-form {
  gap: 14px;
}

.login-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
}

.footer {
  color: var(--muted);
  padding: 4px 0 24px;
}

code {
  background: #eff3f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1px 6px;
}

@media (min-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .months {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .login-page {
    min-height: calc(100vh - 142px);
  }
}

@media (max-width: 620px) {
  .sms-top-grid {
    grid-template-columns: 1fr;
  }

  .sms-send-section .section-head {
    justify-content: space-between;
    text-align: left;
  }

  .sms-personnel-form {
    grid-template-columns: 1fr;
  }

  .sms-log-filters {
    grid-template-columns: 1fr;
  }

  .login-page {
    min-height: calc(100vh - 140px);
    justify-content: center;
    padding: 280px 14px 20px;
    border-radius: 18px;
  }

  .login-bg-image {
    object-position: center top;
    transform: scale(1.48);
    transform-origin: center top;
  }

  .login-panel {
    border-radius: 16px;
    padding: 20px;
    margin-right: 0;
  }
}

@media (min-width: 980px) {
  .panel-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .panel-grid .span-2 {
    grid-column: 1 / -1;
  }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
