.fixpos {
  margin-top: 1rem;
  margin-left: 4rem;
  width: 10rem;
}
.mark_input_text {
  width: 35px !important;
  height: 20px !important;
  margin: 0px;
  text-align: center;
}
.mark_input {
  width: 70px !important;
  height: 30px;
  margin: 0px;
}
tr.raum-element td {
  padding-left: 2px;
  padding-right: 2px;
  text-align: center;
}
tr.raum-element td.bezeichnung {
  height: 86px;
}
tr.raum-element td div.element {
  line-height: 30px;
  height: 30px;
  width: 110px;
  border: 1px solid silver;
  color: white;
  texfont-weight: bold;
}
tr.raum-element td div.element span {
  margin-left: 2px;
}
td.belegt div.element {
  background-color: #4a453f !important;
  border-radius: 10px;
  text-align: center;
  color: white;
  font-weight: bold;
}
td.frei div.element {
  background-color: #20bf20 !important;
  border-radius: 10px;
  text-align: center;
}
td.belegt.ortsabwesend div {
  background-color: #6d718c !important;
  border-radius: 10px;
  text-align: center;
}
td.belegt.krank div {
  background-color: red !important;
  border-radius: 10px;
  text-align: center;
}
td.raumname {
  font-weight: bold;
}
table.table-medidoku td.key {
  width: 120px;
  font-weight: bold;
  background-color: silver;
  text-align: right;
  color: white;
}
table.table-medidoku td.headline {
  width: 120px;
  font-weight: bold;
  background-color: #db0b00;
  text-align: right;
  color: white;
  font-size: 17px;
}
img.img.thumbnail.img-preview {
  width: 200px;
}
.edit-container {
  position: absolute;
  top: 120px;
  width: 200px;
  min-height: 200px;
  background-color: silver !important;
  text-align: left;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid grey;
  z-index: 10000;
}
p.bel-status {
  text-align: center;
  font-weight: bold;
  border-bottom: 1px solid grey;
}
input.IdentSuche {
  width: 93%;
}
img.avatar-image-belegung {
  position: absolute;
  right: -218px;
  top: 0px;
  background: white;
  padding: 0px;
  border: 1px solid grey;
  border-radius: 10px;
  padding: 10px;
}
span.label.label-maennlich {
  background-color: #8d8dff;
}
span.label.label-weiblich {
  background-color: #f76f6f;
}
span.label.label-un18 {
  background-color: orange;
}
a.btn.btn-scale-bel {
  width: 76%;
  margin-top: 4px;
}
ul.archivelist {
  margin: 0px;
  list-style-type: none;
}
ul.archivelist li {
  width: 23%;
  padding: 15px;
  float: left;
  margin: 0px;
}

div.bigelement.details {
  height: 600px;
}
div.bigelement {
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
  padding: 4px;
  line-height: 1.42857143;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 2px;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  display: inline-block;
  width: 100%;
  height: 100px;
  border-radius: 5px;
  position: relative;
}
span.filename {
  display: block;
  background-color: #db002c;
  margin-left: -4px;
  margin-right: -4px;
  margin-top: -4px;
  padding: 10px;
  color: white;
  border-radius: 5px;
  text-overflow: ellipsis;
  overflow: hidden;
}
span.date {
  display: block;
  background-color: rgb(199, 199, 199);
  margin-left: -4px;
  margin-right: -4px;
  margin-top: -4px;
  padding: 5px;
  color: white;
  font-size: 11px;
}
ul.bez-stack-01-ul,
ul.bez-stack-02-ul {
  list-style-type: none;
  margin: 0px;
  padding: 0px;
}
ul.bez-stack-02-ul {
  margin-bottom: 10px;
}
li.bez-stack-03-li {
  width: 200px;
  border: 1px solid black;
  /* height: 75px; */
  border-radius: 10px;
  background-color: #2ba288;
  line-height: 35px;
  text-align: center;
  color: white;
  float: left;
  margin-left: 10px;
  margin-right: 10px;
  padding-top: 20px;
  -webkit-box-shadow: 5px 5px 26px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 5px 5px 26px 0px rgba(0, 0, 0, 0.75);
  box-shadow: 5px 5px 26px 0px rgba(0, 0, 0, 0.75);
  font-size: 17px;
}
li.bez-stack-03-li.selbst {
  background-color: red;
}
li.bez-stack-03-li.beziehung {
  background-color: orange;
}
li.bez-stack-03-li.geschwister {
  margin-left: 50px;

  background-color: grey;
}
p.text-info-element {
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid silver;
  padding: 10px;
  border-radius: 10px;
  word-break: break-all;
}
tr.selected td {
  background-color: #b3b1b1 !important;
}
td.belegt.platzhalter.bel-clickable div.element {
  background-color: #adadad !important;
}

input.form-control.selector {
  margin-left: 10px;
  margin-top: -2px;
  /* border: 1px solid red !important; */
  /* padding: 10px; */
}

ul.belegungul {
  list-style-type: none;
  margin: 0px;
  padding: 0px;
  text-align: left;
}
ul.belegungul {
  height: 95px;
  margin-top: -8px;
}
ul.belegungul li div.name {
  display: block;
  padding: 2px;
  border: 1px solid silver;
  margin: 0px 0px 3px 0px;
  float: left;
  width: 200px;
  font-size: 11px !important;
  height: 40px;
}
ul.belegungul li div.grenzen {
  display: block;
  padding: 2px;
  border: 1px solid silver;
  margin: px 0px 0px 1px;
  float: left;
  width: 80px;
  text-align: center;
}

tr.raum-element:nth-of-type(2n) {
  background-color: #eee !important;
}

tr.raum-element:first-of-type {
  page-break: none;
  break-before: avoid;
  page-break-after: avoid;
}

tr.raum-element {
  display: block !important;
}
select#idbelegung_selector {
  margin-bottom: 0px;
}

a.btn.btn-lg.btn-vorauswahl-belegen {
  display: block;
  margin-left: 0px;
  height: auto;
  height: 29px;
  line-height: 19px;
  border: 0px;
}
i.nav-spacer {
  display: run-in;
  width: 30px;
  margin-left: 5px;
  margin-right: 5px;
  color: navy;
  font-weight: bold;
}
span.beleg-action-highlight.einzug {
  color: #333333;
  background-color: #ffdd34;
}
span.beleg-action-highlight.auszug {
  color: #333333;
  background-color: #34ffff;
}

.content-block.belegung-details-button.man {
  background-color: #c7c7ff;
}
.content-block.belegung-details-button.woman {
  background-color: #ffc0c0;
}

.content-block.belegung-details-button.divers {
  background-color: #ffe0bb;
}

ul.belegungul li div.name.man {
  background-color: #c7c7ff;
}
ul.belegungul li div.name.woman {
  background-color: #ffc0c0;
}

ul.belegungul li div.name.divers {
  background-color: #ffe0bb;
}

ul.belegungul li div.name.einzelzimmer {
  border: 2px solid grey;
  height: 87px;
  margin-bottom: 0px;
}

ul.belegungul li div.name.man.firma {
  background-color: navy !important;
  color: white !important;
}
ul.belegungul li div.name.woman.firma {
  background-color: red !important;
  color: white !important;
}

ul.belegungul li div.name.man.reederei {
  background-color: #583f79 !important;
  color: white !important;
}
ul.belegungul li div.name.woman.reederei {
  background-color: #ff00f7 !important;
  color: white !important;
}

.belegung-daily-view {
  list-style-type: none;
  padding: 0;
  margin-top: 2rem;
}

.room-details h2 {
  margin-top: 0;
}

.rooms-container {
  display: flex;
  margin-bottom: 1rem;
}

.room-number-box {
  width: 6rem;
  padding: 2rem;
  display: flex;
  justify-content: center;
  background: silver;
  font-weight: bold;
  margin-right: 2rem;
}

.room-box {
  width: 94%;
}

.raum.st1 {
  position: absolute;
  left: 00px;
}
.raum.st2 {
  position: absolute;

  left: 700px;
}

.raum.st4 {
  position: absolute;
  top: 0px;
  left: 1400px;
}

.raum.ra05,
.raum.ra16 {
  top: 0px;
}

.raum.ra06,
.raum.ra17 {
  top: 110px;
}

.raum.ra07,
.raum.ra18 {
  top: 220px;
}

.raum.ra08,
.raum.ra19 {
  top: 330px;
}

.raum.ra09,
.raum.ra20 {
  top: 440px;
}

.raum.ra10,
.raum.ra21 {
  top: 550px;
}
.raum.ra11,
.raum.ra22 {
  top: 660px;
}
.raum.ra12,
.raum.ra23 {
  top: 770px;
}
.raum.ra13,
.raum.ra24 {
  top: 880px;
}
.raum.ra14,
.raum.ra25 {
  top: 990px;
}
.raum.ra15,
.raum.ra26 {
  top: 1100px;
}

.raum.ra16,
.raum.ra17,
.raum.ra18,
.raum.ra19,
.raum.ra20,
.raum.ra21,
.raum.ra22,
.raum.ra23,
.raum.ra24,
.raum.ra25,
.raum.ra26 {
  left: 350px;
}
.raum.st2.ra16,
.raum.st2.ra17,
.raum.st2.ra18,
.raum.st2.ra19,
.raum.st2.ra20,
.raum.st2.ra21,
.raum.st2.ra22,
.raum.st2.ra23,
.raum.st2.ra24,
.raum.st2.ra25,
.raum.st2.ra26 {
  left: 1050px;
}

.raum.st4.ra01 {
  top: 0px;
}

.raum.st4.ra02 {
  top: 110px;
}
.raum.st4.ra03 {
  top: 220px;
}
.raum.st4.ra04 {
  top: 330px;
}
.raum.st4.ra05 {
  top: 440px;
}
.raum.st4.ra06 {
  top: 550px;
}
.raum.st4.ra07 {
  top: 660px;
}
.raum.st4.ra08 {
  top: 770px;
}
.raum.st4 table tbody tr.raum-element td.bebzeichnung {
  background-color: #777;
  color: white !important;
}

.rooms-group-column {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  align-content: flex-start;
}

.mutlicolbelegung {
  position: relative;
  min-height: 2000px;
  display: flex;
  flex-wrap: wrap;
}

.desktop-navbar a.navlink.tooltiplink {
  padding: 12px;
  margin-top: 0;
  background-color: #015398;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  margin-right: 1px;
  border: none;
  border-radius: 6px;
  color: white;
  transition: all 0.2s ease;
}
.desktop-navbar a.navlink.tooltiplink:hover {
  background-color: #0370c9;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(1, 83, 152, 0.3);
}
.desktop-navbar a.navlink.tooltiplink.navy {
  background-color: #1a237e;
}
.desktop-navbar a.navlink.tooltiplink.navy:hover {
  background-color: #3949ab;
  box-shadow: 0 3px 8px rgba(26, 35, 126, 0.3);
}
.input-symbol-euro {
  position: relative;
}
.input-symbol-euro input {
  padding-left: 18px;
}
.input-symbol-euro:before {
  position: absolute;
  top: 0;
  content: "€";
  right: 5px;
  color: silver;
  font-size: 10px;
}

.navbar.navbar-fixed-top {
  background: linear-gradient(135deg, #f8f9fb 0%, #e8ecf1 100%);
  min-height: 0;
  height: auto;
  padding: 6px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-bottom: none;
  position: sticky !important;
  top: 0;
  z-index: 1030;
}
.mobile-navbar {
  display: none;
}
.mobile-navbar-top,
.mobile-navbar-search,
.mobile-navbar-panel {
  background: linear-gradient(135deg, #f8f9fb 0%, #e8ecf1 100%);
}
.mobile-navbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 8px;
  border-bottom: 1px solid rgba(1, 83, 152, 0.08);
}
.mobile-navbar-home {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b !important;
  text-decoration: none !important;
}
.mobile-navbar-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-navbar-toggle,
.mobile-navbar-notice {
  border: 1px solid #d7e0ea;
  background: #ffffff;
  color: #1e293b;
  border-radius: 10px;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-navbar-toggle i,
.mobile-navbar-notice i {
  font-size: 18px;
}
.mobile-navbar-notice span.count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  border-radius: 999px;
  background: #d9534f;
}
.mobile-email-notice span.count {
  background: #3498db;
}
.mobile-navbar-search {
  position: relative;
  padding: 0 12px 12px;
}
.mobile-navbar-panel {
  padding: 12px;
  border-top: 1px solid rgba(1, 83, 152, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-navbar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mobile-navlink {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  background: #ffffff;
  color: #334155 !important;
  text-decoration: none !important;
}
.mobile-navlink i {
  width: 20px;
  text-align: center;
  color: #015398;
  font-size: 16px;
}
.mobile-navlink span {
  line-height: 1.3;
  font-weight: 600;
  font-size: 13px;
}
.mobile-navlink.navlink_active,
.mobile-navlink:hover {
  border-color: #3b82f6;
  background: #eef5ff;
}
.mobile-navbar-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  color: #334155;
}
.mobile-navbar-user b {
  font-size: 14px;
}
.mobile-navbar-user span,
.mobile-navbar-user small {
  color: #64748b;
}
.mobile-navbar-account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.mobile-navbar-account-links .btn {
  flex: 1 1 calc(50% - 4px);
  border-radius: 10px;
  min-height: 46px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  font-size: 13px;
}
.navbar.navbar-fixed-top .navbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}
.navbar.navbar-fixed-top .navbar-inner > .pull-left,
.navbar.navbar-fixed-top .navbar-inner > .pull-right {
  float: none !important;
}
.navbar.navbar-fixed-top .navbar-inner > .pull-left:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #dbe4ee;
}
.navbar.navbar-fixed-top .navbar-inner > .pull-left + .pull-left {
  position: relative;
  order: 2;
  flex: 1 1 320px;
  min-width: 240px;
}
.navbar.navbar-fixed-top .navbar-inner > .pull-right.print-context {
  order: 3;
  flex-shrink: 0;
}
.navbar.navbar-fixed-top .navbar-inner > .pull-right:not(.print-context) {
  order: 4;
  flex-shrink: 0;
  margin-left: auto;
}
.navbar.navbar-fixed-top
  .navbar-inner
  > .pull-left.desktop-navbar-icons:first-child {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: center;
}
.navbar.navbar-fixed-top .navbar-inner > .desktop-navbar-search {
  position: relative;
  flex: 1 1 320px;
  width: auto;
  min-width: 220px;
  max-width: 520px;
  margin-left: 4px;
}
.navbar.navbar-fixed-top .navbar-inner > .desktop-navbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
}
input#livesearch {
  width: 100%;
  margin-top: 0;
  margin-left: 0;
  border-radius: 8px;
  border: 1px solid #e0e5ec;
  height: 40px;
  padding: 6px 14px;
  font-size: 13px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
input#livesearch:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}
.container-fluid {
  margin-top: 0;
  padding-left: 10px !important;
  padding-right: 10px !important;
  width: 100%;
}
body > .container-fluid {
  margin-top: 16px;
}
h1 {
  margin: 0px !important;
}

.desktop-navbar .account-context {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: right;
  line-height: 1;
  margin-right: 0;
  height: auto;
  background-color: transparent;
  margin-top: 0;
  padding-right: 0;
  position: relative;
  white-space: nowrap;
}
.desktop-navbar .account-context i {
  font-size: 16px;
}
.desktop-navbar .account-context b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #1e293b;
  margin: 0;
}
.desktop-navbar .account-context b a {
  color: #475569;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.desktop-navbar .account-context b a:hover {
  color: #015398;
  background-color: rgba(1, 83, 152, 0.08);
  text-decoration: none;
}
.desktop-navbar div#account_menu_neu {
  background-color: white;
  padding: 16px 18px;
  border: 1px solid #e0e5ec;
  border-radius: 12px;
  line-height: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;
  min-width: 240px;
}
.desktop-navbar div#account_menu_neu b {
  font-size: 14px;
  color: #1e293b;
}
.desktop-navbar div#account_menu_neu span {
  color: #94a3b8;
  font-size: 12px;
}
.desktop-navbar div#account_menu_neu .btn {
  border-radius: 8px;
  margin: 3px 2px !important;
  font-size: 12px;
  padding: 5px 10px;
  transition: all 0.2s ease;
}
.desktop-navbar div#account_menu_neu .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

tr.nonactive-person-role {
  background: repeating-linear-gradient(
    45deg,
    rgba(222, 222, 222, 0.57),
    rgba(247, 247, 247, 0.38) 10px,
    rgba(189, 189, 189, 0) 10px,
    rgba(239, 239, 239, 0) 20px
  );
}

.desktop-navbar-actions .print-context {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid #e0e5ec;
  background: #ffffff;
  padding: 0 12px;
  margin: 0;
  border-radius: 8px;
  width: auto;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.desktop-navbar-actions .print-context:hover {
  background: #f0f4ff;
  border-color: #3b82f6;
}
.desktop-navbar-actions .print-context .btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  border-radius: 6px;
}

.desktop-navbar .pinnwand-notice,
.desktop-navbar .newcontact-notice,
.desktop-navbar .newemail-notice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 0;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.16);
  transition: all 0.2s ease;
  line-height: 1;
}
.desktop-navbar .pinnwand-notice:hover,
.desktop-navbar .newcontact-notice:hover,
.desktop-navbar .newemail-notice:hover {
  background-color: rgba(255, 255, 255, 0.26);
}
.desktop-navbar .pinnwand-notice span.count,
.desktop-navbar .newcontact-notice span.count,
.desktop-navbar .newemail-notice span.count {
  font-size: 13px;
  font-weight: 700;
  color: white;
  border-radius: 10px;
  padding: 2px 7px;
  min-width: 22px;
  text-align: center;
  line-height: 18px;
  position: static;
  border: none;
}
.desktop-navbar .pinnwand-notice span.count,
.desktop-navbar .newcontact-notice span.count {
  background-color: #e74c3c;
}
.desktop-navbar .newemail-notice span.count {
  background-color: #3498db;
}
.desktop-navbar .pinnwand-notice i.fa.fa-thumb-tack,
.desktop-navbar .newcontact-notice i.fa,
.desktop-navbar .newemail-notice i.fa {
  font-size: 14px;
  color: white;
  position: static;
  transform: none;
}
a.btn.btn-mini.btn-bemerkung.btn-default.btn-bemerkung-vorhanden i {
  color: orange;
}

div.filter-container {
  line-height: 35px;
  position: relative;
  border: 1px solid grey;
  border-radius: 5px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  display: flex;
}

div.filter-container i.fa.fa-filter {
  position: absolute;
  color: navy;
  font-size: 30px;
  right: -10px;
  top: -10px;
}
div.filter-container span.filter-name {
  position: absolute;
  font-size: 15px;
  left: -10px;
  top: -10px;
  font-weight: normal;
  border: 1px solid grey;
  padding: 3px;
  height: 23px;
  line-height: 15px;
  background-color: #f7f7f7;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

tr.szb-color-16:nth-child(even) {
  background-color: rgb(223, 240, 216, 0.7) !important;
}
tr.szb-color-16:nth-child(odd) {
  background-color: rgba(223, 240, 216, 0.35) !important;
}
tr.szb-color-17:nth-child(even) {
  background-color: rgb(49, 112, 143, 0.7) !important;
}
tr.szb-color-17:nth-child(odd) {
  background-color: rgba(49, 112, 143, 0.35) !important;
}

tr.szb-color-18:nth-child(even) {
  background-color: rgb(138, 109, 59, 0.7) !important;
}
tr.szb-color-18:nth-child(odd) {
  background-color: rgba(138, 109, 59, 0.35) !important;
}

tr.szb-color-19:nth-child(even) {
  background-color: rgb(169, 68, 66, 0.7) !important;
}
tr.szb-color-19:nth-child(odd) {
  background-color: rgba(169, 68, 66, 0.35) !important;
}
tr.szb-color-20:nth-child(even) {
  background-color: rgb(223, 240, 216, 0.7) !important;
}
tr.szb-color-20:nth-child(odd) {
  background-color: rgba(223, 240, 216, 0.35) !important;
}
tr.szb-color-21:nth-child(even) {
  background-color: rgb(49, 112, 143, 0.7) !important;
}
tr.szb-color-21:nth-child(odd) {
  background-color: rgba(49, 112, 143, 0.35) !important;
}
tr.szb-color-22:nth-child(even) {
  background-color: rgb(138, 109, 59, 0.7) !important;
}
tr.szb-color-22:nth-child(odd) {
  background-color: rgba(138, 109, 59, 0.35) !important;
}
a#floorplan_jumptodaybutton,
a#belegunskw_jumptodaybutton {
  height: 45px;
  margin-top: -7px;
  border-radius: 0px;
  line-height: 30px;
}
#belegung_loader.hidden {
  display: none;
}
span#belegung_loader img {
  width: 20px;
  margin-left: 20px;
  margin-right: 20px;
  margin-top: -10px;
}

.modalChangeBelegungOwner-ergebnisse ul {
  list-style-type: none;
  margin: 0px;
  padding: 0px;
}
.modalChangeBelegungOwner-ergebnisse ul li {
  width: 100%;
  border-bottom: 1px solid grey;
  padding: 1rem;
  clear: both;
  position: relative;
}
.modalChangeBelegungOwner-ergebnisse ul li a.btn {
  float: right;
  top: 3px;
  right: 0px;
  position: absolute;
  color: white;
  background-color: #337ab7;
}

ul.livesearch li sub {
  border: 0rem;
  top: 0rem;
}

.checkbox-holder {
  position: relative;
  top: 0px;
  display: inline-block;
  top: -3px;
  margin-left: 1rem;
}
/* The checkbox-container */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 25px;
  background-color: #eee;
  border: 1px solid grey;
}
/* On mouse-over, add a grey background color */
.checkbox-container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark {
  background-color: #2196f3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.modal-dialog-more-width {
  max-width: 950px;
  margin: 30px auto;
}
a.navlink.navlink_active.tooltiplink {
  background: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

body.is-dev-system {
  background: #ffa5005c;
}

body.is-dev-system a.navlink.tooltiplink {
  background: #ff9800;
}
body.is-dev-system a.navlink.tooltiplink:hover {
  background: #ffb74d;
  box-shadow: 0 3px 8px rgba(255, 152, 0, 0.4);
}

body.is-dev-system .navbar.navbar-fixed-top {
  background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
  border-bottom-color: #e64a19;
}

body.is-test-system {
  background: #9c27b073;
}

body.is-test-system a.navlink.tooltiplink {
  background: #673ab7;
}
body.is-test-system a.navlink.tooltiplink:hover {
  background: #9575cd;
  box-shadow: 0 3px 8px rgba(103, 58, 183, 0.4);
}

body.is-test-system .navbar.navbar-fixed-top {
  background: linear-gradient(135deg, #673ab7c2 0%, #7e57c2 100%);
  border-bottom-color: #512da8;
}

#invoiceSubmit {
  display: inline-block;
}

/* =============================================
   BELEGUNG
   ============================================= */

.belegung-modern-alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.belegung-page-header,
.belegung-subpage-header,
.belegung-toolbar-card,
.belegung-data-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.belegung-page-header,
.belegung-subpage-header {
  margin-bottom: 20px;
  padding: 20px 24px;
}

.belegung-subpage-top,
.belegung-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.belegung-page-header-main,
.belegung-page-actions,
.belegung-toolbar-field,
.belegung-data-section {
  min-width: 0;
}

.belegung-page-header-main {
  flex: 1 1 360px;
}

.belegung-page-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
}

