/*
 * Password Management Servlets (PWM)
 * http://www.pwm-project.org
 *
 * Copyright (c) 2006-2009 Novell, Inc.
 * Copyright (c) 2009-2022 The PWM Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

html, body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    height: 100%;
    margin: 0;
    width: 100%;
    min-height: inherit;
    min-width: 300px;
}

/* main content section, all content should be inside a centerbody div */
#centerbody {
    width: auto;
    min-width: inherit;
    padding: 15px;
}

#centerbody.wide {
    width: 100%;
    min-width: 100%;
}

#header-center {
    width: 100%;
    margin: 0;
    position: relative;
    padding: 0;
}

#header-page {
    font-size: 0;
    padding-top: 25px;
}

#header-page::after {
    content: "Student Password Management";
    font-size: 13px !important; /* match original */
    color: inherit;
}

#header-title {
    width: auto;
    padding-left: 10px;
    font-family: Trebuchet MS, sans-serif;
    font-size: 11px !important;
    color: #FFFFFF;
}

.inputfield {
    width: auto;
    margin: auto;
    height: auto;
}

.peoplesearch-input-username {
    width: 200px;
}

.dialogBody {
    width: 100%;
    max-width: 100%;
}

progress:not([value]) {
    width: 90%;
    max-width: 90%;
    height: 20px;
}

progress .wait {
    color: purple;
    width: 70%;
}

.menubutton {
    max-width: 100px;
    width: auto;
    padding: 2px 7px;
    display: block;
    border-radius: 2px;
    border: 5px;
    margin: 0 5px;
}

.menubutton_key {
    border: 0;
    width: auto;
    table-layout: fixed;
}

.dialogBody.orgChart { width: 100%; max-width: 100%; }

.peoplesearch-wrapper #centerbody.wide,
.helpdesk-wrapper #centerbody.wide {
    bottom: 80px;
    top: 200px !important;
    height: auto !important;
    left: 0;
    margin: auto;
    min-width: auto;
    position: absolute;
    right: 0px !important; /* Maximized to expand view up to the viewport edges */
    top: 80px;
    width: auto;
}

#peoplesearch-searchResultsGrid {
    bottom: 0px;
    height: auto;
    left: 0px;
    position: absolute;
    right: 0px;
    top: 45px;
    cursor: pointer;
}

/* ==========================================================================
   CUSTOM HEADER NAVIGATION ADJUSTMENTS
   ========================================================================== */
#header-center-right {
    height: 30px !important;
    padding: 0 !important;
    position: absolute !important;
    right: 10px !important;
    top: 20px !important;
    width: 45% !important;
}

#header-center-left {
    float: left !important;
    max-width: 50% !important;
}

/* ==========================================================================
   HELP DESK DASHBOARD SEARCH ROWS INLINE PACKING
   ========================================================================== */
app-helpdesk header div.d-flex.justify-content-between {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Prevents the right layout options from breaking lines */
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 4px !important;
}

app-helpdesk header div.d-flex.gap-3 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important; 
    flex: 1 !important;
    min-width: 0 !important;
}

app-helpdesk header div.fs-4.fw-bold {
    display: none !important; /* Removes label to expand viewport room for search box inputs */
}

app-helpdesk .iam-search {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
}

app-helpdesk .iam-search input.iam-input {
    width: 100% !important;
    height: 32px !important;
    font-size: 13px !important;
    padding: 4px 24px 4px 28px !important;
}

app-helpdesk header div.d-flex.ng-star-inserted {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 2px !important;
    flex-shrink: 0 !important;
}

