/* ALL ORIGINAL STYLES PRESERVED - Taky's styles */
/*body {
    margin: 0px;
    padding: 0px;
    color: #333;
    background-color: #EFEBF7;
}

body, p, td {
    font-family: Tahoma, Arial, Helvetica, Sans-Serif;
    font-size: 13px;
}

h1 {
    font-size: 18px;
    color: #003063;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
}

html {
    overflow: auto;
}

#PageContent {
    padding: 10px 20px 10px 16px;
    margin: 0px;
    background-color: #EFEBF7;
}

#PageContent1, #PageContent2 {
    padding: 5px 1px 5px 7px;
}

.pageControls {
    padding: 5px 15px;
}

.pageNavigation {
    text-align: center;
    padding: 5px 0;
    margin: 3px;
}

.pageWarning {
    color: Red;
}

#pageHeader {
    margin: 0px;
    padding: 0px;
    background: #003063 url('../images/logo.gif') no-repeat;
    height: 49px;
}

#logoArea {
    color: white;
    font-family: Verdana, Arial, Helvetica, Sans-Serif;
    font-size: 13px;
    padding: 5px 0px 0px 65px;
    font-weight: bold;
}

    #logoArea .brandName {
        font-size: 11px;
        letter-spacing: 1px;
    }

    #logoArea .applicationName {
        font-size: 23px;
        letter-spacing: 0px;
    }

.condense {
    font-family: Tahoma, Arial, Helvetica, Sans-Serif;
    font-size: small;
    letter-spacing: 0px;
    margin-right: 7px;
    text-decoration: none;
}

a.condense:link {
    color: Navy;
    text-decoration: none;
}

a.condense:visited {
    color: Navy;
}

a.condense:hover {
    color: Navy;
    text-decoration: underline;
}

a.condense:active {
    color: Navy;
    text-decoration: underline;
}

button.condense {
    color: Navy;
    text-decoration: none;
}

    button.condense:hover {
        color: Navy;
        text-decoration: underline;
        cursor: pointer;
    }

.condenseDisabled {
    font-family: Tahoma, Arial, Helvetica, Sans-Serif;
    font-size: small;
    letter-spacing: 0px;
    margin-right: 7px;
    text-decoration: none;
    color: Gray;
}

a.condenseDisabled:link {
    color: Gray;
    text-decoration: none;
}

a.condenseDisabled:visited {
    color: Gray;
}

a.condenseDisabled:hover {
    color: Gray;
    text-decoration: none;
}

a.condenseDisabled:active {
    color: Gray;
    text-decoration: none;
}

#pageFooter {
    clear: both;
    padding: 4px 0px 4px 10px;
    font-size: 11px;
    font-weight: bold;
    color: #FFF;
    background-color: #003063;
    text-align: left;
}

a.navLink:link {
    color: #CFCFFF;
    text-decoration: underline;
    font-weight: bold;
}

a.navLink:visited {
    color: #CFCFFF;
    text-decoration: underline;
    font-weight: bold;
}

a.navLink:hover {
    color: #CFCFFF;
    text-decoration: underline;
    font-weight: bold;
}

a.navLink:active {
    color: #CFCFFF;
    text-decoration: underline;
    font-weight: bold;
}

.navButton {
    font-family: Tahoma, tahoma, arial;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    background-color: #E3E3EF;
    color: #404040;
    height: 26px;
    padding: 0px 5px 2px 5px;
    border: 1px solid #003366;
}

    .navButton:hover {
        color: #FFF;
        background-color: #003063;
    }

.NavButtonTH {
    background-color: #E3E3EF;
    font-family: Tahoma, tahoma, arial;
    letter-spacing: 0px;
    color: black;
    font-weight: bold;
    text-align: left;
    padding: 4px;
    border: 1px solid #003366;
}

.buttonActive {
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #31639C;
    font-size: 11px;
    background-color: #EEE;
    border: 1px solid #31639C;
    height: 1px;
    vertical-align: middle;
}

.primaryButton {
    text-decoration: none;
    padding: 4px 10px 4px 10px;
}

.defaultButton {
    text-decoration: none;
    background-color: #D8F9AC;
}

.topicLabel {
    font-size: medium;
    font-weight: bold;
}

.modalBackground {
    background-color: Gray;
    filter: alpha(opacity=70);
    opacity: 0.7;
}

.modalPopup {
    background-color: #ffffdd;
    border-width: 3px;
    border-style: solid;
    border-color: Gray;
    padding: 3px;
}

.dragPanel {
    cursor: move;
    background-color: #DDDDDD;
    border: solid 1px Gray;
    color: Black;
}

a.GroupPanelLink {
    font-weight: bold;
    letter-spacing: 0px;
    text-decoration: none;
}

    a.GroupPanelLink:link {
        color: Black;
    }

    a.GroupPanelLink:hover {
        color: Black;
    }

    a.GroupPanelLink:visited {
        color: Black;
    }

    a.GroupPanelLink:active {
        color: Black;
    }

.groupPanelCollapsedSearch {
    background-color: #F8FC8A;
}

.groupPanelCollapsedSubscriber {
    background-color: #AEF2B4;
}

.groupPanelCollapsed {
    background-color: #fffdf3;
}

.groupPanelExpanded {
    background-color: #D4D4D4;
}

#dataTable {
    color: white;
    font-weight: bold;
    margin: 0px 0px 0px 0px;
    border-spacing: 0px;
    border-collapse: collapse;
    border-left: solid 1px #003366;
    border-right: solid 1px #003366;
}

    #dataTable TH {
        background-color: #005AAE;
        color: white;
        font-size: 11px;
        font-weight: bold;
        text-align: center;
        padding: 4px;
        border: 1px solid #003366;
    }

    #dataTable TD {
        color: Black;
        font-weight: normal;
        padding: 4px;
        vertical-align: top;
        border-top: solid 1px #003366;
        border-bottom: solid 1px #003366;
        font-size: 11px;
    }

.detailTable {
    background-color: #293475;
    color: white;
    font-weight: bold;
    border-spacing: 1px;
    border-collapse: collapse;
    margin: 12px 0px 12px 0px;
    border: 1px solid #003366;
}

    .detailTable TH, .detailTable TD {
        padding: 4px;
        border: 1px solid #003366;
        font-size: 11px;
    }

.dataHeader {
    background-color: #005AAE;
    color: white;
    font-weight: bold;
    text-align: center;
}

a.dataHeader {
    color: white;
    text-decoration: none;
}

    a.dataHeader:link {
        color: white;
    }

    a.dataHeader:hover {
        color: white;
        text-decoration: underline;
    }

    a.dataHeader:visited {
        color: white;
    }

    a.dataHeader:active {
        color: white;
    }

.data {
    background-color: white;
    color: Black;
    font-weight: normal;
    vertical-align: top;
}

.dataSearch {
    background-color: #F8FC8A;
    color: Black;
    font-weight: normal;
    vertical-align: top;
}

.reviewed {
    background-color: #C0FFC0;
}

.updated {
    background-color: #FEFFD3;
}

.disabled {
    background-color: #dddddd;
}

.passwordBtns {
    display: none;
}

.collapsePanel {
    width: 99%;
    height: 0px;
    overflow: hidden;
}

.collapsePanelHeader {
    width: 99%;
    height: 20px;
    color: White;
    background-color: #5D7B9D;
    font-weight: bold;
    float: left;
    padding: 5px;
    cursor: pointer;
    vertical-align: middle;
}

a.GroupPanelLinkBlue {
    color: Navy;
    text-decoration: underline;
}

    a.GroupPanelLinkBlue:link {
        color: Navy;
    }

    a.GroupPanelLinkBlue:hover {
        color: Navy;
    }

    a.GroupPanelLinkBlue:visited {
        color: Navy;
    }

    a.GroupPanelLinkBlue:active {
        color: Navy;
    }

a.GroupPanelLinkStrikeout {
    font-weight: bold;
    letter-spacing: 0px;
    text-decoration: line-through;
    color: Red;
}

    a.GroupPanelLinkStrikeout:link {
        text-decoration: line-through;
        color: Red;
    }

    a.GroupPanelLinkStrikeout:hover {
        text-decoration: line-through;
        color: Red;
    }

    a.GroupPanelLinkStrikeout:visited {
        text-decoration: line-through;
        color: Red;
    }

    a.GroupPanelLinkStrikeout:active {
        text-decoration: line-through;
        color: Red;
    }

.floatLeft {
    float: left;
}

.floatRight {
    float: right;
}

.Hidden {
    display: none;
}

.help-popup-content {
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}

.help-popup-text {
    font-size: 14px;
    margin-bottom: 30px;
    white-space: nowrap;
}

.dx-popup-content:focus {
    outline: none !important;
}

.dx-popup-wrapper .dx-overlay-content {
    outline: none !important;
}*/