.belegung-page-title i {
  margin-right: 10px;
  color: #015398;
  font-size: 24px;
}

.belegung-page-subtitle,
.belegung-section-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.belegung-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.belegung-page-actions .btn {
  min-height: 40px;
}

.belegung-toolbar-card {
  margin-bottom: 20px;
  padding: 18px 24px;
}

.belegung-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.belegung-toolbar-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.belegung-select-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.belegung-period-select,
.belegung-date-input {
  width: 100%;
  max-width: 420px;
  min-height: 46px;
  padding: 10px 14px !important;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #ffffff;
  font-size: 18px;
  line-height: 1.4 !important;
  box-shadow: none;
}

.belegung-toolbar-loader {
  display: inline-flex;
  align-items: center;
}

.belegung-toolbar-loader img {
  width: 20px;
  margin: 0;
}

.belegung-tabs-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.belegung-tabs-nav {
  padding: 0 16px;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf1;
}

.belegung-tabs-nav > li > a {
  color: #475569;
  font-weight: 600;
}

.belegung-tabs-shell .tab-content {
  background: #ffffff;
}

.belegung-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.belegung-data-section {
  margin-bottom: 20px;
  padding: 20px 24px;
}

.belegung-section-title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.3;
  color: #1a2233;
}

.belegung-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.belegung-data-table {
  width: 100%;
  margin-bottom: 0;
}

.belegung-data-table th,
.belegung-data-table td {
  vertical-align: top;
  white-space: normal;
}

.belegung-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.belegung-inline-actions .btn {
  margin: 0;
}

.belegung-room-table {
  display: block;
  width: 324px;
  margin: 0 14px 14px 0;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.belegung-room-table tbody {
  display: block;
  width: 100%;
}

.belegung-room-card {
  display: flex !important;
  align-items: stretch;
  background: transparent !important;
  width: 100%;
}

.belegung-room-label {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 72px;
  min-width: 72px;
  min-height: 72px;
  padding: 14px 10px !important;
  background: linear-gradient(180deg, #eef2f7 0%, #dce3ec 100%);
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  box-sizing: border-box;
  border-radius: 13px 0 0 13px;
}

.belegung-room-content {
  width: calc(100% - 72px);
  min-width: 0;
  padding: 12px !important;
  position: relative;
  box-sizing: border-box;
}

.belegung-room-card > td {
  box-sizing: border-box;
}

table.belegung-room-table > tbody > tr.belegung-room-card {
  display: flex !important;
  width: 100%;
}

.belegung-occupancy-list {
  height: auto;
  margin-top: 0 !important;
}

.belegung-room-content .belegung-occupancy-item {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.belegung-room-content .belegung-occupancy-item + .belegung-occupancy-item,
.belegung-occupancy-action {
  margin-top: 6px;
}

.belegung-room-content
  ul.belegung-occupancy-list
  li.belegung-occupancy-item
  > div.name,
.belegung-room-content
  ul.belegung-occupancy-list
  li.belegung-occupancy-action
  > div.name {
  float: none;
  width: calc(100% - 82px);
  display: block;
  min-width: 0;
  height: auto;
  min-height: 42px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.35;
}

.belegung-room-content
  ul.belegung-occupancy-list
  li.belegung-occupancy-item
  > div.grenzen {
  float: none;
  flex: 0 0 74px;
  margin: 0;
  padding: 7px 6px;
  border-radius: 10px;
  background: #f8fafc;
  line-height: 1.25;
}

.belegung-room-content
  ul.belegung-occupancy-list
  li.belegung-occupancy-action
  > div.name {
  width: 100%;
}

/* Override legacy fixed-height rules that clip content inside room cards */
table.belegung-room-table tr.raum-element td.bezeichnung {
  height: auto;
}

table.belegung-room-table ul.belegungul {
  height: auto;
  margin-top: 0;
}

table.belegung-room-table ul.belegungul li div.name {
  height: auto;
}

.belegung-room-action-btn {
  width: 100%;
}

.belegung-quickedit-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.belegung-quickedit-results {
  margin-top: 10px;
}

.belegung-lockroom-btn {
  margin-top: 10px;
}

.belegung-daily-view {
  display: grid;
  gap: 18px;
  margin-top: 0;
}

.rooms-container {
  align-items: stretch;
  gap: 16px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.room-number-box {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 96px;
  min-width: 96px;
  margin-right: 0;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eef2f7 0%, #dce3ec 100%);
}

.room-number-box span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.room-number-box p {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.room-box {
  display: grid;
  gap: 12px;
}

.room-details {
  list-style: none;
}

.room-details h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #1f2937;
}

.belegung-daily-view .content-block {
  display: grid;
  grid-template-columns: 130px 130px minmax(0, 1fr) auto;
  align-items: stretch;
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  overflow: hidden;
  line-height: normal;
}

.belegung-daily-view .content-block span.beginn,
.belegung-daily-view .content-block span.ende,
.belegung-daily-view .content-block span.name {
  display: flex;
  align-items: center;
  width: auto;
  min-height: 64px;
  margin: 0;
  border: 0;
}

.belegung-daily-view .content-block span.beginn,
.belegung-daily-view .content-block span.ende {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}

.belegung-daily-view .content-block span.name {
  padding: 12px 14px;
  font-size: 18px;
  font-weight: 600;
  white-space: normal;
}

.belegung-day-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.18);
}

.edit-contact-btn {
  margin: 0;
}

/* =============================================
   MODERNE KONTAKTE-ÜBERSICHT
   ============================================= */

/* --- Alerts --- */
.contacts-modern-alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

/* --- Page Header --- */
.contacts-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}
.contacts-header-left {
  flex-shrink: 0;
}
.contacts-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
}
.contacts-title i {
  color: #3b82f6;
  margin-right: 10px;
  font-size: 24px;
}
.contacts-header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}
.contacts-filter-bar {
  display: flex;
  gap: 8px;
}
.contacts-filter-btn {
  border-radius: 8px !important;
  border: 1px solid #e0e5ec !important;
  color: #4a5568 !important;
  font-size: 13px;
  padding: 7px 14px;
  transition: all 0.2s ease;
  background: #fff !important;
}
.contacts-filter-btn:hover {
  background: #f0f4ff !important;
  border-color: #3b82f6 !important;
  color: #3b82f6 !important;
}
.contacts-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.contacts-stats-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #64748b !important;
  font-size: 16px;
  transition: all 0.2s ease;
  text-decoration: none !important;
  border: 1px solid #e2e8f0;
}
.contacts-stats-btn:hover {
  background: #e0e7ff;
  color: #3b82f6 !important;
  border-color: #3b82f6;
}
.contacts-btn-add {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 9px 18px !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}
.contacts-btn-add:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}
.contacts-btn-add i {
  margin-right: 6px;
}
.contacts-export-btn {
  border-radius: 10px !important;
  border: 1px solid #e0e5ec !important;
  color: #4a5568 !important;
  font-size: 13px;
  padding: 9px 16px !important;
  transition: all 0.2s ease;
  background: #fff !important;
}
.contacts-export-btn:hover {
  background: #f0f4ff !important;
  border-color: #3b82f6 !important;
  color: #3b82f6 !important;
}

/* --- Dropdown Modern --- */
.contacts-dropdown-modern {
  border-radius: 12px !important;
  border: 1px solid #e8ecf1 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
  padding: 8px 0 !important;
  overflow: hidden;
}
.contacts-dropdown-modern li a {
  padding: 8px 18px !important;
  font-size: 13px;
  color: #374151 !important;
  transition: all 0.15s ease;
  cursor: pointer;
  text-align: left !important;
}
.contacts-dropdown-modern li a:hover {
  background: #f0f4ff !important;
  color: #3b82f6 !important;
}
.contacts-dropdown-modern li a i {
  width: 20px;
  text-align: center;
  margin-right: 8px;
  color: #94a3b8;
}
.contacts-dropdown-modern li a:hover i {
  color: #3b82f6;
}
.contacts-dropdown-modern .dropdown-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  padding: 8px 18px;
}
.contacts-dropdown-modern .divider {
  margin: 4px 0;
  background-color: #f1f5f9;
}

/* --- Active Filters --- */
.contacts-active-filters {
  padding: 8px 16px;
  margin-bottom: 12px;
}
.contacts-filter-tag {
  display: inline-block;
  font-size: 12px;
  color: #6b7280;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  margin-right: 6px;
}

/* =============================================
   GRUPPEN-ÜBERSICHT
   ============================================= */

.groups-page-header {
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.groups-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.groups-header-left,
.groups-header-right,
.groups-filter-panel,
.groups-pagination-wrap {
  min-width: 0;
}

.groups-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
}

.groups-title i {
  color: #64748b;
  margin-right: 10px;
  font-size: 24px;
}

.groups-header-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.groups-filter-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
}

.groups-filter-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.groups-filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.groups-filter-controls .btn-group,
.groups-filter-controls .btn {
  max-width: 100%;
}

.groups-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.groups-active-filters-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.groups-active-filters span[id^="filtergroups_"] {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.groups-active-filters span[id^="filtergroups_"]:empty {
  display: none;
}

.groups-tabs-shell {
  overflow: hidden;
}

.groups-tabs-mobile-select {
  display: none;
  padding: 14px 14px 0;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf1;
}

.groups-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}

.groups-tabs-shell .tab-content {
  background: #fff;
}

.groups-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.groups-modern-table {
  width: 100%;
  min-width: 940px;
  margin-bottom: 0;
}

.groups-th-sortable,
.groups-th-actions {
  vertical-align: bottom;
}

.groups-modern-table td {
  vertical-align: top;
}

.groups-th-label {
  display: block;
  line-height: 1.35;
}

.groups-th-label i.glyphicon:empty {
  display: none;
}

.groups-th-actions {
  width: 228px;
  min-width: 228px;
}

.groups-sort-icons {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

.groups-td-primary {
  font-weight: 600;
  color: #1f2937;
}

.groups-td-data {
  white-space: normal;
}

.groups-td-data .label {
  display: inline-block;
  margin: 0 4px 4px 0;
  white-space: normal;
}

.groups-td-actions {
  width: 228px;
  min-width: 228px;
}

.groups-action-group {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  width: auto;
  min-width: 0;
}

.groups-actions-toggle {
  display: none;
}

.groups-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  flex: 0 0 auto;
}

.groups-checkbox-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  flex: 0 0 auto;
}

.groups-checkbox-label input {
  margin: 0;
  position: static;
}

@media (min-width: 761px) {
  .groups-modern-table thead th {
    vertical-align: top;
    padding-top: 12px;
    padding-bottom: 10px;
    line-height: 1.3;
  }

  .groups-th-sortable,
  .groups-th-actions {
    vertical-align: top;
  }

  .groups-sort-icons {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .groups-actions-toggle {
    display: none !important;
  }

  .groups-action-group {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .groups-td-actions {
    vertical-align: middle;
    text-align: right;
    white-space: nowrap;
  }
}

@media (max-width: 1360px) and (min-width: 761px) {
  .groups-th-actions,
  .groups-td-actions {
    width: 196px;
    min-width: 196px;
  }

  .groups-action-group {
    gap: 4px;
  }

  .groups-action-btn {
    min-width: 30px;
    min-height: 30px;
    padding: 0 8px;
  }

  .groups-checkbox-label {
    min-width: 30px;
    min-height: 30px;
    padding: 0 4px;
  }
}

.groups-proof-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.groups-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
}

.groups-pagination-wrap {
  flex: 1;
}

.groups-pagination {
  display: inline-block;
}

.groups-pagination-arrow {
  display: none;
}

.groups-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.groups-pagination ul li {
  display: inline-block;
}

.groups-pagination ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  background: #f8f9fb;
  border: 1px solid #e8ecf1;
  transition: all 0.2s ease;
}

.groups-pagination ul li a:hover {
  background: #e0e7ff;
  color: #3b82f6;
  border-color: #3b82f6;
}

.groups-pagination ul li.groups-page-active a {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
  pointer-events: none;
}

.groups-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.groups-footer-actions .btn-group,
.groups-footer-actions .btn,
.groups-print-form {
  margin: 0;
}

.groups-print-form {
  display: inline-flex;
}

.groups-paging-btn {
  border-radius: 8px !important;
  font-size: 13px;
  padding: 7px 14px !important;
  border: 1px solid #e0e5ec !important;
  background: #fff !important;
  color: #4a5568 !important;
  transition: all 0.2s ease;
}

.groups-paging-btn:hover {
  background: #f0f4ff !important;
  border-color: #3b82f6 !important;
}

.groups-bulk-btn {
  border-radius: 8px !important;
  font-size: 13px;
  padding: 7px 14px !important;
  transition: all 0.2s ease;
  white-space: normal;
}

.groups-bulk-btn.btn-danger {
  background: #fef2f2 !important;
  color: #ef4444 !important;
  border: 1px solid #fecaca !important;
}

.groups-bulk-btn.btn-danger:hover {
  background: #ef4444 !important;
  color: #fff !important;
}

.groups-print-form .btn {
  white-space: normal;
}

.groups-subpage-header {
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.groups-subpage-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.groups-subpage-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  color: #1a2233;
}

.groups-subpage-title a {
  color: inherit;
  text-decoration: none;
}

.groups-subpage-actions,
.groups-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.groups-table-toolbar {
  margin-bottom: 12px;
}

.groups-subpage-actions .btn-group,
.groups-subpage-actions .btn,
.groups-table-toolbar .btn {
  max-width: 100%;
}

.groups-responsive-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.groups-responsive-card-table {
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
}

.groups-responsive-card-table th,
.groups-responsive-card-table td {
  vertical-align: top;
  white-space: normal;
}

.groups-inline-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.groups-inline-action-list .btn,
.groups-inline-action-list a.btn {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.groups-proof-rules-card {
  margin-top: 18px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.groups-proof-rules-card p {
  margin-bottom: 12px;
}

.groups-proof-rules {
  margin: 0;
  padding-left: 20px;
}

.groups-proof-rules li + li {
  margin-top: 8px;
}

/* =============================================
   STUDIENGAENGE-UEBERSICHT
   ============================================= */

.majors-modern-alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.majors-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.majors-header-content,
.majors-header-actions,
.majors-tabs-shell,
.majors-table-wrapper {
  min-width: 0;
}

.majors-header-content {
  flex: 1 1 360px;
}

.majors-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
}

.majors-title i {
  margin-right: 10px;
  color: #3b82f6;
  font-size: 24px;
}

.majors-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.majors-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.majors-header-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

/* =============================================
   ERINNERUNGEN
   ============================================= */

.erinnerung-modern-alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.erinnerung-page-header,
.erinnerung-form-header {
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.erinnerung-header-content {
  display: grid;
  gap: 6px;
}

.erinnerung-title,
.erinnerung-form-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
}

.erinnerung-title i {
  color: #64748b;
  margin-right: 10px;
}

.erinnerung-form-title {
  font-size: 24px;
  line-height: 1.3;
}

.erinnerung-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.erinnerung-tabs-shell,
.erinnerung-form-tabs-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.erinnerung-tabs-mobile-select {
  display: none;
  padding: 14px 14px 0;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf1;
}

.erinnerung-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}

.erinnerung-tabs-nav > li {
  min-width: 0;
}

.erinnerung-tabs-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.erinnerung-tabs-shell .tab-content {
  background: #ffffff;
}

.erinnerung-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.erinnerung-modern-table {
  min-width: 900px;
}

.erinnerung-modern-table .groups-td-actions {
  width: 120px;
}

.erinnerung-footer {
  border-top: 1px solid #f1f5f9;
}

.erinnerung-legacy-form .tab-content {
  background: #ffffff;
}

.erinnerung-schedule-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 20px minmax(260px, 1fr);
  gap: 0;
  align-items: start;
}

.erinnerung-schedule-column {
  min-width: 0;
}

.erinnerung-schedule-spacer {
  min-height: 1px;
}

.erinnerung-schedule-column .well {
  margin-bottom: 16px;
}

.erinnerung-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  clear: both;
}

.erinnerung-form-actions-split {
  justify-content: space-between;
}

.erinnerung-form-actions .btn {
  min-height: 40px;
}

.btn-reminder-fullwidth {
  width: 90%;
}

.majors-tabs-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.majors-tabs-mobile-select {
  display: none;
  padding: 14px 14px 0;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf1;
}

.majors-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}

.majors-tabs-nav > li {
  min-width: 0;
}

.majors-tabs-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.majors-tab-pane {
  padding: 0;
}

.majors-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.majors-modern-table {
  width: 100%;
  min-width: 760px;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.majors-modern-table thead th {
  background: #f8f9fb;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e8ecf1;
  white-space: nowrap;
}

.majors-modern-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.majors-data-row:last-child td {
  border-bottom: none;
}

.majors-data-row:hover {
  background-color: #f8fbff !important;
}

.majors-td-primary {
  font-weight: 600;
  color: #1f2937;
}

.majors-price-value {
  font-weight: 600;
  white-space: nowrap;
}

.majors-td-data {
  white-space: normal;
}

.majors-td-data .label {
  display: inline-block;
  margin: 0 4px 4px 0;
  white-space: normal;
}

.majors-color-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  min-width: 150px;
  max-width: 100%;
  padding: 4px 12px;
  text-align: center;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.majors-th-actions,
.majors-td-actions {
  width: 190px;
  min-width: 190px;
}

.majors-action-group {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  width: auto;
  min-width: 0;
}

.majors-actions-toggle {
  display: none;
}

.majors-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  flex: 0 0 auto;
}

.majors-action-btn:hover {
  transform: translateY(-1px);
}

.majors-action-btn span {
  display: none;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 1360px) and (min-width: 761px) {
  .majors-th-actions,
  .majors-td-actions {
    width: 164px;
    min-width: 164px;
  }

  .majors-action-group {
    gap: 4px;
  }

  .majors-action-btn {
    min-width: 32px;
    min-height: 32px;
    padding: 0 8px;
  }
}

@media (min-width: 761px) {
  .majors-actions-toggle {
    display: none !important;
  }

  .majors-action-group {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .majors-td-actions {
    text-align: right;
    white-space: nowrap;
    vertical-align: middle;
  }
}

.majors-action-edit:hover {
  background: #ecfdf5;
  color: #16a34a !important;
  border-color: #bbf7d0;
}

.majors-action-delete:hover {
  background: #fef2f2;
  color: #ef4444 !important;
  border-color: #fecaca;
}

.majors-footer,
.majors-footer.contacts-footer {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
}

.majors-pagination-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.majors-pagination {
  display: inline-block;
}

.majors-pagination-arrow {
  display: none;
}

.majors-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.majors-pagination ul li {
  display: inline-block;
}

.majors-pagination ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  background: #f8f9fb;
  border: 1px solid #e8ecf1;
  transition: all 0.2s ease;
}

.majors-pagination ul li a:hover {
  background: #e0e7ff;
  color: #3b82f6;
  border-color: #3b82f6;
}

.majors-pagination ul li.majors-page-active a {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
  pointer-events: none;
}

.majors-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.majors-footer-actions .btn,
.majors-footer-actions .btn-group {
  margin: 0;
}

.worklist-page-header {
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.worklist-header-content {
  max-width: 760px;
}

.worklist-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
}

.worklist-title i {
  color: #16a34a;
  margin-right: 10px;
  font-size: 24px;
}

.worklist-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
}

.worklist-tabs-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.worklist-tabs-mobile-select {
  display: none;
  padding: 14px 14px 14px;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf1;
}

.worklist-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}

.worklist-tabs-nav > li {
  min-width: 0;
}

.worklist-tabs-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.worklist-tab-pane {
  padding: 0;
}

.worklist-tabs-shell .tab-content {
  background: #ffffff;
}

.worklist-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.worklist-modern-table {
  width: 100%;
  min-width: 760px;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.worklist-modern-table thead th {
  background: #f8f9fb;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e8ecf1;
  white-space: nowrap;
}

.worklist-modern-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.worklist-data-row:hover {
  background-color: #f8fbff !important;
}

.worklist-data-row:last-child td {
  border-bottom: none;
}

.worklist-td-primary {
  font-weight: 600;
  color: #1f2937;
}

.worklist-th-actions,
.worklist-td-actions {
  width: 200px;
  text-align: right;
}

.worklist-actions-toggle {
  display: none;
}

.worklist-action-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.worklist-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.worklist-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
}

.worklist-pagination-wrap {
  flex: 1;
}

.worklist-pagination {
  display: inline-block;
}

.worklist-pagination-arrow {
  display: none;
}

.worklist-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.worklist-pagination ul li {
  display: inline-block;
}

.worklist-pagination ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  background: #f8f9fb;
  border: 1px solid #e8ecf1;
  transition: all 0.2s ease;
}

.worklist-pagination ul li a:hover {
  background: #e0e7ff;
  color: #3b82f6;
  border-color: #3b82f6;
}

.worklist-pagination ul li.worklist-page-active a {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
  pointer-events: none;
}

@media (min-width: 761px) {
  .worklist-th-actions,
  .worklist-td-actions {
    width: 230px;
    min-width: 230px;
    text-align: right;
    vertical-align: middle;
  }

  .worklist-actions-toggle {
    display: none !important;
  }

  .worklist-action-group {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
  }

  .worklist-action-btn {
    min-width: 0;
    padding: 0 14px;
    font-size: 12px;
    line-height: 1;
    flex: 0 0 auto;
  }
}

@media (max-width: 1360px) and (min-width: 761px) {
  .worklist-th-actions,
  .worklist-td-actions {
    width: 206px;
    min-width: 206px;
  }

  .worklist-action-btn {
    padding: 0 12px;
    font-size: 11.5px;
  }
}

.worklist-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.worklist-paging-btn {
  border-radius: 8px !important;
  font-size: 13px;
  padding: 7px 14px !important;
  border: 1px solid #e0e5ec !important;
  background: #fff !important;
  color: #4a5568 !important;
  transition: all 0.2s ease;
}

.worklist-paging-btn:hover {
  background: #f0f4ff !important;
  border-color: #3b82f6 !important;
}

.cleanup-page-header {
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.cleanup-header-content {
  max-width: 780px;
}

.cleanup-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
}

.cleanup-title i {
  color: #0f766e;
  margin-right: 10px;
  font-size: 24px;
}

.cleanup-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
}

.cleanup-tabs-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.cleanup-tabs-mobile-select {
  display: none;
  padding: 14px 14px 12px;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf1;
}

.cleanup-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}

.cleanup-tabs-nav > li {
  min-width: 0;
}

.cleanup-tabs-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cleanup-tab-pane {
  padding: 0;
}

.cleanup-tabs-shell .tab-content {
  background: #ffffff;
}

.cleanup-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cleanup-modern-table {
  width: 100%;
  min-width: 760px;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.cleanup-modern-table thead th {
  background: #f8f9fb;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e8ecf1;
  white-space: nowrap;
}

.cleanup-modern-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  white-space: normal;
}

