﻿/* =========================
   RESET (kept minimal)
========================= */
* {
    margin: 0;
    padding: 0;
}

/* =========================
   GLOBAL
========================= */
html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    color: #333;
    background-color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
}

a {
    color: #24634B;
}

    a:hover {
        color: #184333;
    }

img {
    border: none;
}

p {
    margin: 10px 0 5px;
    text-align: justify;
    line-height: 1.4;
}

/* =========================
   LAYOUT CONTAINERS
========================= */
#container,
#container_admin,
#container_user {
    margin: 0 auto;
    width: 960px;
    background-color: var(--bs-body-bg);
}

/* =========================
   HEADERS / TITLES
========================= */
.Title,
.Title_text {
    
    font-size: 18px;
    font-weight: bold;
    color: #084c32;
    text-align: left;
}

#page_header {
    width: 100%;
    height: 75px;
    background-color: var(--bs-body-bg);
    background: url('images/segalmarcoadvisors.png') no-repeat 0 0;
    background-size: 300px 30px;
}

/* =========================
   TABLES (LEGACY + NORMALIZED)
========================= */
.tableNoBorder {
    border-width: 0px;
    border-spacing: 2px;
    border-style: solid;
    border-color: #CCCCCC; /*#c2c2cd;*/
    border-collapse: collapse;
    /*text-align: center;
     
    background: url(images/shadowAlpha.png) no-repeat bottom right !important;
	background: url(images/shadow.gif) no-repeat bottom right;
    */
}

    .tableNoBorder th {
        border-width: 1px;
        border-style: ridge;
        letter-spacing: 0px;
        
        color: Black;
        padding: 0px;
        border-color: #CCCCCC; /*white-space;*/
        /*background:transparent url(images/sprite.png) repeat-x scroll 0pt -200px;*/
        /*-moz-border-radius: */
    }

    .tableNoBorder td {
        border-width: 0px;
        padding: 5px;
        border-style: solid;
        border-color: #CCCCCC; /*#c2c2cd;*/
        
        vertical-align: middle;
      
        /*-moz-border-radius: ;*/
    }
table .dt-column-footer{
    text-align:left;
}
table.dataTable.table-prospect {
    border-left-width: 0 !important;
    border-right-width: 0 !important;
}


.grid_headertext, .grid_headertext_last {
    font-size: 12px;
    color: White;
    /*border-right: #CCCCCC 1px solid;*/
    width: auto;
    text-align: left;
}
table {
    border-collapse: collapse;
    border: 0;
    margin-bottom: 1px;
   
}

    table th {
        color: #fff;
        background-color: #9e9ec3;
        border: 0;
        padding: 2px;
        text-align: left;
    }

    table tbody td {
        border: 0;
        color: #666;
        font-size: 14px;
        text-align: left;
    }

    /* Zebra rows */
    table tbody tr.light {
       /* background-color: #f7f7f7;*/
    }

    table tbody tr.dark {
       /*// background-color: #e8e8e8;*/
    }

/* =========================
   FORMS / VALIDATION
========================= */
.validator_lables {
    font-size: 13px;
    color: var(--bs-danger);
    margin-left: 13px;
}

/* Keep legacy form styling */
.Form_Button {
    background-color: #2C7A5C;
    color: #fff;
    font-weight: bold;
    height: 22px;
    min-width: 120px;
    text-align: center;
}

/* =========================
   GRID (CRITICAL - KEEP)
========================= */
.grid {
    border: 1px solid #7f7f7f;
    width: 100%;
}

    .grid th,
    .grid td {
        text-align: center;
        padding: 4px 5px;
    }

    .grid tr.gridRow td {
        background-color: #B1DEDC;
    }

    
.grid_header {
    text-align: center;
}
/* =========================
   DATATABLES (UPDATED)
========================= */
.dataTables_wrapper {
    width: 98%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.dataTables_filter,
.dataTables_length {
    float: none;
}

/* =========================
   ERRORS
========================= */
.error {
    color: var(--bs-danger);
    font-weight: 600;
}

.divError {
    display: none;
    margin: 5px;
    padding: 5px;
    background-color: var(--bs-danger-bg-subtle);
    border: 1px solid var(--bs-danger);
}

/* =========================
   BUTTONS (TRANSITION PHASE)
========================= */

/* ✅ NEW (use this moving forward) */
.btn-brand {
    background-color: #00b140;
    border-color: #00b140;
    color: #fff;
}

    .btn-brand:hover {
        background-color: #009636;
    }

/* ⚠️ LEGACY KEEP (DO NOT REMOVE YET) */
.btn-success {
    background-color: #00B140;
    border-color: #00B140;
}

    .btn-success:hover,
    .btn-success:focus {
        background-color: #009636;
        border-color: #009636;
    }

    .btn-success:active {
        background-color: #007F2E;
        border-color: #007F2E;
    }

/* =========================
   FORM ELEMENTS
========================= */
.textbox_multiline {
    border: 1px solid #d0d5cb;
    width: 220px;
    height: 40px;
    padding: 2px;
}

/*.dropdown,
.dropdown_Standard,
.dropdown_custom {
    border: 1px solid #d0d5cb;
    background-color: #fff;
}
*/
/* =========================
   UTILITY
========================= */
.left {
    text-align: left;
}

.right {
    text-align: right;
}

.hidden {
    display: none;
}

/* =========================
   MINOR FIXES
========================= */
.GridViewEditRow input[type="text"] {
    width: 80px;
}

.GridViewEditRow select {
    width: 100px;
}




/* hover + focus */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #198754 !important;
    background-color: rgba(25,135,84,0.1);
    border-radius: 4px;
}

