/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Google Fonts Import - Inter: clean, readable, user-friendly */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Centralized Components Styles */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.main-header {
  background: linear-gradient(135deg, #2c5f8d 0%, #1a3d5c 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.navbar-brand .brand-title {
  color: #4db8ff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  margin: 0;
}

.navbar-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.welcome-message {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

.time-display {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s;
  font-weight: 500;
}

.nav-link:hover {
  background-color: rgba(255,255,255,0.1);
}

.nav-link.btn-primary {
  background-color: white;
  color: #667eea;
}

.nav-link.btn-primary:hover {
  background-color: #f0f0f0;
  transform: translateY(-1px);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 0;
  margin: 0;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

.page-header h1 {
  color: #2d3748;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
}

.page-actions {
  display: flex;
  gap: 0.75rem;
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  margin: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 0;
  margin-left: 1rem;
}

.alert-close:hover {
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  letter-spacing: 0.025em;
}

/* Primary (Create, Update, New) – matches header family */
.btn-primary {
  background-color: #1E3A5F;
  color: #FFFFFF;
  border-radius: 6px;
}

.btn-primary:hover {
  background-color: #162C47;
  color: #FFFFFF;
}

.btn-primary:active {
  background-color: #0F2238;
  color: #FFFFFF;
}

/* Cancel – minimal, transparent; default state always visible */
.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  background-color: #d1deeb;
  color: #475569;
  border: none;
  border-radius: 6px;
}

.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover {
  background-color: #E2E8F0;
  color: #1E293B;
}


.btn-outline {
  background-color: white;
  color: #2c5f8d;
  border: 1px solid #2c5f8d;
}

.btn-outline:hover {
  background-color: #2c5f8d;
  color: white;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}



/* Groups index: single wrapper so filter and table align left/right */
.wrapper .main-content-area .groups-index-layout {
  padding: 1rem;
  box-sizing: border-box;
}

.groups-index-layout .page-header,
.groups-index-layout .filters-section,
.groups-index-layout .table-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.groups-index-layout .filters-section {
  margin-bottom: 0.75rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  background-color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

.filter-tab {
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  color: #6c757d;
  border-radius: 6px;
  transition: all 0.2s;
  font-weight: 500;
}

.filter-tab:hover {
  background-color: #f8f9fa;
  color: #495057;
}

.filter-tab.active {
  background-color: #2c5f8d;
  color: white;
}

/* Kaminari pagination (business groups index) */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e9ecef;
  background-color: #f8f9fa;
}

.pagination-bar .pagination-link {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  color: #2c5f8d;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.pagination-bar a.pagination-link:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.pagination-bar .pagination-link--disabled {
  color: #adb5bd;
  border-color: #e9ecef;
  background: #f1f3f5;
  cursor: not-allowed;
}

.pagination-bar .pagination-info {
  font-size: 0.875rem;
  color: #495057;
  font-weight: 500;
}

/* Shared card style for forms and tables (reference: Sakai-style layout) */
.content-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
  overflow: hidden;
}

/* Product contribution card: header full width, delete icon right-aligned */
.product-contribution-fields {
  display: block;
}
.product-contribution-fields .product-contribution-fields__header {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 0.5rem;
}
.product-contribution-fields .product-contribution-fields__header .product-contribution-fields__title {
  flex-shrink: 0;
}
.product-contribution-fields .product-contribution-fields__header .product-contribution-fields__spacer {
  flex: 1 1 0;
  min-width: 0;
}
.product-contribution-fields .product-contribution-fields__header .btn-icon {
  flex-shrink: 0;
  margin-left: auto;
}

/* Product contribution fields: same spacing as age fields (label + value input + desc input) */
.product-contribution-fields .form-row .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.product-contribution-fields .form-row .form-group label {
  margin-bottom: 0;
}
.product-contribution-fields .form-row .form-group input.form-control + input.form-control {
  margin-top: 0.15rem;
}
.product-contribution-fields .form-row--four {
  gap: 0.75rem 1rem;
  align-items: start;
}

/* Tables */
.table-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background-color: #f8f9fa;
}

.data-table th {
  padding: 0.5rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #495057;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.75px;
  border-bottom: 2px solid #dee2e6;
  line-height: 1.3;
}

.data-table td {
  padding: 0.35rem 1rem;
  border-bottom: 1px solid #f1f3f5;
  color: #495057;
  font-size: 0.8125rem;
  line-height: 1.35;
  vertical-align: top;
}

.data-table tbody tr {
  transition: background-color 0.2s;
}

.data-table tbody tr:hover {
  background-color: #f8f9fa;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.font-semibold {
  font-weight: 600;
}

.link-primary {
  color: #2c5f8d;
  text-decoration: none;
}

.link-primary:hover {
  text-decoration: underline;
}

.code-text {
  background-color: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 0.875rem;
  color: #e83e8c;
  font-weight: 500;
}

.actions-column {
  width: 1%;
  white-space: nowrap;
}

