/* Tall Pines Manifest - clean professional layout */

.tp-compact-manifest {
    max-width: 100%;
}

.tp-manifest-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
    margin-bottom: 14px;
}

.tp-page-label {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    font-weight: 900;
    color: #64748b;
}

.tp-page-title {
    margin: 2px 0 2px;
    font-size: 30px;
    line-height: 1.05;
    color: #071833;
}

.tp-page-subtitle {
    margin: 0;
    color: #475569;
    font-weight: 700;
}

.tp-manifest-datebar {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff;
    border: 1px solid #d8e4f2;
    border-radius: 8px;
    padding: 10px;
    box-shadow: none;
}

.tp-manifest-datebar input {
    height: 36px;
    border: 1px solid #cfdced;
    border-radius: 6px;
    padding: 0 10px;
    font-weight: 800;
}

.tp-mini-btn,
.tp-card-actions a,
.tp-crew-add-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 6px;
    background: #0b63ce;
    border: 1px solid #0b63ce;
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.tp-mini-btn:not(.primary) {
    background: #fff;
    color: #0755ad !important;
    border-color: #bfdbfe;
}

.tp-stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 8px 0 10px;
    font-size: 13px;
    font-weight: 700;
}

.tp-stat-strip span {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    border: 0;
    background: transparent;
    color: #0f172a;
    border-radius: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
}

.tp-stat-strip b {
    color: #0755ad;
    font-weight: 900;
}

.tp-manifest-tabs {
    display: flex;
    gap: 5px;
    align-items: center;
    border-bottom: 1px solid #d8e4f2;
    margin-bottom: 10px;
}

.tp-manifest-tabs a {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid #d8e4f2;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: #fff;
    color: #0755ad;
    font-weight: 900;
    text-decoration: none;
    font-size: 13px;
}

.tp-manifest-tabs a.active {
    background: #0b63ce;
    color: #fff;
    border-color: #0b63ce;
}

.tp-mini-booking-card {
    border: 1px solid #d8e4f2;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 9px;
    overflow: hidden;
    box-shadow: none;
}

.tp-card-topline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    background: #f8fbff;
    border-bottom: 1px solid #d8e4f2;
    padding: 8px 10px;
}

.tp-unit-name {
    font-size: 15px;
    font-weight: 950;
    color: #071833;
}

.tp-booking-num {
    font-size: 12px;
    color: #38506f;
    font-weight: 800;
}

.tp-status-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.tp-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 4px 7px;
    font-size: 11px;
    font-weight: 950;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #0755ad;
}

.tp-pill.good {
    border-color: #86efac;
    background: #dcfce7;
    color: #166534;
}

.tp-pill.warn {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #0755ad;
}

.tp-guest-grid {
    display: grid;
    grid-template-columns: 1.25fr 1.25fr .9fr 1fr;
    gap: 6px;
    padding: 8px 10px;
}

.tp-guest-grid > div {
    border: 1px solid #d8e4f2;
    border-radius: 5px;
    background: #fbfdff;
    padding: 6px 8px;
}

.tp-guest-grid label {
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    font-size: 10px;
    font-weight: 950;
}

.tp-guest-grid strong {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    color: #071833;
}

.tp-guest-grid small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.2;
}

.tp-notes-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 6px;
    padding: 0 10px 8px;
}

.tp-notes-row span {
    border: 1px solid #d8e4f2;
    background: #fbfdff;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 12px;
    line-height: 1.25;
    color: #0f172a;
}

/* CLEAN CREW SECTION - NO BUBBLES */
.tp-crew-panel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    border-top: 1px solid #d8e4f2;
    background: #fff;
    padding: 8px 10px;
}

.tp-crew-current {
    display: contents;
}

.tp-crew-current > b {
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #334155;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.tp-crew-current small {
    color: #64748b;
    font-size: 12px;
    font-style: italic;
}

.tp-crew-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.tp-crew-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.tp-crew-tag form {
    margin: 0;
    padding: 0;
    display: inline-flex;
}

.tp-crew-tag button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    min-width: 17px;
    height: 17px;
    min-height: 17px;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    padding: 0;
    margin: 0;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    line-height: 17px;
    cursor: pointer;
}

.tp-crew-tag button:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.tp-crew-add-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    justify-content: flex-end;
}

.tp-crew-add-form select {
    width: 220px;
    height: 32px;
    border: 1px solid #cfdced;
    border-radius: 5px;
    padding: 0 9px;
    font-size: 13px;
    font-weight: 700;
    background: #fff;
}

.tp-crew-add-form button {
    min-height: 32px;
    border-radius: 5px;
    padding: 0 12px;
}

.tp-card-actions {
    display: flex;
    gap: 7px;
    justify-content: flex-end;
    padding: 7px 10px 9px;
}

.tp-card-actions a {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 5px;
}

.tp-empty-mini {
    padding: 18px;
    border: 1px solid #d8e4f2;
    background: #fff;
    border-radius: 6px;
    color: #64748b;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 1100px) {
    .tp-manifest-head {
        grid-template-columns: 1fr;
    }

    .tp-guest-grid,
    .tp-notes-row {
        grid-template-columns: 1fr 1fr;
    }

    .tp-crew-panel {
        grid-template-columns: 1fr;
    }

    .tp-crew-current {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tp-crew-add-form {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .tp-guest-grid,
    .tp-notes-row {
        grid-template-columns: 1fr;
    }

    .tp-card-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .tp-crew-add-form {
        width: 100%;
    }

    .tp-crew-add-form select {
        width: 100%;
    }
}

@media print {
    .tp-manifest-datebar,
    .tp-manifest-tabs,
    .tp-crew-add-form,
    .tp-card-actions,
    .tp-crew-tag button {
        display: none !important;
    }

    .tp-mini-booking-card {
        break-inside: avoid;
    }
}