.navbar-nav .nav-link.active {
    font-weight: 600;
    color: #198754 !important;
}

avbar-nav .dropdown-toggle {
    border: none !important;
    box-shadow: none !important;
}

.navbar-nav .dropdown-toggle:focus {
    outline: none;
    box-shadow: none;
}


.head_labels {
    font-weight: bolder; /* makes text bold */
    font-size: 12px; /* makes text bigger */
}
.card-title {
    font-weight: bolder; /* makes text bold */
    font-size: 18px; /* makes text bigger */
}
/*.card {
    border:hidden;
}*/
.dt-column-title{
    text-align: left;
}
.gridRow, .gridFooterRow {
    text-align: center;
}

/* Larger, bolder nav links */
.navbar .navbar-nav .nav-link {
    font-size: 1rem !important; /* bump from default ~1rem */
    font-weight: 400 !important; /* bolder */
    color: #212529 !important; /* darker text for readability */
    padding: 0.6rem 1rem !important;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 6px;
}

/* Hover effect */
/*.navbar .navbar-nav .nav-link:hover {
    color: #0d6efd !important;
    background-color: #e9f2ff !important;
}*/

/* Active / clicked menu item highlight */
.navbar .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: #0d6efd !important; /* Bootstrap primary blue */
    font-weight: 800 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* ✅ remove focus outline rectangle */

.navbar-nav .nav-link {
    transition: all 0.2s ease;
}

/* Remove the rectangle border on all navbar dropdown menus */
.navbar .dropdown {
    border: 0 !important;
    /* Optional extras — uncomment whichever you want */
    /* box-shadow: none;        */ /* remove the soft shadow too */
    /* border-radius: 0;        */ /* square off the corners      */
    /* margin-top: 0;           */ /* sit flush under the navbar  */
}

.navbar .nav-link.dropdown-toggle:focus,
.navbar .nav-link.dropdown-toggle:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(13,110,253,.25);
}

#new_item_Content {
    /*
    border-left: #599780 1px solid;
    border-right: #599780 1px solid;
    border-bottom: #599780 1px solid;
    border-top: #599780 1px solid;
    */

    border-left: #CCCCCC 1px solid;
    border-right: #CCCCCC 1px solid;
    border-bottom: #CCCCCC 1px solid;
    border-top: #CCCCCC 1px solid;
    text-align: justify;
    font-size: 12px;
    background-color: #FEFFFE;
    margin-top: 0px;
    min-height: 600px;
}
#new_item_page_header {
    margin-bottom: 5px;
    padding: 1px 0px;
    text-align: justify;

    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #3DAE2B;
    /*background-image: url('images/title_bg.png');*/
}

    #new_item_page_header a {
        font-size: 11px;
        margin-top: 4px;
        margin-left: 0px;
        margin-right: 0px;
        font-weight: bold;
        color: #fff;
        text-decoration: none;
    }
    /*#new_item_page_header .tableNoBorder .Title_text*/
    #new_item_page_header .Title_text {

        font-size: 18px;
        font-weight: bold;
        color: #fff;
    }
    #new_item_page_header .head_labels {
        font-size: 11px;
        font-weight: bold;
        color: #fff;
    }
    #new_item_page_header .Title {
        font-size: 18px;
        font-weight: bold;
        color: #fff;
    }

#new_item_link a {
    text-decoration: none;
}


.grid_alternative {
    font-size: 12px;
    height: 30px;
    color: #666666;
    text-align: left;
    /*border-bottom-color: #6dc3a1;
    border-bottom-width: 1px;
    border-bottom-style: solid;*/
    background-color: #E8E8E8;
    /*border-top-color: #6dc3a1;
    border-top-width: 1px;
    border-top-style: solid;*/
    /*#F4FDFC;*/
}

    .grid_alternative thead th {
        background-color: #9e9ec3;
        color: white;
    }

    .grid_alternative tbody tr:nth-child(odd) {
        background-color: #f9f9f9;
    }

/*.grid_alternative {
    border-collapse: collapse;
    width: 100%;
}

    .grid_alternative th,
    .grid_alternative td {
        padding: 8px;
        border-bottom: 1px solid #dee2e6;
    }*/

    /* Zebra striping */
    /*.grid_alternative tbody tr:nth-child(odd) {
        background-color: #f9f9f9;
    }*/

    /* Optional hover effect (like Bootstrap) */
    /*.grid_alternative tbody tr:hover {
        background-color: #f1f1f1;
    }

    .grid_alternative tbody tr:nth-child(even) {
        background-color: #f2f2f2;
    }*/

