.validation-summary-valid {
    display: none;
}

body {
    padding-top: 110px;
    /* padding-bottom: 20px; */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
}

/* Skip Navigation Link */
.skipnav {
    position: absolute;
    top: 125px;
    left: 15px;
    color: #0C3D92;
    text-decoration: underline;
    z-index: 1000;
    font-size: 0.9em;
}

.skipnav:hover,
.skipnav:focus {
    color: #0D4377;
    text-decoration: underline;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
    font-size: 14px;
}


/**
 * Custom HCBS styles below.
 */

/**
////////////////////////////////////
colors used in HCBS
cms blue:           #0C3D92 ?
hcbs blue:          #105191
hcbs blue 2:        #006699
dark purple text:   #18184E
dark purple back:   #7D35B5
purple:             #50187C
dark blue:          #092D68
dark blue 2:        #0D4377
50% blue:           #5B9DDD
medium blue 2:      #CFE7FF
light blue:         --          rgba(238, 247, 240, 1)
dark gold:          #FFCC00     rgba(255, 204, 0, 1)
light gold:         #FFE377     rgba(255, 227, 119, 1)
20% gold:           #FDF3D1     rgba(253, 243, 209, 1)
////////////////////////////////////
*/

h1, h2 {
    color: #0C3D92;
    border-bottom: solid thin #eee;
}
h3 { margin-bottom: 0; } 

table.table-striped th { /* font-size: 1.4em; font-weight:400; */ }
table.table-striped td { border-right: solid thin #ccc; border-bottom: solid thin #ccc; border-left: solid thin #ccc;}
table.table-striped ul { -webkit-padding-start: 1em; padding-left:1em; }

.btn-default {
    color: #fff;
    background-color: #0C3D92;
    border-color: #333;
}
.btn-default:hover,
.btn-default:focus {
    color: #fff;
    background-color: #0D4377;
    border-color: #333;
}

/* main content */
.body-content {padding: 2em 1em;}

.panel-default > .panel-heading {
    background-color: #FDF3D1; /* #FFE377 */
}
#accordion .panel-collapse {  margin: 1em;
}
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #FDF3D1 !important;
  }

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #FDF3D1 !important;
}
.nav > li > a:hover, .nav > li > a:focus {
    background-color: #FDF3D1;
}

/* navbar - Bootstrap 5 compatible */
.navbar {
    background-color: #0C3D92 !important;
    border-color: #0D4377;
    min-height: 80px;
    padding-top: 10px;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5em;
    color: #FFF !important;
    text-decoration: none;
}

.brand-logo {
    background-image: url(CMSlogo.png); 
    background-position: center; 
    background-repeat: no-repeat; 
    background-size: 85px auto;
    width: 85px;
    height: 55px;
    margin-bottom: 0px;
}

.brand-text {
    font-size: 1.1em;
    color: #FFF !important;
    text-align: center;
}

.brand-text a {
    color: #FFF !important;
    text-decoration: none;
}

.brand-text a:hover,
.brand-text a:focus {
    color: #FDF3D1 !important;
    text-decoration: none;
}

/* Fix navbar navigation links */
.navbar-nav .nav-link {
    color: #FFF !important;
    padding: 0.5rem 1rem;
    font-size: 1.2em;
    text-decoration: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #FDF3D1 !important;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: underline;
}


.navbar-nav {
    margin: 0;
    align-items: center;
}

.ms-auto {
    margin-top: 0;
    font-size: 0.9em;
}

.navbar-nav.ms-auto {
    margin-left: auto !important;
    align-items: center;
}


/* footers */

footer {
    margin-top: 45px;
    padding-top: 35px;
    padding-bottom: 36px;
    border-top: 1px solid #E5E5E5;
}

.body-content footer {border-top: none;}

body > footer {
    background-color: #0C3D92;
    border-color: #0D4377;
    color: #FFF;
}

body > footer > p > a {
    color: #d9d9d9;
}

body > footer > p > a:hover, body > footer > p > a:focus {
    color: #FDF3D1;
}

/* single page overrides */

/* Bootstrap 5 form-horizontal compatibility */
.form-horizontal .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-horizontal .control-label {
    flex: 0 0 auto;
    width: 150px;
    margin-right: 15px;
    margin-bottom: 0;
}

.form-horizontal .form-control {
    flex: 1;
}

