﻿/* =========================================================
   HELPDESK - consolidated stylesheet
   ========================================================= */

:root {
    --hd-bg: #f5f7fb;
    --hd-card: #ffffff;
    --hd-border: #e2e8f0;
    --hd-text: #0f172a;
    --hd-muted: #64748b;
    --hd-primary: #2563eb;
    --hd-primary-soft: #eff6ff;
    --hd-success: #15803d;
    --hd-success-soft: #ecfdf3;
    --hd-warning: #b45309;
    --hd-warning-soft: #fff7ed;
    --hd-shadow: 0 10px 25px rgba(2, 6, 23, .06);
    --hd-radius: 18px;
}

body {
    background: var(--hd-bg);
}

/* =========================================================
   LAYOUT / CONTAINERS
   ========================================================= */

.hd-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 20px 24px;
}

.hd-container.hd-container-fluid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 18px;
    padding-right: 18px;
}

.hd-page {
    width: 100%;
    padding: 16px 18px;
}

.hd-create-wrap {
    width: 100%;
    max-width: 980px;
    margin: 18px auto;
}

.hd-public-reply-form {
    width: 100%;
}

/* =========================================================
   TOPBAR / HEADER / HERO
   ========================================================= */

.hd-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(180deg, rgba(245, 247, 251, .96), rgba(245, 247, 251, .75));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, .7);
    padding: 14px 18px;
    margin: -16px -18px 16px -18px;
}

.hd-title {
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--hd-text);
    margin: 0;
    line-height: 1.15;
    font-size: clamp(18px, 1.8vw, 26px);
}

.hd-subtitle {
    color: var(--hd-muted);
    font-size: .92rem;
    margin-top: 4px;
}

.hd-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--hd-border);
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: var(--hd-shadow);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.hd-hero-main {
    flex: 1 1 700px;
    min-width: 0;
}

.hd-hero-side {
    flex: 0 0 auto;
}

.hd-hero-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--hd-text);
    line-height: 1.25;
    margin: 0;
}

.hd-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 8px;
}

.hd-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hd-muted);
    font-size: .94rem;
}

    .hd-hero-meta-item strong {
        color: var(--hd-text);
        font-weight: 600;
    }

.hd-ticket-code {
    display: inline-flex;
    align-items: center;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .2px;
}

.hd-create-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--hd-radius);
    border: 1px solid var(--hd-border);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: var(--hd-shadow);
    margin-bottom: 12px;
}

.hd-create-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--hd-text);
    font-size: 1.15rem;
    line-height: 1.2;
}

.hd-create-sub {
    margin-top: 4px;
    color: var(--hd-muted);
    font-size: .9rem;
}

/* =========================================================
   BRAND / ICONS / MINI BLOCKS
   ========================================================= */

.hd-appmark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, .12);
    border: 1px solid rgba(37, 99, 235, .18);
    color: #1d4ed8;
    flex: 0 0 auto;
}

.hd-kpi-ico,
.hd-modal-ico {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hd-kpi-ico {
    border: 1px solid var(--hd-border);
    background: #fbfdff;
}

.hd-modal-ico {
    background: rgba(37, 99, 235, .10);
    border: 1px solid rgba(37, 99, 235, .18);
    color: #1d4ed8;
}

.hd-mini-card {
    background: var(--hd-card);
    border: 1px solid var(--hd-border);
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
    height: 100%;
}

.hd-mini-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--hd-primary-soft);
    color: var(--hd-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex: 0 0 44px;
}

.hd-mini-label {
    font-size: .82rem;
    color: var(--hd-muted);
    margin-bottom: 2px;
}

.hd-mini-value {
    font-size: .98rem;
    font-weight: 700;
    color: var(--hd-text);
}

/* =========================================================
   CARDS / PANELS
   ========================================================= */

.hd-card,
.hd-panel {
    background: var(--hd-card);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius);
    box-shadow: var(--hd-shadow);
    overflow: hidden;
}

.hd-card-header,
.hd-panel-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--hd-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

    .hd-card-title,
    .hd-panel-header .t {
        font-weight: 800;
        color: var(--hd-text);
        margin: 0;
    }

.hd-card-body,
.hd-panel-body {
    padding: 16px;
}

.hd-help {
    color: var(--hd-muted);
    font-size: .85rem;
}

/* =========================================================
   BADGES / PILLS
   ========================================================= */

.hd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .45rem .75rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.hd-badge-status {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.hd-badge-priority {
    background: #fff7ed;
    color: #b45309;
    border-color: #fed7aa;
}

.hd-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--hd-border);
    background: #fff;
    color: var(--hd-text);
    font-size: .9rem;
    cursor: pointer;
    user-select: none;
}

    .hd-pill i {
        opacity: .85;
    }

    .hd-pill.active {
        border-color: rgba(37, 99, 235, .35);
        background: rgba(37, 99, 235, .08);
        color: #1d4ed8;
    }

