/* =========================================================
   DGT Communications — Mobile First UI Foundation
   Option C: Light admin workspace + DGT charcoal/gold accents
   ========================================================= */

:root {
    --dgt-ink: #1A1510;
    --dgt-ink-2: #2A2420;
    --dgt-gold: #D4AF37;
    --dgt-gold-soft: rgba(212, 175, 55, 0.16);
    --dgt-bg: #f6f4ef;
    --dgt-card: #ffffff;
    --dgt-border: #e7e0d2;
    --dgt-muted: #6b7280;
    --dgt-danger: #b42318;
    --dgt-warning: #9a6700;
    --dgt-success: #16703c;
    --dgt-radius: 18px;
    --dgt-shadow: 0 10px 28px rgba(26, 21, 16, 0.08);
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 72px;
    background: var(--dgt-bg);
    color: #1f2937;
}

a {
    color: #6b4f00;
}

    a:hover {
        color: #3f3000;
    }

main {
    padding-bottom: 2rem;
}

.btn,
.form-control,
.form-select {
    min-height: 44px;
}

    .btn:focus,
    .btn:active:focus,
    .btn-link.nav-link:focus,
    .form-control:focus,
    .form-select:focus,
    .form-check-input:focus {
        border-color: var(--dgt-gold);
        box-shadow: 0 0 0 0.18rem rgba(212, 175, 55, 0.22);
    }

.btn-primary {
    background: var(--dgt-ink);
    border-color: var(--dgt-ink);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: #000;
        border-color: #000;
    }

.btn-outline-primary {
    color: var(--dgt-ink);
    border-color: var(--dgt-ink);
}

    .btn-outline-primary:hover {
        background: var(--dgt-ink);
        border-color: var(--dgt-ink);
    }

.text-dgt-gold {
    color: var(--dgt-gold) !important;
}

/* =========================
   Layout + Navigation
   ========================= */

.navbar {
    background: var(--dgt-ink) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.28) !important;
    box-shadow: 0 6px 22px rgba(26, 21, 16, 0.16);
}

    .navbar-brand,
    .brand-text,
    .navbar-nav .nav-link,
    .navbar .nav-link,
    .navbar a {
        color: #f8f5ec !important;
    }

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.9rem 0.85rem;
    border-radius: 999px;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--dgt-gold) !important;
        background: rgba(212, 175, 55, 0.08);
    }

.navbar-logo {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 30px;
    }
}

.brand-text {
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.navbar-toggler {
    border: 1px solid rgba(212, 175, 55, 0.45);
    min-height: 44px;
}

.navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

.footer {
    background: #fffaf0 !important;
    border-top: 1px solid var(--dgt-border) !important;
}

@media (max-width: 576px) {
    body {
        margin-bottom: 88px;
    }

    .brand-text {
        display: none;
    }

    .navbar-logo {
        height: 30px;
    }

    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* =========================
   Page Shells
   ========================= */

.dgt-page {
    max-width: 1280px;
    margin: 0 auto;
}

.dgt-page-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0 18px;
    padding: 18px;
    border-radius: 22px;
    color: #f8f5ec;
    background: linear-gradient(135deg, var(--dgt-ink), var(--dgt-ink-2));
    border: 1px solid rgba(212, 175, 55, 0.24);
    box-shadow: var(--dgt-shadow);
}

.dgt-page-kicker {
    margin: 0 0 4px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dgt-gold);
}

.dgt-page-title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.15;
    font-weight: 850;
}

.dgt-page-subtitle {
    margin: 6px 0 0;
    color: #d7d1c4;
    line-height: 1.4;
}

.dgt-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dgt-count-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--dgt-gold);
    font-weight: 700;
    border: 1px solid rgba(212, 175, 55, 0.22);
}