.cleanup-data-row:hover {
  background-color: #f8fbff !important;
}

.cleanup-data-row:last-child td {
  border-bottom: none;
}

.cleanup-td-primary {
  font-weight: 600;
  color: #1f2937;
}

.cleanup-th-actions,
.cleanup-td-actions,
.cleanup-td-select {
  width: 160px;
  text-align: right;
}

.cleanup-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  white-space: nowrap;
}

.cleanup-select-control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.cleanup-select-control input {
  margin: 0;
}

.cleanup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
}

.cleanup-footer-actions-only {
  justify-content: flex-end;
}

.cleanup-pagination-wrap {
  flex: 1;
}

.cleanup-pagination {
  display: inline-block;
}

.cleanup-pagination-arrow {
  display: none;
}

.cleanup-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cleanup-pagination ul li {
  display: inline-block;
}

.cleanup-pagination ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  background: #f8f9fb;
  border: 1px solid #e8ecf1;
  transition: all 0.2s ease;
}

.cleanup-pagination ul li a:hover {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #38bdf8;
}

.cleanup-pagination ul li.cleanup-page-active a {
  background: #0ea5e9;
  color: #ffffff;
  border-color: #0ea5e9;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25);
  pointer-events: none;
}

.cleanup-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cleanup-footer-actions .btn {
  margin: 0;
}

.cleanup-paging-btn {
  border-radius: 8px !important;
  font-size: 13px;
  padding: 7px 14px !important;
  border: 1px solid #e0e5ec !important;
  background: #fff !important;
  color: #4a5568 !important;
  transition: all 0.2s ease;
}

.cleanup-paging-btn:hover {
  background: #f0f4ff !important;
  border-color: #0ea5e9 !important;
}

.majors-paging-btn {
  border-radius: 8px !important;
  font-size: 13px;
  padding: 7px 14px !important;
  border: 1px solid #e0e5ec !important;
  background: #fff !important;
  color: #4a5568 !important;
  transition: all 0.2s ease;
}

.majors-paging-btn:hover {
  background: #f0f4ff !important;
  border-color: #3b82f6 !important;
}

/* =============================================
   INFOSYS
   ============================================= */

.infosys-modern-alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.infosys-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.infosys-header-content,
.infosys-header-actions,
.infosys-tabs-shell,
.infosys-table-wrapper {
  min-width: 0;
}

.infosys-header-content {
  flex: 1 1 360px;
}

.infosys-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
}

.infosys-title i {
  margin-right: 10px;
  color: #3b82f6;
  font-size: 24px;
}

.infosys-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.infosys-form-header {
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.infosys-form-header-content {
  display: grid;
  gap: 6px;
}

.infosys-form-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1a2233;
  line-height: 1.3;
}

.infosys-form-title a {
  color: inherit;
  text-decoration: none;
}

.infosys-form-title a:hover {
  color: #3b82f6;
}

.infosys-form-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.infosys-form-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.infosys-form-tabs > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.infosys-form-pane {
  padding: 20px 24px;
}

.infosys-form-fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.infosys-form-field {
  min-width: 0;
}

.infosys-form-field label {
  display: block;
  margin-bottom: 6px !important;
  font-weight: 600;
  color: #374151;
}

.infosys-form-field .form-control,
.infosys-form-field .input-append,
.infosys-form-field select,
.infosys-form-field input[type="text"],
.infosys-form-field input[type="number"] {
  width: 100%;
  max-width: 100%;
}

.infosys-form-field .input-append {
  display: block;
}

.infosys-form-field .note-editor {
  border-color: #dbe4ee;
}

.infosys-form-field .note-toolbar {
  background: #f8f9fb;
}

.infosys-form-field-editor .note-editor.note-frame.panel.panel-default {
  width: 100%;
  max-width: 100%;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.infosys-form-field-editor .note-editor .note-toolbar {
  padding: 10px 12px;
  border-bottom: 1px solid #e8ecf1;
}

.infosys-form-field-editor .note-editor .note-editing-area .note-editable {
  min-height: 240px;
  padding: 14px 16px;
  word-break: break-word;
}

.infosys-form-field-editor .note-editor .note-statusbar {
  border-top: 1px solid #eef2f7;
}

.infosys-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.infosys-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.infosys-header-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.infosys-tabs-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.infosys-tabs-mobile-select {
  display: none;
  padding: 14px 14px 14px;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf1;
}

.infosys-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}

.infosys-tabs-nav > li {
  min-width: 0;
}

.infosys-tabs-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.infosys-tab-pane {
  padding: 0;
}

.infosys-loading {
  padding: 32px 16px;
  text-align: center;
}

.infosys-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.infosys-modern-table {
  width: 100%;
  min-width: 760px;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.infosys-modern-table thead th {
  background: #f8f9fb;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e8ecf1;
  white-space: nowrap;
}

.infosys-modern-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.infosys-data-row:last-child td {
  border-bottom: none;
}

.infosys-data-row:hover {
  background-color: #f8fbff !important;
}

.infosys-td-primary {
  font-weight: 600;
  color: #1f2937;
}

.infosys-td-data {
  white-space: normal;
}

.infosys-td-data .label {
  display: inline-block;
  margin: 0 4px 4px 0;
  white-space: normal;
}

.infosys-background-name {
  word-break: break-word;
}

.infosys-empty-value {
  color: #94a3b8;
  font-style: italic;
}

.infosys-td-actions {
  width: 120px;
  text-align: right;
  position: relative;
}

.infosys-action-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.infosys-actions-toggle {
  display: none;
}

.infosys-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.infosys-action-btn:hover {
  transform: translateY(-1px);
}

.infosys-action-edit:hover {
  background: #eff6ff;
  color: #2563eb !important;
  border-color: #bfdbfe;
}

.infosys-action-delete:hover {
  background: #fef2f2;
  color: #ef4444 !important;
  border-color: #fecaca;
}

@media (min-width: 761px) {
  .infosys-td-actions {
    width: 116px;
    min-width: 116px;
    text-align: right;
    vertical-align: middle;
  }

  .infosys-actions-toggle {
    display: none !important;
  }

  .infosys-action-group {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
  }

  .infosys-action-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    flex: 0 0 auto;
  }
}

@media (max-width: 1360px) and (min-width: 761px) {
  .infosys-td-actions {
    width: 108px;
    min-width: 108px;
  }

  .infosys-action-group {
    gap: 4px;
  }

  .infosys-action-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
}

.infosys-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
}

.infosys-pagination-wrap {
  flex: 1;
}

.infosys-pagination {
  display: inline-block;
}

.infosys-pagination-arrow {
  display: none;
}

.infosys-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.infosys-pagination ul li {
  display: inline-block;
}

.infosys-pagination ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  background: #f8f9fb;
  border: 1px solid #e8ecf1;
  transition: all 0.2s ease;
}

.infosys-pagination ul li a:hover {
  background: #e0e7ff;
  color: #3b82f6;
  border-color: #3b82f6;
}

.infosys-pagination ul li.infosys-page-active a {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
  pointer-events: none;
}

.infosys-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.infosys-footer-actions .btn,
.infosys-footer-actions .btn-group {
  margin: 0;
}

.infosys-paging-btn {
  border-radius: 8px !important;
  font-size: 13px;
  padding: 7px 14px !important;
  border: 1px solid #e0e5ec !important;
  background: #fff !important;
  color: #4a5568 !important;
  transition: all 0.2s ease;
}

.infosys-paging-btn:hover {
  background: #f0f4ff !important;
  border-color: #3b82f6 !important;
}

/* =============================================
   SETTINGS
   ============================================= */

.settings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
}

.settings-pagination-wrap {
  flex: 1;
}

.settings-pagination {
  display: inline-block;
}

.settings-pagination-arrow {
  display: none;
}

.settings-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.settings-pagination ul li {
  display: inline-block;
}

.settings-pagination ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  background: #f8f9fb;
  border: 1px solid #e8ecf1;
  transition: all 0.2s ease;
}

.settings-pagination ul li a:hover {
  background: #e0e7ff;
  color: #3b82f6;
  border-color: #3b82f6;
}

.settings-pagination ul li.settings-page-active a {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
  pointer-events: none;
}

.settings-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.settings-paging-btn {
  border-radius: 8px !important;
  font-size: 13px;
  padding: 7px 14px !important;
  border: 1px solid #e0e5ec !important;
  background: #fff !important;
  color: #4a5568 !important;
  transition: all 0.2s ease;
}

.settings-paging-btn:hover {
  background: #f0f4ff !important;
  border-color: #3b82f6 !important;
}

.emails-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
}

.emails-pagination-wrap {
  flex: 1;
}

.emails-pagination {
  display: inline-block;
}

.emails-pagination-arrow {
  display: none;
}

.emails-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.emails-pagination ul li {
  display: inline-block;
}

.emails-pagination ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  background: #f8f9fb;
  border: 1px solid #e8ecf1;
  transition: all 0.2s ease;
}

.emails-pagination ul li a:hover {
  background: #e0e7ff;
  color: #3b82f6;
  border-color: #3b82f6;
}

.emails-pagination ul li.emails-page-active a {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
  pointer-events: none;
}

.emails-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.infosys-footer-actions .btn,
.infosys-footer-actions .btn-group {
  margin: 0;
}

.infosys-paging-btn {
  border-radius: 8px !important;
  font-size: 13px;
  padding: 7px 14px !important;
  border: 1px solid #e0e5ec !important;
  background: #fff !important;
  color: #4a5568 !important;
  transition: all 0.2s ease;
}

.emails-paging-btn:hover {
  background: #f0f4ff !important;
  border-color: #3b82f6 !important;
}

@media (max-width: 1100px) {
  .infosys-page-header {
    align-items: flex-start;
  }

  .infosys-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .infosys-tabs-mobile-select {
    display: block;
  }

  .infosys-tabs-shell .nav-tabs.infosys-tabs-nav {
    display: none !important;
  }
}

.majors-confirm-card {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  text-align: center;
}

.majors-confirm-card p {
  margin: 0;
  color: #334155;
  line-height: 1.6;
}

.majors-confirm-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* =============================================
   STUDIENGAENGE-BEARBEITEN
   ============================================= */

.majors-edit-header {
  margin-bottom: 16px;
}

.majors-edit-title-card {
  width: 100%;
}

.majors-edit-form {
  margin-bottom: 0;
}

.majors-edit-tabs-shell {
  overflow: hidden;
}

.majors-edit-tabs-mobile-select {
  display: none;
  padding: 0 0 12px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.majors-edit-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}

.majors-edit-tab-content {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.majors-edit-pane {
  padding: 18px;
}

.majors-edit-fields > li {
  min-width: 0;
}

.majors-edit-fields .input-group,
.majors-edit-fields .input-append {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.majors-edit-fields .input-group .form-control,
.majors-edit-fields .input-append .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

.majors-edit-fields .input-group-addon,
.majors-edit-fields .input-append .add-on {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.majors-edit-colorpicker {
  width: 100%;
}

.majors-edit-pane table input,
.majors-edit-pane table select,
.majors-edit-pane table textarea,
.majors-edit-pane .input-symbol-euro input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.majors-edit-pane .input-symbol-euro {
  display: block;
}

.majors-edit-prices-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.majors-edit-prices-table {
  width: 100%;
  min-width: 980px;
  margin-bottom: 0;
}

.majors-edit-prices-table td,
.majors-edit-prices-table th {
  white-space: normal;
  vertical-align: middle;
}

.majors-edit-prices-table .input-symbol-euro {
  width: 100%;
}

.majors-edit-prices-table .input-symbol-euro input {
  padding-left: 12px;
  padding-right: 24px;
}

.majors-edit-prices-table .input-symbol-euro:before {
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.majors-edit-price-checkbox-cell {
  text-align: center;
}

.majors-edit-price-action-form {
  margin: 0;
}

.majors-edit-price-action-cell .btn {
  white-space: nowrap;
}

.majors-edit-column {
  min-width: 0;
}

.majors-edit-well {
  width: auto !important;
  max-width: 100%;
  box-sizing: border-box;
}

.majors-edit-mobile-table {
  width: 100%;
  min-width: 0;
}

.majors-edit-pane-actions {
  margin-top: 18px;
}

/* =============================================
   GRUPPEN-BEARBEITEN
   ============================================= */

.groups-edit-header {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.groups-edit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.groups-edit-title-card {
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.groups-edit-title {
  margin: 0;
  color: #1a2233;
  font-size: 24px;
  line-height: 1.3;
}

.groups-edit-title a {
  color: inherit;
  text-decoration: none;
}

.groups-edit-form {
  margin-bottom: 20px;
}

.groups-edit-tabs-shell {
  overflow: hidden;
}

.groups-edit-tabs-mobile-select {
  display: none;
  padding: 0 0 12px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.groups-edit-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}

.groups-edit-tab-content {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.groups-edit-pane {
  padding: 18px;
}

.groups-edit-fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 18px;
}

.groups-edit-fields > li {
  min-width: 0;
}

.groups-edit-fields label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
}

.groups-edit-fields .form-control,
.groups-edit-fields input[type="text"],
.groups-edit-fields input[type="date"],
.groups-edit-fields select {
  width: 100% !important;
  max-width: 100%;
}

.groups-edit-columns {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.groups-edit-column {
  min-width: 0;
}

.groups-edit-column-main .well,
.groups-edit-column-search .well {
  margin-bottom: 18px;
}

.groups-edit-well {
  width: auto !important;
  max-width: 100%;
  box-sizing: border-box;
}

.groups-edit-searchbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px;
}

.groups-edit-searchbar input[type="text"] {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0 !important;
}

.groups-edit-searchbar .btn {
  flex: 0 0 auto;
}

.groups-edit-pane table {
  width: 100%;
}

.groups-edit-mobile-table {
  width: 100%;
  min-width: 0;
}

.groups-edit-pane table td,
.groups-edit-pane table th {
  white-space: normal;
}

.groups-edit-pane .well > div[id$="TableExisting"],
.groups-edit-pane .well > div[id$="Table"],
.groups-edit-pane .well > div[id$="Auswahl"] {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.groups-edit-pane-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.groups-edit-pane-actions-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.groups-roomplan-panel {
  display: grid;
  gap: 14px;
}

.groups-roomplan-hint {
  margin: 10px 0 0;
}

.groups-roomplan-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.groups-roomplan-toolbar .form-control {
  min-width: 240px;
  max-width: 100%;
}

.groups-roomplan-table-wrap {
  width: 100%;
  margin-top: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.groups-roomplan-table td[data-label="Aktionen"] .btn + .btn,
.groups-roomplan-table td[data-label="Aktionen"] a.btn + a.btn {
  margin-left: 10px;
}

.roomplan-entry-container-container ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.roomplan-entry-container-container ul li {
  float: none;
}

/* =============================================
   GLOBALER MODERNER PAGE-HEADER (System-weit)
   Targets old pattern: <table border="0"><tr><th><h1>
   ============================================= */

/* The table itself becomes a modern card header */
table[border="0"]:has(th h1),
table[border="0"]:has(th h4) {
  display: block !important;
  margin-bottom: 20px !important;
  padding: 20px 24px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid #e8ecf1 !important;
  width: auto !important;
}

/* tbody becomes flex container */
table[border="0"]:has(th h1) > tbody,
table[border="0"]:has(th h4) > tbody {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  width: 100% !important;
}

/* Multiple rows: stack them */
table[border="0"]:has(th h1) > tbody > tr,
table[border="0"]:has(th h4) > tbody > tr {
  display: contents !important;
}

/* Title cell (first th with heading) */
table[border="0"]:has(th h1) > tbody > tr:first-child > th:first-child,
table[border="0"]:has(th h4) > tbody > tr:first-child > th:first-child {
  flex-shrink: 0 !important;
  display: block !important;
}

/* Remaining th cells become flexible */
table[border="0"]:has(th h1) > tbody > tr > th:not(:first-child),
table[border="0"]:has(th h4) > tbody > tr > th:not(:first-child),
table[border="0"]:has(th h1) > tbody > tr:not(:first-child) > th,
table[border="0"]:has(th h4) > tbody > tr:not(:first-child) > th {
  display: block !important;
  flex: 1 !important;
  min-width: 0 !important;
}

/* Last th pushes to right (for buttons) */
table[border="0"]:has(th h1)
  > tbody
  > tr:first-child
  > th:last-child:not(:first-child),
table[border="0"]:has(th h4)
  > tbody
  > tr:first-child
  > th:last-child:not(:first-child) {
  flex: 0 0 auto !important;
  text-align: right !important;
}

/* Modern h1 styling */
table[border="0"] > tbody > tr > th > h1,
table[border="0"] > tbody > tr > th > h4 {
  margin: 0 !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #1a2233 !important;
  letter-spacing: -0.3px !important;
  text-align: left !important;
  line-height: 1.3 !important;
}

table[border="0"] > tbody > tr > th > h4 {
  font-size: 22px !important;
}

/* Breadcrumb links in h1 */
table[border="0"] > tbody > tr > th > h1 a,
table[border="0"] > tbody > tr > th > h4 a {
  color: #3b82f6 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
table[border="0"] > tbody > tr > th > h1 a:hover,
table[border="0"] > tbody > tr > th > h4 a:hover {
  color: #2563eb !important;
  text-decoration: underline !important;
}

/* Modern buttons inside page headers */
table[border="0"]:has(th h1) .btn,
table[border="0"]:has(th h4) .btn {
  border-radius: 8px !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  border: 1px solid transparent !important;
  margin-bottom: 0 !important;
}

/* Success button (Add/Create actions) */
table[border="0"]:has(th h1) .btn-success,
table[border="0"]:has(th h4) .btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3) !important;
}
table[border="0"]:has(th h1) .btn-success:hover,
table[border="0"]:has(th h4) .btn-success:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4) !important;
  transform: translateY(-1px);
}

/* Info button */
table[border="0"]:has(th h1) .btn-info,
table[border="0"]:has(th h4) .btn-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3) !important;
}
table[border="0"]:has(th h1) .btn-info:hover,
table[border="0"]:has(th h4) .btn-info:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
  transform: translateY(-1px);
}

/* Primary button */
table[border="0"]:has(th h1) .btn-primary,
table[border="0"]:has(th h4) .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3) !important;
}
table[border="0"]:has(th h1) .btn-primary:hover,
table[border="0"]:has(th h4) .btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
  transform: translateY(-1px);
}

/* Default button */
table[border="0"]:has(th h1) .btn-default,
table[border="0"]:has(th h4) .btn-default {
  background: #f8f9fb !important;
  color: #4a5568 !important;
  border: 1px solid #e0e5ec !important;
}
table[border="0"]:has(th h1) .btn-default:hover,
table[border="0"]:has(th h4) .btn-default:hover {
  background: #eef2f7 !important;
  border-color: #3b82f6 !important;
  color: #3b82f6 !important;
}

/* Button groups inside header */
table[border="0"]:has(th h1) .btn-group,
table[border="0"]:has(th h4) .btn-group {
  margin-bottom: 0 !important;
  margin-left: 6px !important;
}

table[border="0"]:has(th h1) .btn-group .btn,
table[border="0"]:has(th h4) .btn-group .btn {
  margin-left: 0 !important;
}

/* Filter container inside page header */
table[border="0"]:has(th h1) .filter-container,
table[border="0"]:has(th h4) .filter-container {
  border: 1px solid #e0e5ec !important;
  border-radius: 10px !important;
  background: #f8f9fb !important;
  box-shadow: none !important;
  padding: 8px 14px !important;
}

/* Filter-Liste horizontal (nebeneinander statt untereinander) */
ul.filter-container {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 12px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

ul.filter-container > li {
  float: none !important;
  margin-right: 0 !important;
}

table[border="0"]:has(th h1) .filter-container .btn,
table[border="0"]:has(th h4) .filter-container .btn {
  font-size: 12px !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
}

/* Dropdown toggle in header */
table[border="0"]:has(th h1) .dropdown-toggle,
table[border="0"]:has(th h4) .dropdown-toggle {
  border-radius: 8px !important;
  border: 1px solid #e0e5ec !important;
  color: #4a5568 !important;
  font-size: 13px !important;
  background: #fff !important;
  transition: all 0.2s ease !important;
}
table[border="0"]:has(th h1) .dropdown-toggle:hover,
table[border="0"]:has(th h4) .dropdown-toggle:hover {
  background: #f0f4ff !important;
  border-color: #3b82f6 !important;
  color: #3b82f6 !important;
}

/* Dropdown menus in header */
table[border="0"]:has(th h1) .dropdown-menu,
table[border="0"]:has(th h4) .dropdown-menu {
  border-radius: 10px !important;
  border: 1px solid #e8ecf1 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  padding: 6px !important;
  margin-top: 4px !important;
}
table[border="0"]:has(th h1) .dropdown-menu > li > a,
table[border="0"]:has(th h4) .dropdown-menu > li > a {
  padding: 8px 14px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  color: #374151 !important;
  transition: all 0.15s ease !important;
}
table[border="0"]:has(th h1) .dropdown-menu > li > a:hover,
table[border="0"]:has(th h4) .dropdown-menu > li > a:hover {
  background: #eff6ff !important;
  color: #3b82f6 !important;
}

/* ul filter lists inside header */
table[border="0"]:has(th h1) th > ul,
table[border="0"]:has(th h4) th > ul {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
table[border="0"]:has(th h1) th > ul > li,
table[border="0"]:has(th h4) th > ul > li {
  float: none !important;
  margin-right: 0 !important;
}

/* Pull-right button groups */
table[border="0"]:has(th h1) .pull-right,
table[border="0"]:has(th h4) .pull-right {
  float: none !important;
}

/* Hide old Glyphicon icons, keep Font Awesome */
table[border="0"]:has(th h1) th .icon-user,
table[border="0"]:has(th h4) th .icon-user,
table[border="0"]:has(th h1) th .icon-globe,
table[border="0"]:has(th h4) th .icon-globe {
  display: none !important;
}

/* Responsive page header */
@media (max-width: 992px) {
  table[border="0"]:has(th h1),
  table[border="0"]:has(th h4) {
    padding: 16px !important;
  }
  table[border="0"]:has(th h1) > tbody,
  table[border="0"]:has(th h4) > tbody {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  table[border="0"] > tbody > tr > th > h1 {
    font-size: 22px !important;
  }
  table[border="0"] > tbody > tr > th > h4 {
    font-size: 18px !important;
  }
}

/* =============================================
   GLOBALE MODERNE TABS (System-weit)
   ============================================= */

/* --- Tabbable Card Wrapper --- */
.tabbable {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
  overflow: hidden;
  margin-bottom: 20px;
}

/* --- Modern Nav Tabs (Global Override) --- */
.nav-tabs {
  display: flex !important;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  background: #f8f9fb;
  border-bottom: 2px solid #e8ecf1 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}
.nav-tabs > li {
  margin: 0 !important;
  float: none !important;
  display: inline-flex;
}
.nav-tabs > li > a {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 14px 20px !important;
  font-size: 13px;
  font-weight: 500;
  color: #64748b !important;
  text-decoration: none !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  margin-bottom: -2px !important;
  transition: all 0.2s ease;
  background: transparent !important;
  white-space: nowrap;
  line-height: 1.4;
}
.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus {
  color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.04) !important;
  border-bottom-color: rgba(59, 130, 246, 0.3) !important;
  outline: none;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: #3b82f6 !important;
  font-weight: 600;
  border-bottom-color: #3b82f6 !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: default;
}
.nav-tabs > li > a > i,
.nav-tabs > li > a > .glyphicon,
.nav-tabs > li > a > .fa {
  font-size: 14px;
  opacity: 0.7;
}
.nav-tabs > li.active > a > i,
.nav-tabs > li.active > a > .glyphicon,
.nav-tabs > li.active > a > .fa {
  opacity: 1;
}
/* Pull-right tabs: keep them at the end */
.nav-tabs > li.pull-right {
  margin-left: auto !important;
}
.nav-tabs > li.pull-right ~ li.pull-right {
  margin-left: 0 !important;
}

/* --- Tab Content (Global) --- */
#addContactForm {
  padding: 10px;
}
.tab-content {
  padding: 0;
}
.tab-content > .tab-pane {
  padding: 16px 20px;
}

/* --- Fieldset & Legend (Global) --- */
.tab-pane fieldset,
.container-fluid fieldset {
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.tab-pane fieldset legend,
.container-fluid fieldset legend {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  padding: 0 8px;
  margin-bottom: 10px;
  width: auto;
  border: none;
}
.tab-pane fieldset ul,
.container-fluid fieldset ul {
  margin: 0;
  padding: 0;
}
.tab-pane fieldset ul li,
.container-fluid fieldset ul li {
  margin-bottom: 10px;
}

/* --- Tab Loading Spinner (replaces old ajax-loader.gif) --- */
.tab-pane > div[align="center"] {
  padding: 50px 0;
}
.tab-pane > div[align="center"] img[src*="ajax-loader"] {
  display: none;
}
.tab-pane > div[align="center"]::after {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 3px solid #e8ecf1;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: modern-tab-spin 0.8s linear infinite;
}
@keyframes modern-tab-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Contacts Loading Spinner (kept for backwards compat) --- */
.contacts-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}
.contacts-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e8ecf1;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: modern-tab-spin 0.8s linear infinite;
}

/* --- Modern Table --- */
.contacts-table-wrapper {
  overflow-x: auto;
}
.contacts-modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}
.contacts-modern-table thead th {
  background: #f8f9fb;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e8ecf1;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.contacts-th-sortable {
  cursor: default;
}
.contacts-th-label {
  margin-right: 4px;
}
.contacts-sort-icons {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  line-height: 1;
  gap: 0;
}
.contacts-sort-icon {
  cursor: pointer;
  font-size: 14px;
  color: #cbd5e1;
  transition: color 0.2s ease;
  line-height: 8px;
}
.contacts-sort-icon:hover {
  color: #3b82f6;
}
.contacts-sort-icon.contacts-sort-active {
  color: #3b82f6 !important;
}
.contacts-th-avatar {
  width: 40px;
}
.contacts-th-actions {
  text-align: right;
  width: 250px;
  min-width: 250px;
}
.contacts-columns-link {
  font-size: 12px;
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s ease;
  text-transform: none;
}
.contacts-columns-link:hover {
  color: #3b82f6 !important;
}

