/**
 * Copyright 2015 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

 html, body {
    font-family: 'Roboto', 'Helvetica', sans-serif;
  }
  .papeles-avatar {
    width: 48px;
    height: 48px;
    border-radius: 24px;
  }
  .papeles-layout .mdl-layout__header .mdl-layout__drawer-button {
    color: rgba(0, 0, 0, 0.54);
  }
  .mdl-layout__drawer .avatar {
    margin-bottom: 16px;
  }
  .papeles-drawer {
    border: none;
  }
  /* iOS Safari specific workaround */
  .papeles-drawer .mdl-menu__container {
    z-index: -1;
  }
  .papeles-drawer .papeles-navigation {
    z-index: -2;
  }
  /* END iOS Safari specific workaround */
  .papeles-drawer .mdl-menu .mdl-menu__item {
    display: flex;
    align-items: center;
  }
  .papeles-drawer-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    height: 151px;
  }
  .papeles-avatar-dropdown {
    display: flex;
    position: relative;
    flex-direction: row;
    align-items: center;
    width: 100%;
  }
  
  .papeles-navigation {
    flex-grow: 1;
  }
  .papeles-layout .papeles-navigation .mdl-navigation__link {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    color: rgba(255, 255, 255, 0.56);
    font-weight: 500;
  }
  .papeles-layout .papeles-navigation .mdl-navigation__link:hover {
    background-color: #00BCD4;
    color: #37474F;
  }
  .papeles-navigation .mdl-navigation__link .material-icons {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.56);
    margin-right: 32px;
  }
  
  .papeles-content {
    max-width: 1080px;
  }
  
  /* Main content area positioning */
  .mdl-layout__content {
    position: relative;
  }
  
  .papeles-charts {
    align-items: center;
  }
  .papeles-chart:nth-child(1) {
    color: #ACEC00;
  }
  .papeles-chart:nth-child(2) {
    color: #00BBD6;
  }
  .papeles-chart:nth-child(3) {
    color: #BA65C9;
  }
  .papeles-chart:nth-child(4) {
    color: #EF3C79;
  }
  .papeles-graphs {
    padding: 16px 32px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  /* TODO: Find a proper solution to have the graphs
   * not float around outside their container in IE10/11.
   * Using a browserhacks.com solution for now.
   */
  _:-ms-input-placeholder, :root .papeles-graphs {
    min-height: 664px;
  }
  _:-ms-input-placeholder, :root .papeles-graph {
    max-height: 300px;
  }
  /* TODO end */
  .papeles-graph:nth-child(1) {
    color: #00b9d8;
  }
  .papeles-graph:nth-child(2) {
    color: #d9006e;
  }
  
  .papeles-cards {
    align-items: flex-start;
    align-content: flex-start;
  }
  .papeles-cards .papeles-separator {
    height: 32px;
  }
  .papeles-cards .mdl-card__title.mdl-card__title {
    color: white;
    font-size: 24px;
    font-weight: 400;
  }
  .papeles-cards ul {
    padding: 0;
  }
  .papeles-cards h3 {
    font-size: 1em;
  }
  .papeles-updates .mdl-card__title {
    min-height: 200px;
    background-image: url('images/dog.png');
    background-position: 90% 100%;
    background-repeat: no-repeat;
  }
  .papeles-cards .mdl-card__actions a {
    color: #00BCD4;
    text-decoration: none;
  }
  
  .papeles-options h3 {
    margin: 0;
  }
  .papeles-options .mdl-checkbox__box-outline {
    border-color: rgba(255, 255, 255, 0.89);
  }
  .papeles-options ul {
    margin: 0;
    list-style-type: none;
  }
  .papeles-options li {
    margin: 4px 0;
  }
  .papeles-options .material-icons {
    color: rgba(255, 255, 255, 0.89);
  }
  .papeles-options .mdl-card__actions {
    height: 64px;
    display: flex;
    box-sizing: border-box;
    align-items: center;
  }
  
  /* File Cards Styles */
  .papeles-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 16px;
    max-width: 1200px;
  }
  
  .papeles-file-card {
    width: 100%;
    height: 160px; /* More compact height for cards */
    background: white;
    border-radius: 2px;
  }
  
  /* Card layout container - flex layout with space-between */
  .papeles-card-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button bar to bottom */
    width: 100%;
    height: 100%; /* Fill the card completely */
    box-sizing: border-box;
  }
  
  .papeles-file-header {
    padding: 12px;
    background: #f5f5f5;
    display: flex;
    align-items: flex-start;
    flex: 1; /* Take up remaining space, pushing button bar to bottom */
  }
  
  
  .papeles-file-icon {
    margin-right: 12px;
    margin-top: 2px; /* Smaller top margin */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
    flex-shrink: 0; /* Prevent icon from shrinking */
  }
  
  .papeles-file-icon .material-icons {
    font-size: 20px;
    color: #666;
  }
  
  .papeles-file-info {
    flex: 1;
    min-width: 0;
  }
  
  .papeles-file-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 2px 0;
    color: rgba(0,0,0,0.87);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  .papeles-file-date {
    font-size: 12px;
    color: rgba(0,0,0,0.54);
    margin: 0;
    line-height: 1.2;
  }
  
  .papeles-file-actions {
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    background: white;
    border-top: 1px solid #e0e0e0;
  }
  
  /* For folder pages with single return button - align to the right (deprecated - keeping for compatibility) */
  .papeles-file-actions.single-button {
    justify-content: flex-end;
    width: 100%;
    box-sizing: border-box;
  }
  
  .papeles-file-actions .mdl-button {
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 4px;
  }
  
  .papeles-file-actions .material-icons {
    font-size: 18px;
  }
  
  /* File type specific icon colors */
  .papeles-file-card[data-type="PDF"] .papeles-file-icon {
    background: #f44336;
  }
  
  .papeles-file-card[data-type="PDF"] .papeles-file-icon .material-icons {
    color: white;
  }
  
  .papeles-file-card[data-type="Image"] .papeles-file-icon {
    background: #4caf50;
  }
  
  .papeles-file-card[data-type="Image"] .papeles-file-icon .material-icons {
    color: white;
  }
  
  .papeles-file-card[data-type="Document"] .papeles-file-icon {
    background: #2196f3;
  }
  
  .papeles-file-card[data-type="Document"] .papeles-file-icon .material-icons {
    color: white;
  }
  
  .papeles-file-card[data-type="Spreadsheet"] .papeles-file-icon {
    background: #4caf50;
  }
  
  .papeles-file-card[data-type="Spreadsheet"] .papeles-file-icon .material-icons {
    color: white;
  }
  
  .papeles-file-card[data-type="Presentation"] .papeles-file-icon {
    background: #ff9800;
  }
  
  .papeles-file-card[data-type="Presentation"] .papeles-file-icon .material-icons {
    color: white;
  }
  
  /* Button interactions */
  .papeles-action-btn:hover {
    background-color: rgba(0, 188, 212, 0.1);
  }
  
  .papeles-action-btn[data-action="purchase"]:hover {
    background-color: rgba(76, 175, 80, 0.1);
  }
  
  .papeles-action-btn[data-action="sale"]:hover {
    background-color: rgba(33, 150, 243, 0.1);
  }
  
  .papeles-action-btn[data-action="accountant"]:hover {
    background-color: rgba(255, 152, 0, 0.1);
  }
  
  .papeles-action-btn[data-action="docs"]:hover {
    background-color: rgba(158, 158, 158, 0.1);
  }
  
  .papeles-action-btn[data-action="trash"]:hover {
    background-color: rgba(244, 67, 54, 0.1);
  }
  
  /* Empty state styles */
  .papeles-empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 64px 16px;
    min-height: 400px;
  }
  
  .papeles-empty-card {
    text-align: center;
    max-width: 400px;
    padding: 32px;
    background: white;
  }
  
  .papeles-empty-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: #e0e0e0;
    border-radius: 40px;
    margin: 0 auto 16px;
  }
  
  .papeles-empty-icon .material-icons {
    font-size: 40px;
    color: #999;
  }
  
  .papeles-empty-card h3 {
    margin: 0 0 8px 0;
    color: rgba(0,0,0,0.87);
    font-weight: 500;
  }
  
  .papeles-empty-card p {
    margin: 0;
    color: rgba(0,0,0,0.54);
    line-height: 1.4;
  }
  
  /* Card hover effects */
  .papeles-file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.2s ease-in-out;
  }
  
  .papeles-file-card {
    transition: all 0.2s ease-in-out;
  }
  
  
  /* Loading indicator styles */
  .papeles-loading-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none; /* Don't block interactions when hidden */
  }
  
  .papeles-loading-card {
    text-align: center;
    max-width: 400px;
    padding: 32px;
    background: white;
  }
  
  .papeles-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px;
  }
  
  .papeles-loading-card h3 {
    margin: 0 0 8px 0;
    color: rgba(0,0,0,0.87);
    font-weight: 500;
    font-size: 20px;
  }
  
  .papeles-loading-card p {
    margin: 0;
    color: rgba(0,0,0,0.54);
    line-height: 1.4;
  }
  
  /* HTMX loading states */
  .htmx-indicator {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  
  .htmx-request .htmx-indicator {
    opacity: 1;
    pointer-events: auto; /* Allow interaction with loading indicator when active */
  }
  
  .htmx-request #loading-indicator {
    display: flex;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .papeles-file-grid {
      grid-template-columns: 1fr;
      padding: 8px;
      gap: 8px;
    }
    
    .papeles-file-card {
      height: 140px; /* More compact height for mobile */
    }
    
    .papeles-file-header {
      padding: 12px;
      flex: 1; /* Take remaining space on mobile too */
    }
    
    .papeles-file-icon {
      width: 40px;
      height: 40px;
      margin-right: 12px;
    }
    
    .papeles-file-icon .material-icons {
      font-size: 20px;
    }
    
    .papeles-file-name {
      font-size: 14px;
    }
    
    .papeles-file-date {
      font-size: 12px;
    }
    
    .papeles-empty-state {
      padding: 32px 16px;
      min-height: 300px;
    }
    
    .papeles-empty-card {
      padding: 24px;
    }
    
    .papeles-empty-icon {
      width: 60px;
      height: 60px;
      border-radius: 30px;
    }
    
    .papeles-empty-icon .material-icons {
      font-size: 30px;
    }
  }
  
  /* Return button styling for folder pages */
  .papeles-return-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1976d2 !important;
    color: white !important;
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
  }
  
  .papeles-return-btn:hover {
    background-color: #1565c0 !important;
  }
  
  .papeles-return-btn .material-icons {
    font-size: 18px;
  }
  
  .papeles-empty-actions {
    margin-top: 16px;
    text-align: center;
  }
  
  /* BillToBox Status Styles */
  .papeles-billtobox-status {
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 4px;
    border-left: 3px solid #00bcd4;
    font-size: 12px;
  }
  
  .papeles-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0;
    line-height: 1.3;
  }
  
  .papeles-status-label {
    color: rgba(0,0,0,0.54);
    font-weight: 500;
    margin-right: 8px;
    min-width: 65px;
    flex-shrink: 0;
  }
  
  .papeles-status-value {
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Status value colors - Case insensitive selectors */
  .papeles-status-pending,
  .papeles-status-unpaid {
    background: #fff3e0;
    color: #f57c00;
  }
  
  .papeles-status-approved,
  .papeles-status-paid {
    background: #e8f5e8;
    color: #2e7d32;
  }
  
  .papeles-status-rejected,
  .papeles-status-cancelled {
    background: #ffebee;
    color: #c62828;
  }
  
  .papeles-status-draft {
    background: #f3e5f5;
    color: #7b1fa2;
  }
  
  .papeles-status-sent {
    background: #e3f2fd;
    color: #1565c0;
  }
  
  .papeles-status-processing {
    background: #e8f5e9;
    color: #43a047;
  }
  
  .papeles-status-overdue {
    background: #fbe9e7;
    color: #d84315;
  }
  
  /* Accountant status colors */
  .papeles-accountant-review,
  .papeles-accountant-sent {
    background: #fff8e1;
    color: #f9a825;
  }
  
  .papeles-accountant-approved {
    background: #e8f5e8;
    color: #2e7d32;
  }
  
  .papeles-accountant-rejected {
    background: #ffebee;
    color: #c62828;
  }
  
  .papeles-accountant-processing,
  .papeles-accountant-sent_to_accountant {
    background: #e3f2fd;
    color: #1565c0;
  }
  
  /* BillToBox specific accounting statuses (cleaned, without status. prefix) */
  .papeles-accountant-forwarded {
    background: #e3f2fd;
    color: #1565c0;
  }
  
  .papeles-accountant-pending {
    background: #fff8e1;
    color: #f9a825;
  }
  
  .papeles-accountant-completed {
    background: #e8f5e8;
    color: #2e7d32;
  }
  
  /* Empty status placeholder styling */
  .papeles-status-empty {
    background: transparent !important;
    color: rgba(0,0,0,0.26) !important;
    font-weight: 400 !important;
    font-size: 11px !important;
    padding: 2px 0 !important;
  }
  
  .papeles-accountant-draft {
    background: #f3e5f5;
    color: #7b1fa2;
  }
  
  /* Error display */
  .papeles-billtobox-error {
    margin-top: 8px;
    padding: 6px 8px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 4px;
    border-left: 3px solid #f44336;
  }
  
  /* Debtor Information Styles */
  .papeles-debtor-info {
    margin-top: 16px;
    padding: 16px;
    background: rgba(76, 175, 80, 0.08);
    border-radius: 4px;
    border-left: 3px solid #4caf50;
  }
  
  .papeles-section-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .papeles-debtor-details .papeles-status-row {
    margin: 6px 0;
  }
  
  .papeles-debtor-details .papeles-status-label {
    min-width: 120px;
    font-size: 13px;
  }
  
  .papeles-debtor-details .papeles-status-value {
    background: transparent;
    color: #333;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    padding: 0;
    border-radius: 0;
    font-size: 13px;
  }
  
  /* Authentication Prompt Styles */
  .papeles-auth-prompt {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 4px;
    border-left: 3px solid #ff9800;
    align-items: flex-start;
  }
  
  .papeles-auth-prompt .papeles-auth-notice {
    margin: 0;
    color: #f57c00;
    font-weight: 500;
  }
  
  .papeles-auth-prompt .papeles-auth-notice .material-icons {
    color: #ff9800;
  }
  
  .papeles-auth-prompt .papeles-action-button {
    margin-top: 4px;
  }
  
  .papeles-error-text {
    font-size: 11px;
    color: #c62828;
    font-style: italic;
  }
  
  /* Feedback message styles */
  .papeles-feedback {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 32px;
  }
  
  .papeles-feedback-card {
    background: white;
    padding: 32px;
    border-radius: 2px;
    text-align: center;
    max-width: 500px;
    width: 100%;
  }
  
  .papeles-feedback-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
  }
  
  .papeles-feedback-icon .material-icons {
    font-size: 64px;
  }
  
  .papeles-success .papeles-feedback-icon .material-icons {
    color: #4CAF50; /* Green color for success */
  }
  
  .papeles-error .papeles-feedback-icon .material-icons {
    color: #F44336; /* Red color for error */
  }
  
  .papeles-feedback h3 {
    margin: 16px 0;
    font-size: 24px;
    font-weight: 500;
  }
  
  .papeles-feedback p {
    margin: 16px 0 24px 0;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.5;
  }
  
  .papeles-success h3 {
    color: #4CAF50;
  }
  
  .papeles-error h3 {
    color: #F44336;
  }
  
  /* Document View Styles */
  .papeles-document-view {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px); /* Full height minus header */
    max-width: 1200px;
    margin: 0 auto;
    background: white;
  }
  
  .papeles-document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
  }
  
  .papeles-document-info {
    display: flex;
    align-items: center;
    flex: 1;
  }
  
  .papeles-document-icon {
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #e0e0e0;
    border-radius: 28px;
    flex-shrink: 0;
  }
  
  .papeles-document-icon .material-icons {
    font-size: 28px;
    color: #666;
  }
  
  .papeles-document-details {
    flex: 1;
    min-width: 0;
  }
  
  .papeles-document-title {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 4px 0;
    color: rgba(0,0,0,0.87);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .papeles-document-meta {
    font-size: 14px;
    color: rgba(0,0,0,0.54);
    margin: 0;
    line-height: 1.2;
  }
  
  .papeles-back-btn {
    background-color: #1976d2 !important;
    color: white !important;
  }
  
  .papeles-back-btn:hover {
    background-color: #1565c0 !important;
  }
  
  .papeles-document-controls {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
    align-items: center;
  }
  
  .papeles-action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px !important;
    font-size: 14px !important;
    height: auto !important;
    min-width: auto !important;
  }
  
  .papeles-purchase-btn {
    background-color: #4caf50 !important;
    color: white !important;
  }
  
  .papeles-purchase-btn:hover {
    background-color: #43a047 !important;
  }
  
  .papeles-sale-btn {
    background-color: #2196f3 !important;
    color: white !important;
  }
  
  .papeles-sale-btn:hover {
    background-color: #1976d2 !important;
  }
  
  .papeles-auth-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgba(0,0,0,0.54);
    font-size: 14px;
    font-style: italic;
  }
  
  .papeles-auth-notice .material-icons {
    font-size: 18px;
  }
  
  .papeles-document-viewer {
    flex: 1;
    padding: 0;
    background: #f9f9f9;
    overflow: hidden;
  }
  
  .papeles-document-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
  }
  
  /* File type specific document icon colors */
  .papeles-document-view .papeles-document-icon {
    background: #e0e0e0;
  }
  
  .papeles-document-view[data-file-type="PDF"] .papeles-document-icon {
    background: #f44336;
  }
  
  .papeles-document-view[data-file-type="PDF"] .papeles-document-icon .material-icons {
    color: white;
  }
  
  .papeles-document-view[data-file-type="Image"] .papeles-document-icon {
    background: #4caf50;
  }
  
  .papeles-document-view[data-file-type="Image"] .papeles-document-icon .material-icons {
    color: white;
  }
  
  .papeles-document-view[data-file-type="Document"] .papeles-document-icon {
    background: #2196f3;
  }
  
  .papeles-document-view[data-file-type="Document"] .papeles-document-icon .material-icons {
    color: white;
  }
  
  /* BillToBox Status Display in Document View */
  .papeles-billtobox-status-display {
    padding: 16px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 8px;
    border-left: 4px solid #00bcd4;
    margin-right: 16px;
    flex: 1;
  }
  
  .papeles-status-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .papeles-billtobox-status-display .papeles-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
    line-height: 1.4;
  }
  
  .papeles-billtobox-status-display .papeles-status-label {
    color: rgba(0,0,0,0.6);
    font-weight: 500;
    margin-right: 16px;
    min-width: 120px;
    flex-shrink: 0;
    font-size: 14px;
  }
  
  .papeles-billtobox-status-display .papeles-status-value {
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Section Header with Action Button */
  .papeles-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  
  .papeles-change-debtor-btn {
    background-color: #ff5722 !important;
    color: white !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-width: auto !important;
    height: auto !important;
    border-radius: 4px !important;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .papeles-change-debtor-btn:hover {
    background-color: #e64a19 !important;
  }
  
  .papeles-change-debtor-btn .material-icons {
    font-size: 16px;
  }
  
  /* Editable invoice number styling */
  .papeles-editable-invoice-number {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    position: relative;
  }
  
  .papeles-editable-invoice-number:hover {
    background-color: rgba(33, 150, 243, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .papeles-editable-invoice-number .papeles-edit-icon {
    font-size: 16px;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    color: #2196F3;
  }
  
  .papeles-editable-invoice-number:hover .papeles-edit-icon {
    opacity: 1;
  }
  
  .papeles-invoice-number-input {
    border: 2px solid #2196F3 !important;
    padding: 4px 8px !important;
    margin: 0 !important;
    font-size: inherit !important;
    font-family: inherit !important;
    background: white !important;
    border-radius: 4px !important;
    width: auto !important;
    min-width: 120px !important;
    outline: none !important;
  }
  
  .papeles-save-invoice-btn,
  .papeles-cancel-invoice-btn {
    min-width: auto !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    margin-left: 4px !important;
  }
  
  .papeles-save-invoice-btn .material-icons,
  .papeles-cancel-invoice-btn .material-icons {
    font-size: 18px !important;
  }
  
  /* Creditor Information Styles */
  .papeles-creditor-info {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 152, 0, 0.08);
    border-radius: 4px;
    border-left: 3px solid #ff9800;
  }
  
  .papeles-creditor-details .papeles-status-row {
    margin: 6px 0;
  }
  
  .papeles-creditor-details .papeles-status-label {
    min-width: 120px;
    font-size: 13px;
  }
  
  .papeles-creditor-details .papeles-status-value {
    background: transparent;
    color: #333;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    padding: 0;
    border-radius: 0;
    font-size: 13px;
  }