.hd-inline-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #fff4df;
    color: #b45309;
    border: 1px solid #fde7c2;
    font-size: .75rem;
    font-weight: 700;
}

/* =========================================================
   META / INFO BLOCKS
   ========================================================= */

.hd-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

    .hd-meta .item {
        border: 1px dashed rgba(226, 232, 240, .9);
        border-radius: 14px;
        padding: 10px 12px;
        background: #fbfdff;
    }

    .hd-meta .k {
        font-size: .75rem;
        color: var(--hd-muted);
    }

    .hd-meta .v {
        font-weight: 700;
        color: var(--hd-text);
        margin-top: 2px;
    }

.hd-side-note {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--hd-border);
    color: var(--hd-muted);
    font-size: .88rem;
}

.hd-divider {
    height: 1px;
    background: var(--hd-border);
    margin: 14px 0;
}

/* =========================================================
   REQUEST / RICH TEXT
   ========================================================= */

.hd-request-body,
.hd-richtext {
    color: var(--hd-text);
    font-size: .95rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.hd-request-body {
    line-height: 1.75;
    font-size: .98rem;
}

.hd-richtext p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   THREAD / MESSAGES / TIMELINE
   ========================================================= */

.hd-thread,
.hd-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hd-thread {
    gap: 16px;
}

.hd-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hd-message-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f3f6fb;
    color: #4b5563;
    border: 1px solid var(--hd-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    margin-top: 2px;
}

.hd-message-card {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--hd-border);
    border-radius: 16px;
    padding: 14px 16px;
    background: #fcfdff;
}

.hd-message-internal .hd-message-card {
    background: #fffaf3;
    border-color: #fde7c2;
}

.hd-message-internal .hd-message-avatar {
    background: #fff4df;
    color: #b45309;
    border-color: #fde7c2;
}

.hd-message-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hd-message-author {
    font-weight: 700;
    color: var(--hd-text);
}

.hd-message-time {
    font-size: .82rem;
    color: var(--hd-muted);
    white-space: nowrap;
}

.hd-message-body {
    color: #374151;
    line-height: 1.7;
    font-size: .95rem;
}

.hd-event {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
}

.hd-line {
    position: relative;
    width: 18px;
    display: flex;
    justify-content: center;
}

    .hd-line:before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 2px;
        background: rgba(226, 232, 240, .9);
        border-radius: 2px;
    }

.hd-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    border: 3px solid #dbeafe;
    margin-top: 10px;
    z-index: 1;
}

.hd-event-card {
    border: 1px solid var(--hd-border);
    background: #fff;
    border-radius: 16px;
    padding: 12px;
}

    .hd-event-card .top {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 6px;
    }

    .hd-event-card .who {
        font-weight: 800;
        color: var(--hd-text);
    }

    .hd-event-card .when {
        color: var(--hd-muted);
        font-size: .85rem;
    }

    .hd-event-card .body {
        color: #0f172a;
        font-size: .95rem;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

/* =========================================================
   ATTACHMENTS
   ========================================================= */

.hd-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.hd-attachment {
    display: inline-flex;
    align-items: center;
    padding: .48rem .75rem;
    border-radius: 10px;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid var(--hd-border);
    color: #334155;
    font-size: .88rem;
}

    .hd-attachment:hover {
        background: #eff6ff;
        color: var(--hd-primary);
        border-color: #bfdbfe;
    }

/* create/edit attachment box */
.hd-panel-body .hd-attachments,
.hd-create-wrap .hd-attachments {
    border: 1px dashed rgba(226, 232, 240, .95);
    border-radius: 14px;
    padding: 12px;
    background: #fbfdff;
}

/* =========================================================
   EMPTY STATES
   ========================================================= */

.hd-empty,
.hd-empty-state {
    border: 1px dashed var(--hd-border);
    border-radius: 16px;
    text-align: center;
    color: var(--hd-muted);
    background: #fbfdff;
}

.hd-empty-state {
    padding: 28px 16px;
}

    .hd-empty-state i {
        display: block;
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

.hd-empty {
    padding: 36px 16px;
    border-top: 1px solid var(--hd-border);
    background: linear-gradient(180deg, rgba(246, 248, 251, 0), rgba(246, 248, 251, 1));
}

.hd-empty-ico {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 114, 128, .10);
    border: 1px solid var(--hd-border);
    color: #374151;
    font-size: 1.25rem;
}

.hd-empty-title {
    font-weight: 750;
    color: var(--hd-text);
}

.hd-empty-sub {
    color: var(--hd-muted);
    font-size: .95rem;
    margin-top: 2px;
}

/* =========================================================
   FORMS / INPUTS / EDITOR
   ========================================================= */

.hd-label {
    font-size: .88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: .45rem;
}

.hd-field-hint {
    color: var(--hd-muted);
    font-size: .85rem;
    margin-top: 6px;
}

.hd-input {
    position: relative;
    min-width: 170px;
}

    .hd-input i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--hd-muted);
        font-size: .9rem;
        pointer-events: none;
    }

    .hd-input .form-select,
    .hd-input .form-control {
        padding-left: 36px;
        border-radius: 14px;
    }

