/* Nach basis.css laden. Maße entsprechen deren Patientenhinweisnbereich:
   Tabellenbeginn 4%, untere Begrenzung 16%, Tabellenrand 2.5% + 70%. */
#id_div_rumpfleiste_spalte2_areal2_5 #sandy_patient_karten {
 position:absolute;
 top:calc(4% + 3px);
 bottom:calc(16% + 3px);
 left:calc(72.5% + 3px);
 right:3px;
 width:auto;
 height:auto;
 min-width:0;
 min-height:0;
 display:flex;
 flex-direction:column;
 box-sizing:border-box;
 overflow:hidden;
 background:transparent;
 z-index:2;
}
#sandy_patient_karten #id_div_rumpfleistespalte2areal2_5_suchfeld {
 position:relative;left:0;top:0;width:100%;height:36px;margin:0;
}
#sandy_patient_karten #id_div_rumpfleistespalte2areal2_5_listencontainer {
 position:relative;left:0;top:0;bottom:auto;width:100%;margin:0;
 border:0;overflow:hidden!important;
}
#id_div_rumpfleistespalte2areal2_5_tabellencontainer table[data-sandy-patient-ki-table] {
 min-width:100%!important;
}

   #sandy_patient_karten [role=tablist]{display:flex;flex-wrap:nowrap;gap:3px;padding:3px 0 0;flex-shrink:0;border-bottom:1px solid #9ba8b5;background:transparent}
   #sandy_patient_karten button,#sandy_patient_karten textarea{position:static!important;float:none!important;box-sizing:border-box;font:13px Arial;height:auto;max-width:100%}
   #sandy_patient_karten [role=tab]{flex:1 1 0;min-width:0;width:auto;margin:0 0 -1px;padding:8px 3px;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:auto;overflow:hidden;min-height:44px;border:1px solid #9ba8b5;border-radius:8px 8px 0 0;background:#e4e8ed;color:#374151;font-size:12px;cursor:pointer}
   #sandy_patient_karten [role=tab][aria-selected=true]{background:white;border-bottom-color:white;font-weight:bold;color:#164c7e;z-index:1}
   #sandy_patient_karten{border:0;background:transparent}
   #sandy_patient_karten [role=tab]:focus-visible{outline:2px solid #3978b7;outline-offset:-3px}
   #sandy_patient_karten .sandy-patient-karten-titel{padding:6px 3px;font: bold 13px Arial;background:white;border:1px solid #9ba8b5;border-top:0}
   #sandy_patient_karten .sandy-patient-karte{position:relative;flex:1;min-height:0;overflow:auto;padding:8px 3px;background:white;border:1px solid #9ba8b5;border-top:0;box-sizing:border-box;font:13px Arial;white-space:normal}
   #sandy_patient_karten #sandy_patient_karte_0{display:flex;flex-direction:column;gap:3px;overflow:hidden}
   #sandy_patient_karten #id_div_rumpfleistespalte2areal2_5_suchfeld{flex:0 0 36px;box-sizing:border-box}
   #sandy_patient_karten #id_input_rumpfleistespalte2areal2_5_suchfeld{position:absolute!important;left:0!important;top:0!important;width:100%!important;height:36px!important;padding:3px 34px 3px 5px!important;box-sizing:border-box}
   #sandy_patient_karten #id_input_rumpfleistespalte2areal2_5_leeresuchfeld{position:absolute!important;left:auto!important;right:3px!important;top:3px!important;width:28px!important;height:30px!important;margin:0!important;padding:0!important;z-index:1;line-height:30px}
   #sandy_patient_karten #id_div_rumpfleistespalte2areal2_5_listencontainer{flex:1;min-height:0;height:auto!important;box-sizing:border-box;overflow:auto!important}
   #sandy_patient_karten #id_select_rumpfleistespalte2areal2_5_listen{position:relative;left:0;top:0;width:100%;height:100%;min-height:0;box-sizing:border-box}
   #sandy_patient_karten .sandy-patient-karte[hidden]{display:none!important}
   #sandy_patient_karten #sandy_patient_karte_2{display:flex;flex-direction:column;gap:6px}
   #sandy_patient_karten textarea{width:100%;min-height:90px;flex:1;resize:vertical;display:block;margin:0}
   #sandy_patient_karten #sandy_patient_karte_2 button{align-self:flex-start;flex-shrink:0;width:auto;margin:0;padding:6px 10px}
   #sandy_patient_karten p{overflow-wrap:anywhere}
   #id_tabellenbody_5 tr.sandy-patient-karten-auswahl>td:first-child,tbody[data-sandy-patient-proposals] tr.sandy-patient-karten-auswahl>td:first-child{box-shadow:inset 4px 0 #3978b7}
   #id_tabellenbody_5 [data-sandy-patient-ki-cell]:nth-last-child(3),#id_tabellenbody_5 [data-sandy-patient-ki-cell]:nth-last-child(2),tbody[data-sandy-patient-proposals] [data-sandy-patient-ki-cell]:nth-last-child(3),tbody[data-sandy-patient-proposals] [data-sandy-patient-ki-cell]:nth-last-child(2){display:none}
  
