:root {
    --digital-brand: #0f172a;
    --digital-primary: #4f46e5;
    --digital-primary-hover: #4338ca;
    --digital-bg: #f1f5f9;
    --digital-card-bg: #ffffff;
    --digital-border: #e2e8f0;
    --digital-sidebar-bg: #0f172a;
    --digital-sidebar-hover: rgba(255, 255, 255, 0.08);
    --digital-sidebar-active: rgba(79, 70, 229, 0.2);
    --digital-sidebar-text: #94a3b8;
    --digital-sidebar-text-active: #f8fafc;
}

.digital-layout {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--digital-bg);
    color: #0f172a;
}

.digital-app {
    min-height: calc(100vh - 44px);
    display: flex;
    position: relative;
}

.digital-sidebar-wrap {
    width: 270px;
    min-width: 270px;
    transition: transform 0.25s ease;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

.digital-sidebar {
    height: 100%;
    background: var(--digital-sidebar-bg);
    color: var(--digital-sidebar-text);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
}

.digital-sidebar-brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.digital-sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.digital-sidebar-brand-copy h1 {
    color: #f8fafc;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.digital-sidebar-brand-copy p {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.65rem;
    margin-top: 0.15rem;
}

.digital-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.75rem 1rem;
}

.digital-sidebar-section {
    color: var(--digital-sidebar-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.65rem;
    font-weight: 700;
    margin: 0.75rem 0.5rem 0.35rem;
}

.digital-nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--digital-sidebar-text);
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.digital-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
}

.digital-nav-item:hover {
    background: var(--digital-sidebar-hover);
    color: var(--digital-sidebar-text-active);
}

.digital-nav-item.is-active {
    background: var(--digital-sidebar-active);
    color: #93c5fd;
}

.digital-sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.digital-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.digital-mobile-trigger {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--digital-border);
    background: #fff;
    color: #475569;
    cursor: pointer;
}

.digital-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.digital-content-wrap {
    width: 100%;
}

.digital-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--digital-border);
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(241, 245, 249, 0.9), rgba(241, 245, 249, 0.45)),
        #ffffff;
}