#new_item_page_footer {
    border-top: #999999 1px solid;
    margin-bottom: 1px;
    margin-right: 0px;
    padding: 10px 10px;
    text-align: justify;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

/*#GridView1 th:last-child,
#GridView1 td:last-child,
#GridView1 td:last-child div,
#GridView1 td:last-child a {
    text-align: left !important;
}*/


#GridView1 thead th,
#GridView1 tbody td {
    text-align: left !important;
}

#GridView1 td:last-child {
    white-space: nowrap;
}

.checkbox-modern {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: .5rem;
    border-color: transparent;
    box-shadow: none;
}

.checkbox-modern:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Remove white background/frame from navbar dropdowns */
.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

    /* Remove blue Bootstrap focus ring */
    .navbar-nav .dropdown-toggle:focus,
    .navbar-nav .dropdown-toggle:active,
    .navbar-nav .show > .dropdown-toggle {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

/* Match production styling */
.navbar-nav .nav-link {
    color: #666 !important;
    font-weight: 400;
}

    .navbar-nav .nav-link:hover {
        color: #333 !important;
    }

/* Optional: make dropdown look like production */
/*.dropdown-menu {
    border-radius: 0;
    border: 1px solid #d9d9d9;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}*/
/* =========================================
   menu modal
   ========================================= */

/* Menu modal */
#menuModal .modal-dialog {
    max-width: 350px;
}
.menu-selection {
    display: block;
    width: 92%;
    margin: 0 auto;
    padding: 10px 12px;
    color: #ffffff !important;
    font-size: 14px; /* larger */
    font-weight: 600; /* bolder */
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0;
    background: linear-gradient( 120deg, #45c52d 0%, #45c52d 85%, #2f8f3c 85%, #2f8f3c 100% );
    transition: all 0.15s ease;
}

    /* Hover - entire button dark green */

    .menu-selection:hover,
    .menu-selection:focus {
        background: #388e3c !important;
        color: #ffffff !important;
        text-decoration: underline;
    }

/* Selected item */

.menu-selection-selected,
.menu-selection-selected:hover,
.menu-selection-selected:focus,
.menu-selection-selected:active {
    background: #388e3c !important;
    color: #ffffff !important;
    text-decoration: underline;
}

    /* Prevent Bootstrap link colors */

    .menu-selection:link,
    .menu-selection:visited,
    .menu-selection:hover,
    .menu-selection:active,
    .menu-selection:focus,
    .menu-selection-selected:link,
    .menu-selection-selected:visited {
        color: #ffffff !important;
    }

/* Red Close button */

.menu-close-button {
    background: linear-gradient( 120deg, #ff3b30 0%, #ff3b30 75%, #d32f2f 75%, #d32f2f 100% );
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    min-width: 100px;
    padding: 10px 18px;
}

    .menu-close-button:hover,
    .menu-close-button:focus {
        background: #c62828;
        color: #ffffff;
    }

    .menu-close-button:active {
        background: #b71c1c;
    }
/* ---------- Header ---------- */

.site-header {
    width: 100%;
    margin: 0 0 45px;
    padding: 0;
    background-color: #fff;
    box-shadow: none !important;
}

.header-logo-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 62px;
    padding: 6px 9px 5px;
    background-color: #fff;
}

.site-logo {
    display: block;
    width: auto;
    height: 34px;
    max-width: 100%;
}

/* ---------- Navigation ---------- */

.site-navbar {
    min-height: 52px;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
}

    .site-navbar > .container-fluid {
        min-height: 50px;
        padding-right: 15px;
        padding-left: 15px;
    }

.site-client-name {
    display: flex;
    align-items: center;
    min-height: 50px;
    margin: 0;
    padding: 15px 0;
    color: #008060;
    font-size: 18px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
}

#Label1 {
    color: #008060 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 20px;
}

/* Original navigation used smaller, lighter links */
.site-navbar .navbar-nav {
    min-height: 50px;
}

.site-navbar .nav-item {
    display: flex;
    align-items: stretch;
}

.site-navbar .nav-link {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 15px 15px !important;
    color: #555 !important;
    background-color: transparent;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}

    .site-navbar .nav-link:hover,
    .site-navbar .nav-link:focus,
    .site-navbar .nav-item.show > .nav-link {
        color: #333 !important;
        background-color: #e7e7e7 !important;
    }

/* Selected server-side menu item */
.site-navbar .nav-item.active > .nav-link,
.site-navbar .nav-item.selected > .nav-link {
    color: #555 !important;
    background-color: #e7e7e7 !important;
}

/* Bootstrap 3-like dropdown caret */
.site-navbar .dropdown-toggle::after {
    margin-left: 5px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-bottom: 0;
    border-left: 4px solid transparent;
}

.site-navbar .dropdown-menu {
    min-width: 160px;
    margin-top: 0;
    padding: 5px 0;
    /*border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);*/
    font-size: 14px;
}

.site-navbar .dropdown-item {
    padding: 3px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    white-space: nowrap;
}

    .site-navbar .dropdown-item:hover,
    .site-navbar .dropdown-item:focus {
        color: #262626;
        background-color: #f5f5f5;
    }