/* Statuszeile auf den Tabellenbereich begrenzen. */
#sandy_patient_ki_status {
 left:2.5%!important;
 width:70%!important;
 max-width:70%!important;
 box-sizing:border-box;
 overflow:hidden;
 white-space:nowrap;
 text-overflow:ellipsis;
}
/* Neue KI-Vorschläge erhalten dieselben Eingabespalten wie vorhandene Zeilen. */
tbody[data-sandy-patient-proposals] td{vertical-align:middle;line-height:normal;padding:3px}
tbody[data-sandy-patient-proposals] td input[type=text],tbody[data-sandy-patient-proposals] td select,tbody[data-sandy-patient-proposals] td button{position:static!important;box-sizing:border-box;width:100%;max-width:100%;height:30px;font:13px Arial}
tbody[data-sandy-patient-proposals] td input[type=checkbox]{position:static!important;width:auto;height:auto}
tbody[data-sandy-patient-proposals] td[data-sandy-patient-ki-cell] select{width:auto;height:auto}

/* Zellrahmen wie td.tabzelle aus basis.css, auch für KI-Ergänzungszeilen. */
table[data-sandy-patient-ki-table]{border-collapse:collapse}
table[data-sandy-patient-ki-table] tbody[data-sandy-patient-proposals]>tr>td,
table[data-sandy-patient-ki-table] td[data-sandy-patient-ki-cell]{border:1px solid #000}
table[data-sandy-patient-ki-table] tbody>tr>td:nth-child(1){text-align:center;vertical-align:middle}
table[data-sandy-patient-ki-table] tbody>tr>td input[type=checkbox]{position:static!important;float:none!important;display:inline-block!important;margin:0!important;vertical-align:middle;width:auto!important;height:auto!important;transform:none!important}

/* KI-Aktionsspalte und Farben, ausschließlich für Patientenhinweisn. */
table[data-sandy-patient-ki-table]{table-layout:fixed;width:100%;min-width:100%}
table[data-sandy-patient-ki-table] col:first-child{width:5%!important}
table[data-sandy-patient-ki-table] col:nth-child(2){width:28%!important}
table[data-sandy-patient-ki-table] col:nth-child(3){width:42%!important}
table[data-sandy-patient-ki-table] th[data-sandy-patient-ki-header]{width:25%}
table[data-sandy-patient-ki-table] td[data-sandy-patient-ki-cell]{padding:3px;white-space:normal;vertical-align:top;font:13px Arial}
table[data-sandy-patient-ki-table] td[data-sandy-patient-ki-cell] select{position:static!important;width:100%;max-width:100%;height:30px;box-sizing:border-box;font:inherit}
table[data-sandy-patient-ki-table] td[data-sandy-patient-ki-cell] label{display:block}
tr[data-sandy-patient-color=offen]>td{background:#ffe0eb!important}
tr[data-sandy-patient-color=erledigt]>td{background:#e0f4df!important}
tr[data-sandy-patient-color]>td>input{background:inherit!important}
#sandy_patient_karten textarea,#sandy_patient_karten button{font:13px Arial}

#sandy_patient_ki_status{position:absolute;bottom:100%;background:white;padding:3px 8px;font:13px Arial}

/* Karteikarten auch in der maximierten Ansicht. */
/* Nach basis.css laden. Maße entsprechen deren Patientenhinweisnbereich:
   Tabellenbeginn 4%, untere Begrenzung 16%, Tabellenrand 2.5% + 70%. */
#id_div_arbeitscontainer_rumpfleiste_spalte2_maximiert_textbausteine_rumpf #sandy_patient_karten_max {
 position:absolute;
 top:calc(4% + 3px);
 bottom:calc(6% + 3px);
 left:calc(72.5% + 3px);
 right:3px;
 width:auto;
 height:auto;
 min-width:0;
 min-height:0;
 display:flex;
 flex-direction:column;
 box-sizing:border-box;
 overflow:hidden;
 background:transparent;
 z-index:2;
}
#sandy_patient_karten_max #id_div_arbeitscontainer_rumpfleiste_spalte2_maximiert_textbausteine_rumpf_suchfeld {
 position:relative;left:0;top:0;width:100%;height:36px;margin:0;
}
#sandy_patient_karten_max #id_div_arbeitscontainer_rumpfleiste_spalte2_maximiert_textbausteine_rumpf_listencontainer {
 position:relative;left:0;top:0;bottom:auto;width:100%;margin:0;
 border:0;overflow:hidden!important;
}
#id_div_arbeitscontainer_rumpfleiste_spalte2_maximiert_textbausteine_rumpf_tabellencontainer table[data-sandy-patient-ki-table] {
 min-width:100%!important;
}

   #sandy_patient_karten_max [role=tablist]{display:flex;flex-wrap:nowrap;gap:3px;padding:3px 0 0;flex-shrink:0;border-bottom:1px solid #9ba8b5;background:transparent}
   #sandy_patient_karten_max button,#sandy_patient_karten_max textarea{position:static!important;float:none!important;box-sizing:border-box;font:13px Arial;height:auto;max-width:100%}
   #sandy_patient_karten_max [role=tab]{flex:1 1 0;min-width:0;width:auto;margin:0 0 -1px;padding:8px 3px;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:auto;overflow:hidden;min-height:44px;border:1px solid #9ba8b5;border-radius:8px 8px 0 0;background:#e4e8ed;color:#374151;font-size:12px;cursor:pointer}
   #sandy_patient_karten_max [role=tab][aria-selected=true]{background:white;border-bottom-color:white;font-weight:bold;color:#164c7e;z-index:1}
   #sandy_patient_karten_max{border:0;background:transparent}
   #sandy_patient_karten_max [role=tab]:focus-visible{outline:2px solid #3978b7;outline-offset:-3px}
   #sandy_patient_karten_max .sandy-patient-karten-titel{padding:6px 3px;font: bold 13px Arial;background:white;border:1px solid #9ba8b5;border-top:0}
   #sandy_patient_karten_max .sandy-patient-karte{position:relative;flex:1;min-height:0;overflow:auto;padding:8px 3px;background:white;border:1px solid #9ba8b5;border-top:0;box-sizing:border-box;font:13px Arial;white-space:normal}
   #sandy_patient_karten_max #sandy_patient_karte_max_0{display:flex;flex-direction:column;gap:3px;overflow:hidden}
   #sandy_patient_karten_max #id_div_arbeitscontainer_rumpfleiste_spalte2_maximiert_textbausteine_rumpf_suchfeld{flex:0 0 36px;box-sizing:border-box}
   #sandy_patient_karten_max #id_input_arbeitscontainer_rumpfleiste_spalte2_maximiert_textbausteine_rumpf_suchfeld{position:absolute!important;left:0!important;top:0!important;width:100%!important;height:36px!important;padding:3px 34px 3px 5px!important;box-sizing:border-box}
   #sandy_patient_karten_max #id_button_arbeitscontainer_rumpfleiste_spalte2_maximiert_textbausteine_rumpf_leeresuchfeld{position:absolute!important;left:auto!important;right:3px!important;top:3px!important;width:28px!important;height:30px!important;margin:0!important;padding:0!important;z-index:1;line-height:30px}
   #sandy_patient_karten_max #id_div_arbeitscontainer_rumpfleiste_spalte2_maximiert_textbausteine_rumpf_listencontainer{flex:1;min-height:0;height:auto!important;box-sizing:border-box;overflow:auto!important}
   #sandy_patient_karten_max #id_select_arbeitscontainer_rumpfleiste_spalte2_maximiert_textbausteine_rumpf_listen{position:relative;left:0;top:0;width:100%;height:100%;min-height:0;box-sizing:border-box}
   #sandy_patient_karten_max .sandy-patient-karte[hidden]{display:none!important}
   #sandy_patient_karten_max #sandy_patient_karte_max_2{display:flex;flex-direction:column;gap:6px}
   #sandy_patient_karten_max textarea{width:100%;min-height:90px;flex:1;resize:vertical;display:block;margin:0}
   #sandy_patient_karten_max #sandy_patient_karte_max_2 button{align-self:flex-start;flex-shrink:0;width:auto;margin:0;padding:6px 10px}
   #sandy_patient_karten_max p{overflow-wrap:anywhere}
   #id_tabellenbody_5 tr.sandy-patient-karten-auswahl>td:first-child,tbody[data-sandy-patient-proposals] tr.sandy-patient-karten-auswahl>td:first-child{box-shadow:inset 4px 0 #3978b7}
   #id_tabellenbody_5 [data-sandy-patient-ki-cell]:nth-last-child(3),#id_tabellenbody_5 [data-sandy-patient-ki-cell]:nth-last-child(2),tbody[data-sandy-patient-proposals] [data-sandy-patient-ki-cell]:nth-last-child(3),tbody[data-sandy-patient-proposals] [data-sandy-patient-ki-cell]:nth-last-child(2){display:none}
  
