
/* KALVASS 0.28.28 – gemeinsame Hospitality App-Shell */
:root{--kv-shell-navy:#102a43;--kv-shell-gold:#c9a34a;--kv-shell-bg:#f7f9fb;--kv-shell-line:#e3e9ee;--kv-shell-text:#17212b;--kv-shell-muted:#687684;--kv-shell-white:#fff}
.kv-shellbar{display:flex;align-items:center;gap:18px;justify-content:space-between;margin:0 0 22px;padding:12px 14px;background:var(--kv-shell-white);border:1px solid var(--kv-shell-line);border-radius:16px;box-shadow:0 4px 18px rgba(16,42,67,.05);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.kv-shell-brand{display:flex;align-items:center;gap:10px;min-width:max-content;color:var(--kv-shell-navy)}
.kv-shell-mark{position:relative;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--kv-shell-navy);color:#fff;font-weight:950;font-size:19px;line-height:1;overflow:hidden}
.kv-shell-mark:before{content:"";position:absolute;left:7px;right:7px;top:7px;height:3px;border-radius:3px;background:var(--kv-shell-gold);transform:skewX(-28deg)}
.kv-shell-mark span{margin-top:5px}
.kv-shell-brand strong{display:block;font-size:15px;letter-spacing:.055em;line-height:1.1}.kv-shell-brand small{display:block;margin-top:3px;color:var(--kv-shell-muted);font-size:10px;letter-spacing:.035em;text-transform:uppercase}
.kv-shell-modules{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-width:0;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;scroll-padding-inline:4px;scrollbar-width:thin;padding:2px}
.kv-shell-module{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 13px;border:1px solid #d7e0e6;border-radius:999px;background:#fff;color:#52616e!important;text-decoration:none!important;font-size:12px;font-weight:850;white-space:nowrap;transition:.15s ease}
.kv-shell-module:hover{border-color:#b8c6d0;background:#f8fafb;color:var(--kv-shell-navy)!important}
.kv-shell-module.is-active{background:var(--kv-shell-navy);border-color:var(--kv-shell-navy);color:#fff!important;box-shadow:0 4px 12px rgba(16,42,67,.16)}
.kv-shell-module.is-disabled{opacity:.38;cursor:default;background:#f7f9fa}
.kv-shell-pagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 20px}.kv-shell-pagehead h1{margin:0;color:var(--kv-shell-navy);font-size:clamp(27px,3vw,36px);line-height:1.12}.kv-shell-pagehead p{margin:5px 0 0;color:var(--kv-shell-muted)}
@media(max-width:820px){.kv-shellbar{align-items:flex-start;flex-direction:column;gap:10px;padding:11px 12px;margin-bottom:16px}.kv-shell-modules{width:100%;justify-content:flex-start}.kv-shell-module{min-height:34px;padding:0 12px}.kv-shell-pagehead{display:block}}
@media(max-width:600px){.kv-shellbar{border-radius:12px}.kv-shell-brand small{font-size:9px}.kv-shell-mark{width:34px;height:34px}.kv-shell-pagehead h1{font-size:28px}}
@media(min-width:701px){.kv-app-workspace>.kv-shellbar .kv-shell-brand{display:none}.kv-app-workspace>.kv-shellbar{display:block}.kv-app-workspace>.kv-shellbar .kv-shell-modules{width:100%}}

/* 0.28.30 – KALVASS UI Standard 1.0
   Navigation: navy. Tariffs only: Start=green, Plus=silver, Pro=gold. */
:root{--kv-plan-start:#3f7d55;--kv-plan-plus:#a9b1b8;--kv-plan-pro:#b8874f}
.kv-plan-start{--kv-plan-color:var(--kv-plan-start)}.kv-plan-plus{--kv-plan-color:var(--kv-plan-plus)}.kv-plan-pro{--kv-plan-color:var(--kv-plan-pro)}
.kv-plan-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--kv-plan-color);border-radius:999px;padding:5px 9px;color:var(--kv-shell-navy);background:#fff;font-weight:800}.kv-plan-badge:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--kv-plan-color)}
@media(max-width:820px){.kv-shellbar{box-sizing:border-box;width:100%;min-height:126px;margin:0!important;padding:12px 10px 10px!important;border-radius:12px 12px 0 0!important;gap:10px}.kv-shell-brand{height:38px}.kv-shell-modules{height:40px;min-height:40px}.kv-shell-module{height:36px;min-height:36px;padding:0 14px}}

/* 0.28.32 – KALVASS App Layout 1.0: one hierarchy for Gastro, KDS and Pickup */
.kv-app-layout{box-sizing:border-box;display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;max-width:1600px!important;width:100%!important;margin:22px auto 40px!important;background:#f7f9fb;border:1px solid #e3e9ee;border-radius:22px;overflow:hidden;box-shadow:0 16px 45px rgba(16,42,67,.09)}
.kv-app-layout *{box-sizing:border-box}.kv-app-side{min-width:0;background:#fff;border-right:1px solid #e3e9ee;padding:22px 14px;display:flex;flex-direction:column}.kv-app-side-brand{display:flex;align-items:center;gap:10px;padding:0 8px 18px;color:#102a43}.kv-app-side-brand strong{display:block;font-size:15px;letter-spacing:.055em;line-height:1.1}.kv-app-side-brand small{display:block;margin-top:3px;color:#687684;font-size:10px;letter-spacing:.035em;text-transform:uppercase}.kv-app-side-mark{position:relative;display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:#102a43;color:#fff;font-weight:950;font-size:19px;overflow:hidden}.kv-app-side-mark i{position:absolute;left:7px;right:7px;top:7px;height:3px;border-radius:3px;background:#c9a34a;transform:skewX(-28deg)}.kv-app-side-mark b{margin-top:5px}.kv-app-side-module{margin:0 4px 10px;padding:10px 12px;border-radius:9px;background:#edf3f8;color:#102a43;font-weight:850}.kv-app-side-nav{display:grid!important;gap:3px!important;padding-top:8px!important;border-top:1px solid #edf1f4!important}.kv-app-side-nav a,.kv-app-side-nav span{display:block;padding:9px 12px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#536270!important;text-decoration:none!important;font-size:13px!important;font-weight:700!important;white-space:normal!important}.kv-app-side-nav a:hover,.kv-app-side-nav a.active{background:#edf3f8!important;color:#102a43!important}.kv-app-side-foot{margin-top:auto;padding:14px 10px 2px;color:#687684;font-size:11px;line-height:1.45}.kv-app-workspace{min-width:0;padding:28px!important}.kv-app-workspace>.kv-shellbar{margin:0 0 22px!important}.kv-app-mobile-nav{display:none!important}
/* KDS no longer owns a separate outer width/padding when hosted in App Layout */
.kv-kds.kv-app-layout{padding:0!important}.kv-kds-workspace{max-width:none!important;margin:0!important}.kv-kds-workspace>.kv-shellbar{margin-top:0!important}
@media(max-width:700px){.kv-app-layout{display:block!important;margin:0 auto 24px!important;border-radius:14px!important}.kv-app-side{display:none!important}.kv-app-workspace{padding:10px!important}.kv-app-workspace>.kv-shellbar{margin:0!important;border-radius:12px 12px 0 0!important;box-shadow:none!important}.kv-app-mobile-nav{display:flex!important;gap:6px;overflow-x:auto;padding:10px 12px;margin:0 0 16px;border-bottom:1px solid #e3e9ee;background:#fff;scrollbar-width:none}.kv-app-mobile-nav::-webkit-scrollbar{display:none}.kv-app-mobile-nav a{flex:0 0 auto;display:inline-flex;align-items:center;min-height:36px;padding:7px 11px;border-radius:9px;color:#536270!important;text-decoration:none!important;font-size:13px;font-weight:750;white-space:nowrap}.kv-app-mobile-nav a.active{background:#102a43;color:#fff!important}}


/* 0.29.00 – Navigation: wider sidebar + stronger, left-aligned section headings */
@media(min-width:701px){
  .kv-app-layout{grid-template-columns:242px minmax(0,1fr)!important}
  .kv-app-side{padding-left:14px;padding-right:14px}
}
.kv-app-side-nav .tkg-nav-section{
  margin:16px 0 6px!important;
  padding:7px 0!important;
  border-radius:0!important;
  color:#102a43!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:950!important;
  letter-spacing:.045em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
.kv-app-side-nav .tkg-nav-section:first-child{margin-top:4px!important}

/* 0.29.42 – Compact Desktop Body Standard
   Einheitliche Arbeitsdichte fuer alle KALVASS Cockpit-Bodybereiche.
   Sidebar/Produktshell bleiben unveraendert; Mobile bleibt unangetastet. */
@media(min-width:761px){
  .kv-app-workspace,.tkg-main{font-size:14px}
  .kv-app-workspace{padding:24px!important}
  .tkg-main{padding:24px!important}
  .kv-app-workspace>.kv-shellbar,.tkg-main>.kv-shellbar{margin-bottom:18px!important}

  .kv-shell-pagehead,.tkg-head{margin-bottom:18px!important;gap:12px}
  .kv-shell-pagehead h1,.tkg-head h1,.kv-kds-head h1{font-size:24px!important;line-height:1.15!important}
  .kv-shell-pagehead p,.tkg-head p{margin-top:8px!important;font-size:14px!important;line-height:1.4}
  .kv-app-workspace h2,.tkg-main h2{font-size:20px;line-height:1.2}

  .tkg-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:18px!important}
  .tkg-summary>div{min-height:70px;padding:12px 16px!important;display:flex;flex-direction:column;justify-content:center}
  .tkg-summary strong{font-size:22px!important;line-height:1.05}
  .tkg-summary span{font-size:13px;line-height:1.2}

  .tkg-order-manager-summary{gap:10px;margin-bottom:18px!important}
  .tkg-order-manager-summary>div{min-height:70px;padding:12px 16px!important;justify-content:center}
  .tkg-order-manager-summary strong{font-size:22px!important;line-height:1.05}
  .tkg-order-manager-summary span{font-size:13px;line-height:1.2}

  .tkg-tile,.tkg-editor-card,.tkg-order-card,.tkg-design-panel,.tkg-product-filters,.tkg-inline-editor,.tkg-table-editor,.tkg-form{padding:16px!important}
  .tkg-cardgrid{gap:12px}
  .tkg-metrics{margin:12px 0}

  .tkg-search,.tkg-order-toolbar{margin-bottom:12px}
  .tkg-search input,.tkg-form input:not([type="checkbox"]):not([type="radio"]),.tkg-form select,.tkg-filter-search input,.tkg-filter-row select,.tkg-inline-editor input,.tkg-inline-editor select,.tkg-table-editor input,.tkg-table-editor select{min-height:38px;height:38px;padding:7px 10px!important}
  .tkg-form textarea{padding:8px 10px!important}
  .tkg-btn{min-height:30px;padding:5px 10px!important;line-height:20px}

  .tkg-table th,.tkg-table td{height:40px;padding:8px 11px!important;vertical-align:middle}
  .tkg-list>div{min-height:40px;padding:8px 14px!important;align-items:center}

  .tkg-form{gap:12px}
  .tkg-inline-editor,.tkg-table-editor{gap:10px;margin-bottom:18px!important}
  .tkg-notice{margin-bottom:18px}
}

/* 0.29.43 – KPI compact row
   Kennzahl + Bezeichnung bleiben in ihrer bisherigen Schriftgroesse,
   stehen aber horizontal. Fuenf KPIs bleiben innerhalb der vorhandenen
   Cockpit-Bodybreite in einer Zeile. */
@media(min-width:1001px){
  .tkg-summary{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .tkg-summary>div{
    min-width:0!important;
    min-height:50px!important;
    height:50px!important;
    box-sizing:border-box!important;
    padding:8px 16px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:9px!important;
    white-space:nowrap;
  }
  .tkg-summary strong{
    display:inline-block!important;
    flex:0 0 auto;
    margin:0!important;
    font-size:22px!important;
    line-height:1!important;
  }
  .tkg-summary span{
    display:inline-block!important;
    min-width:0;
    margin:0!important;
    font-size:13px!important;
    line-height:1.15!important;
    white-space:nowrap;
  }
}

/* 0.29.46 – Desktop shell content alignment: weitere 5px nach oben */
@media(min-width:761px){
  .kv-app-workspace,.tkg-main{
    padding-top:4px!important;
  }
}

.kv-shell-user{display:flex;align-items:center;gap:10px;min-width:max-content;padding-left:14px;border-left:1px solid var(--kv-shell-line);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.kv-shell-usertext{display:flex;flex-direction:column;line-height:1.15}
.kv-shell-usertext strong{font-size:12px;color:var(--kv-shell-navy);white-space:nowrap}
.kv-shell-usertext small{margin-top:3px;font-size:10px;color:var(--kv-shell-muted);white-space:nowrap}
.kv-shell-useractions{display:flex;align-items:center;gap:7px}
.kv-shell-useractions a{display:inline-flex;align-items:center;min-height:30px;padding:0 9px;border:1px solid #d7e0e6;border-radius:999px;background:#fff;color:#52616e!important;text-decoration:none!important;font-size:11px;font-weight:800}
.kv-shell-useractions a:hover{border-color:#b8c6d0;color:var(--kv-shell-navy)!important}
@media(max-width:1100px){.kv-shellbar{flex-wrap:wrap}.kv-shell-user{margin-left:auto}}
@media(max-width:820px){.kv-shell-user{width:100%;margin-left:0;padding:10px 0 0;border-left:0;border-top:1px solid var(--kv-shell-line);justify-content:space-between}.kv-shell-useractions{margin-left:auto}}
@media(max-width:520px){.kv-shell-user{align-items:flex-start;gap:8px}.kv-shell-usertext strong{white-space:normal}.kv-shell-usertext small{white-space:normal}.kv-shell-useractions a{padding:0 8px}}


/* KALVASS 0.31.31 – Benutzerkontext sauber rechts im Shell-Header */
.kv-shellbar{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:14px;
}
.kv-shell-modules{
    min-width:0;
    width:100%;
    max-width:none;
}
.kv-shell-user{
    justify-self:end;
    margin-left:0;
    padding-left:14px;
    border-left:1px solid var(--kv-shell-line);
    width:auto;
    min-width:max-content;
}
.kv-shell-usertext{
    min-width:0;
}
.kv-shell-useractions{
    flex:0 0 auto;
}

/* In der KALVASS-App sitzt die Marke bereits links in der Seitenleiste.
   Dadurch bekommt die Modul-/Benutzerzeile mehr Platz. */
.kv-app-workspace>.kv-shellbar .kv-shell-brand{
    display:none;
}
.kv-app-workspace>.kv-shellbar{
    grid-template-columns:minmax(0,1fr) auto;
}

@media(max-width:900px){
    .kv-shellbar{
        grid-template-columns:minmax(0,1fr) auto;
    }
    .kv-shellbar .kv-shell-brand{
        display:none;
    }
    .kv-shell-user{
        width:auto;
        padding-left:12px;
        border-left:1px solid var(--kv-shell-line);
        border-top:0;
    }
}

@media(max-width:700px){
    .kv-shellbar,
    .kv-app-workspace>.kv-shellbar{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }
    .kv-shell-user{
        width:100%;
        padding:10px 0 0;
        border-left:0;
        border-top:1px solid var(--kv-shell-line);
        justify-content:space-between;
    }
}


/* KALVASS 0.31.32 – spezifischen Alt-Selektor überschreiben */
@media(min-width:701px){
    .kv-app-workspace>.kv-shellbar{
        display:grid!important;
        grid-template-columns:minmax(0,1fr) auto!important;
        align-items:center!important;
        gap:18px!important;
    }
    .kv-app-workspace>.kv-shellbar .kv-shell-modules{
        grid-column:1;
        grid-row:1;
        width:100%;
        min-width:0;
    }
    .kv-app-workspace>.kv-shellbar .kv-shell-user{
        grid-column:2;
        grid-row:1;
        justify-self:end;
        align-self:center;
        width:auto!important;
        margin:0!important;
        padding:0 0 0 16px!important;
        border-left:1px solid var(--kv-shell-line)!important;
        border-top:0!important;
    }
}

/* 0.33.31: visible tablet module chips */
.kv-shell-modules{box-sizing:border-box;scroll-padding-inline:16px;padding-inline:16px!important;}
.kv-shell-module.is-active{outline:2px solid rgba(20,58,94,.22);outline-offset:2px;}