/* ---------- Mobile navigation ---------- */

.site-navbar .navbar-toggler {
    margin: 8px 0 8px auto;
    padding: 9px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: transparent;
}

    .site-navbar .navbar-toggler:hover,
    .site-navbar .navbar-toggler:focus {
        background-color: #ddd;
        box-shadow: none;
    }

.site-navbar .navbar-toggler-icon {
    width: 22px;
    height: 16px;
}

/* ---------- Main content ---------- */

.main-content {
    width: 100%;
    margin: 0;
    margin-top: 2px;
    padding-right: 15px;
    padding-left: 15px;
}

    .main-content h1,
    .main-content .h1 {
        margin-top: 2px;
        margin-bottom: 10px;
        font-size: 36px;
        font-weight: 500;
        line-height: 1.1;
    }

    .main-content h2,
    .main-content .h2 {
        margin-top: 2px;
        margin-bottom: 10px;
        font-size: 30px;
        font-weight: 500;
        line-height: 1.1;
    }

    .main-content h3,
    .main-content .h3 {
        margin-top: 2px;
        margin-bottom: 10px;
        font-size: 24px;
        font-weight: 500;
        line-height: 1.1;
    }

/* ---------- Modal ---------- */

.modal-content {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-header,
.modal-footer {
    padding: 15px;
}

.modal-body {
    padding: 15px;
}

.modal-title {
    font-size: 18px;
    font-weight: 500;
}

.site-modal-close {
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
}

    .site-modal-close:hover {
        color: #333;
        background-color: #e6e6e6;
        border-color: #adadad;
    }

/* ---------- DataTables compact styling ---------- */

div.dt-container {
    font-size: 14px;
}

    div.dt-container .dt-layout-row {
        margin: 0 0 10px;
    }

    div.dt-container .dt-search {
        display: flex;
        align-items: center;
        gap: 5px;
    }

        div.dt-container .dt-search label,
        div.dt-container .dt-length label,
        div.dt-container .dt-info {
            color: #333;
            font-size: 14px;
            font-weight: 400;
        }

    div.dt-container .dt-input {
        min-height: 30px;
        padding: 4px 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: #fff;
        color: #555;
        font-size: 14px;
    }

    div.dt-container .dt-search input.dt-input {
        width: 178px;
        margin-left: 0;
    }

    div.dt-container .dt-length select.dt-input {
        width: auto;
        min-width: 74px;
    }

table.dataTable {
    width: 100% !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    border-collapse: collapse !important;
    font-size: 14px;
}

    table.dataTable thead th,
    table.dataTable thead td {
        padding: 8px;
        color: #333;
        background-color: #fff;
        border-bottom: 3px solid #ddd;
        font-weight: 700;
        text-align: left;
        vertical-align: bottom;
    }

    table.dataTable tbody th,
    table.dataTable tbody td {
        padding: 8px;
        border-top: 1px solid #ddd;
        vertical-align: middle;
    }

    /* Original alternating row appearance */
    table.dataTable.stripe > tbody > tr:nth-child(odd) > *,
    table.dataTable.display > tbody > tr:nth-child(odd) > *,
    table.dataTable tbody tr:nth-child(odd) {
        background-color: #f9f9f9;
    }

    table.dataTable tbody tr:nth-child(even) {
        background-color: #fff;
    }

    /* Smaller legacy-style buttons inside tables */
    table.dataTable .btn {
        padding: 1px 5px;
        border-radius: 3px;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.5;
    }

/* Legacy DataTables-like pagination */
div.dt-container .dt-paging {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

    div.dt-container .dt-paging .dt-paging-button {
        min-width: 38px;
        min-height: 36px;
        margin-left: -1px;
        padding: 6px 12px !important;
        border: 1px solid transparent !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #333 !important;
        font-size: 14px;
        box-shadow: none !important;
    }

        div.dt-container .dt-paging .dt-paging-button.current {
            border-color: #adadad !important;
            background: linear-gradient(to bottom, #fff 0%, #e6e6e6 100%) !important;
            color: #333 !important;
        }

        div.dt-container .dt-paging .dt-paging-button:hover {
            border-color: #adadad !important;
            background: #e6e6e6 !important;
            color: #333 !important;
        }

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    .site-header {
        margin-bottom: 20px;
    }

    .header-logo-row {
        min-height: 65px;
    }

    .site-logo {
        height: 30px;
    }

    .site-client-name {
        max-width: calc(100% - 65px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-navbar .navbar-collapse {
        border-top: 1px solid #e7e7e7;
    }

    .site-navbar .nav-item {
        display: block;
    }

    .site-navbar .nav-link {
        display: block;
        min-height: auto;
        padding: 10px 15px !important;
    }

    .site-navbar .dropdown-menu {
        border: 0;
        box-shadow: none;
    }

    .site-navbar .dropdown-item {
        padding: 8px 30px;
    }
}
/* Remove horizontal divider under title */
.card-header {
    border-bottom: none !important;
    background: #fff !important;
    padding-bottom: 0 !important;
}

/* Search left */
.myfilter {
    float: left;
    margin-bottom: 10px;
}

/* Rows per page right */
.mylength {
    float: right;
    margin-bottom: 10px;
}

/* Clear the floats */
.dataTables_wrapper::after {
    content: "";
    display: block;
    clear: both;
}

/* Restore panel border */
.panel-success {
    border: 1px solid #d6e9c6 !important;
    border-radius: 3px;
}

/* Add left border to table */
/*#GridView1,
#GridView1_wrapper table.dataTable {
    border-left: 1px solid #ddd !important;
}*/

    /* Match original header appearance */
    #GridView1 thead th {
        text-align: left !important;
        font-weight: 600;
        border-bottom: 2px solid #ddd !important;
    }
.table-responsive {
    overflow-x: hidden !important;
}

.card-body {
    overflow-x: hidden;
}
.pageHeaderRow {
    margin-top: -10px;
    margin-bottom: 5px;
}

    .pageHeaderRow .col-lg-12 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
/* Remove any left border on first header */
#GridView1 thead th:first-child,
#GridView1 tbody td:first-child {
    padding-left: 8px !important;
    border-left: 0 !important;
}

#GridView1 {
    border-left: 0 !important;
}

#GridView1_wrapper table {
    border-left: 0 !important;
}
.table-prospect {
    border: none !important;
}

    .table-prospect > :not(caption) > * > * {
        border-left: 0 !important;
        border-right: 0 !important;
    }

    .table-prospect thead th {
        border-top: 0 !important;
        border-bottom: 1px solid #ddd !important;
        background: #fff;
    }

    .table-prospect tbody td {
        border-top: 1px solid #ddd !important;
        border-bottom: 1px solid #ddd !important;
    }