.dgt-header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--dgt-ink) !important;
    border: 1px solid rgba(212, 175, 55, 0.38);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
}

    .dgt-header-action-btn:hover,
    .dgt-header-action-btn:focus {
        background: var(--dgt-gold);
        color: var(--dgt-ink) !important;
        border-color: var(--dgt-gold);
        transform: translateY(-1px);
    }

@media (min-width: 768px) {
    .dgt-page-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 24px;
    }

    .dgt-page-title {
        font-size: 2rem;
    }
}

/* =========================
   Cards + Mobile Lists
   ========================= */

.dgt-mobile-list {
    display: grid;
    gap: 12px;
}

.dgt-card {
    background: var(--dgt-card);
    border: 1px solid var(--dgt-border);
    border-radius: var(--dgt-radius);
    padding: 14px;
    box-shadow: var(--dgt-shadow);
}

.dgt-card-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.dgt-card-title {
    margin: 0;
    font-size: 1.03rem;
    line-height: 1.25;
    font-weight: 800;
    color: #1f2937;
}

    .dgt-card-title a {
        color: #1f2937;
        text-decoration: none;
    }

        .dgt-card-title a:hover {
            color: #6b4f00;
        }

.dgt-card-meta {
    margin-top: 5px;
    color: var(--dgt-muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.dgt-card-summary {
    margin-top: 10px;
    color: #374151;
    font-size: 0.93rem;
    line-height: 1.45;
}

.dgt-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
}

.dgt-card-field {
    border-radius: 14px;
    padding: 10px 12px;
    background: #fbfaf7;
    border: 1px solid #efe8db;
}

.dgt-card-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dgt-muted);
    margin-bottom: 2px;
}

.dgt-card-value {
    font-weight: 700;
    color: #1f2937;
}

.dgt-card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

    .dgt-card-actions .btn {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
    }

@media (min-width: 576px) {
    .dgt-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   Desktop Tables
   ========================= */

.dgt-table-shell {
    background: #fff;
    border: 1px solid var(--dgt-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--dgt-shadow);
}

    .dgt-table-shell .table {
        margin-bottom: 0;
    }

    .dgt-table-shell thead th {
        background: #fbfaf7;
        color: #4b5563;
        border-bottom: 1px solid var(--dgt-border);
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .dgt-table-shell td,
    .dgt-table-shell th {
        vertical-align: middle;
    }

/* =========================
   Status Badges
   ========================= */

.badge-status,
.dgt-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.badge-awaiting,
.status-WaitingResponse,
.status-AwaitingResponse,
.status-Pending {
    background: #fff4d8;
    color: #7a5400;
}

.badge-sent,
.status-Sent,
.status-Draft,
.status-Active {
    background: #ebe7dc;
    color: #3b352b;
}

.badge-ack,
.status-Acknowledged {
    background: #e0f2fe;
    color: #075985;
}

.badge-closed,
.status-Closed,
.status-Completed {
    background: #dcfce7;
    color: #166534;
}

.badge-overdue,
.status-Overdue,
.status-Default,
.status-Escalated,
.dgt-danger-soft {
    background: #fee4e2;
    color: var(--dgt-danger);
}

.status-Rebutted {
    background: #fef3c7;
    color: #92400e;
}

.status-Archived,
.status-Cancelled {
    background: #f3f4f6;
    color: #4b5563;
}

/* =========================
   Filters + Forms
   ========================= */

.dgt-filter-card,
.dgt-form-shell {
    background: #fff;
    border: 1px solid var(--dgt-border);
    border-radius: 20px;
    padding: 14px;
    box-shadow: var(--dgt-shadow);
}

.dgt-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 768px) {
    .dgt-filter-actions {
        grid-template-columns: auto auto;
        justify-content: end;
    }
}

/* =========================
   Dashboard
   ========================= */

.dgt-command-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dgt-stat-card {
    background: #fff;
    border: 1px solid var(--dgt-border);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--dgt-shadow);
}

