@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&display=swap');

:root {
  --portal-bg: #f4f7fb;
  --portal-surface: rgba(255, 255, 255, 0.92);
  --portal-surface-strong: #ffffff;
  --portal-surface-dark: #0f172a;
  --portal-border: rgba(15, 23, 42, 0.08);
  --portal-border-strong: rgba(15, 23, 42, 0.14);
  --portal-text: #0f172a;
  --portal-text-soft: #475569;
  --portal-text-muted: #64748b;
  --portal-primary: #165c7d;
  --portal-primary-strong: #0f4560;
  --portal-primary-soft: #dff2fb;
  --portal-accent: #38bdf8;
  --portal-success: #0f766e;
  --portal-danger: #dc2626;
  --portal-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  --portal-shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.08);
  --portal-radius-lg: 28px;
  --portal-radius-md: 20px;
  --portal-radius-sm: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--portal-text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(22, 92, 125, 0.16), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fa 45%, #f4f7fb 100%);
}

a {
  color: var(--portal-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--portal-primary-strong);
  text-decoration: none;
}

img {
  max-width: 100%;
}

.portal-max-width {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.wrapper {
  width: 100%;
  min-height: calc(100vh - 220px);
  padding: 28px 0 48px;
}

.portal-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.portal-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 18px;
  margin-bottom: 24px;
}

.portal-hero-card,
.portal-summary-card,
.portal-content-card,
.portal-stat-card,
.portal-login-panel,
.portal-login-brand,
.header-user-card,
.periodo-box,
.footer-column,
.modal-content {
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius-lg);
  background: var(--portal-surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--portal-shadow-soft);
}

.portal-hero-card {
  padding: 30px 32px;
  position: relative;
  overflow: hidden;
}

.portal-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0));
  pointer-events: none;
}