/* ---------- Bootstrap Card Fixes ---------- */

.card {
    border: none !important;
    /*border: 1px solid #dee2e6;*/
}

    .card.border-success {
        border: none !important;
        /* border: 1px solid #d8e6c5 !important;
        border-radius: 3px;
        background-color: #fff;*/
    }
.card-body {
    padding-bottom: 1.2rem; /* space above bottom border */
}
.card-header,
.card-footer {
    padding: 15px 0 15px 0;
    border: none !important;
    /*border-top: 1px solid #dee2e6;*/
}
.card-body .form-group {
    margin-bottom: 1rem;
}

.card-body .alert {
    margin-bottom: 1rem !important;
}

.card-body label {
    padding-top: 3px;
}
.section-header {
    background: #dcead3;
    color: #3d6b2f;
    font-weight: 600;
    padding: 8px 14px;
    font-size: 16px;
}

.section-panel {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.section-body {
    padding: 14px;
}

.product-fee-container {
    border: 1px solid #dcead3;
    padding: 25px 30px;
    background: #fff;
    top: -50px;
}
    .product-fee-container h3 {
        margin-top: 0;
    }
.fee-grid {
    margin-top: 20px;
}

    .fee-grid th {
        border-bottom: 2px solid #d4d4d4;
        font-weight: 600;
        background: white;
    }

    .fee-grid td {
        vertical-align: middle;
        white-space: nowrap;
    }
        .fee-grid td * {
            display: inline-block;
            vertical-align: middle;
        }
    .fee-grid .validator_lables,
    .fee-grid span {
        white-space: nowrap;
    }
    .fee-grid tbody td {
        white-space: nowrap;
    }

    .fee-grid tfoot td {
        border-top: 1px solid #efefef;
        white-space: nowrap;
    }
    .fee-grid th:nth-child(3),
    .fee-grid td:nth-child(3),
    .fee-grid tfoot td:nth-child(3) {
        text-align: left !important;
    }
.input-validation {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.money-input {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

    .money-input .form-control {
        width: 180px;
    }
.allocation-content {
    width: 700px;
    margin: 0 auto;
}
.allocation-container {
    width: 100%;
    border: none;
    background: white;
    padding: 15px 0;
}

.allocation-row {
    display: grid;
    grid-template-columns: 150px 90px 150px 90px;
    align-items: center;
    column-gap: 50px;
    margin-bottom: 10px;
}

.country-name {
    white-space: nowrap;
}

.country-input input,
.country-input .form-control {
    width: 80px;
}

.total-row {
    margin-bottom: 15px;
}

.total-box,
.alert-warning {
    background-color: #fff8dc !important;
}
.allocation-container .form-control {
    max-width: 80px;
    height: 32px;
}
#ddlBenchmark {
    max-width: 450px;
}
.benchmark-row {
    margin-bottom: 20px;
}
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 6px;
    white-space: nowrap;
}
.upload-panel {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

    .upload-panel .form-control {
        margin-bottom: 0;
    }

.table-responsive {
    margin-top: 10px;
}
.links-cell {
    display: flex;
    gap: 4px;
    align-items: center;
}

    .links-cell,
    .links-cell * {
        border: none !important;
    }
.country-allocation-columns {
    display: flex;
    align-items: flex-start;
    gap: 70px;
    width: 700px;
    margin: 20px auto 0;
}

.country-allocation-panel {
    flex: 0 0 300px;
    min-width: 0;
}

.country-allocation-heading {
    margin-bottom: 10px;
    padding-bottom: 5px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}

.country-allocation-list {
    width: 100%;
    border: 0 !important;
}

    .country-allocation-list > tbody > tr > td {
        border: 0 !important;
        padding: 0 !important;
    }

.country-allocation-row {
    display: grid;
    grid-template-columns: 170px 90px;
    align-items: center;
    height: 40px;
    column-gap: 8px;
}

.country-name {
    display: flex;
    align-items: center;
    height: 40px;
    color: #555;
    white-space: nowrap;
}

.benchmark-panel {
    margin-left: 65px;
    
}
.benchmark-panel .country-allocation-row {
    display: grid;
    grid-template-columns: 140px 90px;
    align-items: center !important;
}

.benchmark-panel .country-name,
.benchmark-panel .country-allocation-value {
    align-self: center !important;
}


.country-allocation-value {
    width: 80px !important;
    height: 25px;
    padding: 2px 4px;
}

    .country-allocation-value[readonly] {
        background-color: #f8f8f8;
        color: #333;
    }

@media (max-width: 800px) {
    .country-allocation-columns {
        flex-direction: column;
        gap: 25px;
        width: 100%;
        padding: 0 15px;
    }

    .country-allocation-panel {
        width: 100%;
        flex-basis: auto;
    }
}
.product-fee-card {
    border: 1px solid #c6dfb5;
    border-radius: 4px;
    box-shadow: none;
}

    .product-fee-card .card-header {
        min-height: 50px;
        padding: 10px 15px;
        background-color: #fff;
        border-bottom: 0;
    }

.product-fee-body {
    padding: 45px 15px 25px;
}

.fee-schedule-table {
    width: 100%;
    margin-bottom: 0;
    table-layout: fixed;
    border-collapse: collapse;
}

    .fee-schedule-table th {
        padding: 8px;
        color: #111;
        font-weight: 600;
        text-align: left;
        vertical-align: bottom;
        background-color: #fff;
        border-top: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 3px solid #e5e5e5;
    }

    .fee-schedule-table td {
        padding: 8px;
        color: #111;
        text-align: left;
        vertical-align: middle;
        background-color: #fff;
        border-left: 0;
        border-right: 0;
        border-top: 0;
        border-bottom: 1px solid #222;
    }

    .fee-schedule-table .gridFooterRow td {
        padding-top: 8px;
        padding-bottom: 8px;
        vertical-align: middle;
        border-bottom: 1px solid #222;
    }

    .fee-schedule-table input[type="text"] {
        height: 27px;
        padding: 2px 6px;
        border: 1px solid #999;
        border-radius: 0;
    }

    .fee-schedule-table .form-control {
        display: inline-block;
        height: 27px;
        padding: 2px 6px;
        vertical-align: middle;
        border: 1px solid #999;
        border-radius: 0;
    }

    .fee-schedule-table .btn {
        white-space: nowrap;
    }

.product-fee-card .card-footer {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
}

    .product-fee-card .card-footer .btn {
        margin: 0 1px;
    }

/* Match the production Add Fee Bracket button */
.fee-schedule-table .btn-brand {
    color: #fff;
    background-color: #58b957;
    border-color: #4cae4c;
}

    .fee-schedule-table .btn-brand:hover,
    .fee-schedule-table .btn-brand:focus {
        color: #fff;
        background-color: #449d44;
        border-color: #398439;
    }

/* Match the more compact production buttons */
.fee-schedule-table .btn,
.product-fee-card .card-footer .btn {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.25;
}

.character-page {
    max-width: 840px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 12px;
    padding-left: 12px;
}

.page-title-row {
    min-height: 46px;
    margin-bottom: 6px;
}

.page-title {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
}

.page-header-label {
    margin-left: 20px;
    text-align: right;
    white-space: nowrap;
}

.column-heading {
    display: inline-block;
    font-weight: 600;
}

.benchmark-top-row {
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
}

.benchmark-label {
    margin-bottom: 0;
    font-weight: 600;
    text-align: left;
}

.benchmark-control {
    min-width: 0;
}

    .benchmark-control .form-select,
    .benchmark-control .form-control {
        width: 100%;
        min-width: 0;
    }

/* ==========================================
   Compact master header
   ========================================== */

#header.site-header {
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}


    /*
 * Correct selector:
 * header-logo-row, not header-log-row
 */
    #header.site-header .header-logo-row {
        min-height: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }


    #header.site-header .container,
    #header.site-header .container-fluid {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }


    #header.site-header .navbar {
        min-height: 38px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }


    #header.site-header .navbar-nav > li > a,
    #header.site-header .nav-link {
        min-height: 0 !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    #header.site-header img {
        max-height: 38px !important;
        width: auto !important;
    }


