/* =====================================================
   POWER BI STYLE DASHBOARD - TMS
   Modern analytics dashboard styling
   ===================================================== */

/* Dashboard Container */
.pbi-dashboard {
    padding: 32px;
    background: #f0f2f8; /* Power BI canvas color */
    min-height: 100vh;
    font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
}

/* Header — dark navy gradient command bar (full-bleed) */
.pbi-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: -32px -32px 24px;
    padding: 12px 32px;
    border-bottom: none;
    background: linear-gradient(120deg, #0b1437 0%, #1a2454 58%, #252f6b 100%);
    box-shadow: 0 4px 18px rgba(11, 20, 55, 0.22);
}

.pbi-title {
    font-size: 28px;
    font-weight: 600;
    color: #323130;
    margin: 0;
    letter-spacing: -0.5px;
}

.pbi-subtitle {
    font-size: 14px;
    color: #605e5c;
    font-weight: 400;
    margin-top: 4px;
}

.pbi-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pbi-refresh-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pbi-save-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #dbe1ea;
    color: #475569;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.pbi-save-state.is-saving {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.28);
}

.pbi-save-state.is-pending {
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.24);
}

.pbi-save-state.is-saved {
    color: #047857;
    border-color: rgba(4, 120, 87, 0.24);
}

.pbi-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.1s ease;
    border: 1px solid transparent;
}

.pbi-btn-refresh {
    background: #ffffff;
    color: #323130;
    border: 1px solid #8a8886;
    box-shadow: none;
}

.pbi-btn-refresh:hover:not(:disabled) {
    background: #f3f2f1;
    transform: none;
    box-shadow: none;
}

.pbi-btn-customize,
.pbi-btn-secondary,
.pbi-btn-save {
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.pbi-btn-customize,
.pbi-btn-secondary {
    background: #fff;
    color: #1f2937;
    border: 1px solid #dbe1ea;
}

.pbi-btn-save {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border: 1px solid transparent;
}

/* ── Power BI slicer bar (filter pane) ── */
.pbi-slicer-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: -8px 0 16px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e6eaf2;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.pbi-slicer-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.pbi-slicer-group + .pbi-slicer-group,
.pbi-slicer-bar > .pbi-slicer-custom-range {
    border-left: 1px solid #eef2f7;
    padding-left: 14px;
}

.pbi-slicer-location {
    margin-left: auto;
}

.pbi-slicer-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 8px;
    background: #f4f7fe;
    color: #4318ff;
    font-size: 13px;
}

.pbi-slicer-pill {
    border: 1px solid #dbe1ea;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pbi-slicer-pill:hover:not(:disabled):not(.active) {
    background: #f4f7fe;
    border-color: #b8c5e0;
    color: #1f2937;
}

.pbi-slicer-pill.active {
    background: linear-gradient(135deg, #1a2454, #2b3674);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(26, 36, 84, 0.28);
}

.pbi-slicer-pill:disabled,
.pbi-slicer-date:disabled,
.pbi-slicer-select:disabled,
.pbi-slicer-reset:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pbi-slicer-date,
.pbi-slicer-select {
    border: 1px solid #dbe1ea;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pbi-slicer-select {
    min-width: 160px;
    cursor: pointer;
}

.pbi-slicer-date:focus,
.pbi-slicer-select:focus {
    border-color: #4318ff;
    box-shadow: 0 0 0 3px rgba(67, 24, 255, 0.12);
}

.pbi-slicer-range-sep {
    color: #94a3b8;
    font-weight: 600;
}

.pbi-slicer-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.pbi-slicer-reset:hover:not(:disabled) {
    background: #fef2f2;
    color: #dc2626;
}

/* ── Cross-filter chip ── */
.pbi-crossfilter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 16px;
}

.pbi-crossfilter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 12px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
    animation: pbiChipIn 0.2s ease;
}

.pbi-crossfilter-chip > i {
    color: #4f46e5;
    font-size: 12px;
}

