/* Admin Chit Groups Styles */

/* Main Layout */
.admin-main-content-padded {
  width: 100%;
  padding-top: calc(64px + env(safe-area-inset-top, 0px) + 16px);
  padding-bottom: 48px;
}

.admin-safe-area {
  width: 100%;
  box-sizing: border-box;
  padding-left: 24px;
  padding-right: 24px;
}

/* Filter Bar */
.filter-bar {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #E5E7EB;
}

.filter-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1;
}

/* Search Input */
.search-wrapper {
  position: relative;
  width: 240px;
  min-width: 200px;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
}

.search-icon {
  width: 16px;
  height: 16px;
  color: #9CA3AF;
  position: absolute;
  left: 12px;
  top: 10px;
}

/* Dropdowns */
.filter-select-wrapper {
  position: relative;
  width: 140px;
}

.filter-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
  appearance: none;
  background: white;
}

.select-arrow-icon {
  width: 16px;
  height: 16px;
  color: #9CA3AF;
  position: absolute;
  right: 12px;
  top: 10px;
  pointer-events: none;
}

/* Create Button */
.btn-create-primary {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #2563EB;
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

/* Data Table */
.data-table-wrapper {
  background: white;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.data-table thead {
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
}

.data-table th {
  padding: 16px 24px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
}

.data-table tbody tr {
  border-bottom: 1px solid #F3F4F6;
  background: white;
}

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

.data-table td {
  padding: 20px 24px;
}

/* Typography Helpers */
.text-main-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 2px 0;
}

.text-sub-code {
  font-size: 12px;
  color: #6B7280;
  margin: 0;
}

.text-currency {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: capitalize;
}

.status-active {
  background: #ECFDF5;
  color: #065F46;
}

.status-draft {
  background: #F3F4F6;
  color: #374151;
}

.status-completed {
  background: #EFF6FF;
  color: #1E40AF;
}

.status-cancelled {
  background: #FEF2F2;
  color: #991B1B;
}

.status-dot {
  width: 8px;
  height: 8px;
}

.text-green-500 {
  color: #10B981;
}

.text-gray-500 {
  color: #6B7280;
}

.text-blue-500 {
  color: #3B82F6;
}

.text-red-500 {
  color: #EF4444;
}

/* Action Buttons */
.icon-btn {
  padding: 8px;
  background: #F3F4F6;
  color: #4B5563;
  border-radius: 6px;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: #E5E7EB;
  color: #111827;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 0 4px;
}

.pagination-controls {
  display: flex;
  gap: 8px;
}

.page-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.page-btn-disabled {
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
}

.page-btn-active {
  background: white;
  border: 1px solid #E5E7EB;
  color: #111827;
  font-weight: 600;
}

/* Helpers to replace inline styles */
.hidden-submit {
  display: none;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.action-buttons-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-icon-svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.action-icon-svg {
  width: 18px;
  height: 18px;
}

/* Secondary Button (Edit) */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  color: #374151;
  background: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: #F9FAFB;
}

/* Header Actions Wrapper */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Auction Item Layout */
.auction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #F9FAFB;
  border-radius: 8px;
  transition: background-color 0.2s;
  margin-bottom: 12px;
}

.auction-item:hover {
  background-color: #F3F4F6;
}

.auction-info {
  flex: 1;
}

.auction-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.auction-details {
  font-size: 14px;
  color: #4B5563;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.auction-detail-item {
  display: inline-flex;
  gap: 4px;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .header-actions {
    flex-wrap: wrap;
  }

  .auction-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .auction-actions {
    align-self: flex-end;
  }

  /* Make lists/tables scrollable on mobile is handled by data-table-wrapper */

  /* Stack member add form */
  .add-member-form {
    flex-direction: column;
    align-items: stretch !important;
  }

  .add-member-form .btn-create-primary {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }
}

/* Mobile Card Layout */
.chit-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chit-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}

.chit-card-title-section {
  flex: 1;
  min-width: 0;
}

.chit-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.chit-card-code {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}

.chit-card-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F3F4F6;
}