.portal-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--portal-primary-soft);
  color: var(--portal-primary-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-page-title {
  margin: 0 0 10px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.portal-page-description {
  margin: 0;
  color: var(--portal-text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.portal-summary-grid {
  display: grid;
  gap: 16px;
}

.portal-stat-card,
.portal-summary-card {
  padding: 22px 24px;
}

.portal-stat-label,
.portal-summary-label {
  display: block;
  margin-bottom: 8px;
  color: var(--portal-text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-stat-value,
.portal-summary-value {
  display: block;
  color: var(--portal-text);
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.portal-summary-help {
  margin-top: 8px;
  color: var(--portal-text-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.portal-content-card {
  padding: 22px;
}

.portal-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.portal-section-title {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.portal-section-subtitle {
  margin: 4px 0 0;
  color: var(--portal-text-soft);
  font-size: 0.95rem;
}

.portal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(22, 92, 125, 0.14);
  border-radius: 999px;
  background: rgba(22, 92, 125, 0.08);
  color: var(--portal-primary-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.portal-grid-table {
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 24px;
}

.table.portal-table {
  margin-bottom: 0;
  background: transparent;
}

.portal-table thead th {
  border-bottom: 1px solid var(--portal-border);
  padding: 16px 14px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

.portal-table tbody td {
  padding: 16px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  vertical-align: middle;
  color: var(--portal-text);
  font-size: 0.95rem;
}

.portal-table tbody tr {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.portal-table tbody tr:hover {
  background: rgba(248, 250, 252, 0.98);
}

.dbgrid-hover-click tr,
.cliente-id,
.contabilidade-id,
.btn-login-visualiza {
  cursor: pointer;
}

.portal-row-primary {
  font-weight: 700;
  color: var(--portal-text);
}

.portal-row-secondary {
  display: block;
  margin-top: 4px;
  color: var(--portal-text-muted);
  font-size: 0.84rem;
}

.portal-table-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(22, 92, 125, 0.1);
  color: var(--portal-primary-strong);
  font-size: 1rem;
}

.portal-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius-md);
  background: rgba(255, 255, 255, 0.75);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.portal-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 92, 125, 0.2);
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.08);
}

.portal-list-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  color: inherit;
}

.portal-list-link:hover {
  color: inherit;
}

.portal-list-icon {
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(22, 92, 125, 0.14), rgba(56, 189, 248, 0.18));
  color: var(--portal-primary-strong);
  font-size: 1.15rem;
}

.portal-list-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-list-text strong {
  font-size: 0.97rem;
  font-weight: 700;
}

.portal-list-text span {
  color: var(--portal-text-soft);
  font-size: 0.88rem;
}

.portal-list-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.portal-empty-state {
  padding: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: var(--portal-radius-md);
  background: rgba(255, 255, 255, 0.65);
  color: var(--portal-text-soft);
  text-align: center;
}

.portal-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-portal:hover {
  transform: translateY(-1px);
}

.btn-portal-primary {
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-strong));
  color: #fff;
  box-shadow: 0 12px 25px rgba(22, 92, 125, 0.24);
}

.btn-portal-primary:hover {
  color: #fff;
}

.btn-portal-secondary {
  background: rgba(15, 23, 42, 0.07);
  color: var(--portal-text);
}

.btn-portal-secondary:hover {
  color: var(--portal-text);
  background: rgba(15, 23, 42, 0.11);
}

.btn-portal-danger {
  background: rgba(220, 38, 38, 0.12);
  color: var(--portal-danger);
}

.btn-portal-danger:hover {
  color: var(--portal-danger);
  background: rgba(220, 38, 38, 0.18);
}

.btn-senha,
.btn-dark,
.btn-primary,
.btn-success,
.btn-danger {
  border-radius: 14px;
  font-weight: 700;
}

.btn-dark {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-color: transparent;
}

.btn-dark:hover {
  border-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-strong));
  border-color: transparent;
}

.btn-primary:hover,
.btn-success:hover,
.btn-danger:hover {
  border-color: transparent;
}

.btn-success {
  background: linear-gradient(135deg, #0f766e, #0d9488);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.login-form .form-group {
  position: relative;
}

.login-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 58px;
  padding: 22px 16px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
  font-size: 1rem;
  color: var(--portal-text);
}

.login-form input:not([type="checkbox"]):focus,
.form-control:focus {
  border-color: rgba(22, 92, 125, 0.34);
  box-shadow: 0 0 0 0.22rem rgba(22, 92, 125, 0.12);
}

.login-form input[type="checkbox"] {
  transform: scale(1.15);
}

.login-form label.place-holder {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  color: var(--portal-text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: transform 0.18s ease, top 0.18s ease, color 0.18s ease;
}

.login-form input:focus ~ label.place-holder,
.login-form input.used ~ label.place-holder {
  top: 9px;
  transform: scale(0.82);
  color: var(--portal-primary);
}

.validate {
  min-height: 20px;
  padding: 6px 4px 0;
  color: var(--portal-danger);
  font-size: 0.8rem;
  font-weight: 600;
}

.is-valid,
.is-invalid {
  background-image: none !important;
}

#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
}

#header.header-scrolled .header-nav {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

.header-top {
  background: linear-gradient(90deg, #0f172a, #1e293b);
  color: rgba(255, 255, 255, 0.92);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 0 4px;
  font-size: 0.84rem;
}

.header-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-nav {
  padding: 12px 0 16px;
  background: transparent;
  border-bottom: 0;
}

.header-nav-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: 230px;
  max-height: 58px;
  object-fit: contain;
}

.header-user-card {
  padding: 16px 20px;
}

.header-user-label {
  display: block;
  margin-bottom: 6px;
  color: var(--portal-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-user-name {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.3;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.periodo-box {
  min-width: 220px;
  padding: 12px 14px;
}

.periodo-box label {
  display: block;
  margin-bottom: 8px;
  color: var(--portal-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.periodo-box .form-control,
.periodo-box .input-group-text {
  height: 44px;
  border-radius: 14px;
  border-color: rgba(148, 163, 184, 0.22);
}

.periodo-box .input-group-text {
  background: rgba(22, 92, 125, 0.08);
  color: var(--portal-primary-strong);
}

.portal-banner {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(255, 255, 255, 0));
}

.portal-banner .carousel {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 8px;
}

.portal-banner .carousel-inner {
  overflow: hidden;
  border-radius: var(--portal-radius-lg);
  box-shadow: var(--portal-shadow);
}

.portal-banner img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.portal-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 430px);
  gap: 24px;
  align-items: stretch;
}

.portal-login-brand,
.portal-login-panel {
  padding: 32px;
}

.portal-login-brand {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(22, 92, 125, 0.88)),
    url("../img/hero-bg.jpg") center/cover no-repeat;
}

.portal-login-brand::after {
  content: "";
  position: absolute;
  inset: auto -70px -70px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45), rgba(56, 189, 248, 0));
}

.portal-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-login-brand h1 {
  margin: 22px 0 12px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.portal-login-brand p {
  max-width: 560px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  line-height: 1.75;
}

.portal-login-highlights {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.portal-login-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-login-highlight i {
  margin-top: 2px;
  color: #7dd3fc;
}

.portal-login-highlight strong {
  display: block;
  margin-bottom: 4px;
}

.portal-login-highlight span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.portal-login-panel h2 {
  margin: 0 0 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.portal-login-panel p {
  margin-bottom: 24px;
  color: var(--portal-text-soft);
  line-height: 1.65;
}

.portal-login-actions {
  display: grid;
  gap: 12px;
}

.portal-login-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.portal-login-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 14px 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
}

.portal-login-logo-card img {
  width: 100%;
  max-width: 190px;
  max-height: 52px;
  object-fit: contain;
}

#relatorio ul,
#relatorio li {
  list-style: none;
}

li.disabled,
.portal-list-item.disabled {
  opacity: 0.5;
}

li.disabled a,
a.disabled,
.portal-list-item.disabled a {
  pointer-events: none;
  color: var(--portal-text-muted);
}

.dbgrid,
.contabilidade-grid,
.cliente-grid {
  cursor: default;
}

.modal-content {
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.swal2-popup {
  border-radius: 24px !important;
}

.swal2-styled.swal2-confirm {
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-strong)) !important;
}

.monthPicker {
  cursor: pointer;
}

.ui-datepicker-calendar {
  display: none;
}

.global-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(10px);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.global-loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.global-loading-card {
  width: min(100%, 360px);
  padding: 28px 26px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

.global-loading-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.global-loading-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  line-height: 1.6;
}

.global-loading-spinner {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-top-color: #7dd3fc;
  border-radius: 50%;
  animation: portal-rotate 0.9s linear infinite;
}

@keyframes portal-rotate {
  to {
    transform: rotate(360deg);
  }
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-strong));
  color: #fff;
  box-shadow: 0 18px 30px rgba(22, 92, 125, 0.28);
}

