/* Schichttausch 005 content only. Existing Shell 004 adapter is unchanged. */
.swaps-page { max-width: 1120px; }
.swaps-page .swaps-head { position: static; height: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 22px; padding: 0; border: 0; background: transparent; }
.swaps-head-copy { min-width: 0; }
.swaps-page .swaps-title { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.035em; }
.swaps-subtitle { max-width: 760px; margin: 7px 0 0; color: #a8abb0; line-height: 1.55; }
.swaps-page .swaps-button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 1px solid #35383d; border-radius: 8px; background: #17191c; color: #f4f5f6; font: inherit; font-weight: 700; cursor: pointer; }
.swaps-page .swaps-button:hover { background: #222529; }
.swaps-page .swaps-button--primary { border-color: #1568d4; background: #1568d4; }
.swaps-page .swaps-button--primary:hover { background: #0f58b8; }
.swaps-page .swaps-button--danger { border-color: #71323b; background: #321b20; color: #ffccd3; }
.swaps-page .swaps-button--danger:hover { background: #482129; }
.swaps-plus { font-size: 24px; line-height: 1; font-weight: 400; }
.swaps-section { margin-top: 24px; }
.swaps-page .swaps-section-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 9px; color: #dfe1e4; font-size: 15px; letter-spacing: -.01em; }
.swaps-section-heading::after { content: ''; height: 1px; flex: 1; background: #292c30; }
.swaps-list { display: grid; gap: 8px; }
.swaps-row { min-width: 0; display: grid; grid-template-columns: minmax(180px,.9fr) minmax(240px,1.2fr) auto auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #292c30; border-radius: 8px; background: #17191b; }
.swaps-pair { min-width: 0; display: flex; align-items: center; gap: 10px; }
.swaps-pair > div, .swaps-shifts { min-width: 0; }
.swaps-pair-mark { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border: 1px solid #35383d; border-radius: 8px; color: #87bbfb; }
.swaps-pair strong, .swaps-shifts strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.swaps-pair small, .swaps-shifts small { display: block; margin-top: 4px; color: #a8abb0; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.swaps-status { min-height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; border: 1px solid #454a50; border-radius: 999px; color: #d1d4d7; font-size: 11px; font-weight: 800; white-space: nowrap; justify-self: end; }
.swaps-status--accepted { border-color: #356849; background: #173122; color: #a8e5bd; }
.swaps-status--reject, .swaps-status--cancel { color: #b8bbc0; }
.swaps-actions { display: flex; justify-content: flex-end; gap: 8px; }
.swaps-actions:empty { display: none; }
.swaps-empty { padding: 28px 16px; border: 1px dashed #404349; border-radius: 8px; color: #a8abb0; text-align: center; }
/* These rules match only while this feature owns the existing shared dialog. */
#dialog:has(.swaps-dialog-content) { inset: 0; margin: auto; width: min(680px,calc(100vw - 28px)); max-width: calc(100vw - 28px); max-height: calc(100dvh - 28px); padding: 0; overflow: auto; border: 1px solid #35383d; border-radius: 10px; background: #191b1e; color: #f4f5f6; }
#dialog:has(.swaps-dialog-content) #dialog-form { min-width: 0; }
#dialog:has(.swaps-dialog-content) .dialog-heading { position: static; margin: 0; width: auto; padding: 15px 16px; border-bottom: 1px solid #292c30; }
#dialog:has(.swaps-dialog-content) #dialog-cancel { background: #17191c; border-color: #35383d; color: #f4f5f6; box-shadow: none; }
#dialog:has(.swaps-dialog-content) #dialog-title { margin: 0; font-size: 19px; }
#dialog:has(.swaps-dialog-content) #dialog-body { padding: 16px; }
#dialog:has(.swaps-dialog-content) #dialog-error { margin: 0 16px; overflow-wrap: anywhere; }
#dialog:has(.swaps-dialog-content) .dialog-actions { padding: 13px 16px; border-top: 1px solid #292c30; margin: 0; }
#dialog:has(.swaps-dialog-content) button, .swaps-dialog-content input:not([type=hidden]), .swaps-dialog-content select { min-height: 44px; min-width: 44px; }
#dialog:has(.swaps-dialog-content) #dialog-close { width: 44px; height: 44px; padding: 0; }
.swaps-form-grid, .swaps-decision-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 13px; }
.swaps-dialog-content .field, .swaps-dialog-content .calendar-field { min-width: 0; margin: 0; align-content: start; }
.swaps-dialog-content .field select { height: 44px; }
.swaps-dialog-content select, .swaps-dialog-content input { width: 100%; min-width: 0; max-width: 100%; }
.swaps-dialog-content .date-parts { display: grid; grid-template-columns: minmax(44px,1fr) minmax(44px,1fr) minmax(66px,1.5fr); gap: 6px; }
.swaps-dialog-content .date-parts label { min-width: 0; }
.swaps-dialog-content .date-parts input { padding: 8px 5px; }
.swaps-note { margin: 14px 0 0; padding: 10px 12px; border: 1px solid #35383d; border-radius: 8px; background: #17191c; color: #aeb2b7; font-size: 13px; line-height: 1.55; }
.swaps-decision-card { min-width: 0; padding: 13px; border: 1px solid #35383d; border-radius: 8px; background: #17191c; overflow-wrap: anywhere; }
.swaps-decision-card p { color: #a8abb0; margin: 7px 0 0; font-size: 13px; }
.swaps-page button:focus-visible, #dialog:has(.swaps-dialog-content) :is(button,input,select):focus-visible { outline: 3px solid #6bb7ff; outline-offset: 3px; }
@media (max-width: 1150px) {
  .swaps-row { grid-template-columns: minmax(150px,.9fr) minmax(0,1.2fr) auto; }
  .swaps-actions { grid-column: 1/-1; justify-content: flex-start; padding-left: 42px; }
}
@media (max-width: 700px) {
  .swaps-page .swaps-head { align-items: flex-start; }
  .swaps-page .swaps-title { font-size: 27px; }
  .swaps-subtitle { font-size: 14px; }
  .swaps-head #swaps-create { width: 44px; min-width: 44px; padding: 0; flex: 0 0 44px; }
  .swaps-head .swaps-create-label { display: none; }
  .swaps-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 12px; }
  .swaps-pair { grid-column: 1; }
  .swaps-status { grid-column: 2; grid-row: 1; }
  .swaps-shifts { grid-column: 1/-1; padding-top: 9px; border-top: 1px solid #292c30; }
  .swaps-actions { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: 0; }
  .swaps-actions:empty { display: none; }
  .swaps-actions .swaps-button:only-child { grid-column: 1/-1; }
  .swaps-form-grid, .swaps-decision-grid { grid-template-columns: minmax(0,1fr); }
  #dialog:has(.swaps-dialog-content) .dialog-actions { flex-wrap: wrap; }
  #dialog:has(.swaps-dialog-content) .dialog-actions button { flex: 1 1 100px; }
}
