.pf-dashboard { display: flex; flex-direction: column; gap: 1.25rem; --pf-border: rgb(229 231 235); --pf-surface: #fff; --pf-muted: rgb(107 114 128); --pf-soft: rgb(249 250 251); }
.dark .pf-dashboard { --pf-border: rgb(55 65 81); --pf-surface: rgb(17 24 39); --pf-muted: rgb(156 163 175); --pf-soft: rgb(31 41 55); }
.pf-muted { color: var(--pf-muted); font-size: .8rem; }
.pf-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.pf-switch { display: inline-flex; border: 1px solid var(--pf-border); border-radius: .5rem; overflow: hidden; }
.pf-switch button { padding: .35rem .8rem; font-size: .85rem; background: var(--pf-surface); }
.pf-switch button + button { border-left: 1px solid var(--pf-border); }
.pf-switch .pf-switch-active { background: rgb(79 70 229); color: #fff; }
.pf-select { border: 1px solid var(--pf-border); border-radius: .5rem; padding: .35rem 2rem .35rem .6rem; font-size: .85rem; background-color: var(--pf-surface); }
.pf-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.pf-card { background: var(--pf-surface); border: 1px solid var(--pf-border); border-left-width: 4px; border-radius: .75rem; padding: .85rem 1rem; }
.pf-card-label { font-size: .8rem; color: var(--pf-muted); }
.pf-card-value { font-size: 1.6rem; font-weight: 700; line-height: 1.3; }
.pf-card-hint { font-size: .75rem; color: var(--pf-muted); }
.pf-tone-neutral { border-left-color: rgb(156 163 175); }
.pf-tone-danger { border-left-color: rgb(220 38 38); }
.pf-tone-danger .pf-card-value { color: rgb(220 38 38); }
.pf-tone-warning { border-left-color: rgb(217 119 6); }
.pf-tone-success { border-left-color: rgb(22 163 74); }
.pf-tone-primary { border-left-color: rgb(79 70 229); }
.pf-tone-primary .pf-card-value { font-size: 1.15rem; padding: .25rem 0; }
.pf-panel { background: var(--pf-surface); border: 1px solid var(--pf-border); border-radius: .75rem; padding: 1rem; }
.pf-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.pf-panel-head h2 { font-weight: 600; font-size: 1rem; margin-right: auto; }
.pf-gantt { overflow-x: auto; }
.pf-gantt-row { display: flex; min-width: 760px; border-top: 1px solid var(--pf-border); }
.pf-gantt-header { border-top: 0; }
.pf-gantt-name { flex: 0 0 170px; padding: .4rem .5rem; font-size: .85rem; font-weight: 500; }
.pf-gantt-track { position: relative; flex: 1; min-height: 34px; }
.pf-gantt-header .pf-gantt-track { height: 22px; min-height: 22px; }
.pf-gantt-week { position: absolute; top: 2px; font-size: .7rem; color: var(--pf-muted); padding-left: 3px; border-left: 1px solid var(--pf-border); }
.pf-gantt-grid { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--pf-border); }
.pf-gantt-today { position: absolute; top: 0; bottom: 0; border-left: 2px solid rgb(220 38 38); z-index: 2; }
.pf-bar { position: absolute; height: 22px; border-radius: .35rem; font-size: .72rem; line-height: 22px; padding: 0 .4rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; }
.pf-bar:hover { filter: brightness(1.1); z-index: 3; }
.pf-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 999px; margin-right: .3rem; vertical-align: middle; }
.pf-status-planned { background: rgb(148 163 184); }
.pf-status-waiting_for_documents { background: rgb(217 119 6); }
.pf-status-in_progress { background: rgb(37 99 235); }
.pf-status-in_review { background: rgb(124 58 237); }
.pf-status-for_delivery { background: rgb(13 148 136); }
.pf-status-completed { background: rgb(22 163 74); }
.pf-status-cancelled { background: rgb(107 114 128); }
.pf-bar-overdue, .pf-dot.pf-bar-overdue { background: rgb(220 38 38); box-shadow: 0 0 0 2px rgb(254 202 202); }
.pf-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .75rem; font-size: .78rem; color: var(--pf-muted); }
.pf-split { display: flex; flex-direction: column; gap: 1.25rem; }
.pf-split .pf-deadlines { order: -1; }
.pf-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(165px, 1fr); gap: .75rem; overflow-x: auto; }
.pf-board-col { background: var(--pf-soft); border-radius: .6rem; padding: .5rem; display: flex; flex-direction: column; gap: .5rem; min-height: 120px; }
.pf-board-title { font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: .25rem; }
.pf-board-title .pf-muted { margin-left: auto; }
.pf-ticket { display: flex; flex-direction: column; gap: .1rem; background: var(--pf-surface); border: 1px solid var(--pf-border); border-radius: .5rem; padding: .5rem; font-size: .8rem; }
.pf-ticket:hover { border-color: rgb(79 70 229); }
.pf-ticket-overdue { border-left: 4px solid rgb(220 38 38); }
.pf-due { font-size: .72rem; color: var(--pf-muted); }
.pf-due-overdue { color: rgb(220 38 38); font-weight: 600; }
.pf-deadlines { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 1.25rem; }
.pf-deadlines .pf-panel-head, .pf-deadlines > p { grid-column: 1 / -1; }
.pf-deadline { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem .25rem; border-bottom: 1px solid var(--pf-border); font-size: .82rem; }
.pf-deadline:hover { background: var(--pf-soft); }
.pf-days { flex: 0 0 104px; font-size: .75rem; font-weight: 600; border-radius: .35rem; padding: .1rem .35rem; text-align: center; background: var(--pf-soft); }
.pf-days-soon { background: rgb(254 243 199); color: rgb(146 64 14); }
.pf-days-overdue { background: rgb(254 226 226); color: rgb(153 27 27); }
