﻿/* Reusable Action Buttons */
.btn-pill {
    width: 240px;
    height: 36px;
    border-radius: 32px;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-pill-cancel {
    background-color: #fff;
    border: 1px solid #DDDEE2;
    color: #0F172B;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

    .btn-pill-cancel:hover {
        background-color: #fff;
        color: #0F172B;
    }

.btn-pill-save {
    background-color: #121319;
    color: #F8F8F8;
    border: none;
}

    .btn-pill-save:hover {
        background-color: #1e1f25;
        color: #F8F8F8;
    }

.btn-pill-add {
    background-color: #121319;
    color: #F8F8F8;
    border: none;
    width: 200px;
}
    .btn-pill-add:hover {
        background-color: #1e1f25;
        color: #F8F8F8;
    }

.btn-pill-delete {
    font-size: 14px;
    font-weight: 500;
    line-height: 140%;
    color: #DF0C3D;
    background: #FFE2E2;
    justify-content: center;
    align-items: center;
    border-radius: 18px;
    border: 1px solid #DDDEE2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: flex; /* ensures proper centering */
    padding: 0.25rem 0.75rem;
}
    .btn-pill-delete:hover {
        background-color: #FFE2E2;
        color: #DF0C3D;
    }

    .btn-pill-delete i.bi {
        font-size: 12px;
        width: 12px;
        height: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

/* ALT BACKGROUND COLOR */
.bg-gray-blue {
    background: #F9F9FD;
}

/* MODAL Components */

/* Reusable Pill Buttons for Modals */
.btn-pill-modal {
    min-width: 120px;
    height: 40px;
    border-radius: 32px;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    flex: 0 0 auto; /* prevents buttons from stretching full width */
}

/* Cancel Button Variant */
.btn-pill-modal-cancel {
    background-color: #fff;
    border: 1px solid #DDDEE2;
    color: #0F172B;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

    .btn-pill-modal-cancel:hover {
        background-color: #f8f9fa;
    }

/* Save/Create Button Variant */
.btn-pill-modal-save {
    background-color: #121319;
    color: #F8F8F8;
    border: none;
}

    .btn-pill-modal-save:hover {
        background-color: #1e1f25;
    }

.tab-bar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px; /* space between icon + text */
    min-height: 42px; /* matches your old var(--button-height) */
    border-radius: 999px; /* pill shape, like var(--border-radius-xl) */
    cursor: pointer;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    justify-content: center;
    gap: 4px;
    background: var(--color-primary);
}
    .tab-bar-btn i.bi {
        color: #fff; /* ensure icon is white too */
    }


@media (max-width: 576px) {
    .tab-bar-btn {
        font-size: 0.8rem; /* ~13px */
    }
}

/* Keep buttons side-by-side in footer */
.modal-footer {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
}

/* Responsive stacking (optional for very narrow screens) */
@media (max-width: 400px) {
    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-pill-modal {
        width: 100%;
    }
}


/* ============================
   Display Field Component For Cards
   ============================ */
.display-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* gap between label and field */
}

    .display-field label {
        color: #71737B;
        font-weight: 500;
        font-size: 0.9rem;
    }

    .display-field .field-value {
        display: flex;
        align-items: center;
        padding: 0.5rem 0.75rem;
        background-color: #fff;
        border: 1px solid #DDDEE2;
        border-radius: 24px;
        min-height: 40px; /* maintains single-line look for short fields */
    }

    .field-value.selector{
        padding-left: 0px;
    }

.field-value span {
    font-weight: 600;
    color: #121319;
    font-size: 0.875rem;
    display: inline-block; /* needed for width control */
    white-space: nowrap; /* 🚫 prevents line wrapping */
    overflow-x: auto; /* enables horizontal scroll if content too long */
    max-width: 100%; /* keeps it within its container */
    -ms-overflow-style: none; /* hide scrollbar on IE/Edge */
    scrollbar-width: none; /* hide scrollbar on Firefox */
}
    .field-value span::-webkit-scrollbar {
        display: none; /* hide scrollbar on Chrome/Safari */
    }

.field-value input {
    font-weight: 600;
    color: #121319;
    font-size: 0.875rem;
    display: inline-block; /* needed for width control */
    white-space: nowrap; /* 🚫 prevents line wrapping */
    overflow-x: auto; /* enables horizontal scroll if content too long */
    max-width: 100%; /* keeps it within its container */
    -ms-overflow-style: none; /* hide scrollbar on IE/Edge */
    scrollbar-width: none; /* hide scrollbar on Firefox */
}

    .field-value input::-webkit-scrollbar {
        display: none; /* hide scrollbar on Chrome/Safari */
    }

.field-value select {
    font-weight: 600;
    color: #121319;
    font-size: 0.875rem;
    display: inline-block; /* needed for width control */
    white-space: nowrap; /* 🚫 prevents line wrapping */
    overflow-x: auto; /* enables horizontal scroll if content too long */
    max-width: 100%; /* keeps it within its container */
    -ms-overflow-style: none; /* hide scrollbar on IE/Edge */
    scrollbar-width: none; /* hide scrollbar on Firefox */
    background-image: none;
    padding: 0 0.75rem 0 0.75rem;
    background: none;
}

    .field-value select::-ms-expand {
        display: none;
    }

    .field-value select::-webkit-scrollbar {
        display: none; /* hide scrollbar on Chrome/Safari */
    }
    .field-value select.form-select option {
        font-weight: 500;
        color: #121319;
        background-color: #fff; /* background for dropdown menu */
    }
        /* Optional: highlight selected option */
        .field-value select.form-select option:checked {
            background-color: #E2EDFF; /* soft highlight blue */
            color: #121319;
        }

select.form-select option{
    text-indent: 16px;
}

/* Base field-value textarea styling */
.field-value textarea {
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    font-weight: 600;
    color:#121319;
    font-size: 0.875rem;
    padding: 0;
    min-height: calc(1.5em * 4); /* ~4 lines visible by default */
    line-height: 1.5;
    overflow-y: auto; /* show vertical scrollbar only if needed */
}

    /* Make readonly text look clean and uneditable */
    .field-value textarea[readonly] {
        cursor: default;
        background-color: transparent;
    }

    /* Optional: show scrollbar only if dragged (just in case) */
    .field-value textarea::-webkit-scrollbar {
        width: 6px;
    }

    .field-value textarea::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }


.field-value-icon {
    padding: 0;
    height: 22.4px;
}

/* TABLE RULES */
.table td.truncate-3 {
    position: relative;
    max-width: 420px; /* keep text from spanning too wide */
    padding-right: 1rem; /* maintain your px-4 padding */
    vertical-align: middle; /* stay aligned with other cells */
}

    .table td.truncate-3 p {
        margin: 0;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3; /* limit to 3 lines */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