.hd-search {
    min-width: 280px;
}

.hd-textarea,
.hd-input,
.form-select,
.form-control {
    border-radius: 12px;
    border-color: #d7e0ea;
    min-height: 46px;
    box-shadow: none !important;
}

.hd-textarea {
    min-height: 150px;
    padding: .9rem 1rem;
    resize: vertical;
}

    .hd-textarea:focus,
    .hd-input:focus,
    .form-select:focus,
    .form-control:focus {
        border-color: #93c5fd;
    }

.hd-composer,
.hd-editor-panel {
    border: 1px solid var(--hd-border);
    border-radius: 18px;
    background: #fbfdff;
    overflow: hidden;
}

.hd-composer {
    padding: 12px;
}

.hd-editor-panel {
    background: #fff;
}

.hd-editor-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--hd-border);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    flex-wrap: wrap;
}

.hd-editor-panel-body {
    padding: 0;
}

.hd-compose-bar,
.hd-actions-row {
    display: flex;
    align-items: center;
    gap: 10px 12px;
    flex-wrap: wrap;
}

.hd-compose-bar {
    justify-content: space-between;
    padding-top: 4px;
}

/* =========================================================
   BUTTONS / NAV TABS
   ========================================================= */

.hd-btn {
    border-radius: 14px;
    font-weight: 700;
    padding: .55rem .9rem;
    min-height: 44px;
    box-shadow: none !important;
}

.hd-btn-soft {
    border-color: var(--hd-border);
    background: #fff;
}

    .hd-btn-soft:hover {
        background: #f8fbff;
        border-color: #cfe0f7;
    }

.hd-reply-tabs {
    gap: 8px;
    border: 0;
}

    .hd-reply-tabs .nav-link {
        border: 1px solid var(--hd-border);
        border-radius: 12px;
        color: #475569;
        font-weight: 600;
        padding: .7rem 1rem;
        background: #fff;
    }

        .hd-reply-tabs .nav-link.active {
            background: var(--hd-primary-soft);
            color: var(--hd-primary);
            border-color: #bfdbfe;
        }

/* =========================================================
   SIDE PANEL / STICKY
   ========================================================= */

.hd-side-panel {
    position: sticky;
    top: 84px;
}

.hd-right-sticky {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 110px);
    overflow: auto;
    padding-bottom: 12px;
}

.hd-action-group {
    margin-bottom: 16px;
}

/* =========================================================
   TABLE / MODAL
   ========================================================= */

.hd-table tbody tr:hover {
    background: rgba(37, 99, 235, .04);
}

.hd-modal {
    border-radius: 18px;
    border: 1px solid var(--hd-border);
    box-shadow: var(--hd-shadow);
}

/* =========================================================
   TINYMCE
   ========================================================= */

.tox.tox-tinymce {
    border-radius: 14px !important;
    border-color: var(--hd-border) !important;
    box-shadow: none !important;
}

.hd-editor-panel .tox.tox-tinymce,
.hd-composer .tox.tox-tinymce {
    border: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 10px;
}

#pane-public .tox.tox-tinymce {
    min-height: calc(100vh - 320px) !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {
    .hd-side-panel,
    .hd-right-sticky {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
    }

    #pane-public .tox.tox-tinymce {
        min-height: 520px !important;
    }
}

@media (max-width: 576px) {
    .hd-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hd-container.hd-container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hd-hero {
        padding: 18px;
        border-radius: 20px;
    }

    .hd-hero-title {
        font-size: 1.35rem;
    }

    .hd-card-header,
    .hd-card-body,
    .hd-panel-header,
    .hd-panel-body {
        padding: 16px;
    }

    .hd-message {
        gap: 10px;
    }

    .hd-message-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .hd-meta {
        grid-template-columns: 1fr;
    }

    #pane-public .tox.tox-tinymce {
        min-height: 420px !important;
    }
}
/* =========================================================
   ADDITIONS FROM EXTRA HELPDESK STYLES
   append after existing helpdesk.css
   ========================================================= */