.dgt-stat-label {
    color: var(--dgt-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dgt-stat-value {
    margin-top: 4px;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--dgt-ink);
}

.dgt-panel {
    background: #fff;
    border: 1px solid var(--dgt-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--dgt-shadow);
}

.dgt-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--dgt-border);
    background: #fbfaf7;
    font-weight: 850;
}

.dgt-panel-body {
    padding: 12px;
}

.dgt-mini-list {
    display: grid;
    gap: 10px;
}

.dgt-mini-item {
    display: block;
    border: 1px solid #efe8db;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    color: inherit;
    text-decoration: none;
}

    .dgt-mini-item:hover {
        color: inherit;
        border-color: rgba(212, 175, 55, 0.55);
        background: #fffdf7;
    }

@media (min-width: 768px) {
    .dgt-command-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .dgt-command-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* =========================
   Floating Action Button
   ========================= */

.fab {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 1040;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--dgt-gold);
    color: var(--dgt-ink);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(26, 21, 16, 0.28);
    border: 2px solid rgba(255,255,255,0.72);
}

    .fab:hover {
        color: var(--dgt-ink);
        background: #e4c75f;
        transform: translateY(-1px);
    }

/* =========================
   Legacy entity aliases
   ========================= */

.entity-card {
    background: var(--dgt-card);
    border-radius: var(--dgt-radius);
    padding: 14px;
    box-shadow: var(--dgt-shadow);
    border: 1px solid var(--dgt-border);
}

.entity-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.entity-meta {
    font-size: 0.86rem;
    color: var(--dgt-muted);
    margin-bottom: 8px;
}

.entity-link a {
    font-size: 0.86rem;
    color: #6b4f00;
    text-decoration: none;
}

.entity-notes {
    font-size: 0.93rem;
    margin-top: 6px;
    color: #333;
}

.entity-dates {
    font-size: 0.76rem;
    color: var(--dgt-muted);
    margin-top: 8px;
}

.entity-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}


/* =========================
   Phase 2B: Standardised header/actions + app-like controls
   ========================= */

/* Generic aliases for newer screens that use plain header naming.
   These sit alongside the DGT-prefixed classes already used across the app. */
.header-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-header-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--dgt-ink);
    color: #fff !important;
    border: 1px solid rgba(212, 175, 55, 0.38);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(26, 21, 16, 0.12);
}

    .btn-header-primary:hover,
    .btn-header-primary:focus {
        background: #000;
        color: #fff !important;
        border-color: var(--dgt-gold);
        transform: translateY(-1px);
    }

.records-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--dgt-gold);
    border: 1px solid rgba(212, 175, 55, 0.22);
    font-weight: 800;
}

@media (min-width: 768px) {
    .header-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* App-like input sizing for mobile. Keeps iOS from zooming and improves touch targets. */
.form-control,
.form-select {
    min-height: 48px;
    border-radius: 12px;
    font-size: 16px;
}

textarea.form-control {
    min-height: 120px;
}

.form-label {
    font-weight: 750;
    margin-bottom: 6px;
}

/* Alias for screens that use the generic mobile action-bar naming. */
.mobile-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--dgt-border);
    backdrop-filter: blur(10px);
}

    .mobile-action-bar .btn {
        flex: 1;
        min-height: 48px;
        border-radius: 14px;
        font-weight: 800;
    }

@media (min-width: 576px) {
    .mobile-action-bar {
        position: static;
        flex-direction: row;
        justify-content: flex-end;
        padding: 0;
        border-top: 0;
        background: transparent;
        backdrop-filter: none;
    }

        .mobile-action-bar .btn {
            flex: 0 0 auto;
        }
}

