.advance-modal .advance-control small {
  display: block;
  margin-top: 7px;
  color: #637f8f;
  font-size: 12px;
  line-height: 1.45;
}

.advance-modal .advance-control input[type="file"] {
  padding: 8px;
  background: #f7fbfc;
}

.advance-modal .advance-control input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid #b9d5dc;
  border-radius: 8px;
  padding: 8px 12px;
  background: #e9f6f5;
  color: #086d70;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.advance-attachment-section {
  border-top: 1px solid #e0ebee;
  padding-top: 20px;
}

.advance-attachment-section > p {
  margin: 0 0 13px;
  color: #637f8f;
  font-size: 13px;
  line-height: 1.5;
}

.advance-receipt-choice {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  border: 0;
  padding: 0;
}

.advance-receipt-choice legend {
  margin-bottom: 9px;
  color: #234f65;
  font-size: 13px;
  font-weight: 750;
}

.advance-receipt-choice label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #d3e3e7;
  border-radius: 11px;
  padding: 12px 14px;
  background: #fbfdfd;
  color: #28566b;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.advance-receipt-choice label:has(input:checked) {
  border-color: #0a918b;
  background: #eaf8f6;
  box-shadow: inset 3px 0 #0a918b;
}

.advance-receipt-choice input {
  flex: none;
  margin: 2px 0 0;
  accent-color: #087f7c;
}

.advance-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: 10px;
  margin-top: 11px;
}

.advance-attachment-card {
  display: grid;
  grid-template-columns: 68px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid #d6e6e9;
  border-radius: 12px;
  padding: 8px;
  background: #f9fcfc;
}

.advance-attachment-card img {
  width: 68px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  background: #e4f0f2;
}

.advance-attachment-card strong,
.advance-attachment-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advance-attachment-card strong {
  color: #163d53;
  font-size: 12px;
}

.advance-attachment-card small {
  margin: 3px 0 7px;
  color: #668392;
  font-size: 11px;
}

.advance-attachment-card button {
  padding: 5px 9px;
  border-color: #e6c9c3;
  color: #a34437;
  font-size: 11px;
}

.advance-attachment-empty,
.advance-attachment-hint {
  margin: 0;
  border: 1px dashed #c7dce2;
  border-radius: 10px;
  padding: 12px;
  background: #f7fbfc;
  color: #64808f;
  font-size: 12px;
}

@media (max-width: 520px) {
  .advance-attachment-grid { grid-template-columns: 1fr; }
}