/* ===== MODERN STYLES ===== */

/* Base Reset and Typography */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
    background-color: #f8f9fa;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 12px 0;
    padding: 0;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 12px 0;
}

h3 {
    font-size: 20px;
    font-weight: 500;
    color: #212529;
    margin: 0 0 12px 0;
}

p {
    margin: 0 0 16px 0;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover {
        color: #0052a3;
        text-decoration: underline;
    }

/* Page Structure */
#PageContent {
    padding: 32px;
    background-color: transparent;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-header {
    background: linear-gradient(135deg, #0066cc 0%, #004494 100%);
    color: white;
    padding: 16px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-footer {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 24px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    margin-top: 48px;
}

/* Cards and Containers */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid #e9ecef;
}

.card-body {
    padding: 24px;
}

.content-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 24px;
    overflow: hidden;
}

/* Navigation */
.navbar {
    background-color: #ffffff;
    border-bottom: 1.5px solid #e9ecef;
    box-shadow: none;
    padding: 0;
}

.navbar-brand {
    font-weight: 600;
    color: #0066cc;
    font-size: 20px;
}

.nav-link {
    color: #495057;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease;
    position: relative;
}

    .nav-link:hover:not(.disabled) {
        color: #0066cc;
        background-color: rgba(0,102,204,0.05);
        border-radius: 4px;
    }

    .nav-link.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    }

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

    .btn-primary:hover {
        background-color: #0052a3;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,102,204,0.3);
    }

