/*-----DASHBOARD TABLE STYLING-----*/

.table{
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-family: Arial, sans-serif;
    font-size: 14px;
    background-color: #fff;
}

.table th, .table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

/*-----QUEUE SECTION HEADERS----- */
h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: 1.4;
    margin-block: 1rem;
    color: var(--text-primary);
}

/*-----CLICKABLE ROW BEHAVIOR-----*/
.clickable-row {
    cursor: pointer;
    transition: background-color 150ms ease-in-out;
}

.clickable-row:hover {
    background-color: #f0f8ff;                          /* light blue highlight */
}

.clickable-row:active {
    background-color: #e6f2ff;                          /* selected state */
}


/*-----MATCH TAB LABEL BOX MODEL EXACTLY-----*/
.new-lead-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 140px;
    padding: 0.5rem 0.75rem;
    border-radius: 4px 4px 0 0;
    border: 1px solid #ccc;
    border-bottom: none;
    transition: background 0.2s ease;
    background-color: #16a34a; /* Tailwind green-600 */
}

.new-lead-tab:hover {
    background-color: #15803d; /* Tailwind green-700 */
}



/*-----TABS CONTAINER-----*/
.tabs {
    display: block;
}

/*-----FIXED HEADER BAR FOR LABELS ONLY-----*/
.tab-bar {
    display: flex;
    flex-wrap: wrap;                                    /*wrap if many queues*/
    gap: 4px;                                           /*consistent spacing*/
    border-bottom: 1px solid #ccc;
    margin-bottom: 0.75rem;
}

/*-----HIDE RADIO BUTTONS-----*/
.tab-bar input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


/*-----TAB STYLE-----*/
.tab-style {
    flex: 0 0 140px;
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-radius: 4px 4px 0 0;
    border: 1px solid #ccc;
    border-bottom: none;
    transition: background 0.2s ease;
}

/*-----TAB LABELS STYLED CONSISTENTLY-----*/
.tab-bar > label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 140px;
    padding: 0.5rem 0.75rem;
    border-radius: 4px 4px 0 0;
    border: 1px solid #ccc;
    border-bottom: none;
    transition: background 0.2s ease;
    background: #f0f0f0;
    color: #000;
}

.tab-bar > label:hover {
    background: #e2e8f0;        /* lighter gray */
    color: #111;                /* slightly darker text */
    cursor: pointer;            /* makes it feel clickable */
}

/*-----ACTIVE TAB LABEL-----*/
.tab-bar input[type="radio"]:checked + label {
    background: #fff;
    font-weight: 600;
    border-bottom: 1px solid #fff;                      /* visually connects to content */
}

/*-----TAB CONTENT PANELS HIDDEN-----*/
.tab-content {
    padding: 1rem;
    border: 1px solid #ccc;
    background: #fff;
}

.tab-content.hidden {
    display: none !important;
}

.tab-content.block {
    display: block !important;
}

#loanModalNew .modal-title {
    margin-block: 0;
}

.has-calendar-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23667'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10m-12 8h14a2 2 0 002-2V7a2 2 0 00-2-2H4a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;

  /* OVERRIDE TAILWIND PX-3 */
  padding-right: 2.5rem; !important;
}

/* FORCE FLATPICKR INPUT TO BEHAVE LIKE A NORMAL TAILWIND INPUT */
.flatpickr-wrapper input.flatpickr-input,
.flatpickr-wrapper input.form-control {
    width: 100% !important;
    display: block !important;
    padding-left: 0.75rem !important;     /* MATCHES PX-3 */
    padding-right: 2.5rem !important;     /* ROOM FOR CALENDAR ICON */
    height: auto !important;              /* LET TAILWIND CONTROL HEIGHT */
    line-height: normal !important;
    box-sizing: border-box !important;
}

/* ENSURE WRAPPER DOESN'T SHRINK */
.flatpickr-wrapper {
    width: 100% !important;
    display: block !important;
}


