/* DigiCON 2026 — Contact Panel */

.dcp-app {
    --dcp-bg: #f5f5f7;
    --dcp-surface: #ffffff;
    --dcp-border: rgba(0, 0, 0, 0.09);
    --dcp-text: #1d1d1f;
    --dcp-text-secondary: #6e6e73;
    --dcp-accent: #0071e3;
    --dcp-radius: 12px;
    --dcp-radius-sm: 10px;
    --dcp-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
    --dcp-sidebar-w: 240px;
    --dcp-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
    --dcp-safe-bottom: env(safe-area-inset-bottom, 0px);
    --dcp-safe-top: env(safe-area-inset-top, 0px);

    font-family: var(--dcp-font);
    color: var(--dcp-text);
    background: var(--dcp-bg);
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 60vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dcp-app *, .dcp-app *::before, .dcp-app *::after {
    box-sizing: border-box;
}

/* —— Top header —— */
.dcp-top {
    background: var(--dcp-surface);
    border-bottom: 1px solid var(--dcp-border);
    padding: 12px 20px 14px;
}

.dcp-top__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
}

.dcp-top__row--filters {
    justify-content: space-between;
    align-items: center;
}

.dcp-stats-wrap {
    min-width: 0;
    flex: 0 0 auto;
    max-width: 100%;
}

.dcp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.dcp-top__search {
    position: relative;
    width: 280px;
    max-width: 100%;
    min-width: 180px;
}

.dcp-suggestions {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: var(--dcp-surface);
    border: 1px solid var(--dcp-border);
    border-radius: 10px;
    box-shadow: var(--dcp-shadow);
    max-height: 280px;
    overflow: auto;
}

.dcp-suggestion {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

.dcp-suggestion:hover {
    background: rgba(0, 113, 227, 0.06);
}

.dcp-suggestion small {
    color: var(--dcp-text-secondary);
    font-size: 11px;
}

.dcp-top__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 14px;
    flex: 1 1 auto;
    min-width: 0;
}

.dcp-top-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dcp-top-filter--search {
    min-width: 240px;
}

.dcp-top-filter__label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dcp-text-secondary);
    white-space: nowrap;
}

.dcp-select--top,
.dcp-input--date {
    min-width: 120px;
    max-width: 160px;
}

.dcp-select,
.dcp-input {
    padding: 7px 10px;
    border: 1px solid var(--dcp-border);
    border-radius: var(--dcp-radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: var(--dcp-surface);
    color: var(--dcp-text);
    max-width: 100%;
    min-height: 36px;
}

.dcp-select:focus,
.dcp-input:focus {
    outline: none;
    border-color: var(--dcp-accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.dcp-input--date {
    color-scheme: light;
}

/* Stats cards */
.dcp-stat {
    display: flex;
    flex-direction: column;
    padding: 6px 12px;
    background: var(--dcp-bg);
    border-radius: var(--dcp-radius-sm);
    border: 1px solid transparent;
    min-width: 72px;
}

.dcp-stat__value {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.dcp-stat__label {
    font-size: 10px;
    font-weight: 500;
    color: var(--dcp-text-secondary);
    margin-top: 2px;
    white-space: nowrap;
}

.dcp-stat--accent .dcp-stat__value { color: var(--dcp-accent); }
.dcp-stat--warn .dcp-stat__value { color: #c41e3a; }

.dcp-top__search .dcp-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--dcp-text-secondary);
    pointer-events: none;
}

.dcp-search {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1px solid var(--dcp-border);
    border-radius: 999px;
    font-size: 14px;
    font-family: inherit;
    background: var(--dcp-bg);
}

.dcp-search:focus {
    outline: none;
    border-color: var(--dcp-accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
    background: var(--dcp-surface);
}

/* —— Layout: sidebar | table —— */
.dcp-layout {
    display: grid;
    grid-template-columns: var(--dcp-sidebar-w) minmax(0, 1fr);
    align-items: stretch;
    min-height: calc(100vh - 200px);
}

.dcp-sidebar {
    background: var(--dcp-surface);
    border-right: 1px solid var(--dcp-border);
    padding: 14px 12px 20px;
    position: sticky;
    top: 0;
    max-height: calc(100vh - 8px);
    overflow-y: auto;
}

.dcp-sidebar__section {
    margin-bottom: 18px;
}

.dcp-sidebar__section--hotels {
    margin-bottom: 8px;
}

.dcp-sidebar__heading {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dcp-text-secondary);
}

.dcp-sidebar-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dcp-sidebar-btns--scroll {
    max-height: min(50vh, 420px);
    overflow-y: auto;
    padding-right: 2px;
}

.dcp-side-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--dcp-border);
    border-radius: var(--dcp-radius-sm);
    background: var(--dcp-surface);
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    text-align: left;
    color: var(--dcp-text);
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
    min-height: 40px;
}

.dcp-side-btn:hover {
    border-color: rgba(0, 113, 227, 0.35);
    background: rgba(0, 113, 227, 0.04);
}

.dcp-side-btn.is-active {
    background: var(--dcp-accent);
    border-color: var(--dcp-accent);
    color: #fff;
}

.dcp-side-btn.is-active .dcp-side-btn__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.dcp-side-btn__label {
    flex: 1;
    min-width: 0;
}

.dcp-side-btn__count {
    flex-shrink: 0;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--dcp-bg);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dcp-text-secondary);
}