/* --- Table Rows --- */
.contacts-data-row {
  transition: background-color 0.15s ease;
}
.contacts-data-row:hover {
  background-color: #f0f7ff !important;
}
.contacts-data-row td {
  padding: 10px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.contacts-data-row:last-child td {
  border-bottom: none;
}
.contacts-td-avatar {
  width: 40px;
  padding: 6px 8px !important;
}
.contacts-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8ecf1;
  transition: border-color 0.2s ease;
}
.contacts-data-row:hover .contacts-avatar-img {
  border-color: #3b82f6;
}
.contacts-td-actions {
  text-align: right;
  white-space: nowrap;
  width: 250px;
  min-width: 250px;
  position: relative;
}

/* --- Inactive Role Row --- */
tr.nonactive-person-role.contacts-data-row {
  background: repeating-linear-gradient(
    45deg,
    rgba(241, 245, 249, 0.5),
    rgba(241, 245, 249, 0.5) 10px,
    rgba(248, 250, 252, 0.5) 10px,
    rgba(248, 250, 252, 0.5) 20px
  );
  opacity: 0.7;
}
tr.nonactive-person-role.contacts-data-row:hover {
  opacity: 1;
}

/* --- Action Buttons --- */
.contacts-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: nowrap;
  width: auto;
  min-width: 0;
}
.contacts-actions-toggle {
  display: none;
}

@media (min-width: 761px) {
  .contacts-actions-toggle {
    display: none !important;
  }
}
.contacts-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #64748b !important;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
}
.contacts-action-btn:hover {
  background: #f0f4ff;
  color: #3b82f6 !important;
  transform: translateY(-1px);
}
.contacts-action-btn.contacts-action-edit:hover {
  background: #ecfdf5;
  color: #16a34a !important;
}
.contacts-action-btn.contacts-action-delete:hover {
  background: #fef2f2;
  color: #ef4444 !important;
}
.contacts-action-btn .dfn-svg-icon {
  width: 16px;
  height: 16px;
}
.contacts-action-btn,
.contacts-checkbox-label {
  flex: 0 0 auto;
}
.contacts-checkbox-label {
  display: flex;
  align-items: center;
  margin: 0 0 0 6px;
  cursor: pointer;
}
.contacts-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #3b82f6;
  border-radius: 4px;
}

@media (max-width: 1360px) and (min-width: 761px) {
  .contacts-th-actions,
  .contacts-td-actions {
    width: 212px;
    min-width: 212px;
  }

  .contacts-action-group {
    gap: 2px;
  }

  .contacts-action-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .contacts-action-btn .dfn-svg-icon {
    width: 14px;
    height: 14px;
  }

  .contacts-checkbox-label {
    margin-left: 4px;
  }

  .contacts-checkbox {
    width: 14px;
    height: 14px;
  }
}

/* --- Footer & Pagination --- */
.contacts-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
}
.contacts-pagination-wrap {
  flex: 1;
}
.contacts-pagination {
  display: inline-block;
}
.contacts-pagination-arrow {
  display: none;
}
.contacts-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.contacts-pagination ul li {
  display: inline-block;
}
.contacts-pagination ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  background: #f8f9fb;
  border: 1px solid #e8ecf1;
  transition: all 0.2s ease;
}
.contacts-pagination ul li a:hover {
  background: #e0e7ff;
  color: #3b82f6;
  border-color: #3b82f6;
}
.contacts-pagination ul li.contacts-page-active a {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
  pointer-events: none;
}

/* --- Footer Actions --- */
.contacts-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.contacts-paging-btn {
  border-radius: 8px !important;
  font-size: 13px;
  padding: 7px 14px !important;
  border: 1px solid #e0e5ec !important;
  background: #fff !important;
  color: #4a5568 !important;
  transition: all 0.2s ease;
}
.contacts-paging-btn:hover {
  background: #f0f4ff !important;
  border-color: #3b82f6 !important;
}
.contacts-bulk-btn {
  border-radius: 8px !important;
  font-size: 13px;
  padding: 7px 14px !important;
  transition: all 0.2s ease;
}
.contacts-bulk-btn.btn-danger {
  background: #fef2f2 !important;
  color: #ef4444 !important;
  border: 1px solid #fecaca !important;
}
.contacts-bulk-btn.btn-danger:hover {
  background: #ef4444 !important;
  color: #fff !important;
}
.contacts-bulk-btn.btn-success {
  background: #ecfdf5 !important;
  color: #16a34a !important;
  border: 1px solid #bbf7d0 !important;
}
.contacts-bulk-btn.btn-success:hover {
  background: #16a34a !important;
  color: #fff !important;
}

/* --- Contacts Layout Refinements --- */
.contacts-page-header {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
}
.contacts-header-left {
  min-width: 0;
}
.contacts-header-center {
  min-width: 0;
}
.contacts-filter-bar,
.contacts-header-right {
  flex-wrap: wrap;
}
.contacts-filter-bar .btn-group,
.contacts-header-right .btn-group {
  max-width: 100%;
}
.contacts-filter-bar .btn,
.contacts-header-right .btn {
  max-width: 100%;
}
.contacts-tabs-shell {
  overflow: hidden;
}
.contacts-tabs-mobile-select {
  display: none;
  padding: 14px 14px 14px;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf1;
}
.contacts-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}
.contacts-tabs-nav {
  gap: 0;
}
.contacts-tabs-nav > li {
  min-width: 0;
}
.contacts-tabs-nav > li > a {
  width: 100%;
  justify-content: center;
}
.contacts-tabs-shell .tab-content {
  background: #fff;
}

/* --- Contacts Edit Layout --- */
.contacts-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.contacts-edit-title-wrap {
  flex: 1 1 420px;
  min-width: 0;
}
.contacts-edit-title-table {
  margin: 0;
}
.contacts-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  float: none !important;
  margin-top: 0 !important;
  width: auto;
  padding-top: 0;
  border-top: none;
}
.contacts-edit-actions .tooltiplink {
  display: inline-flex;
  text-decoration: none !important;
}
.contacts-edit-actions .btn {
  min-height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contacts-edit-form {
  clear: both;
}
.contacts-edit-tabs-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.contacts-edit-tabs-mobile-select {
  display: none;
  padding: 8px 10px 10px;
  background: transparent;
  border: none;
  border-radius: 0;
}
.contacts-edit-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}
.contacts-edit-tabs-nav > li {
  min-width: 0;
}
.contacts-edit-tabs-nav {
  flex-wrap: wrap;
  justify-content: flex-start;
}
.contacts-edit-tabs-nav > li.pull-right,
.contacts-edit-tabs-nav > li.pull-right ~ li.pull-right {
  margin-left: 0 !important;
}
.contacts-edit-tab-content {
  background: #ffffff;
  border-radius: 0 0 14px 14px;
  border-top: 1px solid #edf2f7;
}
.contacts-edit-avatar-table {
  margin-bottom: 0;
}
.contacts-edit-avatar-table td {
  text-align: center;
}
.contacts-edit-avatar-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8f9fb 0%, #eef4fb 100%);
  box-shadow: inset 0 0 0 1px #e0e8f2;
  margin-left: auto !important;
  margin-right: auto !important;
}
#avatar_image {
  max-width: 190px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}
.contacts-edit-form .tab-pane fieldset ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 18px;
  align-items: start;
}
.contacts-edit-form .tab-pane fieldset ul > li {
  list-style: none;
  float: none !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  position: relative;
  display: flex;
  flex-direction: column;
}
.contacts-edit-form .tab-pane fieldset ul > li label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
}
.contacts-edit-form .form-control,
.contacts-edit-form input[type="text"],
.contacts-edit-form input[type="email"],
.contacts-edit-form input[type="number"],
.contacts-edit-form select,
.contacts-edit-form textarea {
  max-width: 100%;
}
.contacts-edit-form .tab-pane fieldset ul > li .form-control {
  width: 100% !important;
  min-width: 0;
}
.contacts-edit-form .tab-pane fieldset ul > li textarea {
  width: 100% !important;
  min-height: 140px;
}
.contacts-edit-form .tab-pane fieldset ul > li .input-group,
.contacts-edit-form .tab-pane fieldset ul > li .input-append {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.contacts-edit-form .tab-pane fieldset ul > li .input-group.date {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
}
.contacts-edit-form .tab-pane fieldset ul > li .input-group.date .form-control {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.contacts-edit-form
  .tab-pane
  fieldset
  ul
  > li
  .input-group.date
  .input-group-addon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  min-width: 26px;
  padding: 0;
  border: 1px solid #dbe4ee;
  border-left: none;
  background: #f8fafc;
  color: #64748b;
  line-height: 1;
}
.contacts-edit-form
  .tab-pane
  fieldset
  ul
  > li
  .input-group.date
  .input-group-addon
  + .input-group-addon {
  border-left: 1px solid #dbe4ee;
}
.contacts-edit-form .tab-pane fieldset ul > li .input-group.date .reset-date {
  font-size: 12px;
  font-weight: 700;
}
.contacts-edit-form
  .tab-pane
  fieldset
  ul
  > li
  .input-group.date
  .input-group-addon
  i.glyphicon {
  position: static;
  top: auto;
  display: block;
  font-size: 13px;
  line-height: 1;
}

@media (min-width: 1280px) {
  .contacts-edit-form .tab-pane fieldset ul {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .contacts-edit-form .tab-pane fieldset ul > li label {
    min-height: 34px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .contacts-edit-form .tab-pane fieldset ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contacts-edit-form .tab-pane fieldset ul > li label {
    min-height: 34px;
  }
}

@media (min-width: 761px) and (max-width: 1023px) {
  .contacts-edit-form .tab-pane fieldset ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contacts-edit-form .tab-pane fieldset ul > li label {
    min-height: 34px;
  }
}

.contacts-edit-form .tab-pane fieldset ul > li .input-append .form-control {
  float: none !important;
  width: auto !important;
  flex: 1 1 auto;
}
.contacts-edit-form .tab-pane fieldset ul > li .input-append .add-on {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 0 12px;
  border: 1px solid #dbe4ee;
  border-left: none;
  background: #f8fafc;
  border-radius: 0 6px 6px 0;
}
.contacts-edit-form .tab-pane fieldset ul > li a.pull-left,
.contacts-edit-form .tab-pane fieldset ul > li select.pull-left,
.contacts-edit-form .tab-pane fieldset ul > li input.pull-left {
  float: none !important;
}
.contacts-edit-form .tab-pane fieldset ul > li a.btn {
  margin-top: 8px;
}
.contacts-edit-linked-entity-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.contacts-edit-linked-entity-field--with-button {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
  align-items: stretch;
}
.contacts-edit-linked-entity-select {
  width: 100% !important;
}
.contacts-edit-linked-entity-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  margin-top: 8px;
}
.contacts-edit-form div[id$="_autofill"] {
  width: min(100%, 320px) !important;
  max-width: 100%;
}
.contacts-edit-form fieldset legend .btn.pull-right {
  margin-left: 10px;
  vertical-align: middle;
}
.contacts-edit-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  width: 100%;
  float: none !important;
  clear: both;
}
.contacts-edit-inline-actions .form-control,
.contacts-edit-inline-actions select {
  min-width: 220px;
}
.contacts-edit-inline-actions + fieldset {
  clear: both;
}
.contacts-edit-groups-actions + br[style*="clear: right"] {
  display: none;
}
.contacts-edit-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: none;
  border-radius: 0;
  background: transparent;
}
.contacts-edit-data-table {
  width: 100%;
  margin-bottom: 0;
  min-width: 0;
}
.contacts-edit-data-table > thead > tr > th {
  white-space: nowrap;
}
.contacts-edit-form .archivelist {
  display: block;
}
.contacts-edit-form .archivelist li {
  float: left;
  width: 23%;
  min-width: 0;
  padding: 15px;
}
.contacts-edit-form .bigelement.details {
  display: inline-block;
  height: 600px;
  min-height: 0;
  padding-bottom: 4px;
}
.contacts-edit-form .bigelement.details .date {
  display: block;
  background-color: rgb(199, 199, 199);
  color: white;
}
.contacts-edit-form .bigelement.details .btn.pull-right {
  float: right !important;
}
.contacts-edit-form .bigelement.details .thumbnail {
  display: inline;
  padding: 0;
}
.contacts-edit-form .bigelement.details .zoomthumb {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}
.contacts-documents-actions {
  justify-content: flex-end;
  margin-bottom: 14px;
}
.contacts-documents-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 14px;
}
.contacts-documents-list li {
  float: none !important;
  width: calc(25% - 11px) !important;
  min-width: 230px;
  padding: 0 !important;
}
.contacts-document-card {
  display: block !important;
  height: 100%;
  min-height: 340px;
  padding-bottom: 12px;
}
.contacts-document-meta {
  display: block !important;
  color: #334155 !important;
  background: #e2e8f0 !important;
}
.contacts-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.contacts-document-actions .btn {
  margin: 0 !important;
}
.contacts-document-preview {
  display: block !important;
  padding: 10px;
}
.contacts-document-preview .zoomthumb {
  width: 100%;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}
