/* DV360 "Create New ID" modal (deals-list.html) — inherits --dl-* tokens from
   the .dl-page wrapper already defined there; only component-level rules live
   here, following the same separate-stylesheet convention as data-builder.css. */

/* Own width class (not dl-modal--xwide) so the Google Ads modal, which shares
   that class, isn't affected by widening this one. Compound selector (not
   bare .dl-modal--dv) — this file loads via a <head> <link>, but deals-list.html's
   own inline <style> (with .dl-modal's base width:440px) gets inserted into the
   DOM later at runtime; equal-specificity ties go to whichever is later, so a
   single-class selector here would silently lose to that base rule. */
.dl-modal.dl-modal--dv {
    width: min(940px, 96vw);
}

.dc-chip-add {
    border: 0;
    background: var(--dl-teal);
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}

.dc-chip-add:hover {
    background: #0c8776;
}

.dc-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--dl-surf);
    border: 1px solid var(--dl-line);
    border-radius: 12px;
    /* Side padding keeps the two steps spread out; the line fills between them. */
    padding: 12px 12%;
    margin-bottom: 16px;
}

.dc-step {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--dl-muted);
    font-weight: 700;
    font-size: .85rem;
}

.dc-step .circ {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: var(--dl-muted);
    display: grid;
    place-items: center;
    font-size: .76rem;
    font-weight: 800;
    border: 1px solid var(--dl-line);
}

.dc-step.active {
    color: var(--dl-dark);
}

.dc-step.active .circ {
    background: var(--dl-teal);
    color: #fff;
    border-color: var(--dl-teal);
}

.dc-step.done .circ {
    background: var(--dl-green);
    color: #fff;
    border-color: var(--dl-green);
}

.dc-stepline {
    flex: 1;
    height: 2px;
    margin: 0 12px;   /* a small gap either side — reads as joined, without touching the labels */
    background: var(--dl-line);
    border-radius: 2px;
}

.dc-card {
    background: #fff;
    border: 1px solid var(--dl-line);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}

.dc-card h3 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--dl-dark);
    margin: 0 0 14px;
}

.dc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dc-fld {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dc-fld label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--dl-muted);
    font-weight: 700;
}

.dc-fld .req {
    color: var(--dl-red);
}

.dc-fld input,
.dc-fld select,
.dc-fld textarea {
    border: 1px solid var(--dl-line);
    border-radius: 9px;
    padding: 9px 11px;
    font-size: .86rem;
    font-family: inherit;
    color: var(--dl-ink);
    background: #fff;
}

.dc-fld input:focus,
.dc-fld select:focus,
.dc-fld textarea:focus {
    outline: none;
    border-color: var(--dl-teal);
}

.dc-fld input.invalid,
.dc-fld select.invalid {
    border-color: var(--dl-red);
}

.dc-fld input[readonly],
.dc-fld input:disabled,
.dc-fld select:disabled,
.dc-fld textarea:disabled {
    background: var(--dl-surf);
    color: var(--dl-muted);
    cursor: not-allowed;
    border-color: var(--dl-line);
}

.dc-fld-err {
    font-size: .74rem;
    color: var(--dl-red);
    font-weight: 600;
}

.dc-seg {
    display: inline-flex;
    background: var(--dl-surf);
    border: 1px solid var(--dl-line);
    border-radius: 9px;
    padding: 3px;
    gap: 3px;
}

.dc-seg button {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--dl-muted);
    font-weight: 700;
    font-size: .8rem;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

.dc-seg button.on {
    background: var(--dl-dark);
    color: #fff;
}

.dc-seg button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.dc-seg button.on:disabled {
    opacity: .8;
}

.dc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border: 1px solid var(--dl-line);
    border-radius: 9px;
    padding: 8px;
    align-items: center;
}

.dc-chips.invalid {
    border-color: var(--dl-red);
}

