/* Light semantic action colors for IT-Geräte and Messgeräte. */
.asset-action-return,
[data-am="return"],
[data-am="return-selected"] { background: #ffe4e6 !important; border-color: #fda4af !important; color: #be123c !important; }
.asset-action-owner,
[data-am="owner"],
[data-am="owner-selected"] { background: #fef3c7 !important; border-color: #f5c451 !important; color: #a16207 !important; }
.asset-action-issue,
[data-am="issue"],
[data-am="issue-selected"] { background: #dcfce7 !important; border-color: #86efac !important; color: #15803d !important; }
.asset-action-return:hover,
[data-am="return"]:hover,
[data-am="return-selected"]:hover { background: #fecdd3 !important; }
.asset-action-owner:hover,
[data-am="owner"]:hover,
[data-am="owner-selected"]:hover { background: #fde68a !important; }
.asset-action-issue:hover,
[data-am="issue"]:hover,
[data-am="issue-selected"]:hover { background: #bbf7d0 !important; }
body.theme-dark .asset-action-return,
body.theme-dark [data-am="return"],
body.theme-dark [data-am="return-selected"] { background: #4c1d2b !important; border-color: #be123c !important; color: #fecdd3 !important; }
body.theme-dark .asset-action-owner,
body.theme-dark [data-am="owner"],
body.theme-dark [data-am="owner-selected"] { background: #4a3410 !important; border-color: #b7791f !important; color: #fde68a !important; }
body.theme-dark .asset-action-issue,
body.theme-dark [data-am="issue"],
body.theme-dark [data-am="issue-selected"] { background: #123b27 !important; border-color: #299b57 !important; color: #bbf7d0 !important; }

/* Compact quick filters: Alle, Laptop, Monitore, ... */
[data-am="quick"] { padding: 0 16px !important; min-height: 30px !important; height: 30px !important; border-radius: 10px !important; font-size: 16px !important; line-height: 1; letter-spacing: 0; }
[data-am="quick"]:first-child { margin-left: 18px !important; }
html body .asset-module-shell [data-am="quick"]:first-child { margin-left: 18px !important; }
html body .asset-module-shell button[data-am="quick"] { min-height:30px !important; height:30px !important; max-height:30px !important; border-radius:10px !important; }
.asset-module-shell [data-am="quick"] { margin-bottom: 0 !important; }
.asset-module-shell > .art-toolbar { padding-left: 18px !important; }
.asset-module-shell > .br { display:flex !important; align-items:center !important; gap:4px !important; padding:4px 0 !important; margin-top:0 !important; margin-bottom:0 !important; border-top:1px solid rgba(76,116,148,.34) !important; border-bottom:1px solid rgba(76,116,148,.34) !important; }
.asset-module-shell[data-filters-off="1"] > .art-filter-row,
.asset-module-shell[data-filters-off="1"] > .br { display:none !important; }
.asset-module-shell > .art-columns:not([hidden]) { display:block !important; }
.asset-module-shell .art-tools-right .sr-action,
.asset-module-shell .art-tools-right .sr-action.is-on {
  background:#0d91aa !important;
  border-color:#0d91aa !important;
  color:#fff !important;
}
.asset-module-shell .art-tools-right .sr-action:hover {
  background:#087e95 !important;
  border-color:#087e95 !important;
  color:#fff !important;
}
.asset-module-shell .art-tool.asset-action-unavailable {
  background:#e8eef2 !important;
  border-color:#d1dde5 !important;
  color:#93a5b4 !important;
  box-shadow:none !important;
  filter:grayscale(.25) !important;
}
.asset-module-shell .art-tool.asset-action-unavailable:hover {
  background:#dde7ed !important;
  border-color:#bdcdd8 !important;
  color:#718496 !important;
  transform:none !important;
}
.asset-module-shell:has(> .art-toolbar .sr-action[data-am="filters"]:not(.is-on)) > .art-filter-row,
.asset-module-shell:has(> .art-toolbar .sr-action[data-am="filters"]:not(.is-on)) > .br { display:none !important; }
.asset-module-shell > .detail-resize { display:flex !important; align-items:center !important; justify-content:center !important; width:100% !important; max-width:none !important; height:26px !important; min-height:26px !important; margin:0 0 -13px !important; padding:0 !important; border:0 !important; border-radius:0 !important; background:transparent !important; box-shadow:none !important; cursor:ns-resize !important; touch-action:none !important; pointer-events:auto !important; position:relative !important; z-index:60 !important; }
.asset-module-shell > .detail-resize::before { content:"" !important; display:block !important; width:clamp(118px,8vw,156px) !important; height:14px !important; border:1px solid rgba(179,199,211,.52) !important; border-radius:999px !important; background:linear-gradient(180deg,rgba(20,39,57,.88),rgba(10,24,38,.86)) !important; box-shadow:0 10px 24px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.08) !important; }
.asset-module-shell > .detail-resize::after { content:"" !important; display:block !important; position:absolute !important; left:50% !important; top:50% !important; width:54px !important; height:4px !important; border-radius:999px !important; background:linear-gradient(90deg,rgba(97,124,145,.38),rgba(151,171,188,.72),rgba(97,124,145,.38)) !important; transform:translate(-50%,-50%) !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.12) !important; }

/* The resize control follows the active light palette instead of retaining the
   dark-panel styling used by the dark theme. */
body:not(.theme-dark) .asset-module-shell > .detail-resize::before { border-color:rgba(152,177,196,.72) !important; background:linear-gradient(180deg,#fafdff,#e8f1f7) !important; box-shadow:0 8px 18px rgba(39,75,104,.16),inset 0 1px 0 rgba(255,255,255,.98) !important; }
body:not(.theme-dark) .asset-module-shell > .detail-resize::after { background:linear-gradient(90deg,rgba(92,121,143,.36),rgba(60,91,117,.86),rgba(92,121,143,.36)) !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.72) !important; }

.asset-editor-modern .asset-editor-drop{position:relative;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;cursor:pointer}.asset-editor-modern .asset-editor-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.asset-editor-modern .article-editor-preview{margin-top:10px}.asset-editor-modern .article-editor-preview img{width:100%;max-height:180px;object-fit:contain;border-radius:14px}.asset-editor-modern .asset-editor-checks{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:8px 0}.asset-editor-modern .asset-editor-checks label{display:flex;align-items:center;gap:9px;font-weight:700}
.asset-module-shell > .detail-card.is-overview-hidden { display:none !important; }
.asset-module-shell > .detail-resize.is-overview-hidden { display:none !important; }

/* IT- und Messgeräte-Kacheln übernehmen im dunklen Theme die Artikel-Palette. */
body.theme-dark .asset-module-shell .art-grid{background:#071827!important}
body.theme-dark .asset-module-shell .art-c{background:#0b1f33!important;border-color:#29445d!important}
body.theme-dark .asset-module-shell .art-c:hover{border-color:#3f6b8f!important;box-shadow:0 16px 34px rgba(0,0,0,.28)!important}
body.theme-dark .asset-module-shell .art-img{background:#0f1d2b!important;border-bottom:1px solid #29445d!important}
body.theme-dark .asset-module-shell .art-bd{background:#0b1f33!important;color:#edf7ff!important}
body.theme-dark .asset-module-shell .art-nm{color:#edf7ff!important}
body.theme-dark .asset-module-shell .art-mt{color:#9eb2c8!important}

/* IT-Geräte: gleicher Formular-Look wie die Artikel-Popups. */
#m-asset-module.open{display:flex!important;align-items:center!important;justify-content:center!important;padding:20px!important}
#m-asset-module .asset-editor-modern{width:min(94vw,1160px)!important;max-height:calc(100vh - 32px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border:1px solid #cbdde8!important;border-radius:26px!important;background:linear-gradient(180deg,#fbfefd 0%,#f1f8f8 100%)!important;box-shadow:0 30px 90px rgba(15,38,52,.28)!important}
#m-asset-module .article-editor-head{flex:0 0 auto!important;min-height:82px!important;padding:20px 30px!important;display:flex!important;align-items:center!important;gap:18px!important;background:rgba(249,253,252,.95)!important;border-bottom:1px solid #d7e4eb!important}
#m-asset-module .article-editor-title-wrap{display:grid!important;gap:6px!important;min-width:0!important}
#m-asset-module .article-editor-kicker{font-size:12px!important;font-weight:950!important;letter-spacing:.16em!important;text-transform:uppercase!important;color:#4daee0!important}
#m-asset-module .article-editor-head .mt2{font-size:28px!important;line-height:1.12!important;font-weight:950!important;color:#102a43!important;letter-spacing:-.025em!important}
#m-asset-module .article-editor-close{margin-left:auto!important;width:44px!important;height:44px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#18344d!important;font-size:28px!important}
#m-asset-module .article-editor-body{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;padding:22px 30px 112px!important;background:radial-gradient(circle at 85% 8%,rgba(108,226,237,.14),transparent 27%),transparent!important;scrollbar-gutter:stable!important}
#m-asset-module .article-editor-hero{display:grid!important;grid-template-columns:minmax(290px,42%) minmax(0,1fr)!important;gap:22px!important;align-items:stretch!important;margin:0 0 22px!important}
#m-asset-module .article-editor-photo-card,#m-asset-module .article-editor-main-card{min-height:312px!important;border:1px solid #d2e0e9!important;border-radius:26px!important;box-shadow:none!important}
#m-asset-module .article-editor-photo-card{position:relative!important;overflow:hidden!important;padding:24px!important;display:grid!important;grid-template-rows:auto minmax(210px,1fr) auto!important;gap:14px!important;background:linear-gradient(135deg,#f1fbfc 0%,#eef8f8 100%)!important}
#m-asset-module .article-editor-main-card{padding:28px!important;display:grid!important;align-content:start!important;gap:18px!important;background:linear-gradient(120deg,#fff 0%,#fbfeff 60%,#e9fafd 100%)!important}
#m-asset-module .article-editor-photo-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
#m-asset-module .article-editor-section-title,#m-asset-module .article-editor-card-kicker,#m-asset-module .article-editor-block-title{margin:0!important;font-size:13px!important;font-weight:950!important;letter-spacing:.15em!important;text-transform:uppercase!important;color:#5d809b!important}
#m-asset-module .article-editor-photo-head .btn{width:58px!important;height:58px!important;border-radius:20px!important;background:#f8fcfd!important;border:1px solid #cbdce7!important;color:#173955!important;font-size:22px!important}
#m-asset-module .article-editor-drop{min-height:210px!important;border:1px solid #c9dbe6!important;border-radius:24px!important;background:rgba(255,255,255,.9)!important;color:#5b7f9c!important;box-shadow:none!important;font-weight:850!important}
#m-asset-module .article-editor-drop-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:54px!important;height:54px!important;border-radius:18px!important;background:#eaf6fa!important;color:#5e7890!important;font-size:28px!important}
#m-asset-module .article-editor-preview{display:flex!important;align-items:center!important;justify-content:center!important;min-height:0!important;margin:0!important}
#m-asset-module .article-editor-preview:has(img){position:absolute!important;inset:80px 24px 24px!important;pointer-events:none!important}
#m-asset-module .article-editor-preview img{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;border-radius:20px!important;background:#fff!important}
#m-asset-module .article-editor-main-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 20px!important;align-content:start!important}
#m-asset-module .article-editor-title-field{grid-column:1 / -1!important}
#m-asset-module .article-editor-main-card .fld,#m-asset-module .article-editor-block .fld{display:flex!important;flex-direction:column!important;gap:7px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-width:0!important}
#m-asset-module .article-editor-main-card .fld label,#m-asset-module .article-editor-block .fld label{margin:0!important;color:#2e4258!important;font-size:14px!important;font-weight:850!important;line-height:1.2!important}
#m-asset-module .article-editor-main-card input,#m-asset-module .article-editor-main-card select,#m-asset-module .article-editor-block input,#m-asset-module .article-editor-block select,#m-asset-module .article-editor-block textarea{width:100%!important;min-height:52px!important;border:1px solid #c8d9e5!important;border-radius:17px!important;background:rgba(255,255,255,.96)!important;color:#102a43!important;box-shadow:none!important;padding:11px 16px!important;font-size:16px!important;font-weight:650!important}
#m-asset-module .article-editor-main-card input::placeholder,#m-asset-module .article-editor-block input::placeholder,#m-asset-module .article-editor-block textarea::placeholder{color:#b3c1cf!important}
#m-asset-module .article-editor-form-groups{display:grid!important;gap:20px!important}
#m-asset-module .article-editor-block{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#m-asset-module .article-editor-block-title{margin:0 0 11px!important}
#m-asset-module .article-editor-block-grid{display:grid!important;gap:16px 20px!important}
#m-asset-module .article-editor-block-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#m-asset-module .asset-editor-checks{padding:2px 0!important;gap:10px!important}
#m-asset-module .asset-editor-checks label{color:#2e4258!important;font-size:14px!important}
#m-asset-module .article-editor-note textarea{min-height:100px!important;height:auto!important;resize:vertical!important;line-height:1.4!important}
#m-asset-module .article-editor-footer{position:absolute!important;left:0!important;right:0!important;bottom:0!important;z-index:3!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:14px!important;padding:18px 30px!important;background:rgba(247,251,251,.97)!important;border-top:1px solid #d4e1e9!important}
#m-asset-module .article-refresh-actions{margin-right:auto!important}
#m-asset-module .article-refresh-btn,#m-asset-module .article-editor-footer .btn{min-height:48px!important;border-radius:16px!important;padding:0 25px!important;font-size:16px!important;font-weight:900!important}
#m-asset-module .article-refresh-btn,#m-asset-module .article-editor-footer .btn:not(.bg){background:#fff!important;border:1px solid #c5d7e3!important;color:#152f47!important}
#m-asset-module .article-editor-footer .btn.bg{background:#1098b6!important;border-color:#1098b6!important;color:#fff!important;box-shadow:none!important}
#m-asset-module[data-it-mode="create"] .article-refresh-actions{display:none!important}
body.theme-dark #m-asset-module .asset-editor-modern{border-color:#29445d!important;background:#0d1b29!important;box-shadow:0 34px 95px rgba(0,0,0,.56)!important}
body.theme-dark #m-asset-module .article-editor-head,body.theme-dark #m-asset-module .article-editor-footer{background:#0d1927!important;border-color:#29445d!important}
body.theme-dark #m-asset-module .article-editor-head .mt2{color:#edf7ff!important}
body.theme-dark #m-asset-module .article-editor-close{color:#adc1d5!important}
body.theme-dark #m-asset-module .article-editor-body{background:radial-gradient(circle at 85% 8%,rgba(33,171,194,.18),transparent 30%),#091522!important}
body.theme-dark #m-asset-module .article-editor-photo-card,body.theme-dark #m-asset-module .article-editor-main-card{border-color:#29445d!important;background:#112437!important}
body.theme-dark #m-asset-module .article-editor-drop,body.theme-dark #m-asset-module .article-editor-main-card input,body.theme-dark #m-asset-module .article-editor-main-card select,body.theme-dark #m-asset-module .article-editor-block input,body.theme-dark #m-asset-module .article-editor-block select,body.theme-dark #m-asset-module .article-editor-block textarea{background:#081827!important;border-color:#39546b!important;color:#edf7ff!important}
body.theme-dark #m-asset-module .article-editor-main-card .fld label,body.theme-dark #m-asset-module .article-editor-block .fld label,body.theme-dark #m-asset-module .asset-editor-checks label{color:#c7d8e7!important}
body.theme-dark #m-asset-module .article-editor-photo-head .btn,body.theme-dark #m-asset-module .article-refresh-btn,body.theme-dark #m-asset-module .article-editor-footer .btn:not(.bg){background:#112a40!important;border-color:#39546b!important;color:#e4f1fb!important}
@media(max-width:920px){#m-asset-module.open{align-items:stretch!important;padding:10px!important}#m-asset-module .asset-editor-modern{width:calc(100vw - 20px)!important;max-height:calc(100vh - 20px)!important}#m-asset-module .article-editor-head{min-height:70px!important;padding:16px 18px!important}#m-asset-module .article-editor-head .mt2{font-size:23px!important}#m-asset-module .article-editor-body{padding:18px 16px 128px!important}#m-asset-module .article-editor-hero,#m-asset-module .article-editor-main-fields,#m-asset-module .article-editor-block-grid.cols-3{grid-template-columns:1fr!important}#m-asset-module .article-editor-photo-card,#m-asset-module .article-editor-main-card{min-height:0!important}#m-asset-module .article-editor-footer{padding:14px 16px!important;flex-wrap:wrap!important}#m-asset-module .article-refresh-actions{width:100%!important;margin-right:0!important}#m-asset-module .article-refresh-btn{width:100%!important}}

/* The IT form uses the compact article-editor proportions, not the old
   full-height device form. */
@media(min-width:921px){
  #m-asset-module .article-editor-hero{height:320px!important;min-height:0!important}
  #m-asset-module .article-editor-photo-card,#m-asset-module .article-editor-main-card{height:320px!important;min-height:0!important;max-height:320px!important}
  #m-asset-module .article-editor-photo-card{grid-template-rows:auto minmax(0,1fr) auto!important}
}
#m-asset-module .article-editor-head .mt2{font-size:25px!important}
#m-asset-module .article-editor-main-card .fld label,#m-asset-module .article-editor-block .fld label{font-size:13px!important}
#m-asset-module .article-editor-main-card input,#m-asset-module .article-editor-main-card select,#m-asset-module .article-editor-block input,#m-asset-module .article-editor-block select,#m-asset-module .article-editor-block textarea{height:44px!important;min-height:44px!important;font-size:15px!important}
#m-asset-module .article-editor-photo-head .btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:38px!important;height:38px!important;min-height:38px!important;border-radius:12px!important;font-size:17px!important;line-height:1!important;padding:0!important;text-align:center!important}
#m-asset-module .article-editor-inspection-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#m-asset-module .asset-editor-device-grid{grid-template-columns:minmax(220px,1fr) minmax(0,2fr)!important}
#m-asset-module .asset-editor-checks{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:center!important;gap:10px 18px!important;margin-top:14px!important;padding:0!important}
#m-asset-module .asset-editor-equipment-title{margin:20px 0 0!important}
#m-asset-module .asset-editor-checks label{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;white-space:nowrap!important}
#m-asset-module .asset-editor-checks input[type="checkbox"]{width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px!important;margin:0!important;padding:0!important;border-radius:5px!important}
#m-asset-module .asset-mess-editor .asset-mess-certificate-field{grid-column:span 2}
#m-asset-module .asset-mess-editor .asset-mess-certificate-field input[type="file"]{height:auto!important;min-height:44px!important;padding:7px 10px!important;font-size:13px!important}
#m-asset-module .asset-mess-editor .asset-mess-certificate-field input[type="file"]::file-selector-button{margin-right:12px;padding:7px 12px;border:1px solid #c5d7e3;border-radius:10px;background:#edf7fa;color:#173955;font-weight:800;cursor:pointer}
#m-asset-module .asset-mess-certificate-field small{font-size:12px;color:#5d809b}
#m-asset-module .asset-mess-certificate-link{font-size:13px;font-weight:800;color:#087da4;text-decoration:underline;text-underline-offset:3px}
body.theme-dark #m-asset-module .asset-mess-editor .asset-mess-certificate-field input[type="file"]::file-selector-button{background:#17344b;border-color:#39546b;color:#edf7ff}
body.theme-dark #m-asset-module .asset-mess-certificate-field small{color:#9db7cd}
body.theme-dark #m-asset-module .asset-mess-certificate-link{color:#6bd5ee}
@media(max-width:920px){#m-asset-module .article-editor-inspection-fields,#m-asset-module .asset-editor-device-grid,#m-asset-module .asset-editor-checks{grid-template-columns:1fr!important}#m-asset-module .asset-editor-checks label{white-space:normal!important}}
@media(max-width:920px){#m-asset-module .asset-mess-editor .asset-mess-certificate-field{grid-column:1}}
.asset-module-shell .art-tool-group-flow > button[data-am="overview"] { display:none !important; }
.asset-module-shell[data-overview-off="1"] > .detail-card,
.asset-module-shell[data-overview-off="1"] > .detail-resize { display:none !important; }
.asset-module-shell > .art-columns.open[hidden] { display:block !important; }
.asset-module-shell > .art-filter-row:not(.is-hidden)[hidden] { display:flex !important; }
.asset-module-shell > .art-filter-row.is-hidden { display:none !important; }
.asset-module-shell > .br.is-hidden { display:none !important; }
.asset-module-shell { position:relative; }
.asset-action-menu { display:none; position:absolute; z-index:120; top:100%; left:24px; width:265px; padding:9px; border:1px solid rgba(91,128,153,.72); border-radius:16px; background:#10253a; box-shadow:0 18px 38px rgba(0,0,0,.38); }
.asset-action-menu.is-open { display:grid; gap:7px; }
.asset-col-action-label { position:relative; }
.asset-col-action-label .asset-action-menu { top:calc(100% + 8px); left:0; }
.asset-action-menu .art-action-option { display:flex; align-items:center; gap:9px; min-height:34px; padding:6px 9px; border:1px solid rgba(91,128,153,.72); border-radius:11px; color:#aebfd0; background:#132b43; cursor:pointer; }
.asset-action-menu .art-action-option:hover { background:#183752; color:#f1f7fb; }
.asset-action-menu .art-action-option input { accent-color:#35b7f0; width:17px; height:17px; }
.asset-action-menu .art-action-option svg { width:18px; height:18px; color:#9ab0c3; }
.asset-action-menu .art-action-option span { font-size:13px; font-weight:700; }
td.col-actions [data-am="issue"] { background:#bbf7d0 !important; border-color:#4ade80 !important; color:#166534 !important; }
td.col-actions [data-am="return"] { background:#fecdd3 !important; border-color:#fb7185 !important; color:#9f1239 !important; }
td.col-actions [data-am="owner"] { background:#fde68a !important; border-color:#facc15 !important; color:#854d0e !important; }
td.col-actions [data-am="delete"] { background:#fecdd3 !important; border-color:#fb7185 !important; color:#9f1239 !important; }
/* Hidden action buttons must stay hidden even when the shared button rules set display. */
.asset-module-shell td.col-actions button[hidden],
.asset-module-shell td.col-actions [data-am][hidden] { display:none !important; }
/* Some module shells do not carry the optional shell class. The checkbox
   preference must still hide the corresponding action everywhere. */
button[data-am][hidden],
[data-am][hidden] { display:none !important; visibility:hidden !important; }
/* Row actions use the same visual language as the toolbar actions. */
.asset-module-shell td.col-actions button[data-am="issue"] { background:#bbf7d0 !important; border-color:#4ade80 !important; color:#166534 !important; }
.asset-module-shell td.col-actions button[data-am="return"] { background:#fecdd3 !important; border-color:#fb7185 !important; color:#9f1239 !important; }
.asset-module-shell td.col-actions button[data-am="owner"] { background:#fde68a !important; border-color:#facc15 !important; color:#854d0e !important; }
.asset-module-shell td.col-actions button[data-am="delete"] { background:#fecdd3 !important; border-color:#fb7185 !important; color:#9f1239 !important; }
/* Highest-specificity rules for generated IT/Messgeräte row buttons. */
html body .page.on [data-asset-module] td.col-actions button[data-am="issue"],
html body .page.on [data-asset-module] td.col-actions button[data-am="issue-selected"] { background:#bbf7d0 !important; border-color:#4ade80 !important; color:#166534 !important; }
html body .page.on [data-asset-module] td.col-actions button[data-am="return"],
html body .page.on [data-asset-module] td.col-actions button[data-am="return-selected"] { background:#fecdd3 !important; border-color:#fb7185 !important; color:#9f1239 !important; }
html body .page.on [data-asset-module] td.col-actions button[data-am="owner"],
html body .page.on [data-asset-module] td.col-actions button[data-am="owner-selected"] { background:#fde68a !important; border-color:#facc15 !important; color:#854d0e !important; }
/* Keep every row's action cluster in one consistent horizontal lane. */
html body .page.on [data-asset-module] td.col-actions {
  /* A table cell must remain a table cell.  Using flex here detached the
     cell from its row grid and produced black gaps between rows. */
  display:table-cell !important;
  width:1% !important;
  min-width:0 !important;
  max-width:none !important;
  overflow:visible !important;
  white-space:nowrap !important;
  text-align:left !important;
  padding-left:10px !important;
  vertical-align:middle !important;
}
html body .page.on [data-asset-module] td.col-actions > button[data-am] {
  display:inline-flex !important;
  box-sizing:border-box !important;
  vertical-align:middle !important;
  flex:0 0 auto !important;
  aspect-ratio:1 / 1 !important;
  /* Same compact square used by the action buttons in "Alle Artikel". */
  width:36px !important;
  min-width:36px !important;
  max-width:36px !important;
  height:36px !important;
  min-height:36px !important;
  max-height:36px !important;
  padding:0 !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 2px !important;
  line-height:1 !important;
  transform:none !important;
}
/* The compact button rule above is intentionally strong; repeat the hidden
   state with equal specificity so a disabled menu item never keeps a gap. */
html body .page.on [data-asset-module] td.col-actions > button[data-am][hidden] {
  display:none !important;
  visibility:hidden !important;
}
html body .page.on [data-asset-module] td.col-actions > button[data-am="issue"] {
  background:#dcfce7 !important; border-color:#86efac !important; color:#15803d !important;
}
html body .page.on [data-asset-module] td.col-actions > button[data-am="return"] {
  background:#ffe4e6 !important; border-color:#fda4af !important; color:#be123c !important;
}
html body .page.on [data-asset-module] td.col-actions > button[data-am="owner"] {
  background:#fef3c7 !important; border-color:#f5c451 !important; color:#a16207 !important;
}
/* Explicit foreground/background colors for the three status actions. */
html body .page.on [data-asset-module] td.col-actions > button[data-am="issue"],
html body .page.on [data-asset-module] td.col-actions > button[data-am="issue-selected"] { background:#bbf7d0 !important; border-color:#4ade80 !important; color:#166534 !important; }
html body .page.on [data-asset-module] td.col-actions > button[data-am="return"],
html body .page.on [data-asset-module] td.col-actions > button[data-am="return-selected"] { background:#fecdd3 !important; border-color:#fb7185 !important; color:#9f1239 !important; }
html body .page.on [data-asset-module] td.col-actions > button[data-am="owner"],
html body .page.on [data-asset-module] td.col-actions > button[data-am="owner-selected"] { background:#fde68a !important; border-color:#facc15 !important; color:#854d0e !important; }
/* Compact pagination, matching the smaller reference layout. */
.asset-module-shell .table-pager-foot,
[data-asset-module] .table-pager-foot { min-height:58px !important; height:58px !important; padding:8px 18px !important; }
.asset-module-shell .table-pager-foot .art-page-controls,
[data-asset-module] .table-pager-foot .art-page-controls { height:44px !important; min-height:44px !important; padding:4px 8px !important; gap:6px !important; }
.asset-module-shell .table-pager-foot .art-page-btn,
[data-asset-module] .table-pager-foot .art-page-btn { width:36px !important; height:36px !important; min-height:36px !important; padding:0 !important; }
.asset-module-shell .table-pager-foot .inp.sm,
[data-asset-module] .table-pager-foot .inp.sm { height:30px !important; min-height:30px !important; }
.asset-action-menu label { display:flex; align-items:center; gap:9px; min-height:34px; padding:6px 9px; border:1px solid rgba(91,128,153,.72); border-radius:11px; color:#aebfd0; background:#132b43; cursor:pointer; }
.asset-action-menu label:hover { background:#183752; color:#f1f7fb; }
.article-info-external { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.article-info-created { display:grid; gap:3px; min-width:210px; padding:0; border:0; background:transparent; text-align:left; }
.article-info-created span { font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#9fb6cc; }
.article-info-created b { font-size:13px; color:#edf6ff; }
.asset-info-created-row { display:flex; justify-content:flex-end; margin-top:14px; }
.asset-action-menu input { accent-color:#35b7f0; width:17px; height:17px; }
.asset-action-menu svg { width:18px; height:18px; color:#9ab0c3; }
.asset-action-menu b { font-size:13px; }

/* VDE-Warnung in der IT-Geräteübersicht: bewusst gleich klar und rot wie die
   abgelaufene Prüfungswarnung bei Werkzeugen. */
.asset-name-cell { display:grid; justify-items:start; gap:5px; min-width:0; }
.asset-module-shell mark.asset-search-hit { background:#ffe66b; color:#352500; padding:0 .08em; border-radius:3px; box-decoration-break:clone; -webkit-box-decoration-break:clone; }
html body.theme-dark .asset-module-shell mark.asset-search-hit { background:#facc15; color:#192235; }
.asset-vde-warning { display:inline-flex; align-items:center; width:max-content; max-width:100%; box-sizing:border-box; padding:4px 10px; border:1px solid #fda4af; border-radius:999px; background:#ffe4e6; color:#be123c; font-size:12px; font-weight:850; line-height:1.1; white-space:nowrap; }
.asset-vde-warning i { display:block; flex:0 0 auto; width:7px; height:7px; margin-right:6px; border-radius:50%; background:#ef4444; }
.art-nm .asset-vde-warning { display:flex; margin-top:5px; }
.asset-info-alerts { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.asset-info-alerts span { display:inline-flex; align-items:center; padding:4px 8px; border:1px solid #fda4af; border-radius:999px; background:#fff1f2; color:#be123c; font-size:11px; font-weight:850; line-height:1.1; }
body.theme-dark .asset-info-alerts span { background:rgba(190,24,93,.2); border-color:rgba(253,164,175,.72); color:#fecdd3; }
html body.theme-dark .asset-vde-warning { background:rgba(190,24,93,.2); border-color:rgba(253,164,175,.72); color:#fecdd3; }

/* Geräte-Details: Theme-konformer Kontrast-Aufbau. */
body:not(.theme-dark) #m-asset-quick-info .article-info-modal {
  background:#f4f7f9 !important;
  border-color:#c7d7e1 !important;
  color:#102b43 !important;
  box-shadow:0 28px 80px rgba(15,40,60,.26) !important;
}
body:not(.theme-dark) #m-asset-quick-info .article-info-modal .mh,
body:not(.theme-dark) #m-asset-quick-info .article-info-modal .mf {
  background:#ffffff !important;
  border-color:#d7e3ea !important;
}
body:not(.theme-dark) #m-asset-quick-info .asset-info-main {
  background:linear-gradient(135deg,#f5fcff 0%,#e6f8fd 100%) !important;
  border-color:#a9ddeb !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 12px 28px rgba(30,123,153,.08) !important;
}
body:not(.theme-dark) #m-asset-quick-info .asset-info-main h3 { color:#102b43 !important; }
body:not(.theme-dark) #m-asset-quick-info .asset-info-main .article-info-kicker { color:#168cb2 !important; }
body:not(.theme-dark) #m-asset-quick-info .asset-info-main .article-info-sub { color:#456f8e !important; }
body:not(.theme-dark) #m-asset-quick-info .asset-info-main .article-info-status span { color:#173f58 !important; background:#dff3fa !important; border:1px solid #b4e2ef !important; }
body:not(.theme-dark) #m-asset-quick-info .asset-info-main .article-info-status span.is-issued { color:#b42338 !important; background:#fff1f2 !important; border-color:#fda4af !important; }
body:not(.theme-dark) #m-asset-quick-info .asset-info-main .article-info-status span.is-available { color:#087443 !important; background:#ecfdf3 !important; border-color:#86efac !important; }
body:not(.theme-dark) #m-asset-quick-info .article-info-field {
  background:#ffffff !important;
  border-color:#d3e0e8 !important;
  box-shadow:0 8px 20px rgba(30,71,94,.055) !important;
}
body:not(.theme-dark) #m-asset-quick-info .article-info-field b,
body:not(.theme-dark) #m-asset-quick-info .article-info-created b { color:#102b43 !important; }
body:not(.theme-dark) #m-asset-quick-info .article-info-field span,
body:not(.theme-dark) #m-asset-quick-info .article-info-created span { color:#567996 !important; }
body.theme-dark #m-asset-quick-info .article-info-modal { background:#0c1b2a !important; border-color:#29445d !important; color:#eaf4fc !important; }
body.theme-dark #m-asset-quick-info .article-info-modal .mh,
body.theme-dark #m-asset-quick-info .article-info-modal .mf { background:#102233 !important; border-color:#29445d !important; }
body.theme-dark #m-asset-quick-info .asset-info-main { background:linear-gradient(135deg,#132e46,#1b405c) !important; border-color:#365f80 !important; }
body.theme-dark #m-asset-quick-info .asset-info-main .article-info-status span.is-issued { color:#fecdd3 !important; background:rgba(190,24,93,.24) !important; border-color:rgba(253,164,175,.72) !important; }
body.theme-dark #m-asset-quick-info .asset-info-main .article-info-status span.is-available { color:#bbf7d0 !important; background:rgba(21,128,61,.26) !important; border-color:rgba(134,239,172,.62) !important; }
body.theme-dark #m-asset-quick-info .article-info-field { background:#12273a !important; border-color:#294b65 !important; box-shadow:none !important; }
body.theme-dark #m-asset-quick-info .article-info-field b,
body.theme-dark #m-asset-quick-info .article-info-created b { color:#edf7ff !important; }
body.theme-dark #m-asset-quick-info .article-info-field span,
body.theme-dark #m-asset-quick-info .article-info-created span { color:#a8c0d3 !important; }
#m-asset-quick-info .article-info-field.wide { grid-column:1 / -1; }
#m-asset-quick-info .asset-certificate-card { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-top:16px; padding:18px 20px; border:1px solid #c9dce7; border-radius:20px; background:#fff; }
#m-asset-quick-info .asset-certificate-copy { display:grid; gap:4px; min-width:180px; }
#m-asset-quick-info .asset-certificate-copy span { color:#567996; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
#m-asset-quick-info .asset-certificate-copy strong { color:#102b43; font-size:17px; }
#m-asset-quick-info .asset-certificate-copy small { color:#567996; font-size:13px; }
#m-asset-quick-info .asset-certificate-actions { display:flex; flex-wrap:wrap; gap:8px; }
#m-asset-quick-info .asset-certificate-actions .btn { display:inline-flex; align-items:center; justify-content:center; min-height:42px; text-decoration:none; }
body.theme-dark #m-asset-quick-info .asset-certificate-card { background:#12273a; border-color:#294b65; }
body.theme-dark #m-asset-quick-info .asset-certificate-copy strong { color:#edf7ff; }
body.theme-dark #m-asset-quick-info .asset-certificate-copy span,
body.theme-dark #m-asset-quick-info .asset-certificate-copy small { color:#a8c0d3; }
#m-asset-quick-info .article-info-field.url b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#m-asset-quick-info .article-info-field.url a { color:#087fa5; text-decoration:none; }
#m-asset-quick-info .article-info-field.url a:hover { text-decoration:underline; }
#m-asset-quick-info .article-info-field.note b { white-space:pre-wrap; overflow-wrap:anywhere; font-weight:650; line-height:1.45; }
#m-asset-quick-info .article-info-field.is-expired { border-color:#fda4af !important; background:#fff1f2 !important; }
#m-asset-quick-info .article-info-field.is-expired span,
#m-asset-quick-info .article-info-field.is-expired b { color:#be123c !important; }
body.theme-dark #m-asset-quick-info .article-info-field.is-expired { border-color:rgba(253,164,175,.7) !important; background:rgba(190,24,93,.18) !important; }
body.theme-dark #m-asset-quick-info .article-info-field.is-expired span,
body.theme-dark #m-asset-quick-info .article-info-field.is-expired b { color:#fecdd3 !important; }
@media(max-width:760px){ #m-asset-quick-info .article-info-field.wide { grid-column:auto; } }

/* Ausgewählte Geräte müssen in der Tabelle sofort erkennbar sein. */
[data-asset-module] tr.selectable.is-selected > td {
  background:#dff4fb !important;
  border-top-color:#a9dced !important;
  border-bottom-color:#a9dced !important;
}
[data-asset-module] tr.selectable.is-selected > td:first-child {
  box-shadow:inset 5px 0 0 #109abd !important;
}
[data-asset-module] tr.selectable.is-selected > td b { color:#0c5974 !important; }
[data-asset-module] tr.selectable.is-selected input[type="checkbox"] { accent-color:#109abd; }
body.theme-dark [data-asset-module] tr.selectable.is-selected > td {
  background:#173d57 !important;
  border-top-color:#2b6e91 !important;
  border-bottom-color:#2b6e91 !important;
}
body.theme-dark [data-asset-module] tr.selectable.is-selected > td:first-child { box-shadow:inset 5px 0 0 #53c6e8 !important; }
body.theme-dark [data-asset-module] tr.selectable.is-selected > td,
body.theme-dark [data-asset-module] tr.selectable.is-selected > td b { color:#eef9ff !important; }
/* IT- und Messgeräte verwenden bewusst die Standard-Detailkarte aus
   „Alle Artikel“. Keine eigene Spalten- oder Flex-Regel hier. */
.asset-module-shell > .detail-card > .detail-media { justify-content:flex-start; padding-left:0; padding-right:12px; }
.asset-module-shell > .detail-card > .detail-body { padding-left:14px; }

/* Toolbar actions: keep the semantic colors visible even when the shared
   article toolbar theme supplies its own background. */
.art-tool-group-flow > button[data-am="issue-selected"],
.art-tool-group-flow > button[data-am="issue"],
button.asset-action-issue { background: #dcfce7 !important; border-color: #86efac !important; color: #15803d !important; }
.art-tool-group-flow > button[data-am="return-selected"],
.art-tool-group-flow > button[data-am="return"],
button.asset-action-return { background: #ffe4e6 !important; border-color: #fda4af !important; color: #be123c !important; }
.art-tool-group-flow > button[data-am="owner-selected"],
.art-tool-group-flow > button[data-am="owner"],
button.asset-action-owner { background: #fef3c7 !important; border-color: #f5c451 !important; color: #a16207 !important; }

/* The three primary asset actions use the same light, grouped treatment as
   the Alle-Artikel toolbar reference. */
.art-tool-group-flow > button[data-am="issue-selected"] { background: #bbf7d0 !important; border-color: #4ade80 !important; color: #166534 !important; }
.art-tool-group-flow > button[data-am="owner-selected"] { background: #fde68a !important; border-color: #facc15 !important; color: #854d0e !important; }
.art-tool-group-flow > button[data-am="return-selected"] { background: #fecdd3 !important; border-color: #fb7185 !important; color: #9f1239 !important; }
.art-tool-group-flow > button[data-am="issue-selected"] svg,
.art-tool-group-flow > button[data-am="owner-selected"] svg,
.art-tool-group-flow > button[data-am="return-selected"] svg { stroke: currentColor !important; color: currentColor !important; }

/* Row buttons use these semantic colors in every theme. */
html body.theme-dark .page.on [data-asset-module] td.col-actions > button[data-am="issue"] {
  background:#dcfce7 !important; border-color:#86efac !important; color:#15803d !important;
}
html body.theme-dark .page.on [data-asset-module] td.col-actions > button[data-am="return"] {
  background:#ffe4e6 !important; border-color:#fda4af !important; color:#be123c !important;
}
html body.theme-dark .page.on [data-asset-module] td.col-actions > button[data-am="owner"] {
  background:#fef3c7 !important; border-color:#f5c451 !important; color:#a16207 !important;
}

/* IT-Ausleihe verwendet denselben klaren Kartenaufbau wie der IT-Editor. */
#m-asset-module .asset-issue-modern { width:min(940px,calc(100vw - 36px)) !important; height:calc(100dvh - 36px) !important; max-height:calc(100dvh - 36px) !important; }
#m-asset-module .asset-issue-modern .article-editor-head { padding:20px 30px !important; min-height:0 !important; }
#m-asset-module .asset-issue-modern .article-editor-body { padding:18px 30px 108px !important; overflow:auto !important; }
#m-asset-module .asset-issue-modern .asset-issue-card { min-height:0 !important; padding:22px 24px !important; }
#m-asset-module .asset-issue-modern .asset-issue-device { display:grid; gap:2px; padding:0 0 14px; margin:0 0 16px; border-bottom:1px solid var(--line,#d7e4ee); }
#m-asset-module .asset-issue-modern .asset-issue-device b { font-size:20px; line-height:1.2; color:var(--ink,#10283d); }
#m-asset-module .asset-issue-modern .asset-issue-device span,
#m-asset-module .asset-issue-modern .asset-issue-proof-hint { color:var(--muted,#62809b); font-size:14px; }
#m-asset-module .asset-issue-modern .asset-issue-fields { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:14px 16px !important; }
#m-asset-module .asset-issue-modern .asset-issue-person { grid-column:1 / -1; }
#m-asset-module .asset-issue-modern .asset-issue-note { grid-column:1 / -1; }
#m-asset-module .asset-issue-modern .asset-issue-note textarea { min-height:62px !important; height:62px !important; }
#m-asset-module .asset-issue-modern .asset-issue-proof-hint { margin-top:14px; padding:9px 12px; border-radius:12px; background:rgba(73,182,238,.09); border:1px solid rgba(73,182,238,.22); }
#m-asset-module .asset-issue-modern .article-editor-footer { padding:16px 30px !important; min-height:0 !important; }
#m-asset-module .asset-return-modern { width:min(760px,calc(100vw - 36px)) !important; }
#m-asset-module .asset-return-modern .article-editor-body { padding:18px 28px 108px !important; overflow:auto !important; }
#m-asset-module .asset-return-modern .asset-issue-card { padding:22px 24px !important; }
#m-asset-module .asset-return-modern .asset-return-owner { display:grid; grid-template-columns:150px minmax(0,1fr); gap:5px 14px; margin:0 0 16px; padding:13px 15px; border:1px solid rgba(73,182,238,.25); border-radius:14px; background:rgba(73,182,238,.06); }
#m-asset-module .asset-return-modern .asset-return-owner span { grid-row:1 / span 2; align-self:center; font-size:11px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; color:var(--muted,#62809b); }
#m-asset-module .asset-return-modern .asset-return-owner b { color:var(--ink,#10283d); }
#m-asset-module .asset-return-modern .asset-return-owner small { color:var(--muted,#62809b); font-size:13px; }
#m-asset-module .asset-owner-modern { width:min(940px,calc(100vw - 36px)) !important; }
/* Die Ausleihkarte enthält mehr Felder als die Editor-Karte. Die allgemeine
   Desktop-Höhe von 320px würde die Notiz aus dem Kartenrahmen schieben. */
@media(min-width:921px){
  #m-asset-module .asset-issue-modern .asset-issue-card { height:auto !important; min-height:0 !important; max-height:none !important; }
}
#m-asset-module .asset-owner-modern .asset-owner-current {
  display:grid !important;
  grid-template-columns:150px minmax(0,1fr) !important;
  gap:5px 14px !important;
  margin:0 0 16px !important;
  padding:13px 15px !important;
  border:1px solid rgba(73,182,238,.25) !important;
  border-radius:14px !important;
  background:rgba(73,182,238,.06) !important;
}
#m-asset-module .asset-owner-modern .asset-owner-current span { grid-row:1 / span 2 !important; align-self:center !important; font-size:11px !important; font-weight:900 !important; letter-spacing:.08em !important; text-transform:uppercase !important; color:var(--muted,#62809b) !important; }
#m-asset-module .asset-owner-modern .asset-owner-current b { color:var(--ink,#10283d) !important; }
#m-asset-module .asset-owner-modern .asset-owner-current small { color:var(--muted,#62809b) !important; font-size:13px !important; }

/* Buchungshistorie im selben hellen Kartenstil wie die IT-Dialoge. */
#m-asset-module .asset-history-modern { width:min(1120px,calc(100vw - 36px)) !important; height:auto !important; max-height:calc(100dvh - 36px) !important; }
#m-asset-module .asset-history-modern .article-editor-head { padding:20px 30px !important; min-height:0 !important; }
#m-asset-module .asset-history-modern .article-editor-body { padding:18px 30px 104px !important; overflow:auto !important; }
#m-asset-module .asset-history-modern .asset-history-card { min-height:0 !important; padding:22px 24px !important; }
#m-asset-module .asset-history-modern .asset-history-device { display:grid; gap:3px; padding:0 0 15px; margin:0 0 18px; border-bottom:1px solid var(--line,#d7e4ee); }
#m-asset-module .asset-history-modern .asset-history-device b { font-size:21px; line-height:1.2; color:var(--ink,#10283d); }
#m-asset-module .asset-history-modern .asset-history-device span { color:var(--muted,#62809b); font-size:14px; }
#m-asset-module .asset-history-modern .asset-history-table-wrap { overflow:auto; border:1px solid var(--line,#d7e4ee); border-radius:15px; background:var(--card,#fff); }
#m-asset-module .asset-history-modern-table { width:100%; min-width:835px; border-collapse:collapse; table-layout:auto; }
#m-asset-module .asset-history-modern-table th { padding:12px 14px; background:#eef7fb; border-bottom:1px solid var(--line,#d7e4ee); color:#5d819d; font-size:12px; font-weight:900; letter-spacing:.06em; text-align:left; text-transform:uppercase; white-space:nowrap; }
#m-asset-module .asset-history-modern-table td { padding:13px 14px; border-bottom:1px solid var(--line,#d7e4ee); color:var(--ink,#10283d); font-size:14px; vertical-align:middle; }
#m-asset-module .asset-history-modern-table tbody tr:last-child td { border-bottom:0; }
#m-asset-module .asset-history-modern-table tbody tr:hover td { background:rgba(73,182,238,.045); }
#m-asset-module .asset-history-modern .asset-history-date { color:var(--ink,#10283d); font-weight:750; white-space:nowrap; }
#m-asset-module .asset-history-modern .asset-history-date small { display:block; margin-top:2px; color:var(--muted,#62809b); font-size:12px; font-weight:700; }
#m-asset-module .asset-history-modern .asset-history-note { min-width:180px; white-space:pre-wrap; }
#m-asset-module .asset-history-modern .asset-history-empty { padding:30px 16px; color:var(--muted,#62809b); text-align:center; }
#m-asset-module .asset-history-action { display:inline-flex; align-items:center; min-height:27px; padding:4px 9px; border-radius:999px; font-size:12px; font-weight:850; white-space:nowrap; }
#m-asset-module .asset-history-action.is-issue { color:#9a6700; background:#fff3d2; border:1px solid #f5cf6b; }
#m-asset-module .asset-history-action.is-return { color:#13794d; background:#e0f8ed; border:1px solid #9ce4c0; }
#m-asset-module .asset-history-action.is-owner { color:#2767a4; background:#e9f4ff; border:1px solid #b8daf7; }
#m-asset-module .asset-history-action.is-neutral { color:#587791; background:#f0f6fa; border:1px solid #d6e4ed; }
#m-asset-module .asset-history-modern .article-editor-footer { padding:16px 30px !important; min-height:0 !important; }
html body.theme-dark #m-asset-module .asset-history-modern .asset-history-table-wrap { background:#15283a; }
html body.theme-dark #m-asset-module .asset-history-modern-table th { background:#1a3348; color:#9abbd3; }
html body.theme-dark #m-asset-module .asset-history-modern-table td { color:#e4eff7; }
html body.theme-dark #m-asset-module .asset-history-modern-table tbody tr:hover td { background:rgba(73,182,238,.10); }

/* IT-Ausleihe, Rückgabe und Besitzerwechsel: vollständiger Kontrast im dunklen Theme. */
html body.theme-dark #m-asset-module .asset-issue-modern .asset-issue-card { background:#112437 !important; border-color:#294b65 !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .asset-issue-device { border-color:#486982 !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .asset-issue-device b { color:#f1f7fc !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .asset-issue-device span,
html body.theme-dark #m-asset-module .asset-issue-modern .asset-issue-proof-hint { color:#acc6da !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .asset-return-owner,
html body.theme-dark #m-asset-module .asset-issue-modern .asset-owner-current { background:#153149 !important; border-color:#2b6285 !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .asset-return-owner span,
html body.theme-dark #m-asset-module .asset-issue-modern .asset-owner-current span { color:#9bc3df !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .asset-return-owner b,
html body.theme-dark #m-asset-module .asset-issue-modern .asset-owner-current b { color:#f1f7fc !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .asset-return-owner small,
html body.theme-dark #m-asset-module .asset-issue-modern .asset-owner-current small { color:#b5cde0 !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .asset-issue-proof-hint { background:#112d43 !important; border-color:#2b5f81 !important; }
@media(max-width:760px){
  #m-asset-module .asset-issue-modern .article-editor-body { padding:18px !important; }
  #m-asset-module .asset-issue-modern .asset-issue-card { padding:22px 18px !important; }
  #m-asset-module .asset-issue-modern .asset-issue-fields { grid-template-columns:1fr !important; }
  #m-asset-module .asset-history-modern .article-editor-body { padding:18px !important; }
  #m-asset-module .asset-history-modern .asset-history-card { padding:18px !important; }
}

/* Dark Theme: IT-Ausleihe, Rückgabe und Besitzerwechsel erhalten einen
   eigenständigen, klar geschichteten Kontrast. Diese Regeln stehen bewusst
   am Ende der Datei, damit allgemeine Theme-Regeln keine Inhalte abdunkeln. */
html body.theme-dark #m-asset-module .asset-issue-modern.article-editor-modal {
  background:#081725 !important;
  border-color:#2a5977 !important;
  color:#eef7ff !important;
  border-radius:28px !important;
  box-shadow:0 30px 90px rgba(0,0,0,.58) !important;
}
html body.theme-dark #m-asset-module .asset-issue-modern .article-editor-head,
html body.theme-dark #m-asset-module .asset-issue-modern .article-editor-footer {
  background:linear-gradient(100deg,#10263a 0%,#0b1b2b 72%) !important;
  border-color:#2a5977 !important;
}
html body.theme-dark #m-asset-module .asset-issue-modern .article-editor-body {
  background:linear-gradient(135deg,#081827 0%,#0a1e2d 58%,#092131 100%) !important;
  color:#eef7ff !important;
}
html body.theme-dark #m-asset-module .asset-issue-modern .asset-issue-card {
  background:linear-gradient(145deg,#13354e 0%,#102b40 58%,#0f2739 100%) !important;
  border:1px solid #315f7f !important;
  border-radius:24px !important;
  box-shadow:inset 0 1px 0 rgba(186,231,255,.09),0 18px 36px rgba(0,0,0,.16) !important;
  color:#eef7ff !important;
  opacity:1 !important;
}
html body.theme-dark #m-asset-module .asset-issue-modern .asset-issue-device {
  padding:16px 18px !important;
  margin:0 0 18px !important;
  border:1px solid #396986 !important;
  border-radius:17px !important;
  background:rgba(7,25,39,.35) !important;
}
html body.theme-dark #m-asset-module .asset-issue-modern .asset-issue-device b,
html body.theme-dark #m-asset-module .asset-issue-modern .asset-return-owner b,
html body.theme-dark #m-asset-module .asset-issue-modern .asset-owner-current b { color:#f5faff !important; opacity:1 !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .asset-issue-device span,
html body.theme-dark #m-asset-module .asset-issue-modern .asset-return-owner small,
html body.theme-dark #m-asset-module .asset-issue-modern .asset-owner-current small { color:#b5d1e5 !important; opacity:1 !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .fld label { color:#d5e6f3 !important; opacity:1 !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .article-editor-kicker { color:#62d4fa !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .article-editor-title-wrap .mt2 { color:#f6fbff !important; text-shadow:0 1px 0 rgba(255,255,255,.06) !important; }
html body.theme-dark #m-asset-module .asset-issue-modern input,
html body.theme-dark #m-asset-module .asset-issue-modern select,
html body.theme-dark #m-asset-module .asset-issue-modern textarea {
  background:#091927 !important;
  border-color:#426a84 !important;
  color:#f2f8fd !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025) !important;
  opacity:1 !important;
}
html body.theme-dark #m-asset-module .asset-issue-modern input::placeholder,
html body.theme-dark #m-asset-module .asset-issue-modern textarea::placeholder { color:#7899b1 !important; }
html body.theme-dark #m-asset-module .asset-issue-modern input:focus,
html body.theme-dark #m-asset-module .asset-issue-modern select:focus,
html body.theme-dark #m-asset-module .asset-issue-modern textarea:focus { border-color:#63d2fa !important; box-shadow:0 0 0 3px rgba(99,210,250,.16) !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .asset-return-owner,
html body.theme-dark #m-asset-module .asset-issue-modern .asset-owner-current {
  background:linear-gradient(135deg,#123a56,#103149) !important;
  border-color:#39769a !important;
  box-shadow:inset 0 1px 0 rgba(179,226,248,.06) !important;
  opacity:1 !important;
}
html body.theme-dark #m-asset-module .asset-issue-modern .asset-return-owner span,
html body.theme-dark #m-asset-module .asset-issue-modern .asset-owner-current span { color:#8fd7f4 !important; opacity:1 !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .asset-issue-proof-hint {
  background:linear-gradient(90deg,#0d3148,#0d2b41) !important;
  border-color:#326f90 !important;
  color:#bfe8fa !important;
  opacity:1 !important;
}
html body.theme-dark #m-asset-module .asset-issue-modern .article-editor-footer .btn:not(.bg) { background:#143149 !important; border-color:#3f6d89 !important; color:#e8f4fb !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .article-editor-footer .btn.bg { background:#159cc1 !important; border-color:#21b5de !important; color:#fff !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .article-editor-footer .btn.bg:hover { background:#22afd4 !important; box-shadow:0 10px 24px rgba(21,156,193,.28) !important; }

/* Import-Hilfe als kompaktes Icon mit Dialog. */
.import-upload-title-row { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.import-upload-title-row label { margin:0; }
.import-guide-trigger { display:grid; place-items:center; width:32px; height:32px; padding:0; border:1px solid #b9d6e6; border-radius:10px; background:#e8f6fc; color:#087da4; cursor:pointer; }
.import-guide-trigger:hover,.import-guide-trigger:focus-visible { border-color:#2ca9d0; background:#d7f0fb; outline:2px solid transparent; }
.import-guide-trigger svg { width:19px; height:19px; }
.import-guide-trigger[hidden] { display:none !important; }
#import-guide-dialog { width:min(600px,calc(100vw - 32px)); max-height:calc(100vh - 32px); margin:auto; padding:0; overflow:auto; border:1px solid #b9d6e6; border-radius:20px; background:#fff; color:#10283d; box-shadow:0 28px 80px rgba(6,25,42,.28); }
#import-guide-dialog::backdrop { background:rgba(3,15,27,.66); }
#import-guide-dialog .import-guide-card { margin:0; padding:22px 24px; border:0; border-radius:0; background:transparent; }
.import-guide-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; }
.import-guide-head button { display:grid; place-items:center; flex:0 0 auto; width:34px; height:34px; border:1px solid #c9dce8; border-radius:10px; background:#f2f8fb; color:#31546e; font-size:25px; line-height:1; cursor:pointer; }
.import-guide-head button:hover,.import-guide-head button:focus-visible { background:#e2f3fb; border-color:#2ca9d0; }
.import-guide-card { color:var(--ink,#10283d); font-size:14px; line-height:1.5; }
.import-guide-card strong { display:block; font-size:17px; }
.import-guide-card ol { margin:0 0 7px 20px; padding:0; }
.import-guide-card li + li { margin-top:3px; }
.import-guide-card small { display:block; color:var(--muted,#62809b); font-size:12px; }
html body.theme-dark .import-guide-trigger { border-color:#326184; background:#14344c; color:#95ddf8; }
html body.theme-dark .import-guide-trigger:hover,html body.theme-dark .import-guide-trigger:focus-visible { background:#1b4967; border-color:#56bfe0; }
html body.theme-dark #import-guide-dialog { border-color:#376585; background:#10283d; color:#e7f5ff; box-shadow:0 28px 80px rgba(0,0,0,.55); }
html body.theme-dark .import-guide-card { color:#e7f5ff; }
html body.theme-dark .import-guide-card small { color:#a8c8dc; }
html body.theme-dark .import-guide-head button { border-color:#3d6a88; background:#173c57; color:#e7f5ff; }

/* Messgeräte-Editor: dieselben Flächen und Eingabekontraste wie bei IT-Geräten. */
#m-asset-module .asset-mess-editor { width:min(1040px,calc(100vw - 32px)); max-height:calc(100vh - 32px); display:flex; flex-direction:column; overflow:hidden; border-radius:24px; }
#m-asset-module .asset-mess-editor .mh { flex:0 0 auto; padding:22px 28px; }
#m-asset-module .asset-mess-editor .mb2 { overflow:auto; padding:26px 28px; }
#m-asset-module .asset-mess-editor .fg { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
#m-asset-module .asset-mess-editor .fgf { grid-column:1/-1; }
#m-asset-module .asset-mess-editor .fld label { display:block; margin-bottom:7px; font-weight:700; }
#m-asset-module .asset-mess-editor .fld input:not([type=checkbox]),
#m-asset-module .asset-mess-editor .fld select,
#m-asset-module .asset-mess-editor .fld textarea { width:100%; min-height:44px; border-radius:12px; }
#m-asset-module .asset-mess-editor .fld textarea { min-height:84px; }
#m-asset-module .asset-mess-editor .mf { flex:0 0 auto; padding:16px 28px; }
#m-asset-module .asset-mess-warning { border-color:#f6a6ad !important; background:#fff0f0 !important; color:#ab2534 !important; font-weight:700; }
html body.theme-dark #m-asset-module .asset-mess-editor { background:#0c1d2d !important; color:#eff8ff !important; border:1px solid #315b79 !important; }
html body.theme-dark #m-asset-module .asset-mess-editor .mh,
html body.theme-dark #m-asset-module .asset-mess-editor .mf { background:#10283b !important; border-color:#315b79 !important; }
html body.theme-dark #m-asset-module .asset-mess-editor .fld label { color:#d6eafa !important; }
html body.theme-dark #m-asset-module .asset-mess-editor .fld input:not([type=checkbox]),
html body.theme-dark #m-asset-module .asset-mess-editor .fld select,
html body.theme-dark #m-asset-module .asset-mess-editor .fld textarea { background:#091927 !important; color:#f2f8fd !important; border:1px solid #426a84 !important; }
html body.theme-dark #m-asset-module .asset-issue-modern .asset-mess-warning { border-color:#a94e5b !important; background:#3a1827 !important; color:#ffd7dc !important; }
@media(max-width:700px){#m-asset-module .asset-mess-editor .fg{grid-template-columns:1fr}}

