@charset "ISO-8859-1";

/* ------------------------------------------------------------------------- */
/* TABELLEN IN CULTIVIA
/* - HTML-Tabellen werden NUR für DataTables eingesetzt
/* - Tabellen haben folgende Bootstrap-Klassen
/*   table:          Basiklasse für Tabellen
/*   table-striped:  Zebra-Styling
/*   align-middle:   vertikale Zentrierung der Inhalte
/*   cultivia-table  gemäss Definitionen unten
/* ------------------------------------------------------------------------- */

/*
  Reduktion des Paddings auf allen Tabellen
  - ersetzt Bootstrap-Klasse table-sm mit anderen Werten
  - NOT(caption) schliesst thead, tbody und tfoot aus
*/
.cultivia-table>:not(caption)>*>* {
  padding: 0.2rem 0.2rem;
}

/* Reduktion der Schriftgrösse auf kleinen Bildschirmen */
@media ( max-width : 768px) {
  .cultivia-table {
    font-size: 0.9rem;
  }
}

/* ------------------------------------------------------------------------- */
/* BOOTSTRAP PAGINATION
/* Anpassung der Seitennavigation auf Grösse eines btn.sm                    */
/* Hint: Könnte auch durch Setzen der Variablen in SASS gemacht werden       */
/* ------------------------------------------------------------------------- */
.page-link {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------------------- */
/* PROGRESS-BAR
/* ------------------------------------------------------------------------- */
.cultivia-progress-lg {
  height: 1.4rem;
}

/* ------------------------------------------------------------------------- */
/* TEXT
/* ------------------------------------------------------------------------- */

/*
  Lange Wörter umbrechen UND manuelle Zeilenumbrüche beibehalten
  Bootstrap text-nowrap bricht \n nicht um
*/
.cultivia-text-break {
  word-break: break-word;
  white-space: pre-line;
}

/* ------------------------------------------------------------------------- */
/* Bootstrap Spinner bei der Übertragung von Formularen                      */
/* Ersetzt das Fragment Overlay Busy                                         */
/* ------------------------------------------------------------------------- */
#submission-spinner {
  z-index: 9999;
}

#submission-spinner .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* ------------------------------------------------------------------------- */
/* Overlay Busy mit ID form-overlay-busy "/
/* ------------------------------------------------------------------------- */
#form-overlay-busy {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Halbtransparenter Hintergrund */
  display: none; /* standardmässig ausgeblendet */
  z-index: 9999;
  /* Hoher z-Index, um sicherzustellen, dass es über dem Rest der Seite liegt */
}

/* -------------------------------------------------------------------------- */
/* Klassen für Collapsable Icons auf anderen Elementen als Accordion          */
/* Für das Icon wird immer ein Pfeil nach unten genutzt, der im aufgeklappten */
/* Zustand um 180 Grad gedreht wird.                                          */
/* Hint: Bootstrap Accordion unterstützt standardmässig Icon                  */
/* -------------------------------------------------------------------------- */
.cultivia-collapse-arrow {
  transition: transform 0.2s ease-in-out;
  transform: rotate(0deg); /* Standard: Pfeil unten */
}

.cultivia-collapse-header[aria-expanded="true"] .cultivia-collapse-arrow
  {
  transform: rotate(180deg);
}

/* ------------------------------------------------------------------------- */
/* INFOSEITEN "/
/* ------------------------------------------------------------------------- */
/* Zeile für UI-Part oder Datatable auf Infoseiten */
.cultivia-info-row {
  font-size: 0.8em;
  margin-bottom: 10px;
}
/* Karte mit UI-Part auf Infoseiten */
.cultivia-info-card {
  padding: 0.3rem !important;
}

/* ------------------------------------------------------------------------- */
/* KONTEXTINFORMATIONEN INNERHALB VON SEITEN */
/* ------------------------------------------------------------------------- */
.cultivia-ctx-row {
  font-size: 0.8rem;
}

.cultivia-ctx-card {
  background-color: #f8f9fa; /* SASS Variable $bs-tertiary-bg */
  padding: 0.4rem !important;
}
/* Divider unter den Kontextelementen auf der Seite */
.cultivia-ctx-divider {
  border: 1px solid rgba(0, 0, 0, .125);
}
/* Keine Einrückung bei Listen in Kontextinformationen */
#ctxhelp ul {
  padding-left: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ------------------------------------------------------------------------- */
/* STATUS SATZ                                                         */
/* ------------------------------------------------------------------------- */
.cultivia-bgcolor-satzstatus-99 {
  background-color: rgba(255, 221, 204, 0.5) !important;
}

.cultivia-bgcolor-satzstatus-10 {
  background-color: rgba(240, 255, 255, 0.5) !important;
}

.cultivia-bgcolor-satzstatus-20 {
  background-color: rgba(217, 241, 255, 0.5) !important;
}

.cultivia-bgcolor-satzstatus-30 {
  background-color: rgba(229, 255, 204, 0.5) !important;
}

.cultivia-bgcolor-satzstatus-40 {
  background-color: rgba(181, 237, 197, 0.5) !important;
}

.cultivia-bgcolor-satzstatus-50 {
  background-color: rgba(234, 234, 234, 0.5) !important;
}

