/* Royalty Splits & Payout Page Styles */

/* Page Content Wrapper */
.page-content {
  padding: 20px;
}

.page-header {
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 8px 0;
}

.page-description {
  font-size: 16px;
  color: #718096;
  margin: 0;
}

/* Revenue Overview Cards */
.revenue-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.revenue-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.revenue-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.revenue-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F16623, #FF8A50);
  border-radius: 12px;
  color: white;
}

.revenue-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 4px 0;
}

.revenue-info p {
  font-size: 14px;
  color: #718096;
  margin: 0;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  background: white;
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: #718096;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: #F16623;
  color: white;
  box-shadow: 0 2px 8px rgba(241, 102, 35, 0.3);
}

.tab-btn:hover:not(.active) {
  background: #f7fafc;
  color: #2d3748;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
}

/* Splits Section */
.splits-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.splits-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 20px 0;
}

/* Splits Table */
.splits-table {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1.5fr 1fr 1fr;
  gap: 16px;
  background: #f7fafc;
  padding: 16px;
  font-weight: 600;
  color: #4a5568;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1.5fr 1fr 1fr;
  gap: 16px;
  padding: 20px 16px;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
  transition: background-color 0.2s ease;
}

.table-row:hover {
  background: #f7fafc;
}

.table-row:last-child {
  border-bottom: none;
}

.split-title {
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 4px;
}

.split-subtitle {
  font-size: 14px;
  color: #718096;
}

.beneficiary-name {
  font-weight: 500;
  color: #1a202c;
  margin-bottom: 2px;
}

.beneficiary-email {
  font-size: 14px;
  color: #718096;
}

