/* DeLonghi PrimaDonna: layout and colors belong to the renderer, not the dashboard core. */
.dashboard-grid.grouped .dashboard-grid-group > .dashboard-tile.dashboard-template-coffee-machine-overview,
.dashboard-grid.kiosk-gridstack .grid-stack-item-content > .dashboard-tile.dashboard-template-coffee-machine-overview,
.app-card-size-preview > .dashboard-tile.dashboard-template-coffee-machine-overview[data-card-scalable] {
    box-sizing:border-box;height:100%;min-height:0;overflow:hidden;gap:0;padding:13px 14px;
    background:var(--card-background,linear-gradient(150deg,#182639 0%,#101c2d 58%,#0b1726 100%));
    border:1px solid #415775;border-radius:16px;color:var(--card-text-color,#f0f4fb);
    box-shadow:inset 0 1px 0 rgba(188,211,244,.08),0 9px 24px rgba(0,0,0,.16)
}
.dashboard-grid.grouped .dashboard-grid-group > .dashboard-tile.dashboard-template-coffee-machine-overview {
    min-height:18.8cm;height:18.8cm
}
.dashboard-template-coffee-machine-overview [data-dashboard-template-body] {height:100%;min-height:0;min-width:0}
.dashboard-template-coffee-machine-overview .coffee-card-layout {
    box-sizing:border-box;container:coffee-card / inline-size;
    display:flex;flex-direction:column;gap:8px;height:100%;min-height:0;min-width:0
}
.dashboard-template-coffee-machine-overview .coffee-card-svg {flex:none;width:20px;height:20px;display:block}
.dashboard-template-coffee-machine-overview .coffee-card-header {
    display:flex;align-items:center;gap:10px;flex:none;min-width:0;min-height:44px;
    padding:2px 5px 9px;border-bottom:1px solid #3e516a
}
.dashboard-template-coffee-machine-overview .coffee-card-header > .coffee-card-svg {
    width:27px;height:27px;color:#34c9ed
}
.dashboard-template-coffee-machine-overview .coffee-card-title {min-width:0;display:flex;flex-direction:column;gap:0}
.dashboard-template-coffee-machine-overview .coffee-card-title h3 {
    margin:0;color:var(--card-title-color,#f5f8ff);font-size:clamp(17px,2.7cqi,21px);font-weight:750;line-height:1.2
}
.dashboard-template-coffee-machine-overview .coffee-card-title small {
    color:var(--card-text-color,#b8cce3);font-size:clamp(11px,1.6cqi,13px);line-height:1.3
}
.dashboard-template-coffee-machine-overview .coffee-card-hero {
    display:grid;grid-template-columns:minmax(0,46%) minmax(0,54%);
    flex:1 1 170px;min-height:124px;min-width:0;overflow:hidden;
    border:1px solid #40556f;border-radius:17px;
    background:radial-gradient(ellipse at 28% 65%,#284861 0%,#203952 39%,#152840 100%)
}
.dashboard-template-coffee-machine-overview .coffee-card-hero-media {
    display:flex;align-items:center;justify-content:center;overflow:hidden;min-width:0;min-height:0;
    padding:5px 8px 4px
}
.dashboard-template-coffee-machine-overview .coffee-card-hero-media img {
    display:block;max-width:100%;max-height:100%;height:100%;width:100%;object-fit:contain;pointer-events:none
}
.dashboard-template-coffee-machine-overview .coffee-card-hero-content {
    box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
    min-width:0;min-height:0;gap:8px;padding:10px 9px 10px 12px;border-left:1px solid #4bc3e5
}
.dashboard-template-coffee-machine-overview .coffee-card-hero-name {
    font-size:clamp(13px,2.3cqi,19px);font-weight:750;color:var(--card-text-color,#f0f5ff);line-height:1.2;overflow-wrap:anywhere
}
.dashboard-template-coffee-machine-overview .coffee-card-device-id {
    color:var(--card-text-color,#aebed2);font-size:clamp(10px,1.35cqi,12px);font-weight:500;line-height:1.1;overflow-wrap:anywhere
}
.dashboard-template-coffee-machine-overview .coffee-card-device-id:empty {display:none}
.dashboard-template-coffee-machine-overview .coffee-card-state-details {
    box-sizing:border-box;display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%;min-height:27px;
    padding:3px 10px 3px 9px;border:1px solid #53d878;border-radius:999px;
    background:rgba(53,133,74,.18);color:#8af59c;font-size:clamp(11px,1.65cqi,14px);font-weight:750
}
.dashboard-template-coffee-machine-overview .coffee-card-state-details::before {
    content:"";display:block;flex:none;width:8px;height:8px;border-radius:50%;background:#63f48e
}
.dashboard-template-coffee-machine-overview .coffee-card-state-details.is-preview,
.dashboard-template-coffee-machine-overview .coffee-card-state-details.is-not-ready {
    border-color:#7da6c9;color:#d7e9fa;background:#314c61
}
.dashboard-template-coffee-machine-overview .coffee-card-state-details.is-preview::before,
.dashboard-template-coffee-machine-overview .coffee-card-state-details.is-not-ready::before {background:#92cbff}
.dashboard-template-coffee-machine-overview .coffee-card-state-details.is-offline {
    border-color:#a17b7e;color:#f0b5ba;background:#4e2a35
}
.dashboard-template-coffee-machine-overview .coffee-card-state-details.is-offline::before {background:#f0b5ba}
.dashboard-template-coffee-machine-overview .coffee-card-state-details strong {
    font-weight:750;line-height:1.1;min-width:0;overflow-wrap:anywhere
}
.dashboard-template-coffee-machine-overview .coffee-card-bluetooth {
    display:inline-flex;align-items:center;gap:5px;min-width:0;color:var(--card-text-color,#b9cbdf);
    font-size:clamp(10px,1.55cqi,12px);line-height:1.25
}
.dashboard-template-coffee-machine-overview .coffee-card-bluetooth.is-connected {color:#8ee8fc}
.dashboard-template-coffee-machine-overview .coffee-card-bluetooth .coffee-card-svg {width:16px;height:16px;color:#48cff5}
.dashboard-template-coffee-machine-overview .coffee-card-drinks,
.dashboard-template-coffee-machine-overview .coffee-card-footer {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:none;min-width:0
}
.dashboard-template-coffee-machine-overview .coffee-card-action {
    box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;
    min-height:46px;min-width:0;padding:8px;border:1px solid #526e8d;border-radius:13px;
    background:var(--card-button-color,linear-gradient(145deg,#243a54,#1c2d45));color:var(--card-text-color,#f0f4fc);
    cursor:pointer;font-family:inherit;text-align:center
}
.dashboard-template-coffee-machine-overview .coffee-card-action:hover:not(:disabled) {
    background:var(--card-button-color,linear-gradient(145deg,#2b4867,#22405d));border-color:#81b8dd
}
.dashboard-template-coffee-machine-overview .coffee-card-action:focus-visible,
.dashboard-template-coffee-machine-overview select:focus-visible {outline:2px solid #4cc7f7;outline-offset:2px}
.dashboard-template-coffee-machine-overview .coffee-card-action:disabled {opacity:.5;cursor:not-allowed}
.dashboard-template-coffee-machine-overview .coffee-card-action .coffee-card-svg {width:20px;height:20px;color:#9ce5fa}
.dashboard-template-coffee-machine-overview .coffee-card-action-text {
    min-width:0;display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere
}
.dashboard-template-coffee-machine-overview .coffee-card-action-text strong {
    color:inherit;font-size:clamp(11px,1.7cqi,14px);font-weight:750;line-height:1.2
}
.dashboard-template-coffee-machine-overview .coffee-card-action-text small {font-size:10px;color:#b7d4ee}
.dashboard-template-coffee-machine-overview .coffee-card-action-power {
    color:#94f6ac;border-color:#43ce6d;background:var(--card-button-color,linear-gradient(145deg,#165938,#133928))
}
.dashboard-template-coffee-machine-overview .coffee-card-action-power:not(:disabled):hover {
    background:var(--card-button-color,linear-gradient(145deg,#197348,#1c553a));border-color:#79f7a1
}
.dashboard-template-coffee-machine-overview .coffee-card-action-power .coffee-card-svg {color:#65f58a}
.dashboard-template-coffee-machine-overview .coffee-card-selects {
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0;flex:none
}
.dashboard-template-coffee-machine-overview .coffee-card-select-field {
    display:flex;flex-direction:column;gap:5px;min-width:0;color:var(--card-text-color,#c6d7ed);
    font-size:clamp(10px,1.5cqi,12px);font-weight:600
}
.dashboard-template-coffee-machine-overview .coffee-card-select-label {
    display:block;min-width:0;overflow-wrap:anywhere;line-height:1.15
}
.dashboard-template-coffee-machine-overview .coffee-card-select-control {display:flex;align-items:center;position:relative;min-width:0}
.dashboard-template-coffee-machine-overview .coffee-card-select-control > .coffee-card-svg {
    position:absolute;left:9px;width:18px;height:18px;z-index:1;pointer-events:none;color:#6fd4ee
}
.dashboard-template-coffee-machine-overview .coffee-card-select-field select {
    box-sizing:border-box;appearance:auto;color-scheme:dark;width:100%;height:38px;min-width:0;
    padding:0 16px 0 33px;border:1px solid #526985;border-radius:11px;
    background:linear-gradient(145deg,#273a52,#24344b);color:var(--card-text-color,#f1f4fa);
    font:inherit;font-size:clamp(10px,1.48cqi,12px);font-weight:650;cursor:pointer;text-overflow:ellipsis
}
.dashboard-template-coffee-machine-overview .coffee-card-select-field select option {
    color:var(--card-text-color,#f1f4fa);background-color:#24344b;color-scheme:dark
}
.dashboard-template-coffee-machine-overview .coffee-card-select-field select:disabled {opacity:.65;cursor:default}
.dashboard-template-coffee-machine-overview .coffee-card-stats {
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;min-height:0;min-width:0;flex:0 0 auto
}
.dashboard-template-coffee-machine-overview .coffee-card-stat {
    box-sizing:border-box;display:flex;align-items:center;gap:6px;min-width:0;min-height:61px;
    padding:7px;border:1px solid #4c627c;border-radius:13px;
    background:linear-gradient(155deg,#23374f,#1a2a3f)
}
.dashboard-template-coffee-machine-overview .coffee-card-stat > .coffee-card-svg {
    flex:none;width:22px;height:22px;color:#58d9f2
}
.dashboard-template-coffee-machine-overview .coffee-card-stat span {display:flex;flex-direction:column;min-width:0;gap:3px}
.dashboard-template-coffee-machine-overview .coffee-card-stat small {
    font-size:clamp(10px,1.3cqi,11px);color:var(--card-text-color,#c6d5e8);line-height:1.2
}
.dashboard-template-coffee-machine-overview .coffee-card-stat strong {
    color:var(--card-text-color,#f1f6ff);font-size:clamp(12px,1.9cqi,16px);line-height:1.15;font-weight:760;overflow-wrap:anywhere
}
.dashboard-template-coffee-machine-overview .coffee-card-feedback {
    margin:0;color:var(--card-text-color,#8bceef);font-size:11px;line-height:1.35;max-height:40px;overflow:auto;flex:none
}
.dashboard-template-coffee-machine-overview .coffee-card-feedback.error {color:#ffa59e}
.dashboard-template-coffee-machine-overview .coffee-card-feedback[hidden] {display:none}
.dashboard-grid.editing .dashboard-template-coffee-machine-overview:hover {
    background:var(--card-background,linear-gradient(150deg,#182639 0%,#101c2d 58%,#0b1726 100%))
}

@container coffee-card (max-width:700px) {
    .dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-selects {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
    .dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-select-field:last-child {grid-column:1 / -1}
    .dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
    .dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-stat {min-height:53px}
    .dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-hero {flex-basis:145px}
}
@container coffee-card (max-width:440px) {
    .dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-layout {gap:6px}
    .dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-hero {grid-template-columns:minmax(0,43%) minmax(0,57%);min-height:110px}
    .dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-hero-content {padding:6px 7px 6px 8px;gap:6px}
    .dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-device-id {
    color:var(--card-text-color,#aebed2);font-size:clamp(10px,1.35cqi,12px);font-weight:500;line-height:1.1;overflow-wrap:anywhere
}
.dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-device-id:empty {display:none}
.dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-state-details {min-height:23px;padding:3px 7px}
    .dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-select-control > .coffee-card-svg {width:16px;height:16px;left:7px}
    .dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-select-field select {height:34px;padding-left:27px}
    .dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-action {min-height:41px;padding:5px}
    .dashboard-template-coffee-machine-overview:not([data-card-scalable]) .coffee-card-stat {min-height:49px}
}
/* Inert, scaled copy of the real renderer for Zum Dashboard hinzufügen. */
.dashboard-compact-catalog .coffee-catalog-preview-frame {
    box-sizing:border-box;position:relative;width:min(100%,280px);height:326px;
    flex:none;overflow:hidden;pointer-events:none
}
.dashboard-compact-catalog .coffee-catalog-preview-frame > .dashboard-template-coffee-machine-overview {
    box-sizing:border-box;display:block;position:absolute;top:0;left:0;
    width:520px;height:606px;min-width:520px;min-height:606px;
    max-width:none;max-height:none;padding:13px 14px;overflow:hidden;gap:0;
    border:1px solid #415775;border-radius:16px;color:var(--card-text-color,#f0f4fb);
    background:var(--card-background,linear-gradient(150deg,#182639 0%,#101c2d 58%,#0b1726 100%));
    transform:scale(.538);transform-origin:top left
}

/* Shared content host, with the existing narrow factory layout (12 columns). */
.dashboard-template-coffee-machine-overview {
    --card-content-padding:13px 14px;
    --card-content-justify:flex-start;
    --card-title-default:#f5f8ff;
    --card-action-background:linear-gradient(145deg,#243a54,#1c2d45);
    --card-action-hover:linear-gradient(145deg,#2b4867,#22405d);
    --card-action-text:#f0f4fc;
}
.dashboard-template-coffee-machine-overview .coffee-card-action-power {
    --card-action-background:linear-gradient(145deg,#165938,#133928);
    --card-action-hover:linear-gradient(145deg,#197348,#1c553a);
    --card-action-text:#94f6ac;
}
.dashboard-template-coffee-machine-overview .coffee-card-header .dashboard-template-icon {
    display:grid;place-items:center;flex:none;color:#34c9ed;
}
.dashboard-template-coffee-machine-overview .coffee-card-header .dashboard-template-icon:not([data-dashboard-icon-size]) > svg {
    width:27px;height:27px;
}
.dashboard-template-coffee-machine-overview[data-card-scalable] .coffee-card-layout {min-height:597px;}
.dashboard-template-coffee-machine-overview[data-card-scalable] .coffee-card-selects {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
.dashboard-template-coffee-machine-overview[data-card-scalable] .coffee-card-select-field:last-child {grid-column:1 / -1;}
.dashboard-template-coffee-machine-overview[data-card-scalable] .coffee-card-stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
.dashboard-template-coffee-machine-overview[data-card-scalable] .coffee-card-stat {min-height:53px;}
.dashboard-template-coffee-machine-overview[data-card-scalable] .coffee-card-hero {flex-basis:145px;}