.chit-card-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chit-card-label {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

.chit-card-value {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.chit-card-value-small {
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chit-card-dates {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F3F4F6;
}

.chit-card-date-text {
  font-size: 13px;
  color: #6B7280;
}

.chit-card-actions {
  display: flex;
  gap: 12px;
}

.chit-card-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.chit-card-btn-view {
  background: #2563EB;
  color: white;
  border: none;
}

.chit-card-btn-view:hover {
  background: #1D4ED8;
}

.chit-card-btn-edit {
  background: white;
  color: #374151;
  border: 1px solid #D1D5DB;
}

.chit-card-btn-edit:hover {
  background: #F9FAFB;
}

.chit-card-btn-icon {
  width: 18px;
  height: 18px;
}

/* Empty State Mobile */
.empty-state-mobile {
  background: white;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  border: 1px solid #E5E7EB;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  background: #F3F4F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.empty-state-icon svg {
  width: 32px;
  height: 32px;
  color: #9CA3AF;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
}

.empty-state-text {
  font-size: 14px;
  color: #6B7280;
  margin: 0 0 16px 0;
}

/* Responsive Display Control */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  /* Adjust filter bar for mobile */
  .filter-bar {
    padding: 12px;
  }

  .filter-group {
    width: 100%;
  }

  .search-wrapper {
    width: 100%;
  }

  .filter-select-wrapper {
    width: calc(50% - 8px);
  }

  .btn-create-primary {
    width: 100%;
    justify-content: center;
  }

  /* Adjust main content padding for mobile */
  .admin-main-content-padded {
    padding-top: calc(64px + env(safe-area-inset-top, 0px) + 12px);
  }

  .admin-safe-area {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* User/Subscriber Table Styles */
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.cell-stacked {
  display: flex;
  flex-direction: column;
}

.text-cell-main {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.text-cell-sub {
  font-size: 13px;
  color: #6B7280;
  margin-top: 2px;
}

.filter-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #2563EB;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
}

.filter-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: white;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
}

.badge-role {
  display: inline-block;
  padding: 2px 8px;
  background: #F3F4F6;
  color: #4B5563;
  font-size: 12px;
  font-weight: 500;
  border-radius: 12px;
  margin-right: 4px;
}

/* Member Cards (Mobile) */
.members-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.member-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
}

.member-card-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3B82F6 0%, #4F46E5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-card-avatar span {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.member-card-info {
  flex: 1;
  min-width: 0;
}

.member-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 2px 0;
}

.member-card-phone {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}

.member-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.member-card-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-card-detail-label {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

.member-card-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.member-card-actions {
  display: flex;
}

.member-card-btn-remove {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FEE2E2;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.member-card-btn-remove:hover {
  background: #FEE2E2;
  border-color: #FECACA;
}

.input-full-width {
  width: 100%;
}

/* Subscriber Cards (Mobile) */
.subscribers-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscriber-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.subscriber-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
}

.subscriber-card-info {
  flex: 1;
  min-width: 0;
}

.subscriber-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.subscriber-card-phone {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}

.subscriber-card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  background: #F9FAFB;
  border-radius: 8px;
}

.subscriber-card-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subscriber-card-detail-label {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

.subscriber-card-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.subscriber-card-detail-sub {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 2px;
}

.subscriber-card-payment-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.subscriber-card-payment-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subscriber-card-actions {
  display: flex;
  gap: 12px;
}

.subscriber-card-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.subscriber-card-btn-view {
  background: #2563EB;
  color: white;
  border: none;
}

.subscriber-card-btn-view:hover {
  background: #1D4ED8;
}

.subscriber-card-btn-edit {
  background: white;
  color: #374151;
  border: 1px solid #D1D5DB;
}

.subscriber-card-btn-edit:hover {
  background: #F9FAFB;
}

/* Role Cards (Mobile) */
.roles-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.role-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
}

.role-card-icon {
  width: 48px;
  height: 48px;
  background: #DBEAFE;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #1E40AF;
  flex-shrink: 0;
}

.role-card-info {
  flex: 1;
  min-width: 0;
}

.role-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.role-card-locked {
  font-size: 12px;
  color: #6B7280;
}

.role-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.role-card-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.role-card-stat-label {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

.role-card-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.role-card-actions {
  display: flex;
  gap: 12px;
}

.role-card-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.role-card-btn-view {
  background: #2563EB;
  color: white;
  border: none;
}

.role-card-btn-view:hover {
  background: #1D4ED8;
}

.role-card-btn-edit {
  background: #ECFDF5;
  color: #10B981;
  border: 1px solid #D1FAE5;
}

.role-card-btn-edit:hover {
  background: #D1FAE5;
}

/* Auction Cards (Mobile) */
.auctions-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auction-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auction-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
}

.auction-card-info {
  flex: 1;
  min-width: 0;
}

.auction-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.auction-card-code {
  font-size: 12px;
  color: #6B7280;
}

