[data-afas-sync] { min-width: 0; color: #23343c; }
[data-afas-sync] *, [data-afas-sync] *::before, [data-afas-sync] *::after { box-sizing: border-box; letter-spacing: 0; }
.afs-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.afs-heading h2, .afs-heading h3 { margin: 0; }
.afs-heading h2 { font-size: 22px; }
.afs-section { border: 1px solid #c5d5de; border-radius: 5px; padding: 0; margin: 0 0 10px; min-width: 0; }
.afs-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 14px; cursor: pointer; list-style: none; background: #edf3f6; color: #233e50; font-size: 15px; font-weight: 650; white-space: normal; word-break: normal; overflow-wrap: normal; }
.afs-section > summary::-webkit-details-marker { display: none; }
.afs-section > summary::after { content: '+'; font: 22px/1 system-ui; width: 24px; flex: 0 0 24px; text-align: center; }
.afs-section[open] > summary::after { content: '-'; }
.afs-section > summary:hover { background: #e1edf2; }
.afs-section-body { padding: 16px; min-width: 0; }
.afs-section h3 { font-size: 17px; margin: 0 0 12px; }
.afs-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 16px; }
.afs-field { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 6px; min-width: 0; font-size: 14px; text-align: left; }
.afs-field > span { display: block; white-space: normal; word-break: normal; overflow-wrap: normal; width: auto; }
.afs-field input, .afs-field select { width: 100%; min-width: 0; height: 42px; padding: 8px 10px; background: #fff; color: #23343c; border: 1px solid #97aeb9; border-radius: 5px; font: inherit; }
.afs-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.afs-controls .afs-field { flex: 0 1 300px; }
.afs-primary-actions { padding-bottom: 20px; }
.afs-check { display: inline-flex !important; align-items: center !important; gap: 8px; font-size: 14px; }
.afs-check input[type="checkbox"] { appearance: auto; width: 18px !important; height: 18px !important; flex: 0 0 18px; margin: 0; padding: 0; }
.afs-mapping { border: 0; padding: 0; margin: 0; min-width: 0; }
.afs-mapping legend { padding: 0 10px 0 0; font-weight: 700; font-size: 16px; }
.afs-mapping-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.afs-mapping-head .afs-field { flex: 1; }
[data-afas-sync] .btn { min-width: 42px; min-height: 42px; width: auto; flex-shrink: 0; white-space: normal; word-break: normal; overflow-wrap: normal; }
[data-afas-sync] .icon-only { width: 42px; flex: 0 0 42px; }
[data-afas-sync] :focus-visible { outline: 3px solid #087e8b; outline-offset: 3px; }
.afs-error { color: #a32330; font-size: 14px; max-width: 500px; white-space: normal; }
.afs-empty { padding: 12px 0; color: #546774; font-size: 14px; }
.afs-domain-schedule { margin: 14px 0 0; color: #435762; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.afs-table-wrap { max-width: 100%; overflow: auto; }
.afs-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 650px; }
.afs-table-wrap th, .afs-table-wrap td { padding: 10px; border-bottom: 1px solid #d3dee3; text-align: left; vertical-align: top; white-space: normal; word-break: normal; }
.afs-table-wrap th { background: #eef4f6; color: #23343c; font-weight: 600; }
@media (max-width:600px) { .afs-heading h2 { font-size: 20px; } .afs-controls { align-items: stretch; } .afs-controls .afs-field { flex-basis: 100%; } .afs-primary-actions .btn { flex: 1 1 180px; } }