.back-to-top:hover {
  color: #fff;
}

#footer {
  color: #fff;
  background: linear-gradient(180deg, #0f172a, #111827);
}

.footer-top {
  padding: 44px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-column {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
  padding: 24px;
}

.footer-column h4 {
  margin-bottom: 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.footer-column p,
.footer-column li,
.footer-column span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.7;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.social-links a:hover {
  background: rgba(56, 189, 248, 0.26);
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .portal-page-header,
  .portal-login-shell,
  .header-nav-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: stretch;
  }

  .periodo-box {
    width: 100%;
  }

  .portal-login-logos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .portal-max-width {
    width: min(100% - 20px, 100%);
  }

  .wrapper {
    padding: 18px 0 36px;
  }

  .portal-hero-card,
  .portal-content-card,
  .portal-summary-card,
  .portal-stat-card,
  .portal-login-brand,
  .portal-login-panel,
  .footer-column,
  .header-user-card,
  .periodo-box {
    padding: 20px;
    border-radius: 22px;
  }

  .header-top-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 0;
  }

  .logo img {
    width: 190px;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions .btn-portal {
    width: 100%;
  }

  .portal-section-head {
    flex-direction: column;
  }

  .portal-grid-table {
    border: 0;
    overflow: visible;
  }

  .portal-table thead {
    display: none;
  }

  .portal-table,
  .portal-table tbody,
  .portal-table tr,
  .portal-table td {
    display: block;
    width: 100%;
  }

  .portal-table tr {
    margin-bottom: 14px;
    border: 1px solid var(--portal-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--portal-shadow-soft);
    overflow: hidden;
  }

  .portal-table td {
    position: relative;
    padding: 14px 16px 14px 44%;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    min-height: 54px;
    text-align: left !important;
  }

  .portal-table td:last-child {
    border-bottom: 0;
  }

  .portal-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 16px;
    top: 14px;
    width: calc(44% - 24px);
    color: var(--portal-text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .portal-list-item {
    align-items: flex-start;
  }

  .portal-list-link {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575px) {
  .portal-login-brand h1 {
    font-size: 1.9rem;
  }

  .portal-page-title {
    font-size: 1.6rem;
  }

  .portal-table td {
    padding-left: 16px;
    padding-top: 34px;
  }

  .portal-table td::before {
    position: static;
    display: block;
    width: auto;
    margin-bottom: 8px;
  }
}
