/* Desktop dashboard customizing (js/dash-customize.js) */
.dash-off { display: none !important; }

/* Lists and charts: one 6-column grid; S = 2, M = 3 (today's look), L = 6 */
.dc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.dc-grid > * { grid-column: span 3; min-width: 0; }
.dc-grid > .dash-s { grid-column: span 2; }
.dc-grid > .dash-l { grid-column: span 6; }
@media (max-width: 1000px) { .dc-grid > * { grid-column: span 6 !important; } }

.dc-bar-row { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.dc-btn { gap: 7px; }
.dc-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--safety-orange-l); border: 1px solid var(--safety-orange); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 16px;
}
.dc-banner-t { font-weight: 600; font-size: 14px; color: var(--text); }
.dc-banner-s { font-size: 13px; color: var(--text2); margin-right: auto; }

.dc-block { position: relative; overflow: visible !important; outline: 1.5px dashed var(--border2, var(--border)); outline-offset: 3px; }
.dc-block .stat-label, .dc-block .panel-header { padding-left: 26px; }
.dc-h {
  position: absolute; top: 9px; left: 9px; width: 22px; height: 22px; border-radius: 7px; z-index: 3;
  background: var(--bg3); color: var(--text2); display: flex; align-items: center; justify-content: center; cursor: grab;
  touch-action: none;
}
.dc-h:active { cursor: grabbing; }
.dc-x {
  position: absolute; top: -10px; right: -10px; width: 24px; height: 24px; border-radius: 50%; z-index: 4;
  background: var(--text); color: var(--bg2); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.dc-sz {
  position: absolute; top: 12px; right: 118px; z-index: 3; display: flex; gap: 2px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 2px;
}
.dc-sz button { border: none; background: none; font: inherit; font-size: 11.5px; padding: 3px 9px; border-radius: 6px; color: var(--text2); cursor: pointer; }
.dc-sz button.on { background: var(--text); color: var(--bg2); }
.dc-ph {
  border: 2px dashed var(--safety-orange); background: var(--safety-orange-l); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; color: var(--safety-orange); font-weight: 600; font-size: 13px;
}
.dc-lift { position: fixed !important; z-index: 1000; margin: 0 !important; pointer-events: none; transform: rotate(-1deg) scale(1.02); box-shadow: 0 18px 40px rgba(0,0,0,.22); outline-color: var(--safety-orange); }

#p-dashboard.dc-panel-open { margin-right: 350px; }
#dash-cust-panel {
  position: fixed; top: 61px; right: 0; bottom: 0; width: 330px; z-index: 60; overflow-y: auto;
  background: var(--bg2); border-left: 1px solid var(--border); box-shadow: -12px 0 40px rgba(0,0,0,.08); padding: 16px;
}
.dc-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dc-panel-t { font-size: 16px; font-weight: 600; color: var(--text); }
.dc-panel-x { border: none; background: none; font-size: 22px; line-height: 1; color: var(--text3); cursor: pointer; }
.dc-sec { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); margin: 14px 0 6px; }
.dc-it {
  display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; font: inherit;
  padding: 10px 12px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg2); color: var(--text); cursor: pointer;
}
.dc-it:hover { background: var(--bg3); }
.dc-it-n { font-weight: 600; font-size: 13.5px; }
.dc-it-p { width: 24px; height: 24px; border-radius: 50%; background: var(--safety-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; }
.dc-none { font-size: 13px; color: var(--text3); padding: 14px 2px; }

/* Optional blocks: my tasks, shortcut buttons */
.dc-tasks { font-size: 13.5px; }
.dc-task { padding: 9px 2px; border-top: 1px solid var(--bg3); cursor: pointer; }
.dc-task:first-child { border-top: none; }
.dc-task-t { font-weight: 600; color: var(--text); }
.dc-task-m { font-size: 12.5px; color: var(--text3); margin-top: 2px; }
.dc-task-m.late { color: var(--danger); }
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dc-chip-wrap { position: relative; display: inline-flex; }
.dc-chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text);
  border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
}
.dc-chip:hover { background: var(--bg3); }
.dc-chip-add { border-style: dashed; color: var(--safety-orange); background: transparent; }
.dc-chip-x { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%; border: none; background: var(--text); color: var(--bg2); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.dc-q { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font: inherit; background: var(--bg2); color: var(--text); margin: 4px 0 2px; }
#dash-cust-bar { margin-bottom: 4px; }

/* Training KPIs section (same header look as the HSE KPI Dashboard) */
#dash-training-section { margin-top: 4px; }
.dc-tr-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.dc-tr-title { font-size: 17px; font-weight: 700; color: var(--text); }