/* Edit mode's "Existing Tactics" — a read-only field, not an input. */
.dc-chips--readonly {
    background: var(--dl-surf);
    cursor: not-allowed;
}

.dc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dl-surf);
    border: 1px solid var(--dl-line);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--dl-ink);
}

.dc-chip--locked {
    background: transparent;
    color: var(--dl-muted);
    border-style: dashed;
}

.dc-chip button {
    border: 0;
    background: transparent;
    color: var(--dl-red);
    cursor: pointer;
    font-size: .85rem;
    line-height: 1;
}

.dc-chips input {
    border: 0;
    flex: 1;
    min-width: 120px;
    font-size: .84rem;
    padding: 4px;
}

.dc-chips input:focus {
    outline: none;
}

.dc-addbtn {
    border: 0;
    background: transparent;
    color: var(--dl-teal);
    font-weight: 700;
    font-size: .76rem;
    cursor: pointer;
    padding: 4px 6px;
}

.dc-dropzone {
    border: 1.5px dashed var(--dl-line);
    border-radius: 11px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--dl-surf);
}

.dc-dropzone.invalid {
    border-color: var(--dl-red);
}

.dc-dropzone.dragging {
    border-color: var(--dl-teal);
    background: #f2fbf9;
}

.dc-dropzone .t {
    font-weight: 700;
    color: var(--dl-dark);
    font-size: .86rem;
}

.dc-dropzone .h {
    color: var(--dl-muted);
    font-size: .76rem;
}

.dc-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eaf7ef;
    border: 1px solid #bfe4cf;
    color: var(--dl-green);
    border-radius: 9px;
    padding: 6px 11px;
    font-size: .82rem;
    font-weight: 700;
    margin-top: 8px;
}

.dc-file-chip button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: .75;
}

.dc-errlist {
    background: #fdecec;
    border: 1px solid #f3c0c0;
    color: var(--dl-red);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: .8rem;
    font-weight: 600;
    margin-top: 10px;
}

.dc-errlist div {
    margin-top: 2px;
}

.dc-batch {
    border: 1px solid var(--dl-line);
    border-radius: 11px;
    margin-bottom: 12px;
    overflow: hidden;
}

.dc-batch-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--dl-surf);
    cursor: pointer;
}

.dc-batch-hd .n {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dl-dark);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.dc-batch-hd .t {
    font-weight: 700;
    color: var(--dl-dark);
    flex: 1;
}

.dc-batch-hd .status {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--dl-muted);
}

.dc-batch-hd .status.saved {
    color: var(--dl-green);
}

.dc-batch-hd .bi-chevron-up,
.dc-batch-hd .bi-chevron-down {
    color: var(--dl-muted);
    font-size: .8rem;
    flex-shrink: 0;
}

.dc-batch-body {
    padding: 14px;
}

.dc-rmbatch {
    border: 0;
    background: transparent;
    color: var(--dl-red);
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
    margin-top: 8px;
}

.dc-sample-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.dc-sample {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--dl-teal);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-size: .78rem;
}

.dc-note {
    font-size: .76rem;
    color: var(--dl-muted);
    margin-top: 4px;
}

.dc-result {
    background: #eaf7ef;
    border: 1px solid #bfe4cf;
    border-radius: 12px;
    padding: 16px;
}

.dc-result h3 {
    color: var(--dl-green);
    margin: 0 0 10px;
    font-size: .95rem;
}

.dc-mono {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    color: var(--dl-teal);
    font-weight: 600;
}

.dc-deal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px solid #d7ecdd;
}

.dc-copybtn {
    border: 1px solid #bfe4cf;
    background: #fff;
    color: var(--dl-green);
    border-radius: 7px;
    width: 26px;
    height: 24px;
    cursor: pointer;
}

.dc-warn {
    background: #fff5e6;
    border: 1px solid #ffe0ad;
    color: #b3792a;
    border-radius: 9px;
    padding: 8px 12px;
    font-size: .76rem;
    margin-top: 10px;
}

