/* Tablet and phone refinements. Loaded last so component-specific desktop rules
   keep their intent while compact layouts share one predictable baseline. */
.mobile-nav-sheet,
.mobile-nav-backdrop,
.mobile-more {
  display: none;
}

.weather-date-input > span {
  display: none;
}

@media (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    font-size: 16px !important;
  }

  button,
  summary,
  input,
  select,
  textarea {
    touch-action: manipulation;
  }

  button,
  .import-button {
    min-height: 44px;
  }

  .content {
    min-width: 0;
    padding: 24px;
  }

  .content > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
  }

  .content > header h1 {
    overflow-wrap: anywhere;
  }

  .admin-partner-switcher {
    min-width: 0;
  }

  .portfolio-toolbar,
  .cockpit-head,
  .premium-head,
  .tariff-test-head,
  .partner-head,
  .settings-head,
  .data-cleanup-head {
    min-width: 0;
  }

  .partner-policies,
  .claims-table-wrap,
  .data-cleanup-table-wrap,
  .analytics-import-history,
  .interactive-chart,
  .development-chart,
  .claims-line {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .partner-policies table {
    min-width: 980px !important;
  }

  .partner-policies th input,
  .partner-policies th select {
    font-size: 14px !important;
    min-height: 40px;
  }
}

