/* RUESS Hub 2.79.7 - Administration → Kosten IT. Eng gescoped (#itKostenView, #ikDialog, #ikToast); Knoepfe kompakt, keine Balken ueber die volle Breite. */
#itKostenView .ik-page { display: flex; flex-direction: column; gap: 14px; }
#itKostenView button { width: auto; margin: 0; min-height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; transform: none; box-shadow: none; }
#itKostenView button:hover { transform: none; }
#itKostenView .ik-btn { border: 1px solid #d7ddd0; background: #fff; color: #2f3a33; }
#itKostenView .ik-btn:hover { background: #f4f7f1; }
#itKostenView .ik-btn.primary { border-color: var(--primary, #a2bf13); background: var(--primary, #a2bf13); color: #1f2a06; }
#itKostenView .ik-btn:disabled { opacity: .55; cursor: not-allowed; }
#itKostenView .ik-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
#itKostenView .ik-kopf-aktionen { display: flex; gap: 8px; margin-left: auto; }
#itKostenView .ik-sub { display: block; color: #667174; font-size: 12.5px; margin: 0; }
#itKostenView .ik-banner { margin: 0; padding: 8px 12px; border-radius: 8px; font-size: 13px; border: 1px solid #e4e9e2; background: #f5f7f2; }
#itKostenView .ik-banner.danger { background: #fde8e6; border-color: #f3c3bd; color: #a42e24; }
#itKostenView .ik-banner.warn { background: #fdf1dc; border-color: #f0d6a6; color: #8a5300; }
#itKostenView .ik-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
#itKostenView .ik-kachel { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid #e4e9e2; border-radius: 10px; background: #fff; min-width: 0; }
#itKostenView .ik-kachel.haupt { border-color: var(--primary, #a2bf13); background: #f7fae9; }
#itKostenView .ik-kachel small { color: #667174; font-size: 12px; }
#itKostenView .ik-kachel strong { font-size: 22px; line-height: 1.2; color: #1f2a24; }
#itKostenView .ik-kachel span { color: #667174; font-size: 12px; }
#itKostenView .ik-lieferanten { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; align-items: start; }
#itKostenView .ik-karte { border: 1px solid #e4e9e2; border-radius: 10px; background: #fff; padding: 10px 12px; min-width: 0; }
#itKostenView .ik-karte > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding-bottom: 6px; border-bottom: 2px solid #eef2e8; margin-bottom: 4px; }
#itKostenView .ik-karte h3 { margin: 0; font-size: 15px; }
#itKostenView .ik-karte h4 { margin: 12px 0 6px; font-size: 14px; }
#itKostenView .ik-summe { font-weight: 700; font-size: 14px; white-space: nowrap; }
#itKostenView .ik-summe small { font-weight: 500; color: #667174; }
#itKostenView .ik-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
#itKostenView .ik-tabelle th { text-align: left; font-size: 11px; font-weight: 700; color: #7a8580; text-transform: uppercase; letter-spacing: .03em; padding: 4px 6px; }
#itKostenView .ik-tabelle td { padding: 5px 6px; border-top: 1px solid #f0f3ec; vertical-align: top; }
#itKostenView .ik-tabelle .zahl, #itKostenView .zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#itKostenView .ik-tabelle tr.ik-geplant td { color: #8a5300; }
#itKostenView .ik-tabelle tr.ik-beendet td { color: #9aa39a; text-decoration: line-through; }
#itKostenView .ik-aktion { white-space: nowrap; text-align: right; width: 1%; }
#itKostenView button.ik-icon { min-height: 24px; width: 26px; padding: 0; border: 1px solid transparent; background: transparent; color: #5f6a6c; font-size: 13px; line-height: 1; }
#itKostenView button.ik-icon:hover { border-color: #d7ddd0; background: #f4f7f1; }
#itKostenView button.ik-icon.gefahr:hover { color: #b3261e; border-color: #f0c2bc; background: #fff6f5; }
#itKostenView .ik-chip { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: 1px; border: 1px solid #e4e9e2; background: #f5f7f2; color: #5f6a6c; }
#itKostenView .ik-chip.ok { background: #eef6e2; border-color: #cfe3ae; color: #3f6b12; }
#itKostenView .ik-chip.warn { background: #fdf1dc; border-color: #f0d6a6; color: #8a5300; }
#itKostenView .ik-leer { color: #667174; }
#itKostenView .ik-balken-reihe { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; padding: 8px 0 0; }
#itKostenView button.ik-balken { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; min-height: 0; padding: 0; border: 0; background: transparent; color: #5f6a6c; font-weight: 500; }
#itKostenView .ik-balken-wert { font-size: 11px; }
#itKostenView .ik-balken-saeule { position: relative; flex: 1; width: 70%; max-width: 38px; display: flex; align-items: flex-end; }
#itKostenView .ik-balken-ist, #itKostenView .ik-balken-hoch { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px 4px 0 0; }
#itKostenView .ik-balken-ist { background: #9fc23a; }
#itKostenView .ik-balken-hoch { background: repeating-linear-gradient(45deg, #e3edc4, #e3edc4 4px, #f3f7e6 4px, #f3f7e6 8px); border: 1px dashed #b9d06a; }
#itKostenView button.ik-balken.an .ik-balken-ist { background: #5d8a12; }
#itKostenView button.ik-balken.an .ik-balken-monat { font-weight: 700; color: #1f2a24; }
#itKostenView .ik-balken-monat { font-size: 11px; white-space: nowrap; }
#itKostenView .ik-gruppen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
#itKostenView .ik-gruppen li { display: grid; grid-template-columns: minmax(140px, 260px) minmax(0, 1fr) 110px; gap: 10px; align-items: center; font-size: 13px; }
#itKostenView .ik-gruppe-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#itKostenView .ik-gruppe-balken { height: 8px; border-radius: 4px; background: #f0f3ec; overflow: hidden; }
#itKostenView .ik-gruppe-balken span { display: block; height: 100%; background: #9fc23a; }
@media (max-width: 620px) {
  #itKostenView .ik-lieferanten { grid-template-columns: 1fr; }
  #itKostenView .ik-balken-reihe { height: 130px; gap: 3px; }
  #itKostenView .ik-balken-wert { display: none; }
  #itKostenView .ik-gruppen li { grid-template-columns: minmax(0, 1fr) 90px; }
  #itKostenView .ik-gruppe-balken { display: none; }
}
/* Dialog (haengt an document.body) */
#ikDialog.ik-dialog { position: fixed; inset: 0; z-index: 1200; background: rgba(20, 26, 22, .45); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 12px; }
#ikDialog .ik-dialog-karte { width: min(560px, 100%); background: #fff; color: #2f3a33; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
#ikDialog .ik-dialog-kopf { display: flex; justify-content: space-between; align-items: center; }
#ikDialog label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 600; color: #4b5650; margin: 0; }
#ikDialog label.ik-check { flex-direction: row; align-items: center; gap: 6px; padding-top: 18px; font-weight: 500; }
#ikDialog input:not([type=checkbox]), #ikDialog select { width: 100%; min-height: 34px; padding: 4px 8px; border: 1px solid #d7ddd0; border-radius: 6px; font: inherit; font-weight: 400; background: #fff; color: inherit; box-sizing: border-box; }
#ikDialog input[type=checkbox] { width: auto; min-height: 0; }
#ikDialog .ik-zeile { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
#ikDialog .ik-dialog-fuss { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
#ikDialog button { width: auto; flex: 0 0 auto; min-height: 30px; margin: 0; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 600; box-shadow: none; transform: none; border: 1px solid #d7ddd0; background: #fff; color: #2f3a33; }
#ikDialog button.primary { border-color: var(--primary, #a2bf13); background: var(--primary, #a2bf13); color: #1f2a06; }
#ikDialog button.ik-zu { width: 28px; height: 28px; min-height: 0; padding: 0; }
#ikToast.ik-toast { position: fixed; right: 18px; bottom: 18px; z-index: 1300; max-width: 420px; padding: 10px 14px; border-radius: 8px; background: #2f3a33; color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; }
#ikToast.ik-toast.show { opacity: 1; }
#ikToast.ik-toast.danger { background: #a42e24; }
#ikToast.ik-toast.success { background: #3f6b12; }
/* Sidebar-Icon "Kosten IT" (Euro, gleicher Strichstil wie die anderen Menuepunkte) */
.sidebar-nav #itKostenNav::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2332323a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12'/%3E%3Cpath d='M4 14h9'/%3E%3Cpath d='M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2'/%3E%3C/svg%3E");
}