@keyframes pbiChipIn {
    from { opacity: 0; transform: translateY(-4px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pbi-crossfilter-chip-clear {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.14);
    color: #4f46e5;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.pbi-crossfilter-chip-clear:hover {
    background: #4f46e5;
    color: #ffffff;
}

.dashboard-widget-color-scope .legacy-shortcut-widget {
    background: #ffffff;
}

.legacy-shortcut-widget {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 16px;
    border: 1px solid #e5e9f2;
    box-shadow: 0 2px 8px rgba(99, 115, 158, 0.08), 0 12px 32px rgba(99, 115, 158, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.legacy-shortcut-widget:hover {
    border-color: #d4dae8;
    box-shadow: 0 4px 12px rgba(99, 115, 158, 0.1), 0 16px 40px rgba(99, 115, 158, 0.08);
}

.legacy-shortcut-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #eef3f9;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfe 100%);
    min-width: 0;
}

.pbi-custom-dashboard.customize-mode .legacy-shortcut-widget__header {
    padding-top: 6px;
}

.pbi-custom-dashboard.customize-mode .legacy-shortcut-widget__toggle {
    min-width: 0;
    flex: 1 1 auto;
}

.pbi-custom-dashboard.customize-mode .legacy-shortcut-widget__title {
    max-width: 100%;
}

.legacy-shortcut-widget__toggle {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    border-radius: 8px;
    color: #2b3674;
}

.legacy-shortcut-widget__toggle:hover {
    background: #f8fafc;
}

.legacy-shortcut-widget__toggle > .bi:first-child {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #f4f7fe 0%, #e8ecfc 100%);
    color: #4318ff;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(67, 24, 255, 0.08);
}

.legacy-shortcut-widget__title {
    font-size: 14px;
    font-weight: 700;
    color: #1a2454;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legacy-shortcut-widget__chevron {
    margin-left: auto;
    color: #94a3b8;
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.legacy-shortcut-widget__toggle:hover .legacy-shortcut-widget__chevron {
    color: #4318ff;
}

.legacy-shortcut-widget__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.legacy-shortcut-widget__layout-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    background: #ffffff;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.legacy-shortcut-widget__layout-btn:hover {
    background: #f8fafc;
    color: #4318ff;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.legacy-shortcut-widget__layout-btn.active {
    background: linear-gradient(135deg, #f4f7fe 0%, #e8ecfc 100%);
    border-color: #b8c5e0;
    color: #4318ff;
    box-shadow: 0 2px 6px rgba(67, 24, 255, 0.1);
}

.legacy-shortcut-widget__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 10px 12px 12px;
}

.legacy-shortcut-widget__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legacy-shortcut-widget.is-landscape .legacy-shortcut-widget__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.legacy-shortcut-widget__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #e8ecf4;
    background: #ffffff;
    color: #2b3674;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.legacy-shortcut-widget__link:hover {
    background: linear-gradient(135deg, #f8faff 0%, #f4f7fe 100%);
    border-color: #d4ddf0;
    color: #4318ff;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(67, 24, 255, 0.08);
}

.legacy-shortcut-widget__link-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.legacy-shortcut-widget__link:hover .legacy-shortcut-widget__link-icon {
    background: linear-gradient(135deg, #f4f7fe 0%, #e8ecfc 100%);
    color: #4318ff;
    transform: scale(1.05);
}

.legacy-shortcut-widget__link-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legacy-shortcut-widget__link-arrow {
    color: #cbd5e1;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.legacy-shortcut-widget__link:hover .legacy-shortcut-widget__link-arrow {
    color: #4318ff;
    transform: translateX(2px);
}

.legacy-shortcut-widget__empty {
    padding: 20px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    background: linear-gradient(135deg, #fafbff 0%, #f8f9fe 100%);
    border-radius: 10px;
    border: 1px dashed #e0e7f0;
}

.legacy-shortcut-widget.is-collapsed .legacy-shortcut-widget__body {
    display: none;
}

.pbi-widget-shell:has(.legacy-shortcut-widget) .hrm-widget-resize-handle {
    right: 0;
    bottom: 0;
    width: 24px;
    height: 24px;
    z-index: 15;
    border-bottom-right-radius: 16px;
    pointer-events: auto;
}

.pbi-custom-dashboard {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(92px, auto);
    gap: 16px;
}

.pbi-widget-shell {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell {
    padding-top: 30px;
    cursor: grab;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell:active:not(.is-resizing) {
    cursor: grabbing;
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell.is-dragging {
    opacity: 0.55;
    transform: scale(0.98);
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell.is-drag-over {
    box-shadow: 0 0 0 2px #4318ff, 0 18px 40px rgba(67, 24, 255, 0.16);
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell.is-moved {
    animation: pbiWidgetMovedFlash 0.55s ease;
}

@keyframes pbiWidgetMovedFlash {
    0% {
        transform: translateY(18px) scale(0.985);
        box-shadow: 0 0 0 0 rgba(67, 24, 255, 0), 0 10px 26px rgba(67, 24, 255, 0.10);
    }
    55% {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 0 0 2px rgba(67, 24, 255, 0.18), 0 20px 34px rgba(67, 24, 255, 0.16);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 0 rgba(67, 24, 255, 0), 0 0 0 rgba(67, 24, 255, 0);
    }
}

.pbi-widget-shell.is-short {
    min-height: 92px;
}

.pbi-widget-shell.is-medium {
    min-height: 300px;
}

.pbi-widget-shell.is-tall {
    min-height: 460px;
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell {
    padding-top: 0;
}

.pbi-widget-toolbar {
    display: none;
}

.pbi-widget-drag-handle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    cursor: grab;
    user-select: none;
}

.pbi-widget-drag-handle:active {
    cursor: grabbing;
}

.pbi-widget-toolbar-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dbe1ea;
    background: #fff;
    color: #475569;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.pbi-widget-toolbar-btn.danger {
    color: #dc2626;
}

.pbi-widget-toolbar-btn-mobile {
    display: none;
}

.pbi-widget-card-fill,
.dashboard-fancy-card {
    height: 100%;
}

.pbi-widget-card-fill {
    min-height: 100%;
}

.dashboard-widget-color-scope {
    height: 100%;
    --widget-primary: #4318ff;
    --widget-secondary: #05cd99;
    --widget-accent: #ffce20;
    --widget-bg: #ffffff;
}

.dashboard-widget-color-scope .pbi-kpi-card,
.dashboard-widget-color-scope .pbi-chart-card,
.dashboard-widget-color-scope .pbi-activity-card,
.dashboard-widget-color-scope .pbi-actions-card,
.dashboard-widget-color-scope .dashboard-fancy-card,
.dashboard-widget-color-scope .hrm-preview-widget {
    background: var(--widget-bg);
}

/* Corner Styles */
.corner-flat .pbi-kpi-card,
.corner-flat .pbi-chart-card,
.corner-flat .pbi-activity-card,
.corner-flat .pbi-actions-card,
.corner-flat .dashboard-fancy-card,
.corner-flat .hrm-preview-widget,
.corner-flat .legacy-shortcut-widget {
    border-radius: 0 !important;
}

.corner-rounded .pbi-kpi-card,
.corner-rounded .pbi-chart-card,
.corner-rounded .pbi-activity-card,
.corner-rounded .pbi-actions-card,
.corner-rounded .dashboard-fancy-card,
.corner-rounded .hrm-preview-widget,
.corner-rounded .legacy-shortcut-widget {
    border-radius: 12px !important;
}

.corner-extrarounded .pbi-kpi-card,
.corner-extrarounded .pbi-chart-card,
.corner-extrarounded .pbi-activity-card,
.corner-extrarounded .pbi-actions-card,
.corner-extrarounded .dashboard-fancy-card,
.corner-extrarounded .hrm-preview-widget,
.corner-extrarounded .legacy-shortcut-widget {
    border-radius: 24px !important;
}

.corner-circular .pbi-kpi-card,
.corner-circular .pbi-chart-card,
.corner-circular .pbi-activity-card,
.corner-circular .pbi-actions-card,
.corner-circular .dashboard-fancy-card,
.corner-circular .hrm-preview-widget,
.corner-circular .legacy-shortcut-widget {
    border-radius: 50% !important;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.dashboard-widget-color-scope .pbi-chart-header h3 i,
.dashboard-widget-color-scope .pbi-card-header h3 i,
.dashboard-widget-color-scope .pbi-link,
.dashboard-widget-color-scope .dashboard-fancy-primary,
.dashboard-widget-color-scope .dashboard-fancy-secondary,
.dashboard-widget-color-scope .dashboard-fancy-metric,
.dashboard-widget-color-scope .pbi-kpi-report-value.only {
    color: var(--widget-primary);
}

.dashboard-widget-color-scope .pbi-kpi-mini-bar,
.dashboard-widget-color-scope .pbi-kpi-mini-column,
.dashboard-widget-color-scope .pbi-kpi-stack-bar i,
.dashboard-widget-color-scope .pbi-kpi-compare-pair i.base {
    background: linear-gradient(180deg, color-mix(in srgb, var(--widget-primary) 15%, #ffffff), color-mix(in srgb, var(--widget-primary) 45%, #ffffff));
}

.dashboard-widget-color-scope .pbi-kpi-mini-bar.accent,
.dashboard-widget-color-scope .pbi-kpi-stack-bar i.top,
.dashboard-widget-color-scope .pbi-kpi-compare-pair i.accent,
.dashboard-widget-color-scope .pbi-kpi-delta-strip.positive,
.dashboard-widget-color-scope .pbi-kpi-waterfall-bar.up {
    background: linear-gradient(180deg, color-mix(in srgb, var(--widget-secondary) 18%, #ffffff), color-mix(in srgb, var(--widget-secondary) 68%, #ffffff));
}

.dashboard-widget-color-scope .pbi-kpi-delta-strip.negative,
.dashboard-widget-color-scope .pbi-kpi-waterfall-bar.down {
    background: linear-gradient(180deg, color-mix(in srgb, var(--widget-accent) 18%, #ffffff), color-mix(in srgb, var(--widget-accent) 68%, #ffffff));
}

.dashboard-widget-color-scope .pbi-kpi-line-svg polyline,
.dashboard-widget-color-scope .pbi-kpi-line-svg.overlay polyline {
    stroke: var(--widget-primary);
}

.dashboard-widget-color-scope .pbi-kpi-line-dot,
.dashboard-widget-color-scope .pbi-kpi-spark-dot {
    background: var(--widget-secondary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--widget-secondary) 16%, transparent);
}

.dashboard-widget-color-scope .pbi-kpi-mini-area {
    background: linear-gradient(180deg, color-mix(in srgb, var(--widget-secondary) 45%, transparent), color-mix(in srgb, var(--widget-primary) 12%, transparent));
}

.dashboard-widget-color-scope .pbi-action-tile:hover,
.dashboard-widget-color-scope .pbi-activity-icon,
.dashboard-widget-color-scope .dashboard-fancy-mini-fill,
.dashboard-widget-color-scope .dashboard-fancy-progress-value {
    background: color-mix(in srgb, var(--widget-primary) 12%, #ffffff);
    color: var(--widget-primary);
}

.dashboard-widget-color-scope .apexcharts-series path,
.dashboard-widget-color-scope .apexcharts-area,
.dashboard-widget-color-scope .apexcharts-bar-area {
    filter: saturate(1.15);
}

.dashboard-fancy-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e6eaf2;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 6px 16px rgba(15, 23, 42, 0.05);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-fancy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08), 0 14px 28px rgba(15, 23, 42, 0.08);
}

.dashboard-fancy-eyebrow {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-fancy-eyebrow .is-strong,
.dashboard-fancy-caption.strong {
    color: #111827;
}

.dashboard-fancy-primary {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: #111827;
}

.dashboard-fancy-secondary {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 800;
    color: #111827;
}

.dashboard-fancy-pill-row,
.dashboard-fancy-badge-stack,
.dashboard-fancy-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dashboard-fancy-stack.wide {
    width: 100%;
}

.dashboard-fancy-pill,
.dashboard-fancy-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
}

.dashboard-fancy-pill.positive,
.dashboard-fancy-badge.positive,
.positive-text {
    color: #15803d;
    background: #ecfdf5;
}

.dashboard-fancy-pill.negative,
.dashboard-fancy-badge.negative,
.negative-text {
    color: #dc2626;
    background: #fef2f2;
}

.dashboard-fancy-progress {
    position: relative;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
}

.dashboard-fancy-progress-track {
    position: absolute;
    inset: 0;
    background: #e5e7eb;
}

.dashboard-fancy-progress-value {
    position: absolute;
    inset: 0 auto 0 0;
    width: 73%;
    background: #22d3ee;
}

.dashboard-fancy-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    flex: 1;
}

.dashboard-fancy-line-area,
.dashboard-fancy-bar-breakdown,
.dashboard-fancy-waterfall {
    min-width: 0;
}

.dashboard-fancy-caption {
    font-size: 11px;
    color: #6b7280;
    font-weight: 700;
}

.dashboard-fancy-caption.centered,
.dashboard-fancy-secondary.centered {
    text-align: center;
}

.dashboard-fancy-bar-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    border-left: 1px solid #eef2f7;
    padding-left: 14px;
}

.dashboard-fancy-bar-row {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 8px;
    align-items: center;
}

.dashboard-fancy-bar-row span {
    font-size: 10px;
    color: #9ca3af;
}

.dashboard-fancy-bar-track {
    position: relative;
    height: 12px;
    background: #eff6ff;
    border-radius: 999px;
    overflow: hidden;
}

.dashboard-fancy-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.dashboard-fancy-bar-track small {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #111827;
    font-weight: 700;
}

.dashboard-fancy-waterfall {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.dashboard-fancy-waterfall-row {
    display: flex;
    justify-content: flex-end;
}

.dashboard-fancy-waterfall-bar {
    height: 12px;
    border-radius: 4px;
    background: #dc2626;
}

.dashboard-fancy-waterfall-bar.positive {
    background: #22c55e;
}

.dashboard-fancy-performance-header,
.dashboard-fancy-performance-footer,
.dashboard-fancy-metric-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hrm-calendar-month-picker-wrap,
.hrm-calendar-week-cell {
    position: relative;
}

.hrm-calendar-month-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 210px;
    z-index: 20;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.14);
    padding: 14px;
}

.hrm-calendar-month-popover label {
    display: block;
    margin: 0 0 6px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
}

.hrm-calendar-month-popover select,
.hrm-calendar-task-popover input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 12px;
    outline: none;
}

.hrm-calendar-month-popover select {
    margin-bottom: 10px;
    padding: 8px 10px;
}

.hrm-calendar-month-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.hrm-calendar-month-actions button {
    border: none;
    border-radius: 8px;
    padding: 7px 12px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

.hrm-calendar-month-actions button:last-child {
    background: #4f46e5;
    color: #fff;
}

.dashboard-fancy-performance-title {
    font-size: 11px;
    color: #4b5563;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-fancy-live {
    font-size: 9px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 2px 6px;
    font-weight: 700;
}

.pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    margin-right: 6px;
}

.dashboard-fancy-performance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    flex: 1;
}

.dashboard-fancy-metric {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.dashboard-fancy-mini-track {
    height: 6px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

.dashboard-fancy-mini-fill {
    height: 100%;
}

.dashboard-fancy-mini-fill.yellow { background: #facc15; }
.dashboard-fancy-mini-fill.cyan { background: #22d3ee; }
.dashboard-fancy-mini-fill.rose { background: #f43f5e; }
.dashboard-fancy-mini-fill.indigo { background: #6366f1; }
.dashboard-fancy-mini-fill.green { background: #22c55e; }
.dashboard-fancy-mini-fill.blue { background: #3b82f6; }

.dashboard-fancy-score-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 5px solid #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
}

.dashboard-fancy-review-row {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 20px;
}

.dashboard-fancy-review-row span {
    flex: 1;
    border-radius: 4px 4px 0 0;
}

.dashboard-fancy-review-row .good { background: #6ee7b7; }
.dashboard-fancy-review-row .warn { background: #fde68a; }

.dashboard-fancy-funnel {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100%;
    min-height: 96px;
}

.dashboard-fancy-funnel .bar {
    width: 22%;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #e9d5ff, #9333ea);
}

.dashboard-fancy-funnel .bar.one { height: 100%; }
.dashboard-fancy-funnel .bar.two { height: 68%; }
.dashboard-fancy-funnel .bar.three { height: 42%; }
.dashboard-fancy-funnel .bar.four { height: 28%; }

/* Loading State */
.pbi-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    gap: 16px;
    color: #605e5c;
}

.pbi-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    border-top-color: #4318ff;
    animation: pbiSpinnerRotate 0.8s linear infinite;
}

@keyframes pbiSpinnerRotate {
    to { transform: rotate(360deg); }
}

/* KPI Cards Row */
.pbi-kpi-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.pbi-kpi-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    justify-content: flex-start;
    min-height: 100%;
    height: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 6px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid #e6eaf2;
}

.pbi-kpi-flip {
    perspective: 1200px;
    overflow: hidden;
}

.pbi-kpi-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    transform-style: preserve-3d;
    animation: pbiKpiAutoFlip 8s ease-in-out infinite;
}

.pbi-kpi-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.pbi-kpi-face-back {
    transform: rotateY(180deg);
    justify-content: flex-start;
    gap: 4px;
    background: #fbfdff;
}

@keyframes pbiKpiAutoFlip {
    0%, 42% {
        transform: rotateY(0deg);
    }

    50%, 92% {
        transform: rotateY(180deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.pbi-kpi-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 100%;
    height: 100%;
    width: 100%;
}

.pbi-kpi-report-value {
    font-size: 20px;
    font-weight: 600;
    color: #201f1e;
    line-height: 1.05;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}

.pbi-kpi-report-value.only {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.pbi-kpi-mini-chart-wrap {
    margin-top: auto;
    width: 100%;
}

.pbi-kpi-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 66px;
    padding: 0 2px;
    border-bottom: none;
}

.pbi-kpi-mini-bar {
    flex: 1;
    min-width: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #e5effb 0%, #c8dbf7 100%);
    box-shadow: none;
    opacity: 1;
}

.pbi-kpi-mini-bar.accent {
    background: linear-gradient(180deg, #b7d1f3 0%, #8bb3ea 100%);
}

.pbi-kpi-mini-chart-area,
.pbi-kpi-mini-chart-line,
.pbi-kpi-mini-chart-mix,
.pbi-kpi-mini-chart-delta {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(to top, rgba(234, 240, 247, 0.65) 1px, transparent 1px);
    background-size: 100% 16px;
}

.pbi-kpi-mini-columns,
.pbi-kpi-mini-mix-bars,
.pbi-kpi-delta-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    align-items: end;
    width: 100%;
    height: 100%;
}

.pbi-kpi-mini-column {
    border-radius: 0;
    background: linear-gradient(180deg, rgba(191, 219, 254, 0.12) 0%, rgba(147, 197, 253, 0.6) 100%);
}

.pbi-kpi-mini-area {
    position: absolute;
    inset: 4px 2px 1px;
    background: linear-gradient(180deg, rgba(181, 226, 220, 0.52) 0%, rgba(191, 232, 248, 0.16) 100%);
}

.pbi-kpi-line-svg {
    position: absolute;
    inset: 4px 0 0;
    width: 100%;
    height: calc(100% - 4px);
}

.pbi-kpi-line-svg polyline {
    fill: none;
    stroke: #91aacd;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pbi-kpi-line-svg.overlay polyline {
    stroke: #839ec5;
    stroke-width: 1.5;
}

.pbi-kpi-line-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8aa9d2;
    border: 1px solid #fff;
    box-shadow: 0 0 0 1px rgba(138, 169, 210, 0.18);
}

.pbi-kpi-delta-baseline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    border-top: 1px solid #dfe7ef;
}

.pbi-kpi-delta-strip {
    align-self: end;
    border-radius: 0;
}

.pbi-kpi-delta-strip.positive {
    background: linear-gradient(180deg, #bde6dd 0%, #7fd0c0 100%);
}

.pbi-kpi-delta-strip.negative {
    background: linear-gradient(180deg, #f9d7e8 0%, #f3a6cf 100%);
}

.pbi-kpi-mini-chart-stacked,
.pbi-kpi-mini-chart-sparkgrid,
.pbi-kpi-mini-chart-waterfall,
.pbi-kpi-mini-chart-compare {
    position: relative;
    overflow: hidden;
}

.pbi-kpi-mini-stacked-bars,
.pbi-kpi-waterfall-bars,
.pbi-kpi-compare-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    align-items: end;
    width: 100%;
    height: 100%;
}

.pbi-kpi-stack-bar,
.pbi-kpi-compare-pair {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 100%;
}

.pbi-kpi-stack-bar i,
.pbi-kpi-compare-pair i {
    display: block;
    width: 48%;
}

.pbi-kpi-stack-bar i {
    background: linear-gradient(180deg, #dfeafb 0%, #aecaf0 100%);
}

.pbi-kpi-stack-bar i.top {
    background: linear-gradient(180deg, #f8d8ea 0%, #eeb1d2 100%);
}

.pbi-kpi-spark-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9dc8bf;
    box-shadow: 0 0 0 3px rgba(157, 200, 191, 0.16);
}

.pbi-kpi-mini-chart-sparkgrid {
    background-image:
        linear-gradient(to right, rgba(234, 240, 247, 0.7) 1px, transparent 1px),
        linear-gradient(to top, rgba(234, 240, 247, 0.7) 1px, transparent 1px);
    background-size: 16px 100%, 100% 16px;
}

.pbi-kpi-waterfall-bar {
    align-self: end;
    border-radius: 0;
}

.pbi-kpi-waterfall-bar.up {
    background: linear-gradient(180deg, #cce9df 0%, #87d2c1 100%);
}

.pbi-kpi-waterfall-bar.down {
    background: linear-gradient(180deg, #f9d7e8 0%, #f1a5ce 100%);
}

.pbi-kpi-compare-pair i.base {
    background: linear-gradient(180deg, #e8eff9 0%, #cbdbf4 100%);
}

.pbi-kpi-compare-pair i.accent {
    background: linear-gradient(180deg, #c7e8df 0%, #8ccfbe 100%);
}

.pbi-kpi-sub-empty {
    color: transparent;
}

.kpi-style-dialog {
    max-width: 760px;
}

.kpi-style-dialog-content {
    border: none;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.kpi-style-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
}

.kpi-style-dialog-header h5 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 800;
}

.kpi-style-dialog-header span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.kpi-style-dialog-header button {
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
}

.kpi-style-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 20px 20px;
}

.kpi-style-option {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
    text-align: left;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.kpi-style-option:hover,
.kpi-style-option.active {
    border-color: #4f46e5;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.14);
    transform: translateY(-1px);
}

.kpi-style-option-preview {
    height: 88px;
    border-radius: 10px;
    background: #fbfdff;
    padding: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.kpi-style-option-preview .pbi-kpi-mini-chart-wrap {
    height: 100%;
}

.kpi-style-option-preview .pbi-kpi-mini-chart {
    height: 100%;
}

.kpi-style-option > span {
    display: block;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.widget-color-dialog {
    max-width: 760px;
}

.widget-color-dialog-content {
    border: none;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.widget-color-body {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 18px;
    padding: 20px;
}

.widget-color-preview {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: var(--widget-bg);
    padding: 18px;
}

.widget-color-preview-card {
    min-height: 230px;
    border-radius: 14px;
    background: var(--widget-bg);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget-color-preview-title {
    color: var(--widget-primary);
    font-size: 24px;
    font-weight: 800;
}

.widget-color-preview-bars {
    height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.widget-color-preview-bars span {
    flex: 1;
    border-radius: 10px 10px 2px 2px;
    background: linear-gradient(180deg, var(--widget-secondary), var(--widget-primary));
}

.widget-color-preview-bars span:nth-child(3) {
    background: linear-gradient(180deg, var(--widget-accent), var(--widget-secondary));
}

.widget-color-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-color-field span {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.widget-color-input-row {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 8px;
}

.widget-color-input-row input[type="color"] {
    width: 48px;
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 3px;
}

.widget-color-input-row input:not([type="color"]) {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.widget-color-presets {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.widget-color-presets button {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    display: flex;
    gap: 2px;
    height: 36px;
}

.widget-color-presets span {
    flex: 1;
    border-radius: 6px;
}

.widget-color-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.widget-color-actions button {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
}

.widget-color-reset {
    background: #f1f5f9;
    color: #475569;
}

.widget-color-apply {
    background: #4f46e5;
    color: #fff;
}

.pbi-kpi-card .pbi-kpi-value + .pbi-kpi-label {
    margin-top: 2px;
}

.pbi-kpi-card .pbi-kpi-sub,
.pbi-kpi-card .pbi-kpi-trend {
    margin-top: auto;
}

.pbi-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08), 0 14px 28px rgba(15, 23, 42, 0.08);
}

.pbi-kpi-icon {
    display: none; /* Hide icons to match flat minimalist look */
}

.pbi-kpi-value {
    font-size: 32px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1;
    letter-spacing: -0.8px;
    margin-top: 0;
}

.pbi-kpi-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
}

.pbi-kpi-sub {
    font-size: 12px;
    color: #a19f9d;
    margin-top: 2px;
    min-height: 18px;
}

.pbi-kpi-trend {
    font-size: 12px;
    margin-top: 2px;
    min-height: 18px;
}

/* Chart Cards */
.pbi-chart-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.pbi-chart-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 6px 16px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    padding: 16px;
    border: 1px solid #e6eaf2;
}

.pbi-chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08), 0 14px 28px rgba(15, 23, 42, 0.08);
}

.pbi-chart-header {
    padding: 0 0 10px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
    background: transparent;
}

.pbi-chart-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0;
}

.pbi-chart-header h3 i {
    display: none; /* Hide icons from headers */
}

.pbi-chart-body {
    padding: 0;
}

.pbi-no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #adb5bd;
    font-size: 14px;
}

/* Bottom Row - Activities & Actions */
.pbi-bottom-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 1200px) {
    .pbi-bottom-row { grid-template-columns: 1fr; }
}

.pbi-activity-card,
.pbi-actions-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 6px 16px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    padding: 24px;
    border: 1px solid #e6eaf2;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pbi-activity-card:hover,
.pbi-actions-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08), 0 14px 28px rgba(15, 23, 42, 0.08);
}

/* ── Yard utilization gauge card ── */
.pbi-gauge-card {
    display: flex;
    flex-direction: column;
}

.pbi-gauge-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.pbi-gauge-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid #eef2f7;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.pbi-gauge-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pbi-gauge-meta i {
    color: #4318ff;
}

.pbi-card-header {
    padding: 0 0 20px 0;
    border-bottom: 1px solid #f4f7fe;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pbi-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2b3674;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pbi-card-header h3 i {
    color: #4318ff;
    font-size: 20px;
    background: #f4f7fe;
    padding: 8px;
    border-radius: 10px;
}

.pbi-link {
    font-size: 14px;
    color: #4318ff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    background: #f4f7fe;
    transition: all 0.2s ease;
}

.pbi-link:hover {
    background: #e9eefe;
    text-decoration: none;
}

/* Activity List */
.pbi-activity-list {
    padding: 16px 0 0 0;
    max-height: 480px;
    overflow-y: auto;
}

.pbi-activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #f4f7fe;
    border-radius: 16px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.pbi-activity-item:hover {
    background: #f4f7fe;
    transform: translateX(5px);
}

.pbi-activity-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.pbi-activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f4f7fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: #4318ff;
    box-shadow: 0 4px 10px rgba(67, 24, 255, 0.1);
}

.pbi-activity-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pbi-activity-container {
    font-weight: 700;
    font-size: 16px;
    color: #2b3674;
}

.pbi-activity-type {
    font-size: 13px;
    color: #a3aed1;
    font-weight: 500;
}

.pbi-activity-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.pbi-activity-line {
    font-size: 13px;
    color: #7090b0;
    font-weight: 600;
    background: #f4f7fe;
    padding: 4px 8px;
    border-radius: 8px;
}

.pbi-activity-time {
    font-size: 12px;
    color: #a3aed1;
    font-weight: 500;
}

.pbi-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Actions Grid */
.pbi-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px 0 0 0;
}

.pbi-action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background: #f4f7fe;
    border: 1px solid transparent;
}

.pbi-action-tile i {
    font-size: 32px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.pbi-action-tile span {
    font-size: 14px;
    font-weight: 700;
    color: #2b3674;
}

.pbi-action-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(112, 144, 176, 0.15);
    background: white;
}

.pbi-action-green:hover { border-color: #05cd99; }
.pbi-action-green i { color: #05cd99; }

.pbi-action-blue:hover { border-color: #4318ff; }
.pbi-action-blue i { color: #4318ff; }

.pbi-action-purple:hover { border-color: #8a2be2; }
.pbi-action-purple i { color: #8a2be2; }

.pbi-action-teal:hover { border-color: #00b5ad; }
.pbi-action-teal i { color: #00b5ad; }

.pbi-action-orange:hover { border-color: #ff8f00; }
.pbi-action-orange i { color: #ff8f00; }

.pbi-action-gray:hover { border-color: #7090b0; }
.pbi-action-gray i { color: #7090b0; }

.pbi-action-tile:hover i {
    transform: scale(1.1);
}

/* System Status */
.pbi-status-section {
    padding: 24px 0 0 0;
    margin-top: 24px;
    border-top: 1px solid #f4f7fe;
    background: transparent;
}

.pbi-status-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #2b3674;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pbi-status-section h4 i {
    color: #4318ff;
    font-size: 18px;
    background: #f4f7fe;
    padding: 6px;
    border-radius: 8px;
}

.pbi-status-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pbi-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #7090b0;
    font-weight: 600;
    padding: 12px 16px;
    background: #f4f7fe;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.pbi-status-item:hover {
    background: white;
    box-shadow: 0 8px 20px rgba(112, 144, 176, 0.1);
}

.pbi-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pbi-dot-green { background: #05cd99; box-shadow: 0 0 12px rgba(5, 205, 153, 0.5); }
.pbi-dot-yellow { background: #ffce20; box-shadow: 0 0 12px rgba(255, 206, 32, 0.5); }
.pbi-dot-red { background: #ee5d50; box-shadow: 0 0 12px rgba(238, 93, 80, 0.5); }

.pbi-status-label {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: #4318ff;
    background: white;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(67, 24, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .pbi-dashboard { padding: 20px; }
    .pbi-header { flex-direction: column; align-items: flex-start; gap: 20px; margin: -20px -20px 20px; padding: 12px 20px; }
    .pbi-slicer-location { margin-left: 0; }
    .pbi-header-right { flex-wrap: wrap; }
    .pbi-title { font-size: 26px; }
    .pbi-kpi-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .pbi-custom-dashboard { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .pbi-widget-shell { grid-row: span 1 !important; }
    .pbi-widget-toolbar-btn-desktop { display: none; }
    .pbi-widget-toolbar-btn-mobile { display: flex; }
    .pbi-kpi-value { font-size: 26px; }
    .pbi-chart-row { grid-template-columns: 1fr; gap: 16px; }
    .pbi-bottom-row { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 768px) {
    .pbi-dashboard {
        padding: 10px;
        min-height: auto;
        background: #f0f2f8;
    }

    .pbi-header {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: -10px -10px 16px;
        padding: 10px;
        border-bottom: none;
    }

    .pbi-header-left {
        flex: 1;
        min-width: 0;
    }

    .pbi-title {
        font-size: 16px;
        line-height: 1.2;
        letter-spacing: -0.3px;
        white-space: normal;
        font-weight: 700;
        color: #111827;
    }

    .pbi-subtitle {
        font-size: 11px;
        margin-top: 2px;
        white-space: normal;
        color: #6b7280;
    }

    .pbi-header-right {
        width: auto;
        flex-wrap: nowrap;
        gap: 4px;
        margin-top: 0;
    }

    .pbi-refresh-time {
        display: none;
    }

    .hrm-customize-btn,
    .pbi-btn-refresh {
        padding: 6px;
        font-size: 0;
        border-radius: 50%;
        min-width: 36px;
        height: 36px;
        justify-content: center;
        background: rgba(255,255,255,0.8) !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
        color: #4f46e5 !important;
    }

    .hrm-customize-btn i,
    .pbi-btn-refresh i {
        font-size: 18px;
    }

    .hrm-customize-btn span,
    .pbi-btn-refresh span:not(.bi) {
        display: none;
    }

    .pbi-custom-dashboard {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: minmax(76px, auto);
        gap: 10px;
    }

    .pbi-widget-shell.is-kpi-widget {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 0 !important;
    }

    .pbi-widget-shell.is-kpi-widget.is-short,
    .pbi-widget-shell.is-kpi-widget.is-medium,
    .pbi-widget-shell.is-kpi-widget.is-tall {
        min-height: 0 !important;
    }

    .pbi-widget-shell:not(.is-kpi-widget) {
        grid-column: span 3 !important;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    }

    .pbi-kpi-card {
        padding: 12px 10px 10px;
        border-radius: 16px;
        gap: 4px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
        border: 1px solid rgba(255,255,255,0.5);
        background: #ffffff;
        min-height: 76px;
        height: auto;
    }

    .pbi-kpi-flip {
        perspective: none;
        overflow: visible;
    }

    .pbi-kpi-flip-inner {
        animation: none !important;
        transform: none !important;
        min-height: 0;
        height: auto;
        position: static;
    }

    .pbi-kpi-face {
        position: static;
        inset: auto;
    }

    .pbi-kpi-face-back {
        display: none;
    }

    .pbi-kpi-value {
        font-size: 18px;
        font-weight: 700;
        letter-spacing: -0.5px;
        color: #111827;
        line-height: 1.1;
        word-break: break-all;
    }

    .pbi-kpi-label {
        font-size: 10px;
        line-height: 1.2;
        letter-spacing: 0;
        font-weight: 500;
        color: #6b7280;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pbi-kpi-sub,
    .pbi-kpi-trend {
        display: none;
    }

    .pbi-kpi-content {
        gap: 2px;
        width: 100%;
    }

    .pbi-kpi-report-value.only {
        font-size: 18px;
    }

    .pbi-kpi-mini-chart-wrap,
    .pbi-kpi-mini-chart {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .pbi-kpi-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .pbi-actions-grid {
        grid-template-columns: 1fr;
    }

    .pbi-title {
        font-size: 17px;
    }

    .pbi-chart-header h3 {
        font-size: 15px;
    }

    .dashboard-fancy-split,
    .dashboard-fancy-performance-grid {
        grid-template-columns: 1fr;
    }
}

/* HRM-style customization toolbar */
.hrm-customize-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    color: #334155;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}

.hrm-customize-btn:hover:not(:disabled) {
    border-color: #60a5fa;
    color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.hrm-customize-btn-icon {
    transition: transform 0.5s ease;
}

.hrm-customize-btn:hover .hrm-customize-btn-icon {
    transform: rotate(45deg);
}

.hrm-edit-bar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(239, 246, 255, 0.6);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    animation: hrmFadeIn 0.3s ease;
}

@keyframes hrmFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.hrm-edit-bar-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    border-right: 1px solid #dbeafe;
    margin-right: 4px;
}

.hrm-edit-bar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    animation: hrmPulse 1.6s ease-in-out infinite;
}

@keyframes hrmPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.hrm-edit-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hrm-edit-bar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hrm-edit-bar-btn-add {
    color: #16a34a;
}

.hrm-edit-bar-btn-add:hover:not(:disabled) {
    background: #f0fdf4;
}

.hrm-edit-bar-btn-icon {
    padding: 6px 10px;
    color: #94a3b8;
}

.hrm-edit-bar-btn-icon:hover:not(:disabled) {
    background: #fef2f2;
    color: #ef4444;
}

.hrm-edit-bar-btn-reset {
    color: #475569;
}

.hrm-edit-bar-btn-reset:hover:not(:disabled) {
    background: #f1f5f9;
    color: #1e293b;
}

.hrm-edit-bar-btn-save {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    padding: 6px 14px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.hrm-edit-bar-btn-save:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.hrm-edit-bar-divider {
    width: 1px;
    height: 16px;
    background: #dbeafe;
    margin: 0 4px;
}

/* HRM-style widget shell during customize: subtle hover ring + inline controls */
.pbi-custom-dashboard.customize-mode .pbi-widget-shell {
    cursor: grab;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell:hover {
    box-shadow: 0 0 0 2px rgba(67, 24, 255, 0.18), 0 12px 28px rgba(67, 24, 255, 0.08);
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell.is-locked {
    cursor: default;
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell.is-locked:hover {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35), 0 12px 28px rgba(245, 158, 11, 0.08);
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell.is-resizing {
    box-shadow: 0 0 0 2px #4318ff, 0 18px 40px rgba(67, 24, 255, 0.18);
    transition: none;
}

/* Inline controls: dedicated toolbar strip in customize mode */
.hrm-widget-controls {
    position: absolute;
    top: 4px;
    right: 6px;
    left: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px;
    z-index: 6;
    padding: 3px 4px;
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: auto;
}

.hrm-widget-controls > * {
    flex: 0 0 auto;
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell .hrm-widget-controls,
.pbi-custom-dashboard.customize-mode .pbi-widget-shell.is-resizing .hrm-widget-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hrm-widget-size-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #475569;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 6px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.hrm-widget-ctrl-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.95);
    color: #475569;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hrm-widget-ctrl-btn:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

.hrm-widget-ctrl-danger:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell.is-locked .hrm-widget-ctrl-btn .bi-pin-fill {
    color: #d97706;
}

/* Resize handle: bottom-right corner */
.hrm-widget-resize-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    cursor: se-resize;
    z-index: 15;
    opacity: 1;
    transition: opacity 0.2s ease;
    pointer-events: auto !important;
    touch-action: none;
    user-select: none;
}

.hrm-widget-resize-handle::before {
    content: '';
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 12px;
    height: 12px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell .hrm-widget-resize-handle,
.pbi-custom-dashboard.customize-mode .pbi-widget-shell.is-resizing .hrm-widget-resize-handle {
    opacity: 1;
    pointer-events: auto !important;
}

.hrm-widget-resize-handle:hover::before {
    border-color: #4318ff;
    opacity: 1;
    transform: scale(1.1);
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell.is-resizing {
    z-index: 20;
}

.pbi-custom-dashboard.customize-mode .pbi-widget-shell.is-resizing .hrm-widget-resize-handle::before {
    border-color: #4318ff;
    opacity: 1;
}

body.dashboard-resize-active .pbi-custom-dashboard.customize-mode .pbi-widget-shell {
    cursor: default !important;
    pointer-events: none !important;
}

body.dashboard-resize-active .hrm-widget-resize-handle {
    pointer-events: auto !important;
}

/* HRM add-widget chart/tool previews */
.hrm-preview-widget {
    overflow: hidden;
}

.hrm-preview-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.hrm-preview-status-tile {
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #0f172a;
}

.hrm-preview-status-tile span {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.hrm-preview-status-tile strong {
    font-size: 28px;
    font-weight: 800;
}

.hrm-preview-status-tile.success { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.hrm-preview-status-tile.warning { background: linear-gradient(135deg, #fffbeb, #fde68a); }
.hrm-preview-status-tile.danger { background: linear-gradient(135deg, #fef2f2, #fecaca); }
.hrm-preview-status-tile.info { background: linear-gradient(135deg, #eff6ff, #dbeafe); }

.hrm-preview-area-chart {
    position: relative;
    height: 220px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    overflow: hidden;
}

.hrm-preview-area-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to bottom, rgba(226, 232, 240, 0.65) 1px, transparent 1px);
    background-size: 100% 36px;
}

.hrm-preview-area-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hrm-preview-hours-bars {
    height: 220px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 8px 4px 0;
}

.hrm-preview-hours-bars .bar {
    flex: 1;
    border-radius: 14px 14px 6px 6px;
    background: linear-gradient(180deg, #818cf8, #4f46e5);
}

.hrm-preview-hours-bars .one { height: 72%; }
.hrm-preview-hours-bars .two { height: 48%; }
.hrm-preview-hours-bars .three { height: 84%; }
.hrm-preview-hours-bars .four { height: 58%; }
.hrm-preview-hours-bars .five { height: 92%; }
.hrm-preview-hours-bars .six { height: 66%; }

.hrm-preview-team-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 6px 0;
}

.hrm-preview-team-donut {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(#22c55e 0 52%, #fbbf24 52% 78%, #f43f5e 78% 100%);
    position: relative;
}

.hrm-preview-team-donut::after {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    background: #fff;
}

.hrm-preview-team-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.hrm-preview-team-legend .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.hrm-preview-team-legend .dot.green { background: #22c55e; }
.hrm-preview-team-legend .dot.amber { background: #fbbf24; }
.hrm-preview-team-legend .dot.rose { background: #f43f5e; }

.hrm-preview-calendar {
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #eef2f7;
    padding: 16px;
}

.hrm-calendar-widget,
.hrm-notification-widget,
.hrm-map-widget {
    padding: 18px 18px 16px;
}

.hrm-calendar-widget {
    overflow: visible;
}

.hrm-calendar-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.hrm-calendar-view-toggle {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #f3f4f6;
    border-radius: 8px;
}

.hrm-calendar-view-toggle button {
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #4b5563;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hrm-calendar-view-toggle button.active {
    background: #fff;
    color: #4f46e5;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.hrm-calendar-week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: #4b5563;
}

.hrm-calendar-week-nav button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.hrm-calendar-week-nav span {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.hrm-calendar-month-picker {
    border: none;
    background: #f9fafb;
    color: #111827;
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 126px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hrm-calendar-week-view {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    padding: 28px 4px 10px;
}

.hrm-calendar-week-card {
    min-height: 190px;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 22px 8px 12px;
    transition: all 0.2s ease;
}

.hrm-calendar-week-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.18);
}

.hrm-calendar-task-popover {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    z-index: 80;
    width: 245px;
    transform: translateX(-50%);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    padding: 12px;
    max-height: 265px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.hrm-calendar-week-cell:nth-child(1) .hrm-calendar-task-popover,
.hrm-calendar-week-cell:nth-child(2) .hrm-calendar-task-popover {
    left: 0;
    transform: none;
}

.hrm-calendar-week-cell:nth-child(6) .hrm-calendar-task-popover,
.hrm-calendar-week-cell:nth-child(7) .hrm-calendar-task-popover {
    left: auto;
    right: 0;
    transform: none;
}

.hrm-calendar-task-popover.compact {
    left: auto;
    right: 8px;
    top: 36px;
    width: 235px;
    transform: none;
}

.hrm-calendar-task-popover input {
    padding: 9px 10px;
}

.hrm-calendar-task-add {
    width: 100%;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background: #4f46e5;
    color: #fff;
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hrm-calendar-task-list {
    margin-top: 12px;
    border-top: 1px solid #eef2f7;
    padding-top: 10px;
    max-height: 130px;
    overflow-y: auto;
}

.hrm-calendar-task-list h4 {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hrm-calendar-task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 8px;
    padding: 7px 6px;
    color: #374151;
    font-size: 12px;
}

.hrm-calendar-task-row:hover {
    background: #f9fafb;
}

.hrm-calendar-task-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.hrm-calendar-task-row span.completed {
    color: #16a34a;
    text-decoration: line-through;
}

.hrm-calendar-task-row div {
    display: inline-flex;
    gap: 4px;
}

.hrm-calendar-task-row button {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 6px;
    background: #eef2ff;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hrm-calendar-task-row button.danger {
    background: #fee2e2;
    color: #dc2626;
}

.hrm-calendar-selected-tasks {
    margin-top: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.hrm-calendar-selected-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.hrm-calendar-selected-head h3 {
    margin: 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 800;
}

.hrm-calendar-selected-head span {
    color: #4f46e5;
    font-size: 11px;
    font-weight: 800;
}

.hrm-calendar-selected-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 145px;
    overflow-y: auto;
}

.hrm-calendar-selected-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 10px;
    background: #f9fafb;
    padding: 9px 10px;
    color: #374151;
    font-size: 12px;
}

.hrm-calendar-selected-row > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.hrm-calendar-selected-row > span.completed {
    color: #16a34a;
    text-decoration: line-through;
}

.hrm-calendar-selected-row div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hrm-calendar-selected-row button {
    border: none;
    border-radius: 7px;
    background: #eef2ff;
    color: #4f46e5;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 700;
}

.hrm-calendar-selected-row button.danger {
    width: 24px;
    height: 24px;
    padding: 0;
    background: #fee2e2;
    color: #dc2626;
}

.hrm-calendar-week-card.active,
.hrm-calendar-week-card.today {
    background: #4f46e5;
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #4f46e5;
}

.hrm-calendar-week-day {
    color: inherit;
    opacity: 0.78;
    font-size: 12px;
    font-weight: 600;
}

.hrm-calendar-week-card strong {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    min-height: 32px;
}

.hrm-calendar-week-add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 36px;
    margin: 0;
}

.hrm-calendar-week-holiday {
    color: #ef4444;
    font-size: 12px;
    font-weight: 500;
    min-height: 18px;
}

.hrm-calendar-week-card.active .hrm-calendar-week-holiday,
.hrm-calendar-week-card.today .hrm-calendar-week-holiday {
    color: #fff;
}

.hrm-calendar-week-task {
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
    min-height: 16px;
}

.hrm-calendar-week-card.active .hrm-calendar-week-task,
.hrm-calendar-week-card.today .hrm-calendar-week-task {
    color: #fff;
}

.hrm-calendar-header,
.hrm-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.hrm-calendar-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.hrm-calendar-subtitle {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
}

.hrm-calendar-actions {
    display: flex;
    gap: 8px;
}

.hrm-calendar-actions button,
.hrm-map-theme-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hrm-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.hrm-calendar-weekdays span {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
}

.hrm-calendar-grid-dense span.empty {
    background: transparent;
    border-color: transparent;
}

.hrm-calendar-grid-dense span.today {
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.16);
}

.hrm-notification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.hrm-notification-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hrm-notification-header h3 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #374151;
}

.hrm-notification-header h3 i {
    font-size: 20px;
    color: #4f46e5;
}

.hrm-notification-tabbar {
    display: flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    width: fit-content;
}

.hrm-notification-tabbar button {
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hrm-notification-tabbar button.active {
    background: #fff;
    color: #4f46e5;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.hrm-notification-tabbar button.active.announcement {
    color: #f97316;
}

.hrm-announcement-form-wrap {
    position: relative;
}

.hrm-announcement-add-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: #ffedd5;
    color: #ea580c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hrm-announcement-add-btn.open {
    background: #f97316;
    color: #fff;
    transform: rotate(90deg);
}

.hrm-announcement-form-popover {
    position: absolute;
    top: 34px;
    left: 0;
    width: 290px;
    padding: 10px;
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.20);
    z-index: 30;
}

.hrm-announcement-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.hrm-announcement-form-head span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #ea580c;
}

.hrm-announcement-form-head button {
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 2px;
}

.hrm-announcement-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.hrm-announcement-form-popover input,
.hrm-announcement-form-popover select,
.hrm-announcement-form-popover textarea {
    width: 100%;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    background: #f9fafb;
    color: #111827;
    font-size: 11px;
    padding: 7px 8px;
    outline: none;
}

.hrm-announcement-form-popover select,
.hrm-announcement-form-popover textarea {
    margin-top: 6px;
}

.hrm-announcement-form-popover textarea {
    min-height: 52px;
    resize: none;
}

.hrm-announcement-post-btn {
    width: 100%;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background: #f97316;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.20);
}

.hrm-preview-notification-list.detailed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hrm-preview-note.detailed {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.hrm-preview-note.detailed.is-unread {
    background: rgba(238, 242, 255, 0.7);
    border-color: #c7d2fe;
}

.hrm-preview-note.detailed.announcement {
    background: #fff;
    border-color: #f3f4f6;
}

.hrm-preview-announcement-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.hrm-preview-announcement-main {
    min-width: 0;
    flex: 1;
}

.hrm-preview-announcement-main strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.hrm-preview-announcement-main small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}

.hrm-preview-announcement-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.hrm-preview-announcement-meta span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 700;
}

.hrm-preview-announcement-meta span:first-child i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #fb923c;
    display: inline-block;
}

.hrm-preview-announcement-meta span:last-child {
    font-size: 9px;
    font-weight: 800;
    color: #ea580c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 3px 7px;
}

.hrm-preview-announcement-dates {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.hrm-preview-announcement-dates span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 7px;
    padding: 4px 7px;
    font-size: 9px;
    color: #6b7280;
    white-space: nowrap;
}

.hrm-preview-announcement-dates span.scheduled {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #ea580c;
}

.hrm-preview-note.detailed:hover {
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.hrm-preview-note-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.hrm-preview-note-top strong {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.hrm-preview-note.detailed small {
    font-size: 11px;
    line-height: 1.45;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hrm-preview-note-time {
    font-size: 10px;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 3px 6px;
    white-space: nowrap;
}

.hrm-map-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.hrm-preview-map.exactish {
    height: 240px;
    min-height: 240px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.hrm-preview-map-pin.exactish {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(239, 68, 68, 0.75);
    border: 2px solid rgba(220, 38, 38, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
    z-index: 1;
}

.hrm-preview-calendar-head {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.hrm-preview-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.hrm-preview-calendar-grid > div {
    min-height: 68px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #fff;
    border: 2px solid #eef2f7;
    padding: 8px 6px;
    position: relative;
    transition: all 0.2s ease;
}

.hrm-preview-calendar-grid > div:hover:not(.empty) {
    border-color: #c7d2fe;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.12);
}

.hrm-preview-calendar-grid > div.active {
    background: #4f46e5;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.18);
}

.hrm-preview-calendar-grid > div.has-tasks {
    border-color: #dbeafe;
    background: #f8fbff;
}

.hrm-preview-calendar-grid > div.empty {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.hrm-calendar-cell-day {
    font-size: 14px;
    font-weight: 700;
}

.hrm-calendar-cell-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.10);
    color: #4f46e5;
}

.hrm-preview-calendar-grid > div.active .hrm-calendar-cell-pill {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.hrm-calendar-cell-action {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.14);
    color: #4f46e5;
    font-size: 11px;
}

.hrm-preview-calendar-grid > div.active .hrm-calendar-cell-action {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.hrm-preview-notification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hrm-preview-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.hrm-preview-note .badge {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hrm-preview-note .badge.blue { background: #3b82f6; }
.hrm-preview-note .badge.violet { background: #8b5cf6; }
.hrm-preview-note .badge.green { background: #22c55e; }

.hrm-preview-note strong {
    display: block;
    font-size: 13px;
    color: #111827;
}

.hrm-preview-note small {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.hrm-preview-table-wrap {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #eef2f7;
}

.hrm-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.hrm-preview-table th,
.hrm-preview-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
}

.hrm-preview-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hrm-preview-table .pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 800;
}

.hrm-preview-table .pill.green { background: #dcfce7; color: #15803d; }
.hrm-preview-table .pill.amber { background: #fef3c7; color: #b45309; }
.hrm-preview-table .pill.blue { background: #dbeafe; color: #1d4ed8; }

.hrm-preview-map {
    height: 220px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 30% 35%, rgba(59,130,246,0.12), transparent 25%), linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px solid #dbeafe;
}

.hrm-preview-map-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(191, 219, 254, 0.55) 1px, transparent 1px), linear-gradient(90deg, rgba(191, 219, 254, 0.55) 1px, transparent 1px);
    background-size: 42px 42px;
}

.hrm-preview-map-pin {
    position: absolute;
    top: 50%;
    left: 58%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
    z-index: 1;
}

/* ── Corner style popup (Apple dock style) ── */
.hrm-corner-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.hrm-corner-style-anchor {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.hrm-widget-ctrl-btn.is-active {
    background: rgba(255, 255, 255, 0.95);
    color: #007aff;
    border-color: rgba(0, 122, 255, 0.35);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.15);
}

.hrm-corner-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 3px;
    padding: 5px 7px 7px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    z-index: 1006;
    white-space: nowrap;
    pointer-events: auto;
    animation: cornerDockIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hrm-corner-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.82);
}

.pbi-widget-shell.has-corner-popup-open {
    overflow: visible;
    z-index: 1005;
    position: relative;
}

.pbi-widget-shell.has-corner-popup-open .hrm-widget-controls {
    overflow: visible;
    z-index: 1006;
}

@keyframes cornerDockIn {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.88) translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1) translateY(0);
    }
}

.hrm-corner-popup button.hrm-corner-icon {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    border-radius: 6px;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease, box-shadow 0.15s ease;
    transform-origin: center bottom;
}

.hrm-corner-popup button.hrm-corner-icon:hover {
    transform: scale(1.3) translateY(-6px);
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    z-index: 2;
}

.hrm-corner-popup button.hrm-corner-icon.active {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(1.12) translateY(-2px);
}

.hrm-corner-popup button.hrm-corner-icon.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.7);
}

.hrm-corner-preview-icon {
    width: 14px;
    height: 14px;
    background: transparent;
    border: 1.5px solid #94a3b8;
    transition: border-color 0.15s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.hrm-corner-popup button.hrm-corner-icon:hover .hrm-corner-preview-icon {
    border-color: #475569;
    transform: scale(1.1);
}

.hrm-corner-popup button.hrm-corner-icon.active .hrm-corner-preview-icon {
    border-color: #475569;
    border-width: 2px;
}

.hrm-corner-preview-icon.corner-icon-default { border-radius: 3px; }
.hrm-corner-preview-icon.corner-icon-flat { border-radius: 0; }
.hrm-corner-preview-icon.corner-icon-rounded { border-radius: 2px; }
.hrm-corner-preview-icon.corner-icon-extrarounded { border-radius: 5px; }
.hrm-corner-preview-icon.corner-icon-circular { border-radius: 50%; }
