/* DLWE Incident Reporting & Resolution Management — Phase 8C */
.dlwe-incidents-panel{--incident-ink:#1d1915;--incident-muted:#756d63;--incident-line:#ded4c6;--incident-paper:#fffdf9;--incident-canvas:#f4efe7;--incident-gold:#a87939;--incident-critical:#8d2528;--incident-high:#b85d2f;--incident-medium:#b28a2f;--incident-low:#4c745f;--incident-shadow:0 18px 50px rgba(53,40,25,.09)}
.dlwe-incidents-header{align-items:flex-start}.dlwe-incidents-header .dlwe-header-actions{max-width:520px;justify-content:flex-end}
.dlwe-incident-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:0 0 18px}
.dlwe-incident-summary-card{position:relative;min-height:126px;padding:19px 20px;border:1px solid var(--incident-line);border-radius:20px;background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(250,246,239,.96));box-shadow:0 10px 32px rgba(62,45,26,.06);overflow:hidden}
.dlwe-incident-summary-card:after{content:"";position:absolute;inset:auto -26px -35px auto;width:92px;height:92px;border-radius:50%;background:rgba(168,121,57,.07)}
.dlwe-incident-summary-card span{display:block;color:var(--incident-muted);font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.dlwe-incident-summary-card strong{display:block;margin-top:13px;font:500 34px/1 Georgia,serif;color:var(--incident-ink)}.dlwe-incident-summary-card small{display:block;margin-top:8px;color:#8c8378;font-size:11px;line-height:1.4}
.dlwe-incident-summary-card.is-critical{border-color:rgba(141,37,40,.28);background:linear-gradient(145deg,#fffafa,#f9eeee)}.dlwe-incident-summary-card.is-critical strong{color:var(--incident-critical)}
.dlwe-incident-summary-card.is-overdue{border-color:rgba(184,93,47,.25)}.dlwe-incident-summary-card.is-overdue strong{color:var(--incident-high)}
.dlwe-incidents-control-card{margin-bottom:18px;padding:18px;border:1px solid var(--incident-line);border-radius:20px;background:var(--incident-paper);box-shadow:0 10px 34px rgba(54,41,25,.055)}
.dlwe-incidents-filter-grid{display:grid;grid-template-columns:1.2fr .9fr .85fr 1.05fr 1.1fr 1.7fr;gap:12px}.dlwe-incidents-filter-grid label{display:flex;flex-direction:column;gap:7px}.dlwe-incidents-filter-grid label>span{color:#675e53;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.dlwe-incidents-filter-grid select,.dlwe-incidents-filter-grid input{width:100%;height:43px;padding:0 12px;border:1px solid var(--incident-line);border-radius:12px;background:#fff;color:var(--incident-ink);outline:none}.dlwe-incidents-filter-grid select:focus,.dlwe-incidents-filter-grid input:focus{border-color:var(--incident-gold);box-shadow:0 0 0 3px rgba(168,121,57,.11)}
.dlwe-incidents-filter-actions{display:flex;align-items:center;gap:16px;margin-top:14px;padding-top:14px;border-top:1px solid #eee5d8}.dlwe-incidents-filter-actions .dlwe-history-count{margin-left:auto}
.dlwe-incidents-tabs{display:flex;gap:7px;margin:0 0 17px;padding:6px;border:1px solid var(--incident-line);border-radius:16px;background:#ece5da;width:max-content;max-width:100%;overflow:auto}.dlwe-incidents-tab{min-height:39px;padding:0 16px;border:0;border-radius:11px;background:transparent;color:#70675c;font-size:12px;font-weight:750;white-space:nowrap;cursor:pointer}.dlwe-incidents-tab.is-active{background:#fff;color:var(--incident-ink);box-shadow:0 4px 15px rgba(48,34,19,.09)}
.dlwe-incidents-tab-panel[hidden]{display:none!important}.dlwe-incident-register{display:grid;gap:13px}
.dlwe-incident-card{position:relative;display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:0;min-height:150px;border:1px solid var(--incident-line);border-radius:20px;background:var(--incident-paper);box-shadow:0 10px 30px rgba(56,40,22,.055);overflow:hidden;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.dlwe-incident-card:hover{transform:translateY(-1px);border-color:#cdbb9f;box-shadow:var(--incident-shadow)}
.dlwe-incident-severity-rail{background:var(--incident-low)}.dlwe-incident-card.severity-medium .dlwe-incident-severity-rail{background:var(--incident-medium)}.dlwe-incident-card.severity-high .dlwe-incident-severity-rail{background:var(--incident-high)}.dlwe-incident-card.severity-critical .dlwe-incident-severity-rail{background:var(--incident-critical)}
.dlwe-incident-card-main{padding:18px 21px}.dlwe-incident-card-top{display:flex;align-items:flex-start;gap:12px}.dlwe-incident-card-title{min-width:0;flex:1}.dlwe-incident-card-title h3{margin:5px 0 0;font:500 21px/1.25 Georgia,serif;color:var(--incident-ink)}.dlwe-incident-card-title p{margin:8px 0 0;color:var(--incident-muted);font-size:12px;line-height:1.5}.dlwe-incident-id{color:#8e724b;font-size:10px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
.dlwe-incident-card-pills{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}.dlwe-incident-pill{display:inline-flex;align-items:center;min-height:27px;padding:0 10px;border:1px solid #ddd2c2;border-radius:999px;background:#f8f4ed;color:#665d52;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.dlwe-incident-pill.severity-critical{border-color:rgba(141,37,40,.28);background:#fceced;color:var(--incident-critical)}.dlwe-incident-pill.severity-high{border-color:rgba(184,93,47,.28);background:#fff0e8;color:#9b4721}.dlwe-incident-pill.severity-medium{border-color:rgba(178,138,47,.28);background:#fff7dd;color:#836519}.dlwe-incident-pill.severity-low{border-color:rgba(76,116,95,.28);background:#edf7f1;color:#3d6b54}.dlwe-incident-pill.status-resolved,.dlwe-incident-pill.status-closed{background:#edf7f1;color:#3d6b54}.dlwe-incident-pill.status-action-required,.dlwe-incident-pill.status-investigating{background:#fff5dd;color:#7d5e17}.dlwe-incident-pill.status-open{background:#f5eeee;color:#823535}.dlwe-incident-pill.is-confidential{background:#2c2721;color:#fff;border-color:#2c2721}
.dlwe-incident-card-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:15px}.dlwe-incident-meta-item{min-width:0;padding:10px 11px;border-radius:12px;background:#f8f4ed}.dlwe-incident-meta-item span{display:block;color:#92887c;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.dlwe-incident-meta-item strong{display:block;margin-top:5px;color:#51493f;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dlwe-incident-card-action{display:flex;align-items:center;padding:20px;border-left:1px solid #eee5d9}.dlwe-incident-open-button{min-width:104px;height:40px;border:1px solid #2b251f;border-radius:12px;background:#2b251f;color:#fff;font-size:11px;font-weight:800;cursor:pointer}.dlwe-incident-open-button:hover{background:#40372d}
.dlwe-incident-empty{padding:48px 24px;border:1px dashed #cfc2ae;border-radius:21px;background:rgba(255,253,249,.72);text-align:center}.dlwe-incident-empty strong{display:block;font:500 25px/1.2 Georgia,serif}.dlwe-incident-empty p{max-width:520px;margin:10px auto 0;color:var(--incident-muted);line-height:1.6}
.dlwe-incidents-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dlwe-incidents-review-card{min-height:320px;padding:20px;border:1px solid var(--incident-line);border-radius:20px;background:var(--incident-paper);box-shadow:0 10px 32px rgba(55,40,23,.05)}.dlwe-incident-review-list{display:grid;gap:10px;margin-top:14px}.dlwe-incident-review-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:13px 14px;border:1px solid #e7ddcf;border-radius:14px;background:#fbf8f2}.dlwe-incident-review-item h3{margin:0;font-size:13px}.dlwe-incident-review-item p{margin:5px 0 0;color:var(--incident-muted);font-size:11px;line-height:1.45}.dlwe-incident-review-item button{align-self:center}
.dlwe-incident-activity-list{display:grid;gap:10px}.dlwe-incident-activity-item{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:12px;padding:14px 16px;border:1px solid var(--incident-line);border-radius:15px;background:var(--incident-paper)}.dlwe-incident-activity-dot{width:10px;height:10px;margin-top:5px;border-radius:50%;background:var(--incident-gold);box-shadow:0 0 0 5px rgba(168,121,57,.1)}.dlwe-incident-activity-item h3{margin:0;font-size:13px}.dlwe-incident-activity-item p{margin:5px 0 0;color:var(--incident-muted);font-size:12px;line-height:1.5}.dlwe-incident-activity-item time{color:#91877a;font-size:10px;white-space:nowrap}
.dlwe-incident-detail{animation:dlweIncidentFade .2s ease}.dlwe-incident-detail-hero{position:relative;margin-top:10px;padding:26px;border:1px solid var(--incident-line);border-radius:24px;background:linear-gradient(140deg,#fffdf9,#f5eee4);box-shadow:var(--incident-shadow);overflow:hidden}.dlwe-incident-detail-hero:before{content:"";position:absolute;inset:0 auto 0 0;width:8px;background:var(--incident-low)}.dlwe-incident-detail-hero.severity-medium:before{background:var(--incident-medium)}.dlwe-incident-detail-hero.severity-high:before{background:var(--incident-high)}.dlwe-incident-detail-hero.severity-critical:before{background:var(--incident-critical)}.dlwe-incident-detail-heading{display:flex;justify-content:space-between;gap:20px}.dlwe-incident-detail-heading h2{margin:8px 0 0;font:500 32px/1.15 Georgia,serif}.dlwe-incident-detail-heading p{margin:10px 0 0;color:var(--incident-muted);line-height:1.6}.dlwe-incident-detail-actions{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.dlwe-incident-detail-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-top:17px}.dlwe-incident-detail-card{padding:20px;border:1px solid var(--incident-line);border-radius:19px;background:var(--incident-paper);box-shadow:0 8px 25px rgba(55,41,24,.045)}.dlwe-incident-detail-card h3{margin:0 0 14px;font:500 21px/1.2 Georgia,serif}.dlwe-incident-detail-card h4{margin:18px 0 7px;font-size:11px;letter-spacing:.1em;text-transform:uppercase}.dlwe-incident-detail-card p{margin:0;color:#635b51;line-height:1.65;white-space:pre-wrap}.dlwe-incident-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dlwe-incident-fact{padding:11px;border-radius:12px;background:#f8f4ed}.dlwe-incident-fact span{display:block;color:#91877a;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.dlwe-incident-fact strong{display:block;margin-top:5px;font-size:12px;overflow-wrap:anywhere}.dlwe-incident-link-list{display:grid;gap:7px}.dlwe-incident-link-list a{display:block;padding:10px 12px;border:1px solid #e6dac8;border-radius:10px;color:#76552c;text-decoration:none;overflow-wrap:anywhere}.dlwe-incident-link-list a:hover{background:#f8f0e3}
.dlwe-incident-response-form{margin-top:16px;padding-top:16px;border-top:1px solid #eadfce}.dlwe-incident-response-form textarea{width:100%;min-height:95px;padding:12px;border:1px solid var(--incident-line);border-radius:12px;resize:vertical}.dlwe-incident-response-row{display:grid;grid-template-columns:1fr 1fr auto;gap:9px;margin-top:9px}.dlwe-incident-response-row select,.dlwe-incident-response-row input{height:42px;padding:0 11px;border:1px solid var(--incident-line);border-radius:11px;background:#fff}.dlwe-incident-response-row button{min-width:110px}
.dlwe-incident-editor .dlwe-approval-heading{margin-top:10px}.dlwe-incident-editor .dlwe-form-section{box-shadow:0 8px 30px rgba(55,39,22,.045)}.dlwe-incident-editor select[multiple]{min-height:170px;padding:8px}.dlwe-incident-resolution-section{border-color:rgba(168,121,57,.35)!important;background:linear-gradient(145deg,#fffdf9,#faf4e9)!important}
@keyframes dlweIncidentFade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:1180px){.dlwe-incident-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.dlwe-incidents-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dlwe-incident-card-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.dlwe-incident-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.dlwe-incidents-filter-grid{grid-template-columns:1fr 1fr}.dlwe-incidents-review-grid,.dlwe-incident-detail-grid{grid-template-columns:1fr}.dlwe-incident-card{grid-template-columns:7px minmax(0,1fr)}.dlwe-incident-card-action{grid-column:2;border-left:0;border-top:1px solid #eee5d9;padding:12px 20px;justify-content:flex-end}.dlwe-incident-detail-heading{display:block}.dlwe-incident-detail-actions{justify-content:flex-start;margin-top:16px}}
@media(max-width:560px){.dlwe-incident-summary,.dlwe-incidents-filter-grid{grid-template-columns:1fr}.dlwe-incident-summary-card{min-height:105px}.dlwe-incident-card-meta,.dlwe-incident-facts{grid-template-columns:1fr}.dlwe-incident-card-top{display:block}.dlwe-incident-card-pills{justify-content:flex-start;margin-top:10px}.dlwe-incidents-filter-actions{align-items:flex-start;flex-direction:column}.dlwe-incidents-filter-actions .dlwe-history-count{margin-left:0}.dlwe-incident-response-row{grid-template-columns:1fr}.dlwe-incident-detail-hero{padding:22px 20px}.dlwe-incident-detail-heading h2{font-size:27px}}
@media print{body.dlwe-print-incidents .dlwe-sidebar,body.dlwe-print-incidents .dlwe-header-actions,body.dlwe-print-incidents .dlwe-incidents-control-card,body.dlwe-print-incidents .dlwe-incidents-tabs,body.dlwe-print-incidents .dlwe-incident-card-action{display:none!important}body.dlwe-print-incidents .dlwe-portal-main{margin:0!important;padding:0!important}.dlwe-incident-card{break-inside:avoid;box-shadow:none}}

/* v6.8.0 — DLWE Brand System alignment for Incident Management */
.dlwe-incidents-panel{--incident-ink:#1A1516;--incident-muted:#776C69;--incident-line:#E2D4D2;--incident-paper:#FFFDFC;--incident-canvas:#F9F5F3;--incident-gold:#B76E78;--incident-critical:#8D3F46;--incident-high:#A25C43;--incident-medium:#9A7349;--incident-low:#456E59;--incident-shadow:0 18px 50px rgba(64,42,46,.09);font-family:"Book Antiqua","Palatino Linotype",Palatino,Georgia,serif}
.dlwe-incident-summary-card{background:linear-gradient(145deg,rgba(255,253,252,.98),rgba(252,245,245,.96))}
.dlwe-incident-summary-card:after{background:rgba(183,110,120,.07)}
.dlwe-incident-summary-card strong,.dlwe-incident-card-title h3,.dlwe-incident-empty strong,.dlwe-incident-detail-heading h2,.dlwe-incident-detail-card h3{font-family:"Book Antiqua","Palatino Linotype",Palatino,Georgia,serif}
.dlwe-incidents-filter-grid select:focus,.dlwe-incidents-filter-grid input:focus{border-color:#B76E78;box-shadow:0 0 0 3px rgba(183,110,120,.11)}
.dlwe-incident-card:hover{border-color:rgba(183,110,120,.45)}
.dlwe-incident-activity-dot{background:#B76E78;box-shadow:0 0 0 5px rgba(183,110,120,.10)}