/* Library search form spacing */
.form-inline .form-group {
    margin-bottom: 15px;
    margin-right: 15px;
}

.form-inline .form-group label {
    margin-right: 8px;
}

.form-inline .btn {
    margin-left: 10px;
    margin-right: 5px;
}

/* Plan status filter form - horizontal layout */
.form-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.form-inline .form-group {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.form-inline .control-label {
    margin-right: 8px;
    margin-bottom: 0;
    white-space: nowrap;
}

.form-inline .form-control {
    display: inline-block;
    width: auto;
    vertical-align: middle;
}

/* Bootstrap 3 Glyphicon font face - ensure font is loaded */
@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('../fonts/glyphicons-halflings-regular.eot');
    src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'),
         url('../fonts/glyphicons-halflings-regular.woff') format('woff'),
         url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),
         url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}

/* Restore original Bootstrap 3 Glyphicon functionality */
.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide screen reader text for cleaner visual appearance */
/*.glyphicon .sr-only {
    display: none;
}
*/
.glyphicon-edit:before {
    content: "\e065";
}

.glyphicon-trash:before {
    content: "\e020";
}

.glyphicon-list:before {
    content: "\e056";
}

.glyphicon-transfer:before {
    content: "\e178";
}

.glyphicon-plus:before {
    content: "\002b";
}

.glyphicon-download:before {
    content: "\e026";
}

.glyphicon-eye-open:before {
    content: "\e105";
}

.glyphicon-remove:before {
    content: "\e014";
}

.glyphicon-folder-close:before {
    content: "\e117";
}

.glyphicon-file:before {
    content: "\e022";
}

.glyphicon-dashboard:before {
    content: "\e141";
}

.glyphicon-book:before {
    content: "\e043";
}

.glyphicon-arrow-right:before {
    content: "\e158";
}

/* Global link styles - hide underlines until hover */
a {
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* Button font size */
.btn,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    font-size: 14px;
}

/* Form control font sizes */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
select {
    font-size: 14px;
}

/* Text area font size */
textarea,
.form-control[rows] {
    font-size: 14px;
}

/* Login and Account form spacing improvements */
.form-group {
    margin-bottom: 20px;
}

.form-horizontal .form-group {
    margin-bottom: 25px;
}

/* Login page specific spacing */
#loginForm h3 {
    margin-bottom: 20px;
}

#loginForm .form-group:last-of-type {
    margin-bottom: 30px;
}

/* Account pages spacing */
.account-page .form-group {
    margin-bottom: 25px;
}

/* Forgot password link spacing */
#loginForm p {
    margin-top: 15px;
    margin-bottom: 10px;
}

/* State Information page - Transition Plan Status horizontal layout */
.dl-horizontal dt {
    float: left;
    width: 35%;
    clear: left;
    text-align: right;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    margin-bottom: 5px;
    line-height: 1.4;
}

.dl-horizontal dd {
    margin-left: 37%;
    margin-bottom: 5px;
}

/* State Information accordion tables centering */
table[data-tablename="State Submissions"] th,
table[data-tablename="State Submissions"] td,
table[data-tablename="Federal Partner Submissions"] th,
table[data-tablename="Federal Partner Submissions"] td,
table[data-tablename="Calls"] th,
table[data-tablename="Calls"] td,
table[data-tablename="Feedback Documents"] th,
table[data-tablename="Feedback Documents"] td,
table[data-tablename="Communications"] th,
table[data-tablename="Communications"] td {
    text-align: center;
}

/* DataTables info text styling - restore original size */
.dataTables_info {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}

/* Hide all DataTable captions completely */
caption {
    display: none !important;
}

table caption {
    display: none !important;
}

.dataTables_wrapper caption {
    display: none !important;
}

/* Hide aria-describedby attributes that contain sort text */
[aria-describedby*="Table"] {
    aria-describedby: none !important;
}

/* Info sign icon using glyphicon font */
.glyphicon-info-sign:before {
    content: "\e086";
}

