
/* --- --- --- --- READ BEFORE ADD 0R UPDATE --- --- --- ---*/

/* CONTAINS ALL STYLE FOR THE CRAFT APPLICATION. */
/* INCLUDES CSS FOR THE NAVBAR, DROPDOWNS, SELECTORS, FOOTER, LOADER, STATIC ELEMENTS, ANIMATIONS  */
/* ALL THE PAGES INCLUDING THE MEDIA PLAN UPLOAD PAGE, MEDIA PLAN DOWNLOAD PAGE, THE REPORT BUILDER, HOME PAGE, CONGRATS PAGE(REPORT DOWNLOADER, SCHEDULER), TC UPLOADER, PO & RO UPLOADER, REPORT SCHEDULER, UNIQUE KEY GENERATE, SCHEDULER UPDATE */
/* MAINLY THE ADMIN PAGE AND ANY OTHER COMPONENTS USED IN THIS APPLICATION. */ 
/* MOST OF THE STYLE & ELEMENTS ARE REUSED ACROSS MULTIPLE PAGES */
/* AVOID ADDING OR MODIFYING PAGE-SPECIFIC STYLES WITHOUT CHECKING AS THEY ARE SHARED ACROSS MULTIPLE PAGES.  */
/* FOR PAGE-SPECIFIC STYLES, CONSIDER CREATING SEPARATE CSS FILES OR USING INLINE STYLES IN THE TEMPLATE. */ 



/* GLOBAL STYLES */
html {
    min-height: 100%;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background-color: #f4f4f4;
    color: #333;
    font-family: 'Segoe UI', sans-serif;
}



/* ---UPLOAD-MEDIA-PLAN-PAGE--- (TABLES, ERROR HIGHLIGHTING, MODALS, TEXTAREAS, BUTTONS)--- */
.invalid-cell {
    background-color: #fff0f0 !important;
    color: #d32f2f !important; 
    border: 1.5px solid #ff5252 !important;
    font-weight: 600;
    position: relative;
    animation: errorPulse 2s infinite;
}

@keyframes errorPulse {
    0% { box-shadow: inset 0 0 0 0px rgba(255, 82, 82, 0.2); }
    50% { box-shadow: inset 0 0 0 10px rgba(255, 82, 82, 0.05); }
    100% { box-shadow: inset 0 0 0 0px rgba(255, 82, 82, 0.2); }
}

/* body { 
    font-family: sans-serif; 
    padding: 20px; 
    background: #F5F7FA;
} */

h1 { 
    color: #333;  
}

textarea { 
    width: 100%; 
    height: 80px;        
    /* min-height: 80px;      */
    padding: 12px; 
    border: 2px solid #d1cfe5; 
    border-radius: 8px;
    box-sizing: border-box; 
    font-size: 14px;
    transition: border-color 0.3s;
    resize: vertical; 
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 20px; }

th, td {
    padding: 12px 15px;     
    text-align: left;     
    line-height: 1.5;        
    vertical-align: middle;  
    min-width: 120px;        
    border-bottom: 1px solid #e0e0e0; 
}

th {
    white-space: nowrap;     
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #444;
    background-color: #f9f9f9;
}

#tableContainer {
    max-height: 500px;    
    max-width: 100%;      
    overflow: auto;       
    border: 1px solid #ccc;
    margin-top: 20px;
    position: relative;
}

table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f2f2f2 !important; 
    border-bottom: 2px solid #ccc;         
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1); 
}

td {
    max-width: 300px;       
    word-wrap: break-word;   
    overflow-wrap: break-word;
}

table {
    border-collapse: separate; 
    border-spacing: 0;
}

td:first-child, th:first-child {
    position: sticky;
    left: 0;
    z-index: 11;
    background-color: #f9f9f9;
    border-right: 1px solid #ccc;
}

tr:hover td {
    background-color: #eeeef4;
    transition: background 0.2s ease;
}

th:first-child {
    z-index: 12; 
}

h1 {
    color: rgb(0, 0, 78);
    font-family: Arial, sans-serif;
}