.auction-card-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.auction-card-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auction-card-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auction-card-detail-label {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

.auction-card-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.auction-card-actions {
  display: flex;
  gap: 12px;
}

.auction-card-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.auction-card-btn-view {
  background: #2563EB;
  color: white;
  border: none;
}

.auction-card-btn-view:hover {
  background: #1D4ED8;
}

.auction-card-btn-edit {
  background: white;
  color: #374151;
  border: 1px solid #D1D5DB;
}

.auction-card-btn-edit:hover {
  background: #F9FAFB;
}

/* Payment Cards (Mobile) */
.payments-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.payment-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
}

.payment-card-info {
  flex: 1;
  min-width: 0;
}

.payment-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.payment-card-phone {
  font-size: 12px;
  color: #6B7280;
}

.payment-card-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-card-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-card-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-card-detail-label {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

.payment-card-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

/* Gateway Cards (Mobile) */
.gateway-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gateway-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gateway-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gateway-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gateway-card-info {
  flex: 1;
  min-width: 0;
}

.gateway-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
  text-transform: capitalize;
}

.gateway-card-url {
  font-size: 12px;
  color: #6B7280;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  flex-shrink: 0;
}

.gateway-status-active {
  background: #ECFDF5;
  color: #065F46;
}

.gateway-status-inactive {
  background: #F3F4F6;
  color: #6B7280;
}

.gateway-card-actions {
  display: flex;
  gap: 8px;
}

.gateway-card-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.gateway-card-btn-edit {
  background: #2563EB;
  color: white;
}

.gateway-card-btn-edit:hover {
  background: #1D4ED8;
}

.gateway-card-btn-activate {
  background: #10B981;
  color: white;
}

.gateway-card-btn-activate:hover {
  background: #059669;
}

.gateway-card-btn-deactivate {
  background: #F59E0B;
  color: white;
}

.gateway-card-btn-deactivate:hover {
  background: #D97706;
}

.gateway-card-btn-delete {
  background: #EF4444;
  color: white;
}

.gateway-card-btn-delete:hover {
  background: #DC2626;
}

/* Empty State */
.empty-state {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
}

.empty-state-text {
  font-size: 14px;
  color: #6B7280;
  margin: 0 0 16px 0;
}

.empty-state-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #2563EB;
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.empty-state-btn:hover {
  background: #1D4ED8;
}

/* Audit Log Cards (Mobile) */
.audit-log-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audit-log-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.audit-log-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
}

.audit-log-card-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.audit-log-date {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.audit-log-time {
  font-size: 12px;
  color: #6B7280;
}

.audit-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  text-transform: capitalize;
  flex-shrink: 0;
}

.audit-badge-create {
  background: #ECFDF5;
  color: #065F46;
}

.audit-badge-update {
  background: #EFF6FF;
  color: #1E40AF;
}

.audit-badge-destroy {
  background: #FEE2E2;
  color: #991B1B;
}

.audit-badge-default {
  background: #F3F4F6;
  color: #374151;
}

.audit-log-card-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.audit-log-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.audit-log-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audit-log-detail-label {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

.audit-log-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.audit-log-detail-sub {
  font-size: 12px;
  color: #6B7280;
}

.audit-log-card-actions {
  display: flex;
}

.audit-log-card-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #F3F4F6;
  color: #374151;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.audit-log-card-btn:hover {
  background: #E5E7EB;
}

/* Report Cards (Mobile) */
.report-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.report-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
}

.report-card-subscriber {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.report-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #6B7280;
  flex-shrink: 0;
}

.report-card-info {
  flex: 1;
  min-width: 0;
}

.report-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.report-card-phone {
  font-size: 12px;
  color: #6B7280;
}

.report-card-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-card-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.report-card-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-card-detail-label {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

.report-card-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.report-card-detail-sub {
  font-size: 12px;
  color: #6B7280;
}

@media print {
  .no-print {
    display: none !important;
  }

  /* Ensure main content is visible and formatted for print */
  .admin-main-content-padded {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .admin-safe-area {
    padding: 0 !important;
  }

  /* Hide sidebar and header if not wrapped in no-print (usually sidebar is separate) */
  /* Hide sidebar */
  .lg\:fixed {
    display: none !important;
  }

  /* Reset padding on content wrapper */
  .lg\:pl-64 {
    padding-left: 0 !important;
  }

  /* Reset width */
  main {
    width: 100% !important;
    margin: 0 !important;
  }
}