:root {
    --hd-surface: #ffffff;
    --hd-danger: #dc2626;
}

/* page shell */
.helpdesk-page {
    background: var(--hd-bg);
    min-height: calc(100vh - 56px);
    padding: 18px 0 32px;
}

.hd-container {
    width: min(1200px, 94vw);
    margin: 0 auto;
}

/* hero text additions */
.hd-hero h1 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--hd-text);
    letter-spacing: .2px;
}

.hd-hero .subtitle {
    color: var(--hd-muted);
    margin-top: 4px;
    font-size: .95rem;
}

/* KPI blocks */
.hd-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.hd-kpi {
    border: 1px solid var(--hd-border);
    border-radius: 16px;
    background: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .hd-kpi .label {
        color: var(--hd-muted);
        font-size: .85rem;
    }

    .hd-kpi .value {
        color: var(--hd-text);
        font-weight: 750;
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .hd-kpi .chip {
        font-size: .8rem;
        padding: 4px 10px;
        border-radius: 999px;
        border: 1px solid var(--hd-border);
        color: var(--hd-muted);
        background: #fbfdff;
    }

/* filters */
.hd-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

    .hd-filters .form-control,
    .hd-filters .form-select {
        border-radius: 12px;
    }

/* richer badge states */
.hd-badge.new {
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, .22);
}

.hd-badge.open {
    background: rgba(59, 130, 246, .10);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, .22);
}

.hd-badge.pending {
    background: rgba(217, 119, 6, .10);
    color: #b45309;
    border-color: rgba(217, 119, 6, .22);
}

.hd-badge.resolved {
    background: rgba(22, 163, 74, .10);
    color: #15803d;
    border-color: rgba(22, 163, 74, .22);
}

.hd-badge.closed {
    background: rgba(107, 114, 128, .10);
    color: #374151;
    border-color: rgba(107, 114, 128, .22);
}

/* priority variants */
.hd-priority.low {
    background: rgba(107, 114, 128, .10);
    color: #374151;
    border-color: rgba(107, 114, 128, .22);
}

.hd-priority.normal {
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, .22);
}

.hd-priority.high {
    background: rgba(217, 119, 6, .10);
    color: #b45309;
    border-color: rgba(217, 119, 6, .22);
}

.hd-priority.urgent {
    background: rgba(220, 38, 38, .10);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, .22);
}

/* table refinement */
.hd-table thead th {
    font-size: .82rem;
    color: var(--hd-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 1px solid var(--hd-border) !important;
}

.hd-table tbody td {
    vertical-align: middle;
}

/* links */
.hd-link {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 650;
}

    .hd-link:hover {
        text-decoration: underline;
    }

/* detail layout */
.hd-detail-grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 12px;
}

/* ticket number */
.hd-ticketno {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--hd-border, #e6eaf0);
    background: #fff;
    font-weight: 700;
    letter-spacing: .2px;
}

/* meta row variant */
.hd-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 10px;
    color: var(--hd-muted, #6b7280);
    font-size: .95rem;
}

.hd-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .hd-meta-item i {
        opacity: .85;
    }

    .hd-meta-item .label {
        opacity: .85;
    }

    .hd-meta-item .value {
        color: var(--hd-text, #111827);
        font-weight: 600;
    }

/* alternate message card style */
.hd-msg {
    border: 1px solid var(--hd-border, #e6eaf0);
    border-radius: 16px;
    padding: 12px 14px;
    background: #fff;
}

.hd-msg-internal {
    background: rgba(17, 24, 39, .03);
    border-style: dashed;
}

.hd-msg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

    .hd-msg-head .who {
        font-weight: 750;
        color: var(--hd-text, #111827);
    }

    .hd-msg-head .when {
        color: var(--hd-muted, #6b7280);
        font-size: .85rem;
    }

.hd-msg-body {
    color: var(--hd-text, #111827);
    line-height: 1.45;
    white-space: normal;
}

.hd-mini-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--hd-border, #e6eaf0);
    background: rgba(17, 24, 39, .03);
    font-size: .8rem;
    font-weight: 700;
    color: #374151;
}

.hd-attach {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hd-attach-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--hd-border, #e6eaf0);
    background: #fff;
    text-decoration: none;
    font-size: .9rem;
}

.hd-sidecard {
    position: sticky;
    top: 14px;
}

.hd-field {
    margin-bottom: 12px;
}

.hd-tabs .nav-link {
    border-radius: 12px 12px 0 0;
}

/* composer textarea tweak */
.hd-composer textarea {
    border-radius: 14px;
    min-height: 110px;
}

/* responsive */
@media (max-width: 992px) {
    .hd-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hd-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hd-kpis {
        grid-template-columns: 1fr;
    }
}