/* =====================================================
   CRMS Modern Theme - StyleSheet.css
   Tab, ComboBox, Grid, Modal, Button styles
   ===================================================== */

body { }

/* ===== AJAX COMBOBOX ===== */
.WindowsStyle .ajax__combobox_inputcontainer .ajax__combobox_textboxcontainer input {
    margin: 0;
    border: 1px solid #a7f3d0 !important;
    border-right: 0 none;
    padding: 2px 0 0 6px;
    height: 22px;
    font-size: 12px;
    font-family: 'Inter', Arial, sans-serif;
    border-radius: 4px 0 0 4px;
}
.WindowsStyle .ajax__combobox_inputcontainer .ajax__combobox_buttoncontainer button {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #16a34a, #166534);
    border: 1px solid #166534;
    height: 24px;
    width: 22px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.WindowsStyle .ajax__combobox_itemlist {
    border-color: #a7f3d0;
    border-style: solid;
    font-size: 12px;
    font-family: 'Inter', Arial, sans-serif;
    background: #ffffff;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,.10);
}

/* ===== PARENT TABS ===== */
.my_ajax__tab_xp .ajax__tab_header {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    background: linear-gradient(90deg, #14532d, #166534);
    color: #ffffff;
    padding: 4px 0;
}
.Parent_Tabs .ajax__tab_body {
    border: 1px solid #a7f3d0;
    border-top: 0;
    background-color: #ffffff;
    padding: 8px;
}

/* ===== MAIN TABS ===== */
.Tab .ajax__tab_header {
    color: #166534;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    background-color: #f0fdf4;
    margin-left: 0;
}
.Tab .ajax__tab_body {
    border: 1px solid #a7f3d0;
    padding-top: 0;
    background: #ffffff;
}
/* Active tab */
.Tab .ajax__tab_active .ajax__tab_tab {
    color: #ffffff;
    background: linear-gradient(180deg, #16a34a, #166534);
    height: 26px;
    border-radius: 6px 6px 0 0;
}
.Tab .ajax__tab_active .ajax__tab_inner {
    color: #ffffff;
    padding-left: 12px;
}
.Tab .ajax__tab_active .ajax__tab_outer {
    color: #ffffff;
    padding-right: 8px;
}
/* Hover tab */
.Tab .ajax__tab_hover .ajax__tab_tab {
    color: #166534;
    background: #dcfce7;
    height: 26px;
    border-radius: 6px 6px 0 0;
}
.Tab .ajax__tab_hover .ajax__tab_inner {
    color: #166534;
    padding-left: 12px;
}
.Tab .ajax__tab_hover .ajax__tab_outer {
    color: #166534;
    padding-right: 8px;
}
/* Inactive tab */
.Tab .ajax__tab_tab {
    color: #6b7280;
    background: #f9fafb;
    height: 26px;
    border-radius: 6px 6px 0 0;
    border: 1px solid #e5e7eb;
    border-bottom: none;
}
.Tab .ajax__tab_inner {
    color: #6b7280;
    padding-left: 12px;
}
.Tab .ajax__tab_outer {
    color: #6b7280;
    padding-right: 8px;
    margin-right: 3px;
}

/* ===== TOP HEADER NAV LINKS ===== */
#header ul {
    z-index: 999999;
    position: absolute;
    margin: 0; padding: 0;
    list-style: none;
    right: 0;
    bottom: 6px !important;
    font: 600 12px 'Inter', Arial, sans-serif;
}
#header li  { display: inline; margin: 0; padding: 0; }
#header a {
    float: left;
    margin: 0;
    padding: 0 0 0 4px;
    text-decoration: none;
}
#header a span {
    float: left;
    display: block;
    padding: 5px 14px 3px 8px;
    color: #ffffff;
    background: rgba(255,255,255,.15);
    border-radius: 4px;
    transition: background .2s;
}
#header a span { float: none; }
#header a:hover span, #header #current a span {
    color: #ffffff;
    background: rgba(255,255,255,.3);
}

/* ===== MODAL ===== */
.modalBackground {
    background-color: rgba(0,0,0,0.55);
    filter: alpha(opacity=55);
    opacity: 0.55;
}