main.main-content,
.main-content {
    margin-top: 0 !important;
    padding-top: 2px !important;
}


/* ==========================================
   Questionnaire Upload Page
   ========================================== */

.questionnaire-page {
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* Manager / product heading */

.questionnaire-product-header {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px;
    line-height: 16px;
}


/* Upload ASG Files heading */

.questionnaire-title-row {
    margin-top: -4px !important;
    margin-bottom: 2px !important;
}


.questionnaire-title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 24px !important;
}


/* ==========================================
   Questionnaire Card
   ========================================== */

.questionnaire-card {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: 0 !important;
}


.questionnaire-card-header {
    margin: 0 !important;
    padding-top: 2px !important;
    padding-right: 0 !important;
    padding-bottom: 3px !important;
    padding-left: 0 !important;
    background-color: transparent !important;
    border: 0 !important;
}


    .questionnaire-card-header .row {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }


    .questionnaire-card-header .container-fluid {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }


.questionnaire-card-body {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 2px !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    overflow-x: hidden;
}


/* ==========================================
   Current-quarter Upload Section
   ========================================== */

.current-quarter-section {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    padding: 0 !important;
}


.upload-panel {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}


    .upload-panel .table-responsive {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }


    .upload-panel .table {
        width: 100%;
        margin-top: 0 !important;
        margin-bottom: 5px !important;
    }


        .upload-panel .table th,
        .upload-panel .table td {
            padding-top: 6px !important;
            padding-bottom: 6px !important;
            vertical-align: middle !important;
        }


    .upload-panel .form-control {
        margin-bottom: 0 !important;
    }