/* Light tap feedback for card-based mobile UI. */
.dgt-card,
.dgt-mini-item,
.dgt-stat-card,
.dgt-detail-card,
.dgt-danger-card,
.card {
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

    .dgt-card:active,
    .dgt-mini-item:active,
    .dgt-stat-card:active,
    .card:active {
        transform: scale(0.985);
    }

/* =========================
   Phase 2: Form / Detail / Delete polish
   ========================= */

.dgt-form-page {
    max-width: 980px;
    margin: 0 auto;
}

.dgt-form-shell {
    padding: 16px;
}

.dgt-form-section {
    padding: 14px;
    border: 1px solid #efe8db;
    border-radius: 18px;
    background: #fffdf8;
    margin-bottom: 14px;
}

.dgt-section-title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 850;
    color: var(--dgt-ink);
}

.dgt-field-label,
.dgt-form-shell label {
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    color: #4b5563;
    margin-bottom: 6px;
}

.dgt-form-shell .form-control,
.dgt-form-shell .form-select {
    border-radius: 14px;
    border-color: #ded6c8;
    background-color: #fff;
}

.dgt-form-help {
    color: var(--dgt-muted);
    font-size: 0.83rem;
    margin-top: 6px;
}

.dgt-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    margin: 16px -16px -16px;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--dgt-border);
    backdrop-filter: blur(10px);
}

    .dgt-action-bar .btn {
        min-height: 46px;
        font-weight: 800;
        border-radius: 14px;
    }

@media (min-width: 576px) {
    .dgt-action-bar {
        position: static;
        grid-template-columns: auto auto auto;
        justify-content: end;
        margin: 18px 0 0;
        padding: 0;
        border-top: 0;
        background: transparent;
        backdrop-filter: none;
    }
}

.dgt-detail-grid {
    display: grid;
    gap: 14px;
}

@media (min-width: 992px) {
    .dgt-detail-grid {
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
        align-items: start;
    }
}

.dgt-detail-card,
.dgt-danger-card {
    background: #fff;
    border: 1px solid var(--dgt-border);
    border-radius: 20px;
    box-shadow: var(--dgt-shadow);
    overflow: hidden;
}

.dgt-detail-card-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--dgt-border);
    background: #fbfaf7;
}

    .dgt-detail-card-header h2,
    .dgt-detail-card-header h3 {
        margin: 0;
        font-size: 1rem;
        font-weight: 850;
    }

.dgt-detail-card-body {
    padding: 14px 16px;
}

.dgt-kv-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.dgt-kv-item {
    padding: 10px 12px;
    border: 1px solid #efe8db;
    border-radius: 14px;
    background: #fffdf8;
}

.dgt-kv-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--dgt-muted);
    margin-bottom: 3px;
}

.dgt-kv-value {
    color: #1f2937;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.dgt-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

    .dgt-detail-actions .btn {
        min-height: 44px;
        border-radius: 14px;
        font-weight: 800;
    }

@media (min-width: 576px) {
    .dgt-detail-actions {
        grid-template-columns: repeat(3, auto);
        justify-content: end;
    }
}

.dgt-danger-card {
    border-color: #f3b2ac;
}

.dgt-danger-header {
    padding: 16px;
    background: #fee4e2;
    border-bottom: 1px solid #f3b2ac;
    color: var(--dgt-danger);
}

    .dgt-danger-header h1 {
        margin: 0;
        font-size: 1.35rem;
        font-weight: 900;
    }

.dgt-warning-copy {
    margin: 8px 0 0;
    color: #7a271a;
    line-height: 1.45;
}

.dgt-delete-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #f3b2ac;
    background: #fffaf9;
}

@media (min-width: 576px) {
    .dgt-delete-actions {
        grid-template-columns: auto auto;
        justify-content: end;
    }
}

.dgt-file-drop {
    border: 2px dashed #d7caa9;
    border-radius: 20px;
    padding: 18px;
    background: #fffdf8;
}

/* =========================================================
   DGT Phase 3 - Communication Workflow Engine
   Mobile-first workflow cards, chips, timeline, and actions
   ========================================================= */