.contacts-edit-documents-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.contacts-edit-documents-list > li {
  float: none !important;
  width: calc(25% - 11px) !important;
  min-width: 230px;
  padding: 0 !important;
  margin: 0 !important;
}
.contacts-edit-document-card {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: auto !important;
  min-height: 340px;
  overflow: hidden;
}
.contacts-edit-document-name {
  display: block;
  padding: 14px 14px 12px;
  line-height: 1.3;
  word-break: break-word;
}
.contacts-edit-document-meta {
  display: block !important;
  padding: 12px 14px;
  background: #c7c7c7;
  color: #ffffff;
}
.contacts-edit-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.contacts-edit-document-actions .btn {
  margin: 0 !important;
  float: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
}
.contacts-edit-document-preview {
  display: block !important;
  padding: 12px;
}
.contacts-edit-document-preview .zoomthumb {
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

@media (min-width: 761px) {
  .contacts-edit-form .tab-pane.contacts-edit-tab-firma fieldset,
  .contacts-edit-form .tab-pane.contacts-edit-tab-reederei fieldset {
    display: grid;
    gap: 14px 18px;
    align-items: start;
    justify-content: start;
  }

  .contacts-edit-form .tab-pane.contacts-edit-tab-firma fieldset {
    grid-template-columns: repeat(2, minmax(260px, 340px));
  }

  .contacts-edit-form .tab-pane.contacts-edit-tab-reederei fieldset {
    grid-template-columns: repeat(3, minmax(220px, 320px));
  }

  .contacts-edit-form .tab-pane.contacts-edit-tab-firma fieldset > legend,
  .contacts-edit-form .tab-pane.contacts-edit-tab-reederei fieldset > legend {
    grid-column: 1 / -1;
  }

  .contacts-edit-form .tab-pane.contacts-edit-tab-firma fieldset > ul,
  .contacts-edit-form .tab-pane.contacts-edit-tab-reederei fieldset > ul {
    display: contents;
  }

  .contacts-edit-form .tab-pane.contacts-edit-tab-firma fieldset ul > li,
  .contacts-edit-form .tab-pane.contacts-edit-tab-reederei fieldset ul > li {
    width: 100% !important;
  }

  .contacts-edit-linked-entity-field label {
    min-height: 0;
    display: block;
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-firma
    fieldset
    ul
    > li
    > label,
  .contacts-edit-form
    .tab-pane.contacts-edit-tab-reederei
    fieldset
    ul
    > li
    > label {
    margin-bottom: 2px !important;
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-reederei
    .contacts-edit-reederei-field
    > label {
    margin-bottom: 0 !important;
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-reederei
    .contacts-edit-reederei-field {
    row-gap: 2px;
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-reederei
    .contacts-edit-linked-entity-button {
    margin-top: 0;
  }

  .contacts-edit-form .tab-pane.contacts-edit-tab-firma .form-control,
  .contacts-edit-form .tab-pane.contacts-edit-tab-reederei .form-control {
    height: 34px;
    box-sizing: border-box;
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-dokumente
    .contacts-edit-documents-list {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-dokumente
    .contacts-edit-documents-list
    > li {
    width: 300px !important;
    max-width: 100%;
    min-width: 0;
    flex: 0 1 300px;
    display: flex;
    align-items: stretch;
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-dokumente
    .contacts-edit-document-card {
    height: 100% !important;
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-dokumente
    .contacts-edit-document-name {
    min-height: 62px;
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-dokumente
    .contacts-edit-document-meta {
    display: flex !important;
    flex-direction: column;
    min-height: 112px;
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-dokumente
    .contacts-edit-document-actions {
    align-items: center;
    align-content: flex-start;
    min-height: 74px;
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-dokumente
    .contacts-edit-document-actions
    .btn {
    flex: 0 0 auto;
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-dokumente
    .contacts-edit-document-preview {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 340px;
  }
}

@media (max-width: 1500px) and (min-width: 761px) {
  .contacts-edit-form
    .tab-pane.contacts-edit-tab-dokumente
    .contacts-edit-documents-list
    > li {
    width: 280px !important;
    flex-basis: 280px;
  }
}

@media (max-width: 1180px) and (min-width: 761px) {
  .contacts-edit-form .tab-pane.contacts-edit-tab-reederei fieldset {
    grid-template-columns: repeat(2, minmax(220px, 320px));
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-dokumente
    .contacts-edit-documents-list {
    justify-content: flex-start;
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-dokumente
    .contacts-edit-documents-list
    > li {
    width: calc(50% - 7px) !important;
    flex-basis: calc(50% - 7px);
  }

  .contacts-edit-form
    .tab-pane.contacts-edit-tab-dokumente
    .contacts-edit-document-preview {
    min-height: 260px;
  }
}

@media (max-width: 980px) and (min-width: 761px) {
  .contacts-edit-form
    .tab-pane.contacts-edit-tab-dokumente
    .contacts-edit-documents-list
    > li {
    width: 100% !important;
    flex-basis: 100%;
  }
}

@media (max-width: 1100px) {
  .contacts-page-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .contacts-header-center {
    justify-content: flex-start;
  }

  .contacts-header-right {
    justify-content: flex-start;
  }

  .groups-header-top {
    flex-direction: column;
    align-items: stretch;
  }

  .groups-header-right {
    justify-content: flex-start;
  }

  .majors-page-header {
    align-items: flex-start;
  }

  .majors-header-actions {
    justify-content: flex-start;
  }

  .groups-edit-columns {
    grid-template-columns: 1fr;
  }

  .groups-edit-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .contacts-tabs-mobile-select {
    display: block;
  }

  .contacts-tabs-shell .nav-tabs.contacts-tabs-nav {
    display: none !important;
  }

  .contacts-edit-tabs-mobile-select {
    display: block;
  }

  .contacts-edit-tabs-shell .nav-tabs.contacts-edit-tabs-nav {
    display: none !important;
  }

  .groups-tabs-mobile-select {
    display: block;
  }

  .groups-tabs-shell .nav-tabs.groups-tabs-nav {
    display: none !important;
  }

  .majors-tabs-mobile-select {
    display: block;
  }

  .majors-tabs-shell .nav-tabs.majors-tabs-nav {
    display: none !important;
  }

  .erinnerung-tabs-mobile-select {
    display: block;
  }

  .erinnerung-tabs-shell .nav-tabs.erinnerung-tabs-nav {
    display: none !important;
  }

  .groups-edit-tabs-mobile-select {
    display: block;
    padding: 12px 12px 12px 12px;
  }

  .groups-edit-tabs-shell .nav-tabs.groups-edit-tabs-nav {
    display: none !important;
  }

  .worklist-tabs-mobile-select {
    display: block;
  }

  .worklist-tabs-shell .nav-tabs.worklist-tabs-nav {
    display: none !important;
  }

  .cleanup-tabs-mobile-select {
    display: block;
  }

  .cleanup-tabs-shell .nav-tabs.cleanup-tabs-nav {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .groups-actions-toggle {
    display: inline-flex !important;
  }

  .groups-action-group {
    display: none !important;
  }

  .groups-data-row.groups-actions-open .groups-action-group {
    display: flex !important;
  }

  .contacts-page-header {
    padding: 16px;
    gap: 12px;
  }

  .erinnerung-page-header,
  .erinnerung-form-header {
    padding: 16px;
  }

  .erinnerung-title,
  .erinnerung-form-title {
    font-size: 22px;
  }

  .erinnerung-tabs-shell .tab-content > .tab-pane,
  .erinnerung-form-tabs-shell .tab-content > .tab-pane {
    padding: 8px;
  }

  .erinnerung-form-tabs-shell .nav-tabs > li:only-child {
    width: 100%;
  }

  .erinnerung-modern-table {
    min-width: 0;
  }

  .erinnerung-schedule-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .erinnerung-schedule-spacer {
    display: none;
  }

  .erinnerung-form-actions,
  .erinnerung-form-actions-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .erinnerung-form-actions .btn,
  .btn-reminder-fullwidth,
  .erinnerung-schedule-column .btn,
  .erinnerung-schedule-column .input-append,
  .erinnerung-schedule-column .bootstrap-timepicker,
  .erinnerung-schedule-column .form-control,
  .erinnerung-schedule-column input[type="text"] {
    width: 100%;
  }

  .erinnerung-schedule-column .input-append input[type="text"],
  .erinnerung-schedule-column .bootstrap-timepicker input[type="text"] {
    width: auto;
    flex: 1 1 auto;
  }

  .erinnerung-schedule-table {
    min-width: 0 !important;
  }

  .contacts-title {
    font-size: 22px;
  }

  .contacts-filter-bar,
  .contacts-header-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contacts-stats-btn,
  .contacts-filter-bar .btn-group,
  .contacts-header-right .btn-group {
    width: 100%;
  }

  .contacts-stats-btn {
    width: 100%;
    height: 44px;
  }

  .contacts-btn-add,
  .contacts-export-btn,
  .contacts-filter-btn {
    width: 100%;
    justify-content: center;
  }

  .contacts-table-wrapper {
    overflow: visible;
    width: 100%;
    margin: 0;
  }

  .contacts-tabs-shell .tab-content > .tab-pane {
    padding: 8px;
  }

  .contacts-modern-table,
  .contacts-modern-table tbody,
  .contacts-modern-table tr,
  .contacts-modern-table td {
    display: block;
    width: 100%;
  }

  .contacts-modern-table {
    display: block;
    width: 100% !important;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
  }

  .contacts-modern-table thead {
    display: none;
  }

  .contacts-modern-table tbody {
    display: block;
    width: 100%;
    padding: 4px 0;
    margin: 0;
    min-width: 0;
  }

  .contacts-data-row {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 14px;
    margin: 0 0 14px;
  }

  .contacts-data-row td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    white-space: normal;
  }

  .contacts-data-row td::before {
    content: attr(data-label);
    flex: 0 0 96px;
    max-width: 96px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .contacts-data-row td:last-child {
    border-bottom: none;
  }

  .contacts-td-avatar {
    padding-top: 0 !important;
  }

  .contacts-td-avatar::before {
    display: none;
  }

  .contacts-td-avatar .tooltipimage,
  .contacts-td-avatar .contacts-avatar-img {
    width: 42px;
    height: 42px;
  }

  .contacts-td-data {
    min-width: 0;
    flex: 1 1 auto;
    word-break: break-word;
  }

  .contacts-td-actions {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
    border-bottom: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  .contacts-td-actions::before {
    display: none;
  }

  .contacts-actions-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px !important;
    border: 1px solid #dbe4ee !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    align-self: flex-end;
  }

  .contacts-action-group {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
    padding: 10px 0 0;
    border-top: 1px solid #f1f5f9;
    box-sizing: border-box;
  }

  .contacts-data-row.contacts-actions-open .contacts-action-group {
    display: flex;
  }

  .contacts-data-row.contacts-actions-open .contacts-actions-toggle {
    background: #eef5ff !important;
    border-color: #bfd7f2 !important;
  }

  .contacts-action-btn {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
  }

  .contacts-checkbox-label {
    margin: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    justify-content: center;
  }

  .contacts-footer {
    padding: 14px;
  }

  .contacts-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .contacts-pagination-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 8px 10px;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #f8fafc;
    box-sizing: border-box;
  }

  .contacts-pagination ul {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
  }

  .contacts-pagination ul li {
    flex: 0 0 auto;
  }

  .contacts-pagination ul li.contacts-mobile-hidden {
    display: none;
  }

  .contacts-pagination ul li a {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11px;
  }

  .contacts-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #ffffff;
    color: #334155 !important;
    text-decoration: none !important;
    flex: 0 0 auto;
  }

  .contacts-pagination-prev {
    margin-right: 8px;
  }

  .contacts-pagination-next {
    margin-left: 8px;
  }

  .contacts-pagination-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
  }

  .contacts-footer-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contacts-footer-actions .btn,
  .contacts-footer-actions .btn-group {
    width: 100%;
  }

  .worklist-table-wrapper {
    overflow: visible;
  }

  .worklist-modern-table,
  .worklist-modern-table tbody,
  .worklist-modern-table tr,
  .worklist-modern-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
  }

  .worklist-modern-table {
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
  }

  .worklist-modern-table thead {
    display: none;
  }

  .worklist-modern-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 4px 0;
    margin: 0;
  }

  .worklist-data-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    justify-self: stretch;
    margin: 0 0 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
  }

  .worklist-modern-table td {
    display: grid !important;
    grid-template-columns: minmax(116px, 148px) minmax(0, 1fr);
    align-items: start;
    column-gap: 16px;
    row-gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
  }

  .worklist-modern-table td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .worklist-modern-table td:last-child {
    border-bottom: none;
  }

  .worklist-td-actions {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
    border-bottom: none;
    text-align: left;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  .worklist-td-actions::before {
    display: none;
  }

  .worklist-actions-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px !important;
    border: 1px solid #dbe4ee !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 16px;
    margin: 0;
    margin-left: auto;
    align-self: flex-end;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }

  .worklist-action-group {
    display: none;
    flex-direction: column;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
  }

  .worklist-data-row.worklist-actions-open .worklist-action-group {
    display: flex;
  }

  .worklist-data-row.worklist-actions-open .worklist-actions-toggle {
    background: #eef5ff !important;
    border-color: #bfd7f2 !important;
  }

  .worklist-action-btn {
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
  }

  .worklist-footer {
    padding: 14px;
  }

  .worklist-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .worklist-pagination-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 8px 10px;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #f8fafc;
    box-sizing: border-box;
  }

  .worklist-pagination ul {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .worklist-pagination ul li {
    flex: 0 0 auto;
  }

  .worklist-pagination ul li.worklist-mobile-hidden {
    display: none;
  }

  .worklist-pagination ul li a {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11px;
  }

  .worklist-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #ffffff;
    color: #334155 !important;
    text-decoration: none !important;
    flex: 0 0 auto;
  }

  .worklist-pagination-prev {
    margin-right: 8px;
  }

  .worklist-pagination-next {
    margin-left: 8px;
  }

  .worklist-pagination-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
  }

  .worklist-footer-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .worklist-footer-actions .btn,
  .worklist-footer-actions .btn-group {
    width: 100%;
  }

  .cleanup-table-wrapper {
    overflow: visible;
  }

  .cleanup-modern-table,
  .cleanup-modern-table tbody,
  .cleanup-modern-table tr,
  .cleanup-modern-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
  }

  .cleanup-modern-table {
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
  }

  .cleanup-modern-table thead {
    display: none;
  }

  .cleanup-modern-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 4px 0;
    margin: 0;
  }

  .cleanup-data-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    justify-self: stretch;
    margin: 0 0 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
  }

  .cleanup-modern-table td {
    display: grid !important;
    grid-template-columns: minmax(116px, 148px) minmax(0, 1fr);
    align-items: start;
    column-gap: 16px;
    row-gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
  }

  .cleanup-modern-table td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .cleanup-modern-table td:last-child {
    border-bottom: none;
  }

  .cleanup-td-actions,
  .cleanup-td-select {
    width: 100%;
    min-width: 0;
    padding-top: 10px;
    border-bottom: none;
    text-align: left;
  }

  .cleanup-action-btn {
    width: 100%;
    justify-content: center;
  }

  .cleanup-select-control {
    justify-content: flex-end;
  }

  .cleanup-footer {
    padding: 14px;
  }

  .cleanup-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .cleanup-pagination-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 8px 10px;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #f8fafc;
    box-sizing: border-box;
  }

  .cleanup-pagination ul {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cleanup-pagination ul li {
    flex: 0 0 auto;
  }

  .cleanup-pagination ul li.cleanup-mobile-hidden {
    display: none;
  }

  .cleanup-pagination ul li a {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11px;
  }

  .cleanup-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #ffffff;
    color: #334155 !important;
    text-decoration: none !important;
    flex: 0 0 auto;
  }

  .cleanup-pagination-prev {
    margin-right: 8px;
  }

  .cleanup-pagination-next {
    margin-left: 8px;
  }

  .cleanup-pagination-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
  }

  .cleanup-footer-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cleanup-footer-actions .btn,
  .cleanup-footer-actions .btn-group {
    width: 100%;
  }

  .infosys-footer {
    padding: 14px;
  }

  .infosys-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .infosys-pagination-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 8px 10px;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #f8fafc;
    box-sizing: border-box;
  }

  .infosys-pagination ul {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .infosys-pagination ul li {
    flex: 0 0 auto;
  }

  .infosys-pagination ul li.infosys-mobile-hidden {
    display: none;
  }

  .infosys-pagination ul li a {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11px;
  }

  .infosys-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #ffffff;
    color: #334155 !important;
    text-decoration: none !important;
    flex: 0 0 auto;
  }

  .infosys-pagination-prev {
    margin-right: 8px;
  }

  .infosys-pagination-next {
    margin-left: 8px;
  }

  .infosys-pagination-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
  }

  .infosys-footer-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .infosys-footer-actions .btn,
  .infosys-footer-actions .btn-group {
    width: 100%;
  }

  .settings-footer {
    padding: 14px;
  }

  .settings-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .settings-pagination-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 8px 10px;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #f8fafc;
    box-sizing: border-box;
  }

  .settings-pagination ul {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .settings-pagination ul li {
    flex: 0 0 auto;
  }

  .settings-pagination ul li.settings-mobile-hidden {
    display: none;
  }

  .settings-pagination ul li a {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11px;
  }

  .settings-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #ffffff;
    color: #334155 !important;
    text-decoration: none !important;
    flex: 0 0 auto;
  }

  .settings-pagination-prev {
    margin-right: 8px;
  }

  .settings-pagination-next {
    margin-left: 8px;
  }

  .settings-pagination-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
  }

  .settings-footer-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .settings-footer-actions .btn,
  .settings-footer-actions .btn-group {
    width: 100%;
  }

  .emails-footer {
    padding: 14px;
  }

  .emails-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .emails-pagination-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 8px 10px;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #f8fafc;
    box-sizing: border-box;
  }

  .emails-pagination ul {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .emails-pagination ul li {
    flex: 0 0 auto;
  }

  .emails-pagination ul li.emails-mobile-hidden {
    display: none;
  }

  .emails-pagination ul li a {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11px;
  }

  .emails-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #ffffff;
    color: #334155 !important;
    text-decoration: none !important;
    flex: 0 0 auto;
  }

  .emails-pagination-prev {
    margin-right: 8px;
  }

  .emails-pagination-next {
    margin-left: 8px;
  }

  .emails-pagination-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
  }

  .emails-footer-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .emails-footer-actions .btn,
  .emails-footer-actions .btn-group {
    width: 100%;
  }

  .infosys-page-header {
    padding: 16px;
  }

  .infosys-form-header {
    padding: 16px;
  }

  .infosys-title {
    font-size: 22px;
  }

  .infosys-form-title {
    font-size: 22px;
  }

  .infosys-subtitle {
    font-size: 13px;
  }

  .infosys-form-subtitle {
    font-size: 13px;
  }

  .infosys-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .infosys-header-actions .btn,
  .infosys-footer-actions .dropdown-toggle {
    width: 100%;
  }

  .infosys-tabs-shell .tab-content > .tab-pane {
    padding: 8px;
  }

  .infosys-form-shell .tab-content > .tab-pane {
    padding: 12px;
  }

  .infosys-table-wrapper {
    overflow: visible;
  }

  .infosys-modern-table,
  .infosys-modern-table tbody,
  .infosys-modern-table tr,
  .infosys-modern-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
  }

  .infosys-modern-table {
    min-width: 0;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
  }

  .infosys-modern-table thead {
    display: none !important;
  }

  .infosys-modern-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 4px 0;
    margin: 0;
  }

  .infosys-data-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    justify-self: stretch;
    margin: 0 0 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
  }

  .infosys-modern-table td {
    display: grid !important;
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
    align-items: start;
    column-gap: 18px;
    row-gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
  }

  .infosys-modern-table td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    max-width: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .infosys-modern-table td:last-child {
    border-bottom: none;
  }

  .infosys-td-actions {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
    border-bottom: none;
    text-align: left;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  .infosys-td-actions::before {
    display: none;
  }

  .infosys-actions-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px !important;
    border: 1px solid #dbe4ee !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    margin-left: auto;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    align-self: flex-end;
  }

  .infosys-action-group {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 0 0;
    border-top: 1px solid #f1f5f9;
    box-sizing: border-box;
  }

  .infosys-data-row.infosys-actions-open .infosys-action-group {
    display: flex;
  }

  .infosys-data-row.infosys-actions-open .infosys-actions-toggle {
    background: #eef5ff !important;
    border-color: #bfd7f2 !important;
  }

  .infosys-action-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex: 0 0 auto;
    justify-content: center;
    padding: 0;
  }

  .infosys-form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .infosys-form-actions .btn,
  .infosys-form-field > .btn,
  .infosys-form-field > .input-append,
  .infosys-form-field > .form-control,
  .infosys-form-field > select,
  .infosys-form-field > input[type="text"],
  .infosys-form-field > input[type="number"] {
    width: 100%;
  }

  .infosys-form-field .note-editor .note-toolbar > .btn-group,
  .infosys-form-field .note-editor .note-toolbar > .note-insert,
  .infosys-form-field .note-editor .note-toolbar > .note-view {
    margin-bottom: 6px;
  }

  .infosys-form-field-editor .note-editor.note-frame.panel.panel-default {
    min-width: 0;
    border-radius: 10px;
  }

  .infosys-form-field-editor .note-editor .note-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
  }

  .infosys-form-field-editor .note-editor .note-toolbar > .btn-group,
  .infosys-form-field-editor .note-editor .note-toolbar > .note-insert,
  .infosys-form-field-editor .note-editor .note-toolbar > .note-view {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    max-width: 100%;
    width: auto;
  }

  .infosys-form-field-editor .note-editor .note-toolbar .btn,
  .infosys-form-field-editor .note-editor .note-toolbar .dropdown-toggle {
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
    min-height: 36px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .infosys-form-field-editor .note-editor .note-editing-area {
    min-width: 0;
  }

  .infosys-form-field-editor .note-editor .note-editing-area .note-editable {
    min-height: 220px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
  }

  .infosys-form-field-editor .note-editor .note-statusbar {
    display: none;
  }

  .infosys-footer-actions .dropdown-menu {
    max-width: calc(100vw - 40px);
  }

  .infosys-page-header {
    padding: 16px;
  }

  .infosys-form-header {
    padding: 16px;
  }

  .infosys-title {
    font-size: 22px;
  }

  .infosys-form-title {
    font-size: 22px;
  }

  .infosys-subtitle {
    font-size: 13px;
  }

  .infosys-form-subtitle {
    font-size: 13px;
  }

  .infosys-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .infosys-header-actions .btn,
  .infosys-footer-actions .dropdown-toggle {
    width: 100%;
  }

  .infosys-tabs-shell .tab-content > .tab-pane {
    padding: 8px;
  }

  .infosys-form-shell .tab-content > .tab-pane {
    padding: 12px;
  }

  .infosys-table-wrapper {
    overflow: visible;
  }

  .infosys-modern-table,
  .infosys-modern-table tbody,
  .infosys-modern-table tr,
  .infosys-modern-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
  }

  .infosys-modern-table {
    min-width: 0;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
  }

  .infosys-modern-table thead {
    display: none !important;
  }

  .infosys-modern-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 4px 0;
    margin: 0;
  }

  .infosys-data-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    justify-self: stretch;
    margin: 0 0 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
  }

  .infosys-modern-table td {
    display: grid !important;
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
    align-items: start;
    column-gap: 18px;
    row-gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
  }

  .infosys-modern-table td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    max-width: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .infosys-modern-table td:last-child {
    border-bottom: none;
  }

  .infosys-td-actions {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
    border-bottom: none;
    text-align: left;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  .infosys-td-actions::before {
    display: none;
  }

  .infosys-actions-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px !important;
    border: 1px solid #dbe4ee !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    margin-left: auto;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    align-self: flex-end;
  }

  .infosys-action-group {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 0 0;
    border-top: 1px solid #f1f5f9;
    box-sizing: border-box;
  }

  .infosys-data-row.infosys-actions-open .infosys-action-group {
    display: flex;
  }

  .infosys-data-row.infosys-actions-open .infosys-actions-toggle {
    background: #eef5ff !important;
    border-color: #bfd7f2 !important;
  }

  .infosys-action-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex: 0 0 auto;
    justify-content: center;
    padding: 0;
  }

  .infosys-form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .infosys-form-actions .btn,
  .infosys-form-field > .btn,
  .infosys-form-field > .input-append,
  .infosys-form-field > .form-control,
  .infosys-form-field > select,
  .infosys-form-field > input[type="text"],
  .infosys-form-field > input[type="number"] {
    width: 100%;
  }

  .infosys-form-field .note-editor .note-toolbar > .btn-group,
  .infosys-form-field .note-editor .note-toolbar > .note-insert,
  .infosys-form-field .note-editor .note-toolbar > .note-view {
    margin-bottom: 6px;
  }

  .infosys-form-field-editor .note-editor.note-frame.panel.panel-default {
    min-width: 0;
    border-radius: 10px;
  }

  .infosys-form-field-editor .note-editor .note-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
  }

  .infosys-form-field-editor .note-editor .note-toolbar > .btn-group,
  .infosys-form-field-editor .note-editor .note-toolbar > .note-insert,
  .infosys-form-field-editor .note-editor .note-toolbar > .note-view {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    max-width: 100%;
    width: auto;
  }

  .infosys-form-field-editor .note-editor .note-toolbar .btn,
  .infosys-form-field-editor .note-editor .note-toolbar .dropdown-toggle {
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
    min-height: 36px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .infosys-form-field-editor .note-editor .note-editing-area {
    min-width: 0;
  }

  .infosys-form-field-editor .note-editor .note-editing-area .note-editable {
    min-height: 220px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
  }

  .infosys-form-field-editor .note-editor .note-statusbar {
    display: none;
  }

  .infosys-footer-actions .dropdown-menu {
    max-width: calc(100vw - 40px);
  }

  .groups-page-header {
    padding: 16px;
  }

  .groups-title {
    font-size: 22px;
  }

  .majors-page-header {
    padding: 16px;
  }

  .majors-title {
    font-size: 22px;
  }

  .majors-subtitle {
    font-size: 13px;
  }

  .worklist-page-header {
    padding: 16px;
  }

  .worklist-title {
    font-size: 22px;
  }

  .worklist-subtitle {
    font-size: 13px;
  }

  .worklist-tabs-shell .tab-content > .tab-pane {
    padding: 8px;
  }

  .cleanup-page-header {
    padding: 16px;
  }

  .cleanup-title {
    font-size: 22px;
  }

  .cleanup-subtitle {
    font-size: 13px;
  }

  .cleanup-tabs-shell .tab-content > .tab-pane {
    padding: 8px;
  }

  .majors-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .majors-header-actions .btn {
    width: 100%;
  }

  .majors-confirm-card {
    padding: 18px;
  }

  .majors-confirm-actions .btn {
    width: 100%;
  }

  .majors-tabs-shell .tab-content > .tab-pane {
    padding: 8px;
  }

  .majors-edit-prices-table-wrap {
    display: block !important;
    overflow: visible;
    width: 100% !important;
    max-width: 100% !important;
  }

  .majors-edit-prices-table,
  .majors-edit-prices-table tbody,
  .majors-edit-prices-table tr,
  .majors-edit-prices-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
  }

  .majors-edit-prices-table {
    min-width: 0;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    table-layout: fixed;
  }

  .majors-edit-prices-table thead {
    display: none !important;
  }

  .majors-edit-prices-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0;
    padding: 0;
  }

  .majors-edit-prices-table tr {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-self: stretch;
    box-sizing: border-box;
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  }

  .majors-edit-prices-table td {
    display: block;
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
    white-space: normal;
  }

  .majors-edit-prices-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .majors-edit-prices-table td:first-child {
    border-top: none;
    padding-top: 0;
  }

  .majors-edit-prices-table td .form-control,
  .majors-edit-prices-table td input[type="date"],
  .majors-edit-prices-table td input[type="text"],
  .majors-edit-prices-table td input[type="number"] {
    width: 100% !important;
  }

  .majors-edit-prices-table .input-symbol-euro {
    width: 100%;
  }

  .majors-edit-prices-table .input-symbol-euro input {
    padding-right: 28px;
  }

  .majors-edit-price-checkbox-cell {
    text-align: left;
  }

  .majors-edit-price-checkbox-cell input[type="checkbox"] {
    margin: 4px 0 0;
  }

  .majors-edit-price-action-cell .btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .majors-table-wrapper {
    display: block !important;
    overflow: visible;
    width: 100% !important;
    max-width: 100% !important;
  }

  .majors-modern-table,
  .majors-modern-table tbody,
  .majors-modern-table tr,
  .majors-modern-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
  }

  .majors-modern-table {
    min-width: 0;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
  }

  .majors-modern-table thead {
    display: none !important;
  }

  .majors-modern-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 4px 0;
    margin: 0;
  }

  .majors-data-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    justify-self: stretch;
    margin: 0 0 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
  }

  .majors-modern-table td {
    display: grid !important;
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
    align-items: start;
    column-gap: 18px;
    row-gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
  }

  .majors-modern-table td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    max-width: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .majors-modern-table td:last-child {
    border-bottom: none;
  }

  .majors-td-actions {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
    border-bottom: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  .majors-td-data {
    min-width: 0;
    flex: 1 1 auto;
    word-break: break-word;
  }

  .majors-td-actions::before {
    display: none;
  }

  .majors-actions-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px !important;
    border: 1px solid #dbe4ee !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    align-self: flex-end;
  }

  .majors-action-group {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 0 0;
    border-top: 1px solid #f1f5f9;
    box-sizing: border-box;
  }

  .majors-data-row.majors-actions-open .majors-action-group {
    display: flex;
  }

  .majors-data-row.majors-actions-open .majors-actions-toggle {
    background: #eef5ff !important;
    border-color: #bfd7f2 !important;
  }

  .majors-action-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex: 0 0 auto;
    justify-content: center;
    padding: 0;
  }

  .majors-action-btn span {
    display: none;
  }

  .majors-color-chip {
    min-width: 0;
    width: auto;
    max-width: 100%;
    white-space: normal;
  }

  .majors-footer,
  .majors-footer.contacts-footer {
    display: flex;
    padding: 14px;
  }

  .majors-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .majors-pagination-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 8px 10px;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #f8fafc;
    box-sizing: border-box;
  }

  .majors-pagination ul {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
  }

  .majors-pagination ul li {
    flex: 0 0 auto;
  }

  .majors-pagination ul li.majors-mobile-hidden {
    display: none;
  }

  .majors-pagination ul li a {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11px;
  }

  .majors-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #ffffff;
    color: #334155 !important;
    text-decoration: none !important;
    flex: 0 0 auto;
  }

  .majors-pagination-prev {
    margin-right: 8px;
  }

  .majors-pagination-next {
    margin-left: 8px;
  }

  .majors-pagination-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
  }

  .majors-footer-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .majors-footer-actions .btn,
  .majors-footer-actions .btn-group {
    width: 100%;
  }

  .groups-header-right,
  .groups-filter-controls,
  .groups-footer-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .groups-header-right .btn,
  .groups-filter-controls .btn-group,
  .groups-filter-controls .btn,
  .groups-footer-actions .btn,
  .groups-footer-actions .btn-group,
  .groups-footer-actions .btn-group > .btn,
  .groups-footer-actions .btn-group > .dropdown-toggle,
  .groups-print-form,
  .groups-proof-actions .btn {
    width: 100%;
  }

  .groups-footer-actions .btn-group {
    display: block;
  }

  .groups-print-form .btn {
    width: 100%;
  }

  .groups-print-form {
    display: block;
  }

  .groups-filter-controls .dropdown-menu,
  #groupdatetoggle_data {
    max-width: calc(100vw - 40px);
  }

  .groups-active-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .groups-tabs-shell .tab-content > .tab-pane {
    padding: 8px;
  }

  .groups-table-wrapper {
    overflow: visible;
  }

  .groups-modern-table,
  .groups-modern-table tbody,
  .groups-modern-table tr,
  .groups-modern-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
  }

  .groups-modern-table {
    display: block;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
  }

  .groups-modern-table thead {
    display: none;
  }

  .groups-modern-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 4px 0;
    margin: 0;
  }

  .groups-data-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    justify-self: stretch;
    margin: 0 0 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
  }

  .groups-modern-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
  }

  .groups-modern-table td::before {
    content: attr(data-label);
    flex: 0 0 104px;
    max-width: 104px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .groups-modern-table td:last-child {
    border-bottom: none;
  }

  .groups-td-actions {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
    border-bottom: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  .groups-td-actions::before {
    display: none;
  }

  .groups-actions-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px !important;
    border: 1px solid #dbe4ee !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 16px;
    margin: 0;
    align-self: flex-end;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }

  .groups-action-group {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
    padding: 12px 0 0;
    border-top: 1px solid #f1f5f9;
    box-sizing: border-box;
  }

  .groups-data-row.groups-actions-open .groups-action-group {
    display: flex;
  }

  .groups-data-row.groups-actions-open .groups-actions-toggle {
    background: #eef5ff !important;
    border-color: #bfd7f2 !important;
  }

  .groups-action-group {
    justify-content: flex-start;
  }

  .groups-action-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
  }

  .groups-checkbox-label {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 10px;
    background: #f8fafc;
  }

  .groups-proof-actions,
  .groups-footer {
    align-items: stretch;
  }

  .groups-footer {
    padding: 14px;
  }

  .groups-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .groups-pagination-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 8px 10px;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #f8fafc;
    box-sizing: border-box;
  }

  .groups-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .groups-pagination ul li {
    float: none;
    display: inline-block;
    flex: 0 0 auto;
  }

  .groups-pagination ul li.groups-mobile-hidden {
    display: none;
  }

  .groups-pagination ul li a {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11px;
  }

  .groups-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #ffffff;
    color: #334155 !important;
    text-decoration: none !important;
    flex: 0 0 auto;
  }

  .groups-pagination-prev {
    margin-right: 8px;
  }

  .groups-pagination-next {
    margin-left: 8px;
  }

  .groups-pagination-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
  }

  .groups-subpage-header {
    padding: 16px;
  }

  .groups-subpage-top,
  .groups-subpage-actions,
  .groups-table-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .groups-subpage-actions .btn,
  .groups-subpage-actions .btn-group,
  .groups-table-toolbar .btn {
    width: 100%;
  }

  .groups-subpage-title {
    font-size: 21px;
  }

  .groups-edit-title-card {
    padding: 16px;
  }

  .groups-edit-title {
    font-size: 21px;
  }

  .groups-edit-actions,
  .groups-edit-pane-actions,
  .groups-edit-pane-actions-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .groups-edit-actions .btn,
  .groups-edit-actions .dropdown,
  .groups-edit-actions .dropdown-toggle,
  .groups-edit-actions .dropdown-menu,
  .groups-roomplan-toolbar .btn,
  .groups-roomplan-toolbar .form-control,
  .groups-edit-pane-actions .btn,
  .groups-edit-pane-actions-right .btn {
    width: 100%;
  }

  .groups-edit-pane {
    padding: 12px 10px;
  }

  .groups-edit-fields {
    grid-template-columns: 1fr;
  }

  .groups-edit-searchbar {
    margin: 0 0 10px;
  }

  .groups-edit-searchbar input[type="text"],
  .groups-edit-searchbar .btn {
    width: 100%;
    flex: 1 1 100%;
  }

  .groups-edit-column-main h2 .pull-right,
  .groups-edit-column-main h3 .pull-right {
    float: none !important;
    display: block;
    margin-top: 8px;
  }

  .groups-edit-column-main h2 .pull-right .btn,
  .groups-edit-column-main h3 .pull-right .btn {
    display: inline-flex;
    width: 100%;
    margin-bottom: 8px;
    justify-content: center;
  }

  .groups-edit-pane .well {
    padding: 12px;
  }

  .groups-edit-mobile-table,
  .groups-edit-mobile-table tbody,
  .groups-edit-mobile-table tr,
  .groups-edit-mobile-table td,
  .groups-responsive-card-table,
  .groups-responsive-card-table tbody,
  .groups-responsive-card-table tr,
  .groups-responsive-card-table td {
    display: block;
    width: 100%;
  }

  .groups-edit-mobile-table,
  .groups-responsive-card-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
  }

  .groups-edit-mobile-table thead,
  .groups-responsive-card-table thead,
  .groups-desktop-only {
    display: none;
  }

  .groups-edit-mobile-table tbody,
  .groups-responsive-card-table tbody {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
  }

  .groups-edit-mobile-table tr,
  .groups-responsive-card-table tr {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    justify-self: stretch;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  }

  .groups-edit-mobile-table td,
  .groups-responsive-card-table td {
    display: block;
    padding: 8px 0;
    border-top: 1px solid #f1f5f9;
    white-space: normal;
  }

  .groups-edit-mobile-table td::before,
  .groups-responsive-card-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .groups-edit-mobile-table td:first-child,
  .groups-responsive-card-table td:first-child {
    border-top: none;
  }

  .groups-edit-mobile-table td .btn,
  .groups-edit-mobile-table td a.btn,
  .groups-responsive-card-table td .btn,
  .groups-responsive-card-table td a.btn {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
  }

  .groups-edit-mobile-table td:last-child .btn,
  .groups-edit-mobile-table td:last-child a.btn,
  .groups-edit-mobile-table td[data-label="Aktionen"] .btn,
  .groups-edit-mobile-table td[data-label="Aktionen"] a.btn,
  .groups-edit-mobile-table td[data-label="Kontakt"] .btn,
  .groups-edit-mobile-table td[data-label="Kontakt"] a.btn,
  .groups-responsive-card-table td:last-child .btn,
  .groups-responsive-card-table td:last-child a.btn {
    margin-bottom: 8px;
  }

  .groups-inline-action-list {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .groups-proof-rules-card {
    padding: 16px;
  }

  .groups-roomplan-table td[data-label="Aktionen"] .btn + .btn,
  .groups-roomplan-table td[data-label="Aktionen"] a.btn + a.btn {
    margin-left: 0;
  }

  .groups-roomplan-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .groups-roomplan-table-wrap {
    width: 100%;
    margin-top: 16px;
    overflow: visible;
  }

  .groups-roomplan-table {
    display: block;
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed;
  }

  .groups-roomplan-table tbody {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  .groups-roomplan-table tr {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .groups-roomplan-hint {
    margin-top: 0;
  }

  .roomplan-entry-container-container ul {
    display: grid;
    grid-template-columns: 1fr;
  }

  .roomplan-entry-container {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 150px;
  }

  .contacts-edit-header {
    padding: 16px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .contacts-edit-title-wrap,
  .contacts-edit-actions {
    width: 100%;
  }

  .contacts-edit-title-table,
  .contacts-edit-title-table tbody,
  .contacts-edit-title-table tr,
  .contacts-edit-title-table th {
    display: block;
    width: 100%;
  }

  .contacts-edit-actions {
    justify-content: flex-start;
    padding-top: 0;
    border-top: none;
  }

  .contacts-edit-actions .tooltiplink {
    flex: 1 1 calc(50% - 4px);
  }

  .contacts-edit-actions .btn {
    width: 100%;
  }

  .contacts-edit-tab-content > .tab-pane {
    padding: 12px 10px;
  }

  .contacts-edit-tab-content {
    border-top: none;
  }

  .contacts-edit-avatar-table,
  .contacts-edit-avatar-table tbody,
  .contacts-edit-avatar-table tr,
  .contacts-edit-avatar-table td {
    display: block;
    width: 100%;
  }

  .contacts-edit-avatar-card {
    width: 100% !important;
    height: auto !important;
    margin: 0 auto 12px !important;
    padding: 18px;
  }

  #avatar_image {
    max-width: 160px;
  }

  .contacts-edit-form .tab-pane fieldset ul {
    grid-template-columns: 1fr;
  }

  .contacts-edit-form .tab-pane fieldset ul > li,
  .contacts-edit-form .tab-pane fieldset ul > li[style*="width: 50%"],
  .contacts-edit-form .tab-pane fieldset ul > li[style*="width: 100%"] {
    width: 100% !important;
  }

  .contacts-edit-form .tab-pane fieldset ul > li .input-group.date {
    display: flex;
    width: 100%;
  }

  .contacts-edit-form
    .tab-pane
    fieldset
    ul
    > li
    .input-group.date
    .form-control {
    min-width: 0;
  }

  .contacts-edit-form .tab-pane fieldset ul > li .btn,
  .contacts-edit-form .tab-pane fieldset ul > li a.btn {
    width: 100%;
  }

  .contacts-edit-form fieldset legend .btn.pull-right {
    display: block;
    width: 100%;
    margin: 10px 0 0;
  }

  .contacts-edit-inline-actions {
    justify-content: stretch;
  }

  .contacts-edit-inline-actions .form-control,
  .contacts-edit-inline-actions select,
  .contacts-edit-inline-actions .btn,
  .contacts-edit-inline-actions a.btn {
    width: 100%;
    min-width: 0;
  }

  .contacts-edit-table-wrap {
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .contacts-edit-form .archivelist {
    display: block;
  }

  .contacts-edit-form .archivelist li {
    width: 100%;
    min-width: 0;
    margin-bottom: 12px;
  }

  .contacts-edit-form .bigelement.details {
    min-height: 0;
    padding-bottom: 10px;
  }

  .contacts-edit-form .bigelement.details .date {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contacts-edit-form .bigelement.details .date .btn {
    width: 100%;
  }

  .contacts-edit-form .bigelement.details .thumbnail {
    display: block;
    padding: 12px;
    max-height: 240px;
    overflow: hidden;
  }

  .contacts-edit-form .bigelement.details .zoomthumb {
    width: 100%;
    max-width: 100%;
    max-height: 216px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
  }

  .contacts-edit-documents-upload {
    float: none !important;
    display: inline-flex;
    width: auto !important;
    margin: 10px 0 0;
  }

  .contacts-edit-documents-list {
    gap: 12px;
  }

  .contacts-edit-documents-list > li {
    width: 100% !important;
    min-width: 0;
  }

  .contacts-edit-document-card {
    min-height: 0;
    padding-bottom: 0;
  }

  .contacts-edit-document-meta {
    padding: 12px;
  }

  .contacts-edit-document-meta br {
    display: none;
  }

  .contacts-edit-document-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .contacts-edit-document-actions .btn {
    width: 100% !important;
  }

  .contacts-edit-document-preview {
    padding: 12px;
    max-height: 220px;
    overflow: hidden;
  }

  .contacts-edit-document-preview .zoomthumb {
    max-height: 190px;
  }

  .contacts-edit-data-table.contacts-edit-mobile-cards,
  .contacts-edit-data-table.contacts-edit-mobile-cards tbody,
  .contacts-edit-data-table.contacts-edit-mobile-cards tr,
  .contacts-edit-data-table.contacts-edit-mobile-cards td {
    display: block;
    width: 100%;
  }

  .contacts-edit-data-table.contacts-edit-mobile-cards {
    min-width: 0;
  }

  .contacts-edit-data-table.contacts-edit-mobile-cards thead {
    display: none;
  }

  .contacts-edit-data-table.contacts-edit-mobile-cards tbody {
    padding: 0;
  }

  .contacts-edit-data-table.contacts-edit-mobile-cards tr {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 12px;
    margin-bottom: 14px;
  }

  .contacts-edit-data-table.contacts-edit-mobile-cards td {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
  }

  .contacts-edit-data-table.contacts-edit-mobile-cards td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .contacts-edit-data-table.contacts-edit-mobile-cards td:last-child {
    border-bottom: none;
  }

  .contacts-edit-data-table.contacts-edit-mobile-cards td .btn,
  .contacts-edit-data-table.contacts-edit-mobile-cards td a.btn {
    width: auto !important;
    margin-top: 0;
    margin-right: 6px;
    margin-bottom: 6px;
  }

  .contacts-edit-data-table.contacts-edit-mobile-cards td .label {
    white-space: normal;
  }

  .contacts-edit-data-table.contacts-edit-mobile-cards
    .extent_buchung_container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .contacts-edit-data-table.contacts-edit-mobile-cards
    .extent_buchung_container
    .extend_buchung {
    width: 100%;
  }

  .contacts-edit-data-table.contacts-edit-mobile-cards
    td[data-label="Verlängern"],
  .contacts-edit-data-table.contacts-edit-mobile-cards
    td[data-label="Verkürzen"],
  .contacts-edit-data-table.contacts-edit-mobile-cards
    td[data-label="Ig. Querprüfung"],
  .contacts-edit-data-table.contacts-edit-mobile-cards
    td[data-label="Indiv. Unterbringung"],
  .contacts-edit-data-table.contacts-edit-mobile-cards
    td[data-label="Freitext"],
  .contacts-edit-data-table.contacts-edit-mobile-cards
    td[data-label="Zur Gruppe"],
  .contacts-edit-data-table.contacts-edit-mobile-cards
    td[data-label="Abnahme"] {
    padding-top: 12px;
  }

  .contacts-edit-form a.btn-success.pull-right,
  .contacts-edit-form a.btn-primary.pull-left {
    float: none !important;
    width: 100%;
    margin-top: 10px;
  }
}

/* --- Responsive (Global + Contacts) --- */
@media (max-width: 1360px) and (min-width: 993px) {
  .desktop-navbar .navbar-inner {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .navbar.navbar-fixed-top
    .navbar-inner
    > .pull-left.desktop-navbar-icons:first-child {
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .navbar.navbar-fixed-top .navbar-inner > .desktop-navbar-search {
    flex: 1 1 320px;
    max-width: none;
    margin-left: 0;
  }

  .navbar.navbar-fixed-top .navbar-inner > .desktop-navbar-actions {
    flex: 0 1 auto;
  }
}

@media (max-width: 992px) {
  .mobile-navbar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  }

  .desktop-navbar {
    display: none;
  }

  .navbar.navbar-fixed-top {
    padding: 12px;
  }

  .navbar.navbar-fixed-top .navbar-inner {
    gap: 10px;
  }

  .navbar.navbar-fixed-top .navbar-inner > .pull-left:first-child {
    gap: 4px;
    padding-bottom: 6px;
    margin-bottom: 2px;
  }

  a.navlink.tooltiplink {
    flex: 0 0 auto;
  }

  .navbar.navbar-fixed-top .navbar-inner > .pull-left + .pull-left,
  .navbar.navbar-fixed-top .navbar-inner > .pull-right:not(.print-context) {
    width: 100%;
    min-width: 0;
  }

  .navbar.navbar-fixed-top .navbar-inner > .pull-right.print-context {
    margin-left: 0;
  }

  body > .container-fluid {
    margin-top: 12px;
  }

  .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .desktop-navbar .account-context {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.4;
    height: auto;
    margin-top: 0;
    padding-right: 0;
    margin-right: 0;
  }

  .desktop-navbar div#account_menu_neu {
    width: 100%;
    min-width: 0;
  }

  .pull-right.print-context {
    margin-top: 0;
    margin-right: 0;
  }

  .desktop-navbar .newcontact-notice,
  .desktop-navbar .newemail-notice,
  .desktop-navbar .pinnwand-notice {
    margin-right: 0;
  }

  .contacts-page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .contacts-header-center,
  .contacts-header-right {
    justify-content: flex-start;
  }

  .contacts-header-right {
    flex-wrap: wrap;
  }

  .contacts-header-right .btn-group,
  .contacts-header-right .contacts-stats-btn {
    max-width: 100%;
  }

  table[border="0"]:has(th h1),
  table[border="0"]:has(th h4) {
    padding: 16px !important;
  }

  table[border="0"]:has(th h1) > tbody,
  table[border="0"]:has(th h4) > tbody {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  table[border="0"] > tbody > tr > th > h1 {
    font-size: 22px !important;
  }

  table[border="0"] > tbody > tr > th > h4 {
    font-size: 18px !important;
  }

  table[border="0"]:has(th h1) .btn-group,
  table[border="0"]:has(th h4) .btn-group,
  table[border="0"]:has(th h1) th > ul,
  table[border="0"]:has(th h4) th > ul,
  .button-block,
  .button-block.button-block2,
  ul.filter-container,
  div.filter-container {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }

  #filtergroups_head,
  #groupdatetoggle_data,
  .filter-container span[id^="filter"] {
    min-width: 0 !important;
    width: 100% !important;
  }

  #groupdatetoggle_data li.data {
    column-count: 2 !important;
  }

  .button-block .btn,
  .button-block .form-control,
  table[border="0"]:has(th h1) .btn,
  table[border="0"]:has(th h4) .btn,
  table[border="0"]:has(th h1) .dropdown-toggle,
  table[border="0"]:has(th h4) .dropdown-toggle {
    max-width: 100%;
  }

  #belegunskw,
  #raumplankw,
  #raumplan_monatemonat,
  #emailstatus {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
  }

  #belegunskw_jumptodaybutton,
  #floorplan_jumptodaybutton {
    width: 100%;
    margin-top: 8px;
  }

  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .nav-tabs::-webkit-scrollbar,
  .contacts-table-wrapper::-webkit-scrollbar,
  .table-responsive::-webkit-scrollbar,
  .tab-pane table::-webkit-scrollbar,
  .container-fluid table::-webkit-scrollbar {
    height: 8px;
  }

  .nav-tabs::-webkit-scrollbar-thumb,
  .contacts-table-wrapper::-webkit-scrollbar-thumb,
  .table-responsive::-webkit-scrollbar-thumb,
  .tab-pane table::-webkit-scrollbar-thumb,
  .container-fluid table::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
  }

  .nav-tabs > li,
  .nav-tabs > li.pull-right {
    margin-left: 0 !important;
    flex: 0 0 auto;
  }

  .nav-tabs > li > a {
    padding: 10px 14px !important;
    font-size: 12px;
  }

  .tab-content > .tab-pane {
    padding: 14px;
  }

  .tab-pane fieldset,
  .container-fluid fieldset {
    padding: 14px;
  }

  .table-responsive,
  .contacts-table-wrapper,
  .worklist-table-wrapper,
  .cleanup-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-pane table,
  .container-fluid table.table,
  .container-fluid .table-responsive > table,
  .contacts-modern-table,
  .infosys-modern-table,
  .worklist-modern-table,
  .cleanup-modern-table {
    min-width: 100%;
  }

  .tab-pane
    table:not(.table-medidoku):not(.infosys-modern-table):not([border="0"]),
  .container-fluid
    table.table:not(.contacts-modern-table):not(.infosys-modern-table):not(
      .worklist-modern-table
    ):not(.cleanup-modern-table):not(.belegungs-tabelle),
  .container-fluid .table-responsive > table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .tab-pane
    table:not(.table-medidoku):not(.infosys-modern-table):not([border="0"])
    tbody,
  .container-fluid
    table.table:not(.contacts-modern-table):not(.infosys-modern-table):not(
      .worklist-modern-table
    ):not(.cleanup-modern-table):not(.belegungs-tabelle)
    tbody,
  .container-fluid .table-responsive > table tbody {
    display: table-row-group;
  }

  #belegfiltercontent,
  .inlinesearch_searchmore .alert,
  form[action="/emails/action/mass/default.htm"] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }

  #belegfiltercontent .pull-right,
  .inlinesearch_searchmore .pull-right,
  form[action="/emails/action/mass/default.htm"] .pull-right {
    float: none !important;
  }

  #belegfiltercontent .btn,
  #belegfiltercontent .form-control,
  .inlinesearch_searchmore .btn,
  form[action="/emails/action/mass/default.htm"] .btn,
  form[action="/emails/action/mass/default.htm"] .form-control,
  .btn-add-beleg,
  .btn-add-beleg + .btn {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
  }

  .table-beleg input.form-control,
  .table-beleg select.form-control,
  .table-beleg textarea,
  .table-beleg input[type="text"] {
    min-width: 120px;
  }

  .contacts-data-row td {
    padding: 10px 12px;
  }

  .contacts-td-data {
    min-width: 140px;
  }

  .contacts-td-actions {
    min-width: 220px;
  }

  .contacts-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contacts-footer-actions {
    flex-wrap: wrap;
  }

  .modal-dialog,
  .modal-dialog-more-width,
  .modal-dialog.modal-lg {
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    margin: 16px auto !important;
  }

  .modal-content {
    max-height: calc(100vh - 32px);
    overflow: auto;
  }

  .container-fluid .form-control,
  .container-fluid input[type="text"],
  .container-fluid input[type="number"],
  .container-fluid input[type="email"],
  .container-fluid input[type="date"],
  .container-fluid input[type="password"],
  .container-fluid input[type="time"],
  .container-fluid select,
  .container-fluid textarea {
    max-width: 100%;
  }

  .rooms-container {
    flex-direction: column;
    gap: 10px;
  }

  .room-number-box {
    width: 100%;
    margin-right: 0;
    padding: 1rem;
  }

  .room-box {
    width: 100%;
  }

  .mutlicolbelegung {
    display: block;
    min-height: 0;
  }

  .rooms-group-column,
  .rooms-column {
    display: block;
    width: 100%;
  }

  .mutlicolbelegung .raum,
  .raum.st1,
  .raum.st2,
  .raum.st4,
  .raum.ra05,
  .raum.ra06,
  .raum.ra07,
  .raum.ra08,
  .raum.ra09,
  .raum.ra10,
  .raum.ra11,
  .raum.ra12,
  .raum.ra13,
  .raum.ra14,
  .raum.ra15,
  .raum.ra16,
  .raum.ra17,
  .raum.ra18,
  .raum.ra19,
  .raum.ra20,
  .raum.ra21,
  .raum.ra22,
  .raum.ra23,
  .raum.ra24,
  .raum.ra25,
  .raum.ra26,
  .raum.st4.ra01,
  .raum.st4.ra02,
  .raum.st4.ra03,
  .raum.st4.ra04,
  .raum.st4.ra05,
  .raum.st4.ra06,
  .raum.st4.ra07,
  .raum.st4.ra08,
  .raum.st2.ra16,
  .raum.st2.ra17,
  .raum.st2.ra18,
  .raum.st2.ra19,
  .raum.st2.ra20,
  .raum.st2.ra21,
  .raum.st2.ra22,
  .raum.st2.ra23,
  .raum.st2.ra24,
  .raum.st2.ra25,
  .raum.st2.ra26 {
    position: static !important;
    top: auto !important;
    left: auto !important;
  }

  ul.belegungul {
    height: auto;
    margin-top: 0;
  }

  ul.belegungul li {
    display: flex;
    align-items: stretch;
    gap: 8px;
  }

  ul.belegungul li div.name {
    width: calc(100% - 88px);
    min-height: 40px;
    height: auto;
  }

  ul.belegungul li div.grenzen {
    width: 80px;
    flex: 0 0 80px;
    margin: 0;
  }

  .edit-container {
    position: static;
    top: auto;
    width: 100%;
    min-height: 0;
    margin-top: 10px;
  }

  img.avatar-image-belegung {
    position: static;
    display: block;
    right: auto;
    top: auto;
    max-width: 100%;
    margin-top: 12px;
  }

  ul.reinigung {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }

  .mouseover-info {
    left: 0;
    top: calc(100% + 8px);
  }

  ul.formcenter,
  ul.pinnwand {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  li.formcenter-element,
  li.pinnwand-element {
    float: none !important;
    width: calc(50% - 6px) !important;
    min-width: 0;
    height: auto !important;
    min-height: 0;
    margin: 0 !important;
    padding-bottom: 48px;
  }

  li.formcenter-element img,
  li.pinnwand-element img {
    max-width: 100%;
    height: auto;
  }

  li.formcenter-element p,
  li.pinnwand-element p {
    max-height: none !important;
  }

  li.formcenter-element .btn,
  li.pinnwand-element .btn {
    white-space: normal;
  }

  li.formcenter-element span.datum,
  li.pinnwand-element span.datum {
    left: 10px !important;
    right: 10px;
    width: auto;
  }

  #scanner_filechecksum {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .mobile-navbar-top,
  .mobile-navbar-search,
  .mobile-navbar-panel {
    padding-left: 10px;
    padding-right: 10px;
  }

  .mobile-navbar-grid {
    grid-template-columns: 1fr;
  }

  .mobile-navbar-account-links .btn {
    flex: 1 1 100%;
  }

  body {
    font-size: 12px;
  }

  .navbar.navbar-fixed-top {
    padding: 10px 8px;
  }

  a.navlink.tooltiplink {
    width: 40px;
    height: 40px;
    padding: 10px;
    font-size: 15px;
  }

  .navbar.navbar-fixed-top .navbar-inner {
    gap: 8px;
  }

  .desktop-navbar .account-context {
    justify-content: flex-start;
  }

  .desktop-navbar .account-context b {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    line-height: 1.4;
  }

  .contacts-title {
    font-size: 22px;
  }

  .contacts-header-right .btn-group,
  .contacts-header-right .btn,
  .contacts-stats-btn,
  .contacts-footer-actions .btn,
  .contacts-footer-actions .btn-group {
    width: 100%;
  }

  .contacts-stats-btn {
    justify-content: center;
  }

  .contacts-action-group {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .contacts-td-data {
    min-width: 120px;
  }

  .contacts-td-actions {
    min-width: 180px;
  }

  #groupdatetoggle_data li.data {
    column-count: 1 !important;
  }

  li.formcenter-element,
  li.pinnwand-element {
    width: 100% !important;
  }

  li.pinnwand-element .btn,
  li.formcenter-element .btn,
  .print-view-pinnwand {
    position: static !important;
    display: block;
    width: 100% !important;
    margin-top: 8px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    float: none !important;
  }

  li.pinnwand-element span.datum,
  li.formcenter-element span.datum {
    position: static !important;
    display: block;
    margin-top: 10px;
  }

  li.pinnwand-element p,
  li.formcenter-element p {
    margin-bottom: 12px;
  }

  .inlinesearch_searchmore .alert {
    line-height: 1.5 !important;
  }
}

/* --- Contacts Legacy Responsive Helpers --- */
.contacts-simple-table-wrap,
.contacts-email-table-wrap,
.contacts-linked-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
  .contacts-legacy-form .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }

  .contacts-legacy-form .nav-tabs > li {
    float: none;
    width: calc(50% - 4px);
  }

  .contacts-legacy-form .nav-tabs > li > a {
    margin-right: 0;
    border-radius: 10px;
  }

  .contacts-legacy-form .tab-content {
    padding: 14px 12px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-top: none;
    border-radius: 0 0 14px 14px;
  }

  .contacts-legacy-form fieldset {
    padding: 14px 12px 18px !important;
  }

  .contacts-legacy-form ul[style*="list-style-type: none"] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contacts-legacy-form ul[style*="list-style-type: none"] > li {
    list-style: none;
    float: none !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .contacts-legacy-form label {
    display: block;
    margin-bottom: 6px !important;
  }

  .contacts-legacy-form input[type="text"],
  .contacts-legacy-form input[type="file"],
  .contacts-legacy-form select,
  .contacts-legacy-form textarea {
    max-width: 100%;
  }

  .contacts-legacy-form .input-append {
    display: flex;
    align-items: stretch;
    width: 100%;
  }

  .contacts-legacy-form .input-append .form-control {
    float: none !important;
    width: auto !important;
    flex: 1 1 auto;
  }

  .contacts-legacy-form .input-append .add-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0 12px;
  }

  .contacts-legacy-form textarea[style*="width: 95%"] {
    width: 100% !important;
  }

  .contacts-legacy-form input[style*="width: 594px"] {
    width: calc(100% - 42px) !important;
  }

  .contacts-legacy-form div[id^="dropdown_"] {
    left: 0;
    right: auto;
    max-width: min(100%, 320px);
  }

  .contacts-legacy-form div[id$="_autofill"] {
    width: min(100%, 320px) !important;
    max-width: 100%;
  }

  .contacts-legacy-form a.btn.pull-right,
  .contacts-legacy-form a.btn.pull-left {
    float: none !important;
    display: block;
    width: 100%;
    margin-top: 12px;
  }

  .contacts-legacy-form .table,
  .contacts-simple-table,
  .contacts-email-table,
  .contacts-linked-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 640px;
  }

  .contacts-legacy-form .table td,
  .contacts-legacy-form .table th,
  .contacts-simple-table td,
  .contacts-simple-table th,
  .contacts-email-table td,
  .contacts-email-table th,
  .contacts-linked-table td,
  .contacts-linked-table th {
    white-space: normal;
  }

  .contacts-legacy-form .table .alert[style*="width: 250px"] {
    width: auto !important;
    min-width: 180px;
  }

  .contacts-legacy-form .groups-edit-mobile-table {
    min-width: 0 !important;
    overflow: visible;
  }

  .contacts-email-list-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .contacts-email-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contacts-linked-stats-btn {
    float: none !important;
    display: block;
    width: 100%;
    margin-top: 12px;
  }
}