.dc-muted {
    color: var(--dl-muted);
}

/* Context step: the reference's numbered Targeting Placements steps. */
.dc-pstep {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--dl-line);
}

.dc-pstep__n {
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid var(--dl-line);
    color: var(--dl-muted);
}

.dc-pstep__n.done {
    background: var(--dl-teal);
    border-color: var(--dl-teal);
    color: #fff;
}

.dc-pstep__t {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: .84rem;
}

.dc-pstep__t span {
    color: var(--dl-muted);
    font-size: .78rem;
}

/* Targeting sheet — the reference's layout: dropzone | preview, side by side. */
.dc-ts-label {
    display: block;
    font-weight: 700;
    color: var(--dl-dark);
    font-size: .86rem;
    margin-bottom: 8px;
}

.dc-ts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
}

.dc-ts-row .dc-dropzone {
    justify-content: center;
    padding: 28px 16px;
    border-style: dashed;
    border-width: 1px;
    border-radius: 8px;
    transition: background-color .2s ease, border-color .2s ease;
}

.dc-ts-row .dc-dropzone:hover {
    border-color: var(--dl-teal);
    background: #f2fbf9;
}

.dc-ts-row .dc-dropzone .t {
    color: var(--dl-teal);
}

.dc-ts-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--dl-line);
    border-radius: 8px;
    background: #fff;
    font-size: .86rem;
    min-height: 96px;
}

.dc-ts-file {
    font-weight: 600;
    color: var(--dl-dark);
    word-break: break-all;
}

.dc-ts-remove {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 22px;
    line-height: 1;
    color: var(--dl-red);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.dc-ts-remove:hover {
    background: #fdecec;
    border-color: #f8c9c9;
}

.dc-ts-sample {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    text-align: center;
    font-size: .78rem;
}

.dc-ts-sample-actions {
    display: flex;
    gap: 8px;
}

.dc-ts-sample-btn {
    padding: 6px 14px;
    border: 1px solid var(--dl-line);
    border-radius: 6px;
    background: var(--dl-surf);
    color: var(--dl-teal);
    font-size: .78rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .2s ease;
}

.dc-ts-sample-btn:hover {
    border-color: var(--dl-teal);
}

.dc-ts-sample-btn:focus-visible {
    outline: 2px solid var(--dl-teal);
    outline-offset: 2px;
}

.dc-ts-note {
    margin-top: 8px;
    font-size: .76rem;
    font-style: italic;
    color: var(--dl-muted);
}

.dc-link-btn {
    border: none;
    background: none;
    padding: 0;
    color: var(--dl-teal);
    font-weight: 700;
    font-size: inherit;
    font-style: normal;
    font-family: inherit;
    cursor: pointer;
}

.dc-link-btn:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .dc-ts-row {
        grid-template-columns: 1fr;
    }
}

/* Breathing room between the uploaded-file chip / upload error and the next
   step's divider line, so the line doesn't touch them. */
.dc-file-chip + .dc-pstep,
.dc-fld-err + .dc-pstep {
    margin-top: 12px;
}

/* Existing deal rows: the deal's channel/video count beside its ID (reference). */
.dc-deal-count {
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--dl-surf);
    border: 1px solid var(--dl-line);
    color: var(--dl-dark);
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Existing deal row: the deal ID takes all the free width; count, tactic and
   status sit in fixed-width columns on the right so every row lines up. */
.dc-cid-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 180px 96px;
    align-items: center;
    column-gap: 20px;
    padding: 8px 0;
    border-top: 1px solid var(--dl-line);
}

.dc-cid-id {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-cid-count {
    justify-self: start;
}

.dc-cid-tactic {
    min-width: 0;
    color: var(--dl-muted);
    font-size: .76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-cid-status {
    justify-self: end;
}

@media (max-width: 640px) {
    .dc-cid-row {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 6px;
    }
}