.dgt-workflow-summary,
.dgt-filter-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.dgt-workflow-chip {
    min-width: 112px;
    border: 1px solid #e6e0d5;
    border-radius: 14px;
    padding: 10px 12px;
    background: #fff;
    color: #2a2520;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 8px 20px rgba(18, 18, 18, 0.06);
}

    .dgt-workflow-chip span {
        font-size: 0.78rem;
        color: #6f675d;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .dgt-workflow-chip strong {
        font-size: 1.35rem;
        line-height: 1;
    }

    .dgt-workflow-chip.active,
    .dgt-workflow-chip:hover {
        border-color: #c5a24a;
        background: #fff8e4;
        color: #1f1c18;
    }

    .dgt-workflow-chip.warning {
        border-color: #f2c5c5;
        background: #fff5f5;
    }

.dgt-filter-pill {
    flex: 0 0 auto;
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e8e1d6;
    color: #4b443b;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .dgt-filter-pill.active,
    .dgt-filter-pill:hover {
        background: #1f1c18;
        border-color: #1f1c18;
        color: #fff;
    }

.dgt-workflow-card {
    border-left: 4px solid #c5a24a;
}

    .dgt-workflow-card.is-overdue {
        border-left-color: #dc3545;
        background: linear-gradient(90deg, rgba(220, 53, 69, 0.055), #fff 34%);
    }

.dgt-workflow-mini {
    display: grid;
    grid-template-columns: repeat(5, minmax(70px, 1fr));
    gap: 6px;
    margin: 12px 0;
}

    .dgt-workflow-mini.compact {
        display: flex;
        flex-wrap: wrap;
        margin: 0;
    }

    .dgt-workflow-mini span {
        position: relative;
        min-height: 32px;
        border-radius: 999px;
        padding: 7px 8px;
        background: #f4f1eb;
        color: #777067;
        font-size: 0.72rem;
        font-weight: 800;
        text-align: center;
        white-space: nowrap;
    }

        .dgt-workflow-mini span.done {
            background: #1f1c18;
            color: #fff;
        }

.dgt-workflow-timeline {
    display: grid;
    gap: 12px;
}

.dgt-workflow-step {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: start;
    position: relative;
}

    .dgt-workflow-step:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 14px;
        top: 30px;
        bottom: -12px;
        width: 2px;
        background: #e5dfd6;
    }

    .dgt-workflow-step .dot {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: 2px solid #d7cec0;
        background: #fff;
        display: block;
        position: relative;
        z-index: 1;
    }

    .dgt-workflow-step.done .dot {
        border-color: #c5a24a;
        background: #c5a24a;
        box-shadow: 0 0 0 4px rgba(197, 162, 74, 0.16);
    }

    .dgt-workflow-step strong {
        display: block;
        font-size: 0.98rem;
        color: #26221d;
    }

    .dgt-workflow-step small {
        display: block;
        color: #6f675d;
        margin-top: 2px;
    }

.dgt-workflow-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

    .dgt-workflow-actions form,
    .dgt-workflow-actions button {
        width: 100%;
    }

    .dgt-workflow-actions button {
        min-height: 46px;
        font-weight: 700;
    }

.dgt-stat-card.priority {
    border-color: #c5a24a;
    background: linear-gradient(180deg, #fffaf0, #fff);
}

.dgt-stat-card.danger {
    border-color: #f1c6c6;
    background: linear-gradient(180deg, #fff5f5, #fff);
}

@media (min-width: 768px) {
    .dgt-workflow-actions {
        grid-template-columns: repeat(5, minmax(120px, 1fr));
    }

    .dgt-workflow-mini {
        grid-template-columns: repeat(5, auto);
        justify-content: start;
    }
}

.dgt-pdf-viewer-wrap {
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.75);
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

.dgt-pdf-viewer {
    width: 100%;
    height: 78vh;
    min-height: 620px;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .dgt-pdf-viewer {
        height: 72vh;
        min-height: 520px;
    }
}