.percentage-badge {
  background: linear-gradient(135deg, #F16623, #FF8A50);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.period-duration {
  font-size: 12px;
  color: #718096;
  margin-top: 2px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: #c6f6d5;
  color: #22543d;
}

.status-badge.pending {
  background: #fed7d7;
  color: #c53030;
}

.status-badge.completed {
  background: #c6f6d5;
  color: #22543d;
}

.status-badge.processing {
  background: #feebc8;
  color: #c05621;
}

.action-btn {
  background: none;
  border: none;
  color: #718096;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin-right: 4px;
}

.action-btn:hover {
  background: #f7fafc;
  color: #F16623;
}

/* Pending Requests */
.pending-requests {
  margin-top: 20px;
}

.request-card {
  background: #fef5e7;
  border: 1px solid #f6e05e;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.request-title {
  font-weight: 600;
  color: #1a202c;
  font-size: 16px;
}

.request-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.request-info {
  color: #4a5568;
  line-height: 1.6;
}

.request-actions {
  display: flex;
  gap: 8px;
}

/* Earnings Grid */
.earnings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.earnings-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.earnings-card:hover {
  transform: translateY(-2px);
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.platform-header i {
  font-size: 24px;
}

.platform-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
}

.platform-stats {
  display: flex;
  justify-content: space-between;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #718096;
}

/* Monthly Breakdown */
.monthly-breakdown {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.monthly-breakdown h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 20px 0;
}

.breakdown-table .table-header {
  grid-template-columns: 1fr 1.5fr 1.5fr 1fr 1fr;
}

.breakdown-table .table-row {
  grid-template-columns: 1fr 1.5fr 1.5fr 1fr 1fr;
}

.breakdown-table .col-platform {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Payment Methods */
.payment-methods {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-methods h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 20px 0;
}

.payment-cards {
  display: grid;
  gap: 16px;
}

.payment-card {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.payment-card.active {
  border-color: #F16623;
  background: #fef5e7;
}

.payment-card:hover:not(.add-method) {
  border-color: #cbd5e0;
}

.payment-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.payment-header i {
  font-size: 24px;
}

.payment-info {
  flex: 1;
}

.payment-type {
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 4px;
}

.payment-details {
  font-size: 14px;
  color: #718096;
}

.payment-status {
  background: #F16623;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.payment-card.add-method {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.add-payment {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #718096;
  font-weight: 500;
}

.add-payment i {
  font-size: 20px;
}

/* Payout History */
.payout-history {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payout-history h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 20px 0;
}

.history-table .table-header {
  grid-template-columns: 1fr 1fr 1.5fr 1fr 1.5fr;
}

.history-table .table-row {
  grid-template-columns: 1fr 1fr 1.5fr 1fr 1.5fr;
}

.history-table .col-method {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Filter Controls */
.filter-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  color: #4a5568;
  font-size: 14px;
}

/* Split Request Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0 24px;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #718096;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #1a202c;
}

.modal-form {
  padding: 0 24px 24px 24px;
}

.form-section {
  margin-bottom: 32px;
}

.form-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #F16623;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #F16623;
  box-shadow: 0 0 0 3px rgba(241, 102, 35, 0.1);
}

.form-help {
  font-size: 12px;
  color: #718096;
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
}

.btn-primary {
  background: #F16623;
  color: white;
}

.btn-primary:hover {
  background: #e55a1f;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-secondary:hover {
  background: #cbd5e0;
}

.btn-danger {
  background: #e53e3e;
  color: white;
}

.btn-danger:hover {
  background: #c53030;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-loading {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .revenue-overview {
    grid-template-columns: 1fr;
  }
  
  .tab-navigation {
    flex-direction: column;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .table-header {
    display: none;
  }
  
  .table-row {
    display: block;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
  }
  
  .earnings-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-container {
    margin: 20px;
    max-height: calc(100vh - 40px);
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .request-details {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- Orange Header Styles --- */

.header-logo {
  height: 60px; /* Larger logo for better visibility and balance */
}

.profile-photo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  flex-shrink: 0;
  border: 2px solid white;
  margin-right: 25px;
  margin-right: 25px;
  flex-shrink: 0;
  flex-shrink: 0; /* Prevent image from shrinking */
  margin-right: 25px;
}

/* =========================================================
   Release Document Center - dark theme first pass
   Safe override layer: preserve existing structure/JS hooks
   ========================================================= */

.page-header h1,
.page-description,
.section-header h2,
.splits-section h3,
.split-title,
.split-subtitle,
.beneficiary-name,
.beneficiary-email,
.request-title,
.request-info,
.platform-header h3,
.stat-value,
.stat-label,
.monthly-breakdown h3,
.payment-methods h3,
.payment-type,
.payment-details,
.payout-history h3,
.modal-header h2,
.form-section h3,
.form-group label,
.form-help,
.add-payment,
.table-header,
.table-row,
.period-duration,
.revenue-info h3,
.revenue-info p {
  color: #ffffff !important;
}

.page-description,
.split-subtitle,
.beneficiary-email,
.period-duration,
.form-help,
.revenue-info p,
.stat-label,
.payment-details {
  color: #cfd3d8 !important;
}

.revenue-card,
.tab-navigation,
.splits-section,
.earnings-card,
.monthly-breakdown,
.payment-methods,
.payout-history,
.modal-container,
.payment-card,
.filter-select {
  background: #313338 !important;
  border-color: #4a4d54 !important;
  box-shadow: none !important;
}

.table-header {
  background: #1E1F22 !important;
  color: #ffffff !important;
}

.table-row {
  border-bottom-color: #4a4d54 !important;
}

.table-row:hover,
.action-btn:hover,
.tab-btn:hover:not(.active) {
  background: #3F4147 !important;
  color: #ffffff !important;
}

.splits-table,
.breakdown-table,
.history-table {
  border-color: #4a4d54 !important;
}

.request-card {
  background: #3a3320 !important;
  border-color: #6b5a2a !important;
}

.payment-card.active {
  background: #3F3326 !important;
  border-color: #F16623 !important;
}

.payment-card.add-method {
  background: #2b2d31 !important;
}

.tab-btn {
  color: #cfd3d8 !important;
}

.tab-btn.active {
  color: #ffffff !important;
}

.action-btn {
  color: #ffffff !important;
}

.status-badge {
  color: #ffffff !important;
}

.status-badge.active {
  background: #1f6f43 !important;
}

.status-badge.pending {
  background: #8b3a3a !important;
}

.status-badge.completed {
  background: #1f6f43 !important;
}

.status-badge.processing {
  background: #8a5a16 !important;
}

.filter-select,
.form-group input,
.form-group select,
.form-group textarea {
  background: #1E1F22 !important;
  color: #ffffff !important;
  border: 1px solid #4a4d54 !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9aa0a6 !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #F16623 !important;
  box-shadow: 0 0 0 3px rgba(241, 102, 35, 0.15) !important;
}

.modal-actions {
  border-top-color: #4a4d54 !important;
}

.btn-secondary {
  background: #4E5058 !important;
  color: #ffffff !important;
}

.btn-secondary:hover {
  background: #5b5d66 !important;
  color: #ffffff !important;
}

/* Hide split-specific CTA for now so it doesn't open the wrong workflow */
#request-split-btn {
  display: none !important;
}

/* Direct Missing / Required workflow polish */
.missing-document-card {
    border-left: 4px solid #f59e0b;
}

.request-subtitle {
    margin-top: 4px;
    color: #b7aea1;
    font-size: 0.85rem;
    font-weight: 600;
}

.request-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.upload-missing-document-btn {
    width: fit-content;
    white-space: nowrap;
}

#earnings-tab .request-info {
    line-height: 1.5;
}