app-helpdesk header button.iam-btn {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   HELP DESK DETAIL VIEW FLEX-ORDER MAP (ACTION PANEL BELOW CARD)
   ========================================================================== */

/* Configure main dynamic sub-view selector space as a flex container */
app-helpdesk-detail > div.container-fluid.help-desk-scroll {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

/* POSITION 1: User Identity Card (Top Block) */
app-helpdesk-detail div.card {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    background-color: #eef2f2 !important;
    border-radius: 4px !important;
    padding: 8px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
    display: block !important;
}

app-helpdesk-detail div.card .d-flex {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
}

app-helpdesk-detail div.card .avatar {
    height: 36px !important;
    width: 36px !important;
    font-size: 36px !important;
    flex-shrink: 0 !important;
}

app-helpdesk-detail div.card .text-ellipsis-width,
app-helpdesk-detail div.card .text-truncate {
    width: 100% !important;
    max-width: 260px !important; /* Caps limits cleanly inside 392px screen profiles */
    font-size: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
}

/* POSITION 2: Function Buttons Block (Shifted into Middle Area) */
app-helpdesk-detail div.flex-column.gap-2 {
    order: 2 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important; /* Converts side rail layouts to a fluid matrix layout */
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 0 16px 0 !important; /* Bottom boundary margin provides break space before tabs start */
}

app-helpdesk-detail div.flex-column.gap-2 > div.ng-star-inserted {
    flex: 1 1 46% !important;
    max-width: 48% !important;
}

app-helpdesk-detail .btn.iam-btn {
    padding: 10px 4px !important;
    font-size: 11px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* POSITION 3: Subnavigation Tabs and Text Tables (Bottom Block) */
app-helpdesk-detail div.d-flex.gap-3.mt-3 {
    order: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-top: 0 !important;
}

/* ==========================================================================
   SUBNAV NAVIGATION TAB ROW & DATA FIELD COMPACT MATRIX
   ========================================================================== */

/* Keeps active tabs lined up neatly on a single row without dropping down */
ul.nav-tabs.minimal-tab {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Discards dynamic staircase wrapping */
    overflow-x: auto !important;  /* Enables left/right finger swipes */
    overflow-y: hidden !important;
    width: 100% !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding-bottom: 2px !important;
    margin-bottom: 10px !important;
    -webkit-overflow-scrolling: touch !important; 
}

ul.nav-tabs.minimal-tab > li.nav-item {
    flex: 0 0 auto !important;
    display: inline-block !important;
}

ul.nav-tabs.minimal-tab > li.nav-item > a.nav-link {
    white-space: nowrap !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
}

/* Compact rules for property list selectors */
.details-table[_ngcontent-ng-c1059564101],
table[class*="details-table"] {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

/* Compresses core table row descriptors to optimize space utilization */
.details-table[_ngcontent-ng-c1059564101] tr td,
table[class*="details-table"] tr td {
    font-size: 11px !important;
    height: auto !important;
    word-break: break-all !important; /* Wraps long inputs like User DN fields onto clean next lines */
    white-space: normal !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
}

.details-table[_ngcontent-ng-c1059564101] tr td:first-child,
table[class*="details-table"] tr td:first-child {
    width: 30% !important; /* Fits property headers tightly inside phone bounds */
    padding-right: 4px !important;
    color: #969899 !important;
}

.details-table[_ngcontent-ng-c1059564101] tr td:last-child,
table[class*="details-table"] tr td:last-child {
    width: 70% !important; /* Maximizes footprint space for string parameters */
    padding-left: 6px !important;
    padding-right: 0 !important;
}

.scrollable-table[_ngcontent-ng-c1059564101],
div[class*="scrollable-table"] {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    max-height: none !important;
    width: 100% !important;
}

.tile {
    width: 135px !important;
}

#footer {
    width: 100%;
    margin: 0 auto;
    position: relative;
    color: #333;
    font-size: 12px;
    text-align: center;
}

#footer::after {
    content: "";
    position: absolute;
    right: 0;
    width: 100%;
    height: 32px;
    background: url(newtmlogo.png) no-repeat center;
    background-size: contain;
    top: 30px;
}

.header-button {
    padding: 0px 5px;
}

#localeSelectionMenu {
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0px;
    color: inherit;
    font-size: 15px;
    display: inline-block;
    vertical-align: middle;
    padding-top: 0px;
}