/* ==========================================
   Historical Files Section
   ========================================== */

.questionnaire-history-section {
    display: block !important;
    width: 100% !important;
    margin-top: 3px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}


    .questionnaire-history-section > .row {
        display: flex;
        width: auto;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }


    .questionnaire-history-section .col-lg-12 {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }


.questionnaire-grid-container {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}


/* ==========================================
   Questionnaire DataTables Wrapper
   ========================================== */

/*
 * Override the shared .dataTables_wrapper rule
 * that uses display:flex.
 */
#grdQuestionnaireFile_wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}


    /* DataTables 2 wrapper */

    #grdQuestionnaireFile_wrapper.dt-container {
        display: block !important;
        width: 100% !important;
    }


    /* DataTables 1 wrapper */

    #grdQuestionnaireFile_wrapper.dataTables_wrapper {
        display: block !important;
        width: 100% !important;
    }


    /* ==========================================
   DataTables Search
   ========================================== */

    #grdQuestionnaireFile_wrapper .myfilter {
        display: block !important;
        float: none !important;
        width: 100% !important;
        margin-top: 2px !important;
        margin-bottom: 6px !important;
        padding: 0 !important;
    }


    #grdQuestionnaireFile_wrapper .dt-search,
    #grdQuestionnaireFile_wrapper .dataTables_filter {
        display: flex !important;
        float: none !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        margin: 0 0 6px 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }


        #grdQuestionnaireFile_wrapper .dt-search label,
        #grdQuestionnaireFile_wrapper .dataTables_filter label {
            margin: 0 !important;
            padding: 0 !important;
        }


        #grdQuestionnaireFile_wrapper .dt-search input,
        #grdQuestionnaireFile_wrapper .dataTables_filter input {
            width: 188px;
            margin-left: 8px !important;
        }


    /* ==========================================
   DataTables Scroll Container
   Supports DataTables 1 and DataTables 2
   ========================================== */

    /*
 * DataTables 2 outer scrolling container.
 */
    #grdQuestionnaireFile_wrapper .dt-scroll {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }


    /*
 * DataTables 1 outer scrolling container.
 */
    #grdQuestionnaireFile_wrapper .dataTables_scroll {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }


    /* ==========================================
   Visible Fixed Header
   ========================================== */

    /* DataTables 2 and DataTables 1 */

    #grdQuestionnaireFile_wrapper .dt-scroll-head,
    #grdQuestionnaireFile_wrapper .dataTables_scrollHead {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
    }


    #grdQuestionnaireFile_wrapper .dt-scroll-headInner,
    #grdQuestionnaireFile_wrapper .dataTables_scrollHeadInner {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }


    #grdQuestionnaireFile_wrapper .dt-scroll-head table,
    #grdQuestionnaireFile_wrapper .dataTables_scrollHead table {
        width: 100% !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border: 0 !important;
        border-collapse: collapse !important;
    }


    /*
 * Keep exactly one separator beneath
 * the visible table header.
 */
    #grdQuestionnaireFile_wrapper .dt-scroll-head thead th,
    #grdQuestionnaireFile_wrapper .dataTables_scrollHead thead th {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        color: #333 !important;
        background-color: #fff !important;
        border-top: 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid #dee2e6 !important;
        border-left: 0 !important;
        font-weight: 700 !important;
        text-align: left !important;
        vertical-align: bottom !important;
    }


    /* ==========================================
   Historical Rows: Inner Vertical Scroll
   ========================================== */

    /*
 * DataTables 2 uses .dt-scroll-body.
 * DataTables 1 uses .dataTables_scrollBody.
 */
    #grdQuestionnaireFile_wrapper .dt-scroll-body,
    #grdQuestionnaireFile_wrapper .dataTables_scrollBody {
        display: block !important;
        position: relative !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 450px !important;
        min-height: 450px !important;
        max-height: 450px !important;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border-top: 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid #dee2e6 !important;
        border-left: 0 !important;
        scrollbar-gutter: stable;
    }


        /*
 * Force the scrolling body's direct table
 * to stay inside the scroll viewport.
 */
        #grdQuestionnaireFile_wrapper .dt-scroll-body > table,
        #grdQuestionnaireFile_wrapper .dataTables_scrollBody > table {
            display: table !important;
            width: 100% !important;
            min-width: 100% !important;
            margin-top: 0 !important;
            margin-bottom: 0 !important;
            border-collapse: collapse !important;
        }


        /* ==========================================
   Hidden DataTables Sizing Header
   ========================================== */

        /*
 * DataTables keeps a second header in the
 * scroll body to calculate column widths.
 * Keep the elements but collapse their
 * visible height.
 */
        #grdQuestionnaireFile_wrapper .dt-scroll-body thead,
        #grdQuestionnaireFile_wrapper .dataTables_scrollBody thead {
            height: 0 !important;
            max-height: 0 !important;
            visibility: hidden !important;
        }


            #grdQuestionnaireFile_wrapper .dt-scroll-body thead tr,
            #grdQuestionnaireFile_wrapper .dataTables_scrollBody thead tr {
                height: 0 !important;
                max-height: 0 !important;
            }


            #grdQuestionnaireFile_wrapper .dt-scroll-body thead th,
            #grdQuestionnaireFile_wrapper .dataTables_scrollBody thead th {
                height: 0 !important;
                min-height: 0 !important;
                max-height: 0 !important;
                margin: 0 !important;
                padding-top: 0 !important;
                padding-right: 8px !important;
                padding-bottom: 0 !important;
                padding-left: 8px !important;
                border-top: 0 !important;
                border-right: 0 !important;
                border-bottom: 0 !important;
                border-left: 0 !important;
                font-size: 0 !important;
                line-height: 0 !important;
                visibility: hidden !important;
            }


                /*
 * DataTables 2 can place sizing content in
 * div.dt-column-header or a generic div.
 */
                #grdQuestionnaireFile_wrapper
                .dt-scroll-body thead th > div,
                #grdQuestionnaireFile_wrapper
                .dt-scroll-body thead th .dt-column-header,
                #grdQuestionnaireFile_wrapper
                .dataTables_scrollBody thead th > div {
                    height: 0 !important;
                    min-height: 0 !important;
                    max-height: 0 !important;
                    margin: 0 !important;
                    padding: 0 !important;
                    font-size: 0 !important;
                    line-height: 0 !important;
                    overflow: hidden !important;
                    visibility: hidden !important;
                }