/* Document Center: top cards replace redundant tabs */
.tab-navigation {
    display: none !important;
}

/* Show all sections stacked instead of hiding behind tabs */
#splits-tab,
#earnings-tab,
#payout-tab {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 28px;
    scroll-margin-top: 24px;
}

.document-center-jump-card {
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.document-center-jump-card:hover,
.document-center-jump-card:focus {
    transform: translateY(-2px);
    border-color: rgba(241, 102, 35, 0.55);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    outline: none;
}

.document-center-jump-card:focus-visible {
    outline: 2px solid #F16623;
    outline-offset: 3px;
}

/* Better spacing now that sections are stacked */
#earnings-tab,
#payout-tab {
    padding-top: 10px;
}

/* Card navigation should behave like tabs: one section visible at a time */
.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
}

/* Keep old tab row hidden */
.tab-navigation {
    display: none !important;
}

/* Card navigation active/hover polish */
.document-center-jump-card {
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.document-center-jump-card:hover,
.document-center-jump-card:focus,
.document-center-jump-card.active-document-card {
    transform: translateY(-2px);
    border-color: rgba(241, 102, 35, 0.65) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    outline: none;
}

.document-center-jump-card.active-document-card {
    background: rgba(241, 102, 35, 0.08) !important;
}

.document-center-jump-card:focus-visible {
    outline: 2px solid #F16623;
    outline-offset: 3px;
}

/* Final card-navigation behavior: cards replace tabs, one section visible */
.tab-navigation {
    display: none !important;
}

.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
}

.document-center-jump-card {
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.document-center-jump-card:hover,
.document-center-jump-card:focus,
.document-center-jump-card.active-document-card {
    transform: translateY(-2px);
    border-color: rgba(241, 102, 35, 0.65) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    outline: none;
}

.document-center-jump-card.active-document-card {
    background: rgba(241, 102, 35, 0.08) !important;
}

.document-center-jump-card:focus-visible {
    outline: 2px solid #F16623;
    outline-offset: 3px;
}

/* Final force: overview cards replace tab row; only selected section is visible */
.tab-navigation {
    display: none !important;
}

/* Higher specificity than the earlier ID-based display:block rule */
#splits-tab.tab-content,
#earnings-tab.tab-content,
#payout-tab.tab-content {
    display: none !important;
}

#splits-tab.tab-content.active,
#earnings-tab.tab-content.active,
#payout-tab.tab-content.active {
    display: block !important;
}

#splits-tab.document-section-hidden,
#earnings-tab.document-section-hidden,
#payout-tab.document-section-hidden {
    display: none !important;
}

.document-center-jump-card {
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.document-center-jump-card:hover,
.document-center-jump-card:focus,
.document-center-jump-card.active-document-card {
    transform: translateY(-2px);
    border-color: rgba(241, 102, 35, 0.65) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    outline: none;
}

.document-center-jump-card.active-document-card {
    background: rgba(241, 102, 35, 0.10) !important;
}

/* Document Center card label + table polish */
.document-library-grid {
    display: grid !important;
    grid-template-columns: 1.35fr 1fr 1.15fr 1.65fr 0.85fr 1.1fr !important;
    gap: 14px !important;
    align-items: center !important;
}

.document-library-row {
    min-height: 74px;
}

.document-release-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.document-release-cell strong {
    color: #f3f0e8;
    font-weight: 800;
}

.document-release-cell span,
.document-file-name,
.document-date-cell,
.document-muted {
    color: #b7aea1;
    font-size: 0.85rem;
}

.document-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(241, 102, 35, 0.12);
    border: 1px solid rgba(241, 102, 35, 0.32);
    color: #f3f0e8;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.document-file-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.document-file-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 800;
}

