/* ===========================
   TICKET DETAILS PAGE STYLES
   =========================== */

/* ===== Active Viewers Bar ===== */
.fxtd-viewers-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    margin: 0 0 4px 0;
    background: linear-gradient(135deg, #EDE9FE 0%, #F3E8FF 50%, #E0E7FF 100%);
    border: 1px solid rgba(139,92,246,.20);
    border-radius: 16px;
    flex-wrap: wrap;
}

.fxtd-viewers-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(75,62,123,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fxtd-viewers-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 12px;
    color: #4B3E7B;
    white-space: nowrap;
}

.fxtd-viewers-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.fxtd-viewer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(75,62,123,.12);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    position: relative;
}

.fxtd-viewer-you {
    border-color: rgba(75,62,123,.30);
    background: rgba(75,62,123,.06);
}

.fxtd-viewer-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4B3E7B 0%, #6D5BA3 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .5px;
}

.fxtd-viewer-name {
    font-size: 12px;
    font-weight: 700;
    color: #2D2350;
    white-space: nowrap;
}

.fxtd-viewer-you-tag {
    font-size: 10px;
    font-weight: 600;
    color: #6B7280;
    margin-left: 2px;
}


.fxtd-viewer-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(34,197,94,.30);
    animation: fxtd-pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes fxtd-pulse {
    0% {
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(34,197,94,.30);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 6px 3px rgba(34,197,94,.40), 0 0 12px 8px rgba(34,197,94,.15);
        transform: scale(1.3);
    }
    100% {
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(34,197,94,.30);
        transform: scale(1);
    }
}

.fxtd-viewers-count {
    font-size: 11px;
    font-weight: 800;
    color: #22C55E;
    background: rgba(34,197,94,.10);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    margin-left: auto;
}

.fxfl-file-btn {
    cursor: pointer;
    border: none;
    outline: none;
}

.fxtd-page {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.fxtd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 968px) {
    .fxtd-grid {
        grid-template-columns: 1fr;
    }
}

.fxtd-body {
    margin-top: 20px;
}

/* ===== TABS ===== */

.fxcz-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-top: 16px;
    overflow-x: auto;
}

.fxcz-tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    color: #6B7280;
    white-space: nowrap;
}

.fxcz-tab:not(.fxcz-tab-active):hover {
    background: rgba(0, 0, 0, 0.04);
}

.fxcz-tab-active {
    background: linear-gradient(135deg, #2D2350 0%, #4B3E7B 100%);
    color: white !important;
}

/* ===== SECTIONS ===== */

.fxcz-section {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.fxcz-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== INFO GRID ===== */

.fxcz-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fxcz-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.fxcz-info-row:last-child {
    border-bottom: none;
}

.fxcz-info-label {
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 11px;
}

.fxcz-info-value {
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
    text-align: right;
    word-break: break-word;
}

/* ===== DESCRIPTION ===== */

.fxtd-description {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ===== ATTACHMENTS ===== */

.fxtd-attachment {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F9FAFB;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.fxtd-attachment:hover {
    background: #F3F4F6;
    border-color: rgba(0, 0, 0, 0.12);
}

/* ===== NOTES ===== */

.fxtd-note {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.fxtd-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fxtd-note-author {
    font-size: 13px;
    font-weight: 700;
    color: #1F2937;
}

.fxtd-note-date {
    font-size: 12px;
    color: #9CA3AF;
}

.fxtd-note-text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
}

/* ===== TIMELINE (Activity Log) ===== */

.fxtd-timeline {
    position: relative;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fxtd-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #2D2350, #E5E7EB);
}

.fxtd-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.fxtd-timeline-dot {
    position: absolute;
    left: -27px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid #2D2350;
    border-radius: 50%;
    z-index: 1;
}

.fxtd-timeline-content {
    flex: 1;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 12px 16px;
}

.fxtd-timeline-text {
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
}

.fxtd-timeline-date {
    font-size: 12px;
    color: #9CA3AF;
}

/* ===== TASK CARD ===== */

.fxtd-task-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.fxtd-task-card:hover {
    border-color: rgba(75, 62, 123, 0.3);
    box-shadow: 0 2px 8px rgba(45, 35, 80, 0.08);
}

/* ===== IMPACT CHIPS ===== */

.fxtk-impact-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.fxtk-impact-single {
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}

.fxtk-impact-outage {
    color: #DC2626;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
}

.fxtk-impact-unknown {
    color: #6B7280;
    background: rgba(156, 163, 175, 0.12);
    border-color: rgba(156, 163, 175, 0.25);
}

/* ===========================
   EXISTING TICKET STYLES (ALREADY IN YOUR FILES)
   =========================== */

/* Ticket Status Badges - Already exists in your code */
.fxcz-ticket-status-new {
    color: #1E40AF;
    background: rgba(59, 130, 246, .12);
    border-color: rgba(59, 130, 246, .25);
}

.fxcz-ticket-status-inprogress {
    color: #B45309;
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .25);
}

.fxcz-ticket-status-onhold {
    color: #7C2D12;
    background: rgba(249, 115, 22, .12);
    border-color: rgba(249, 115, 22, .25);
}

.fxcz-ticket-status-resolved {
    color: #15803D;
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .25);
}

.fxcz-ticket-status-closed {
    color: #6B7280;
    background: rgba(156, 163, 175, .12);
    border-color: rgba(156, 163, 175, .25);
}

/* Priority Badges P0-P3 - Already exists in your code */
.fxcz-priority-p0 {
    color: #B91C1C;
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .25);
}

.fxcz-priority-p1 {
    color: #C2410C;
    background: rgba(249, 115, 22, .12);
    border-color: rgba(249, 115, 22, .25);
}

.fxcz-priority-p2 {
    color: #B45309;
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .25);
}