/* ------------------------------------------------------------------------- */
/* STATUS ARBEIT */
/* ------------------------------------------------------------------------- */
.cultivia-bgcolor-disabled {
  background-color: #e9ecef;
}

.cultivia-bgcolor-arbeit-geplant, .cultivia-bgcolor-status-arbeit-1 {
  background-color: rgba(240, 255, 255, 0.5) !important;
}

.cultivia-bgcolor-arbeit-zugeteilt, .cultivia-bgcolor-status-arbeit-2 {
  background-color: rgba(217, 241, 255, 0.5) !important;
}

.cultivia-bgcolor-arbeit-zurueckgewiesen,
  .cultivia-bgcolor-status-arbeit-3 {
  background-color: rgba(255, 252, 204, 0.5) !important;
}

.cultivia-bgcolor-arbeit-bestaetigt, .cultivia-bgcolor-status-arbeit-4 {
  background-color: rgba(181, 237, 197, 0.5) !important;
}

table.table.dataTable>tbody>tr.cultivia-bgcolor-arbeit-geplant>td {
  background-color: rgba(240, 255, 255, 0.2) !important;
}

table.table.dataTable>tbody>tr.cultivia-bgcolor-arbeit-zugeteilt>td {
  background-color: rgba(217, 241, 255, 0.2) !important;
}

table.table.dataTable>tbody>tr.cultivia-bgcolor-arbeit-bestaetigt>td {
  background-color: rgba(181, 237, 197, 0.2) !important;
}

table.table.dataTable>tbody>tr.cultivia-bgcolor-arbeit-zurueckgewiesen>td
  {
  background-color: rgba(255, 252, 204, 0.2) !important;
}

/* ------------------------------------------------------------------------- */
/* TIMELINE SATZ */
/* ------------------------------------------------------------------------- */
/* Arbeit geplant */
.cultivia-bgcolor-timeline-geplant {
  background-color: rgba(217, 241, 255, 0.5) !important;
}
/* Arbeit abgeschlossen */
.cultivia-bgcolor-timeline-bestaetigt {
  background-color: rgba(181, 237, 197, 0.5) !important;
}

/* ------------------------------------------------------------------------- */
/* FARBEN */
/* ------------------------------------------------------------------------- */
.cultivia-bgcolor-fieldset {
  background-color: #f8f9fa;
}

/* ------------------------------------------------------------------------- */
/* SCHRIFT */
/* ------------------------------------------------------------------------- */
.cultivia-font-green {
  color: green;
}

.cultivia-font-red {
  color: red;
}

.cultivia-font-small {
  font-size: 0.8em;
}

.letter-spacing-sm {
  letter-spacing: 0.25em;
}

.letter-spacing-md {
  letter-spacing: 0.5em;
}

.letter-spacing-lg {
  letter-spacing: 0.75em;
}

.letter-spacing-xl {
  letter-spacing: 1em;
}

/* ------------------------------------------------------------------------- */
/* BILDER */
/* ------------------------------------------------------------------------- */
/* Bilder in kleiner Darstellung (z.B. Kontextinformation, Infoseiten)  */
.cultivia-img-sm {
  width: 24px;
  height: 24px;
}

/* Bilder in den Cards der Hauptseiten */
.cultivia-img-card {
  width: 28px;
  height: 28px;
}

/* Navigationselemente (in Datatables) */
.cultivia-img-nav {
  width: 28px;
  height: 28px;
}

/* ------------------------------------------------------------------------- */
/* FORMULARE */
/* ------------------------------------------------------------------------- */
/* Üœberschreiben der Standardwerte von Bootstrap auf Legenden im fieldset */
legend {
  font-size: 1.0rem;
  margin-bottom: 0;
  padding: 0 10px;
  width: auto;
  border: none;
  float: none;
}

/* Klasse: Darstellung von disabled Optionen in Dropdowns */
.cultivia-form-select option:disabled {
  font-weight: bold;
  background-color: lightgrey;
}

/* Divider zwischen Formular und Bedienelementen */
.cultivia-form-divider {
  border: 1px solid rgba(0, 0, 0, .125);
  margin-top: 10px;
  margin-bottom: 20px;
}

/* ------------------------------------------------------------------------- */
/* DATATABLES */
/* ------------------------------------------------------------------------- */

/* Abstaende der Anzeige der Anzahl Tabelleneintraege */
.dataTables_info {
  padding-top: 0.0 !important;
  padding-bottom: 0.5em !important;
  text-align: left !important;
}

.dataTables_length {
  text-align: left !important;
}

.dataTables_filter {
  text-align: right !important;
}

/* Ab Version 2.3 werden die Pfeile für die Spalternsortierung abhängig vom Inhalt angeordnet */
/* Die Sortierpfeile sollen immer rechts der Speltenbezeichnung sein (wie in Version 2.1 */
table.dataTable th div.dt-column-header {
  flex-direction: row !important;
}

/* BEREINIGUNG TODO */

/* Container fï¿½r Drag & Drop */
#dndtarget {
  min-height: 150px;
  padding: 4px;
  background-color: #E0E0E0;
}

#dndsource {
  min-height: 150px;
  padding: 4px;
  background-color: #E0E0E0;
}

#dndtarget div {
  background-color: #c9f3c9;
}

#dndsource div {
  background-color: #FFE5CC;
}