.glyphicon-info-sign {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    display: inline-block;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.glyphicon-info-sign:hover {
    background-color: #e9ecef;
    text-decoration: none;
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}

/* Trash icon using glyphicon font */
.glyphicon-trash:before {
    content: "\e020";
}

.glyphicon-trash {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    display: inline-block;
    text-decoration: none;
    margin-left: 8px;
}

.glyphicon-trash:hover {
    text-decoration: none;
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}

/* Heightened Scrutiny and related pages table centering */
#HSTable th,
#HSTable td,
#HSActivitiesTable th,
#HSActivitiesTable td,
#HSFeedbackDocumentsTable th,
#HSFeedbackDocumentsTable td,
#CorrectiveActionPlanMilestonesTable th,
#CorrectiveActionPlanMilestonesTable td,
#TechnicalAssistanceTable th,
#TechnicalAssistanceTable td,
#WebsiteResourcesTable th,
#WebsiteResourcesTable td,
#LibraryTable th,
#LibraryTable td,
#itemsTable th,
#itemsTable td {
    text-align: center;
}

/* Additional DataTable centering for all Heightened Scrutiny pages */
#HSTable.dataTable th,
#HSTable.dataTable td,
#HSActivitiesTable.dataTable th,
#HSActivitiesTable.dataTable td,
#HSFeedbackDocumentsTable.dataTable th,
#HSFeedbackDocumentsTable.dataTable td,
#CorrectiveActionPlanMilestonesTable.dataTable th,
#CorrectiveActionPlanMilestonesTable.dataTable td,
#TechnicalAssistanceTable.dataTable th,
#TechnicalAssistanceTable.dataTable td,
#WebsiteResourcesTable.dataTable th,
#WebsiteResourcesTable.dataTable td {
    text-align: center !important;
}

/* Description tooltip styling */
.description-tooltip {
    margin-left: 5px;
    cursor: pointer;
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}

/* Remove custom arrow styling - use original glyphicon */

/* Custom tooltip styling */
.tooltip {
    max-width: 400px;
}

.tooltip-inner {
    max-width: 400px;
    text-align: left;
    background-color: white !important;
    color: #333;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 1 !important;
}

.tooltip {
    opacity: 1 !important;
}

/* Restore original glyphicon functionality - remove custom replacements for action icons */

/* State Documents table and other general tables - fix alignment */
#docsTable {
    table-layout: fixed;
    width: 100%;
}

#docsTable th,
#docsTable td {
    padding: 8px;
    text-align: center;
    vertical-align: top;
    word-wrap: break-word;
}

#docsTable th:first-child,
#docsTable td:first-child {
    width: 15%;
}

#docsTable th:nth-child(2),
#docsTable td:nth-child(2) {
    width: 25%;
}

#docsTable th:nth-child(3),
#docsTable td:nth-child(3) {
    width: 35%;
}

#docsTable th:nth-child(4),
#docsTable td:nth-child(4) {
    width: 25%;
}

/* Center all DataTable elements */
.dataTables_wrapper table th,
.dataTables_wrapper table td {
    text-align: center !important;
}

/* Specific table centering for State Information tables */
table.dataTable th,
table.dataTable td {
    text-align: center !important;
}

/* Remove DataTable info hiding - restore normal display */

/* General table alignment fix for tables without specific IDs */
.table:not(#milestoneTable):not(#StatusTable):not(#statusTable):not(#comTable) {
    table-layout: auto;
}

.table:not(#milestoneTable):not(#StatusTable):not(#statusTable):not(#comTable) th,
.table:not(#milestoneTable):not(#StatusTable):not(#statusTable):not(#comTable) td {
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

/* Apply left alignment to all tables */
.table th,
.table td {
    text-align: left;
}

/* Specific tables that need center alignment for certain columns */
#milestoneTable th,
#milestoneTable td {
    text-align: center;
}

#milestoneTable th:nth-child(9),
#milestoneTable td:nth-child(9) {
    text-align: center;
}

#StatusTable th,
#StatusTable td,
#statusTable th,
#statusTable td {
    text-align: left;
}

/* State Documents form layout - side by side forms on the right */
.col-md-6[style*="float:right"] {
    float: right !important;
    width: 60%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0;
}

.col-md-6[style*="float:right"] form {
    width: 49%;
    display: inline-block;
    vertical-align: top;
    margin: 0;
    padding: 0;
}

.col-md-6 .form-inline {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.col-md-6 .form-inline > div {
    margin-bottom: 10px;
    width: 100%;
}

.col-md-6 .form-inline label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.col-md-6 .form-inline input,
.col-md-6 .form-inline select {
    width: 100%;
    max-width: 200px;
}

/* Bootstrap 5 Navigation Tabs - Fix for StateInformation */
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
}

.nav-tabs li {
    margin-bottom: -1px;
    display: list-item;
}