/* Statuszeile auf den Tabellenbereich begrenzen. */
#sandy_patient_ki_status {
 left:2.5%!important;
 width:70%!important;
 max-width:70%!important;
 box-sizing:border-box;
 overflow:hidden;
 white-space:nowrap;
 text-overflow:ellipsis;
}
/* Neue KI-Vorschläge erhalten dieselben Eingabespalten wie vorhandene Zeilen. */
tbody[data-sandy-patient-proposals] td{vertical-align:middle;line-height:normal;padding:3px}
tbody[data-sandy-patient-proposals] td input[type=text],tbody[data-sandy-patient-proposals] td select,tbody[data-sandy-patient-proposals] td button{position:static!important;box-sizing:border-box;width:100%;max-width:100%;height:30px;font:13px Arial}
tbody[data-sandy-patient-proposals] td input[type=checkbox]{position:static!important;width:auto;height:auto}
tbody[data-sandy-patient-proposals] td[data-sandy-patient-ki-cell] select{width:auto;height:auto}

/* Zellrahmen wie td.tabzelle aus basis.css, auch für KI-Ergänzungszeilen. */
table[data-sandy-patient-ki-table]{border-collapse:collapse}
table[data-sandy-patient-ki-table] tbody[data-sandy-patient-proposals]>tr>td,
table[data-sandy-patient-ki-table] td[data-sandy-patient-ki-cell]{border:1px solid #000}
table[data-sandy-patient-ki-table] tbody>tr>td:nth-child(1){text-align:center;vertical-align:middle}
table[data-sandy-patient-ki-table] tbody>tr>td input[type=checkbox]{position:static!important;float:none!important;display:inline-block!important;margin:0!important;vertical-align:middle;width:auto!important;height:auto!important;transform:none!important}


table[data-sandy-patient-ki-table] [data-sandy-patient-ki-cell]:nth-last-child(3),table[data-sandy-patient-ki-table] [data-sandy-patient-ki-cell]:nth-last-child(2){display:none}

/* Layoutkorrektur 20261008-7. Nach basis.css laden. */
/* Kopfzellen bleiben im jeweiligen Tabellen-Scrollcontainer sichtbar. */
#id_table_rumpfleistespalte2areal2_5 thead th,
#id_table_arbeitscontainer_rumpfleiste_spalte2_maximiert_textbausteine thead th {
 position:sticky;
 top:0;
 z-index:3;
 background-color:#fff;
 background-clip:padding-box;
 box-shadow:inset 0 1px #000,inset 0 -1px #000;
}

