.bsr-solutions-shell {


  max-width: 1400px;


  margin: 0 auto;


  padding: 24px;


}


.bsr-solutions-grid {


  display: grid;


  grid-template-columns: minmax(260px, 0.75fr) minmax(520px, 2fr);


  gap: 18px;


  align-items: start;


}


.bsr-solutions-fields {


  display: grid;


  grid-template-columns: repeat(3, minmax(0, 1fr));


  gap: 12px;


}


.bsr-solutions-list {


  margin-top: 18px;


}


.bsr-solutions-list table {


  min-width: 1050px;


}


.bsr-solutions-list form {


  margin: 0;


}


.bsr-notice-success {


  background: #eaf7ef;


  border: 1px solid #9bd0ad;


  padding: 12px 14px;


  border-radius: 10px;


  margin: 12px 0;


}


.bsr-notice-error {


  background: #fff0f0;


  border: 1px solid #e2aaaa;


  padding: 12px 14px;


  border-radius: 10px;


  margin: 12px 0;


}


@media (max-width: 900px) {


  .bsr-solutions-grid {


    grid-template-columns: 1fr;


  }


  .bsr-solutions-fields {


    grid-template-columns: 1fr 1fr;


  }


}


@media (max-width: 620px) {


  .bsr-solutions-shell {


    padding: 14px;


  }


  .bsr-solutions-fields {


    grid-template-columns: 1fr;


  }


}


.bsr-solutions-fields label input[type="text"] {


  margin-top: 6px;


}


.bsr-solutions-table {


  min-width: max-content;


}


.bsr-solutions-table .bsr-class-release {


  text-align: center;


  white-space: nowrap;


  min-width: 72px;


}


.bsr-solutions-table td:last-child {


  white-space: nowrap;


}


.bsr-solutions-table td:last-child form {


  display: inline-block;


  margin-right: 8px;


}





.bsr-student-solutions {


  margin-top: 22px;


}


.bsr-student-solutions h2 {


  margin-top: 2px;


}


.bsr-student-solutions .bsr-user-table-wrap {


  overflow-x: auto;


}


.bsr-student-solutions .bsr-solutions-table {


  width: 100%;


  min-width: 820px;


}


.bsr-student-solutions .bsr-solution-view {


  min-height: 34px;


  padding: 7px 13px;


  white-space: nowrap;


}


.bsr-student-solutions td:last-child,


.bsr-student-solutions th:last-child {


  text-align: right;


  white-space: nowrap;


}





.bsr-solution-edit-card {


  margin: 24px 0;


}


.bsr-edit-actions {


  display: flex;


  gap: 10px;


  flex-wrap: wrap;


  align-items: center;


}


.bsr-solutions-table td:last-child {


  white-space: nowrap;


}


.bsr-solutions-table td:last-child form,


.bsr-solutions-table td:last-child a {


  display: inline-block;


  margin-right: 8px;


}


.bsr-choice-row {


  display: flex;


  gap: 6px;


  align-items: center;


}


.bsr-choice-row select {


  min-width: 0;


  flex: 1;


}


.bsr-choice-add {


  width: 34px;


  height: 34px;


  border: 1px solid #d7c9bc;


  border-radius: 8px;


  background: #fff;


  cursor: pointer;


  font-size: 20px;


  line-height: 1;


}


.bsr-choice-new {


  margin-top: 6px;


}


.bsr-sortable-table thead tr:first-child th[data-sort] {


  cursor: pointer;


  user-select: none;


}


.bsr-sortable-table thead tr:first-child th[data-sort]::after {


  content: " ↕";


  opacity: 0.35;


}


.bsr-sortable-table thead tr:first-child th[data-direction="asc"]::after {


  content: " ↑";


  opacity: 1;


}


.bsr-sortable-table thead tr:first-child th[data-direction="desc"]::after {


  content: " ↓";


  opacity: 1;


}


.bsr-filter-row th {


  padding: 5px;


}


.bsr-filter-row select,


.bsr-filter-row input {


  width: 100%;


  min-width: 82px;


  padding: 6px;


  font-size: 12px;


}


.bsr-filter-reset {


  border: 0;


  background: none;


  text-decoration: underline;


  cursor: pointer;


  white-space: nowrap;


}


.bsr-solution-user-card {


  margin-top: 18px;


}


.bsr-user-create {


  margin: 12px 0 18px;


}


.bsr-user-create > summary {


  display: inline-flex;


  list-style: none;


  cursor: pointer;


}


.bsr-user-create > summary::-webkit-details-marker {


  display: none;


}


.bsr-user-create-form {


  display: grid;


  grid-template-columns: repeat(4, minmax(150px, 1fr));


  gap: 12px;


  margin-top: 14px;


  align-items: end;


}


.bsr-user-create-form fieldset {


  grid-column: 1/-1;


}


.bsr-user-create-form button {


  justify-self: start;


}


.bsr-user-class-picker {


  display: flex;


  flex-wrap: wrap;


  gap: 8px 14px;


  border: 0;


  padding: 0;


  margin: 0;


}


.bsr-user-class-picker label {


  display: inline-flex;


  align-items: center;


  gap: 4px;


  white-space: nowrap;


}


.bsr-user-class-inline {


  min-width: 220px;


}


.bsr-user-table-tools {


  display: flex;


  justify-content: flex-end;


  margin: 10px 0;


}


.bsr-user-table-tools input {


  min-width: 300px;


}


.bsr-student-admin-table {


  min-width: 1150px;


}


.bsr-student-admin-table th[data-sort] {


  cursor: pointer;


}


.bsr-student-admin-table td input[type="password"] {


  min-width: 150px;


}


.bsr-student-admin-table td:last-child {


  white-space: nowrap;


}


@media (max-width: 900px) {


  .bsr-user-create-form {


    grid-template-columns: 1fr 1fr;


  }


}


@media (max-width: 620px) {


  .bsr-user-create-form {


    grid-template-columns: 1fr;


  }


  .bsr-user-table-tools input {


    min-width: 0;


    width: 100%;


  }


}





.bsr-account-grid {


  display: grid;


  grid-template-columns: repeat(3, minmax(0, 1fr));


  gap: 16px;


}


.bsr-account-form {


  display: grid;


  gap: 12px;


}


.bsr-account-form label {


  display: grid;


  gap: 5px;


}


.bsr-account-form input,


.bsr-account-form select {


  width: 100%;


}


.bsr-single-user-form {


  display: none;


}


.bsr-permission-admin .bsr-user-table-wrap {


  overflow-x: auto;


}


.bsr-permission-table {


  width: 100%;


  min-width: 0;


  table-layout: fixed;


  font-size: 11px;


}


.bsr-permission-table th,