.nav-tabs li a {
    border: 1px solid transparent;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    padding: 0.5rem 1rem;
    color: #0C3D92;
    text-decoration: none;
    display: block;
}

.nav-tabs li a:hover,
.nav-tabs li a:focus {
    border-color: #e9ecef #e9ecef #dee2e6;
    background-color: #FDF3D1;
    text-decoration: none;
}

.nav-tabs li.active a {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Bootstrap 5 Accordion compatibility - Fixed for proper functionality */
.panel-group {
    margin-bottom: 20px;
}

.panel {
    margin-bottom: 0;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.panel + .panel {
    margin-top: -1px;
}

/* Minimize white space when panels are closed */
.panel-collapse.collapse:not(.in):not(.show) {
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden;
}

.panel-heading {
    padding: 0.4rem 1.25rem;
    margin-bottom: 0;
    background-color: #FDF3D1;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.375rem - 1px);
    border-top-right-radius: calc(0.375rem - 1px);
    cursor: pointer;
}

.panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1rem;
    color: inherit;
}

.panel-title > a {
    color: #0C3D92;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.panel-title > a:hover,
.panel-title > a:focus {
    color: #0D4377;
    text-decoration: none;
}

.panel-collapse {
    padding: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.panel-collapse.collapse {
    height: 0;
    display: block;
}

.panel-collapse.collapse.in {
    height: auto;
    display: block;
    padding: 0.75rem;
}

.panel-collapse.collapse.show {
    height: auto;
    display: block;
    padding: 0.75rem;
}

.panel-body {
    padding: 0;
}

/* set widths on inputs so they fill column. Will need to check how this responds in MS browsers. */
select#cmbNewFolder,
input#txtNewFolderName {
    width: 100%;
}

/* Actions column spacing fix - milestone table only */
#milestoneTable {
    table-layout: fixed;
    width: 100%;
}

#milestoneTable th,
#milestoneTable td {
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    word-wrap: break-word;
}

#milestoneTable th:nth-child(8),
#milestoneTable td:nth-child(8) {
    width: 120px;
}

#milestoneTable th:nth-child(9),
#milestoneTable td:nth-child(9) {
    width: 160px;
    white-space: normal;
    text-align: center;
    line-height: 1.8;
    padding: 12px 10px;
}

#milestoneTable td:nth-child(9) .glyphicon {
    margin-right: 8px;
    margin-bottom: 4px;
    display: inline-block;
    font-size: 14px;
    width: auto;
    height: auto;
    vertical-align: middle;
    text-decoration: none;
}

/* Pending Review table - specific targeting to avoid affecting other tables */
#milestoneTable.table:has(th:nth-child(12)) {
    table-layout: fixed;
    width: 100%;
}

#milestoneTable.table:has(th:nth-child(12)) th,
#milestoneTable.table:has(th:nth-child(12)) td {
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    word-wrap: break-word;
}

/* Pending Review table actions column - 12th column */
#milestoneTable.table:has(th:nth-child(12)) th:nth-child(12),
#milestoneTable.table:has(th:nth-child(12)) td:nth-child(12) {
    width: 200px;
    white-space: normal;
    text-align: left;
    line-height: 1.8;
    padding: 12px 15px;
}

#milestoneTable.table:has(th:nth-child(12)) td:nth-child(12) .glyphicon {
    margin-right: 8px;
    margin-bottom: 4px;
    display: inline-block;
    font-size: 14px;
    width: auto;
    height: auto;
    vertical-align: middle;
    text-decoration: none;
}

/* StateInformation tables actions column spacing */
#comTable td:last-child {
    white-space: normal;
    min-width: 120px;
    padding: 10px;
    text-align: left;
}

#comTable td:last-child .glyphicon {
    margin-right: 15px;
    margin-bottom: 5px;
    display: inline-block;
    padding: 3px;
}

/* General fix for tables in StateInformation accordions */
.panel-collapse table td:last-child {
    white-space: normal;
    min-width: 120px;
    padding: 10px;
    text-align: left;
}

.panel-collapse table td:last-child .glyphicon {
    margin-right: 15px;
    margin-bottom: 5px;
    display: inline-block;
    padding: 3px;
    line-height: 1.5;
}

table.scrollable tbody {
    width: 102%;
    overflow-y: scroll;
    max-height: 500px;
    display: block;
}

table.scrollable thead {
    width: 100%;
    display: block;
}
