/* P³ ERP 1.4.17.1 – live control visual correction: loaded last to keep the approved dashboard language intact. */
#view-dashboard{padding:8px 0 24px;background:radial-gradient(circle at 8% 0%,#eaf6ff 0,rgba(234,246,255,0) 26%),linear-gradient(180deg,#f7fbff 0,#fff 58%)}
#view-dashboard>.dashboard-surface{border:1px solid #dce9f5!important;border-radius:22px!important;background:#fff!important;box-shadow:0 14px 34px rgba(27,67,106,.10)!important}
#view-dashboard>.command-center{padding:30px!important;background:linear-gradient(145deg,#fff 0%,#f4f9ff 100%)!important}
#view-dashboard>.command-center .section-head{padding-bottom:4px}
#view-dashboard .live-stats{gap:16px!important;margin:26px 0 22px!important}
#view-dashboard .live-stat{min-height:108px!important;padding:18px!important;border:1px solid #dce9f5!important;border-radius:18px!important;background:#fff!important;box-shadow:0 7px 18px rgba(27,67,106,.075)!important}
#view-dashboard .live-stat:hover{border-color:#86b5e1!important;box-shadow:0 12px 25px rgba(27,67,106,.13)!important}
#view-dashboard .live-stat.is-active{background:#173f6e!important;border-color:#173f6e!important;box-shadow:0 12px 25px rgba(15,51,91,.24)!important}
#view-dashboard .live-stat.is-active .live-stat-copy small,#view-dashboard .live-stat.is-active .live-stat-copy strong,#view-dashboard .live-stat.is-active .live-stat-arrow{color:#fff!important}
#view-dashboard .live-stat.is-active .live-stat-icon{background:rgba(255,255,255,.18)!important;color:#fff!important}
#view-dashboard .live-stat-icon{flex-basis:58px!important;width:58px!important;height:58px!important;font-size:1.8rem!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
#view-dashboard .live-stat-copy{gap:5px!important}
#view-dashboard .live-stat-copy small{font-size:.96rem!important;letter-spacing:.01em!important}
#view-dashboard .live-stat-copy strong{font-size:2.25rem!important}
#view-dashboard .live-stat-arrow{font-size:1.9rem!important}
#view-dashboard .live-selection-panel{border:1px solid #dce9f5!important;border-radius:20px!important;background:#fff!important;box-shadow:0 9px 22px rgba(27,67,106,.06)!important}
#view-dashboard .live-selection-head{padding:21px 24px!important;border-bottom:1px solid #e1edf8!important;background:linear-gradient(90deg,#fff,#f2f8ff)!important}
#view-dashboard .live-selection-head:before{content:'';display:block;width:5px;align-self:stretch;margin:-21px 12px -21px -24px;border-radius:20px 0 0 0;background:linear-gradient(#247ab9,#78c5f0)}
#view-dashboard .live-selection-head h3{font-size:1.32rem!important}
#view-dashboard .live-selection-count{min-width:40px!important;height:40px!important;background:#e5f1ff!important;color:#173f6e!important}
#view-dashboard .live-detail-row{min-height:78px!important;padding:15px 24px!important;border-bottom:1px solid #edf2f7!important;background:#fff!important}
#view-dashboard .live-detail-row:nth-child(even){background:#f9fbfe!important}
#view-dashboard .live-detail-row.live-detail-alert{border-left:0!important}
#view-dashboard .live-detail-row.live-detail-alert.is-high{background:#fff8f8!important}
#view-dashboard .live-detail-row.live-detail-alert:hover{background:#eef7ff!important}
#view-dashboard .live-person{grid-template-columns:48px minmax(0,1fr)!important;column-gap:12px!important}
#view-dashboard .live-person-avatar{display:grid;place-items:center;grid-row:span 2;width:48px;height:48px;border-radius:50%;background:#dceeff;color:#1d5f9e;font-size:.9rem;font-weight:900;letter-spacing:.03em}
#view-dashboard .live-avatar-work{background:#daf7e9;color:#087b4b}.live-avatar-break{background:#e0efff;color:#1769b2}.live-avatar-absence{background:#eee7ff;color:#6b55b5}.live-avatar-sick{background:#ffe1e4;color:#c1323c}
#view-dashboard .live-person strong{font-size:1.04rem!important}
#view-dashboard .live-person small{grid-column:2!important;font-size:.88rem!important}
#view-dashboard .live-detail-hours strong{font-size:1.07rem}
#view-dashboard .live-detail-icon{width:34px!important;height:34px!important;border-radius:50%!important}
#view-dashboard .live-empty-state{padding:34px 20px!important}
#view-dashboard .tomorrow-block{margin-top:22px!important;padding:20px 22px!important;border:1px solid #dce9f5!important;border-radius:18px!important;background:linear-gradient(145deg,#fff,#f8fbff)!important}
#view-dashboard #dashboardTodoCard,#view-dashboard #dashboardMessagesCard,#view-dashboard #dashboardSupplyCard,#view-dashboard #dashboardTransportPendingCard,#view-dashboard .worker-quick,#view-dashboard .office-today{border:1px solid #dce9f5!important;border-radius:20px!important;background:#fff!important;box-shadow:0 9px 22px rgba(27,67,106,.06)!important}
@media(max-width:1100px){#view-dashboard .live-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){#view-dashboard{padding:0 0 16px}#view-dashboard>.command-center{padding:19px!important;border-radius:18px!important}#view-dashboard .live-stats{grid-template-columns:1fr!important;gap:10px!important;margin:20px 0!important}#view-dashboard .live-stat{min-height:82px!important;padding:13px 15px!important;border-radius:15px!important}#view-dashboard .live-stat-icon{flex-basis:46px!important;width:46px!important;height:46px!important;font-size:1.4rem!important}#view-dashboard .live-stat-copy small{font-size:.92rem!important}#view-dashboard .live-stat-copy strong{font-size:1.7rem!important}#view-dashboard .live-selection-head{padding:17px!important}#view-dashboard .live-selection-head:before{width:4px;margin:-17px 10px -17px -17px}#view-dashboard .live-detail-row{min-height:72px!important;padding:14px 16px!important}#view-dashboard .live-person{grid-template-columns:42px minmax(0,1fr)!important;column-gap:10px!important}#view-dashboard .live-person-avatar{width:42px;height:42px;font-size:.82rem}#view-dashboard .live-detail-row .live-end-button,#view-dashboard .live-row-spacer{grid-column:1/-1!important}#view-dashboard .tomorrow-block{padding:17px!important}}

/* BUG-105: Keep control messages left aligned despite generic button styles. */
#view-dashboard .live-selection-head{justify-content:flex-start!important;text-align:left!important}
#view-dashboard .live-selection-head>div{flex:1;min-width:0}
#view-dashboard .live-selection-head:before{flex-shrink:0}
#view-dashboard .live-selection-count{flex-shrink:0}
#view-dashboard button.live-detail-row.live-detail-alert{display:grid!important;grid-template-columns:34px minmax(0,1fr) auto!important;justify-content:start!important;text-align:left!important}
#view-dashboard .live-detail-alert>span:nth-child(2){min-width:0;text-align:left!important;overflow-wrap:anywhere}