/* Status und Bedienelemente in der Aktionsspalte vertikal zentrieren. */
table[data-sandy-patient-ki-table] tbody > tr > td[data-sandy-patient-ki-cell]:last-child {
 vertical-align:middle;
}

/* Der Status gehört in den bezeichneten Fußleisten-DIV.
   Lupe endet bei 8.5%, Neue Zeile beginnt bei 33% (basis.css).
   Je 8px Abstand; auch lange Texte bleiben innerhalb dieses Bereichs. */
#id_div_rumpfleiste_spalte2_areal3_5 > #sandy_patient_ki_status {
 position:absolute;
 left:calc(8.5% + 8px)!important;
 right:calc(67% + 8px);
 top:50%;
 bottom:auto;
 width:auto!important;
 max-width:none!important;
 min-width:0;
 height:auto;
 max-height:calc(100% - 8px);
 transform:translateY(-50%);
 margin:0;
 padding:0;
 box-sizing:border-box;
 background:transparent;
 font:12px/1.25 Arial,sans-serif;
 white-space:normal;
 overflow-wrap:anywhere;
 overflow:hidden;
 text-overflow:clip;
}

/* Vier Bestandsspalten plus Aktionsspalte. */
table[data-sandy-patient-ki-table] col:first-child{width:5%!important}
table[data-sandy-patient-ki-table] col:nth-child(2){width:26%!important}
table[data-sandy-patient-ki-table] col:nth-child(3){width:26%!important}
table[data-sandy-patient-ki-table] col:nth-child(4){width:18%!important}
table[data-sandy-patient-ki-table] th[data-sandy-patient-ki-header]:last-child{width:25%}
table[data-sandy-patient-ki-table] td[data-sandy-patient-ki-cell] button{position:static!important;width:auto!important;height:auto!important;margin:3px;padding:5px 8px;white-space:normal}
#sandy_patient_karten label,#sandy_patient_karten_max label{display:block;margin:8px 0}
#sandy_patient_karten label input,#sandy_patient_karten label select,#sandy_patient_karten_max label input,#sandy_patient_karten_max label select{position:static!important;width:100%;height:auto;box-sizing:border-box}