.bsr-permission-table td {


  padding: 5px 4px;


  line-height: 1.2;


  overflow-wrap: anywhere;


}


.bsr-permission-table th:first-child,


.bsr-permission-table td:first-child {


  width: 28px;


  text-align: center;


}


.bsr-permission-table th:nth-child(2) {


  width: 100px;


}


.bsr-permission-table th:nth-child(3) {


  width: 135px;


}


.bsr-permission-table th:nth-child(4),


.bsr-permission-table th:nth-child(5) {


  width: 92px;


}


.bsr-permission-table th:last-child {


  width: 82px;


}


.bsr-permission-table .bsr-button {


  padding: 6px 8px;


  min-height: 30px;


  font-size: 11px;


}


.bsr-permission-cell {


  min-width: 0;


  vertical-align: top;


}


.bsr-permission-cell label {


  display: inline-flex;


  align-items: center;


  gap: 2px;


  margin: 0 6px 3px 0;


  white-space: nowrap;


}


.bsr-permission-cell input[type="checkbox"] {


  margin: 0;


}


.bsr-class-main {


  display: inline-flex !important;


  margin-bottom: 4px !important;


}


.bsr-subject-grid,


.bsr-access-grid {


  display: flex;


  flex-wrap: wrap;


  align-items: center;


  gap: 1px 0;


  font-size: 11px;


}


.bsr-access-grid {


  border-top: 1px solid #eee;


  margin-top: 3px;


  padding-top: 4px;


}


.bsr-bulk-permissions {


  display: flex;


  flex-wrap: wrap;


  gap: 8px;


  margin: 10px 0;


}


.bsr-bulk-permissions details {


  border: 1px solid #ddd;


  border-radius: 8px;


  padding: 7px 10px;


}


.bsr-bulk-permissions label {


  margin-right: 10px;


  white-space: nowrap;


}


.bsr-user-table-tools {


  display: flex;


  gap: 12px;


  align-items: end;


  flex-wrap: wrap;


}


.bsr-ext-user-heading {


  display: flex;


  align-items: center;


  justify-content: space-between;


  gap: 12px;


}


.bsr-user-password {


  width: 132px;


  min-width: 112px;


}


@media (max-width: 1000px) {


  .bsr-account-grid {


    grid-template-columns: 1fr;


  }


  .bsr-permission-table {


    min-width: 1050px;


  }


}




/* Schülerlisten-Import */

.bsr-student-import-panel {

  margin: 14px 0 18px;

  padding: 14px;

  border: 1px solid #dde3ea;

  border-radius: 12px;

  background: #fff;

}

.bsr-student-import-heading {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 16px;

  margin-bottom: 12px;

}

.bsr-student-import-heading h3 {

  margin: 0 0 4px;

}

.bsr-student-import-heading p,

.bsr-student-import-help,

.bsr-account-hint {

  margin: 0;

  font-size: 12px;

  line-height: 1.45;

}

.bsr-student-import-count {

  white-space: nowrap;

  font-size: 11px;

  font-weight: 700;

  padding: 5px 8px;

  border-radius: 999px;

  background: #f1f4f7;

}

.bsr-student-import-form {

  display: grid;

  grid-template-columns: minmax(120px, .8fr) minmax(150px, 1fr) minmax(220px, 1.5fr) auto;

  gap: 10px;

  align-items: end;

}

.bsr-student-import-form label {

  display: grid;

  gap: 4px;

  min-width: 0;

}

.bsr-student-import-form label > span {

  font-size: 11px;

  font-weight: 700;

}

.bsr-student-import-form select,

.bsr-student-import-form input[type="file"] {

  width: 100%;

  min-width: 0;

}

.bsr-student-import-help {

  margin-top: 8px;

}

.bsr-student-import-list {

  margin-top: 12px;

}

.bsr-student-import-list summary {

  cursor: pointer;

  font-weight: 700;

  font-size: 12px;

}

.bsr-import-table {

  margin-top: 8px;

  font-size: 11px;

}

.bsr-import-table th,

.bsr-import-table td {

  padding: 6px 7px;

}

.bsr-permission-pending {

  font-weight: 700;

}

.bsr-permission-pending-notice {

  margin: 12px 0;

}

@media (max-width: 1000px) {

  .bsr-student-import-form {

    grid-template-columns: 1fr 1fr;

  }

}

@media (max-width: 640px) {

  .bsr-student-import-heading {

    display: grid;

  }

  .bsr-student-import-form {

    grid-template-columns: 1fr;

  }

}


