body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  background-color: #f4f7f9;
  color: #333;
}

.container {
  padding: 20px 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header - LINE Green Theme */
.app-header {
  background: linear-gradient(135deg, #00C300 0%, #00B300 100%);
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 195, 0, 0.2);
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-title {
  font-size: 22px;
  margin: 0;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}



/* Navigation menu styling */
.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-menu-content {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-btn {
  color: white;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  white-space: nowrap;
}

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.nav-btn.active {
  background-color: white;
  color: #00C300;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile menu toggle button (hamburger) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 15px;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}



/* Responsive design for header */
@media (max-width: 768px) {
  .app-header {
    padding: 10px 15px;
  }
  
  .app-title {
    font-size: 18px;
  }

  .header-right {
    gap: 10px;
  }



  .nav-menu-content {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 180px;
  }

  .nav-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    color: #333;
    background: transparent;
  }
  
  .nav-btn:hover {
    background-color: #f5f5f5;
  }
  
  .nav-btn.active {
    background-color: #00C300;
    color: white;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
  }
}

.nav-btn.active {
  background-color: #00C300;
  color: white;
}

.logout-btn {
  background-color: #fff;
  color: #00C300;
  padding: 8px 15px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #00C300;
  transition: all 0.3s;
}

.logout-btn:hover {
  background-color: #f1f1f1;
}

.logout-btn.active {
  background-color: #00C300;
  color: white;
  border: 1px solid #00C300;
}

/* Controls */
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-form {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.search-form input, .search-form select, .search-form button {
  margin: 0;
  flex: 0 0 auto; /* Don't grow or shrink by default */
}

/* Make date inputs fixed width */
.search-form input[type="date"] {
  width: 140px;
  flex: 0 0 auto;
}

/* Make text inputs flexible but with minimum width */
.search-form input[type="text"] {
  min-width: 120px;
  flex: 1; /* Allow to grow */
}

/* Keep buttons with appropriate size */
.search-form .btn {
  flex: 0 0 auto;
}

/* On mobile, allow wrapping */
@media (max-width: 768px) {
  .search-form {
    flex-wrap: wrap;
  }
  
  .search-form input[type="date"] {
    width: calc(50% - 4px);
  }
}

/* Fixed search controls at the top of the screen for mobile */
.floating-controls {
  position: sticky;
  top: 0;
  background-color: white;
  padding: 15px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  width: 100%;
  margin: 0 0 20px 0;
}

.floating-controls .search-form {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}

/* On mobile, allow wrapping */
@media (max-width: 768px) {
  .floating-controls .search-form {
    flex-wrap: wrap;
  }
}

/* Global form styling - Unified with card-style theme */
input[type="text"],
input[type="date"],
select,
button,
.btn {
  padding: 8px 12px;
  border: none;
  border-radius: 0; /* Square corners */
  font-size: 14px;
  box-sizing: border-box;
  min-height: 32px; /* Consistent height for all form elements */
  /* Apply neumorphism effect */
  box-shadow:
    2px 2px 4px #d0d0d0,
    -2px -2px 4px #f0f0f0;
  background: #e0e0e0;
  color: #333;
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  outline: none;
  border-color: #00C300; /* LINE brand green */
  box-shadow:
    inset 0 0 0 2px #00C300,
    2px 2px 4px #d0d0d0,
    -2px -2px 4px #f0f0f0;
}

button,
.btn {
  cursor: pointer;
  font-weight: 600;
}


/* Remove calendar icons from date inputs */
input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
}

/* General button styles - LINE Green Theme */
.btn {
  background-color: #00C300;
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #00C300;
  border-radius: 0px; /* Square corners */
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
}

.btn:hover {
  background-color: #00B300;
  border-color: #00B300;
  color: white; /* White text on hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 195, 0, 0.3);
}

.btn:active {
  transform: translateY(0);
}

/* Unified Button Variant - Based on month-btn design */
.btn-primary,
.btn-secondary,
.btn-warning,
.btn-info,
.btn-danger {
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  background-color: white;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0; /* Square corners as requested */
  min-width: 90px;
  text-align: center;
  text-decoration: none; /* For anchor tags */
  display: inline-block;
  outline: none;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-danger:hover {
  border-color: #00C300;
  color: #00C300;
  transform: translateY(-1px);
  border-radius: 0; /* Square corners as requested */
}

/* Specific color variants */
.btn-primary {
  border-color: #3498db;
  color: #3498db;
  background-color: white;
}

.btn-primary:hover {
  background-color: #3498db;
  color: white;
}

.btn-secondary {
  border-color: #6c757d;
  color: #6c757d;
  background-color: white;
}

.btn-secondary:hover {
  background-color: #6c757d;
  color: white;
}

.btn-warning {
  border-color: #f39c12;
  color: #f39c12;
  background-color: white;
}

.btn-warning:hover {
  background-color: #f39c12;
  color: white;
}

.btn-info {
  border-color: #3498db;
  color: #3498db;
  background-color: white;
}

.btn-info:hover {
  background-color: #3498db;
  color: white;
}

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

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

/* Table action button styles - Unified with card theme */
.edit-btn,
.delete-btn,
.rollback-btn,
.trash-btn,
.approve-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0; /* Square corners as requested */
  transition: all 0.2s ease;
  border: 2px solid #e0e0e0;
  color: #666;
  background-color: white;
}

.edit-btn:hover,
.delete-btn:hover,
.rollback-btn:hover,
.trash-btn:hover,
.approve-btn:hover {
  border-color: #00C300;
  color: #00C300;
  transform: translateY(-1px);
  border-radius: 0; /* Square corners as requested */
}

.delete-btn {
  padding: 6px 12px;
  border: 2px solid #e74c3c;
  background-color: white;
  color: #e74c3c;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0; /* Square corners as requested */
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delete-btn:hover {
  background-color: #e74c3c;
  color: white;
  transform: translateY(-1px);
  border-color: #e74c3c;
  border-radius: 0; /* Square corners as requested */
}

.rollback-btn {
  padding: 6px 12px;
  border: 2px solid #f39c12;
  background-color: white;
  color: #f39c12;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0; /* Square corners as requested */
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rollback-btn:hover {
  background-color: #f39c12;
  color: white;
  transform: translateY(-1px);
  border-color: #f39c12;
  border-radius: 0; /* Square corners as requested */
}

.trash-btn {
  padding: 6px 12px;
  border: 2px solid #e74c3c;
  background-color: white;
  color: #e74c3c;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0; /* Square corners as requested */
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trash-btn:hover {
  background-color: #e74c3c;
  color: white;
  transform: translateY(-1px);
  border-color: #e74c3c;
  border-radius: 0; /* Square corners as requested */
}

.approve-btn {
  padding: 6px 12px;
  border: 2px solid #00C300;
  background-color: white;
  color: #00C300;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0; /* Square corners as requested */
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.approve-btn:hover {
  background-color: #00C300;
  color: white;
  transform: translateY(-1px);
  border-color: #00C300;
  border-radius: 0; /* Square corners as requested */
}

/* Detail page and other button variants */
.btn-primary {
  background-color: #3498db;
  border: 1px solid #3498db;
  color: white;
  border-radius: 0; /* Square corners as requested */
}
.btn-primary:hover {
  background-color: #2980b9;
}

.btn-danger {
  background-color: #e74c3c;
  border: 1px solid #e74c3c;
  color: white;
  border-radius: 0; /* Square corners as requested */
}
.btn-danger:hover {
  background-color: #c0392b;
}


/* Detail page specific styles */
.detail-container {
  display: flex;
  gap: 30px;
}
.detail-info {
  flex: 1;
}
.detail-image {
  flex: 1;
  max-width: 50%;
}
.detail-image img {
  width: 100%;
  border: 1px solid #ddd;
}
.info-table {
  width: 100%;
}
.info-table td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.info-table td:first-child {
  font-weight: bold;
  width: 150px;
}
.edit-form {
  padding: 20px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
.form-group textarea {
  height: 80px;
  resize: vertical;
}
.item-entry {
  border: 1px solid #eee;
  padding: 10px;
  margin-bottom: 10px;
}
.item-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

/* Login page specific styles */
.login-container {
  text-align: center;
  margin-top: 50px;
}

/* Member management page specific styles */
.member-management-container {
  padding: 20px;
}

/* Grid layout for main sections */
.management-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.management-card {
  background: #f0f0f0;
  border: none;
  border-radius: 0; /* Square corners */
  padding: 16px;
  /* Neumorphism effect - soft inner shadows */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.management-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C300, #00B300);
}

.management-card-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d9d9d9;
  font-weight: 600;
  color: #333;
}

.management-card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual item card styles for lists (like invitation codes) - Similar to receipt panel */
.invitation-code-card {
  background: #f0f0f0;
  border: none;
  border-radius: 0; /* Square corners */
  padding: 16px;
  margin-bottom: 16px;
  /* Neumorphism effect - soft inner shadows */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.invitation-code-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C300, #00B300);
}

.invitation-code-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d9d9d9;
}

.invitation-codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.invitation-code-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
}

.invitation-code-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.status-active {
  color: #28a745;
  font-weight: bold;
}

.status-expired {
  color: #dc3545;
  font-weight: bold;
}

.status-used {
  color: #6c757d;
  font-weight: bold;
}
.section {
  background: #f0f0f0;
  border: none;
  border-radius: 0; /* Square corners */
  padding: 16px;
  margin-bottom: 16px;
  /* Neumorphism effect - soft inner shadows */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C300, #00B300);
}
.section-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #333;
}
.table-container {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
th {
  background-color: #f8f9fa;
  font-weight: bold;
}
.action-buttons {
  display: flex;
  gap: 5px;
}

.invite-code-section {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  align-items: center;
}
.invite-code-input {
  padding: 8px;
  border: 1px solid #ccc;
  width: 200px;
}
.role-select {
  padding: 8px;
  border: 1px solid #ccc;
}
.expiration-select {
  padding: 8px;
  border: 1px solid #ccc;
}
.invite-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.profile-edit-section {
  max-width: 600px;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
.status-active {
  color: #28a745;
  font-weight: bold;
}
.status-expired {
  color: #dc3545;
  font-weight: bold;
}
.status-used {
  color: #6c757d;
  font-weight: bold;
}

/* Header styles that were originally in header.ejs */
.actions-cell {
  display: flex;
  gap: 5px;
  align-items: center;
}

/* Specific styling for header navigation buttons */
.logout-btn {
  padding: 6px 12px;
  border: 1px solid white;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 0;
}

/* View toggle container */
.view-toggle-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.view-toggle {
  display: flex;
  border: 1px solid #ddd;
  overflow: hidden;
  width: fit-content;
}

.view-toggle .toggle-btn {
  padding: 8px 16px;
  border: none;
  border-right: 1px solid #ddd;
  background-color: white;
  color: #555;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 80px;
}

.view-toggle .toggle-btn:last-child {
  border-right: none;
}

.view-toggle .toggle-btn.active {
  background-color: #3498db;
  color: white;
  font-weight: bold;
}

.view-toggle .toggle-btn:hover:not(.active) {
  background-color: #ecf0f1;
}


/* Toggle button styles for status switching */
.status-toggle {
  display: flex;
  border: 1px solid #ddd;
  overflow: hidden;
  margin-bottom: 20px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Toggle button styles for mode switching */
.mode-toggle {
  display: inline-flex;
  border: 1px solid #3498db;
  overflow: hidden;
  margin-bottom: 20px;
  width: fit-content;
  margin-top: 20px;
}

div.status-toggle {
  border: 1px solid #27ae60;
  overflow: hidden; /* Ensures squared corners on the container */
}

div.status-toggle .toggle-btn {
  padding: 8px 16px;
  border: none; /* Remove individual borders */
  border-right: 1px solid #27ae60; /* Add separator line between buttons */
  background-color: white; /* White background */
  color: #27ae60; /* Green text */
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

/* Remove right border from the last button to avoid double border */
div.status-toggle .toggle-btn:last-child {
  border-right: none;
}

div.status-toggle .toggle-btn.active {
  background-color: #27ae60; /* LINE green background */
  color: white; /* White text */
  font-weight: bold;
}

div.status-toggle .toggle-btn:hover:not(.active) {
  background-color: #e9f7ef; /* Light green background on hover */
}

/* Panel visibility */
.panel {
  display: none;
}

.panel.active {
  display: block;
}

/* Status-specific row highlighting - テーブル構造用 */
.receipts-table tbody tr.needs_review {
  background-color: #fff3cd; /* Light yellow for needs_review */
}

.receipts-table tbody tr.completed {
  background-color: #d4edda; /* Light green for completed */
}

.receipts-table tbody tr.trash {
  background-color: #f8f9fa; /* Light gray for trash */
  color: #6c757d;
}

/* 古いflexboxベースのレイアウトは削除済み - テーブルレイアウトを使用 */

/* テーブルのレスポンシブ対応 - 写真番号列削除後の9列対応 */
@media (max-width: 1400px) {
  .receipts-table th:nth-child(9),
  .receipts-table td:nth-child(9) {
    width: 220px;
    min-width: 220px;
  }
  
  .receipts-table .actions-cell .btn {
    padding: 5px 8px;
    font-size: 12px;
  }
}

@media (max-width: 1200px) {
  .receipts-table th:nth-child(9),
  .receipts-table td:nth-child(9) {
    width: 200px;
    min-width: 200px;
  }
}

@media (max-width: 992px) {
  .receipts-table th:nth-child(6),
  .receipts-table td:nth-child(6) { /* 支払い方法を非表示 */
    display: none;
  }
}

@media (max-width: 768px) {
  .receipts-table {
    font-size: 12px;
  }
  
  .receipts-table th,
  .receipts-table td {
    padding: 6px 4px;
  }
  
  .receipts-table th:nth-child(8),
  .receipts-table td:nth-child(8) { /* 出費者を非表示 */
    display: none;
  }
  
  .receipts-table .actions-cell {
    flex-direction: column;
    gap: 2px;
  }
  
  .receipts-table .actions-cell .btn {
    width: 100%;
    padding: 4px 6px;
  }
}

/* Chat interface styles */
.chat-container {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 20px;
  background-color: #f8f9fa;
}

/* Tab toggle styles */
.tab-toggle {
  display: inline-flex;
  border: 1px solid #ddd;
  overflow: hidden;
  margin-bottom: 20px;
  width: fit-content;
  margin-top: 20px;
}

.tab-btn {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background-color: #f8f9fa;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.tab-btn.active {
  background-color: white;
  color: #27ae60; /* LINE brand green */
  font-weight: bold;
  border-color: #27ae60;
  border-bottom: 2px solid #27ae60; /* Emphasize the active state */
}

.tab-btn:hover:not(.active) {
  background-color: #e9ecef;
}

/* Accounting category input and autocomplete styles */
.accounting-category-cell {
  padding: 6px 8px !important;
}

.category-container {
  position: relative;
  width: 100%;
  display: block;
}

.category-input {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  box-sizing: border-box;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-color: #fff;
}

.category-input:focus {
  outline: none;
  border-color: #27ae60;
  box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.15);
  background-color: #fafffe;
}

.category-input:hover:not(:focus) {
  border-color: #bbb;
}

/* Payment method input styles */
.payment-method-cell {
  padding: 6px 8px !important;
}

.payment-method-input {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  box-sizing: border-box;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  background-color: #fff;
}

.payment-method-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
  background-color: #fafffe;
}

.payment-method-input:hover:not(:focus) {
  border-color: #bbb;
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 99999 !important; /* Very high z-index to ensure it appears above all other elements */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  /* Ensure it's positioned relative to closest positioned ancestor */
  position: absolute !important;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.suggestion-item:hover,
.suggestion-item.active {
  background-color: #f0f8ff;
}

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

.suggestion-item.no-match {
  color: #999;
  font-style: italic;
  cursor: default;
}

/* Navigation button styles (overrides for header nav) - updated for dropdown */
.logout-btn {
  padding: 8px 12px;
  margin-top: 5px;
  border: 1px solid white;
  background-color: white;
  color: #00C300;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
  width: 100%;
}

.logout-btn:hover {
  background-color: #f1f1f1;
}

/* Styles for selectable receipt rows */
.receipts-table tbody tr.selectable {
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 選択状態のスタイル - ステータス色より優先 */
.receipts-table tbody tr.selected {
  background-color: #e3f2fd !important; /* Light blue background */
  border-left: 3px solid #2196F3; /* 左側に青いボーダーを追加 */
}

.receipts-table tbody tr.selected td {
  background-color: #e3f2fd !important;
}

/* 重複定義を削除 - 上記の.category-containerと.category-inputを使用 */

/* Autocomplete suggestions styles */
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 99999 !important; /* High z-index to ensure it appears above other elements including table cells */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: none;
}

/* Specific fix for autocomplete in table cells */
.table-container .autocomplete-suggestions,
tr .autocomplete-suggestions,
td .autocomplete-suggestions {
  z-index: 100000 !important; /* Even higher z-index for table contexts */
  position: absolute !important;
  /* Ensure the TD has proper positioning context for the suggestion dropdown */
  overflow: visible !important;
}

/* Fix for table cell overflow issue */
.receipts-table td {
  overflow: visible !important;
  position: relative;
}

/* For accounting category filter, position below instead of above */
#accountingCategoryFilter + .autocomplete-suggestions {
  top: 100%;
  bottom: auto;
  border-top: none;
  border-bottom: 1px solid #ddd;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.suggestion-item:hover,
.suggestion-item.active {
  background-color: #f5f5f5;
}

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

/* Table - 基本スタイル */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

th, td {
  border-bottom: 1px solid #ddd;
  padding: 12px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

thead {
  background-color: #f9f9f9;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Receipts table specific styles */
.receipts-table {
  table-layout: fixed; /* 固定レイアウトで列幅を制御 */
  border: 1px solid #ddd;
}

.receipts-table thead th {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  padding: 12px 8px;
  vertical-align: middle;
}

/* ソート可能なヘッダー */
.receipts-table thead th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

.receipts-table thead th.sortable:hover {
  background-color: #e8f5e9;
}

.receipts-table thead th.sortable.sort-asc .sort-icon::after {
  content: ' ▲';
  color: #00C300;
}

.receipts-table thead th.sortable.sort-desc .sort-icon::after {
  content: ' ▼';
  color: #00C300;
}

.sort-icon {
  font-size: 12px;
  color: #999;
  margin-left: 4px;
}

.receipts-table tbody td {
  padding: 10px 8px;
  vertical-align: middle;
}

/* テーブル行のホバー効果 - ステータス色を維持しつつ少し暗くする */
.receipts-table tbody tr:hover:not(.selected) {
  filter: brightness(0.95);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* テーブルの列幅を指定 - 10列（摘要追加） */
.receipts-table th:nth-child(1),
.receipts-table td:nth-child(1) { /* チェックボックス */
  width: 45px;
  min-width: 45px;
  max-width: 45px;
  text-align: center;
  padding: 8px 4px;
}

.receipts-table th:nth-child(2),
.receipts-table td:nth-child(2) { /* 領収書番号 */
  width: 90px;
  min-width: 90px;
}

.receipts-table th:nth-child(3),
.receipts-table td:nth-child(3) { /* 日付 */
  width: 100px;
  min-width: 100px;
}

.receipts-table th:nth-child(4),
.receipts-table td:nth-child(4) { /* 店舗名 */
  width: 12%;
  min-width: 120px;
}

.receipts-table th:nth-child(5),
.receipts-table td:nth-child(5) { /* 合計金額 */
  width: 110px;
  min-width: 110px;
  text-align: right;
  font-weight: 500;
}

.receipts-table th:nth-child(6),
.receipts-table td:nth-child(6) { /* 支払い方法 */
  width: 120px;
  min-width: 120px;
}

.receipts-table th:nth-child(7),
.receipts-table td:nth-child(7) { /* 勘定科目 */
  width: 18%;
  min-width: 180px;
}

.receipts-table th:nth-child(8),
.receipts-table td:nth-child(8) { /* 摘要 */
  width: 15%;
  min-width: 150px;
}

.receipts-table th:nth-child(9),
.receipts-table td:nth-child(9) { /* 出費者 */
  width: 90px;
  min-width: 90px;
}

.receipts-table th:nth-child(10),
.receipts-table td:nth-child(10) { /* 操作 */
  width: 260px;
  min-width: 260px;
}

/* 操作列のボタン配置 */
.receipts-table .actions-cell {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 4px;
}

/* 操作列のボタンサイズを調整 */
.receipts-table .actions-cell .btn {
  padding: 6px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.receipts-table .actions-cell form {
  margin: 0;
  display: inline-block;
}

/* 支払い方法セル */
.payment-method-cell {
  padding: 6px 8px !important;
}

.payment-method-container {
  position: relative;
  width: 100%;
}

.payment-method-input {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s;
  background-color: #fff;
}

.payment-method-input:focus {
  outline: none;
  border-color: #00C300;
  box-shadow: 0 0 0 2px rgba(0, 195, 0, 0.15);
}

.payment-method-input:hover:not(:focus) {
  border-color: #bbb;
}

/* 摘要セル */
.remark-cell {
  padding: 6px 8px !important;
  max-width: 200px;
}

.remark-text {
  max-height: 40px;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 2px;
}

.remark-text::-webkit-scrollbar {
  width: 4px;
}

.remark-text::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.remark-text::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 2px;
}

.remark-text::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Login Page */
.login-container {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
}

.login-btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  background-color: #00C300;
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s;
  border: 1px solid #00C300; /* Standard border */
  box-sizing: border-box;
}

.login-btn:hover {
  background-color: #00a500;
  border-color: #00a500;
}

/* Toggle button styles for status switching */
.status-toggle {
  display: flex;
  border: 1px solid #ddd;
  overflow: hidden;
  margin-bottom: 20px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.toggle-btn {
  padding: 8px 16px;
  border: none;
  background-color: #f8f9fa;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

body.dark-mode .toggle-btn {
  background-color: #3d3d3d;
  color: #e0e0e0;
}

.toggle-btn.active {
  background-color: #28a745; /* Green color */
  color: white;
  font-weight: bold;
}

body.dark-mode .toggle-btn.active {
  background-color: #218838; /* Darker green for dark mode */
}

.toggle-btn:hover {
  background-color: #e9ecef;
}

body.dark-mode .toggle-btn:hover {
  background-color: #4a4a4a;
}


/* Duplicate check indicator */
.duplicate-indicator {
  background-color: #ffc107;
  color: #856404;
  padding: 2px 6px;
  font-size: 0.8em;
  margin-left: 5px;
}

/* Company info section in member management */
.company-name-edit {
  display: flex;
  align-items: center;
  gap: 8px;
}

#companyNameInput {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

#companyNameInput[readonly] {
  background-color: #f8f9fa;
  cursor: default;
}
/* Company Info Section - using same card style */
.company-info-section {
  background: #f0f0f0;
  border: none;
  border-radius: 0; /* Square corners */
  padding: 16px;
  margin-bottom: 20px;
  /* Neumorphism effect - soft inner shadows */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.company-info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C300, #00B300);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-item label {
  font-weight: bold;
  color: #495057;
  white-space: nowrap;
}

.info-item span {
  color: #6c757d;
}

@media (max-width: 768px) {
  .company-info-section {
    flex-direction: column;
    gap: 10px;
  }
}

/* Company info in header */
.company-info {
  font-weight: normal;
  color: #d1f5d1;
  margin-left: 10px;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* Detail Page Styles */
.detail-page-container {
  max-width: 1400px;
  margin: 0 auto;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

/* Card-based styles for detail sections */
.detail-card {
  background: #f0f0f0;
  border: none;
  border-radius: 0; /* Square corners for consistency */
  padding: 16px;
  margin-bottom: 16px;
  /* Neumorphism effect - soft inner shadows */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C300, #00B300);
}

.detail-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #d9d9d9;
  margin-bottom: 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.detail-card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.detail-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.receipt-number-badge {
  background-color: #f5f5f5;
  color: #666;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

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

.status-badge.status-completed {
  background-color: #d4edda;
  color: #155724;
}

.detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .detail-container {
    grid-template-columns: 1fr;
  }
}

.detail-info {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #00C300;
}

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

.info-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #f0f0f0;
}

.info-table td:first-child {
  font-weight: 600;
  color: #666;
  width: 180px;
  vertical-align: top;
  padding-top: 16px;
}

.info-table td:last-child {
  color: #333;
}

.info-table input[type="text"],
.info-table input[type="date"],
.info-table input[type="number"],
.info-table textarea,
.info-table select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.info-table input:focus,
.info-table textarea:focus,
.info-table select:focus {
  outline: none;
  border-color: #00C300;
  box-shadow: 0 0 0 3px rgba(0, 195, 0, 0.1);
}

.detail-image {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.detail-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-entry {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.item-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
}

.item-entry-header h4 {
  margin: 0;
  color: #333;
  font-size: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 24px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  bottom: 20px;
}

/* Detail Page Styles */
.detail-page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

.detail-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.detail-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.receipt-number-badge {
  background-color: #f5f5f5;
  color: #666;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

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

.status-badge.status-completed {
  background-color: #d4edda;
  color: #155724;
}

.detail-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  flex-direction: row-reverse; /* Reverse order: image first, info second on desktop */
}

@media (max-width: 1024px) {
  .detail-container {
    flex-direction: column-reverse; /* On mobile, info first, image second */
  }
}

.detail-info {
  flex: 1;
  min-width: 0;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding-right: 10px;
}

.detail-info::-webkit-scrollbar {
  width: 8px;
}

.detail-info::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.detail-info::-webkit-scrollbar-thumb {
  background: #00C300;
  border-radius: 4px;
}

.detail-info::-webkit-scrollbar-thumb:hover {
  background: #00B300;
}

.info-section {
  background: #f0f0f0;
  border: none;
  border-radius: 0; /* Square corners for consistency */
  padding: 16px;
  /* Neumorphism effect - soft inner shadows */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C300, #00B300);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #00C300;
}

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

.info-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #f0f0f0;
}

.info-table td:first-child {
  font-weight: 600;
  color: #666;
  width: 140px;
  vertical-align: top;
  padding-top: 12px;
  font-size: 13px;
}

.info-table td:last-child {
  color: #333;
}

.info-table input[type="text"],
.info-table input[type="number"],
.info-table input[type="date"],
.info-table select,
.info-table textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  transition: border-color 0.2s;
}

.info-table input:focus,
.info-table select:focus,
.info-table textarea:focus {
  outline: none;
  border-color: #00C300;
  box-shadow: 0 0 0 3px rgba(0, 195, 0, 0.1);
}

.info-table textarea {
  min-height: 60px;
  resize: vertical;
  font-family: inherit;
}

/* 商品カードのグリッドレイアウト */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.item-card {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
}

.item-card:hover {
  border-color: #00C300;
  box-shadow: 0 4px 12px rgba(0, 195, 0, 0.15);
  transform: translateY(-2px);
}

.item-card-header {
  background: linear-gradient(135deg, #00C300 0%, #00B300 100%);
  color: white;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-number {
  font-weight: 600;
  font-size: 14px;
}

.btn-icon-delete {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 0; /* Square corners as requested */
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-icon-delete:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.item-card-body {
  padding: 14px;
}

.form-group-compact {
  margin-bottom: 10px;
}

.form-group-compact label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 12px;
  color: #666;
}

.form-group-compact input,
.form-group-compact select {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  transition: border-color 0.2s;
}

.form-group-compact input:focus,
.form-group-compact select:focus {
  outline: none;
  border-color: #00C300;
  box-shadow: 0 0 0 2px rgba(0, 195, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.section-header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}


@media (max-width: 768px) {
  .items-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #666;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00C300;
  box-shadow: 0 0 0 3px rgba(0, 195, 0, 0.1);
}

/* 右側固定画像エリア */
.detail-image-sticky {
  width: 380px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  align-self: flex-start;
}

.image-container {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.receipt-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 2px solid #e0e0e0;
  margin-top: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.no-image-placeholder {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  background: #f8f9fa;
  border-radius: 6px;
  margin-top: 12px;
}

@media (max-width: 1024px) {
  .detail-image-sticky {
    position: relative;
    width: 100%;
    max-height: 500px;
  }
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  background: #7776764f;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
  border-top: 2px solid #e0e0e0;
}

.form-actions .btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s;
}

.form-actions .btn-primary {
  background-color: #00C300;
  border-color: #00C300;
  border-radius: 0; /* Square corners as requested */
}

.form-actions .btn-primary:hover {
  background-color: #00B300;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 195, 0, 0.3);
}

/* Dashboard Page Styles */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Use the common card section style */
.dashboard-section {
  background: #f0f0f0;
  border: none;
  border-radius: 0; /* Square corners */
  padding: 16px;
  margin-bottom: 16px;
  /* Neumorphism effect - soft inner shadows */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dashboard-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C300, #00B300);
}

/* 検索セクションのスタイル */
.search-section {
  background: #f0f0f0;
  border: none;
  border-radius: 0; /* Square corners */
  padding: 16px;
  margin-bottom: 16px;
  /* Neumorphism effect - soft inner shadows */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.search-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C300, #00B300);
}

.search-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-end;
}

.search-btn {
  min-width: 120px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #00C300;
}

.search-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}



.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.label-hint {
  font-size: 11px;
  font-weight: 400;
  color: #999;
  font-style: italic;
}

.form-input {
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #00C300;
  box-shadow: 0 0 0 3px rgba(0, 195, 0, 0.1);
}

.date-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
}

.date-separator span {
  font-size: 18px;
  color: #666;
}

.form-actions-group {
  display: flex;
  gap: 8px;
}

.form-actions-group .btn {
  flex: 1;
}

.btn-success {
  background-color: #27ae60;
  border-color: #27ae60;
  color: white;
  border-radius: 0; /* Square corners as requested */
}

.btn-success:hover {
  background-color: #229954;
  border-color: #229954;
}

.bulk-update-section {
  background: white;
  border-radius: 0; /* Square corners */
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0; /* Added border for consistency */
}

.bulk-update-section h3.section-title {
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
  color: #333;
  font-size: 16px;
}

.bulk-update-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  justify-content: flex-start;
}

.bulk-update-fields {
  display: flex;
  flex: 1;
  gap: 16px;
  min-width: 300px;
}

.bulk-field-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
  gap: 6px;
}

.bulk-field-group label {
  font-weight: 600;
  font-size: 14px;
  color: #555;
  margin-bottom: 2px;
}

.bulk-category-container,
.bulk-payment-container {
  position: relative;
  width: 100%;
}

.bulk-update-actions {
  display: flex;
  gap: 8px;
  align-self: flex-end;
  margin-left: 16px;
}

.help-text {
  margin: 12px 0 0 0;
  font-size: 13px;
  color: #666;
}

/* Status Message */
.status-message {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

.status-message.error {
  background-color: #ffebee;
  border: 2px solid #f44336;
  color: #c62828;
}

/* Common Card Section Styles (based on receipt-panel design) */
.common-card-section {
  background: #f0f0f0;
  border: none;
  border-radius: 0; /* Square corners for consistency */
  padding: 16px;
  margin-bottom: 16px;
  /* Neumorphism effect - soft inner shadows */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.common-card-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C300, #00B300);
}

/* Common Section Title */
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #00C300;
}

/* Export Page Styles */
.export-container {
  max-width: 1200px;
  margin: 0 auto;
}

.export-section {
  background: #f0f0f0;
  border: none;
  border-radius: 0; /* Square corners */
  padding: 16px;
  margin-bottom: 16px;
  /* Neumorphism effect - soft inner shadows */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.export-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C300, #00B300);
}

.export-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* General button class based on month-btn design for consistency */
.btn-general {
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  background-color: white;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0; /* Square corners as requested */
  min-width: 90px;
  text-align: center;
  text-decoration: none; /* For anchor tags */
  display: inline-block;
  outline: none;
}

.btn-general:hover {
  border-color: #00C300;
  color: #00C300;
  transform: translateY(-1px);
  border-radius: 0; /* Square corners as requested */
}

.btn-general.active {
  background-color: #00C300;
  color: white;
  border-color: #00C300;
  box-shadow: 0 2px 6px rgba(0, 195, 0, 0.3);
  border-radius: 0; /* Square corners as requested */
}

.btn-primary-general {
  background-color: white;
  color: #00C300;
  border-color: #00C300;
}

.btn-primary-general:hover {
  background-color: white;
  color: #00C300;
  border-color: #00C300;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 195, 0, 0.3);
}

.btn-secondary-general {
  background-color: white;
  color: #666;
  border-color: #e0e0e0;
}

.btn-secondary-general:hover {
  background-color: white;
  color: #00C300;
  border-color: #00C300;
  transform: translateY(-1px);
}

.btn-success-general {
  background-color: white;
  color: #27ae60;
  border-color: #27ae60;
}

.btn-success-general:hover {
  background-color: white;
  color: #00C300;
  border-color: #00C300;
  transform: translateY(-1px);
}

.btn-warning-general {
  background-color: white;
  color: #f39c12;
  border-color: #f39c12;
}

.btn-warning-general:hover {
  background-color: white;
  color: #00C300;
  border-color: #00C300;
  transform: translateY(-1px);
}

.btn-danger-general {
  background-color: white;
  color: #e74c3c;
  border-color: #e74c3c;
}

.btn-danger-general:hover {
  background-color: white;
  color: #00C300;
  border-color: #00C300;
  transform: translateY(-1px);
}

.btn-info-general {
  background-color: white;
  color: #3498db;
  border-color: #3498db;
}

.btn-info-general:hover {
  background-color: white;
  color: #00C300;
  border-color: #00C300;
  transform: translateY(-1px);
}

.month-btn {
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  background-color: white;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0; /* Square corners as requested */
  min-width: 90px;
  text-align: center;
}

.month-btn:hover {
  border-color: #00C300;
  color: #00C300;
  transform: translateY(-1px);
  border-radius: 0; /* Square corners as requested */
}

.month-btn.active {
  background-color: #00C300;
  color: white;
  border-color: #00C300;
  box-shadow: 0 2px 6px rgba(0, 195, 0, 0.3);
  border-radius: 0; /* Square corners as requested */
}

.date-range-inputs {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.date-range-inputs label {
  font-weight: 500;
  color: #666;
}

.date-range-inputs input[type="date"] {
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
}

.export-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.export-btn {
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  background-color: white;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0; /* Square corners as requested */
  min-width: 90px;
  text-align: center;
  text-decoration: none; /* For anchor tags */
  display: inline-block;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.export-btn:hover {
  border-color: #00C300;
  color: #00C300;
  transform: translateY(-1px);
  border-radius: 0; /* Square corners as requested */
}

.export-btn-primary {
  background-color: white;
  color: #00C300;
  border-color: #00C300;
}

.export-btn-primary:hover {
  background-color: #00C300;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 195, 0, 0.3);
}

.export-btn-secondary {
  background-color: white;
  color: #666;
  border-color: #e0e0e0;
}

.export-btn-secondary:hover {
  background-color: #e0e0e0;
  border-color: #d0d0d0;
}

.software-export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.software-btn {
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-weight: 600;
}

.software-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.software-btn-yayoi {
  border-color: #28a745;
  color: #28a745;
}

.software-btn-yayoi:hover {
  background-color: #28a745;
  color: white;
}

.software-btn-freee {
  border-color: #007bff;
  color: #007bff;
}

.software-btn-freee:hover {
  background-color: #007bff;
  color: white;
}

.software-btn-generic {
  border-color: #ffc107;
  color: #856404;
}

.software-btn-generic:hover {
  background-color: #ffc107;
  color: #212529;
}

.status-message {
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
  display: none;
}

.status-message.info {
  background-color: #e3f2fd;
  border: 2px solid #2196F3;
  color: #1565C0;
}

.status-message.success {
  background-color: #e8f5e9;
  border: 2px solid #4CAF50;
  color: #2E7D32;
}

.status-message.error {
  background-color: #ffebee;
  border: 2px solid #f44336;
  color: #c62828;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}

/* Download Item Card Style (similar to receipt panel) */
.download-item-card {
  background: #f0f0f0;
  border: none;
  border-radius: 0; /* Square corners */
  padding: 16px;
  margin-bottom: 16px;
  /* Neumorphism effect - soft inner shadows */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.download-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C300, #00B300);
}

.download-item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d9d9d9;
}

.download-item-card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-item-title {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin-bottom: 4px;
}

.download-item-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.download-item-badge {
  background-color: #dc3545;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.export-type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.export-type-badge.csv-yayoi {
  background-color: #28a745;
  color: white;
}

.export-type-badge.csv-freee {
  background-color: #007bff;
  color: white;
}

.export-type-badge.csv-standard {
  background-color: #6c757d;
  color: white;
}

.export-type-badge.zip {
  background-color: #ffc107;
  color: #212529;
}

.download-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #d9d9d9;
}

.download-link {
  padding: 8px 16px;
  background-color: #00C300;
  color: white;
  text-decoration: none;
  border-radius: 0; /* Square corners */
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.download-link:hover {
  background-color: #00B300;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 195, 0, 0.3);
}

/* Responsive layout for download cards */
@media (max-width: 768px) {
  .download-item-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .download-item-actions {
    width: 100%;
    justify-content: center;
  }
}

.download-item-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.download-item-meta {
  font-size: 13px;
  color: #666;
}

.download-item-badge {
  background-color: #dc3545;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

.download-link {
  padding: 8px 16px;
  background-color: #00C300;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.download-link:hover {
  background-color: #00B300;
  transform: translateY(-1px);
}

.receipt-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 16px;
}

@keyframes stripe-animation {
  0% { background-position: 0 0; }
  100% { background-position: 30px 0; }
}

.animated-progress-bar {
  background-image: repeating-linear-gradient(
    45deg,
    #00C300,
    #00C300 10px,
    #00B300 10px,
    #00B300 20px
  );
  background-size: 30px 30px;
  animation: stripe-animation 1s linear infinite;
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}
/* S
ubscription status indicator */
.subscription-indicator {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.status-badge.trial {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.5);
}

.status-badge.free {
  background-color: rgba(23, 162, 184, 0.2);
  color: #17a2b8;
  border: 1px solid rgba(23, 162, 184, 0.5);
}

.status-badge.active {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.5);
}

.status-badge.expired {
  background-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.5);
}

/* Payment management section */
.payment-management-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.payment-info {
  margin-bottom: 16px;
  padding: 12px;
  background: white;
  border-radius: 6px;
}

.payment-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Progress bar for download tasks */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00C300 0%, #00B300 100%);
  transition: width 0.3s ease;
}

.animated-progress-bar {
  background: linear-gradient(90deg, #00C300 0%, #00B300 50%, #00C300 100%);
  background-size: 200% 100%;
  animation: progressAnimation 2s linear infinite;
}

@keyframes progressAnimation {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Download history grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Download history list - Using receipt-panel style */
.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.download-item {
  background: #f0f0f0;
  border: none;
  border-radius: 0; /* Square corners */
  padding: 16px;
  /* Neumorphism effect - soft inner shadows */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
}

.download-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C300, #00B300);
}

.download-item:hover {
  box-shadow:
    8px 8px 15px #d9d9d9,
    -8px -8px 15px #ffffff;
  transform: translateY(-1px);
}

.download-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.download-item-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: #333;
  align-self: flex-start;
}

.download-item-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.download-item-badge {
  background-color: #dc3545;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.download-link {
  padding: 8px 16px;
  background-color: #00C300;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.download-link:hover {
  background-color: #00B300;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 195, 0, 0.3);
}

/* Subscription status in member management */
.subscription-status {
  padding: 12px;
  background: white;
  border-radius: 6px;
  margin-top: 8px;
}

.status-trial,
.status-free {
  color: #ffc107;
  font-weight: 600;
}

.status-active {
  color: #28a745;
  font-weight: 600;
}

.status-expired {
  color: #dc3545;
  font-weight: 600;
}

/* New Dashboard - Receipt Morph Panel Styles (Neumorphism Design) */
.receipts-morph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

@media (max-width: 768px) {
  .receipts-morph-grid {
    grid-template-columns: 1fr;
    padding: 15px 10px;
  }
}

.receipt-panel {
  background: #f0f0f0;
  border: none;
  border-radius: 0; /* No rounded corners for receipt-like appearance */
  padding: 16px;
  /* Neumorphism effect - soft inner shadows */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.receipt-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C300, #00B300);
}

.receipt-panel:hover {
  transform: translateY(-5px);
  /* Enhanced neumorphism effect on hover */
  box-shadow:
    8px 8px 15px #d0d0d0,
    -8px -8px 15px #ffffff;
}

.receipt-panel.selected {
  /* Enhanced selection effect in neumorphism style */
  box-shadow:
    inset 5px 5px 10px #d9d9d9,
    inset -5px -5px 10px #ffffff;
  background-color: #e6ffc9;
}

.receipt-panel.needs_review {
  /* Neumorphism effect for needs review status */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #ffffe6; /* yellow-tinged background */
}

.receipt-panel.completed {
  /* Neumorphism effect for completed status */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #e8f5e9; /* green-tinged background */
}

.receipt-panel.trash {
  /* Neumorphism effect for trash status */
  box-shadow:
    5px 5px 10px #d9d9d9,
    -5px -5px 10px #f0f0f0; /* gray background */
  opacity: 0.8;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  /* Remove dashed border to follow neumorphism design */
  border-bottom: none;
  /* Add subtle separator line effect in neumorphism style */
  box-shadow: inset 0 -2px 0 #d9d9d9;
}

.receipt-number {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.receipt-status {
  font-size: 12px;
  padding: 4px 8px;
  /* Remove border radius to maintain flat receipt look */
  border-radius: 0;
  /* Neumorphism style for status indicator */
  background: #e0e0e0;
  color: #6c757d;
  box-shadow:
    inset 2px 2px 4px #d0d0d0,
    inset -2px -2px 4px #f0f0f0;
}

.receipt-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
}

.item-label {
  font-weight: 600;
  color: #666;
  min-width: 50px;
  margin-right: 8px;
}

.item-value {
  flex: 1;
  text-align: right;
  color: #333;
  word-break: break-word;
  text-align: right;
}

.payment-method-field,
.accounting-category-field {
  width: 100%;
  text-align: right;
}

.payment-method-select {
  width: 100%;
  padding: 4px 6px;
  /* Remove border to follow neumorphism design */
  border: none;
  border-radius: 0;
  font-size: 12px;
  background: #e0e0e0;
  /* Apply neumorphism effect */
  box-shadow:
    inset 2px 2px 4px #d0d0d0,
    inset -2px -2px 4px #f0f0f0;
  /* Change text color to match the design */
  color: #333;
}

.category-input {
  width: 100%;
  padding: 4px 6px;
  /* Remove border to follow neumorphism design */
  border: none;
  border-radius: 0;
  font-size: 12px;
  background: #e0e0e0;
  /* Apply neumorphism effect */
  box-shadow:
    inset 2px 2px 4px #d0d0d0,
    inset -2px -2px 4px #f0f0f0;
  /* Change text color to match the design */
  color: #333;
}

.remark-text {
  font-size: 12px;
  color: #666;
  text-align: right;
}

.receipt-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-top: 12px;
  /* Remove dashed border to follow neumorphism design */
  border-top: none;
  /* Add subtle separator line effect in neumorphism style */
  box-shadow: inset 0 2px 0 #d9d9d9;
}



.no-receipts-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: #666;
  background-color: #f8f9fa;
  border-radius: 8px;
}