.fxcz-priority-p3 {
    color: #15803D;
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .25);
}

/* Stats Cards - Already exists in your code */
.fxtk-stat-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
}

.fxtk-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #2D2350;
    line-height: 1;
    margin-bottom: 6px;
}

.fxtk-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===========================
   RESPONSIVE UTILITIES
   =========================== */

@media (max-width: 768px) {
    .fxtd-page {
        padding: 12px;
    }

    .fxcz-section {
        padding: 16px;
    }

    .fxcz-info-row {
        flex-direction: column;
        gap: 4px;
    }

    .fxcz-info-label {
        min-width: auto;
    }

    .fxcz-info-value {
        text-align: left;
    }

    .fxtd-timeline {
        padding-left: 24px;
    }

    .fxtd-timeline-dot {
        left: -19px;
    }
}

/* =====================================================
   TICKET DETAILS — ADDITIONS
   Append these rules to ticket-details-styles.css
   ===================================================== */

/* ─────────────────────────────────────────────────────
   HEADER LAYOUT
   ───────────────────────────────────────────────────── */

.fxcz-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    flex-wrap: wrap;
}

.fxcz-top-left {
    flex: 1;
    min-width: 0;
}

/* ─────────────────────────────────────────────────────
   ACTION BUTTONS — unified base
   All buttons share the same height, font, padding and
   border-radius. Only colour tokens differ per variant.
   ───────────────────────────────────────────────────── */

.fxtd-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Base button */
.fxtd-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    border: none;
    font-family: 'Poppins', 'Inter', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    line-height: 1;
}

.fxtd-btn:hover { transform: translateY(-1px); }
.fxtd-btn:active { transform: translateY(0); }

.fxtd-btn-icon {
    display: flex;
    align-items: center;
    line-height: 1;
}

/* ── Change Status — brand purple ── */
.fxtd-btn-status {
    background: linear-gradient(135deg, #2D2350 0%, #4B3E7B 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(45, 35, 80, 0.28);
}
.fxtd-btn-status:hover {
    filter: brightness(1.10);
    box-shadow: 0 6px 20px rgba(45, 35, 80, 0.38);
}

/* ── Assign — teal ── */
.fxtd-btn-assign {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}
.fxtd-btn-assign:hover {
    filter: brightness(1.10);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.38);
}