.btn-success {
    background-color: #28a745;
    color: white;
}

    .btn-success:hover {
        background-color: #218838;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(40,167,69,0.3);
    }

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background-color: #5a6268;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(108,117,125,0.3);
    }

.btn-danger {
    background-color: #dc3545;
    color: white;
}

    .btn-danger:hover {
        background-color: #c82333;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(220,53,69,0.3);
    }

/* DevExtreme Customizations */
.dx-widget {
    font-family: inherit;
}

.dx-textbox {
    border-radius: 6px;
}

    .dx-textbox .dx-texteditor-input {
        padding: 8px 12px;
        font-size: 14px;
    }

.dx-button {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dx-button-mode-contained.dx-button-default {
    background-color: #0066cc;
}

    .dx-button-mode-contained.dx-button-default:hover {
        background-color: #0052a3;
    }

.dx-button-mode-contained.dx-button-success {
    background-color: #28a745;
}

    .dx-button-mode-contained.dx-button-success:hover {
        background-color: #218838;
    }

.dx-button-mode-contained.dx-button-danger {
    background-color: #dc3545;
}

    .dx-button-mode-contained.dx-button-danger:hover {
        background-color: #c82333;
    }

/* Data Grid */
.dx-datagrid {
    border: none;
    font-family: inherit;
}

.dx-datagrid-headers {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.dx-datagrid-header-panel {
    background-color: transparent;
    border: none;
}

.dx-header-row td {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #6c757d;
    padding: 16px 12px;
}

.dx-datagrid-rowsview .dx-row {
    transition: background-color 0.2s ease;
}

    .dx-datagrid-rowsview .dx-row:hover {
        background-color: #f8f9fa;
    }

.dx-datagrid-rowsview td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}

.dx-datagrid-nodata {
    padding: 60px 24px;
    color: #6c757d;
    font-size: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Badges and Status */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.badge-primary {
    background-color: #e7f3ff;
    color: #004494;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background-color: #e9ecef;
    color: #6c757d;
}

/* Status specific */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.status-success {
    background-color: #7cfc0040;
    color: #1d8504;
}

.status-success:hover {
    background-color: #7cfc0070;
    text-decoration: none;
}

.status-show {
    background-color: #fff3cd;
    color: #856404;
}

.status-show:hover {
    background-color: #ffe69c;
    text-decoration: none;
}

.status-none {
    background-color: #e9ecef;
    color: #6c757d;
}

.link-navy {
    background-color: #d6e6f2;
    color: #003f6b;
    text-decoration: underline;
}

.link-navy:hover {
    background-color: #aacbe6;
    color: #002f54;
    cursor: pointer;
    text-decoration: underline;
}

.link-gray {
    background-color: #e2e3e5;
    color: #383d41;
    text-decoration: underline;
}

.link-gray:hover {
    background-color: #cfcfcf;
    color: #2b2e31;
    cursor: pointer;
    text-decoration: underline;
}

/* Alerts and Messages */
.alert {
    padding: 12px 20px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 6px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Utilities */
.text-muted {
    color: #6c757d;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.pt-0 {
    padding-top: 0;
}

.pt-1 {
    padding-top: 8px;
}

.pt-2 {
    padding-top: 16px;
}

.pt-3 {
    padding-top: 24px;
}

.pt-4 {
    padding-top: 32px;
}

.pb-0 {
    padding-bottom: 0;
}

.pb-1 {
    padding-bottom: 8px;
}

.pb-2 {
    padding-bottom: 16px;
}

.pb-3 {
    padding-bottom: 24px;
}

.pb-4 {
    padding-bottom: 32px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slideIn {
    animation: slideIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .page-container {
        padding: 0 16px;
    }

    #PageContent {
        padding: 16px;
    }

    .card {
        margin-bottom: 16px;
    }

    .card-header,
    .card-body {
        padding: 16px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Help Popup Specific */
.help-popup-content {
    text-align: center;
    padding: 20px;

}

.help-popup-text {
    font-size: 16px;
    margin-bottom: 30px;
    white-space: nowrap;
    color: #495057;
}

.dx-popup-content:focus {
    outline: none;
}

.dx-popup-wrapper .dx-overlay-content {
    outline: none;
}

/* Page Specific */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.form-container {
    max-width: 1400px;
    margin: 0 auto;
}

.grid-container {
    padding: 0 24px 24px 24px;
}

.pageInstructions {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.history-link {
    color: #6c757d;
    text-decoration: underline;
    font-weight: 400;
}

    .history-link:hover {
        color: #0066cc;
        text-decoration: underline;
    }
/* Remove blue border highlight from DevExtreme popups (Help popup and others) */
/* Remove blue border highlight from only the Help popup */
#helpPopup:focus,
#helpPopup .dx-popup-content:focus,
#helpPopup .dx-overlay-content:focus,
#helpPopup .dx-popup-wrapper:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}
.white-bg-row {
    background-color: #fff !important;
}


