/* PUBLIMEDIA - app styles layered on top of Bootstrap 5. */
:root {
    --pm-primary: #0d3b66;
    --pm-accent: #ee964b;
    --pm-bg: #f5f7fa;
}
body { background: var(--pm-bg); }

.pm-topbar { background: var(--pm-primary); color: #fff; }
.pm-topbar .brand { font-weight: 700; letter-spacing: .5px; }

.pm-layout { display: flex; min-height: calc(100vh - 56px); }
.pm-sidebar { width: 230px; background: #fff; border-right: 1px solid #e3e8ef; padding: 1rem 0; }
.pm-sidebar a { display: flex; align-items: center; padding: .55rem 1.25rem; color: #33415c; text-decoration: none; }
.pm-sidebar a:hover, .pm-sidebar a.active { background: #eef2f7; color: var(--pm-primary); font-weight: 600; }
.pm-sidebar a i { width: 1.25rem; margin-right: .65rem; font-size: 1.05rem; text-align: center; color: var(--pm-accent); }
.pm-sidebar a.active i, .pm-sidebar a:hover i { color: var(--pm-primary); }
.pm-main { flex: 1; padding: 1.5rem 2rem; }

.pm-toasts { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 1080; }
.pm-toast { padding: .6rem 1rem; border-radius: .4rem; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); font-size: .9rem; }
.pm-toast-info { background: #3a6ea5; }
.pm-toast-success { background: #2e7d32; }
.pm-toast-error { background: #c62828; }
.pm-toast-warning { background: #ef6c00; }

.pm-row-flash { animation: pmFlash 1.2s ease-out; }
@keyframes pmFlash { from { background: #fff3cd; } to { background: transparent; } }

.pm-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.pm-sortable:hover { color: var(--pm-primary); }

.pm-kpi-icon { font-size: 2.2rem; opacity: .28; }

/* Kanban pipeline */
.pm-kanban { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }
.pm-kan-col { flex: 0 0 230px; background: #eef2f7; border-radius: .5rem; display: flex; flex-direction: column; max-height: calc(100vh - 200px); }
.pm-kan-col h6 { padding: .6rem .75rem; margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .3px; border-bottom: 2px solid #d4dce6; display: flex; justify-content: space-between; }
.pm-kan-body { padding: .5rem; overflow-y: auto; flex: 1; min-height: 60px; }
.pm-kan-body.drop-hover { background: #dde7f3; }
.pm-kan-card { background: #fff; border: 1px solid #e3e8ef; border-radius: .4rem; padding: .5rem .6rem; margin-bottom: .5rem; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.pm-kan-card:hover { border-color: var(--pm-accent); }
.pm-kan-card.stale { border-left: 3px solid #c62828; }
.pm-kan-card .az { font-weight: 600; color: var(--pm-primary); }

/* Report bars */
.pm-bar-track { background: #eef2f7; border-radius: .3rem; height: 1.25rem; overflow: hidden; }
.pm-bar-fill { background: var(--pm-primary); height: 100%; border-radius: .3rem; min-width: 2px; transition: width .3s; }
.pm-bar-fill.accent { background: var(--pm-accent); }
.pm-bar-fill.green  { background: #2e7d32; }
.pm-bar-fill.red    { background: #c62828; }