@media (max-width: 650px) {
  :root {
    --mobile-gutter: 16px;
    --mobile-nav-height: 88px;
  }

  body {
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
  }

  .content {
    width: 100%;
    margin-left: 0;
    padding: 18px var(--mobile-gutter) 28px;
  }

  .sidebar {
    inset: auto 0 0;
    z-index: 120;
    display: flex;
    width: 100%;
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    padding: 5px max(8px, env(safe-area-inset-right))
      max(5px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 40, 58, 0.97);
    box-shadow: 0 -10px 30px rgba(8, 30, 43, 0.2);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .sidebar .logo,
  .sidebar .nav-label {
    display: none;
  }

  .sidebar nav {
    display: contents;
  }

  .sidebar-foot {
    display: contents;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .sidebar .nav-item {
    display: none;
    flex: 1 1 0;
    place-items: center;
    align-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    min-height: 54px;
    margin: 0;
    padding: 5px 2px;
    border-radius: 12px;
    color: #9fb3bd;
    font-size: 1.08rem;
    line-height: 1;
    text-align: center;
  }

  .sidebar .nav-item.mobile-primary,
  .sidebar .mobile-more {
    display: none;
  }

  .sidebar .mobile-more {
    display: none !important;
  }

  .sidebar {
    height: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
  }

  .sidebar #navHome {
    order: 1;
  }

  .sidebar #navPremium {
    order: 2;
  }

  .sidebar #navPartner {
    order: 3;
  }

  .sidebar #navClaims {
    order: 4;
  }

  .sidebar #mobileMore {
    order: 5;
  }

  .sidebar .nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
  }

  .sidebar .nav-item.active::after {
    display: none;
  }

  .sidebar .nav-item {
    position: relative;
  }

  /* The mobile footer is a single drawer trigger. Keep the original sidebar
     buttons out of the layout so their legacy text icons cannot leak beside it. */
  .sidebar .nav-item:not(.mobile-more) {
    display: none !important;
  }

  .sidebar .nav-item span {
    display: block;
    width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 0;
    font-weight: 650;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar .mobile-primary span::after {
    content: attr(data-mobile-label);
    font-size: 9px;
  }

  .sidebar .mobile-more {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 18px 20px 15px;
    width: 100%;
    min-height: 72px;
    padding: 5px 18px 7px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px 18px 10px 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-align: center;
    touch-action: none;
  }

  .mobile-pull-handle {
    grid-column: 1 / -1;
    justify-self: center;
    width: 42px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.48);
  }

  .sidebar .mobile-current-icon {
    display: none;
  }

  .sidebar .mobile-current-label {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    justify-self: center;
    width: 100%;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar .mobile-more small {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    width: 100%;
    color: #aebfc7;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .sidebar #navSettings,
  .sidebar #logout {
    display: none;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(3, 18, 27, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .mobile-nav-sheet {
    display: block;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 140;
    max-height: min(78dvh, 650px);
    padding: 0 24px max(10px, env(safe-area-inset-bottom));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    background: linear-gradient(160deg, #0d3a4d, #072536 72%);
    box-shadow: 0 -12px 40px rgba(3, 18, 27, 0.26);
    transform: translateY(calc(100% - 58px - max(10px, env(safe-area-inset-bottom))));
    visibility: visible;
    transition: transform 260ms cubic-bezier(0.22, 0.82, 0.24, 1);
    will-change: transform;
  }

  #portal.hidden ~ .mobile-nav-backdrop,
  #portal.hidden ~ .mobile-nav-sheet {
    display: none;
  }

  .mobile-nav-open {
    overflow: hidden;
  }

  .mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-open .mobile-nav-sheet {
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav-dragging .mobile-nav-backdrop {
    pointer-events: none;
    transition: none;
  }

  .mobile-nav-dragging .mobile-nav-sheet {
    transition: none;
    will-change: transform;
  }

  .mobile-nav-peek {
    display: grid;
    grid-template-rows: 18px 1fr;
    width: 100%;
    min-height: 58px;
    padding: 6px 0 8px;
    border: 0;
    background: transparent;
    color: #fff;
    place-items: center;
    touch-action: none;
  }

  .mobile-peek-label {
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-body {
    max-height: calc(min(78dvh, 650px) - 58px);
    padding-bottom: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-handle {
    width: 58px;
    height: 6px;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(220, 230, 233, 0.72);
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 4px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    touch-action: none;
  }

  .mobile-nav-head span {
    color: #a97420;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .mobile-nav-head h2 {
    margin: 8px 0 0;
    color: #fff;
    font: 400 clamp(1.85rem, 9vw, 2.4rem)/1.05 Georgia, serif;
  }

  .mobile-nav-close {
    display: grid;
    flex: 0 0 64px;
    width: 64px;
    min-height: 64px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: 300 2.4rem/1 Arial, sans-serif;
  }

  .mobile-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding-top: 14px;
  }

  .mobile-nav-link {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    text-align: left;
  }

  .mobile-nav-link > span {
    display: grid;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    place-items: center;
    background: rgba(229, 193, 122, 0.15);
    color: #e5c17a;
    font-size: 1.05rem;
  }

  .mobile-nav-link strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
  }

  .mobile-nav-link em {
    color: #8fa6b1;
    font: normal 1.2rem/1 Georgia, serif;
  }

  .mobile-nav-link.active {
    border-color: rgba(229, 193, 122, 0.65);
    background: rgba(229, 193, 122, 0.13);
  }

  .mobile-nav-link.active > span {
    background: var(--navy);
    color: #fff;
  }

  .mobile-nav-link[data-source="logout"] {
    color: #8f3f38;
  }

  .mobile-nav-link[data-source="logout"] > span {
    background: #f8e9e6;
    color: #9d4941;
  }

  .content > header {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 20px;
  }

  .content > header h1 {
    margin-top: 5px;
    font-size: clamp(1.45rem, 7vw, 1.85rem);
    line-height: 1.08;
  }

  .content > header .avatar {
    width: 38px;
    height: 38px;
  }

  .admin-partner-switcher {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .admin-partner-switcher select {
    width: 100%;
    min-height: 44px;
  }

  .auth-panel {
    min-height: 100dvh;
    padding: max(24px, env(safe-area-inset-top)) var(--mobile-gutter)
      max(24px, env(safe-area-inset-bottom));
  }

  .auth-form {
    width: 100%;
    max-width: 420px;
  }

  .auth-form input,
  .auth-form button {
    min-height: 48px;
  }

  .welcome,
  .weather-intro,
  .portfolio-toolbar,
  .cockpit-head,
  .premium-head,
  .tariff-test-head,
  .partner-head,
  .settings-head,
  .premium-step1-heading,
  .premium-result-step,
  .premium-step3-heading {
    padding: 20px;
  }

  .welcome h2,
  .weather-intro h2,
  .portfolio-toolbar h2,
  .cockpit-head h2,
  .premium-head h2,
  .tariff-test-head h2,
  .partner-head h2,
  .settings-head h2 {
    font-size: clamp(1.45rem, 7vw, 1.8rem);
    line-height: 1.12;
  }

  .premium-section,
  .cockpit-panel,
  .partner-card,
  .partner-kpis article,
  .settings-card,
  .user-card,
  .cockpit-development,
  .cockpit-market-share,
  .data-cleanup-panel,
  .application-completion,
  .deductible-comparison,
  .tariff-test-panel {
    padding: 18px 16px;
  }

  .premium-step1-heading {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
    padding: 15px 16px;
  }

  .premium-step1-heading .eyebrow,
  .premium-result-step .eyebrow,
  .premium-step3-heading .eyebrow {
    font-size: 0.66rem;
    line-height: 1.25;
  }

  .premium-step1-heading h2,
  .premium-result-step h2,
  .premium-step3-heading h2 {
    font-size: clamp(1.3rem, 5.8vw, 1.48rem);
    line-height: 1.12;
  }

  .premium-section h3 {
    margin-bottom: 14px;
    padding-bottom: 8px;
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .weather-form,
  .portfolio-filters,
  .cockpit-filters,
  .claims-filters,
  .claims-profit-column-filters,
  .data-cleanup-filters,
  .premium-grid,
  .premium-grid.compact,
  .risk-grid,
  .tariff-test-grid,
  .application-fields,
  .analytics-import-form {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .weather-form input,
  .weather-form select,
  .weather-form button,
  .portfolio-filters input,
  .portfolio-filters select,
  .cockpit-filters input,
  .cockpit-filters select,
  .claims-filters input,
  .claims-filters select,
  .claims-profit-column-filters input,
  .claims-profit-column-filters select,
  .data-cleanup-filters input,
  .data-cleanup-filters select,
  .premium-grid input,
  .premium-grid select,
  .premium-grid textarea,
  .risk-grid select,
  .tariff-test-grid input,
  .tariff-test-grid select,
  .application-fields input,
  .application-fields select,
  .analytics-import-form input,
  .analytics-import-form select {
    width: 100%;
    min-height: 44px;
  }

  .weather-form label {
    min-width: 0;
  }

  .weather-form input[type="date"],
  .premium-grid input[type="date"] {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    -webkit-appearance: none;
    appearance: none;
  }

  .weather-date-input {
    position: relative;
    display: block;
    min-width: 0;
  }

  .weather-date-input > input {
    position: relative;
    z-index: 1;
    background: transparent;
  }

  .weather-date-input > span {
    display: block;
    position: absolute;
    z-index: 0;
    top: calc(50% + 4px);
    left: 13px;
    transform: translateY(-50%);
    color: #9aa5aa;
    font: inherit;
    font-weight: 400;
    pointer-events: none;
  }

  .weather-date-input:has(input:valid) > span {
    display: none;
  }

  .weather-date-input input:invalid::-webkit-datetime-edit {
    color: transparent;
  }

  /* Compact iPhone form typography without triggering Safari's input zoom. */
  .premium-grid,
  .premium-grid.compact,
  .risk-grid,
  .tariff-test-grid,
  .application-fields {
    gap: 13px;
  }

  .premium-grid label,
  .coverage-options label,
  .risk-grid label,
  .tariff-test-grid label,
  .application-fields label {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .premium-grid input,
  .premium-grid select,
  .premium-grid textarea,
  .coverage-options select,
  .risk-grid select,
  .tariff-test-grid input,
  .tariff-test-grid select,
  .application-fields input,
  .application-fields select {
    min-height: 46px;
    margin-top: 6px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.2;
  }

  .coverage-options,
  .coverage-options:has(.coverage-persons-field) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .coverage-casco-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .coverage-options .deductible-field,
  .coverage-casco-group .deductible-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 6px;
    white-space: normal;
  }

  .coverage-options .deductible-field select,
  .coverage-casco-group .deductible-field select {
    width: 100%;
    min-height: 44px;
    margin-top: 0;
  }

  .premium-submit,
  .premium-step2-next,
  .tariff-test-submit,
  .application-completion button {
    width: 100%;
    margin-left: 0;
    justify-self: stretch;
  }

  .premium-step2-next,
  .tariff-test-submit {
    gap: 12px;
  }

  .premium-step2-next > *,
  .tariff-test-submit > * {
    flex: 1 1 0;
  }

  .portfolio-toolbar .import-button,
  .data-cleanup-head button {
    width: 100%;
    justify-content: center;
  }

  #portfolioView,
  #portfolioContent,
  #portfolioContent > *,
  .portfolio-toolbar,
  .portfolio-filters,
  .portfolio-stats,
  .map-layout,
  .quality-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #portfolioView {
    overflow-x: clip;
  }

  .portfolio-toolbar > div,
  .portfolio-toolbar p {
    max-width: 100%;
    min-width: 0;
  }

  .portfolio-toolbar p {
    overflow-wrap: anywhere;
  }

  .policy-map {
    min-height: 300px;
  }

  .claims-map {
    min-height: 280px;
  }

  .map-controls button {
    width: 44px;
    height: 44px;
  }

  .partner-head {
    flex-direction: column;
  }

  .partner-logo {
    max-width: min(180px, 70%);
    max-height: 58px;
  }

  .partner-policies {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .partner-policies table {
    min-width: 900px !important;
  }

  .partner-pie {
    width: min(200px, 72vw);
  }

  .partner-pie-legend > div {
    grid-template-columns: 11px minmax(0, 1fr) auto;
  }

  .partner-pie-legend small {
    display: none;
  }

  .cockpit-bar-row {
    grid-template-columns: minmax(72px, 30%) minmax(80px, 1fr) auto;
    gap: 8px;
  }

  .settings-accordion > summary {
    min-height: 64px;
    padding: 12px 14px;
  }

  .settings-accordion-body {
    padding: 14px;
  }

  .settings-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  .settings-dialog form {
    padding: 24px 18px;
  }

  .user-actions {
    gap: 8px;
  }

  .user-actions button {
    width: 100%;
  }

  .premium-tax,
  .premium-results-grid dl div {
    gap: 12px;
  }

  .premium-tax > *,
  .premium-results-grid dt,
  .premium-results-grid dd {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 390px) {
  :root {
    --mobile-gutter: 13px;
  }

  .content > header .eyebrow {
    letter-spacing: 0.08em;
  }

  .premium-step2-next,
  .tariff-test-submit,
  .premium-tax {
    align-items: stretch;
    flex-direction: column;
  }

  .premium-step2-next button,
  .tariff-test-submit button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Form values use the same type size as their field labels. Filter controls are
   intentionally excluded because the filter toolbars are not form elements. */
form input:not([type="checkbox"]):not([type="radio"]),
form select,
form textarea {
  font-size: inherit !important;
}

/* Keep field values consistent across every portal module. Labels retain their
   own emphasized typography; entered and selected values remain regular. */
.portal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
.portal select,
.portal textarea {
  font-family: inherit !important;
  font-size: min(.66rem, 1em) !important;
  font-weight: 400 !important;
}

.portal select option,
.portal input::placeholder,
.portal textarea::placeholder {
  font-weight: 400;
}

/* Partner cockpit: editable insured-value range and sortable financial columns. */
.partner-value-range input {
  min-width: 0 !important;
  text-align: right;
}

.partner-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: 100%;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: right;
  cursor: pointer;
}

.partner-sort i {
  display: inline-grid;
  flex: 0 0 17px;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #edf0f1;
  color: #60747d;
  font-size: .68rem;
  font-style: normal;
}

.partner-sort.active {
  color: #8b5c18;
}

.partner-sort.active i {
  background: #f3e2bd;
  color: #8b5c18;
}

.partner-sort:focus-visible {
  outline: 2px solid #b87920;
  outline-offset: 2px;
}

.partner-policies th:nth-child(1) { width: 9%; }
.partner-policies th:nth-child(2) { width: 6%; }
.partner-policies th:nth-child(3) { width: 8%; }
.partner-policies th:nth-child(4) { width: 11%; }
.partner-policies th:nth-child(5) { width: 9%; }
.partner-policies th:nth-child(6) { width: 18%; }
.partner-policies th:nth-child(7) { width: 12%; }
.partner-policies th:nth-child(8) { width: 13%; }
.partner-policies th:nth-child(9) { width: 14%; }

.partner-filter-panel {
  display: grid;
  grid-template-columns: minmax(100px, .58fr) minmax(95px, .58fr) minmax(110px, .68fr) minmax(135px, .88fr) minmax(150px, .88fr) minmax(205px, 1.08fr) 42px;
  gap: 11px;
  align-items: end;
  margin: 4px 0 18px;
  padding: 16px;
  border: 1px solid #e2d3b8;
  border-radius: 10px;
  background: #fbf8f2;
}

.partner-filter-panel label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #586c74;
  font-size: .66rem;
  font-weight: 750;
}

.partner-filter-panel label > div,
.partner-filter-panel .partner-year-range,
.partner-filter-panel .partner-value-range {
  display: flex;
  min-width: 0;
  gap: 6px;
}

.partner-filter-panel [data-partner-slot="amount"],
.partner-filter-panel [data-partner-slot="amount"] .partner-value-range {
  flex: 1 1 auto;
  width: 100%;
}

.partner-filter-panel input,
.partner-filter-panel select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 9px 11px;
  border: 1px solid #ddc9a5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.partner-filter-panel .partner-value-range input {
  flex: 1 1 0;
  width: 100%;
  min-width: 72px !important;
  padding-right: 9px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.partner-filter-panel .partner-value-range input::-webkit-inner-spin-button,
.partner-filter-panel .partner-value-range input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.partner-filter-actions {
  position: relative;
  display: grid;
  justify-items: end;
  align-self: end;
}

.partner-filter-actions button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0 !important;
  height: 42px;
  padding: 0 7px;
  border: 1px solid #d59b2c;
  border-radius: 8px;
  background: #fff;
  color: #8b5c18;
  font-size: .66rem;
  cursor: pointer;
}

.partner-filter-actions button:hover,
.partner-filter-actions button:focus-visible {
  background: #fff5e2;
}

.filter-reset-button,
.partner-filter-actions .filter-reset-button,
.finance-monthly-table-filters > .filter-reset-button,
.finance-policy-filters > .filter-reset-button {
  display: inline-grid;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0 !important;
  border: 1px solid #d59b2c;
  border-radius: 50%;
  place-items: center;
  justify-self: end;
  background: #fff;
  color: #8b5c18;
  cursor: pointer;
}

.filter-reset-button > span {
  font: 300 1.45rem/1 Arial, sans-serif;
  transform: translateY(-1px);
}

.filter-reset-button:hover,
.filter-reset-button:focus-visible {
  background: #fff5e2;
}

.filter-reset-button:focus-visible {
  outline: 2px solid rgba(184, 121, 32, .35);
  outline-offset: 2px;
}

.filter-reset-button:disabled {
  border-color: #d9d4ca;
  background: #f5f3ef;
  color: #a7a29a;
  cursor: default;
}

.partner-filter-actions small {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  color: #8a7560;
  font-size: .6rem;
  white-space: nowrap;
}

.partner-policies thead th > input,
.partner-policies thead th > select,
.partner-policies thead .partner-year-range,
.partner-policies thead .partner-value-range {
  display: none;
}

@media (max-width: 1250px) {
  .partner-filter-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .partner-filter-amount { grid-column: span 2; }
}

@media (max-width: 760px) {
  .partner-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-filter-amount,
  .partner-filter-actions { grid-column: 1 / -1; }
  .partner-filter-actions button { width: 100%; }
}

@media (max-width: 480px) {
  .partner-filter-panel { grid-template-columns: 1fr; }
  .partner-filter-amount,
  .partner-filter-actions { grid-column: auto; }
}
