/*
 * Customer Card Button Styles to match the design mock
 * - 2x2 Grid Layout
 * - Solid, colorful buttons
 * - Consistent sizing and spacing
 */

/* 1. Force a 2x2 grid layout for the buttons */
.customer-card .action-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important; /* Always 2 columns */
  gap: 12px !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  width: 90% !important; /* Reduce width to allow centering */
  margin: 0 auto !important; /* Center the grid block */
}

/* 2. Style all buttons to be solid, full-width, and sized like the sample */
.customer-card .action-buttons .btn {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  min-height: 40px !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  transition: all 0.2s ease-in-out !important;
}

.customer-card .action-buttons .btn:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.05) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15) !important;
}

/* 3. Apply specific solid background colors */

/* Edit Button -> Blue */
.customer-card .action-buttons .btn-outline-warning {
    background: #3a66ff !important;
}

/* Orders Button -> Green */
.customer-card .action-buttons .btn-outline-info {
    background: #14a46a !important;
}

/* Statement Button -> Orange */
.customer-card .action-buttons .account-statement-btn,
.customer-card .action-buttons .btn-outline-primary {
    background: #f29c1f !important;
}

/* Delete Button -> Red */
.customer-card .action-buttons .btn-outline-danger {
    background: #e84d4f !important;
}

/* 4. Adjust Account Statement button to fit */
.customer-card .action-buttons .account-statement-btn {
    font-size: 12px !important; /* Smaller font to fit text */
    white-space: normal !important; /* Allow text to wrap if needed */
    line-height: 1.2 !important;
    padding: 8px !important; /* Adjust padding to help fit */
}

/* 5. Clean up any conflicting elements */
.customer-card .action-buttons .account-statement-btn:after {
    display: none !important; /* Remove the 'NEW' badge */
}

.customer-card .action-buttons .btn i {
    margin-right: 6px !important;
}