.document-file-link:hover {
    background: rgba(241, 102, 35, 0.22);
}

.document-notes-cell {
    color: #d8d2c8;
    line-height: 1.35;
    font-size: 0.9rem;
}

.document-action-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.document-library-empty {
    grid-template-columns: 1fr !important;
    padding: 24px !important;
}

.document-empty-state {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #f3f0e8;
}

.document-empty-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(241, 102, 35, 0.14);
    font-size: 24px;
}

.document-empty-state strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.document-empty-state p {
    margin: 0;
    color: #b7aea1;
}

@media (max-width: 980px) {
    .document-library-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .document-action-cell {
        margin-top: 8px;
    }
}

/* 3-card workflow layout for Release Document Center */
.revenue-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 900px) {
    .revenue-overview {
        grid-template-columns: 1fr !important;
    }
}

/* 2-card workflow layout for Release Document Center */
.revenue-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#payout-tab {
    display: none !important;
}

@media (max-width: 900px) {
    .revenue-overview {
        grid-template-columns: 1fr !important;
    }
}

/* Final 2-card workflow layout for Release Document Center */
.revenue-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#payout-tab {
    display: none !important;
}

@media (max-width: 900px) {
    .revenue-overview {
        grid-template-columns: 1fr !important;
    }
}

/* Final cleanup: remove leftover non-clickable document center placeholder/card */
#payout-tab,
#payout-tab.tab-content,
.tab-content#payout-tab,
.history-table {
    display: none !important;
}

/* Keep only Document Library / Needs Action card workflow */
.revenue-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* Hard stop: Release Document Center should only show 2 overview cards */
.revenue-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.revenue-overview .revenue-card:nth-child(n+3) {
    display: none !important;
}

#payout-tab,
#payout-tab.tab-content,
.history-table {
    display: none !important;
}

/* Document Library bundled-by-release view */
.document-bundle-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.document-bundle-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    overflow: hidden;
}

.document-bundle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.045);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.document-bundle-list {
    padding: 0;
}

.document-bundle-columns,
.document-bundle-item {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.8fr 0.8fr 1fr;
    gap: 14px;
    align-items: center;
}

.document-bundle-columns {
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.22);
    color: #f3f0e8;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.document-bundle-item {
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.document-bundle-item:first-of-type {
    border-top: none;
}

.document-bundle-type {
    min-width: 0;
}

.document-file-cell {
    min-width: 0;
}

.document-file-name {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-action-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.document-library-empty {
    padding: 24px !important;
}

@media (max-width: 1100px) {
    .document-bundle-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .document-bundle-columns {
        display: none;
    }

    .document-bundle-item {
        grid-template-columns: 1fr;
        gap: 9px;
    }
}

/* Document Library: release-first clickable view */
.document-release-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.document-release-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    overflow: hidden;
}

.document-release-card.is-open {
    border-color: rgba(241, 102, 35, 0.35);
}

.document-release-summary {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    transition: background 0.18s ease;
}

.document-release-summary:hover,
.document-release-summary:focus {
    background: rgba(241, 102, 35, 0.08);
    outline: none;
}

.document-release-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.document-release-main strong {
    color: #f3f0e8;
    font-weight: 900;
}

.document-release-main span,
.document-muted,
.document-file-name,
.document-date-cell {
    color: #b7aea1;
    font-size: 0.85rem;
}

.document-release-types {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.document-release-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.document-release-caret {
    color: #f3f0e8;
    font-size: 18px;
    font-weight: 900;
    min-width: 18px;
    text-align: center;
}

.document-release-details {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.document-release-detail-header,
.document-release-detail-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.8fr 0.8fr 1fr;
    gap: 14px;
    align-items: center;
}

.document-release-detail-header {
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.22);
    color: #f3f0e8;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.document-release-detail-row {
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.document-release-detail-row:first-of-type {
    border-top: none;
}

@media (max-width: 1100px) {
    .document-release-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .document-release-detail-header {
        display: none;
    }

    .document-release-detail-row {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .document-release-actions {
        justify-content: space-between;
    }
}

/* Document Center: download-only file action */
.document-download-link {
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid rgba(16, 185, 129, 0.32);
}

.document-download-link:hover {
    background: rgba(16, 185, 129, 0.28) !important;
}