/* Compact table: single-line rows, less padding (match companies/business groups) */
.data-table--compact td,
.data-table--compact th {
  padding: 0.4rem 0.75rem;
  vertical-align: middle;
  line-height: 1.35;
}
.data-table--compact thead th {
  padding: 0.5rem 0.75rem;
}
/* Truncate long text in cells so rows don't wrap; full text in title on hover */
.cell-truncate {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cell-truncate--wide {
  max-width: 200px;
}
.cell-truncate .link-primary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Centralized action icons - minimal background so height looks small */
.btn.btn-icon,
.btn-sm.btn-icon {
  padding: 0.15rem 0.25rem;
  min-height: unset;
  height: auto;
  min-width: 1.375rem;
}

/* Light, minimal look for icon buttons - no heavy background */
.btn-icon.btn-secondary {
  background-color: transparent;
  color: #202122;
}

.btn-icon.btn-secondary:hover {
  background-color: #f1f3f5;
  color: #212529;
  border-color: #ced4da;
}

.btn-icon.btn-primary {
  background-color: transparent;
  color: #2c5f8d;
  border: none;
}

.btn-icon.btn-primary:hover {
  background-color: #2c5f8d;
  color: white;
  border: none;
}

.btn-icon.btn-outline {
  background-color: transparent;
  color: #2c5f8d;
  border: none;
}

.btn-icon.btn-outline:hover {
  background-color: #e7f1f8;
  border: none;
}

.btn-icon.btn-danger {
  background-color: transparent;
  color: #dc3545;
  border: 1px solid #f5c6cb;
}

.btn-icon.btn-danger:hover {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

.btn-icon .action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.875rem;
  height: 0.875rem;
}

.action-icon {
  width: 0.625rem;
  height: 0.625rem;
  flex-shrink: 0;
}

.action-icon svg {
  width: 100%;
  height: 100%;
  vertical-align: middle;
}

/* Buttons with icon + text (e.g. Merge Group, Close Group) */
.btn-with-icon,
.btn.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.375rem 0.75rem;
  white-space: nowrap;
}

/* Close Group: no background, no border */
.btn-with-icon.btn-danger {
  background-color: transparent;
  color: #dc3545;
  border: none;
}

.btn-with-icon.btn-danger:hover {
  background-color: transparent;
  color: #c82333;
  border: none;
}

.btn-with-icon .action-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success,
.badge.active {
  background-color: #d4edda;
  color: #155724;
}

.badge-danger,
.badge.closed {
  background-color: #f8d7da;
  color: #721c24;
}

.badge-warning {
  background-color: #fff3cd;
  color: #856404;
}