.dcp-clear-btn {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px dashed var(--dcp-border);
    border-radius: var(--dcp-radius-sm);
    background: transparent;
    font-size: 12px;
    font-family: inherit;
    color: var(--dcp-text-secondary);
    cursor: pointer;
}

.dcp-clear-btn:hover {
    border-color: var(--dcp-accent);
    color: var(--dcp-accent);
}

/* —— Main table area —— */
.dcp-main {
    padding: 14px 16px 16px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
}

.dcp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.dcp-toolbar__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dcp-result-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--dcp-text-secondary);
    white-space: nowrap;
}

.dcp-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dcp-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--dcp-accent);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.dcp-active-tag button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    font-size: 14px;
    line-height: 1;
    opacity: 0.75;
}

.dcp-sort-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--dcp-text-secondary);
}

.dcp-select--compact {
    width: auto;
    min-width: 130px;
}

.dcp-table-wrap {
    background: var(--dcp-surface);
    border-radius: var(--dcp-radius);
    box-shadow: var(--dcp-shadow);
    border: 1px solid var(--dcp-border);
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dcp-table-scroll {
    flex: 1;
    min-height: 280px;
    max-height: calc(100vh - 300px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.dcp-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
    font-size: 13px;
}

.dcp-table thead {
    background: var(--dcp-bg);
    position: sticky;
    top: 0;
    z-index: 2;
}

.dcp-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dcp-text-secondary);
    border-bottom: 1px solid var(--dcp-border);
    white-space: nowrap;
}

.dcp-col-sort {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    cursor: pointer;
}

.dcp-col-sort.is-active::after {
    content: " ▲";
}

.dcp-col-sort.is-active.is-desc::after {
    content: " ▼";
}

.dcp-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--dcp-border);
    vertical-align: middle;
}

.dcp-table tbody tr {
    cursor: pointer;
    transition: background 0.1s;
}

.dcp-table tbody tr:hover {
    background: rgba(0, 113, 227, 0.04);
}

.dcp-table tbody tr:last-child td {
    border-bottom: none;
}

.dcp-table .dcp-loading {
    text-align: center;
    padding: 40px;
    color: var(--dcp-text-secondary);
}

.dcp-col-name {
    font-weight: 600;
    min-width: 140px;
}

.dcp-name-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.dcp-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    color: #0071e3;
    background: rgba(0, 113, 227, 0.12);
}

.dcp-flag--staff {
    color: #0071e3;
}

