.view-invoice-hub {
  background: #f2f2f7;
}

.inv-hub-header {
  padding: 24px 16px 12px;
}

.inv-hub-title {
  font-size: 22px;
  font-weight: 800;
  color: #1c1c1e;
}

.inv-hub-sub {
  font-size: 12px;
  color: #8e8e93;
  margin-top: 6px;
}

.inv-hub-list {
  padding: 8px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inv-hub-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  cursor: pointer;
  text-align: left;
}

.inv-hub-card[hidden] {
  display: none !important;
}

.inv-hub-card-text {
  font-size: 16px;
  font-weight: 700;
  color: #007aff;
}

.inv-hub-card-desc {
  display: block;
  font-size: 12px;
  color: #8e8e93;
  font-weight: 500;
  margin-top: 4px;
}

.inv-hub-arrow {
  color: #c7c7cc;
  font-size: 18px;
}

.view-invoice-upload {
  background: #f2f2f7;
  overflow-y: auto;
}

.inv-up-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 24px;
}

.inv-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #1c1c1e;
}

.inv-hero-sub {
  font-size: 12px;
  color: #8e8e93;
  margin-top: 6px;
  margin-bottom: 16px;
}

.inv-ios-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.inv-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.inv-indicator {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  margin-right: 8px;
}

.inv-indicator.green { background: #34c759; }
.inv-indicator.blue { background: #007aff; }

.inv-card-header-text {
  font-size: 13px;
  font-weight: 700;
  color: #8e8e93;
}

.inv-upload-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inv-img-box, .inv-upload-btn {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  position: relative;
}

.inv-img-box img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
}

.inv-pdf-box {
  width: 100%;
  height: 100%;
  background: #f2f2f7;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5ea;
  padding: 4px;
  cursor: pointer;
}

.inv-pdf-tag {
  font-size: 10px;
  background: #ff3b30;
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 800;
  margin-bottom: 4px;
}

.inv-pdf-name {
  font-size: 9px;
  color: #8e8e93;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.inv-del-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff3b30;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.inv-upload-btn {
  background: #f2f2f7;
  border: none;
  font-size: 32px;
  color: #c7c7cc;
  cursor: pointer;
}

.inv-ios-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f2f2f7;
  gap: 12px;
}

.inv-ios-cell:last-child { border-bottom: none; }