@media (max-width: 576px) {
  .contacts-legacy-form .nav-tabs > li {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .contacts-tabs-shell .tab-content > .tab-pane {
    padding: 0 !important;
  }

  .contacts-table-wrapper,
  .contacts-modern-table {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .contacts-table-wrapper {
    padding: 0 10px;
    box-sizing: border-box;
  }

  .contacts-modern-table {
    display: block !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
  }

  .contacts-modern-table tbody {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .contacts-data-row {
    display: block;
    align-self: stretch;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .contacts-data-row td,
  .contacts-td-data,
  .contacts-td-actions {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

/* =============================================
   RAUM-UEBERSICHT UND RAUM-BEARBEITEN
   ============================================= */

.raum-modern-alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.raum-page-header,
.raum-edit-title-card {
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.raum-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.raum-header-content,
.raum-header-actions,
.raum-tabs-shell,
.raum-edit-tabs-shell,
.raum-table-wrapper,
.raum-edit-table-wrap {
  min-width: 0;
}

.raum-title,
.raum-edit-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
}

.raum-title i {
  margin-right: 10px;
  color: #0f766e;
  font-size: 24px;
}

.raum-subtitle,
.raum-edit-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.raum-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.raum-header-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.raum-tabs-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.raum-tabs-mobile-select,
.raum-edit-tabs-mobile-select {
  display: none;
}

.raum-tabs-mobile-select {
  padding: 14px 14px 0;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf1;
}

.raum-tabs-mobile-select .form-control,
.raum-edit-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}

.raum-tabs-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.raum-tab-pane {
  padding: 0;
}

.raum-tabs-shell .tab-content {
  background: #ffffff;
}

.raum-table-wrapper,
.raum-edit-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.raum-modern-table {
  width: 100%;
  min-width: 780px;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.raum-modern-table thead th,
.raum-edit-prices-table thead th,
.raum-edit-year-table thead th {
  background: #f8f9fb;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e8ecf1;
  white-space: nowrap;
}

.raum-modern-table td,
.raum-edit-prices-table td,
.raum-edit-year-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  white-space: normal;
}

.raum-modern-table tbody tr:last-child td,
.raum-edit-prices-table tbody tr:last-child td,
.raum-edit-year-table tbody tr:last-child td {
  border-bottom: none;
}

.raum-data-row:hover {
  background-color: #f8fbff !important;
}

.raum-td-primary,
.raum-price-value {
  font-weight: 600;
  color: #1f2937;
}

.raum-th-actions,
.raum-td-actions {
  width: 120px;
  min-width: 120px;
}

.raum-action-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.raum-actions-toggle {
  display: none;
  margin-left: auto;
}

.raum-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  flex: 0 0 auto;
}

.raum-action-btn:hover {
  transform: translateY(-1px);
}

.raum-action-btn span {
  display: none;
  font-size: 12px;
  font-weight: 600;
}

@media (min-width: 761px) {
  .raum-actions-toggle {
    display: none !important;
  }

  .raum-action-group {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    width: auto;
    min-width: 0;
  }

  .raum-td-actions {
    text-align: right;
    white-space: nowrap;
    vertical-align: middle;
  }
}

.raum-action-delete:hover {
  background: #fef2f2;
  color: #ef4444 !important;
  border-color: #fecaca;
}

.raum-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
}

.raum-pagination-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.raum-pagination.pagination {
  margin: 0;
}

.raum-pagination ul {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.raum-pagination ul li {
  float: none;
  display: inline-block;
}

.raum-pagination ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
}

.raum-pagination ul li.raum-page-active a {
  background: #428bca;
  border-color: #428bca;
  color: #fff;
}

.raum-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.raum-edit-header {
  margin-bottom: 16px;
}

.raum-edit-form {
  margin-bottom: 0;
}

.raum-edit-tabs-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.raum-edit-tabs-nav {
  display: flex;
  flex-wrap: wrap;
}

.raum-edit-tabs-nav > li {
  float: none;
}

.raum-edit-tab-content {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.raum-edit-pane {
  padding: 18px;
}

.raum-edit-fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.raum-edit-fields > li {
  min-width: 0;
}

.raum-edit-fields label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #334155;
}

.raum-field-hint {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 400;
}

.raum-edit-fields .form-control,
.raum-edit-fields input[type="text"],
.raum-edit-fields input[type="date"],
.raum-edit-fields input[type="number"],
.raum-edit-fields select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.raum-edit-fields .input-append {
  display: flex;
  width: 100%;
}

.raum-edit-fields .input-append .form-control {
  flex: 1 1 auto;
}

.raum-edit-field-full {
  grid-column: 1 / -1;
}

.raum-edit-pane-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.raum-edit-pane-actions .btn {
  min-width: 160px;
}

.raum-edit-inline-form {
  margin-bottom: 0;
}

.raum-edit-section-head {
  margin-bottom: 16px;
}

.raum-edit-section-head h2 {
  margin: 0;
  font-size: 20px;
  color: #1f2937;
}

.raum-edit-section-head p {
  margin: 6px 0 0;
  color: #64748b;
}

.raum-edit-section-head-secondary {
  margin-top: 24px;
}

.raum-edit-prices-table {
  width: 100%;
  min-width: 760px;
  margin-bottom: 0;
}

.raum-edit-year-table {
  width: 100%;
  min-width: 560px;
  margin-bottom: 0;
}

.raum-inline-action-form {
  margin: 0;
}

.raum-inline-action-form .btn {
  white-space: nowrap;
}

.raum-empty-state,
.raum-placeholder-card {
  padding: 28px 24px;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  text-align: center;
}

.raum-empty-state h4,
.raum-placeholder-card h3 {
  margin: 0;
  color: #1f2937;
}

.raum-placeholder-card p {
  margin: 10px 0 0;
  color: #64748b;
}

@media (max-width: 1100px) {
  .raum-page-header {
    align-items: flex-start;
  }

  .raum-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .raum-tabs-mobile-select,
  .raum-edit-tabs-mobile-select {
    display: block;
  }

  .raum-edit-tabs-mobile-select {
    padding: 12px;
    background: #f8f9fb;
    border-bottom: 1px solid #e8ecf1;
  }

  .raum-tabs-shell .nav-tabs.raum-tabs-nav,
  .raum-edit-tabs-shell .nav-tabs.raum-edit-tabs-nav {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .raum-page-header,
  .raum-edit-title-card {
    padding: 16px;
  }

  .raum-title,
  .raum-edit-title {
    font-size: 22px;
  }

  .raum-subtitle,
  .raum-edit-subtitle {
    font-size: 13px;
  }

  .raum-header-actions,
  .raum-edit-pane-actions,
  .raum-footer-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .raum-header-actions .btn,
  .raum-edit-pane-actions .btn,
  .raum-footer-actions .btn,
  .raum-footer-actions .btn-group,
  .raum-footer-actions .btn-group > .btn,
  .raum-footer-actions .btn-group > .dropdown-toggle {
    width: 100%;
  }

  .raum-edit-pane {
    padding: 14px;
  }

  .raum-edit-fields {
    grid-template-columns: 1fr;
  }

  .raum-edit-field-full {
    grid-column: auto;
  }

  .raum-table-wrapper,
  .raum-edit-table-wrap {
    display: block !important;
    overflow: visible;
    width: 100% !important;
    max-width: 100% !important;
  }

  .raum-modern-table,
  .raum-modern-table tbody,
  .raum-modern-table tr,
  .raum-modern-table td,
  .raum-edit-prices-table,
  .raum-edit-prices-table tbody,
  .raum-edit-prices-table tr,
  .raum-edit-prices-table td,
  .raum-edit-year-table,
  .raum-edit-year-table tbody,
  .raum-edit-year-table tr,
  .raum-edit-year-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
  }

  .raum-modern-table,
  .raum-edit-prices-table,
  .raum-edit-year-table {
    min-width: 0;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
  }

  .raum-modern-table thead,
  .raum-edit-prices-table thead,
  .raum-edit-year-table thead {
    display: none !important;
  }

  .raum-modern-table tbody,
  .raum-edit-prices-table tbody,
  .raum-edit-year-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 4px 0;
    margin: 0;
  }

  .raum-data-row,
  .raum-edit-prices-table tbody tr,
  .raum-edit-year-table tbody tr {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    justify-self: stretch;
    margin: 0 0 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
  }

  .raum-modern-table td {
    display: grid !important;
    grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
    align-items: start;
    column-gap: 16px;
    row-gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
  }

  .raum-modern-table td::before,
  .raum-edit-prices-table td::before,
  .raum-edit-year-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .raum-modern-table td:last-child,
  .raum-edit-prices-table td:last-child,
  .raum-edit-year-table td:last-child {
    border-bottom: none;
  }

  .raum-td-actions {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
    border-bottom: none;
    text-align: left;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .raum-td-actions::before {
    display: none;
  }

  .raum-actions-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px !important;
    border: 1px solid #dbe4ee !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 14px;
    margin: 0 0 0 auto;
    align-self: flex-end;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }

  .raum-action-group {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
    padding: 10px 0 0;
    border-top: 1px solid #f1f5f9;
    box-sizing: border-box;
  }

  .raum-data-row.raum-actions-open .raum-action-group {
    display: flex;
  }

  .raum-data-row.raum-actions-open .raum-actions-toggle {
    background: #eef5ff !important;
    border-color: #bfd7f2 !important;
  }

  .raum-action-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
  }

  .raum-edit-prices-table td,
  .raum-edit-year-table td {
    display: block !important;
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
    white-space: normal;
  }

  .raum-edit-prices-table td:first-child,
  .raum-edit-year-table td:first-child {
    border-top: none;
    padding-top: 0;
  }

  .raum-edit-prices-table td::before,
  .raum-edit-year-table td::before {
    margin-bottom: 6px;
  }

  .raum-edit-prices-table td .btn,
  .raum-edit-prices-table td a.btn,
  .raum-edit-year-table td .btn,
  .raum-edit-year-table td a.btn {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    justify-content: center;
    align-items: center;
  }

  .raum-footer {
    padding: 14px;
  }

  .raum-pagination-wrap {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #f8fafc;
    box-sizing: border-box;
  }

  .raum-pagination ul {
    justify-content: center;
  }

  .raum-empty-state,
  .raum-placeholder-card {
    padding: 20px 16px;
  }
}

@media (max-width: 992px) {
  .belegung-page-header,
  .belegung-subpage-header,
  .belegung-toolbar-card,
  .belegung-data-section {
    padding: 16px;
  }

  .belegung-subpage-top {
    width: 100%;
  }

  .belegung-page-actions {
    justify-content: flex-start;
  }

  .belegung-page-actions,
  .belegung-select-row {
    width: 100%;
  }

  .belegung-page-actions .btn,
  .belegung-period-select,
  .belegung-date-input,
  .belegung-today-btn {
    width: 100%;
    max-width: 100%;
  }

  table.belegung-room-table {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    margin-right: 0;
  }

  table.belegung-room-table > tbody {
    display: block !important;
    width: 100% !important;
  }

  table.belegung-room-table > tbody > tr.belegung-room-card {
    display: block !important;
    width: 100% !important;
  }

  table.belegung-room-table
    > tbody
    > tr.belegung-room-card
    > td.belegung-room-label,
  table.belegung-room-table
    > tbody
    > tr.belegung-room-card
    > td.belegung-room-content,
  table.belegung-room-table > tbody > tr.belegung-room-card > td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
  }

  table.belegung-room-table
    > tbody
    > tr.belegung-room-card
    > td.belegung-room-label {
    min-width: 0;
    border-bottom: 1px solid #dbe4ee;
    min-height: 0;
    justify-content: flex-start;
    padding: 14px 16px !important;
    text-align: left;
    border-radius: 13px 13px 0 0;
  }

  table.belegung-room-table
    > tbody
    > tr.belegung-room-card
    > td.belegung-room-content {
    width: 100% !important;
  }

  .belegung-daily-view .content-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .belegung-daily-view .content-block span.beginn,
  .belegung-daily-view .content-block span.ende,
  .belegung-daily-view .content-block span.name {
    min-height: 0;
  }

  .belegung-daily-view .content-block span.beginn,
  .belegung-daily-view .content-block span.ende {
    padding-bottom: 8px;
  }

  .belegung-daily-view .content-block span.name {
    padding-top: 0;
    padding-bottom: 6px;
    font-size: 16px;
  }

  .belegung-day-actions {
    justify-content: flex-start;
    padding-top: 0;
    background: transparent;
  }
}