.dcp-badge--customer { background: #e8f4fc; color: #0a4b78; }
.dcp-badge--prospect { background: #f0f0f1; color: #50575e; }
.dcp-badge--competitor { background: #fce8e8; color: #c41e3a; }
.dcp-badge--hq_day1 { background: #ede7f6; color: #5e35b1; }
.dcp-badge--hq_day2 { background: #e0f2f1; color: #00695c; }

.dcp-col-name small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    color: var(--dcp-text-secondary);
    margin-top: 2px;
}

.dcp-comment {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--dcp-text-secondary);
    font-size: 12px;
}

.dcp-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.dcp-badge--completed { background: #e6f4ea; color: #1a7f37; }
.dcp-badge--confirmation { background: #e8f4fc; color: #0a4b78; }
.dcp-badge--registration_feedback { background: #fcf0e3; color: #9a6700; }
.dcp-badge--registration { background: #f0f0f1; color: #50575e; }
.dcp-badge--unsubscribed { background: #fce8e8; color: #c41e3a; }

.dcp-col-svc {
    text-align: center;
    width: 32px;
    min-width: 30px;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

.dcp-col-svc--onsite {
    width: 38px;
    min-width: 36px;
}

.dcp-table .dcp-col-svc + .dcp-col-svc {
    padding-left: 1px !important;
}

.dcp-table thead .dcp-col-svc {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.15;
    white-space: nowrap;
}

.dcp-table thead .dcp-col-svc--onsite {
    font-size: 8px;
    letter-spacing: 0;
}

.dcp-svc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.dcp-svc--assigned { background: #e6f4ea; color: #1a7f37; }
.dcp-svc--optional_assigned { background: #f3e8ff; color: #7c3aed; }
.dcp-svc--not_needed { background: #f0f0f1; color: #86868b; }
.dcp-svc--pending { background: #fcf0e3; color: #9a6700; }
.dcp-svc--unknown { background: #fce8e8; color: #c41e3a; }

.dcp-flight { font-size: 12px; line-height: 1.35; }
.dcp-flight strong { display: block; font-weight: 600; }
.dcp-flight span { color: var(--dcp-text-secondary); font-size: 11px; }

.dcp-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 14px;
}

.dcp-page-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid var(--dcp-border);
    border-radius: var(--dcp-radius-sm);
    background: var(--dcp-surface);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.dcp-page-btn.is-active {
    background: var(--dcp-accent);
    border-color: var(--dcp-accent);
    color: #fff;
    font-weight: 600;
}

.dcp-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.dcp-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--dcp-text-secondary);
}

.dcp-logout {
    text-align: center;
    font-size: 12px;
    color: var(--dcp-text-secondary);
    padding: 8px;
}

/* —— Modal (portaled to body) —— */
.dcp-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dcp-modal[hidden] {
    display: none !important;
}

.dcp-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.dcp-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    max-height: min(92vh, 900px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 24px 80px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dcp-modal-in 0.22s ease;
}

@keyframes dcp-modal-in {
    from { opacity: 0; transform: scale(0.97) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.dcp-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 14px;
    background: #ffffff;
    border-bottom: 1px solid var(--dcp-border);
    flex-shrink: 0;
}

.dcp-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--dcp-text);
}

.dcp-modal__subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--dcp-text-secondary);
}

.dcp-modal__close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--dcp-bg);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--dcp-text-secondary);
    flex-shrink: 0;
}

.dcp-modal__body {
    padding: 18px 22px 24px;
    overflow-y: auto;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.dcp-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--dcp-bg);
    border-radius: var(--dcp-radius);
}

.dcp-fact__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dcp-text-secondary);
}

.dcp-fact__value {
    font-size: 14px;
    color: var(--dcp-text);
    margin-top: 3px;
}

.dcp-fact__value code {
    font-size: 13px;
    background: var(--dcp-surface);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--dcp-border);
}

.dcp-modal__section h3 {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dcp-text-secondary);
}

.dcp-overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.dcp-overview-card {
    padding: 10px 12px;
    border-radius: var(--dcp-radius-sm);
    font-size: 11px;
    font-weight: 500;
}