/* Benutzerverwaltung 1.10.0: Auswahl, Sortierung und Löschaktionen */
.bsr-permission-table th:nth-child(4),
.bsr-permission-table td:nth-child(4) {
  width: 78px;
}
.bsr-permission-table th:nth-child(5),
.bsr-permission-table td:nth-child(5) {
  width: 105px;
}
.bsr-permission-table th:nth-child(6),
.bsr-permission-table td:nth-child(6),
.bsr-permission-table th:nth-child(7),
.bsr-permission-table td:nth-child(7) {
  width: 92px;
}
.bsr-permission-table td:nth-child(4),
.bsr-permission-table td:nth-child(5) {
  font-weight: 650;
}
.bsr-permission-table .bsr-danger,
.bsr-import-table-tools .bsr-danger {
  border-color: #c44132;
  color: #9f2f23;
}
.bsr-permission-table .bsr-danger:hover,
.bsr-import-table-tools .bsr-danger:hover {
  background: #fff2ef;
}
.bsr-import-management-form {
  margin-top: 8px;
}
.bsr-import-table-tools {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.bsr-import-table-tools label {
  display: grid;
  gap: 3px;
  margin-right: auto;
}
.bsr-import-table-tools label > span {
  font-size: 10px;
  font-weight: 700;
}
.bsr-import-table-tools input[type="search"] {
  min-width: 260px;
}
.bsr-import-table {
  width: 100%;
  table-layout: fixed;
}
.bsr-import-table th:first-child,
.bsr-import-table td:first-child {
  width: 28px;
  text-align: center;
}
.bsr-import-table th:nth-child(2) { width: 135px; }
.bsr-import-table th:nth-child(3) { width: 190px; }
.bsr-import-table th:nth-child(4) { width: 90px; }
.bsr-import-table th:nth-child(5) { width: 120px; }
.bsr-import-table th:nth-child(6) { width: 80px; }
.bsr-import-table th:nth-child(7) { width: 115px; }
.bsr-import-table td {
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .bsr-import-table {
    min-width: 850px;
  }
  .bsr-import-table-tools input[type="search"] {
    min-width: 0;
    width: min(100%, 320px);
  }
}
.bsr-user-table-tools .bsr-danger {
  border-color: #c44132;
  color: #9f2f23;
}
.bsr-user-table-tools .bsr-danger:hover {
  background: #fff2ef;
}


/* Benutzerverwaltung 1.11.0: manuelle Schüleranlage */
.bsr-student-create-panel {
  background: #fbfcfe;
}
.bsr-student-create-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}
.bsr-student-create-form label {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.bsr-student-create-form label > span,
.bsr-student-create-access > span {
  font-size: 11px;
  font-weight: 700;
}
.bsr-student-create-form input,
.bsr-student-create-form select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.bsr-student-create-access {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.bsr-student-create-access > div {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 9px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
}
.bsr-student-create-access strong {
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f4f7;
}
@media (max-width: 1100px) {
  .bsr-student-create-form {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}
@media (max-width: 640px) {
  .bsr-student-create-form {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
 * Lösungen verwalten – OneDrive Admin 2.0.0
 * Umsetzung nach freigegebenem Entwurf (Adminbereich)
 * ========================================================= */
.bsr-solutions-admin-v2 {
    --sol-ink: #092b57;
    --sol-muted: #61718a;
    --sol-orange: #f45b00;
    --sol-orange-dark: #d94d00;
    --sol-border: #ead9c8;
    --sol-card: #fffefd;
    --sol-soft: #fff8f1;
    --sol-head: #f7eee4;
    --sol-blue-bg: #eef8ff;
    --sol-blue-border: #b9ddfb;
    --sol-green: #129648;
    --sol-green-bg: #effbf2;
    --sol-green-border: #9fe0af;
    background: #fff9f3;
    color: var(--sol-ink);
    min-height: 100vh;
}

.bsr-solutions-admin-v2 .bsr-solutions-shell-v2 {
    max-width: 1420px;
    padding-top: 18px;
}

.bsr-solutions-admin-v2 .bsr-solutions-back {
    align-items: center;
    color: var(--sol-orange);
    display: inline-flex;
    font-size: .73rem;
    font-weight: 720;
    gap: 5px;
    margin: 0 0 10px 4px;
    text-decoration: none;
}

.bsr-solutions-v2-intro {
    align-items: start;
    display: flex;
    gap: 22px;
    justify-content: space-between;
    margin: 0 auto 14px;
    padding: 0 4px;
}

.bsr-solutions-v2-intro .bsr-kicker,
.bsr-solution-editor-card > .bsr-kicker,
.bsr-quick-release-heading .bsr-kicker {
    color: var(--sol-orange);
    font-size: .63rem;
    font-weight: 850;
    letter-spacing: .12em;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.bsr-solutions-v2-intro h1 {
    color: var(--sol-ink);
    font-size: clamp(1.65rem, 2.3vw, 2.45rem);
    letter-spacing: -.04em;
    line-height: 1.02;
    margin: 0;
}

.bsr-solutions-v2-intro > div:first-child > p:last-child {
    color: #304d6e;
    font-size: .78rem;
    margin: 5px 0 0;
}

.bsr-onedrive-pill {
    align-items: center;
    background: var(--sol-blue-bg);
    border: 1px solid var(--sol-blue-border);
    border-radius: 999px;
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    margin-top: 8px;
    min-width: 245px;
    padding: 10px 18px;
}

.bsr-onedrive-pill .bsr-cloud-icon {
    color: #0877cf;
    font-size: 1.55rem;
    line-height: 1;
}

.bsr-onedrive-pill strong,
.bsr-onedrive-pill small {
    display: block;
}

.bsr-onedrive-pill strong {
    color: #0756a0;
    font-size: .71rem;
    font-weight: 820;
}

.bsr-onedrive-pill small {
    color: #496f91;
    font-size: .6rem;
    margin-top: 2px;
}

.bsr-onedrive-pill.is-disconnected {
    background: #fff5eb;
    border-color: #efc9a7;
}

.bsr-onedrive-pill.is-disconnected .bsr-cloud-icon,
.bsr-onedrive-pill.is-disconnected strong {
    color: #b85d1c;
}

.bsr-solutions-admin-v2 .bsr-admin-card {
    background: var(--sol-card);
    border: 1px solid var(--sol-border);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(79, 50, 22, .045);
}

.bsr-solution-editor-card {
    padding: 18px 20px 16px;
}

.bsr-solution-editor-card > h2,
.bsr-quick-release-heading h2 {
    color: var(--sol-ink);
    font-size: 1.3rem;
    letter-spacing: -.025em;
    line-height: 1.16;
    margin: 0;
}

.bsr-solution-editor-form {
    margin-top: 8px;
}

.bsr-solution-form-grid {
    align-items: end;
    display: grid;
    gap: 11px 14px;
    grid-template-columns: minmax(150px, .75fr) minmax(190px, .85fr) minmax(210px, .95fr) minmax(240px, 1.2fr);
}

.bsr-solution-field {
    color: var(--sol-ink);
    display: grid;
    font-size: .67rem;
    font-weight: 760;
    gap: 5px;
    min-width: 0;
}

.bsr-solution-field > span:first-child em {
    color: #d91e18;
    font-style: normal;
}

.bsr-solution-field input,
.bsr-solution-field select,
.bsr-quick-release-tools input,
.bsr-quick-release-tools select {
    background: #fff;
    border: 1.5px solid #dfd0c2;
    border-radius: 8px;
    box-sizing: border-box;
    color: #16395f;
    font: inherit;
    font-size: .72rem;
    min-height: 36px;
    outline: none;
    padding: 0 10px;
    width: 100%;
}

.bsr-solution-field input:focus,
.bsr-solution-field select:focus,
.bsr-quick-release-tools input:focus,
.bsr-quick-release-tools select:focus {
    border-color: var(--sol-orange);
    box-shadow: 0 0 0 3px rgba(244, 91, 0, .09);
}

.bsr-solution-field input[readonly] {
    background: #fffdfa;
}

.bsr-solution-path-field {
    grid-column: 4;
    grid-row: 2 / span 2;
}

.bsr-solution-path-field > input {
    min-height: 38px;
}

.bsr-solution-path-actions {
    display: grid;
    gap: 7px;
    grid-template-columns: 1.18fr .86fr .86fr;
}

.bsr-solutions-admin-v2 .bsr-button {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: .68rem;
    font-weight: 760;
    gap: 6px;
    justify-content: center;
    min-height: 34px;
    padding: 6px 11px;
    text-decoration: none;
    white-space: nowrap;
}

.bsr-solutions-admin-v2 .bsr-button-solid {
    background: linear-gradient(180deg, #ff6b00 0%, #ed5400 100%);
    border-color: #ed5400;
    color: #fff;
}

.bsr-solutions-admin-v2 .bsr-button-solid:hover {
    background: var(--sol-orange-dark);
}

.bsr-solutions-admin-v2 .bsr-button-outline {
    background: #fff;
    border: 1.4px solid var(--sol-orange);
    color: var(--sol-orange);
}

.bsr-solutions-admin-v2 .bsr-button-danger-outline {
    background: #fff;
    border: 1.4px solid #e74636;
    color: #d53428;
}

.bsr-solutions-admin-v2 .bsr-button:disabled {
    cursor: not-allowed;
    opacity: .43;
}

.bsr-solution-file-status {
    align-items: center;
    background: #fff7ea;
    border: 1px solid #efd8b8;
    border-radius: 9px;
    color: #89551d;
    display: grid;
    gap: 2px;
    margin: 10px 0 0 auto;
    max-width: 48%;
    padding: 9px 12px;
}

.bsr-solution-file-status strong {
    font-size: .69rem;
}

.bsr-solution-file-status small {
    font-size: .61rem;
}

.bsr-solution-file-status.is-success {
    background: var(--sol-green-bg);
    border-color: var(--sol-green-border);
    color: #19743b;
}

.bsr-solution-file-status.is-error {
    background: #fff1ee;
    border-color: #efaaa0;
    color: #a83226;
}

.bsr-solution-release-section {
    margin-top: 20px;
}

.bsr-solution-release-section h3 {
    color: var(--sol-ink);
    font-size: .95rem;
    margin: 0 0 3px;
}

.bsr-solution-release-section > p {
    color: var(--sol-muted);
    font-size: .65rem;
    margin: 0 0 7px;
}

.bsr-solution-release-grid {
    border: 1px solid #ead9c8;
    border-radius: 9px;
    display: grid;
    grid-template-columns: 150px repeat(var(--bsr-class-count), minmax(90px, 1fr));
    overflow-x: auto;
}

.bsr-release-head,
.bsr-release-row-label,
.bsr-solution-release-grid > .bsr-solution-switch {
    align-items: center;
    border-right: 1px solid #eadfd5;
    display: flex;
    justify-content: center;
    min-height: 35px;
    padding: 4px 8px;
}

.bsr-release-head {
    background: var(--sol-head);
    color: #4a4c50;
    font-size: .61rem;
    font-weight: 820;
}

.bsr-release-label,
.bsr-release-row-label {
    justify-content: flex-start;
}

.bsr-release-row-label {
    color: #244564;
    font-size: .68rem;
    font-weight: 680;
}

.bsr-solution-switch {
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
}

.bsr-solution-switch input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.bsr-solution-switch > span {
    background: #c6cfda;
    border-radius: 999px;
    display: inline-block;
    height: 20px;
    position: relative;
    transition: background .16s ease;
    width: 36px;
}

.bsr-solution-switch > span::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    content: "";
    height: 16px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: transform .16s ease;
    width: 16px;
}

.bsr-solution-switch input:checked + span {
    background: var(--sol-orange);
}

.bsr-solution-switch input:checked + span::after {
    transform: translateX(16px);
}

.bsr-solution-switch input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(244, 91, 0, .2);
}

.bsr-solution-switch.is-small > span {
    height: 17px;
    width: 30px;
}

.bsr-solution-switch.is-small > span::after {
    height: 13px;
    width: 13px;
}

.bsr-solution-switch.is-small input:checked + span::after {
    transform: translateX(13px);
}

.bsr-solution-editor-actions {
    border-top: 1px solid #eee1d4;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
}

.bsr-quick-release-card {
    margin-top: 14px;
    padding: 14px 18px 14px;
}

.bsr-quick-release-heading {
    align-items: end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 9px;
}

.bsr-quick-release-heading > div:first-child > p:last-child {
    color: var(--sol-muted);
    font-size: .64rem;
    margin: 4px 0 0;
}

.bsr-quick-release-tools {
    align-items: center;
    display: grid;
    gap: 7px;
    grid-template-columns: minmax(210px, 1.45fr) minmax(130px, .8fr) minmax(130px, .8fr) auto;
    min-width: min(100%, 690px);
}

.bsr-quick-search {
    display: block;
}

.bsr-quick-release-scroll {
    border: 1px solid #ead9c8;
    border-radius: 8px;
    overflow-x: auto;
}

.bsr-quick-release-table {
    border-collapse: collapse;
    color: #17395e;
    font-size: .65rem;
    min-width: 1080px;
    width: 100%;
}

.bsr-quick-release-table th {
    background: var(--sol-head);
    color: #5b554f;
    font-size: .55rem;
    font-weight: 840;
    letter-spacing: .035em;
    padding: 6px 7px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.bsr-quick-release-table td {
    background: #fff;
    border-top: 1px solid #eadfd5;
    padding: 5px 7px;
    vertical-align: middle;
}

.bsr-quick-release-table tbody tr:nth-child(even) td {
    background: #fffdfa;
}

.bsr-quick-release-table tr[hidden] {
    display: none;
}

.bsr-quick-class-head,
.bsr-quick-toggle-cell {
    text-align: center !important;
}

.bsr-quick-document {
    align-items: center;
    color: #244d77;
    display: inline-flex;
    font-weight: 650;
    gap: 6px;
    max-width: 270px;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bsr-quick-document > span {
    color: #f14433;
    font-size: .9rem;
}

.bsr-quick-document:hover {
    color: var(--sol-orange);
    text-decoration: underline;
}

.bsr-quick-all {
    min-height: 27px !important;
    padding: 3px 8px !important;
}

.bsr-quick-release-save {
    display: flex;
    justify-content: flex-end;
    margin-top: 9px;
}

.bsr-solutions-empty {
    align-items: start;
    background: #fff9f3;
    border: 1px dashed #e2c9af;
    border-radius: 10px;
    display: grid;
    gap: 3px;
    padding: 14px;
}

.bsr-solutions-empty strong {
    color: var(--sol-ink);
    font-size: .78rem;
}

.bsr-solutions-empty span {
    color: var(--sol-muted);
    font-size: .65rem;
}

/* OneDrive picker */
.bsr-onedrive-modal {
    align-items: center;
    background: rgba(12, 32, 55, .42);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 99999;
}

.bsr-onedrive-modal[hidden] {
    display: none !important;
}

.bsr-onedrive-dialog {
    background: #fffefd;
    border: 1px solid #e7d8c8;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(15, 38, 62, .24);
    max-height: min(760px, calc(100vh - 48px));
    max-width: 900px;
    overflow: hidden;
    padding: 16px;
    width: min(900px, 96vw);
}

.bsr-onedrive-dialog-head {
    align-items: start;
    display: flex;
    justify-content: space-between;
}

.bsr-onedrive-dialog-head h2 {
    color: var(--sol-ink);
    font-size: 1.18rem;
    margin: 0;
}

.bsr-onedrive-close {
    align-items: center;
    background: #fff;
    border: 1px solid #e4d6c8;
    border-radius: 50%;
    color: #76675b;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.25rem;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.bsr-onedrive-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 12px 0 9px;
}

.bsr-onedrive-crumb {
    background: #fff7ef;
    border: 1px solid #ecd7c3;
    border-radius: 999px;
    color: #8e4d19;
    cursor: pointer;
    font-size: .64rem;
    padding: 4px 8px;
}

.bsr-onedrive-browser-status {
    color: var(--sol-muted);
    font-size: .66rem;
    margin-bottom: 7px;
}

.bsr-onedrive-items {
    border: 1px solid #e9ddd1;
    border-radius: 10px;
    max-height: 480px;
    overflow-y: auto;
}

.bsr-onedrive-item {
    align-items: center;
    background: #fff;
    border: 0;
    border-top: 1px solid #eee3d8;
    color: #17395e;
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 45px;
    padding: 7px 10px;
    text-align: left;
    width: 100%;
}

.bsr-onedrive-item:first-child {
    border-top: 0;
}

.bsr-onedrive-item:hover,
.bsr-onedrive-item.is-selected {
    background: #fff4e8;
}

.bsr-onedrive-item.is-selected {
    box-shadow: inset 3px 0 0 var(--sol-orange);
}

.bsr-onedrive-item-icon {
    color: var(--sol-orange);
    font-size: 1rem;
}

.bsr-onedrive-item-name {
    font-size: .7rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bsr-onedrive-item-meta {
    color: var(--sol-muted);
    font-size: .6rem;
    white-space: nowrap;
}

.bsr-onedrive-dialog-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 11px;
}

@media (max-width: 1180px) {
    .bsr-solution-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bsr-solution-path-field {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .bsr-solution-file-status {
        max-width: none;
    }

    .bsr-quick-release-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .bsr-quick-release-tools {
        max-width: none;
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .bsr-solutions-v2-intro {
        flex-direction: column;
    }

    .bsr-onedrive-pill {
        min-width: 0;
    }

    .bsr-solution-editor-card,
    .bsr-quick-release-card {
        border-radius: 13px;
        padding: 14px 12px;
    }

    .bsr-solution-form-grid,
    .bsr-quick-release-tools {
        grid-template-columns: 1fr;
    }

    .bsr-solution-path-actions {
        grid-template-columns: 1fr;
    }

    .bsr-solution-release-grid {
        grid-template-columns: 105px repeat(var(--bsr-class-count), minmax(78px, 1fr));
    }

    .bsr-solution-editor-actions,
    .bsr-quick-release-save {
        display: grid;
    }

    .bsr-solution-editor-actions .bsr-button,
    .bsr-quick-release-save .bsr-button {
        width: 100%;
    }
}

/* Studentische Lösungsansicht v2.1.0 */
.bsr-student-solutions {
  margin-top: 26px;
  border: 1px solid rgba(226, 206, 186, 0.9);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(28, 43, 70, 0.06);
}

.bsr-student-solutions-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 14px;
}

.bsr-student-solutions-head h2 {
  margin: 4px 0 8px;
}

.bsr-student-solutions-head p:last-child {
  margin: 0;
  max-width: 780px;
  color: #63708b;
}

.bsr-student-empty {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed rgba(232, 123, 0, 0.28);
  color: #4c5970;
}

.bsr-student-solutions-wrap {
  overflow-x: auto;
}

.bsr-student-solutions-table {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0;
}

.bsr-student-solutions-table thead tr:first-child th {
  background: #f5efe6;
  color: #7a684f;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid rgba(225, 202, 181, 0.95);
  border-bottom: 0;
  cursor: pointer;
}

.bsr-student-solutions-table thead tr:first-child th:first-child {
  border-top-left-radius: 16px;
}

.bsr-student-solutions-table thead tr:first-child th:last-child {
  border-top-right-radius: 16px;
}

.bsr-student-solutions-table .bsr-table-filter-row th {
  background: #fbf8f3;
  border-top: 0;
  padding: 10px 12px 12px;
}

.bsr-student-solutions-table .bsr-table-filter-row input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(226, 206, 186, 0.95);
  border-radius: 12px;
  padding: 8px 12px;
  background: #fff;
  color: #1e2f50;
}

.bsr-student-solutions-table tbody tr {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.bsr-student-solutions-table tbody tr:hover {
  background: #fffdf9;
}

.bsr-student-solutions-table td {
  vertical-align: middle;
}

.bsr-student-solutions-table td:last-child,
.bsr-student-solutions-table th:last-child {
  text-align: left;
}

.bsr-student-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #e87900;
  text-decoration: none;
  word-break: break-word;
}

.bsr-student-doc-link::before {
  content: '📄';
  font-size: 16px;
  line-height: 1;
}

.bsr-student-doc-link:hover,
.bsr-student-doc-link:focus-visible {
  color: #c86600;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .bsr-student-solutions {
    padding: 18px;
    border-radius: 20px;
  }

  .bsr-student-solutions-head {
    display: block;
    margin-bottom: 10px;
  }

  .bsr-student-solutions-table {
    min-width: 0;
    border-spacing: 0;
    background: transparent;
  }

  .bsr-student-solutions-table thead,
  .bsr-student-solutions-table tbody,
  .bsr-student-solutions-table tr,
  .bsr-student-solutions-table th,
  .bsr-student-solutions-table td {
    display: block;
    width: 100%;
  }

  .bsr-student-solutions-table thead tr:first-child {
    display: none;
  }

  .bsr-student-solutions-table .bsr-table-filter-row {
    display: grid;
    gap: 10px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(226, 206, 186, 0.95);
    border-radius: 18px;
    background: #fff;
  }

  .bsr-student-solutions-table .bsr-table-filter-row th {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .bsr-student-solutions-table tbody {
    display: grid;
    gap: 14px;
  }

  .bsr-student-solutions-table tbody tr {
    padding: 14px 16px;
    border: 1px solid rgba(226, 206, 186, 0.95);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(28, 43, 70, 0.05);
  }

  .bsr-student-solutions-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid rgba(226, 206, 186, 0.55);
    text-align: left;
  }

  .bsr-student-solutions-table tbody td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .bsr-student-solutions-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 120px;
    max-width: 120px;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7a684f;
  }

  .bsr-student-solutions-table tbody td > * {
    flex: 1 1 auto;
    text-align: right;
  }

  .bsr-student-solutions-table tbody td .bsr-student-doc-link {
    justify-content: flex-end;
  }
}

/* =========================================================
   Schüleransicht 2.2.0 – kompakt, warm, OneDrive
   ========================================================= */
.bsr-learning-page .bsr-learning-intro {
  display: none;
}

.bsr-learning-page .bsr-learning-shell {
  padding-top: 18px;
}

.bsr-solutions-hero {
  position: relative;
  min-height: 180px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid #e8d8c8;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255,250,244,.98) 0%, rgba(255,250,244,.95) 34%, rgba(255,250,244,.58) 52%, rgba(255,250,244,.05) 72%),
    var(--bsr-solutions-hero) center right / cover no-repeat;
  box-shadow: 0 10px 30px rgba(76,47,25,.07);
}

.bsr-solutions-hero-copy {
  position: relative;
  z-index: 1;
  width: min(48%, 560px);
  padding: 34px 38px;
}

.bsr-solutions-hero-copy h1 {
  margin: 0 0 8px;
  color: #15213a;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.bsr-solutions-hero-copy p {
  max-width: 490px;
  margin: 0;
  color: #5e5b59;
  font-size: 14px;
  line-height: 1.55;
}

.bsr-student-solutions {
  margin-top: 0;
  padding: 14px 16px 12px;
  border: 1px solid #e7d7c8;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 26px rgba(65,42,24,.06);
}

.bsr-student-solutions-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 10px;
}

.bsr-student-solutions-head h2 {
  margin: 0;
  color: #251d19;
  font-size: 20px;
  line-height: 1.2;
}

.bsr-student-solutions-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border: 1px solid #dfb892;
  border-radius: 10px;
  background: #fff8f1;
  color: #a75220;
  font-size: 20px;
}

.bsr-student-solutions-wrap {
  overflow-x: auto;
  border: 1px solid #eadfd4;
  border-radius: 14px;
}

.bsr-student-solutions-table {
  width: 100%;
  min-width: 940px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.bsr-student-solutions-table thead tr:first-child th {
  height: 34px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid #e9ddd1;
  background: #f4ede5;
  color: #574538;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.bsr-student-solutions-table thead tr:first-child th:nth-child(1) { width: 14%; }
.bsr-student-solutions-table thead tr:first-child th:nth-child(2) { width: 15%; }
.bsr-student-solutions-table thead tr:first-child th:nth-child(3) { width: 19%; }
.bsr-student-solutions-table thead tr:first-child th:nth-child(4) { width: 15%; }
.bsr-student-solutions-table thead tr:first-child th:nth-child(5) { width: 37%; }

.bsr-student-solutions-table .bsr-table-filter-row th {
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid #eadfd4;
  background: #fbf8f4;
}

.bsr-student-solutions-table .bsr-table-filter-row select {
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 5px 28px 5px 9px;
  border: 1px solid #e2d2c3;
  border-radius: 9px;
  background-color: #fff;
  color: #342b26;
  font-size: 11px;
  line-height: 1.2;
}

.bsr-student-solutions-table tbody td {
  height: 45px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid #eee5dd;
  color: #2f3338;
  font-size: 12px;
  line-height: 1.25;
  vertical-align: middle;
}

.bsr-student-solutions-table tbody tr:last-child td {
  border-bottom: 0;
}

.bsr-student-solutions-table tbody tr:hover {
  background: #fffaf5;
}

.bsr-student-document-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.bsr-student-document-name {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #59534f;
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsr-student-document-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.bsr-student-action {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid #cfae92;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.bsr-student-action:hover,
.bsr-student-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(109,67,36,.10);
}

.bsr-student-action.is-open {
  background: #fff9f4;
  color: #9a4f25;
}

.bsr-student-action.is-download {
  border-color: #a55a2c;
  background: linear-gradient(180deg, #b66a39, #985126);
  color: #fff;
}

.bsr-student-solutions-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 2px 0;
  color: #796b61;
  font-size: 10px;
}

.bsr-student-solutions-foot small {
  font-size: 10px;
}

/* Lehrkraft im Portalheader */
.bsr-brand-teacher {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.bsr-brand-teacher .bsr-brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.bsr-brand-teacher .bsr-brand-copy strong {
  color: #17233c;
  font-size: 15px;
  font-weight: 850;
}

.bsr-brand-teacher .bsr-brand-copy small {
  color: #755e4f;
  font-size: 10px;
  font-weight: 650;
}

/* Feld Lehrkraft im Verwaltungsportal */
.bsr-ext-admin-shell .bsr-form-intro {
  position: relative;
  min-height: 110px;
  padding-right: min(390px, 36vw);
}

.bsr-teacher-display-card {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 34vw);
  padding: 12px;
  border: 1px solid #e4d4c6;
  border-radius: 14px;
  background: #fffaf6;
  box-shadow: 0 7px 18px rgba(71,44,25,.05);
}

.bsr-teacher-display-card label {
  display: grid;
  gap: 6px;
}

.bsr-teacher-display-card label > span:first-child {
  color: #322720;
  font-size: 11px;
  font-weight: 800;
}

.bsr-teacher-display-card label > span:first-child small {
  color: #827369;
  font-weight: 500;
}

.bsr-teacher-display-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.bsr-teacher-display-row input {
  min-width: 0;
  height: 36px;
  padding: 7px 10px;
  border: 1px solid #dfd0c3;
  border-radius: 9px;
  background: #fff;
}

.bsr-teacher-display-card .bsr-button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 10px;
}

.bsr-teacher-display-card label > small,
.bsr-teacher-saved {
  color: #7d6f64;
  font-size: 9px;
  line-height: 1.3;
}

.bsr-teacher-saved {
  color: #25814b;
  font-weight: 800;
}

@media (max-width: 900px) {
  .bsr-solutions-hero {
    min-height: 150px;
    background-position: 62% center;
  }

  .bsr-solutions-hero-copy {
    width: 66%;
    padding: 24px 22px;
  }

  .bsr-solutions-hero-copy h1 {
    font-size: 28px;
  }

  .bsr-solutions-hero-copy p {
    font-size: 12px;
  }

  .bsr-student-solutions {
    padding: 12px;
  }

  .bsr-student-solutions-table {
    min-width: 0;
  }

  .bsr-student-solutions-table thead,
  .bsr-student-solutions-table tbody,
  .bsr-student-solutions-table tr,
  .bsr-student-solutions-table th,
  .bsr-student-solutions-table td {
    display: block;
    width: 100%;
  }

  .bsr-student-solutions-table thead tr:first-child {
    display: none;
  }

  .bsr-student-solutions-table .bsr-table-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 10px;
    border-bottom: 1px solid #eadfd4;
    background: #faf5ef;
  }

  .bsr-student-solutions-table .bsr-table-filter-row th {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .bsr-student-solutions-table .bsr-table-filter-row th:last-child {
    grid-column: 1 / -1;
  }

  .bsr-student-solutions-table tbody {
    display: grid;
    gap: 8px;
    padding: 8px;
  }

  .bsr-student-solutions-table tbody tr {
    padding: 10px 11px;
    border: 1px solid #eadfd4;
    border-radius: 12px;
    background: #fff;
  }

  .bsr-student-solutions-table tbody td {
    display: flex;
    height: auto;
    min-height: 28px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    border: 0;
    border-bottom: 1px solid #f1e8e0;
    font-size: 11px;
  }

  .bsr-student-solutions-table tbody td:last-child {
    display: block;
    border-bottom: 0;
  }

  .bsr-student-solutions-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 110px;
    color: #79675a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .bsr-student-solutions-table tbody td:last-child::before {
    display: block;
    margin-bottom: 5px;
  }

  .bsr-student-document-cell {
    align-items: center;
  }

  .bsr-student-document-name {
    font-size: 9px;
  }

  .bsr-student-action {
    min-height: 29px;
    padding: 5px 8px;
  }

  .bsr-ext-admin-shell .bsr-form-intro {
    padding-right: 0;
  }

  .bsr-teacher-display-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .bsr-solutions-hero {
    min-height: 145px;
    background:
      linear-gradient(90deg, rgba(255,250,244,.98) 0%, rgba(255,250,244,.92) 68%, rgba(255,250,244,.38) 100%),
      var(--bsr-solutions-hero) 63% center / cover no-repeat;
  }

  .bsr-solutions-hero-copy {
    width: 78%;
    padding: 22px 18px;
  }

  .bsr-solutions-hero-copy h1 {
    font-size: 25px;
  }

  .bsr-student-solutions-head h2 {
    font-size: 17px;
  }

  .bsr-student-solutions-table .bsr-table-filter-row {
    grid-template-columns: 1fr;
  }

  .bsr-student-solutions-table .bsr-table-filter-row th:last-child {
    grid-column: auto;
  }

  .bsr-student-document-cell {
    display: grid;
    gap: 7px;
  }

  .bsr-student-document-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .bsr-student-document-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bsr-student-action {
    width: 100%;
  }

  .bsr-student-solutions-foot {
    display: grid;
    gap: 3px;
  }

  .bsr-teacher-display-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   2.2.2 – Layout-Fix: Design aus 2.2.0 erzwingen + Tabelle kompakter
   ========================================================= */
body .bsr-learning-page .bsr-learning-shell > .bsr-learning-intro {
  display: none !important;
}

body .bsr-learning-page .bsr-learning-shell {
  padding-top: 14px !important;
}

body .bsr-learning-page .bsr-solutions-hero {
  display: block !important;
  min-height: 168px !important;
  margin: 0 0 12px !important;
  border: 1px solid #e8d8c8 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background:
    linear-gradient(90deg, rgba(255,250,244,.99) 0%, rgba(255,250,244,.96) 34%, rgba(255,250,244,.56) 53%, rgba(255,250,244,.06) 73%),
    var(--bsr-solutions-hero) center right / cover no-repeat !important;
  box-shadow: 0 9px 24px rgba(76,47,25,.06) !important;
}

body .bsr-learning-page .bsr-solutions-hero-copy {
  width: min(47%, 520px) !important;
  padding: 29px 32px !important;
}

body .bsr-learning-page .bsr-solutions-hero-copy h1 {
  margin: 0 0 7px !important;
  font-size: clamp(26px, 2.6vw, 36px) !important;
  line-height: 1.05 !important;
}

body .bsr-learning-page .bsr-solutions-hero-copy p {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

body .bsr-learning-page .bsr-student-solutions {
  margin-top: 0 !important;
  padding: 10px 12px 9px !important;
  border: 1px solid #e7d7c8 !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 8px 22px rgba(65,42,24,.05) !important;
}

body .bsr-learning-page .bsr-student-solutions-head {
  gap: 8px !important;
  margin: 0 0 7px !important;
}

body .bsr-learning-page .bsr-student-solutions-head h2 {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
}

body .bsr-learning-page .bsr-student-solutions-icon {
  width: 30px !important;
  height: 30px !important;
  flex-basis: 30px !important;
  border-radius: 8px !important;
  font-size: 17px !important;
}

body .bsr-learning-page .bsr-student-solutions-wrap {
  overflow-x: auto !important;
  border: 1px solid #eadfd4 !important;
  border-radius: 12px !important;
}

body .bsr-learning-page table.bsr-student-solutions-table {
  width: 100% !important;
  min-width: 820px !important;
  margin: 0 !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

body .bsr-learning-page table.bsr-student-solutions-table thead tr:first-child th {
  height: 28px !important;
  padding: 4px 8px !important;
  background: #f4ede5 !important;
  border: 0 !important;
  border-bottom: 1px solid #e9ddd1 !important;
  color: #574538 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: .025em !important;
  text-transform: uppercase !important;
  vertical-align: middle !important;
}

body .bsr-learning-page table.bsr-student-solutions-table thead tr:first-child th:nth-child(1) { width: 13% !important; }
body .bsr-learning-page table.bsr-student-solutions-table thead tr:first-child th:nth-child(2) { width: 14% !important; }
body .bsr-learning-page table.bsr-student-solutions-table thead tr:first-child th:nth-child(3) { width: 18% !important; }
body .bsr-learning-page table.bsr-student-solutions-table thead tr:first-child th:nth-child(4) { width: 14% !important; }
body .bsr-learning-page table.bsr-student-solutions-table thead tr:first-child th:nth-child(5) { width: 41% !important; }

body .bsr-learning-page table.bsr-student-solutions-table .bsr-table-filter-row th {
  height: 36px !important;
  padding: 4px 6px !important;
  background: #fbf8f4 !important;
  border: 0 !important;
  border-bottom: 1px solid #eadfd4 !important;
  vertical-align: middle !important;
}

body .bsr-learning-page table.bsr-student-solutions-table .bsr-table-filter-row select {
  width: 100% !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 3px 24px 3px 7px !important;
  border: 1px solid #e2d2c3 !important;
  border-radius: 7px !important;
  background-color: #fff !important;
  color: #342b26 !important;
  font-size: 9px !important;
  line-height: 1.1 !important;
}

body .bsr-learning-page table.bsr-student-solutions-table tbody tr {
  height: 36px !important;
}

body .bsr-learning-page table.bsr-student-solutions-table tbody td {
  height: 36px !important;
  min-height: 0 !important;
  padding: 4px 8px !important;
  border: 0 !important;
  border-bottom: 1px solid #eee5dd !important;
  color: #303237 !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  vertical-align: middle !important;
}

body .bsr-learning-page table.bsr-student-solutions-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

body .bsr-learning-page .bsr-student-document-cell {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  min-width: 0 !important;
}

body .bsr-learning-page .bsr-student-document-name {
  display: block !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  color: #5c5753 !important;
  font-size: 7.5px !important;
  font-weight: 550 !important;
  line-height: 1.1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body .bsr-learning-page .bsr-student-document-actions {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

body .bsr-learning-page .bsr-student-action.is-download {
  min-height: 24px !important;
  height: 24px !important;
  padding: 3px 7px !important;
  border-radius: 7px !important;
  font-size: 8px !important;
  line-height: 1 !important;
}

body .bsr-learning-page .bsr-student-solutions-foot {
  gap: 8px !important;
  padding: 5px 1px 0 !important;
  font-size: 8px !important;
}

body .bsr-learning-page .bsr-student-solutions-foot small {
  font-size: 8px !important;
}

@media (max-width: 900px) {
  body .bsr-learning-page .bsr-solutions-hero {
    min-height: 140px !important;
    background-position: 63% center !important;
  }

  body .bsr-learning-page .bsr-solutions-hero-copy {
    width: 66% !important;
    padding: 20px !important;
  }

  body .bsr-learning-page .bsr-solutions-hero-copy h1 {
    font-size: 26px !important;
  }

  body .bsr-learning-page table.bsr-student-solutions-table {
    min-width: 0 !important;
  }

  body .bsr-learning-page table.bsr-student-solutions-table thead,
  body .bsr-learning-page table.bsr-student-solutions-table tbody,
  body .bsr-learning-page table.bsr-student-solutions-table tr,
  body .bsr-learning-page table.bsr-student-solutions-table th,
  body .bsr-learning-page table.bsr-student-solutions-table td {
    display: block !important;
    width: 100% !important;
  }

  body .bsr-learning-page table.bsr-student-solutions-table thead tr:first-child {
    display: none !important;
  }

  body .bsr-learning-page table.bsr-student-solutions-table .bsr-table-filter-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding: 8px !important;
    background: #faf5ef !important;
  }

  body .bsr-learning-page table.bsr-student-solutions-table .bsr-table-filter-row th {
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body .bsr-learning-page table.bsr-student-solutions-table .bsr-table-filter-row th:last-child {
    grid-column: 1 / -1 !important;
  }

  body .bsr-learning-page table.bsr-student-solutions-table tbody {
    display: grid !important;
    gap: 6px !important;
    padding: 6px !important;
  }

  body .bsr-learning-page table.bsr-student-solutions-table tbody tr {
    height: auto !important;
    padding: 8px 9px !important;
    border: 1px solid #eadfd4 !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  body .bsr-learning-page table.bsr-student-solutions-table tbody td {
    display: flex !important;
    height: auto !important;
    min-height: 24px !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 4px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #f1e8e0 !important;
    font-size: 10px !important;
  }

  body .bsr-learning-page table.bsr-student-solutions-table tbody td::before {
    content: attr(data-label) !important;
    flex: 0 0 105px !important;
    color: #79675a !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .03em !important;
    text-transform: uppercase !important;
  }

  body .bsr-learning-page table.bsr-student-solutions-table tbody td:last-child {
    display: block !important;
    border-bottom: 0 !important;
  }

  body .bsr-learning-page table.bsr-student-solutions-table tbody td:last-child::before {
    display: block !important;
    margin-bottom: 4px !important;
  }

  body .bsr-learning-page .bsr-student-document-name {
    font-size: 8px !important;
  }
}

@media (max-width: 560px) {
  body .bsr-learning-page .bsr-solutions-hero {
    min-height: 132px !important;
    background:
      linear-gradient(90deg, rgba(255,250,244,.99) 0%, rgba(255,250,244,.94) 68%, rgba(255,250,244,.40) 100%),
      var(--bsr-solutions-hero) 64% center / cover no-repeat !important;
  }

  body .bsr-learning-page .bsr-solutions-hero-copy {
    width: 80% !important;
    padding: 18px 15px !important;
  }

  body .bsr-learning-page .bsr-student-solutions {
    padding: 8px !important;
  }

  body .bsr-learning-page table.bsr-student-solutions-table .bsr-table-filter-row {
    grid-template-columns: 1fr !important;
  }

  body .bsr-learning-page .bsr-student-document-cell {
    display: grid !important;
    gap: 5px !important;
  }

  body .bsr-learning-page .bsr-student-document-name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  body .bsr-learning-page .bsr-student-action.is-download {
    width: 100% !important;
  }
}

/* v2.2.3 – Schnellfreigabe: Spaltenfilter, Sortierung und Löschen */
.bsr-quick-release-table thead tr:first-child th[data-sort] {
    cursor: pointer;
    user-select: none;
}

.bsr-quick-release-table thead tr:first-child th[data-sort]::after {
    content: " ↕";
    opacity: .38;
    font-size: .62rem;
}

.bsr-quick-release-table thead tr:first-child th[data-direction="asc"]::after {
    content: " ↑";
    opacity: 1;
}

.bsr-quick-release-table thead tr:first-child th[data-direction="desc"]::after {
    content: " ↓";
    opacity: 1;
}

.bsr-quick-filter-row th {
    background: #fffaf5 !important;
    border-top: 1px solid #eadfd5;
    padding: 4px 5px !important;
    text-transform: none !important;
}

.bsr-quick-filter-row select {
    width: 100%;
    min-width: 82px;
    min-height: 27px;
    padding: 3px 22px 3px 6px;
    border: 1px solid #e0cbb7;
    border-radius: 6px;
    background: #fff;
    color: #344d68;
    font-size: .58rem;
    line-height: 1.15;
}

.bsr-quick-filter-row .bsr-quick-class-head select {
    min-width: 92px;
}

.bsr-quick-filter-reset {
    min-height: 27px;
    width: 100%;
    border: 1px solid #dcae85;
    border-radius: 6px;
    background: #fff;
    color: #a64c13;
    cursor: pointer;
    font-size: .55rem;
    font-weight: 750;
    white-space: nowrap;
}

.bsr-quick-filter-reset:hover {
    background: #fff4e9;
}

.bsr-quick-action-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.bsr-quick-delete {
    min-height: 27px !important;
    padding: 3px 8px !important;
    border-color: #d77a6d !important;
    color: #a83a2d !important;
}

.bsr-quick-delete:hover {
    background: #fff1ef !important;
}

@media (max-width: 900px) {
    .bsr-quick-filter-row select {
        min-width: 100px;
    }
}
