.roster-button .output-button-svg {
  color: #df0038;
}

.roster-dialog {
  width: min(720px, calc(100vw - 28px));
}

.roster-dialog-card {
  width: 100%;
  max-height: min(86vh, 820px);
  overflow: auto;
}

.roster-toolbar {
  margin: 2px 0 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #ded9d6;
  background: #f8f7f6;
}

.roster-toolbar strong {
  font-size: 13px;
}

.roster-toolbar span {
  color: #6b6662;
  font-size: 11px;
  text-align: right;
}

.roster-list {
  display: grid;
  gap: 8px;
}

.roster-row {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
  align-items: center;
  gap: 14px;
  border: 1px solid #ddd8d4;
  background: #fff;
}

.roster-row-missing {
  border-left: 3px solid #df0038;
}

.roster-person {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.roster-person strong {
  font-size: 13px;
  line-height: 1.25;
}

.roster-person small {
  color: #77716d;
  font-size: 10px;
}

.roster-position-select {
  width: 100%;
  min-height: 42px;
  padding: 0 42px 0 14px;
  border: 1px solid #bbb6b2;
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23171717' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 7px;
  color: #171717;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.roster-position-select:hover {
  border-color: #8f8985;
}

.roster-position-select:focus {
  border-color: #171717;
  outline: 2px solid rgba(23, 23, 23, .08);
  outline-offset: 1px;
}

.roster-message {
  min-height: 18px;
  margin: 10px 0 0;
  color: #c90033;
  font-size: 11px;
  font-weight: 700;
}

.roster-empty {
  margin: 0;
  padding: 20px;
  border: 1px dashed #c9c4c0;
  color: #6d6763;
  text-align: center;
}

.roster-dialog-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.roster-dialog-actions .cloud-secondary-button,
.roster-dialog-actions .cloud-primary-button {
  min-width: 130px;
}

.dayforce-settings-reference {
  margin: 14px 0 16px;
  padding: 14px;
  border: 1px solid #d7d2ce;
  background: #faf9f8;
}

.dayforce-settings-reference-title {
  margin: 0 0 10px;
  color: #171717;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dayforce-settings-reference-grid {
  display: grid;
  gap: 8px;
}

.dayforce-setting-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #3d3936;
  font-size: 11px;
}

.dayforce-setting-box {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  border: 1.5px solid #7d7773;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.dayforce-setting-row.is-on .dayforce-setting-box {
  border-color: #3277d5;
  color: #3277d5;
}

.dayforce-setting-row.is-off {
  color: #6f6965;
}

.dayforce-kpi-chip {
  margin-left: 3px;
  padding: 4px 7px;
  border: 1px solid #aaa4a0;
  background: #fff;
  font-weight: 700;
}

@media (max-width: 580px) {
  .roster-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .roster-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .roster-toolbar span {
    text-align: left;
  }

  .roster-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .roster-dialog-actions button {
    width: 100%;
  }
}


/* Dayforce import settings image */
.dayforce-help-dialog {
  width: min(700px, calc(100vw - 28px));
}

.dayforce-settings-figure {
  margin: 14px 0 16px;
}

.dayforce-settings-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d7d2ce;
  background: #fff;
}

.dayforce-settings-figure figcaption {
  margin-top: 6px;
  color: #6b6662;
  font-size: 10.5px;
  line-height: 1.35;
}

@media (max-width: 580px) {
  .dayforce-settings-figure {
    margin-left: -4px;
    margin-right: -4px;
  }
}


.roster-position-controls {
  display: grid;
  gap: 7px;
}

.roster-keep-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4d4946;
  font-size: 10.5px;
  font-weight: 600;
}

.roster-keep-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #df0038;
}

.roster-temporary-note {
  color: #9b0030 !important;
  font-weight: 700;
}


.roster-remove-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #c9c4c0;
  border-radius: 2px;
  background: #fff;
  color: #6d6763;
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.roster-remove-button:hover {
  border-color: #df0038;
  color: #df0038;
  background: #fff7f9;
}


/* Compact permanent-roster removal control */
.roster-position-controls.has-remove {
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
}

.roster-position-controls.has-remove .roster-position-select {
  grid-column: 1;
}

.roster-remove-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #bbb6b2;
  border-radius: 2px;
  background: #fff;
  color: #5f5a57;
  cursor: pointer;
}

.roster-remove-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roster-remove-button:hover,
.roster-remove-button:focus-visible {
  border-color: #df0038;
  background: #fff7f9;
  color: #df0038;
}

@media (max-width: 580px) {
  .roster-position-controls.has-remove {
    grid-template-columns: minmax(0, 1fr) 42px;
  }
}