@media (max-width: 760px) {
  .belegung-page-title {
    font-size: 22px;
  }

  .belegung-page-subtitle,
  .belegung-section-subtitle {
    font-size: 13px;
  }

  .belegung-section-title {
    font-size: 20px;
  }

  .belegung-tabs-nav {
    padding: 0 10px;
  }

  .belegung-tabs-shell .tab-content > .tab-pane {
    padding: 10px;
  }

  .belegung-data-table,
  .belegung-data-table tbody,
  .belegung-data-table tr,
  .belegung-data-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
  }

  .belegung-data-table {
    display: block;
    border-collapse: separate;
    border-spacing: 0;
  }

  .belegung-data-table thead {
    display: none;
  }

  .belegung-data-table tbody {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .belegung-data-row {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }

  .belegung-data-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
  }

  .belegung-data-table td::before {
    content: attr(data-label);
    flex: 0 0 104px;
    max-width: 104px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .belegung-data-table td:last-child {
    border-bottom: none;
  }

  .belegung-actions-cell {
    display: block !important;
    padding-top: 10px !important;
    border-bottom: none !important;
  }

  .belegung-actions-cell::before {
    display: none;
  }

  .belegung-inline-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .belegung-inline-actions .btn {
    width: 100%;
  }

  .belegung-room-content .belegung-occupancy-item {
    flex-direction: row;
    align-items: stretch;
  }

  .belegung-room-content
    ul.belegung-occupancy-list
    li.belegung-occupancy-item
    > div.name {
    width: calc(100% - 82px);
  }

  .belegung-room-content
    ul.belegung-occupancy-list
    li.belegung-occupancy-item
    > div.grenzen {
    width: 74px;
    flex: 0 0 74px;
  }

  .belegung-occupancy-action .belegung-room-action-btn,
  .belegung-lockroom-btn {
    width: 100%;
  }

  .belegung-quickedit-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .rooms-container {
    padding: 14px;
  }

  .belegung-room-label {
    padding: 12px 14px !important;
    font-size: 15px;
  }

  .room-number-box {
    width: 100%;
    min-width: 0;
  }

  .room-number-box p {
    font-size: 22px;
  }

  .room-details h2 {
    font-size: 16px;
  }

  .belegung-day-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .belegung-day-actions .edit-contact-btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  .belegung-day-actions .age-label {
    width: 100%;
  }

  .belegung-day-actions .age-label .label {
    display: inline-block;
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .belegung-room-label {
    padding: 12px 10px !important;
    font-size: 14px;
  }

  .belegung-room-content {
    padding: 10px !important;
  }

  .belegung-room-content .belegung-occupancy-item {
    flex-direction: column;
  }

  .belegung-room-content
    ul.belegung-occupancy-list
    li.belegung-occupancy-item
    > div.name,
  .belegung-room-content
    ul.belegung-occupancy-list
    li.belegung-occupancy-item
    > div.grenzen {
    width: 100%;
    flex: none;
  }

  .belegung-room-content
    ul.belegung-occupancy-list
    li.belegung-occupancy-item
    > div.grenzen {
    text-align: left;
  }
}

/* ==============================================
   RECEIPTS — Responsive / Mobile
   ============================================== */

/* --- Page header: title + action buttons --- */
.receipts-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.receipts-page-header h1 {
  margin: 0 !important;
  flex: 1 1 auto;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
}
.receipts-page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.receipts-page-header-actions .btn {
  white-space: nowrap;
  min-height: 38px;
}

/* --- Scoped button look for header + filter bar --- */
.receipts-page-header-actions .btn,
.receipts-filter-actions .btn {
  border-radius: 8px !important;
  font-size: 13px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  line-height: 1.4;
  text-shadow: none;
  background-image: none;
  box-sizing: border-box;
}
.receipts-page-header-actions .btn-primary,
.receipts-filter-actions .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3) !important;
}
.receipts-page-header-actions .btn-primary:hover,
.receipts-filter-actions .btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
  transform: translateY(-1px);
}
.receipts-page-header-actions .btn-default,
.receipts-filter-actions .btn-default {
  background: #f8f9fb !important;
  color: #4a5568 !important;
  border: 1px solid #e0e5ec !important;
  box-shadow: none !important;
}
.receipts-page-header-actions .btn-default:hover,
.receipts-filter-actions .btn-default:hover {
  background: #eef2f7 !important;
  border-color: #3b82f6 !important;
  color: #3b82f6 !important;
}
.receipts-page-header-actions .btn-warning,
.receipts-filter-actions .btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3) !important;
}
.receipts-page-header-actions .btn-warning:hover,
.receipts-filter-actions .btn-warning:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4) !important;
  transform: translateY(-1px);
}
.receipts-page-header-actions .btn-info,
.receipts-filter-actions .btn-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3) !important;
}
.receipts-page-header-actions .btn-info:hover,
.receipts-filter-actions .btn-info:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
  transform: translateY(-1px);
}
.receipts-page-header-actions .btn-danger,
.receipts-filter-actions .btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3) !important;
}
.receipts-page-header-actions .btn-danger:hover,
.receipts-filter-actions .btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
  transform: translateY(-1px);
}

