.lcf-partner {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Welcome Header */
.lcf-welcome {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.lcf-welcome h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 400;
  color: #202124;
  line-height: 1.2;
}

.lcf-welcome p {
  margin: 0;
  font-size: 16px;
  color: #5f6368;
}

/* No Access Message */
.lcf-no-access {
  max-width: 480px;
  margin: 80px auto;
  padding: 48px 32px;
  text-align: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.lcf-no-access-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.lcf-no-access h2 {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 400;
  color: #202124;
}

.lcf-no-access p {
  margin: 0;
  font-size: 16px;
  color: #5f6368;
  line-height: 1.6;
}

/* Skeleton Mode */
.lcf-skeleton-mode .lcf-skeleton-wrapper {
  position: relative;
}

.lcf-skeleton-mode .lcf-skeleton {
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

.lcf-skeleton-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.lcf-skeleton-message {
  background: #fff;
  padding: 40px 48px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  text-align: center;
  max-width: 420px;
}

.lcf-skeleton-message svg {
  color: #1a73e8;
  margin-bottom: 16px;
}

.lcf-skeleton-message h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 400;
  color: #202124;
}

.lcf-skeleton-message p {
  margin: 0;
  font-size: 15px;
  color: #5f6368;
  line-height: 1.5;
}

/* Summary Grid */
.lcf-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.lcf-summary-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.lcf-summary-card-total {
  background: #f8f9fa;
  border: 2px solid #1a73e8;
}

.lcf-summary-coupon-label {
  font-size: 11px;
  font-weight: 700;
  color: #1a73e8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  padding: 4px 8px;
  background: #e8f0fe;
  border-radius: 4px;
  display: inline-block;
}

.lcf-summary-currency {
  font-size: 12px;
  font-weight: 600;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.lcf-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.lcf-summary-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lcf-summary-label {
  font-size: 13px;
  color: #5f6368;
  font-weight: 400;
}

.lcf-summary-value {
  font-size: 28px;
  font-weight: 400;
  color: #202124;
  line-height: 1.2;
}

.lcf-summary-commission {
  color: #1a73e8;
  font-weight: 500;
}

/* Main Card */
.lcf-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 20px;
}
.lcf-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}
.lcf-card-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #202124;
}
.lcf-card-body {
  padding: 0;
}

/* Month Card */
.lcf-month-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 20px;
}
.lcf-month-header {
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}
.lcf-month-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #202124;
}

/* Controls Section */
.lcf-controls {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  flex-wrap: wrap;
}
.lcf-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}
.lcf-control-group label {
  font-size: 13px;
  font-weight: 500;
  color: #5f6368;
}
.lcf-select, .lcf-input {
  padding: 10px 12px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  color: #202124;
  transition: all 0.2s;
}
.lcf-select:hover, .lcf-input:hover {
  border-color: #bdc1c6;
}
.lcf-select:focus, .lcf-input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 1px #1a73e8;
}

/* Table */
.lcf-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.lcf-table caption {
  text-align: left;
  padding: 16px 20px;
  color: #5f6368;
  font-size: 13px;
}
.lcf-table th, .lcf-table td {
  padding: 12px 20px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
  text-align: left;
}
.lcf-table th {
  font-weight: 500;
  font-size: 13px;
  color: #5f6368;
  background: #fafafa;
}
.lcf-table tbody tr {
  transition: background-color 0.1s;
}
.lcf-table tbody tr:hover {
  background: #fafafa;
}
.lcf-table th.lcf-num,
.lcf-table td.lcf-num {
  text-align: right;
  padding-right: 20px;
}

/* Sortable Headers */
.lcf-sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.1s;
}
.lcf-sortable:hover {
  background: #f1f3f4;
}
.lcf-sortable span {
  margin-left: 6px;
  font-size: 11px;
  color: #80868b;
}

/* Currency Badge */
.lcf-currency-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #e8f0fe;
  color: #1967d2;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* Coupon Badge */
.lcf-coupon-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #fef7e0;
  color: #c76e00;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Subtotal Row */
.lcf-subtotal-row {
  background: #fafafa;
}
.lcf-subtotal-row td {
  border-top: 1px solid #dadce0;
  font-weight: 500;
}
.lcf-subtotal-label {
  color: #5f6368;
  font-size: 13px;
}
.lcf-subtotal-value {
  color: #202124;
  font-size: 14px;
}

/* Commission Row */
.lcf-commission-row {
  background: #e8f5e9;
}
.lcf-commission-row td {
  border-bottom: 1px solid #c8e6c9;
  font-weight: 500;
}
.lcf-commission-label {
  color: #1e8e3e;
  font-size: 13px;
}
.lcf-commission-value {
  color: #137333;
  font-size: 14px;
}

/* Empty State */
.lcf-empty {
  color: #5f6368;
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
}

/* Note */
.lcf-note {
  margin-top: 16px;
  color: #5f6368;
  font-size: 13px;
  text-align: center;
}

/* Error */
.lcf-error {
  background: #fce8e6;
  color: #c5221f;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #f4c7c3;
  font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .lcf-partner {
    margin: 16px auto;
    padding: 0 12px;
  }

  .lcf-summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .lcf-summary-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lcf-controls {
    flex-direction: column;
    padding: 12px 16px;
  }

  .lcf-control-group {
    min-width: 100%;
  }

  .lcf-table th, .lcf-table td {
    padding: 10px 16px;
  }

  .lcf-month-header {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .lcf-summary-value {
    font-size: 24px;
  }

  .lcf-skeleton-message {
    padding: 32px 24px;
    max-width: 90%;
  }

  .lcf-skeleton-message h2 {
    font-size: 20px;
  }

  .lcf-skeleton-message p {
    font-size: 14px;
  }

  .lcf-table thead {
    display: none;
  }
  .lcf-table, .lcf-table tbody, .lcf-table tr, .lcf-table td {
    display: block;
    width: 100%;
  }
  .lcf-table tr {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 12px;
    padding-bottom: 0;
  }
  .lcf-table td {
    border: 0;
    padding: 8px 16px;
    text-align: left !important;
  }
  .lcf-table td:first-child {
    padding-top: 12px;
    font-weight: 500;
  }
}