/* ==========================================
   Historical Table Rows
   ========================================== */

#grdQuestionnaireFile {
    width: 100% !important;
    min-width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-collapse: collapse !important;
}


/*
 * Remove another possible line before row 1.
 */
#grdQuestionnaireFile_wrapper
.dt-scroll-body tbody tr:first-child td,
#grdQuestionnaireFile_wrapper
.dataTables_scrollBody tbody tr:first-child td {
    border-top: 0 !important;
}


/*
 * Keep regular row separators.
 */
#grdQuestionnaireFile_wrapper
.dt-scroll-body tbody td,
#grdQuestionnaireFile_wrapper
.dataTables_scrollBody tbody td {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #dee2e6 !important;
    border-left: 0 !important;
    vertical-align: middle !important;
}


/*
 * Avoid wrapping action buttons.
 */
#grdQuestionnaireFile .btn {
    white-space: nowrap;
}


/* ==========================================
   DataTables 2 Layout Overrides
   ========================================== */

#grdQuestionnaireFile_wrapper .dt-layout-row {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}


#grdQuestionnaireFile_wrapper .dt-layout-cell {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
}


/* ==========================================
   Responsive Height
   ========================================== */

@media (max-height: 760px) {

    #grdQuestionnaireFile_wrapper .dt-scroll-body,
    #grdQuestionnaireFile_wrapper .dataTables_scrollBody {
        height: 340px !important;
        min-height: 340px !important;
        max-height: 340px !important;
    }
}


@media (max-height: 620px) {

    #grdQuestionnaireFile_wrapper .dt-scroll-body,
    #grdQuestionnaireFile_wrapper .dataTables_scrollBody {
        height: 260px !important;
        min-height: 260px !important;
        max-height: 260px !important;
    }
}

/* -------------------------
Hide DataTables sizing header
without removing it
------------------------- */

#grdQuestionnaireFile_wrapper
.dataTables_scrollBody thead {
    height: 0 !important;
}


    #grdQuestionnaireFile_wrapper
    .dataTables_scrollBody thead tr {
        height: 0 !important;
    }


    #grdQuestionnaireFile_wrapper
    .dataTables_scrollBody thead th {
        height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }


        #grdQuestionnaireFile_wrapper
        .dataTables_scrollBody thead th > div {
            height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            line-height: 0 !important;
            overflow: hidden !important;
        }


/* No second line above first record */
#grdQuestionnaireFile_wrapper
.dataTables_scrollBody tbody tr:first-child td {
    border-top: 0 !important;
}


/* Normal row separators */
#grdQuestionnaireFile_wrapper
.dataTables_scrollBody tbody td {
    border-bottom: 1px solid #dee2e6;
}