/* ===== POPUP MENU ===== */
.popupMenu {
    position: absolute;
    visibility: hidden;
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 4px 0;
}
.popupHover { background-color: #ecfdf5; }

/* ===== DRAG ===== */
.dragHandle {
    width: 6px;
    height: 12px;
    background: linear-gradient(180deg, #16a34a, #166534);
    cursor: move;
    border-radius: 3px;
}

.reorderListDemo li {
    list-style: none;
    margin: 3px;
    background: #ecfdf5;
    border-radius: 4px;
}
.reorderListDemo li a {
    color: #166534 !important;
    font-weight: 600;
    border: 1px solid #a7f3d0;
    width: 100%;
    border-radius: 4px;
    padding: 3px 8px;
    display: block;
}
.reorderCue {
    border: 2px dashed #16a34a;
    width: 100%;
    height: 26px;
    border-radius: 4px;
    background: #f0fdf4;
}

.itemArea {
    margin-left: 6px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    text-align: left;
}

.callbackStyle { border: 1px solid #a7f3d0; width: 100%; border-radius: 4px; }
.callbackStyle table {
    background: linear-gradient(90deg, #14532d, #166534);
    color: #ffffff;
    width: 100%;
}

.dragVisualContainer li {
    list-style: none;
    background: linear-gradient(90deg, #166534, #16a34a);
    color: #ffffff;
    border-radius: 4px;
    margin: 2px;
}

.label {
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
    display: block;
}

.alternate    { border: 1px solid #d1fae5; width: 100%; text-align: left; }
.nonalternate { border: 1px solid #d1fae5; width: 100%; }

/* ===== DATA GRID ===== */
mydatagrid, .mydatagrid {
    width: 100%;
    border: 1px solid #d1fae5;
    min-width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.header {
    background: linear-gradient(90deg, #14532d, #166534);
    font-family: 'Inter', Arial, sans-serif;
    color: #ffffff;
    height: 30px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 0 8px;
    letter-spacing: 0.3px;
}

.rows {
    background-color: #ffffff;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    color: #1f2937;
    min-height: 26px;
    text-align: left;
    transition: background .15s;
}
.rows:hover { background-color: #dcfce7; color: #14532d; }

.mydatagrid a {
    background-color: transparent;
    padding: 4px 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
}
.mydatagrid a:hover { background-color: rgba(255,255,255,.25); color: #ffffff; }
.mydatagrid span {
    padding: 4px 8px;
    background-color: #ca8a04;
    color: #ffffff;
    border-radius: 4px;
    font-weight: 700;
}

.pager {
    background: linear-gradient(90deg, #166534, #16a34a);
    font-family: 'Inter', Arial, sans-serif;
    color: #ffffff;
    height: 32px;
    text-align: left;
    padding: 0 8px;
}

.mydatagrid td { padding: 5px 8px; border-bottom: 1px solid #f0fdf4; }
.mydatagrid th { padding: 6px 8px; }

/* Alternating row stripes */
.mydatagrid tr:nth-child(even) td { background-color: #f0fdf4; }
.mydatagrid tr:nth-child(even):hover td { background-color: #dcfce7; }

/* ===== MAIN NAV MENU ===== */
.Menu { }
.Menu ul {
    background: #14532d;
    margin: 0; padding: 0; list-style: none;
}
.Menu ul li {
    background: #14532d;
    text-align: left; width: auto;
    display: inline-block; position: relative;
}
.Menu ul li a {
    color: #ffffff;
    padding: 5px 12px;
    padding-left: 12px !important;
    border: none;
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    font-family: 'Inter', 'Arial Black', Arial, sans-serif;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.Menu ul li a:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
    background-image: none !important;
    background-color: #16a34a !important;
}
.Menu ul li ul {
    position: absolute; top: 100%; left: 0;
    background: #ffffff;
    border: 1px solid #a7f3d0;
    border-radius: 0 6px 6px 6px;
    box-shadow: 0 8px 24px rgba(20,83,45,0.18);
    z-index: 9999; min-width: 220px;
}
.Menu ul li ul li { display: block; background: #ffffff; border-bottom: 1px solid #f0fdf4; }
.Menu ul li ul li a { color: #14532d; padding: 7px 14px; font-weight: 500; font-size: 12px; border: none; }
.Menu ul li ul li a:hover { background: #dcfce7 !important; color: #14532d !important; }


/* ===== App-specific styles preserved (MainApplication) ===== */


/* ===== MainApplication-specific (rethemed to CRMS green) ===== */
.cls {
    border: 1.5px solid #14532d;
    border-radius: 50px;
    box-shadow: 0 6px 14px -2px rgba(13,59,6,.45);
    color: #0d3b06;
    display: inline-block;
    font-weight: 700;
    line-height: 70px;
    margin: 10px;
    height: 70px;
    width: 200px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    cursor: pointer;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    transition-duration: 0.4s;
    -webkit-transition-duration: 0.4s; /* Safari */
}

.cls:hover {
    background: linear-gradient(135deg, #16a34a, #166534);
    color: #ffffff;
}

.MasterButton {
    text-shadow: none;
    color: #0d3b06;
    position: relative;
    border: 1.5px solid #14532d;
    box-shadow: 0 4px 10px -2px rgba(13,59,6,.45);
    border-radius: 50px;
    font-size: 18px;
    font-family: 'Inter', 'Lucida Console', Arial, sans-serif;
    padding: 0.8em 1.8em;
    display: block;
    width: 280px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    transition-duration: 1.4s;
    -webkit-transition-duration: 1.4s; /* Safari */
}

    .MasterButton:hover {
        transition-duration: 0.5s;
        color: #ffffff;
        background: linear-gradient(135deg, #16a34a, #166534);
    }

    .MasterButton:after {
        content: "";
        display: block;
        position: absolute;
        border-radius: 4em;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: all 0.5s;
        box-shadow: 0 0 10px 40px white;
    }

    .MasterButton:active:after {
        box-shadow: 0 0 0 0 white;
        position: absolute;
        border-radius: 4em;
        left: 0;
        top: 0;
        opacity: 1;
        transition: 0s;
    }

    .MasterButton:active {
        top: 1px;
    }

.RowHeight {
    height: 80px;
}