/* --- Filter bar --- */
.receipts-filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 6px;
  width: 100%;
  box-sizing: border-box;
}
.receipts-filter-actions #inlinesearch_field {
  width: 140px;
  margin: 0 !important;
  order: -1;
}

/* --- Filter period label --- */
.receipts-filter-period {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

/* Hide mobile month-select on desktop — shown only at ≤576px */
.beleg-filter-select {
  display: none;
}

/* Modal footer: flex so no pull-left floats are needed */
.receipts-modal-footer {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.receipts-modal-footer .btn {
  margin: 0 !important;
  float: none !important;
}

/* Inlinesearch searchmore alert: flex row, button below on mobile */
.receipts-searchmore-alert {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  line-height: 1.5 !important;
  padding: 10px 14px;
}
.receipts-searchmore-alert > span {
  flex: 1 1 200px;
}
.receipts-searchtotal-btn {
  flex-shrink: 0;
  float: none !important;
  white-space: nowrap;
}

/* --- Table scroll wrapper --- */
.receipts-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
}

/* --- Bottom action buttons --- */
.receipts-bottom-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 12px;
}

/* ---- Tablet (≤ 992px): shrink inputs slightly ---- */
@media (max-width: 992px) {
  input.form-control.beleg-element,
  select.form-control.beleg-element {
    font-size: 11px;
  }
  .receipts-filter-actions #inlinesearch_field {
    width: 120px;
  }
}

/* ---- Mobile (≤ 760px): stack header & filter bar ---- */
@media (max-width: 760px) {
  .receipts-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .receipts-page-header-actions {
    width: 100%;
    flex-direction: column;
  }
  .receipts-page-header-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Tabs */
  #belege_tab .nav-tabs {
    display: flex;
    flex-wrap: wrap;
  }
  #belege_tab .nav-tabs > li > a {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Filter period buttons wrap */
  ul.beleg-filter-zeitauswahl {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  ul.beleg-filter-zeitauswahl li {
    float: none;
  }

  /* belegfiltercontent: force full-width column layout */
  #belegfiltercontent {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  #belegfiltercontent > .receipts-filter-period,
  #belegfiltercontent > .receipts-filter-actions {
    width: 100%;
  }

  /* Filter actions bar: full-width stacked */
  .receipts-filter-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .receipts-filter-actions > .btn {
    width: 100%;
    text-align: center;
  }
  .receipts-filter-actions #inlinesearch_field {
    width: 100%;
    order: -1;
  }

  /* Bottom buttons */
  .receipts-bottom-actions {
    flex-direction: column;
  }
  .receipts-bottom-actions > .btn {
    width: 100%;
    text-align: center;
  }
}

/* --- Mobile pagination (hidden on desktop) --- */
.receipts-mobile-pagination {
  display: none;
}

/* ---- Small mobile (≤ 576px): card-style table rows ---- */
@media (max-width: 576px) {
  .receipts-table-scroll {
    overflow-x: visible;
    width: 100%;
  }
  .receipts-table-scroll > table.table-beleg,
  .receipts-table-scroll > table.table-beleg > tbody,
  .receipts-table-scroll > table.table-beleg > tbody > tr.beleg-line {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }
  .receipts-table-scroll > table.table-beleg > tbody > tr.beleg-line {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  table.table-beleg {
    border: 0 !important;
    min-width: unset !important;
  }
  table.table-beleg thead {
    display: none;
  }
  table.table-beleg,
  table.table-beleg tbody {
    display: block;
    width: 100%;
  }
  tr.beleg-line {
    display: block;
    border: 1px solid #d7e0ea !important;
    border-radius: 10px !important;
    margin-bottom: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(1, 83, 152, 0.08);
  }
  tr.beleg-line.live-own-edit {
    border-color: #8bc34a !important;
    box-shadow: 0 2px 8px rgba(139, 195, 74, 0.25) !important;
  }
  tr.beleg-line.live-foreign-edit {
    border-color: rgba(160, 46, 46, 0.5) !important;
    box-shadow: 0 2px 8px rgba(160, 46, 46, 0.15) !important;
  }

  /* progressline = card header bar */
  table.table-beleg td.progressline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #015398 0%, #1565c0 100%);
    padding: 8px 12px !important;
    border-bottom: 0 !important;
    border-radius: 9px 9px 0 0;
    gap: 8px;
  }
  table.table-beleg td.progressline::before {
    display: none;
  }
  table.table-beleg td.progressline input[name="belegnummer"] {
    background: transparent !important;
    border: 0 !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    width: auto;
    padding: 0 !important;
    pointer-events: none;
  }
  div.live-edit-autor {
    position: static;
    margin: 0;
  }

  /* all other tds */
  table.table-beleg td {
    display: flex;
    align-items: center;
    padding: 8px 12px !important;
    border-bottom: 1px solid #eef2f7 !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    gap: 8px;
    min-height: 44px;
  }
  table.table-beleg td:last-child {
    border-bottom: 0 !important;
  }
  table.table-beleg td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    min-width: 115px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  /* inputs fill remaining space */
  table.table-beleg td input.form-control.beleg-element,
  table.table-beleg td select.form-control.beleg-element {
    width: 100% !important;
    flex: 1;
    min-width: 0;
  }
  table.table-beleg td span.input-symbol-euro {
    flex: 1;
    width: 100%;
    display: flex;
  }
  table.table-beleg td span.input-symbol-euro input {
    width: 100% !important;
  }
  .input-symbol-euro:after {
    display: none;
  }

  /* autosuggest results positioning */
  div.autosuggest div.results {
    width: 100%;
    position: relative;
    right: auto;
  }

  /* details / action buttons cell */
  table.table-beleg td.detailsline {
    flex-wrap: wrap;
    gap: 6px;
  }
  table.table-beleg td.detailsline > a.btn {
    flex: 1 1 auto;
    text-align: center;
    min-height: 36px;
  }

  /* labels cell */
  table.table-beleg td.labelline {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  table.table-beleg td.labelline > span.label {
    white-space: normal;
  }

  /* status cell */
  table.table-beleg td.statusline {
    flex-wrap: wrap;
    gap: 4px;
  }
  span.label.label-beleg {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
  }

  /* bottom actions: full width stacked */
  .receipts-bottom-actions {
    flex-direction: column;
  }
  .receipts-bottom-actions > .btn {
    width: 100%;
  }

  /* ---- Belege-Filtern: replace button list with select on mobile ---- */
  ul.beleg-filter-zeitauswahl {
    display: none !important;
  }
  .beleg-filter-select {
    display: block !important;
    width: 100%;
    border-radius: 8px !important;
    border: 1px solid #e0e5ec !important;
    padding: 10px 36px 10px 12px;
    font-size: 14px;
    color: #334155;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
    min-height: 44px;
    height: auto !important;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23015398' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
  }

  /* ---- Totals rows: precise card layout ---- */
  /* Shared card chrome */
  #totals tr.beleg-line,
  #totals1 tr.beleg-line {
    background: #eef5ff !important;
    border: 1px solid #b3d0ef !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(1, 83, 152, 0.1) !important;
    overflow: hidden;
    margin-bottom: 8px;
    padding: 0 !important;
  }
  /* Suppress ::before data-labels for all total cells */
  #totals td::before,
  #totals1 td::before {
    display: none !important;
  }

  /* #totals (status): each tr = flex row, only .labelline + .statusline visible */
  #totals tr.beleg-line {
    display: flex !important;
  }
  #totals td:not(.labelline):not(.statusline) {
    display: none !important;
  }
  #totals td.labelline {
    display: flex !important;
    flex: 1;
    align-items: center;
    padding: 10px 14px !important;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-align: left !important;
    border: 0 !important;
  }
  #totals td.statusline {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 14px !important;
    border: 0 !important;
  }
  #totals td.statusline input.form-control.beleg-element {
    width: auto !important;
    flex: 0 0 auto !important;
    text-align: right;
    background: transparent !important;
    border: 0 !important;
    font-weight: 700;
    font-size: 15px;
    color: #015398 !important;
    padding: 0 !important;
    pointer-events: none;
  }
  #totals td.statusline span.input-symbol-euro {
    width: auto !important;
  }

  /* #totals1 (Betrag+Zahlbetrag): 2-column grid */
  /* td[4] = "Total Betrag:"  td[5] = value */
  /* td[7] = "Total Zahlbetrag:"  td[8] = value */
  #totals1 tr.beleg-line {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }
  /* Hide all spacer cells */
  #totals1 td:nth-child(1),
  #totals1 td:nth-child(2),
  #totals1 td:nth-child(3),
  #totals1 td:nth-child(6),
  #totals1 td:nth-child(9),
  #totals1 td:nth-child(10),
  #totals1 td:nth-child(11),
  #totals1 td:nth-child(12) {
    display: none !important;
  }
  /* Label cells — left column */
  #totals1 td:nth-child(4),
  #totals1 td:nth-child(7) {
    display: flex !important;
    align-items: center;
    padding: 10px 14px !important;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-align: left !important;
    border-right: 1px solid #b3d0ef !important;
    border-bottom: 1px solid #b3d0ef !important;
    border-top: 0 !important;
    border-left: 0 !important;
  }
  #totals1 td:nth-child(7) {
    border-bottom: 0 !important;
  }
  /* Value cells — right column */
  #totals1 td:nth-child(5),
  #totals1 td:nth-child(8) {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 14px !important;
    border-bottom: 1px solid #b3d0ef !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
  #totals1 td:nth-child(8) {
    border-bottom: 0 !important;
  }
  /* Value inputs — clean read-only look */
  #totals1 td:nth-child(5) input.form-control.beleg-element,
  #totals1 td:nth-child(8) input.form-control.beleg-element {
    width: auto !important;
    flex: 0 0 auto !important;
    text-align: right;
    background: transparent !important;
    border: 0 !important;
    font-weight: 700;
    font-size: 15px;
    color: #015398 !important;
    padding: 0 !important;
    pointer-events: none;
  }
  #totals1 td:nth-child(5) span.input-symbol-euro,
  #totals1 td:nth-child(8) span.input-symbol-euro {
    width: auto !important;
    flex: 0 0 auto;
  }

  /* Zusammenfassung table: card layout */
  #summerizecontent table.table-beleg-zusammenfassung {
    border: 0 !important;
    display: block;
    width: 100%;
    margin-bottom: 16px;
  }
  #summerizecontent table.table-beleg-zusammenfassung thead {
    display: none;
  }
  #summerizecontent table.table-beleg-zusammenfassung tbody {
    display: block;
    width: 100%;
  }
  #summerizecontent table.table-beleg-zusammenfassung tr {
    display: block;
    border: 1px solid #d7e0ea;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(1, 83, 152, 0.07);
  }
  /* Gesamtsumme rows get highlighted styling */
  #summerizecontent
    table.table-beleg-zusammenfassung
    tr[style*="background-color"] {
    border-color: #015398 !important;
    background: #eef5ff !important;
  }
  #summerizecontent table.table-beleg-zusammenfassung td {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px !important;
    border-bottom: 1px solid #eef2f7 !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    font-size: 13px;
    gap: 10px;
    text-align: left !important;
  }
  #summerizecontent table.table-beleg-zusammenfassung td:last-child {
    border-bottom: 0 !important;
  }
  #summerizecontent table.table-beleg-zusammenfassung td::before {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    min-width: 90px;
  }
  #summerizecontent table.table-beleg-zusammenfassung td:nth-child(1)::before {
    content: "Monat";
  }
  #summerizecontent table.table-beleg-zusammenfassung td:nth-child(2)::before {
    content: "Status";
  }
  #summerizecontent table.table-beleg-zusammenfassung td:nth-child(3)::before {
    content: "Betrag";
  }
  #summerizecontent table.table-beleg-zusammenfassung td:nth-child(4)::before {
    content: "Zahlbetrag";
  }
  #summerizecontent table.table-beleg-zusammenfassung td:nth-child(3),
  #summerizecontent table.table-beleg-zusammenfassung td:nth-child(4) {
    font-weight: 700;
    color: #015398;
  }
  #summerizecontent table.table-beleg-zusammenfassung strong {
    color: #1a2233;
    font-size: 13px;
  }

  /* Mobile pagination */
  .receipts-mobile-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 0 4px;
    margin-top: 4px;
  }
  .receipts-mobile-pagination .btn {
    flex: 0 0 auto;
    border-radius: 8px !important;
    padding: 9px 18px !important;
    font-size: 13px;
    font-weight: 500;
    min-width: 90px;
    text-align: center;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25) !important;
    transition: all 0.2s ease;
  }
  .receipts-mobile-pagination .btn.disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    pointer-events: none;
    opacity: 1;
  }
  .receipts-mobile-pagination .btn:not(.disabled):hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    transform: translateY(-1px);
  }
  .receipts-mobile-page-indicator {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
  }
}

/* ==============================================
   DRUCK-MANAGER — Responsive
   ============================================== */

.print-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.print-page-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.print-page-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.print-page-header-actions .btn.btn-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.25);
  transition: all 0.18s ease;
  text-shadow: none;
}

.print-page-header-actions .btn.btn-success:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
  color: #fff;
}

.print-tabbable .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid #e8ecf1;
  margin-bottom: 0;
}

.print-tabbable .nav-tabs > li > a {
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
}

.print-form-card {
  margin-top: 20px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  max-width: 480px;
}

.print-form-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8ecf1;
}

.print-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.print-form-row label {
  min-width: 160px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin: 0;
  flex-shrink: 0;
}

.print-required {
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

.print-form-row .form-control {
  flex: 1;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 7px 12px;
  font-size: 13px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.print-form-row .form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  outline: none;
}

.print-form-actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e8ecf1;
}

.print-form-actions .btn.btn-primary,
.print-form-actions input[type="submit"].btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
  transition: all 0.18s ease;
  text-shadow: none;
  cursor: pointer;
}

.print-form-actions .btn.btn-primary:hover,
.print-form-actions input[type="submit"].btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

@media (max-width: 760px) {
  .print-page-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .print-page-header h1 {
    font-size: 18px;
  }
  .print-page-header-actions {
    width: 100%;
  }
  .print-page-header-actions .btn.btn-success {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .print-form-card {
    max-width: 100%;
    padding: 16px;
  }
  .print-form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .print-form-row label {
    min-width: unset;
  }
  .print-form-row .form-control {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .print-tabbable .nav-tabs > li > a {
    font-size: 12px;
    padding: 7px 10px;
  }
  .print-form-actions .btn.btn-primary,
  .print-form-actions input[type="submit"].btn-primary {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* ==============================================
   COUPONS / INTERNET-ZUGÄNGE — Responsive
   ============================================== */

.coupons-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.coupons-page-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.coupons-page-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.coupons-page-header-actions .btn.btn-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.25);
  transition: all 0.18s ease;
  text-shadow: none;
}

.coupons-page-header-actions .btn.btn-success:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
  color: #fff;
}

.coupons-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.coupons-table-scroll .table-striped {
  min-width: 600px;
}

.coupons-data-table {
  width: 100%;
  margin-bottom: 0;
}

.coupons-data-table .coupons-th-avatar,
.coupons-data-table .coupons-td-avatar {
  width: 40px;
  min-width: 40px;
}

.coupons-data-table .coupons-th-select,
.coupons-data-table .coupons-td-select {
  width: 56px;
  min-width: 56px;
  padding-left: 8px;
  padding-right: 12px;
  text-align: center;
  vertical-align: middle;
}

.coupons-select-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 32px;
}

.coupons-select-cell .selector.person-handler {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0;
}

.coupons-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 4px;
  border-top: 1px solid #e8ecf1;
}

.coupons-pagination-server .pagination {
  margin: 0;
}

.coupons-bottom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.coupons-bottom-controls .btn {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
}

.coupons-bottom-controls .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

.coupons-bottom-controls .btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #fff;
}

/* Mobile pagination */
.coupons-mobile-pagination {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 4px;
  padding: 8px 0;
}

.coupons-mobile-page-indicator {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.coupons-mobile-pagination .btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  color: #fff;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
  transition: all 0.18s ease;
}

.coupons-mobile-pagination .btn.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.coupons-mobile-pagination .btn:not(.disabled):hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .coupons-page-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .coupons-page-header h1 {
    font-size: 18px;
  }
  .coupons-page-header-actions {
    width: 100%;
  }
  .coupons-page-header-actions .btn.btn-success {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .coupons-table-scroll {
    min-width: 0;
  }
  .coupons-data-table .coupons-th-select,
  .coupons-data-table .coupons-td-select {
    width: auto;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .coupons-bottom-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .coupons-bottom-controls {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  /* Card layout for rows */
  .coupons-table-scroll table.table-striped thead {
    display: none;
  }
  .coupons-table-scroll table.table-striped {
    min-width: 0;
  }
  .coupons-table-scroll table.table-striped tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  .coupons-table-scroll table.table-striped tbody td {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    border: none;
    font-size: 13px;
  }
  .coupons-table-scroll table.table-striped tbody td[data-label]::before {
    content: attr(data-label);
    flex-shrink: 0;
    min-width: 110px;
    font-weight: 700;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 1px;
  }
  /* Avatar cell: center the image without a label */
  .coupons-table-scroll table.table-striped tbody td:first-child {
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .coupons-table-scroll table.table-striped tbody td:first-child::before {
    display: none;
  }
  /* Checkbox cell */
  .coupons-table-scroll table.table-striped tbody td:last-child {
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
  }
  .coupons-table-scroll table.table-striped tbody td:last-child::before {
    display: none;
  }
  .coupons-mobile-pagination {
    display: flex;
  }
  .coupons-bottom-controls .btn-group {
    width: 100%;
  }
  .coupons-bottom-controls .btn-group > .btn {
    width: 100%;
  }
  .coupons-bottom-controls .btn-default,
  .coupons-bottom-controls .btn-primary {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* =============================================
   INVENTORY TABLE & PAGINATION
   ============================================= */

.inventory-tab-pane {
  padding: 0;
}

/* --- Table --- */
.inventory-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e8ecf1;
  margin-bottom: 0;
}

table.inventory-table {
  margin-bottom: 0;
  width: 100%;
  border-collapse: collapse;
}

table.inventory-table thead tr {
  background: #f8f9fb;
}

table.inventory-table thead th {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid #e8ecf1;
  white-space: nowrap;
}

table.inventory-table tbody tr.inventory-row td {
  padding: 11px 14px;
  font-size: 13px;
  color: #334155;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

table.inventory-table tbody tr.inventory-row:last-child td {
  border-bottom: none;
}

table.inventory-table tbody tr.inventory-row:hover {
  background: #f8fbff;
}

.inventory-zustand-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

td.inventory-row-actions {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Footer / Pagination --- */
.inventory-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid #e8ecf1;
  background: #fafbfc;
  border-radius: 0 0 10px 10px;
  padding: 12px 16px;
}

.inventory-pagination-wrap {
  flex: 1;
}

.inventory-pagination {
  display: inline-block;
}

.inventory-pagination-arrow {
  display: none;
}

.inventory-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.inventory-pagination ul li {
  display: inline-block;
}

.inventory-pagination ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  background: #f8f9fb;
  border: 1px solid #e8ecf1;
  transition: all 0.2s ease;
}

.inventory-pagination ul li a:hover {
  background: #e0e7ff;
  color: #3b82f6;
  border-color: #3b82f6;
}

.inventory-pagination ul li.inventory-page-active a {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
  pointer-events: none;
}

.inventory-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.inventory-paging-btn {
  border-radius: 8px !important;
  font-size: 13px;
  padding: 7px 14px !important;
  border: 1px solid #e0e5ec !important;
  background: #fff !important;
  color: #4a5568 !important;
  transition: all 0.2s ease;
}

.inventory-paging-btn:hover {
  background: #f0f4ff !important;
  border-color: #3b82f6 !important;
}

@media (max-width: 760px) {
  table.inventory-table thead {
    display: none;
  }

  table.inventory-table tbody tr.inventory-row {
    display: block;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 8px 0;
  }

  table.inventory-table tbody tr.inventory-row td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 14px;
  }

  table.inventory-table tbody tr.inventory-row td:last-child {
    border-bottom: none;
  }

  table.inventory-table tbody tr.inventory-row td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex: 0 0 45%;
  }

  td.inventory-row-actions {
    justify-content: flex-end;
  }

  td.inventory-row-actions::before {
    display: none;
  }

  .inventory-footer {
    padding: 14px;
  }

  .inventory-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .inventory-pagination-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 8px 10px;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #f8fafc;
    box-sizing: border-box;
  }

  .inventory-pagination ul {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .inventory-pagination ul li {
    flex: 0 0 auto;
  }

  .inventory-pagination ul li.inventory-mobile-hidden {
    display: none;
  }

  .inventory-pagination ul li a {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11px;
  }

  .inventory-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #ffffff;
    color: #334155 !important;
    text-decoration: none !important;
    flex: 0 0 auto;
  }

  .inventory-pagination-prev {
    margin-right: 8px;
  }

  .inventory-pagination-next {
    margin-left: 8px;
  }

  .inventory-pagination-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
  }

  .inventory-footer-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .inventory-footer-actions .btn,
  .inventory-footer-actions .btn-group {
    width: 100%;
  }
}