.info-text {
    visibility: hidden;
    width: 700px;        
    max-height: 85vh;    
    background: rgb(242, 242, 242);
    overflow-y: auto;     
    background-color: #ffffff;
    color: #333;
    text-align: left;
    padding: 20px;
    border-radius: 12px;
    position: absolute;
    z-index: 1000;
    right: 0;
    top: 45px;
    opacity: 0;
    display: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px); 
    border: 1px solid  #ccc;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.15);
    white-space: normal;
}

.info-container:hover .info-text,
.info-container.is-pinned .info-text {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.info-container.is-pinned .info-btn {
    background: linear-gradient(135deg, #5c7cfa, #9666d1);
    box-shadow: 0 6px 20px rgba(110, 142, 251, 0.5);
}

.info-section {
    display: block;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
}

.info-text h4 { 
    margin: 15px 0 5px 0; 
    color: #2e7d32; 
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e8f5e9;
    column-span: all;
}

.info-text p { 
    font-size: 13px; 
    margin: 0 0 15px 0; 
    line-height: 1.6; 
    color: #444; 
    column-gap: 30px;
    column-rule: 1px solid #f0f0f0; 
}

.info-container {
    float: right;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    z-index: 1000; 
}

.info-btn {
    background: linear-gradient(135deg, #6e8efb, #a777e3); 
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap; 
}

.info-btn:hover {
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(110, 142, 251, 0.5);
    background: linear-gradient(135deg, #5c7cfa, #9666d1);
}

.info-btn:active {
    transform: translateY(0);
}

.info-btn::before {
    content: '📋';
    font-size: 16px;
}

.submit-btn {
    margin-top: 30px;
    padding: 12px 30px; 
    /* background: #F5F7FA; */
    background: #e5e5e5;
    color: #404E67;
    border: none;
    border-radius: 50px; 
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(191, 191, 203, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;    
    min-width: 250px;          
}

.submit-btn:hover {
    background: #181d26;
    color: #F5F7FA;
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(191, 191, 203, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn.btn-small {
    min-width: 150px;       
    padding: 8px 20px;      
    font-size: 14px;        
    margin-top: 15px;       
}

.error-box {
    color: #d32f2f;
    background-color: #fff0f0;
    padding: 20px;
    border-radius: 12px;
    border: 1.5px solid #ff5252;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.info-text {
    visibility: hidden;
    position: absolute;
    right: 0;
    top: 55px;
    background: #ffffff; 
    color: #333;        
    padding: 25px;
    border-radius: 15px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    border: 1px solid #e0e0e0;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15); 
    text-align: left;
}

.info-text h3 {
    margin-top: 0;
    color: #6e8efb; 
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
    font-size: 18px;
}

.info-text h4 {
    margin: 15px 0 5px 0;
    color: #2e7d32; 
    font-size: 14px;
    text-transform: uppercase;
}

.info-text p {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.info-container:hover .info-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.records-btn-style {
    background: linear-gradient(135deg, #00BCD4, #2196F3);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.records-btn-style:hover {
    background: linear-gradient(135deg, #00acc1, #1e88e5);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.6);
}

/* .view-btn-icon::before {
    content: '📊'; 
    font-size: 16px;
} */

.invalid-row {
    background-color: #fff4e5 !important; 
}

.invalid-row td {
    color: #856404;
    border-bottom: 1px solid #ffeeba;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px); 
}

.error-modal {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: left;
    border-top: 5px solid #ff5252;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #ff5252;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}

.modal-close-btn:hover { background: #d32f2f; }

.table-wrapper {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: auto;
    background: white;
    border: 1px solid #ddd;
}

#outputTable thead th {
    position: sticky;
    top: 0;
    background-color: #6c757d;
    color: white;
    z-index: 20;
}



/* ---CRAFT PAGE REPORTBUILDER (SELECTOR, DROPDOWNS)--- */

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: 42px !important;
    height: auto !important; 
    border: 2px solid #d1cfe5 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    display: flex !important;
    align-items: center !important;
    transition: border-color 0.2s ease;
}

.select2-container--default .select2-selection--single {
    height: 42px !important;
}

.select2-container--default .select2-selection--multiple {
    height: auto !important; 
    padding: 2px 5px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important; 
    padding-left: 12px !important;
    color: #163240 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important; 
    padding: 4px !important;
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #5f7e9b !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 3px 10px !important;
    font-size: 13px !important;
    margin: 2px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 5px !important;
    border-right: 1px solid rgba(255,255,255,0.2) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: transparent !important;
    color: #ffcccc !important;
}

.select2-dropdown {
    border: 2px solid #d1cfe5 !important;
    border-radius: 8px !important;
    z-index: 9999999 !important;
}

.select2-search--dropdown {
    padding: 8px !important;
}

.select2-search--dropdown .select2-search__field {
    height: 35px !important;
    border: 1px solid #d1cfe5 !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    outline: none !important;
}

.select2-search--inline .select2-search__field {
    margin-top: 0 !important;
    height: 30px !important;
    font-family: inherit !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 10px !important;
}



/* ---BASE HTML (NAVBAR, USER BADGE, DROPDOWN, LOGOUT LINK)--- */

.navbar-custom {
    background: transparent;
    width: 100%;

    padding: 25px 18px 5px 20px;

    flex-shrink: 0;
    box-sizing: border-box;

    position: sticky;
    top: 0;
    z-index: 1050;
}

/* 
.nav-btn-container {
    float: right; 
    margin-right: 10px;
    gap: 4px;   
} */

.nav-btn-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;

    gap: 5px;
    margin-left: auto;

    min-width: 0;
    max-width: 100%;
}

.main-card p {
    font-weight: 900;           
    font-size: 50px;           
    text-align: center;         
    text-transform: uppercase;  
    color: #555555 !important; 
    margin-top: 40px;
}

.text-primary-blue { color: #337ab7 !important; }

.btn-custom-grey { 
    background-color: #5f7e9b; ;
    color: rgb(240, 240, 240) !important; 
    border: none;
    font-weight: 600;
    border-radius: 6px;      
    padding: 6px 12px;       
    font-size: 13.5px;      
    text-decoration: none !important;
    margin-left: 8px;        
    display: inline-block;   
    transition: all 0.3s ease;}

.btn-custom-grey:hover { background-color: #0a405b; }

.navbar-custom::after { content: ""; clear: both; display: table; }

.btn-custom-grey.active { 
    background-color: #0b294b !important; 
    color: white !important;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
}

.btn-custom-grey,
.nav-btn-container .dropdown,
.user-badge-container {
    flex-shrink: 0;
}

/* --- NAVBAR DROPDOWN --- */
.dropdown-menu {
    background-color: #fcfcfc !important; 
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 8px !important; 
    padding: 6px !important; 
    margin-top: 8px !important; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important; 
    min-width: 210px;
    animation: fadeIn 0.2s ease-out; 
}

.dropdown-item {
    color: #444 !important; 
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 10px 14px !important;
    border-radius: 6px !important; 
    transition: all 0.2s ease !important;
    background: transparent !important;
    margin-bottom: 2px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background-color: #ecf2f9 !important; 
    color: #0b294b !important; 
}

/* .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
} */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 992px) {
    .navbar-custom .dropdown:hover > .dropdown-menu {
        display: block;
    }
}



/* --- User Badge */
.user-badge-container {
    display: flex;
    align-items: center;
    gap: 12px;            
    padding: 6px 18px;    
    white-space: nowrap;  
    border-radius: 50px;
    background: #f8f9fa;
    border: 1px solid #ddd;
}

.user-name-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #163240;
}

.nav-icon-link, .logout-icon-link {
    text-decoration: none !important;
    transition: transform 0.2s ease;
    line-height: 1;
}

.nav-icon-link:hover, .logout-icon-link:hover {
    transform: scale(1.2);
}

.logout-icon-link {
    color: #dc3545;
}

.navbar-custom > .container-fluid {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;

    width: 100%;
    max-width: 100%;

    padding: 0;

    box-sizing: border-box;
}

/* .navbar-custom .container-fluid {
    flex-wrap: nowrap;
} */



/* ---FOOTER (BASE-PAGE)--- */
.main-content {
    flex: 1 0 auto;
    width: 100%;

    padding-left: 20px;
    padding-right: 20px;

    box-sizing: border-box;
}

.footer {
    flex-shrink: 0;
    padding: 8px 0 25px 10px;
    background: transparent; 
}

.footer-description {
    margin: 0;
    font-size: 13px;
    color: #626262; 
    text-align: center;
    border-top: 1px solid #e7dbd5; 
    padding-top: 12px;

}



/* CONGRATS PAGE - REPORT STATUS BOX (BUTTONS, TEXT, LAYOUT)  */

.result {
    max-width: 600px;        
    width: 90%;           
    min-height: 150px;
    border: 5px solid #d5e1eb;
    background-color: #ffffff; 
    margin: 40px auto 10px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    text-align: center;    
}

/* Wider Container */
.scheduler-box.expanded-box {
    max-width: 800px;
    width: 90%;
    margin: 30px auto 50px;
    background: #ffffff;
    border: 2px solid #d5e1eb;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    box-sizing: border-box;
}

/* Dashboard Section Card */
.scheduler-box.premium-card {
    max-width: 1000px;
    width: 90%;
    margin: 40px auto 60px;
    background: #ffffff;
    border: 1px solid #d5e1eb;
    padding: 30px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(160, 175, 192, 0.08);
    box-sizing: border-box;
}

.scheduler-title {
    margin-top: 0;
    margin-bottom: 25px;
    color: #404E67;
    font-size: 19px;
    font-weight: 700;
    border-bottom: 2px solid #f4f7f9;
    padding-bottom: 12px;
}

/* Structural Two-Side Panel Splitter */
.scheduler-dashboard-grid {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    align-items: flex-start; 
}

.scheduler-panel.email-workspace {
    flex: 1.8;
    min-width: 320px;
}

.scheduler-panel.configs-workspace {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start; 
}

.scheduler-label {
    font-weight: 600;
    color: #404E67;
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
}

.scheduler-textarea.input-clean {
    width: 100%;
    min-height: 140px;
    max-height: 400px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #404E67;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background-color: #fafbfc;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.2s;
}
.scheduler-textarea.input-clean:focus {
    border-color: #404E67;
    background-color: #ffffff;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.scheduler-select.select-clean {
    width: 100%;
    height: 44px;                 
    padding: 0 15px;
    font-size: 14px;
    color: #404E67;
    background-color: #fafbfc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;         
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://w3.org' width='12' height='12' fill='%23404E67' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>"); */
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
}

.scheduler-select.select-clean:focus {
    border-color: #404E67;
    background-color: #ffffff;
}

.badge-count {
    font-size: 11px;
    font-weight: 600;
    color: #4a5568;
    background: #edf2f7;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.scheduler-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f4f7f9;
    flex-wrap: wrap;
    gap: 15px;
}

.validation-error {
    font-size: 13.5px;
    font-weight: 600;
    display: block;
    min-height: 20px;
    line-height: 1.5;
    max-width: 70%; /* Prevents text from colliding awkwardly into the footer button */
}

.btn-action-group {
    width: 100%;
    display: flex;
    justify-content: center; 
    gap: 20px; 
    padding: 20px 0;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.btn-download, 
.btn-schedule-action, 
.btn-secondary-action {
    background-color: #eeeeee;
    color: #404E67 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;          
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;      
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(191, 191, 203, 0.5); 
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    outline: none;
    border: none;
}

.btn-download:hover {
    background-color: #181d26;
    color: #F5F7FA !important;
    transform: translateY(-1px);
}

.btn-schedule-action:hover:not(:disabled) {
    color: #F5F7FA !important;
    background-color: #181d26;
    transform: translateY(-1px);
}

.btn-schedule-action:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary-action:hover {
    background-color: #181d26;
    color: #F5F7FA !important;
    transform: translateY(-1px);
}


/* ---TC-PUBLISHER-UPLOAD-PAGE--- (TABLES, ERROR, TEXTAREAS, DROPDOWN)--- */
.tc-uploader .compact-selector {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #d1cfe5;
    margin-bottom: 15px;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tc-uploader .platform-label {
    font-size: 13px;
    font-weight: 700;
    color: #5b6678;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tc-uploader .table-wrapper {
    max-height: 380px; 
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: auto;
    background: white;
}

.floating-platform-wrapper {
    display: inline-flex;
    align-items: center;
    margin: 10px 0;
    gap: 8px;
}

.tc-uploader-page .table-wrapper {
    max-height: 400px;
    overflow: auto;
    border: 1px solid #ccc;
    background: white;
}

.tc-uploader-page #tableContainer td {
    white-space: nowrap !important; 
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 220px !important;    
    height: 38px !important;        
    padding: 6px 15px !important;
    border-bottom: 1px solid #eee;
}

.tc-uploader-page .minimal-select {
    width: 190px !important;
    border: none !important;
    background: transparent !important;
    font-weight: 600;
    color: #013c6c;
    cursor: pointer;
    padding: 5px 0;
    outline: none;
    font-size: 14px;
    transition: color 0.2s ease;

}

.minimal-select:hover {
    color: #065769;
}



/* --- PO & RO UPLOAD MANAGEMENT PAGE --- */
.uploader-wrapper {
    display: flex;
    justify-content: space-between; 
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.upload-sections {
    flex: 1;
    max-width: 1500px; 
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.instructions-sidebar {
    flex: 1; 
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #163240;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
}

.upload-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.upload-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #163240;
}

.custom-file-input {
    border: 2px dashed #cbd5e0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-file-input:hover {
    border-color: #163240;
    background: #f1f5f9;
}

.status-msg {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
}

.btn-primary {
    background-color: #5f7e9b !important;
    border-color: #5f7e9b !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px;      
    border-radius: 6px !important; 
    padding: 8px 24px !important;  
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    border: none !important;
}

.btn-primary:hover {
    background-color: #0a405b !important; 
    border-color: #0a405b !important;
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); 
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}



/* --- ADMIN CORE STYLES --- */
.admin-card {
    border-top: 4px solid #163240;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

.admin-title {
    color: #163240;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-list-users, .btn-create-user {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-list-users {
    background-color: #f8fafc;
    color: #163240;
    border: 1px solid #e2e8f0;
}

.btn-list-users .badge {
    background-color: #64748b !important; 
    font-size: 0.7rem;
    padding: 4px 8px;
    vertical-align: middle;
}

.btn-list-users:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-create-user {
    background-color: #163240;
    color: white;
    border: none;
}

.btn-create-user:hover {
    background-color: #234d62;
    box-shadow: 0 4px 12px rgba(22, 50, 64, 0.2);
    transform: translateY(-1px);
}

.table-scroll-container {
    max-height: 600px; 
    overflow-y: auto;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    margin-top: 10px;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.custom-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 20px;
    border-bottom: 2px solid #e2e8f0;
}

.custom-table tbody tr {
    transition: background-color 0.2s;
}

.custom-table tbody tr:hover {
    background-color: #f8fafc;
}

.custom-table td {
    padding: 18px 20px; 
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.user-email {
    font-weight: 500;
    color: #1e293b;
    min-width: 250px; 
}

.role-badge {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.role-badge.admin { background: #dbeafe; color: #1e40af; }
.role-badge.user { background: #e6e7f1; color: #475569; }
.role-badge.operations { background: #e0ebee; color: #455256; }

.status-dot {
    height: 10px;
    width: 10px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 8px;
}
.status-dot.active { background-color: #10b981; }
.status-dot.inactive { background-color: #ef4444; }

.table-scroll-container::-webkit-scrollbar { width: 6px; }
.table-scroll-container::-webkit-scrollbar-track { background: #f1f5f9; }
.table-scroll-container::-webkit-scrollbar-thumb { 
    background: #cbd5e1; 
    border-radius: 10px; 
}
.table-scroll-container::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-input {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px 15px;
    background-color: #fcfcfc;
    transition: all 0.2s ease;
}
.custom-input:focus {
    box-shadow: 0 0 0 3px rgba(64, 78, 103, 0.1);
    border-color: #404E67;
}

.border-dashed { border-style: dashed !important; border-color: #cbd5e0 !important; }

.submit-btn.btn-small:hover {
    background: #2e3c53;    
    color: #ffffff;
    border-color: #2e3c53;
}

.toggle-pill {
    border: none;
    background: transparent;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toggle-pill.active {
    background: #404E67;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.mode-toggle-container {
    background-color: #f8fafc !important;
}



/* --- SUPER ADMIN AND ADMIN [YOU-BADGE] (MANAGE-USERS, LISTING)-- */
.text-primary { 
    color: #073c8b !important; 
}
.italic { 
    font-style: italic; 
}

.bg-primary-subtle { 
    background-color: #cfe2ff !important; 
    border: 1px solid #b6d4fe; }

.role-badge.super-admin {
    background: #fff3cd;
    color: #6d5305;
    border: 1px solid #f7d673;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}



/* ---- MP-DOWNLOADER (TABLE STYLES - STICKY HEADER & FIRST COLUMN, SEARCH SECTION, ERROR, LOADER)*/
/* body {
    background-color: #f8fafc;
    margin: 0;
    padding: 20px;
} */

.mp-container { 
    font-family: 'Inter', 'Segoe UI', sans-serif; 
    padding: 22px 20px 40px 20px; 
    max-width: 1800px; 
    margin: auto; 
    background: #fff;
}

/* -- MP-DOWNLOADER SEARCH SECTION */
.search-section {
    max-width: 650px;
    margin: 0 auto 40px auto;
}

.search-label-small {
    font-size: 12px;
    font-weight: 600;
    color: #5b6678;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-left: 5px;
}

.search-flex-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp-input {
    flex: 1;
    padding: 12px 18px;
    font-size: 14px;
    border: 1px solid #d1cfe5;
    border-radius: 8px;
    outline: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.mp-input:hover {
    border-color: #163240;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mp-input:focus {
    border-color: #163240;
    box-shadow: 0 0 0 3px rgba(22, 50, 64, 0.1);
}

.search-pill-btn {
    background: #ececec;;
    color: #404E67;
    border: none;
    cursor: pointer;
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-radius: 50px; 
    min-width: 130px;       
    padding: 10px 24px;      
    font-size: 14px;
}

.search-pill-btn:hover {
    background: #0b294b;      
    color: #F5F7FA !important;  
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(191, 191, 203, 0.5);
}

/* -- MP-DOWNLOADER ERROR HANDLING */
.error-msg {
    color: #dc3545;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    padding-left: 5px;
    display: none;
}
.shake-error {
    border: 1px solid #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.2);
    animation: shake 0.3s ease-in-out 0s 2;
}
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(6px); }
    50% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
    100% { transform: translateX(0); }
}

.mp-table-wrapper {
    width: 100%;
    max-height: 550px;
    overflow: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
}

.mp-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* -- MP-DOWNLOADER Base Cell */
.mp-table th, .mp-table td {
    padding: 12px 25px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    white-space: normal; 
    word-wrap: break-word;
    vertical-align: top; 
    text-align: left;
    font-size: 13px;
    min-width: 180px;
    max-width: 400px;
}

.mp-table th {
    position: sticky;
    top: 0;
    background-color: #f8fafc;
    z-index: 10;
    font-weight: 700;
    color: #163240;
    text-transform: uppercase;
    font-size: 11px;
    box-shadow: inset 0 -2px 0 #cbd5e1;
}

.mp-table th:first-child, 
.mp-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 20;
    background-color: #fff; 
    border-right: 2px solid #cbd5e1;
    min-width: 250px; 
    max-width: 300px; 
}

.mp-table th:first-child {
    z-index: 30;
    background-color: #f8fafc;
}

.mp-table tbody tr:nth-child(even) td { background-color: #fcfcfd; }
.mp-table tbody tr:nth-child(even) td:first-child { background-color: #fcfcfd; }

.mp-table tbody tr:hover td,
.mp-table tbody tr:hover td:first-child { 
    background-color: #f1f5f9; 
}

.mp-table td {
    color: #4a5568; 
    letter-spacing: 0.2px;
}

#loader-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999999;
    display: none; 
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(4px); 
}

.loader-big {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50%;
    background: radial-gradient(farthest-side, #13659b 94%, transparent) top/10px 10px no-repeat,
                conic-gradient(transparent 30%, #13659b);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 0);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-success-pill {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-success-pill:hover {
    background-color: #059669;
    transform: translateY(-1px);
}



/* ---- ECOM AMAZON AND FLIPKART SEARCH UPLOAD (UPLOAD SECTION) ---- */
.uploader-wrapper.compact-flex {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 30px;
    margin-top: 15px;
}

.upload-sections {
    flex: 1;
    max-width: 1000px; 
    display: flex;
    flex-direction: column;
}

.upload-card.compact-card {
    background: #ffffff;
    border-radius: 14px; 
    padding: 20px !important;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.25s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.upload-card.compact-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e7f3ff;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-span {
    font-size: 22px; 
}

.platform-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-label {
    font-weight: 700;
    color: #4d4d4d; 
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.75px;
}

.minimal-select {
    width: 175px !important; 
    border: none !important;
    /* border-bottom: 2px solid #5f7e9b !important;  */
    background: transparent !important;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 0 !important;
    outline: none !important;
    font-size: 13px;
    color: #15243e;
    transition: border-bottom 0.2s ease;
}

/* .minimal-select:focus {
    border-bottom: 2px solid #0a405b !important;
} */

.input-group-compact {
    display: flex;
    gap: 12px;
    align-items: center;
}

.file-input-styled {
    flex: 1;
    font-size: 13px;
    height: 40px; 
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    transition: border 0.2s ease;
}

.file-input-styled:hover {
    border-color: #94a3b8;
}

.file-input-styled:focus {
    border-color: #5f7e9b;
    box-shadow: 0 0 0 2px rgba(95, 126, 155, 0.1);
}

.btn-primary {
    background-color: #5f7e9b !important;
    border-color: #5f7e9b !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px;      
    border-radius: 6px !important; 
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    border: none !important;
    height: 40px; 
    white-space: nowrap; 
    padding: 0 24px !important;
}

.btn-primary:hover {
    background-color: #0a405b !important; 
    border-color: #0a405b !important;
    transform: translateY(-1px); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: #94a3b8 !important;
    border-color: #94a3b8 !important;
}

.xlstatus-msg {
    margin-top: 10px;
    min-height: 20px;
    font-size: 13px;
    font-weight: 500;
}
.xlstatus-msg .alert {
    margin-bottom: 0;
    border-radius: 8px;
}

.m-0 { margin: 0 !important; }
.mt-2 { margin-top: 8px !important; }


.header-actions {
    margin-top: 5px; 
}



/* ---- TOASTER  ----*/
#upload-status-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: none; 
    z-index: 10000;
    border: 1px solid #ddd;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.toast-header-drive {
    background: #163240;
    color: white;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

.toast-body-drive {
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.upload-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.spinner-mini {
    width: 18px;
    height: 18px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #5f7e9b;
    border-radius: 50%;
    animation: spin-drive 1s linear infinite;
}

@keyframes spin-drive {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.file-info {
    flex: 1;
    font-size: 13px;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-icon-check { color: #28a745; font-weight: bold; }
.status-icon-error { color: #dc3545; font-weight: bold; }




/* ----   SCHEDULER UPDATE PAGE MODAL & DYNAMIC RECIPIENT COMPONENT STYLES ----*/
.sup-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 5px;
}

.sup-page-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #404E67;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sup-page-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.sup-page-btn:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.sup-page-info {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.sup-edit-action-btn {
    background: #404E67;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(64, 78, 103, 0.2);
    transition: all 0.2s ease;
    display: inline-block;
}

.sup-edit-action-btn:hover {
    background: #2c3647;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(64, 78, 103, 0.3);
}

.sup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1060; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sup-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sup-campaign-text {
    font-weight: 500; 
    color: #334155;
    font-size: 14px;
}
.sup-freq-badge {
    font-size: 13px;
    font-weight: 700; 
    color: #404E67;   
    letter-spacing: 0.02em;
    display: inline-block;
}

.sup-recipient-cell {
    /* position: relative; */
    width: 100%;
    max-width: 400px;
    /* max-width: 260px;  */
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap;
    cursor: pointer;
    display: block; 
}

.sup-floating-tooltip {
    position: fixed;
    background: #ffffff;      
    color: #334155;           
    border: 1px solid #cbd5e1; 
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    white-space: pre-line;    
    /* width: 380px; */
    width: 240px;            
    height: auto;             
    max-height: 320px;        
    overflow-y: auto;         
    box-shadow: 0 10px 25px -5px rgba(64, 78, 103, 0.15), 0 8px 10px -6px rgba(64, 78, 103, 0.1);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-in-out;
}

.sup-floating-tooltip.active {
    opacity: 1;
    pointer-events: auto;    
}

.sup-floating-tooltip::-webkit-scrollbar {
    width: 6px;
}
.sup-floating-tooltip::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.sup-floating-tooltip::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.sup-floating-tooltip::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* -- Centered Form Card Module */
.sup-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 640px; 
    min-height: 480px;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sup-modal-overlay.active .sup-modal-card {
    transform: scale(1);
}

.sup-modal-header {
    background: #f8fafc;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sup-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #404E67;
    margin: 0;
}

.sup-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 300;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-top: -4px;
}

.sup-modal-close:hover {
    color: #ef4444;
}

.sup-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 70vh;
    overflow-y: auto;
}

.sup-chips-input-container {
    border: 2px solid #e2e8f0;
    background-color: #fafbfc;
    border-radius: 10px;
    padding: 6px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-height: 46px;
    cursor: text;
    transition: border-color 0.2s, background-color 0.2s;
}

.sup-chips-input-container:focus-within {
    border-color: #404E67;
    background-color: #ffffff;
}

.sup-email-chip {
    background: #edf2f7;
    color: #404E67;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.sup-email-chip-remove {
    cursor: pointer;
    color: #94a3b8;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.15s;
}

.sup-email-chip-remove:hover {
    color: #ef4444;
}

.sup-chips-raw-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13.5px;
    color: #404E67;
    flex: 1;
    min-width: 150px;
    padding: 4px 0;
}

/* -- Modal Action Footer Bar */
.sup-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
}

.sup-btn-cancel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.sup-btn-cancel:hover {
    background: #f8fafc;
    color: #404E67;
}

.sup-btn-save {
    background: #404E67;
    border: none;
    color: #ffffff;
    padding: 8px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(64, 78, 103, 0.15);
    transition: opacity 0.15s;
}

.sup-btn-save:hover {
    opacity: 0.95;
}

/* -- Real-time Domain Flag Notice Error Alert */
.sup-error-msg {
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    display: none;
}



/* ---- UNIQUE KEY GENERATE (BUTTONS, )*/

.btn-success-pill, .btn-reset-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;       
    height: 38px;           
    padding: 0 24px;        
    border: none;
    border-radius: 50px;    
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-success-pill {
    background-color: #10b981;
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success-pill:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-reset-pill {
    background-color: #e5e5e5;
    color: #404E67;
    box-shadow: 0 4px 15px rgba(191, 191, 203, 0.3);
}

.btn-reset-pill:hover {
    background-color: #181d26;
    color: #F5F7FA;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 29, 38, 0.4);
}

.btn-success-pill:active, .btn-reset-pill:active {
    transform: translateY(0);
}