.dcp-overview-card strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.dcp-overview-card--assigned { background: #e6f4ea; color: #1a7f37; }
.dcp-overview-card--missing { background: #fcf0e3; color: #9a6700; }
.dcp-overview-card--info { background: #fce8e8; color: #c41e3a; }
.dcp-overview-card--none { background: #f0f0f1; color: #86868b; }

.dcp-alert {
    padding: 12px 14px;
    border-radius: var(--dcp-radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.45;
}

.dcp-alert--warn {
    background: #fce8e8;
    color: #8a1010;
    border: 1px solid #f5c2c7;
}

.dcp-alert strong { display: block; margin-bottom: 4px; }

.dcp-service-list { display: flex; flex-direction: column; gap: 6px; }

.dcp-modal__actions {
    margin: 16px 0 0;
}

.dcp-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--dcp-accent);
    color: #fff;
    background: var(--dcp-accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.dcp-service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: var(--dcp-bg);
    border: 1px solid var(--dcp-border);
    border-radius: var(--dcp-radius-sm);
    font-size: 13px;
}

.dcp-service-row__label { font-weight: 600; }
.dcp-service-row__meta { font-size: 11px; color: var(--dcp-text-secondary); margin-top: 2px; }

.dcp-status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.dcp-status-pill--assigned { background: #e6f4ea; color: #1a7f37; }
.dcp-status-pill--pending { background: #fcf0e3; color: #9a6700; }
.dcp-status-pill--info_pending { background: #fce8e8; color: #c41e3a; }
.dcp-status-pill--not_needed { background: #f0f0f1; color: #86868b; }

body.dcp-modal-open {
    overflow: hidden;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
    .dcp-top__filters {
        width: 100%;
    }

    .dcp-select--top,
    .dcp-input--date {
        max-width: none;
        flex: 1;
        min-width: 110px;
    }
}

@media (max-width: 900px) {
    .dcp-app {
        width: 100%;
        max-width: none;
    }

    .dcp-top {
        padding: calc(12px + var(--dcp-safe-top)) 16px 12px;
        position: sticky;
        top: 0;
        z-index: 20;
        box-shadow: 0 1px 0 var(--dcp-border);
    }

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

    .dcp-top-filter {
        width: auto;
    }

    .dcp-select--top,
    .dcp-input--date {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .dcp-top__row--filters {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .dcp-top__search {
        order: -1;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .dcp-stats-wrap {
        width: 100%;
        overflow: hidden;
        margin: 0 -4px;
        padding: 0 4px;
        mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
    }

    .dcp-stats {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 8px 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
    }

    .dcp-stats::-webkit-scrollbar {
        display: none;
    }

    .dcp-stat {
        flex-shrink: 0;
        min-width: 76px;
        border: 1px solid var(--dcp-border);
        background: var(--dcp-surface);
    }

    .dcp-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .dcp-sidebar {
        position: static;
        max-height: min(34vh, 260px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        border-right: none;
        border-bottom: 1px solid var(--dcp-border);
        padding: 10px 0 12px;
    }

    .dcp-sidebar__section {
        margin-bottom: 10px;
        padding-left: 16px;
    }

    .dcp-sidebar__section:last-of-type {
        margin-bottom: 10px;
    }

    .dcp-sidebar__heading {
        padding-right: 16px;
        margin-bottom: 8px;
        font-size: 11px;
    }

    .dcp-sidebar-btns {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding: 0 16px 4px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .dcp-sidebar-btns::-webkit-scrollbar {
        display: none;
    }

    .dcp-sidebar-btns--scroll {
        max-height: none;
    }

    .dcp-side-btn {
        width: auto;
        flex-shrink: 0;
        min-width: max-content;
        padding: 10px 14px;
        border-radius: 999px;
        white-space: nowrap;
    }

    .dcp-clear-btn {
        margin: 4px 16px 0;
        width: calc(100% - 32px);
        min-height: 44px;
    }

    .dcp-main {
        min-height: 0;
        padding: 12px 16px calc(16px + var(--dcp-safe-bottom));
    }

    .dcp-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .dcp-toolbar__right {
        width: 100%;
    }

    .dcp-sort-label {
        width: 100%;
        justify-content: space-between;
    }

    .dcp-select--compact {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .dcp-table-wrap {
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }

    .dcp-table-scroll {
        max-height: none;
        overflow: visible;
    }

    /* Card list — Apple Contacts style */
    .dcp-table {
        min-width: 0;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .dcp-table thead {
        display: none;
    }

    .dcp-table tbody tr {
        display: block;
        background: var(--dcp-surface);
        border: 1px solid var(--dcp-border);
        border-radius: var(--dcp-radius);
        box-shadow: var(--dcp-shadow);
        padding: 14px 16px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .dcp-table tbody tr:hover {
        background: var(--dcp-surface);
    }

    .dcp-table tbody tr:active {
        transform: scale(0.985);
        background: rgba(0, 113, 227, 0.03);
    }

    .dcp-table td {
        display: block;
        padding: 0;
        border: none;
    }

    .dcp-table td::before {
        display: none;
    }

    .dcp-table td[data-label="Name"] {
        margin-bottom: 6px;
    }

    .dcp-table td[data-label="Name"] .dcp-col-name {
        font-size: 16px;
        font-weight: 600;
        letter-spacing: -0.02em;
        line-height: 1.25;
        min-width: 0;
    }

    .dcp-table td[data-label="Company"],
    .dcp-table td[data-label="Status"] {
        display: inline-block;
        vertical-align: middle;
        margin-right: 8px;
        margin-bottom: 8px;
    }

    .dcp-table td[data-label="Company"] {
        font-size: 14px;
        color: var(--dcp-text-secondary);
        max-width: calc(100% - 120px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dcp-table td[data-label="Hotel"] {
        font-size: 13px;
        color: var(--dcp-text-secondary);
        margin-bottom: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dcp-table td[data-label="Hotel"]::before {
        content: "Hotel · ";
        color: var(--dcp-text-secondary);
        font-weight: 500;
    }

    .dcp-table td[data-label="Services"] {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap;
    }

    .dcp-table td[data-label="Services"]::before {
        content: "Services";
        display: block;
        width: 100%;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--dcp-text-secondary);
        margin-bottom: 6px;
    }

    .dcp-table td[data-label="Visit HQ"],
    .dcp-table td[data-label="Departure"] {
        display: none;
    }

    .dcp-table td[data-label="Visit HQ"]:has(.dcp-badge) {
        display: inline-block;
        vertical-align: middle;
        margin-right: 8px;
        margin-bottom: 8px;
    }

    .dcp-table .dcp-loading {
        padding: 32px 16px;
    }

    .dcp-table tbody tr:has(.dcp-empty) {
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .dcp-table tbody tr:has(.dcp-empty) td {
        display: block;
    }

    .dcp-overview-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dcp-col-profile {
    white-space: nowrap;
    width: 1%;
}

.dcp-profile-link {
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.dcp-profile-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .dcp-top__filters {
        grid-template-columns: 1fr;
    }

    .dcp-result-count {
        white-space: normal;
    }

    .dcp-active-filters {
        width: 100%;
    }

    .dcp-modal {
        padding: 0;
        align-items: flex-end;
    }

    .dcp-modal__panel {
        max-width: none;
        width: 100%;
        max-height: calc(94vh - var(--dcp-safe-bottom));
        border-radius: 16px 16px 0 0;
        padding-bottom: var(--dcp-safe-bottom);
    }

    .dcp-modal__header {
        padding: 18px 18px 12px;
    }

    .dcp-modal__body {
        padding: 16px 18px calc(20px + var(--dcp-safe-bottom));
    }

    .dcp-modal__grid {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 12px;
    }

    .dcp-modal__close {
        width: 44px;
        height: 44px;
    }

    .dcp-overview-cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .dcp-pagination {
        gap: 8px;
        padding-bottom: var(--dcp-safe-bottom);
    }
}

@media (max-width: 380px) {
    .dcp-stat {
        min-width: 68px;
        padding: 6px 10px;
    }

    .dcp-stat__value {
        font-size: 16px;
    }
}