.inv-label { font-size: 14px; color: #3a3a3c; flex-shrink: 0; }

.inv-val {
  text-align: right;
  font-size: 14px;
  color: #1c1c1e;
  font-weight: 700;
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
}

.inv-date-text { color: #34c759; }

.inv-full-btn {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: #007aff;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,122,255,0.2);
  margin-top: 8px;
}

.inv-full-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.inv-history-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.inv-history-text { font-size: 14px; color: #007aff; font-weight: 600; }

.view-invoice-list-admin {
  background: #f4f7f9;
  overflow: hidden;
}

.ila-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
  flex-shrink: 0;
}

.ila-title { font-size: 17px; font-weight: 700; color: #333; }

.ila-filter-panel {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  flex-shrink: 0;
}

.ila-filter-row {
  display: flex;
  margin-bottom: 10px;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.ila-row-label {
  font-size: 12px;
  color: #999;
  width: 48px;
  flex-shrink: 0;
  padding-top: 4px;
}

.ila-tag-group { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }

.ila-tag {
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 12px;
  color: #666;
  border: 1px solid transparent;
  cursor: pointer;
}

.ila-tag.active {
  background: #eafff1;
  color: #07c160;
  border-color: #07c160;
  font-weight: 700;
}

.ila-date-range {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 6px;
  gap: 6px;
}

.ila-date-range input {
  font-size: 12px;
  border: none;
  background: transparent;
  color: #07c160;
  font-weight: 700;
}

.ila-amount-group {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 6px;
  gap: 4px;
}

.ila-amount-group input {
  width: 56px;
  font-size: 12px;
  text-align: center;
  border: none;
  background: transparent;
}

.ila-status-group { display: flex; background: #f5f5f5; padding: 2px; border-radius: 6px; gap: 2px; }

.ila-s-tag {
  font-size: 11px;
  padding: 4px 10px;
  color: #666;
  border-radius: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.ila-s-tag.active { background: #07c160; color: #fff; font-weight: 700; }

.ila-reset-btn {
  color: #fa5151;
  font-size: 12px;
  font-weight: 700;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}

.ila-summary {
  background: #07c160;
  color: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  margin: 0 12px 10px;
  flex-shrink: 0;
}

.ila-total-amount { font-size: 24px; font-weight: 800; }

.ila-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 12px 16px;
}

.ila-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border-left: 4px solid #1890ff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.ila-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ila-amt { font-size: 20px; font-weight: 800; color: #fa5151; }

.ila-top-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.ila-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.ila-badge.pending { background: #e6f9eb; color: #34c759; }
.ila-badge.processed { background: #ebf5ff; color: #007aff; }

.ila-uploader { font-size: 12px; color: #666; }

.ila-note {
  margin: 8px 0;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

.ila-card-btm {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
  border-top: 1px dashed #eee;
  padding-top: 8px;
  gap: 8px;
}

.ila-date-info { display: flex; flex-direction: column; gap: 2px; color: #999; }

.ila-actions { display: flex; gap: 8px; }

.ila-process-btn {
  background: #fa5151;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ila-detail-btn {
  background: transparent;
  border: none;
  color: #07c160;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.ila-empty, .ila-loading {
  padding: 40px;
  text-align: center;
  color: #999;
}

.inv-hidden-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.view-invoice-list-staff {
  background: #f2f2f7;
  overflow: hidden;
}

.ils-filter-panel {
  background: #fff;
  padding: 12px;
  border-bottom: 1px solid #e5e5ea;
  flex-shrink: 0;
}

.ils-compact-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.ils-date-unit {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f2f2f7;
  border-radius: 8px;
  padding: 0 8px;
  min-height: 36px;
}

.ils-u-label {
  font-size: 11px;
  color: #8e8e93;
  margin-right: 4px;
  white-space: nowrap;
}

.ils-u-pickers {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
}

.ils-date-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 11px;
  color: #1c1c1e;
  font-weight: 700;
  min-width: 0;
}

.ils-u-sep { font-size: 11px; color: #c7c7cc; }

.ils-filter-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ils-amount-wrap {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  background: #f2f2f7;
  border-radius: 8px;
  padding: 0 8px;
  min-height: 36px;
}

.ils-amount-inputs {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ils-amount-inputs input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 12px;
  text-align: center;
  min-width: 0;
}

.ils-status-group { display: flex; gap: 6px; }

.ils-s-tag {
  font-size: 11px;
  padding: 8px 10px;
  background: #f2f2f7;
  color: #8e8e93;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.ils-s-tag.active { background: #007aff; color: #fff; }

.ils-reset-btn {
  border: none;
  background: #e5e5ea;
  color: #3a3a3c;
  font-size: 12px;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.ils-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px 16px;
}

.ils-item {
  display: block;
  width: 100%;
  background: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  text-align: left;
  cursor: pointer;
}

.ils-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid #f2f2f7;
  padding-bottom: 8px;
}

.ils-amt { font-size: 22px; font-weight: 800; color: #ff2d55; }

.ils-tag-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.ils-status-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.ils-status-tag.new { background: #e6f9eb; color: #34c759; }
.ils-status-tag.done { background: #ebf5ff; color: #007aff; }

.ils-type-tag {
  font-size: 10px;
  color: #8e8e93;
  background: #f2f2f7;
  padding: 2px 8px;
  border-radius: 6px;
}

.ils-item-body .ils-row {
  display: flex;
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.ils-dual-date { justify-content: space-between; gap: 8px; }
.ils-dual-date .date-sub { display: flex; flex: 1; min-width: 0; }
.ils-item-body .l { color: #8e8e93; min-width: 36px; flex-shrink: 0; }
.ils-item-body .r { color: #1c1c1e; flex: 1; word-break: break-all; }

.ils-empty {
  text-align: center;
  color: #aeaeb2;
  padding: 48px 16px;
  font-size: 14px;
}

.view-invoice-detail {
  background: #f2f2f7;
  overflow: hidden;
}

.inv-detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.inv-detail-hero {
  background: #fff;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.inv-detail-badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 10px;
}

.inv-detail-badge.pending { background: #e6f9eb; color: #34c759; }
.inv-detail-badge.processed { background: #ebf5ff; color: #007aff; }

.inv-detail-amount {
  font-size: 32px;
  font-weight: 800;
  color: #ff2d55;
}

.inv-detail-type {
  font-size: 13px;
  color: #8e8e93;
  margin-top: 6px;
}

.inv-detail-card {
  background: #fff;
  border-radius: 16px;
  padding: 4px 16px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.inv-detail-cell {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f2f2f7;
  font-size: 14px;
}

.inv-detail-cell.no-border { border-bottom: none; }
.inv-detail-cell .l { color: #8e8e93; flex-shrink: 0; }
.inv-detail-cell .r { color: #1c1c1e; text-align: right; word-break: break-all; }
.inv-detail-cell .r.multiline { text-align: left; flex: 1; }

.inv-detail-files-wrap { margin-top: 8px; padding-top: 12px; border-top: 1px solid #f2f2f7; }

.inv-detail-files-title {
  font-size: 12px;
  color: #8e8e93;
  margin-bottom: 10px;
  font-weight: 600;
}

.inv-detail-files {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inv-detail-thumb,
.inv-detail-pdf {
  width: 78px;
  height: 78px;
  border: none;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #f2f2f7;
}

.inv-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inv-detail-pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.inv-detail-no-file {
  font-size: 13px;
  color: #aeaeb2;
  padding: 12px 0;
}