.badge-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-state p {
  color: #6c757d;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.empty-state p {
  color: #6c757d;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* Centralized Form Layout - Applied Across All Forms */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Death Benefit BBE: last row — Reset Applicable + shared states widget (partial keeps inline width: 50%) */
.bbe-form .bbe-form__row--states {
  grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
  align-items: start;
}

.bbe-form .bbe-form__row--states .bbe-form__state-selector {
  min-width: 0;
}

.bbe-form .bbe-form__row--states .state-dual-selector {
  width: 100% !important;
  max-width: 100%;
}

/* Reusable form utilities */
.form-section--compact-top {
  margin-top: 0.25rem !important;
  padding-top: 0.25rem !important;
}

.form-row--state-selector-wide > .form-group {
  min-width: 0;
}

.form-row--state-selector-wide .state-dual-selector {
  width: 100% !important;
  max-width: 100%;
}

.form-col--states .state-dual-selector {
  width: 100% !important;
  max-width: 100%;
}

.rider-bonus-form .rider-bonus-case-states .state-dual-selector {
  width: 100% !important;
  max-width: 100%;
}

/* Features form: states widget + two text areas on one grid row */
.form-row--feature-states-and-text-cols {
  grid-template-columns: minmax(200px, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(min-content, auto);
  align-items: start;
}

.form-row--feature-states-and-text-cols > .form-group {
  min-width: 0;
}

.form-row--feature-states-and-text-cols > .form-group.form-check {
  align-self: center;
  margin-bottom: 0;
  min-width: min-content;
}

.form-row--feature-states-and-text-cols .state-dual-selector {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

/* Combine benefits: five equal columns per row */
.form-row--five-cols {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}

.form-row--five-cols > .form-group {
  min-width: 0;
}

.form-row--five-cols > .form-group.form-check {
  align-self: center;
  margin-bottom: 0;
}

.form-row--five-cols .form-group--grid-span-full {
  grid-column: 1 / -1;
}

/* Combine benefits: four equal columns (e.g. all text areas on one row) */
.form-row--four-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.form-row--four-cols > .form-group {
  min-width: 0;
}

.form-row--two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.form-row--two-cols > .form-group {
  min-width: 0;
}

/* Guaranty form: states selector + two description text areas on one row */
.form-row--guaranty-states-and-desc {
  grid-template-columns: minmax(220px, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.form-row--guaranty-states-and-desc > .form-group {
  min-width: 0;
}

.form-row--guaranty-states-and-desc .state-dual-selector {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

.combine-benefit-states .state-dual-selector {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .form-row--five-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .form-row--two-cols {
    grid-template-columns: 1fr;
  }

  .form-row--guaranty-states-and-desc {
    grid-template-columns: 1fr;
  }
}

/* Death Benefit Bonus: compact cases section spacing */
.bonus-form .bonus-form-section {
  margin-top: 0 !important;
}

@media (max-width: 640px) {
  .bbe-form .bbe-form__row--states {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: #2d3748;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

/* Help text below inputs (reference: Sakai form layout) */
.form-group .form-help-text {
  font-size: 0.8125rem;
  color: #6c757d;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* Centralized Form Controls - Applied Across All Forms */
.form-control {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s;
  background-color: white;
  line-height: 1.5;
  min-height: 40px;
  box-sizing: border-box;
  vertical-align: middle;
  /* Prevent text cutoff */
  overflow: visible;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary, #2c5f8d);
  box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

/* Ensure consistent height for all input types - with proper padding to prevent text cutoff */
input.form-control[type="text"],
input.form-control[type="number"],
input.form-control[type="email"],
input.form-control[type="date"],
input.form-control[type="tel"] {
  height: 40px;
  padding-top: 0.6875rem;
  padding-bottom: 0.6875rem;
  /* Ensure text is not cut off */
}

/* Hide number input up/down arrows (spinner) – app-wide */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

select.form-control {
  height: 42px;
  min-height: 42px;
  padding: 0.625rem 2.5rem 0.625rem 0.875rem;
  line-height: 1.5;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  /* Ensure text is fully visible */
  overflow: visible;
}

/* Ensure select displays text properly - allow text to be fully visible */
select.form-control:not([multiple]) {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

/* Multi-select dropdown styles - add scrollbar and constrain height */
select.form-control[multiple] {
  height: auto;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem;
  background-image: none;
  background-repeat: no-repeat;
  background-position: unset;
  background-size: unset;
}

/* State dropdown specific styles */
.state-dual-selector select.form-control[multiple] {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Charges form only: keep state dual-selector side-by-side (not stacking) */
.charges-form-container .state-dual-selector .state-dual-selector-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0.75rem !important;
}
.charges-form-container .state-dual-selector .state-dual-selector-col {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
}
.charges-form-container .state-dual-selector .state-dual-selector-arrows {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}

/* Ensure select options have proper padding and display */
select.form-control option {
  padding: 0.5rem 0.875rem;
  line-height: 1.5;
  min-height: 2rem;
  display: block;
}

/* Fix for placeholder text in select elements */
select.form-control:invalid {
  color: #6c757d;
}

/* Browser-specific fixes for select text display */
select.form-control::-ms-expand {
  display: none;
}

/* Firefox specific fix - prevents text cutoff */
@-moz-document url-prefix() {
  select.form-control {
    text-indent: 0;
    padding: 0.625rem 2.5rem 0.625rem 0.875rem;
    height: 42px;
  }
}

/* Chrome/Safari specific fix - already defined above, ensuring consistency */

/* Ensure proper rendering in all browsers */
select.form-control,
select.form-control option {
  font-size: 0.9375rem;
  font-family: inherit;
}

textarea.form-control {
  min-height: 60px;
  resize: vertical;
  padding: 0.6875rem 0.875rem;
  line-height: 1.5;
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group.checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.form-group.checkbox label {
  margin: 0;
  font-weight: 500;
}

/* Responsive: Stack form rows on mobile */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

/* Error Messages */
.error-messages {
  background-color: #fee;
  color: #c33;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid #c33;
}

.error-messages h2 {
  font-size: 1.125rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.error-messages ul {
  margin: 0;
  padding-left: 1.5rem;
}

.error-messages li {
  margin-bottom: 0.25rem;
}

/* Form card - same look as table cards; inner padding from .form-card__body in layout.css */
.form-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

/* Details View */
.business-group-details {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

.business-group-details h1 {
  margin-bottom: 1rem;
  color: #2d3748;
}

.status-badge {
  margin: 1rem 0 2rem 0;
}

/* Action bar: consistent height, width, and alignment */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.actions .btn,
.actions form {
  margin: 0;
  vertical-align: middle;
}

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

.actions form button,
.actions .btn {
  height: 2rem;
  min-height: 2rem;
  padding: 0.375rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  font-size: 0.875rem;
}

.actions .btn-icon {
  padding: 0.375rem 0.5rem;
  min-width: 2rem;
  width: auto;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.detail-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.detail-item.full-width {
  grid-column: 1 / -1;
}

.detail-item strong {
  display: block;
  color: #6b7280;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.detail-item:not(.detail-item strong) {
  color: #2d3748;
  font-size: 1rem;
}

/* Summary cards (e.g. business group show: companies count, products count) – modern light style */
.summary-cards {
  margin-bottom: 1.5rem;
}

.summary-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  min-height: 88px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.summary-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: #d1d5db;
}

.summary-card--primary {
  border-left: 4px solid #2c5f8d;
}

.summary-card--primary .summary-card__icon {
  background: rgba(44, 95, 141, 0.1);
  color: #2c5f8d;
}

.summary-card--accent {
  border-left: 4px solid #0d9488;
}

.summary-card--accent .summary-card__icon {
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
}

.summary-card__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.summary-card__icon svg {
  width: 24px;
  height: 24px;
}

.summary-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.summary-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
  letter-spacing: -0.02em;
}

.summary-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 480px) {
  .summary-cards__grid {
    grid-template-columns: 1fr;
  }
}

/* Business group show page: tighter layout, less white space (no change to other pages) */
.page--business-group-show .summary-cards {
  margin-bottom: 1rem;
}

.page--business-group-show .content-card {
  padding: 1rem 1.25rem;
  margin-top: 0;
}

.page--business-group-show .detail-rows-two-cols {
  gap: 1.25rem;
  margin: 1rem 0;
}

.page--business-group-show .detail-rows {
  gap: 0.5rem;
}

.page--business-group-show .detail-row {
  gap: 0.75rem;
  padding: 0.125rem 0;
}

.page--business-group-show .detail-row__label {
  min-width: 8.5rem;
  font-size: 0.7rem;
}

.page--business-group-show .merged-groups {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top-width: 1px;
}

.page--business-group-show .merged-groups__title,
.page--business-group-show .merged-groups h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.page--business-group-show .merged-groups__item,
.page--business-group-show .merged-groups li {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.375rem;
}

.page--business-group-show .actions {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  gap: 0.5rem;
}

/* Label-value rows (e.g. show pages): label left, value right, one row per field */
.detail-rows {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  /* Extra vertical breathing room for readability */
  gap: 1rem;
}

.detail-rows-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Reduce wide gutter between columns */
  gap: 1.25rem;
  margin: 2rem 0;
}

.detail-rows-two-cols .detail-rows {
  margin: 0;
}

@media (max-width: 768px) {
  .detail-rows-two-cols {
    grid-template-columns: 1fr;
  }
}

.detail-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.125rem 0;
}

.detail-row__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #495057;
  letter-spacing: 0.02em;
  min-width: 10rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.detail-row__value {
  color: #2d3748;
  flex: 1;
  line-height: 1.35;
}

.detail-row__value.link-primary {
  color: var(--primary, #2c5f8d);
}

/* History Section */
.history-preview,
.merged-groups {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

.contact-address-block {
  margin-bottom: 1.5rem;
}

/* Company show: tighter layout, less white space */
.company-show-card .detail-rows-two-cols {
  gap: 1.25rem;
  margin: 1rem 0;
}
.company-show-card .detail-rows {
  margin: 0;
  gap: 0.5rem;
}
.company-show-card .detail-row {
  gap: 0.5rem;
}
.company-show-card .detail-row__label {
  min-width: 6.5rem;
}
.company-show-card .merged-groups {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top-width: 1px;
}
.company-show-card .merged-groups__title {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.company-show-card .contact-address-block {
  margin-bottom: 0.75rem;
}
.company-show-card .contact-address-block + .contact-address-block {
  margin-top: 0.5rem;
}
.company-show-card .actions {
  margin-top: 1rem;
  padding-top: 1rem;
}

.history-preview h3,
.merged-groups h3 {
  color: #2d3748;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.history-page {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.history-page h1 {
  color: #2d3748;
  margin-bottom: 1.5rem;
}

.history-list {
  margin-top: 2rem;
}

.history-list table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.history-list table thead {
  background-color: #f8f9fa;
}

.history-list table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #dee2e6;
}

.history-list table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f3f5;
  color: #495057;
}

.history-list table tbody tr:hover {
  background-color: #f8f9fa;
}

.history-preview table {
  width: 100%;
  border-collapse: collapse;
}

.history-preview table thead {
  background-color: #f8f9fa;
}

.history-preview table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #495057;
  font-size: 0.875rem;
  border-bottom: 2px solid #dee2e6;
}

.history-preview table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f1f3f5;
  color: #495057;
}

.no-data {
  text-align: center;
  color: #6c757d;
  padding: 2rem;
  font-style: italic;
}

.merged-groups ul {
  list-style: none;
  padding: 0;
}

.merged-groups li {
  padding: 0.75rem;
  background-color: #f8f9fa;
  margin-bottom: 0.5rem;
  border-radius: 6px;
}

.merged-groups li a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.merged-groups li a:hover {
  text-decoration: underline;
}

/* Footer */
.main-footer {
  background-color: #2d3748;
  color: #cbd5e0;
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
}

.main-footer p {
  margin: 0;
  font-size: 0.875rem;
}

/* Redmine-style Error Messages */
#errorExplanation {
  border: 2px solid #dd0000;
  background-color: #fee;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 4px;
}

#errorExplanation h2 {
  font-size: 16px;
  font-weight: 600;
  color: #dd0000;
  margin: 0 0 10px 0;
  padding: 0;
}

#errorExplanation ul {
  margin: 0;
  padding: 0 0 0 25px;
}

#errorExplanation li {
  font-size: 14px;
  color: #333;
  margin: 5px 0;
  line-height: 1.5;
}

.field_with_errors {
  display: inline;
}

.field_with_errors input,
.field_with_errors textarea,
.field_with_errors select {
  border-color: #dd0000;
  background-color: #fff0f0;
}

/* Merge Groups Dropdown */
.merge-groups-dropdown {
  position: relative;
  margin-top: 5px;
}

.merge-groups-dropdown .dropdown-toggle {
  width: 100%;
  text-align: left;
  padding: 10px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
}

.merge-groups-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  margin-top: 2px;
}

.merge-group-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.merge-group-item:last-child {
  border-bottom: none;
}

.merge-group-item:hover {
  background-color: #f5f5f5;
}

.merge-group-item input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 0;
  flex-shrink: 0;
}

.merge-group-item label {
  cursor: pointer;
  margin: 0;
  font-weight: normal;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   Admin form – card-based layout, compact inputs, reusable sections
   ========================================================================== */

.admin-form-section {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.admin-form-section__title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c5f8d;
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.02em;
}

.admin-form-section__body {
  margin: 0;
}

.admin-form-section__notes {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e9ecef;
}

/* Compact form row inside admin sections: 4 columns on desktop */
.admin-form .form-row--compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.admin-form .form-row--compact .form-group--full {
  grid-column: 1 / -1;
}

.admin-form .form-row--compact .form-group--end {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0.25rem;
}

.admin-form .form-group label {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: #2d3748;
}

/* Compact form controls (smaller height) */
.form-control--compact,
.admin-form .form-control--compact {
  min-height: 36px;
  height: 36px;
  padding: 0.35rem 0.625rem;
  font-size: 0.875rem;
}

.admin-form input.form-control--compact[type="text"],
.admin-form input.form-control--compact[type="number"],
.admin-form input.form-control--compact[type="email"],
.admin-form input.form-control--compact[type="date"],
.admin-form select.form-control--compact {
  min-height: 36px;
  height: auto;
  padding: 0.35rem 0.625rem;
}

.admin-form select.form-control--compact {
  padding-right: 1.75rem;
}

.admin-form textarea.form-control--compact {
  min-height: 56px;
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
}

/* Year grid: 5 columns, responsive */
.year-grid {
  display: grid;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.year-grid--5-col {
  grid-template-columns: repeat(5, 1fr);
}

.year-grid__cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.year-grid__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 0.2rem;
}

.year-grid__input {
  width: 100%;
  max-width: 4.5rem;
  min-height: 32px;
  height: 32px;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

@media (max-width: 992px) {
  .year-grid--5-col {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-form .form-row--compact {
    grid-template-columns: 1fr;
  }

  .year-grid--5-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .year-grid--5-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .navbar {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .navbar-menu {
    flex-direction: column;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    flex-direction: column;
  }

  .table-container {
    overflow-x: auto;
  }

  .data-table {
    font-size: 0.875rem;
  }

  .data-table th {
    padding: 0.4rem 0.5rem;
  }

  .data-table td {
    padding: 0.3rem 0.5rem;
    font-size: 0.8125rem;
  }

  .action-buttons {
    flex-direction: column;
  }
  
  .wrapper {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    min-width: auto;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
}

/* Sidebar Layout Styles */
.wrapper {
  display: flex;
  min-height: calc(100vh - 60px);
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

.sidebar {
  width: 220px;
  min-width: 220px;
  background: white;
  border-right: 1px solid #e0e0e0;
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
  padding: 1rem 0;
  margin: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar h3 {
  padding: 0 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c5f8d;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu .nav-link {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-menu .nav-link:hover {
  background-color: #f0f7ff;
  border-left-color: #4db8ff;
  color: #2c5f8d;
}

.nav-menu .nav-link.active {
  background-color: #e6f4ff;
  border-left-color: #2c5f8d;
  color: #2c5f8d;
  font-weight: 600;
}

.nav-menu .nav-submenu {
  list-style: none;
  padding: 0 0 0 0.5rem;
  margin: 0 0 0.25rem 0;
  border-left: 1px solid #e0e0e0;
  margin-left: 1.25rem;
}

.nav-menu .nav-submenu li {
  margin: 0;
}

.nav-menu .nav-submenu .nav-sublink {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.wrapper .main-content-area {
  flex: 1;
  padding: 0px;
  overflow-y: auto;
  margin: 0;
  background-color: #f8f9fa;
}

.wrapper .main-content-area > * {
  padding: 0.50rem;
}

.wrapper .welcome-message {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 2rem auto;
}

.wrapper .welcome-message h1 {
  color: #2c5f8d;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.wrapper .welcome-message p {
  color: #666;
  font-size: 1rem;
  line-height: 1.8;
}

/* Contact Information / Address Sections */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
}

.section-header h3 {
  color: #2c5f8d;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.section-header h4 {
  color: #2c5f8d;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.address-section {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
}

.address-header h4,
.address-header h6 {
  color: #2d3748;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

#company-addresses:empty::before {
  content: "No contact information added yet. Click 'Add Address' to add contact details.";
  display: block;
  padding: 2rem;
  text-align: center;
  color: #666;
  background: #f8f9fa;
  border-radius: 8px;
  font-style: italic;
}

/* Page-level form wrapper (rider_abps, rider_charges, death_benefits, etc.) - consistent padding */
.form-container {
  background: white;
  border-radius: 8px;
  padding: var(--form-body-padding-y, 16px) var(--form-body-padding-x, 24px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
  margin-bottom: 0.5rem;
}

/* Inner .card used in rider/death benefit forms (e.g. card p-3 mb-3) - no double box */
.form-container .card {
  padding: 0;
  margin-bottom: 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.form-container .card:last-of-type {
  margin-bottom: 0;
}

/* Nested form container (e.g. charges form inside form_card) - no extra padding */
.charges-form-container {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  margin-bottom: 0;
}

/* Centralized Form Sections - Applied Across All Forms */
.form-section {
  margin: 0;
}
.form-section:first-child {
  padding-top: 0;
}
.form-section + .form-section {
  margin-top: 0.5rem;
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section .section-header {
  margin: 0.5rem 0 0.5rem 0;
  padding-bottom: 0.5rem;
}

.section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2c5f8d;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.section-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.section-header-compact__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* =========================
   CUSIP module - modern UI
   ========================= */
.cusip-form {
  max-width: none;
  width: 100%;
}

.cusip-form .form-section {
  background: #fff;
  border: 1px solid rgba(27, 55, 86, 0.12);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.cusip-form .form-section + .form-section {
  margin-top: 0.75rem;
}

.cusip-form .section-header-compact {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(27, 55, 86, 0.08);
}

.cusip-form .nested-form-section__title {
  font-size: 0.95rem;
  font-weight: 650;
  color: #1a3d5c;
  letter-spacing: 0.01em;
}

.cusip-form .form-row {
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.cusip-form .form-group label,
.cusip-form .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.cusip-form .checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.9rem;
  padding: 0.25rem 0.1rem;
}

.cusip-form .checkbox-list__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 28px;
}

.cusip-form .checkbox-list__item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2c5f8d;
}

.cusip-form .checkbox-list__item label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #243447;
  margin: 0;
}

/* Keep 3-column picklists visually consistent */
.cusip-form .form-row--three {
  align-items: stretch;
}

.cusip-form .form-row--three .form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Row-style picklist (used by Age section) */
.cusip-form .cusip-picklist {
  border: 1px solid rgba(27, 55, 86, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  flex: 1;
  height: 260px; /* consistent card height */
  overflow-y: auto; /* scroll long lists */
}

.cusip-form .cusip-picklist__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(135deg, rgba(44, 95, 141, 0.12) 0%, rgba(26, 61, 92, 0.08) 100%);
  border-bottom: 1px solid rgba(27, 55, 86, 0.12);
  position: sticky;
  top: 0;
  z-index: 1;
}

.cusip-form .cusip-picklist__header-text {
  font-size: 0.85rem;
  font-weight: 650;
  color: #1a3d5c;
  letter-spacing: 0.02em;
}

.cusip-form .cusip-picklist__header-right {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(26, 61, 92, 0.8);
}

.cusip-form .cusip-picklist__master {
  width: 16px;
  height: 16px;
  accent-color: #2c5f8d;
}

.cusip-form .cusip-picklist__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(27, 55, 86, 0.08);
}

.cusip-form .cusip-picklist__row:hover {
  background: rgba(44, 95, 141, 0.05);
}

.cusip-form .cusip-picklist__row:last-child {
  border-bottom: none;
}

.cusip-form .cusip-picklist__text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #243447;
  line-height: 1.25;
}

.cusip-form .cusip-picklist__check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2c5f8d;
}

.cusip-form .cusip-picklist__empty {
  padding: 0.65rem 0.7rem;
  color: rgba(36, 52, 71, 0.65);
  font-size: 0.9rem;
}

.cusip-form .text-muted {
  color: rgba(36, 52, 71, 0.65);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .cusip-form .checkbox-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .cusip-form .form-row {
    flex-direction: column;
  }

  /* On small screens, allow cards to grow naturally */
  .cusip-form .cusip-picklist {
    height: auto;
    max-height: 360px;
  }
}

.section-actions {
  display: flex;
  gap: 0.5rem;
}

.section-actions-inline {
  text-align: right;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;

}

/* Compact form rows - same structure, just tighter spacing */
.form-row.compact {
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}

.form-row.compact .form-group {
  margin-bottom: 0.5rem;
}

.form-row.compact .form-group label {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
  /* Same as standard form-group label */
}

/* Compact form rows use same form-control height for consistency */
.form-row.compact .form-control {
  /* Keep same height as standard form-control */
  padding: 0.6875rem 0.875rem;
  font-size: 0.9375rem;
  min-height: 40px;
}

.form-row.compact input.form-control[type="text"],
.form-row.compact input.form-control[type="number"],
.form-row.compact input.form-control[type="email"],
.form-row.compact input.form-control[type="date"],
.form-row.compact input.form-control[type="tel"] {
  height: 40px;
  padding-top: 0.6875rem;
  padding-bottom: 0.6875rem;
}

.form-row.compact select.form-control {
  height: 42px;
  min-height: 42px;
  padding: 0.625rem 2.5rem 0.625rem 0.875rem;
  line-height: 1.5;
}

/* Age form: tabs (Age Rules / Non-Qualified) and compact age grid */
.age-form__tab-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.age-form__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 6px;
  padding: 0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  width: fit-content;
}

.age-form__tab {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.age-form__tab:hover {
  background: #f1f5f9;
  color: #334155;
}

#age_tab_qualified:checked ~ .age-form__tabs label[for="age_tab_qualified"],
#age_tab_non_qualified:checked ~ .age-form__tabs label[for="age_tab_non_qualified"] {
  background: #1E3A5F;
  color: #fff;
}

.age-form__tab-panel {
  display: none;
  margin-bottom: 1rem;
}

#age_tab_qualified:checked ~ #age_panel_qualified,
#age_tab_non_qualified:checked ~ #age_panel_non_qualified {
  display: block;
}

.age-form__age-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  align-items: start;
}

.age-form__age-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.age-form__label-with-info {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.age-form__label-with-info label {
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
}

.age-form__age-col .form-control.input-no-spinner {
  height: 40px;
  padding: 0.5rem 0.625rem;
  font-size: 0.9375rem;
}

.age-form__desc-input {
  margin-top: 0.15rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  min-height: 32px;
}

@media (max-width: 992px) {
  .age-form__age-grid {
    grid-template-columns: repeat(3, minmax(0, 160px));
  }
}

@media (max-width: 576px) {
  .age-form__age-grid {
    grid-template-columns: 1fr;
  }
}

/* Nested Form Cards */
.nested-form-card {
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.nested-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dee2e6;
}

.nested-form-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  margin: 0;
}

.nested-form-body {
  padding-top: 0.5rem;
}

/* Bonus year card: compact modern layout, reuses .product-contribution-fields header */
.bonus-year-fields.content-card--compact {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.bonus-year-fields .product-contribution-fields__header {
  margin-bottom: 0.35rem;
}
.bonus-year-fields .nested-form-body.bonus-year-fields__body {
  padding-top: 0.25rem;
}
.bonus-year-fields .bonus-year-fields__row {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 200px) 2fr;
  margin-bottom: 0.5rem;
  gap: 0.5rem 0.75rem;
}
/* Override layout.css so this row keeps narrow Type column inside form-card */
.form-card__body .bonus-year-fields .bonus-year-fields__row {
  grid-template-columns: 1fr minmax(120px, 200px) 2fr;
}
.bonus-year-fields .bonus-year-fields__row .form-group {
  margin-bottom: 0;
}
.bonus-year-fields .bonus-year-fields__row .form-group--type-dropdown {
  max-width: 200px;
  min-width: 0;
}
.bonus-year-fields .bonus-year-fields__row .form-group--type-dropdown select.form-control {
  max-width: 100%;
  width: 100%;
}
.bonus-year-fields .bonus-year-fields__row .form-group label {
  margin-bottom: 0.2rem;
  font-size: 0.875rem;
}
.bonus-year-fields .nested-form-body .form-row.compact {
  display: grid;
  grid-template-columns: repeat(20, minmax(2.5rem, 1fr));
  gap: 0.25rem 0.35rem;
  margin-bottom: 0;
}
.bonus-year-fields .nested-form-body .form-row.compact .form-group {
  margin-bottom: 0;
}
.bonus-year-fields .bonus-year-years-row__label {
  grid-column: 1 / -1;
  margin-bottom: 0.2rem;
  margin-top: 0.15rem;
  font-weight: 500;
  font-size: 0.8125rem;
}
.bonus-year-fields .bonus-year-years-row__cell {
  min-width: 0;
}
.bonus-year-fields .bonus-year-years-row__cell label {
  font-size: 0.75rem;
  margin-bottom: 0.1rem;
}
.bonus-year-fields .bonus-year-years-row__cell .form-control-sm {
  padding: 0.25rem 0.35rem;
  font-size: 0.8125rem;
  height: auto;
  min-height: 32px;
}
@media (max-width: 768px) {
  .bonus-year-fields .bonus-year-fields__row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .bonus-year-fields .nested-form-body .form-row.compact {
    grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr));
  }
}
/* Bonus case card: same pattern as bonus-year-fields, compact rows, less whitespace */
.bonus-case-fields.content-card--compact {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.bonus-case-fields .product-contribution-fields__header {
  margin-bottom: 0.35rem;
}
.bonus-case-fields .nested-form-body.bonus-case-fields__body {
  padding-top: 0.25rem;
}
.form-card__body .bonus-case-fields .bonus-case-fields__row,
.bonus-case-fields .bonus-case-fields__row {
  margin-bottom: 0.4rem;
  gap: 0.5rem 0.75rem;
}
.bonus-case-fields .bonus-case-fields__row .form-group {
  margin-bottom: 0;
}
.bonus-case-fields .bonus-case-fields__row .form-group label {
  margin-bottom: 0.2rem;
  font-size: 0.8125rem;
}
.bonus-case-fields .form-group--span-2 {
  grid-column: span 2;
  min-width: 0;
}
.bonus-case-fields .bonus-case-fields__states {
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.bonus-case-fields .form-check-inline-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .bonus-case-fields .form-group--span-2 {
    grid-column: span 1;
  }
}

.form-section--compact .fund-managers-section-header {
  margin-bottom: 0.35rem;
}

/* Fund form: aligned grid rows, no extra space */
.fund-form .form-row--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.fund-form .form-row--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.fund-form .form-row--1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.fund-form .form-row--3 .form-group,
.fund-form .form-row--4 .form-group,
.fund-form .form-row--1 .form-group {
  margin-bottom: 0;
}
.fund-form .form-row:last-child {
  margin-bottom: 0;
}
.fund-form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  margin: 0 0 1rem;
}
.fund-form .form-section {
  padding-top: 0.5rem;
}
.fund-managers-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.add-fund-manager-link {
  color: var(--primary, #2c5f8d);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.add-fund-manager-link:hover {
  text-decoration: underline;
  color: #1e4976;
}
.fund-manager-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: #fff;
}
.fund-manager-card:last-child {
  margin-bottom: 0;
}
.fund-manager-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.fund-manager-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  margin: 0;
}
.fund-manager-card-body .form-row--3,
.fund-manager-card-body .form-row--1 {
  margin-bottom: 0.75rem;
}
.fund-manager-card-body .form-row--1:last-child {
  margin-bottom: 0;
}
.fund-manager-card-body .form-group {
  margin-bottom: 0;
}

.fund-manager-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.fund-manager-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  font-size: 0.9375rem;
  cursor: pointer;
  margin: 0;
}
.fund-manager-checkbox-label .form-check-input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

/* Multi-select dropdown (trigger looks like select; panel shows checkboxes) */
.multi-select-dropdown {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.multi-select-dropdown__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9375rem;
  box-sizing: border-box;
}
.multi-select-dropdown__trigger:hover {
  border-color: #9ca3af;
}
.multi-select-dropdown__label {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #374151;
}
.multi-select-dropdown__caret {
  flex-shrink: 0;
  margin-left: 0.5rem;
  font-size: 0.65rem;
  color: #6b7280;
}
.multi-select-dropdown__panel {
  position: absolute;
  z-index: 50;
  top: 100%;
  left: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 2px;
  padding: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}
.multi-select-dropdown__panel .fund-manager-checkbox-group {
  gap: 0.25rem;
}

/* Keep grid columns equal: allow form-groups to shrink so multi-select doesn't expand the column */
.form-card__body .form-row .form-group {
  min-width: 0;
}

.form-group--narrow-date {
  max-width: 18.5rem;
}

/* Nested Cases Section */
.nested-cases-section {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.nested-cases-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.nested-cases-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6c757d;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nested-case-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.625rem;
  margin-bottom: 0.5rem;
}

.nested-case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.375rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid #e9ecef;
}

.nested-case-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6c757d;
  margin: 0;
}

.nested-case-body {
  padding-top: 0.375rem;
}

/* Form Actions – consistent alignment for all form button rows */
.form-actions {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Button improvements */
.btn-sm span {
  margin-right: 0.25rem;
}

/* Checkbox improvements */
.form-check {
  display: flex;
  align-items: center;
}

.form-check-spaced {
  margin-right: 1.25rem;
}

.form-check-inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.form-check-inline-group .form-check-item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.form-check-inline-group .form-check-item .form-check-label {
  display: inline;
  margin-left: 0.5rem;
  margin-bottom: 0;
  white-space: nowrap;
}

.form-check-label {
  margin-left: 0.5rem;
  margin-bottom: 0;
  font-weight: 500;
  font-size: 0.875rem;
}

/* State dropdown: Exception checkbox and label tight, no extra gap */
.state-dual-selector .form-check.state-dual-selector-exception-row,
.state-dual-selector > .form-check {
  gap: 0 !important;
  display: flex !important;
  align-items: center !important;
}
.state-dual-selector .form-check.state-dual-selector-exception-row .form-check-input,
.state-dual-selector > .form-check .form-check-input {
  margin-right: 0.25rem !important;
  margin-left: 0 !important;
  flex-shrink: 0;
}
.state-dual-selector .form-check.state-dual-selector-exception-row .form-check-label,
.state-dual-selector > .form-check .form-check-label {
  margin-left: 0.25rem !important;
  margin-bottom: 0 !important;
}

/* Textarea is already defined above in form-control section */

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-row.compact {
    grid-template-columns: 1fr;
  }
  
  .section-header-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .nested-form-header,
  .nested-case-header,
  .nested-cases-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ==========================================================================
   Settlement form – centralized styles (no inline CSS in view)
   ========================================================================== */

.settlement-form .section-heading {
  font-size: 0.9rem;
  color: #495057;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
}

.settlement-form .section-heading-sm {
  font-size: 0.85rem;
  color: #495057;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.settlement-form .attr-three-col {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.settlement-form .attr-col-left {
  flex: 0 0 32%;
  min-width: 0;
}

.settlement-form .attr-col-middle {
  flex: 0 0 24%;
  min-width: 0;
}

.settlement-form .attr-col-right {
  flex: 1;
  min-width: 0;
}

.settlement-form .attr-table {
  font-size: 0.875rem;
}

.settlement-form .attr-table .form-label {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.settlement-form .attr-table .form-control {
  font-size: 0.875rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.settlement-form .attr-table td.attr-label-cell {
  vertical-align: middle;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-right: 0.5rem;
}

.settlement-form .attr-table td.attr-input-cell {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.settlement-form .desc-label {
  font-size: 0.8rem;
  margin-bottom: 0;
}

.settlement-form .desc-input {
  font-size: 0.875rem;
  min-height: 2rem;
  margin-top: 0;
}

.settlement-form .desc-row-spacer {
  min-height: 2rem;
}

.settlement-form .state-widget-wrap {
  min-height: 120px;
  width: 100%;
}

.settlement-form .state-widget-wrap .state-dual-selector {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

.settlement-form .case-name-label,
.settlement-form .case-desc-label {
  font-size: 0.875rem;
}

.settlement-form .case-desc-label {
  margin-bottom: 0.25rem;
}

.settlement-form .options-section {
  margin-top: 1rem;
}

.settlement-form .options-section:first-of-type {
  margin-top: 0.5rem;
}

.settlement-form .options-section-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.settlement-form .options-check-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.settlement-form .options-check-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.settlement-form .options-check-item .form-check-label {
  margin: 0;
  font-size: 0.875rem;
}

.settlement-form .options-inline-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.settlement-form .options-inline-with-label {
  gap: 0.5rem;
}

.settlement-form .options-inline-label {
  margin: 0;
  font-size: 0.875rem;
  white-space: nowrap;
}

.settlement-form .options-input-inline {
  width: 80px;
  flex-shrink: 0;
}

.settlement-form .options-input-100 {
  width: 100px;
  flex-shrink: 0;
}

.settlement-form .options-input-120 {
  width: 120px;
  flex-shrink: 0;
}

.settlement-form .card-header-compact strong {
  font-size: 0.9rem;
}

.settlement-form .rate-grid-table {
  font-size: 0.875rem;
}

.settlement-form .rate-grid-table th,
.settlement-form .rate-grid-table td {
  padding: 0.25rem 0.35rem;
}

.settlement-form .rate-grid-table td.rate-cell-compact {
  padding-top: 0;
  padding-bottom: 0;
}

.settlement-form .rate-grid-table .form-control {
  font-size: 0.875rem;
  padding-top: 0;
  padding-bottom: 0;
}

.settlement-form .yrtc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

/* Contribution Band form: compact layout, less whitespace */
.contribution-band-form__card {
  padding: 12px 16px;
}

.contribution-band-form__limit-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.contribution-band-form__limit-row .form-group {
  margin-bottom: 0;
}

.contribution-band-form__limit-row .form-group label {
  margin-bottom: 0.2rem;
  font-size: 0.875rem;
}

.contribution-band-form__limit-row .form-control {
  padding: 0.4rem 0.5rem;
  font-size: 0.875rem;
}

.contribution-band-form__section {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e9ecef;
}

.contribution-band-form__section .section-header-compact {
  margin-bottom: 0.35rem;
}

.contribution-band-form__section .section-title {
  font-size: 0.9375rem;
  margin: 0;
}

#contribution-bands-container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contribution-band-fields {
  padding: 0.4rem 0.6rem;
  margin-bottom: 0;
  background: #f8f9fa;
}

.contribution-band-fields__row {
  display: grid;
  grid-template-columns: 110px 110px 0.75fr 0.75fr 1.5fr auto;
  gap: 0.4rem 0.75rem;
  align-items: end;
  margin-bottom: 0;
}

.contribution-band-fields__row .form-group {
  margin-bottom: 0;
}

.contribution-band-fields__row .form-group label {
  margin-bottom: 0.15rem;
  font-size: 0.8125rem;
}

.contribution-band-fields__row .form-control {
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
  min-height: 2.5rem;
}

.contribution-band-fields__notes textarea {
  min-height: 2rem;
  resize: vertical;
}

.contribution-band-fields__remove {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0.25rem;
}

.contribution-band-fields__remove .remove-contribution-band-btn {
  white-space: nowrap;
}

.contribution-band-form__actions {
  padding-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .contribution-band-form__limit-row {
    grid-template-columns: 1fr 1fr;
  }

  .contribution-band-fields__row {
    grid-template-columns: 1fr 1fr auto;
  }

  .contribution-band-fields__notes {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .contribution-band-form__limit-row {
    grid-template-columns: 1fr;
  }

  .contribution-band-fields__row {
    grid-template-columns: 1fr 1fr;
  }

  .contribution-band-fields__remove {
    grid-column: 1 / -1;
  }
}

/* Copy product (source → destination attribute copy) */
.copy-product-page__destination {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.copy-product-page__note {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.copy-product-page__sections .copy-product-page__check-col {
  width: 3rem;
  text-align: center;
}

.copy-product-page__bulk-actions {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
