.teamshifts-application-details {
    background-color: #fafafa;
    padding: 1em 2em;
}

.teamshifts-answer-text {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
    display: block;
    max-width: 100%;
}

.teamshifts-answer-list {
    margin: 0;
}

.teamshifts-answer-list dt {
    font-weight: 600;
    margin-top: 0.5em;
}

.teamshifts-answer-list dd {
    margin-left: 0;
    margin-bottom: 0.75em;
}

/* Custom-question form: smaller help-text textarea so it doesn't dominate. */
#id_help_text_0,
#id_help_text_1,
textarea[name^="help_text_"] {
    min-height: 80px;
}

/* Mirror the control panel's .optional styling on the public apply page.
   layout='control' renders <span class="optional"> inside <label>, but the
   presale CSS has no rule for it so it inherits the bold label weight. */
label .optional {
    color: #777;
    font-weight: normal;
    display: block;
}

/* Call text: Edit/Preview tabs */
.description-preview {
    min-height: 120px;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
}

.description-preview > :first-child {
    margin-top: 0;
}

.description-preview > :last-child {
    margin-bottom: 0;
}

.description-preview-group .description-preview + .description-preview {
    margin-top: -1px;
}

.description-preview-note {
    margin-top: 12px;
    margin-bottom: 0;
}

.teamshifts-status-dropdown {
    width: auto;
    display: inline-block;
    border: none;
    padding: 3px 20px 4px 8px;
    height: auto;
    font-size: 75%;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: .25em;
    vertical-align: baseline;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 8px auto;
}

.teamshifts-inline-form {
    display: inline-block;
}

.teamshifts-checkbox-cell {
    padding-right: 0;
}

.teamshifts-filter-bar {
    margin-bottom: 1em;
    overflow: hidden;
}

.teamshifts-select-all-col {
    width: 40px;
    padding-right: 0;
}

.teamshifts-selected-count {
    margin: 0 0 6px 0;
    color: #555;
    font-size: 13px;
}

#pretix-confirm-dialog-cancel.teamshifts-dialog-cancel-hidden,
.teamshifts-dialog-cancel-hidden {
    display: none;
}

.teamshifts-detail-header-container {
    margin-bottom: 20px;
}

.teamshifts-detail-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.teamshifts-detail-title {
    margin: 0;
}

.teamshifts-status-dropdown option {
    color: black;
    background: white;
}

#roles-table .remove-role-btn {
    display: none;
}

#roles-table.js-formset-enabled .remove-role-btn {
    display: inline-block;
}

#roles-table.js-formset-enabled .delete-checkbox {
    display: none;
}

.teamshifts-certificate-progress-bar {
    width: 0%;
}


.ts-panel-table {
    margin-bottom: 0;
}

.ts-detail-label {
    width: 30%;
}

.call-secret-panel {
  margin-top: 20px;
}

.call-secret-input input[readonly] {
  background-color: #fff;
  font-family: monospace;
}

.call-secret-regenerate {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.call-secret-hint {
  font-size: 12px;
}


.my-shifts-event-panel {
  margin-bottom: 24px;
}

.my-shifts-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.my-shifts-event-header .panel-title {
  flex: 1;
}

.my-shifts-event-dates {
  font-size: 90%;
  margin-left: 8px;
}

.my-shifts-event-header .badge {
  margin-left: 6px;
}

.my-shifts-event-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.my-shifts-cert-btn {
  white-space: nowrap;
  opacity: 0.6;
}

.my-shifts-cert-btn:not([disabled]) {
  opacity: 1;
}


.my-shifts-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.my-shifts-badge-role {
  background: #dce8fb;
  color: #1a5ca8;
  border: 1px solid #b3cff5;
}

.my-shifts-badge-moderator {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffe082;
}

.my-shifts-badge-self {
  background: #d4edda;
  color: #155724;
  border: 1px solid #b8dfc4;
}

.my-shifts-badge-assigned {
  background: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}

.richtext-preview,
.mail-preview {
  min-height: 80px;
}

.ts-mt-10 {
  margin-top: 10px;
}

.ts-mb-1_5em {
  margin-bottom: 1.5em;
}

.ts-hidden {
  display: none;
}

.ts-label-chip {
  display: inline-block;
  margin-bottom: 2px;
}

.ts-qa-question {
  width: 40%;
}