/* ── Delegate Task — amber ── */
.fxtd-btn-delegate {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
}
.fxtd-btn-delegate:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.38);
}

/* ── Refresh — ghost (outline only) ── */
.fxtd-btn-refresh {
    background: transparent;
    color: #4B3E7B;
    border: 1.5px solid rgba(75, 62, 123, 0.30) !important;
    box-shadow: none;
}
.fxtd-btn-refresh:hover {
    background: rgba(75, 62, 123, 0.06);
    border-color: #4B3E7B !important;
    box-shadow: none;
    filter: none;
}

/* ── Primary (used in empty state) ── */
.fxtd-btn-primary {
    background: linear-gradient(135deg, #2D2350 0%, #4B3E7B 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(45, 35, 80, 0.28);
}
.fxtd-btn-primary:hover {
    filter: brightness(1.10);
    box-shadow: 0 6px 20px rgba(45, 35, 80, 0.38);
}

/* Responsive: stack buttons on narrow screens */
@media (max-width: 768px) {
    .fxcz-top {
        flex-direction: column;
    }
    .fxtd-header-actions {
        width: 100%;
    }
    .fxtd-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ─────────────────────────────────────────────────────
   FIELDS TAB
   ───────────────────────────────────────────────────── */

.fxtd-fields-section {
    padding: 24px;
}

.fxtd-fields-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: none;
    letter-spacing: 0;
    background: #F3F4F6;
    padding: 3px 10px;
    border-radius: 999px;
}

/* Responsive masonry-like grid */
.fxtd-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

/* Individual field card */
.fxtd-field-card {
    position: relative;
    background: #F8F7FF;
    border: 1.5px solid rgba(75, 62, 123, 0.12);
    border-radius: 12px;
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.fxtd-field-card:hover {
    border-color: rgba(75, 62, 123, 0.30);
    box-shadow: 0 2px 12px rgba(45, 35, 80, 0.08);
}

/* Key row */
.fxtd-field-key {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #4B3E7B;
    line-height: 1.3;
}

/* Value row — default */
.fxtd-field-value {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    word-break: break-word;
    line-height: 1.5;
}

/* Boolean — green / red pill */
.fxtd-field-value-bool {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    width: fit-content;
}
.fxtd-field-value-true {
    color: #15803D;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.fxtd-field-value-false {
    color: #B91C1C;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Number — monospace accent */
.fxtd-field-value-number {
    font-family: ui-monospace, monospace;
    font-size: 16px;
    font-weight: 800;
    color: #2D2350;
}

/* Array — smaller items */
.fxtd-field-value-array {
    font-size: 13px;
    color: #374151;
}

/* Type badge — bottom-right corner */
.fxtd-field-type-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9CA3AF;
    background: rgba(156, 163, 175, 0.12);
    padding: 2px 7px;
    border-radius: 999px;
}

/* "View all" link inside details card */
.fxtd-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 700;
    color: #4B3E7B;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: color 0.15s;
}
.fxtd-view-all-btn:hover { color: #2D2350; }

@media (max-width: 640px) {
    .fxtd-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   FIELDS TAB — COMPLETE STYLES (all 11 field types)
   ===================================================== */

/* Grid */
.fxtd-fields-section { padding: 24px; }

.fxtd-fields-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: none;
    letter-spacing: 0;
    background: #F3F4F6;
    padding: 3px 10px;
    border-radius: 999px;
}

.fxtd-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

/* Card */
.fxtd-field-card {
    position: relative;
    background: #F8F7FF;
    border: 1.5px solid rgba(75,62,123,.12);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
}
.fxtd-field-card:hover {
    border-color: rgba(75,62,123,.30);
    box-shadow: 0 3px 14px rgba(45,35,80,.10);
}

/* Type badge (top-right) */
.fxtd-field-type-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #9CA3AF;
    background: rgba(156,163,175,.12);
    padding: 2px 7px;
    border-radius: 999px;
}

/* Key / Label */
.fxtd-field-key {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #4B3E7B;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0;
    padding: 4px 12px 4px 0;
    border-right: 2px solid rgba(75,62,123,.18);
}
.fxtd-field-key.fxtd-rtl {
    direction: rtl;
    text-align: right;
    border-right: none;
    border-left: 2px solid rgba(75,62,123,.18);
    padding: 4px 0 4px 12px;
}

/* Value base */
.fxtd-field-value {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    word-break: break-word;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}

/* ── LongText ─────────────────────────────────────── */
.fxtd-field-longtext {
    white-space: pre-wrap;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    line-height: 1.6;
    background: rgba(75,62,123,.04);
    border-radius: 8px;
    padding: 8px 12px;
    max-height: 120px;
    overflow-y: auto;
}

/* ── Numbers (Int + Decimal) ──────────────────────── */
.fxtd-field-value-number {
    font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
    font-size: 16px;
    font-weight: 800;
    color: #2D2350;
    letter-spacing: .5px;
}

/* ── URL ──────────────────────────────────────────── */
.fxtd-field-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4B3E7B;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(75,62,123,.18);
    background: rgba(75,62,123,.04);
    transition: all .15s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fxtd-field-url:hover {
    background: rgba(75,62,123,.10);
    border-color: #4B3E7B;
    color: #2D2350;
}

/* ── Dropdown chips ───────────────────────────────── */
.fxtd-field-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.fxtd-field-chip {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #4B3E7B;
    background: rgba(75,62,123,.08);
    border: 1px solid rgba(75,62,123,.18);
    border-radius: 999px;
    padding: 3px 12px;
}

/* ── Checkbox / Bool pill ─────────────────────────── */
.fxtd-field-value-bool {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    width: fit-content;
}
.fxtd-field-value-true {
    color: #15803D;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.25);
}
.fxtd-field-value-false {
    color: #B91C1C;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.25);
}

/* ── DateTime ─────────────────────────────────────── */
.fxtd-field-value-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* ── File / Image links ───────────────────────────── */
.fxtd-field-file-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #4B3E7B;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1.5px solid rgba(75,62,123,.20);
    background: rgba(75,62,123,.04);
    transition: all .15s;
}
.fxtd-field-file-link:hover {
    background: rgba(75,62,123,.10);
    border-color: #4B3E7B;
    box-shadow: 0 2px 8px rgba(45,35,80,.10);
}
.fxtd-field-image-link {
    border-color: rgba(124,58,237,.20);
    color: #7C3AED;
}
.fxtd-field-image-link:hover {
    border-color: #7C3AED;
    background: rgba(124,58,237,.08);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 640px) {
    .fxtd-fields-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .fxtd-field-card {
        flex-direction: column;
        gap: 6px;
    }
    .fxtd-field-key {
        border-right: none;
        border-bottom: 2px solid rgba(75,62,123,.15);
        padding: 0 0 6px 0;
        width: 100%;
    }
    .fxtd-field-key.fxtd-rtl {
        border-left: none;
        border-bottom: 2px solid rgba(75,62,123,.15);
        padding: 0 0 6px 0;
    }
}

/* ─────────────────────────────────────────────────────
   NOTES — ACTION ROW (Add Note + Attach on same line)
   ───────────────────────────────────────────────────── */
.fxtd-note-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.fxtd-note-attached-file {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    background: #F3F4F6;
    border-radius: 8px;
    padding: 5px 10px;
}

.fxtd-btn-attach {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    padding: 9px 20px;
    border-radius: 10px;
    font-family: 'Poppins', 'Inter', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #fff;
    border: none;
    box-shadow: 0 3px 12px rgba(245,158,11,.28);
    transition: box-shadow .18s, transform .15s;
    margin-left: auto;
}
.fxtd-btn-attach:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    box-shadow: 0 5px 18px rgba(245,158,11,.40);
    transform: translateY(-1px);
    color: #fff;
}

/* Note attachment link in existing notes */
.fxtd-note-attachment-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,.06);
}
.fxtd-note-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4B3E7B;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(75,62,123,.25);
    background: rgba(75,62,123,.04);
    transition: background .15s, border-color .15s;
}
.fxtd-note-attachment-link:hover {
    background: rgba(75,62,123,.10);
    border-color: #4B3E7B;
}