/* --------------------------------------------------
🔷 1. Tab Container & Tab Links (Layout + Navigation)
-------------------------------------------------- */
.tabs-container { 
    width: 97.2%;
    position: fixed;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin-top: 10px;
}

.tabs { /* Inner tab area */
    width: 98%;
    max-width: 100%;
}

.tab-links { /* Tab navigation bar */
    display: flex;
    justify-content: left;
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 4px;
    margin-left: 20px;
}

.tab-link { /* Tab button */
    flex: none;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    background: #e7dcff;
    border: 1px solid #c2acf1;
    border-bottom: none;
    cursor: pointer;
    text-transform: uppercase;
    color: #6830e2;
    position: relative;
    transition: color 0.3s ease, 0.4s ease;
    border-radius: 6px 6px 0 0;
}

.tab-link.active { /* Active tab button */
    color: #3347e4;
    border: 1px solid #7988f9;
    border-bottom: none;
    background: none;
    background-clip: border-box;
}

.tab-indicator { /* Bottom animated tab indicator */
    position: absolute;
    bottom: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(270deg, #7f00ff, #3347e4);
    transition: all 0.4s ease;
    border-radius: 10px 10px 0 0;
    z-index: 2;
}

.tab-content { /* Tab body container */
    display: none;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    height: 86vh;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tab-content.active { /* Show tab body when active */
    display: block;
}

/* ================================
   Tab Content Wrapper Structure
================================== */
.tab-content-wrapper {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ================================
   Header Section
================================== */
.tab-content-header {
    padding: 6px 8px;
    background-color: rgb(240, 234, 254);
    border-bottom: 1px dotted #baa3f1;
    border-radius: 6px 6px 0 0;
    transition: box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tab-content-header h4,
.tab-content-header h5 {
    margin: 0;
    font-size: 13px;
    color: #6830e2;
    letter-spacing: 0.02em;
    user-select: none;
    text-transform: capitalize;
}

.tab-content-header h5 {
    font-size: 12px;
}

/* ================================
   Body Section
================================== */
.tab-content-body {
    flex-grow: 1;
    background-color: #fff;
    overflow-x: hidden;
    padding: 6px;
    box-sizing: border-box;
}

/* ================================
   Bottom Action Bar
================================== */
.tab-content-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 10px;
    padding: 8px 30px;
    background-color: #dacff4;
    border-top: 1px dotted #baa3f1;
    border-radius: 0 0 6px 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tab-content-bottom button {
    position: relative;
    height: 28px;
    padding: 3px 8px;
    font-size: 14px;
    font-weight: 400;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    text-shadow: 0px .5px 0px blue;
    overflow: hidden;
}

.tab-content-bottom button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(270deg, #3f51b5, #0d47a1);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.tab-content-wrapper .suggestions-box{
    border: none;
}

.tab-content-bottom button svg{
    font-size: 50px;
}

/*******************
* Tables Design
********************/
.tab_custom{
    border: 1px dotted #b199e8;
    border-radius: 5px;
}

.tab_custom_table .form-group{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.tab_custom_table .form-group iconify-icon{
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.form-group button {
    margin: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.tab_custom_table .form-group label{
    min-width: 100px;
    display: flex;
    justify-content: space-between;
}
.tab_custom_table .form-group label span{
    margin-right: 5px;
}

.tab_custom_table .form-group input,
.tab_custom_table .form-group select{
    min-height: 26px;
    min-width: 80px;
}

#shipped_to_party_code {
    min-width: 70px;
}

#parties_font_size {
    min-width: 50px;
    appearance: auto;
}

.tab_custom_table tbody, 
.tab_custom_table th, 
.tab_custom_table td, 
.tab_custom_table tr{
    border: none;
}

.tab_custom_table .form-group svg {
    width: 3.75rem; 
    height: 3.75rem;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease, fill 0.2s ease;
    vertical-align: middle;
    fill: currentColor; 
}

.tab_custom_table .form-group svg:hover {
    transform: scale(1.05);  
}

.tab-content-body .tabs_form_row {
    border-bottom: 1px dotted #ddd;
    padding: 0;
    margin: 0;
    outline: 0;
}

.tab-content-body .tabs_form_row td {
    padding: 3px 10px;
}


.tab-content-body .tabs_form_row:last-child {
    border-bottom: none;
}

.form-section-title,
.form-section-middle{ 
    width: 100%;
    margin-bottom: 4px;
}

.form-section-bottom{ 
    width: 100%;
}

.form-group button {
    position: relative;
    height: 26px;
    width: 26px;
    padding: 3px 14px;
    font-size: 14px;
    font-weight: 400;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    text-shadow: 0px .5px 0px blue;
    overflow: hidden;
    margin: 0 1px;
}

.form-group button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(270deg, #3f51b5, #0d47a1);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

#party_form_shipper_bottom_bin{
    margin-left: 2px;
    width: 100px;
    background-color: #e7dcff;
}

#party_form_shipper_print{
    height: 100px;
}

.tab_custom_table .form-group input[type="checkbox"]{
    min-height: 18px;
    min-width: 18px;
    margin-right: 2px;
}

.tab_custom_table iconify-icon,
.tab-content-bottom button iconify-icon {
    cursor: pointer;
    font-size: 20px;
}

.table-box-btn{
    padding: 3px 25px;
}