.digital-page-title {
    font-size: 1.6rem;
    line-height: 1.1;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.digital-page-subtitle {
    margin-top: 0.3rem;
    color: #475569;
    font-size: 0.84rem;
    max-width: 72ch;
}

.digital-page-actions {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.digital-btn-primary,
.digital-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    padding: 0.55rem 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.digital-btn-primary:disabled,
.digital-btn-secondary:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.digital-btn-primary {
    background: var(--digital-primary);
    color: #fff;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.22);
}

.digital-btn-primary:hover {
    background: var(--digital-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(79, 70, 229, 0.26);
}

.digital-btn-secondary {
    background: #fff;
    color: #334155;
    border: 1px solid var(--digital-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.digital-btn-secondary:hover {
    background: #f8fafc;
    border-color: #bfdbfe;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.digital-card {
    background: var(--digital-card-bg);
    border: 1px solid var(--digital-border);
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    position: relative;
}

.digital-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.digital-kpi-card {
    background: #fff;
    border: 1px solid var(--digital-border);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.digital-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.digital-kpi-header span {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
}

.digital-kpi-value {
    margin-top: 0.5rem;
    font-size: 1.35rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.digital-kpi-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
}

.digital-badge {
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.digital-badge-success {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}

.digital-badge-warning {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}

.digital-badge-danger {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}

.digital-badge-info {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: #93c5fd;
}

.digital-badge-neutral {
    color: #475569;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.digital-grid-list {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.digital-route-chip {
    border: 1px solid var(--digital-border);
    border-radius: 0.75rem;
    background: #fff;
    text-decoration: none;
    color: #334155;
    font-size: 0.8125rem;
    padding: 0.55rem 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.digital-route-chip:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.digital-route-chip.is-current {
    border-color: #60a5fa;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.digital-route-chip small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.digital-filter-bar {
    border: 1px solid var(--digital-border);
    border-radius: 0.95rem;
    background: #fff;
    padding: 0.8rem;
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.digital-layout a:focus-visible,
.digital-layout button:focus-visible,
.digital-layout input:focus-visible,
.digital-layout select:focus-visible,
.digital-layout textarea:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.digital-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.digital-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
}

.digital-modal-content {
    position: relative;
    z-index: 10;
    width: 100%;
    border-radius: 1rem;
    border: 1px solid var(--digital-border);
    background: #fff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.digital-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 30;
    border: 0;
}

/* ============================================================
   MVP DESIGN IDENTITY — Components & patterns from MVP
   ============================================================ */

/* Page greeting (Mi Día) */
.dg-greeting {
    position: relative;
    overflow: hidden;
}
.dg-greeting-blur {
    position: absolute;
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: #eff6ff;
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.5;
    transform: translate(50%, -50%);
    pointer-events: none;
}
.dg-greeting-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.dg-greeting-sub {
    font-size: 0.9rem;
    color: #475569;
    margin-top: 0.35rem;
}

/* Week strip (Mi Día sidebar) */
.dg-week-strip {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}
.dg-week-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.45rem 0.2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    gap: 2px;
}
.dg-week-day:hover {
    background: #fff;
}
.dg-week-day.is-today {
    background: #fff;
    border: 1px solid #a5b4fc;
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.12);
}
.dg-week-day-name {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.04em;
}
.dg-week-day.is-today .dg-week-day-name {
    color: #6366f1;
}
.dg-week-day-num {
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
}
.dg-week-day.is-today .dg-week-day-num {
    color: #1e293b;
}
.dg-week-day-label {
    font-size: 8px;
    color: #94a3b8;
}

/* KPI icon circle (MVP pattern) */
.dg-kpi-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.dg-kpi-icon-indigo { background: #eef2ff; color: #6366f1; }
.dg-kpi-icon-emerald { background: #ecfdf5; color: #059669; }
.dg-kpi-icon-amber { background: #fffbeb; color: #d97706; }
.dg-kpi-icon-blue { background: #eff6ff; color: #2563eb; }
.dg-kpi-icon-rose { background: #fff1f2; color: #e11d48; }
.dg-kpi-icon-violet { background: #f5f3ff; color: #7c3aed; }
.dg-kpi-icon-sky { background: #f0f9ff; color: #0284c7; }
.dg-kpi-icon-slate { background: #f1f5f9; color: #475569; }

/* Task items (Mi Día style) */
.dg-task-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dg-task-item:hover {
    border-color: #bfdbfe;
    background: #f8fafc;
}
.dg-task-item.is-urgent {
    background: rgba(254, 242, 242, 0.5);
    border-color: #fecaca;
}
.dg-task-item.is-urgent:hover {
    background: #fef2f2;
}
.dg-task-item.is-done {
    background: rgba(240, 253, 244, 0.3);
    border-color: rgba(167, 243, 208, 0.5);
    border-left: 4px solid #34d399;
}
.dg-task-item.is-training {
    background: rgba(240, 253, 244, 0.3);
    border-color: rgba(167, 243, 208, 0.5);
    border-left: 4px solid #34d399;
}
.dg-task-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}
.dg-task-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
}
.dg-task-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    border: 1px solid transparent;
}
.dg-task-tag-blue { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.dg-task-tag-amber { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.dg-task-tag-violet { background: #f5f3ff; color: #5b21b6; border-color: #c4b5fd; }
.dg-task-tag-slate { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.dg-task-tag-emerald { background: #ecfdf5; color: #065f46; border-color: #6ee7b7; }
.dg-task-date-badge {
    font-size: 9px;
    font-weight: 700;
    background: #fff;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    border: 1px solid #fecaca;
    color: #dc2626;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Section header dot indicator */
.dg-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dg-section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dg-section-dot-red { background: #ef4444; }
.dg-section-dot-blue { background: #3b82f6; }
.dg-section-dot-green { background: #22c55e; }
.dg-section-dot-amber { background: #f59e0b; }
.dg-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Dashboard Action Center (dark MVP style) */
.dg-action-center {
    background: #312e81;
    border-radius: 1rem;
    border: 0;
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 1.5rem;
}
.dg-action-center::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transform: translate(50%, -50%);
}
.dg-action-center-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}
.dg-action-center-sub {
    color: #a5b4fc;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    position: relative;
    z-index: 1;
}
.dg-action-item {
    background: rgba(255,255,255,0.1);
    padding: 0.75rem;
    border-radius: 0.625rem;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.15s ease;
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}
.dg-action-item:hover {
    background: rgba(255,255,255,0.18);
}
.dg-action-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Mini pulse card (Mi Día right sidebar) */
.dg-pulse-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(15,23,42,0.03);
}

/* Backlog item */
.dg-backlog-item {
    display: block;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.625rem;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}
.dg-backlog-item:hover {
    background: #fff;
    border-color: #a5b4fc;
}

/* Quick input (Mi Día header input card) */
.dg-quick-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.4rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.dg-quick-input:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.12);
}
.dg-quick-input-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.dg-quick-input input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    outline: none;
}
.dg-quick-input input::-moz-placeholder {
    color: #94a3b8;
}
.dg-quick-input input::placeholder {
    color: #94a3b8;
}

/* Shared card — same as MVP mkt-card */
.mkt-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mkt-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Drawer (slide-in panel from right) */
.dg-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 69;
    backdrop-filter: blur(2px);
}
.dg-drawer-panel {
    position: fixed;
    inset-block: 0;
    right: 0;
    width: 100%;
    max-width: 30rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(15, 23, 42, 0.15);
    z-index: 70;
}
.dg-drawer-panel.lg { max-width: 40rem; }
.dg-drawer-header {
    background: #4f46e5;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.dg-drawer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.0625rem;
}
.dg-drawer-close {
    color: #c7d2fe;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: color 0.15s ease;
}
.dg-drawer-close:hover { color: #fff; }
.dg-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.dg-drawer-footer {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Dashboard KPI card — MVP style (large text + icon row) */
.dg-kpi-mvp {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    transition: border-color 0.2s ease;
}
.dg-kpi-mvp:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.dg-kpi-mvp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.dg-kpi-mvp-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}
.dg-kpi-mvp-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Member avatar chips */
.dg-member-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
}

/* Right sidebar panel (Mi Día, Proyecto detalle) */
.dg-panel-sidebar {
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Section divider in sidebar panel */
.dg-panel-section {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}
.dg-panel-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* ============================================================
   Inline modal pattern (Livewire conditional render)
   Applies to modals rendered with @if($show)
   ============================================================ */
.dg-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.dg-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}
.dg-modal-box {
    position: relative;
    z-index: 10;
    width: 100%;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}
.dg-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}
.dg-modal-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}
.dg-modal-close {
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: color 0.15s ease;
}
.dg-modal-close:hover { color: #475569; }
.dg-modal-body { padding: 1.25rem; }
.dg-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Form field labels */
.dg-field-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.25rem;
}

/* Form inputs consistent */
.dg-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}
.dg-input:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Table MVP-style */
.dg-table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}
.dg-table thead tr {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.dg-table th {
    padding: 0.6rem 1.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    text-align: left;
}
.dg-table td {
    padding: 0.875rem 1.25rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}
.dg-table tbody tr:hover td {
    background: #f8fafc;
}
.dg-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Campaign/project health bar */
.dg-health-bar {
    width: 9rem;
    max-width: 100%;
}

/* Indigo badge */
.digital-badge-indigo {
    color: #3730a3;
    background: #eef2ff;
    border-color: #a5b4fc;
}

/* Empty state */
.dg-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: #94a3b8;
}
.dg-empty-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}
.dg-empty-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
}
.dg-empty-sub {
    font-size: 0.75rem;
}

/* ============================================================ */

@media (max-width: 1023px) {
    .digital-sidebar-wrap {
        position: fixed;
        left: 0;
        top: 44px;
        bottom: 0;
        z-index: 40;
        transform: translateX(-100%);
    }

    .digital-sidebar-wrap.is-open {
        transform: translateX(0);
    }

    .digital-mobile-trigger {
        display: grid;
        place-items: center;
    }

    .digital-page-header {
        padding: 0.9rem 0.95rem;
    }

    .digital-page-title {
        font-size: 1.35rem;
    }

    .digital-page-subtitle {
        font-size: 0.8rem;
    }

    .digital-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        align-items: stretch;
        padding-bottom: 0.75rem;
    }

    .digital-filter-bar > * {
        flex: 0 0 auto;
    }
}
