﻿/* Common */
body {
    /* DXCOMMENT: Duplicate a font family and font size from the web.config (devexpress->themes->font settings) for the web-site's HTML content */
    font: 16px 'Segoe UI', Helvetica, 'Droid Sans', Tahoma, Geneva, sans-serif;
}

/* Article Layout */
.text-content {
    min-height: 100%;
    max-width: 816px;
    margin: 0px auto;
    padding: 0px 14px 0px 14px;
    word-wrap: break-word;
}

@media (min-width: 816px) {
    .text-content {
        padding: 0px 48px;
    }
}

/* Base Styles */
.text-content {
    color: #666;
    line-height: 1.5;
}

    .text-content p {
        margin-top: 0;
        margin-bottom: 1rem;
    }

    /* Headers */
    .text-content h1, .text-content h2, .text-content h3, .text-content h4, .text-content h5, .text-content h6 {
        color: #444;
        font-weight: normal;
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    .text-content h3, .text-content h4, .text-content h5, .text-content h6 {
        font-weight: 600;
    }

    .text-content h1 {
        font-size: 2em;
    }

    .text-content h2 {
        font-size: 1.75em;
    }

    .text-content h3 {
        font-size: 1.375em;
    }

    .text-content h4 {
        font-size: 1.25em;
    }

    .text-content h5 {
        font-size: 1.125em;
    }

    .text-content h6 {
        font-size: 1em;
    }

    .text-content > h1:not(:first-child) {
        margin-top: 1.75rem;
    }

    .text-content > h2:not(:first-child) {
        margin-top: 1.5rem;
    }

    .text-content > h3:not(:first-child) {
        margin-top: 1.25rem;
    }

    .text-content > h4:not(:first-child) {
        margin-top: 1.125rem;
    }

    .text-content > h5:not(:first-child) {
        margin-top: 1rem;
    }

    .text-content > h6:not(:first-child) {
        margin-top: .9rem;
    }

    /* Title + Lead */
    .text-content .title {
        margin-top: 1.2rem;
        margin-bottom: .8rem;
    }

@media (min-width: 576px) {
    .text-content .title {
        color: #222;
        font-size: 2em;
        font-weight: 600;
    }
}

.text-content .lead {
    font-size: 1.125rem;
    font-weight: 300;
}

@media (min-width: 576px) {
    .text-content .lead {
        max-width: 80%;
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }
}

.text-content > h2.category {
    color: #222;
    font-weight: 600;
}

    .text-content > h2.category:not(:first-child) {
        margin-top: 3rem;
    }


/* #href bookmark jump */
.text-content > h1[id]::before,
.text-content > h2[id]::before,
.text-content > h3[id]::before,
.text-content > h4[id]::before {
    display: block;
    height: calc(3.13rem + 1.2rem); /* Main Menu Height (3.13rem) + .title margin-top = 1.2rem */
    margin-top: calc(-3.13rem - 1.2rem);
    visibility: hidden;
    content: "";
}


/* Link */
.text-content a {
    /* DXCOMMENT: Duplicates color from the web.config (devexpress->themes->baseColor) */
    color: #F87C1D;
}

    .text-content a:visited {
        /* DXCOMMENT: Duplicates color from the web.config (devexpress->themes->baseColor) */
        color: #BA5D15; /* 25% black overlay */
    }

    .text-content a:hover {
        /* DXCOMMENT: Duplicates color from the web.config (devexpress->themes->baseColor) */
        color: #FAA96C; /* 35% white overlay */
    }

.text-content b, .text-content strong {
    color: #444;
}

mark {
    /* DXCOMMENT: Duplicates color from the web.config (devexpress->themes->baseColor) */
    background-color: #F87C1D;
    color: #fff;
}

small {
    color: #999999;
    font-size: 0.75em;
}

code, pre {
    font-family: Consolas, Menlo, Monaco, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
}

hr {
    height: 1px;
    opacity: 0.1;
    background-color: #000000;
    border: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

blockquote {
    background-color: #f2f2f2;
    color: #444;
    margin: 0;
    margin-bottom: 1rem;
    font-size: 1.125em;
    padding: 29px 26px;
    border: 0;
    border-left: 6px solid #d8d8d8;
}

    blockquote p {
        margin-top: 0;
    }

    blockquote footer {
        display: block;
        font-size: 0.875em;
        font-style: italic;
        color: #999;
    }

        blockquote footer::before {
            content: "\2014 \00A0";
        }

/* Contents (Left Panel) */
.section-caption.contents-caption {
    padding-left: 31px;
    border-top: none !important;
}


/* Lists */
.text-content ul,
.text-content ol {
    margin-top: 1em;
    margin-bottom: 1em;
}

@media (min-width: 992px) {
    .bd-content > ul, .bd-content > ol, .bd-content > p {
        max-width: 80%;
    }
}

/* Text Alignment */
.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.indent-p {
    padding-left: 40px;
    padding-right: 20px;
}

.bordered-block {
    background-color: #f2f2f2;
    padding: 1.5rem;
    margin-right: 0;
    margin-left: 0;
    border-width: .2rem;
}

.contact-map {
    width: 100%;
    height: 55vh;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 576px) {
    .bordered-block {
        padding: 1.5rem;
        margin-right: 0;
        margin-left: 0;
        border-width: .2rem;
    }
}

/* ========================================
   Contact Page - Modern Premium Design
   ======================================== */

/* Page Container with subtle background */
.contacts-page-wrapper {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f5 100%);
    min-height: 100%;
    padding: 1.5rem;
}

/* Main Grid Layout */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Card - Glassmorphism Style */
.contact-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(248, 124, 29, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Card Header with Gradient */
.contact-card-header {
    position: relative;
    background: linear-gradient(135deg, #F87C1D 0%, #ff9a44 50%, #e86c0d 100%);
    padding: 2rem;
    text-align: center;
    overflow: hidden;
}

.contact-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20%, 20%) rotate(10deg); }
}

.contact-card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.2));
}

.contact-card-title {
    position: relative;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
}

/* Card Body */
.contact-card-body {
    padding: 0;
}

/* Contact Info Items */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #F87C1D, #ff9a44);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    background: linear-gradient(90deg, rgba(248, 124, 29, 0.05) 0%, transparent 100%);
}

.contact-info-item:hover::before {
    transform: scaleY(1);
}

.contact-info-item:last-child {
    border-bottom: none;
}

/* Icon Container with Glow */
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fff5ed 0%, #ffe8d6 100%);
    border-radius: 14px;
    flex-shrink: 0;
    margin-right: 1rem;
    box-shadow:
        0 4px 15px rgba(248, 124, 29, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.contact-icon i {
    font-size: 1.25rem;
    color: #F87C1D;
    transition: transform 0.3s ease;
}

.contact-info-item:hover .contact-icon {
    background: linear-gradient(135deg, #F87C1D 0%, #ff9a44 100%);
    box-shadow: 0 8px 25px rgba(248, 124, 29, 0.35);
    transform: scale(1.1) rotate(-5deg);
}

.contact-info-item:hover .contact-icon i {
    color: #ffffff;
    transform: scale(1.1);
}

/* Content Area */
.contact-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50px;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #F87C1D;
    letter-spacing: 1.2px;
    margin-bottom: 0.35rem;
    opacity: 0.9;
}

.contact-info-content a,
.contact-link {
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-info-content a:hover,
.contact-link:hover {
    color: #F87C1D;
}

.contact-address-line {
    display: block;
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========================================
   Map Section - Premium Style
   ======================================== */
.map-section {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.map-section:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 25px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Map Header */
.map-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f5 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.map-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #F87C1D, #ff9a44);
    border-radius: 3px;
}

.map-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #F87C1D 0%, #ff9a44 100%);
    border-radius: 10px;
    margin-right: 0.75rem;
    box-shadow: 0 4px 15px rgba(248, 124, 29, 0.3);
}

.map-icon i {
    font-size: 1.1rem;
    color: #ffffff;
}

.map-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Map Container with Frame Effect */
.map-container {
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}

.map-container::before {
    content: '';
    position: absolute;
    inset: 0.5rem;
    border: 2px dashed rgba(248, 124, 29, 0.2);
    border-radius: 12px;
    pointer-events: none;
}

.contact-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Map Footer */
.map-footer {
    padding: 1.25rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #F87C1D 0%, #e86c0d 100%);
    box-shadow:
        0 4px 15px rgba(248, 124, 29, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.map-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.map-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(248, 124, 29, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.map-link:hover::before {
    left: 100%;
}

.map-link i {
    transition: transform 0.3s ease;
}

.map-link:hover i {
    transform: scale(1.2);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-map {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .contacts-page-wrapper {
        padding: 1rem;
    }

    .contact-card-header {
        padding: 1.5rem;
    }

    .contact-card-title {
        font-size: 1.25rem;
    }

    .contact-info-item {
        padding: 1rem 1.25rem;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .contact-icon i {
        font-size: 1.1rem;
    }

    .map-header {
        padding: 1rem;
    }

    .map-container {
        padding: 0.75rem;
    }

    .contact-map {
        height: 280px;
        border-radius: 10px;
    }

    .map-link {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Tables */
.table {
    margin-bottom: 1rem;
    background-color: transparent;
    border-collapse: collapse;
}

    .table td,
    .table th {
        padding: .75em;
        padding-top: 0.5em;
        padding-bottom: 0.5em;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
        text-align: left;
    }

    .table thead th {
        border-bottom: 1px solid #d8d8d8;
        background-color: #f2f2f2;
        color: #222;
    }

    .table thead tr {
        box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.23);
    }

    .table tbody + tbody {
        border-top: 1px solid #dee2e6;
    }

.table-bordered {
    border: 1px solid #dee2e6;
}

    .table-bordered td,
    .table-bordered th {
        border: 1px solid #dee2e6
    }

    .table-bordered thead td,
    .table-bordered thead th {
        border-bottom-width: 1px
    }

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

/* Code, Control Area Block */
.control-area-block {
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    background-color: #f8f9fa;
}

/* Images */
.img-responsive {
    max-width: 100%;
    height: auto;
}

.img-float-left {
    float: left;
    padding-right: 40px;
    padding-bottom: 40px;
}

@media (max-width: 576px) {
    .img-float-left {
        padding-right: 16px;
        padding-bottom: 16px;
    }
}

/* Printing Styles */
@media print {
    .menu-container, .left-block, .right-block,
    .footer-wrapper {
        display: none !important;
    }

    .left-panel {
        display: none !important;
    }

    .text-content {
        max-width: 100%;
    }

    html {
        padding: 0 !important;
    }

    .page-toolbar-wrapper {
        display: none !important;
    }
}

/* Custom css */
.ChangePassword-Content {
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    max-width: 500px;
    -moz-box-shadow: inherit;
    -webkit-box-shadow: inherit;
    box-shadow: inherit;
}

.LogoutMenu {
    text-decoration: none !important;
    color: inherit !important;
}

.txtObsMemoAvalicaoGlobal {
    height: 30vh !important;
}

.defaultImg {
    max-height: 35vh;
}

.fichaAlunoNoPic {
    background: url('Images/user.svg');
}

.cbTurmas_Class {
    width: 100%;
    max-width: 200px;
}

/* Mobile Responsiveness - Form Input Spacing (WCAG 2.1 AAA) */
@media (max-width: 768px) {
    .dxeBase,
    .dx-wrap > div,
    .dxtcControl > div,
    .dxeEditArea {
        margin-bottom: 12px !important;
    }
}

/* Mobile Responsiveness - GridView Pager Touch Targets (WCAG 2.1 AAA) */
@media (max-width: 768px) {
    .dxgvPagerBottomPanel .dxp-num,
    .dxgvPagerBottomPanel .dxp-button,
    .dxgvPagerBottomPanel .dxp-summary {
        min-width: 44px !important;
        min-height: 44px !important;
        line-height: 44px !important;
        padding: 0 8px !important;
    }
}

/* GridView Icon Alignment - Vertical Centering for Command Column Icons */
/* Use attribute selector to match all theme variations (Office365, etc.) */
td[class*="dxgvCommandColumn"] {
    vertical-align: middle !important;
    text-align: center !important;
}

/* GridView Command Column Buttons - Ensure icons are vertically centered */
/* Target links and images within command column cells */
td[class*="dxgvCommandColumn"] a,
td[class*="dxgvCommandColumn"] img,
td[class*="dxgvCommandColumn"] .dxbButton {
    vertical-align: middle !important;
    display: inline-block !important;
}

/* GridView Data Cells - Vertical alignment for all cells */
.dxgvDataRow td {
    vertical-align: middle !important;
}

/* GridView Edit/New/Delete Icons - Consistent spacing and alignment */
td[class*="dxgvCommandColumn"] .dxbButton {
    margin: 0 2px !important;
}

/* GridView Command Column - Minimum height for consistent row height */
td[class*="dxgvCommandColumn"] {
    min-height: 44px !important;
    line-height: 44px !important;
}

/* GridView Toolbar Buttons - Vertical Centering for Novo/Editar/Eliminar/Atualizar */
/* Target toolbar list items (actual buttons) */
.dxm-item.dxm-noSubMenu {
    vertical-align: middle !important;
}

/* Target toolbar images and spans */
.dxm-item.dxm-noSubMenu img,
.dxm-item.dxm-noSubMenu span {
    vertical-align: middle !important;
    display: inline-block !important;
}

/* GridView Toolbar Container - Ensure consistent alignment */
div[class*="dxgvToolbar"] {
    vertical-align: middle !important;
}

div[class*="dxgvToolbar"] a,
div[class*="dxgvToolbar"] img,
div[class*="dxgvToolbar"] span {
    vertical-align: middle !important;
    display: inline-block !important;
}

/* GridView Toolbar Item - Ensure consistent alignment */
td[class*="dxgvToolbarItem"] {
    vertical-align: middle !important;
}

td[class*="dxgvToolbarItem"] a,
td[class*="dxgvToolbarItem"] img,
td[class*="dxgvToolbarItem"] span {
    vertical-align: middle !important;
    display: inline-block !important;
}

/* GridView Export Menu - "Exportar Para" button and dropdown alignment */
/* Target export menu button in toolbar (parent item with submenu) */
.dxm-item.dxm-subMenu {
    vertical-align: middle !important;
}

.dxm-item.dxm-subMenu img,
.dxm-item.dxm-subMenu span {
    vertical-align: middle !important;
    display: inline-block !important;
}

/* Export dropdown menu items (PDF, XLSX, XLS, etc.) - Consistent height and alignment */
li.dxm-item {
    vertical-align: middle !important;
    min-height: 44px !important; /* WCAG 2.1 AAA compliance */
    line-height: 44px !important;
    padding: 0px 12px !important; /* Consistent padding for better touch targets */
}

li.dxm-item img,
li.dxm-item span {
    vertical-align: middle !important;
    display: inline-block !important;
}

/* Center-align icons and text within menu items */
li.dxm-item .dxm-content {
    line-height: 44px !important; /* Match parent line-height for vertical centering */
    min-height: 44px !important; /* Match parent min-height */
    vertical-align: middle !important;
}

li.dxm-item .dxm-content img,
li.dxm-item .dxm-content span {
    vertical-align: middle !important;
    display: inline-block !important;
}

/* Context Menu Items - Uniform height and alignment for all menu types */
/* Row context menu, column context menu, footer context menu, group footer context menu */
div[id*="DXContextMenu"] li.dxm-item,
div[id*="DXFilterRowMenu"] li.dxm-item {
    min-height: 44px !important; /* WCAG 2.1 AAA compliance */
    line-height: 44px !important;
    padding: 0px 12px !important;
    vertical-align: middle !important;
}

div[id*="DXContextMenu"] li.dxm-item img,
div[id*="DXContextMenu"] li.dxm-item span,
div[id*="DXFilterRowMenu"] li.dxm-item img,
div[id*="DXFilterRowMenu"] li.dxm-item span {
    vertical-align: middle !important;
    display: inline-block !important;
}

/* Center-align icons and text within context menu items */
div[id*="DXContextMenu"] li.dxm-item .dxm-content,
div[id*="DXFilterRowMenu"] li.dxm-item .dxm-content {
    line-height: 44px !important; /* Match parent line-height for vertical centering */
    min-height: 44px !important; /* Match parent min-height */
    vertical-align: middle !important;
}

div[id*="DXContextMenu"] li.dxm-item .dxm-content img,
div[id*="DXContextMenu"] li.dxm-item .dxm-content span,
div[id*="DXFilterRowMenu"] li.dxm-item .dxm-content img,
div[id*="DXFilterRowMenu"] li.dxm-item .dxm-content span {
    vertical-align: middle !important;
    display: inline-block !important;
}

/* Submenu items with padding-left (e.g., "Resumo do grupo", "Exportar", "Nenhum") */
div[id*="DXContextMenu"] li.dxm-item[style*="padding-left"],
div[id*="DXFilterRowMenu"] li.dxm-item[style*="padding-left"] {
    padding-left: 40px !important; /* Maintain indentation for submenu items */
}

/* Mobile responsiveness for all menus */
@media (max-width: 768px) {
    /* Export menu items - Full width on mobile */
    li.dxm-item {
        width: 100% !important;
        text-align: left !important;
        padding: 0px 16px !important; /* Larger padding for mobile */
    }

    /* Context menu items - Full width on mobile */
    div[id*="DXContextMenu"] li.dxm-item,
    div[id*="DXFilterRowMenu"] li.dxm-item {
        width: 100% !important;
        text-align: left !important;
        padding: 0px 16px !important;
    }

    /* Submenu items with indentation on mobile */
    div[id*="DXContextMenu"] li.dxm-item[style*="padding-left"],
    div[id*="DXFilterRowMenu"] li.dxm-item[style*="padding-left"] {
        padding-left: 44px !important;
    }

    /* GridView Mobile Optimization - Reduced Text Size and Padding */
    /* GridView data cells - smaller text and reduced padding */
    .dxgvDataRow_Office365 td {
        font-size: 12px !important;
        padding: 4px 6px !important;
        line-height: 1.3 !important;
    }

    /* GridView headers - smaller text */
    .dxgvHeader_Office365 {
        font-size: 12px !important;
        padding: 6px 6px !important;
        font-weight: 600 !important;
    }

    /* Command column buttons - maintain WCAG AAA 44px minimum */
    .dxgvCommandColumn_Office365 .dxbButton,
    .dxgvCommandColumn_Office365 button {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 8px !important;
    }

    /* Adaptive detail buttons (3 dots) - maintain WCAG AAA 44px */
    .dxgvCommandColumn_Office365 button[id*="ShowAdaptive"],
    .dxgvCommandColumn_Office365 button[id*="HideAdaptive"] {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    /* GridView filter row - smaller text */
    .dxgvFilterRow_Office365 td {
        font-size: 12px !important;
        padding: 4px 6px !important;
    }

    /* GridView footer - smaller text */
    .dxgvFooter_Office365 td {
        font-size: 12px !important;
        padding: 6px 6px !important;
    }
}

/* ========================================
   ASPxButton Global Styles - WCAG 2.1 AAA Compliance
   ======================================== */

/* All ASPxButton controls - Ensure minimum 44px height for WCAG 2.1 AAA compliance */
/* Target DevExpress button wrapper and inner button element */
.dxbButton,
.dxbButton button,
table[id*="ASPxButton"] .dxb,
table[id*="ASPxButton"] button {
    min-height: 44px !important;
}

/* ASPxButton - Ensure consistent padding and line-height */
.dxbButton {
    line-height: 44px !important;
    padding: 0 12px !important;
}

/* ASPxButton inner button element - Vertical centering */
.dxbButton button {
    line-height: normal !important;
    padding: 8px 12px !important;
}

/* Mobile-specific button styles (≤768px) */
@media (max-width: 768px) {
    /* Maintain WCAG AAA 44px minimum on mobile */
    .dxbButton,
    .dxbButton button,
    table[id*="ASPxButton"] .dxb,
    table[id*="ASPxButton"] button {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    /* Slightly larger padding for better touch targets */
    .dxbButton button {
        padding: 10px 16px !important;
    }
}

/* ========================================
   Header Menu Buttons - Desktop/Mobile Uniformization
   ======================================== */

/* Override Layout.css header-menu height for more compact desktop header */
.app-header .header-menu {
    height: 38px !important; /* Compact header - reduced from 3.13rem (50px) */
    overflow: hidden !important; /* Prevent any overflow */
}

/* Left block menu - Ensure no overflow */
.app-header .left-block .header-menu {
    height: 38px !important;
    overflow: hidden !important;
}

.app-header .left-block .header-menu > tbody > tr > td {
    height: 38px !important;
    max-height: 38px !important;
    overflow: hidden !important;
}

/* Override global li.dxm-item rules for header menu items ONLY */
/* Target: Ano Letivo, Contactos buttons in application menu */
.app-header .header-menu.application-menu li.dxm-item {
    min-height: 38px !important; /* Match header height exactly */
    max-height: 38px !important;
    line-height: 38px !important;
    padding: 0px 12px !important;
    vertical-align: middle !important;
}

.app-header .header-menu.application-menu li.dxm-item .dxm-content {
    line-height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    vertical-align: middle !important;
    display: flex !important;
    align-items: center !important;
    padding: 0px !important; /* No extra padding */
}

.app-header .header-menu.application-menu li.dxm-item .dxm-content img {
    vertical-align: middle !important;
    margin-right: 6px !important;
    width: 16px !important;
    height: 16px !important;
}

.app-header .header-menu.application-menu li.dxm-item .dxm-content span {
    vertical-align: middle !important;
    line-height: normal !important;
    font-size: 13px !important;
}

/* Header submenu items (user dropdown: "Iniciar Sessão", "Sair", etc.) */
.app-header .header-sub-menu li.dxm-item {
    min-height: 36px !important; /* Slightly smaller than header */
    max-height: 36px !important;
    line-height: 36px !important;
    padding: 0px 12px !important;
    vertical-align: middle !important;
}

.app-header .header-sub-menu li.dxm-item .dxm-content {
    line-height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    vertical-align: middle !important;
    display: flex !important;
    align-items: center !important;
    padding: 0px !important;
}

.app-header .header-sub-menu li.dxm-item .dxm-content img {
    vertical-align: middle !important;
    line-height: normal !important;
    width: 14px !important;
    height: 14px !important;
    margin-right: 8px !important;
}

.app-header .header-sub-menu li.dxm-item .dxm-content span {
    vertical-align: middle !important;
    line-height: normal !important;
    font-size: 13px !important;
}

/* User account menu item - Special styling for user info */
.app-header .header-sub-menu .myaccount-item {
    min-height: auto !important; /* Allow natural height for user info */
    max-height: none !important;
    line-height: normal !important;
    padding: 8px 12px !important;
}

.app-header .header-sub-menu .myaccount-item .dxm-content {
    line-height: normal !important;
    min-height: auto !important;
    max-height: none !important;
}

/* User info in submenu - Compact layout */
.app-header .header-sub-menu .user-info {
    display: flex !important;
    align-items: center !important;
}

.app-header .header-sub-menu .user-info .avatar img {
    width: 32px !important;
    height: 32px !important;
}

.app-header .header-sub-menu .user-info .text-container {
    height: auto !important;
    margin-left: 10px !important;
}

.app-header .header-sub-menu .user-info .text-container .user-name {
    font-size: 12px !important;
    line-height: 1.2 !important;
}

.app-header .header-sub-menu .user-info .text-container .email {
    font-size: 10px !important;
    line-height: 1.2 !important;
}

/* User account icon in header - Compact size */
.app-header .header-menu .account-background {
    width: 26px !important;
    height: 26px !important;
}

.app-header .header-menu .account-background .empty-image {
    width: 13px !important;
    height: 13px !important;
    margin: 6.5px !important;
}

/* ========================================
   Header Left Block - Logo and Hamburger Menu
   ======================================== */

/* Header logo - Compact and contained within header */
.app-header .header-logo {
    height: 32px !important; /* Smaller to fit within 38px header */
    width: 95px !important; /* Proportionally smaller */
    background-size: contain !important;
    background-position: center !important;
}

.app-header .left-block .header-menu .header-logo > .dxm-content {
    padding: 0 8px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hamburger menu and back button - Match header height and center perfectly */
.app-header .left-block .header-menu .item.toggle-item {
    height: 38px !important;
    line-height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    overflow: hidden !important; /* Prevent overflow */
}

.app-header .left-block .header-menu .item.toggle-item > .dxm-content {
    padding: 0 10px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important; /* Prevent overflow */
}

.app-header .left-block .header-menu .item.toggle-item img {
    width: 16px !important;
    height: 16px !important;
    display: block !important; /* Remove inline spacing */
    margin: 0 auto !important; /* Center horizontally */
}

/* ========================================
   Header Right Block - User Icon
   ======================================== */

/* Right area menu (user icon) - Match header height exactly */
.app-header .right-block .header-menu .image-item {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    line-height: 38px !important;
}

.app-header .right-block .header-menu .image-item > .dxm-content {
    padding: 0 8px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.app-header .right-block .header-menu .item.toggle-item {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    line-height: 38px !important;
}

.app-header .right-block .header-menu .item.toggle-item > .dxm-content {
    padding: 0 12px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* User account icon in header - Compact size */
.app-header .header-menu .account-background {
    width: 24px !important;
    height: 24px !important;
}

.app-header .header-menu .account-background .empty-image {
    width: 12px !important;
    height: 12px !important;
    margin: 6px !important;
}

/* Mobile-specific header menu styles (≤768px) */
@media (max-width: 768px) {
    /* FORCE single-line header layout on mobile */
    .app-header .header-menu {
        height: 50px !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    /* Force left-block and right-block to stay on same line */
    .app-header .left-block,
    .app-header .right-block {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        height: 50px !important;
        overflow: hidden !important;
    }

    .app-header .left-block .header-menu,
    .app-header .right-block .header-menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        height: 50px !important;
        overflow: hidden !important;
    }

    /* Override DevExpress table layout */
    .app-header .header-menu > tbody,
    .app-header .header-menu > tbody > tr {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        height: 50px !important;
        flex-wrap: nowrap !important;
    }

    .app-header .header-menu > tbody > tr > td {
        display: flex !important;
        align-items: center !important;
        height: 50px !important;
        max-height: 50px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* Hamburger menu - Compact mobile */
    .app-header .left-block .header-menu .item.toggle-item {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        line-height: 50px !important;
        overflow: hidden !important;
    }

    .app-header .left-block .header-menu .item.toggle-item > .dxm-content {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        padding: 0 12px !important;
        overflow: hidden !important;
    }

    .app-header .left-block .header-menu .item.toggle-item img {
        width: 20px !important;
        height: 20px !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* Logo - Compact mobile to prevent line break */
    .app-header .header-logo {
        height: 40px !important; /* Slightly smaller */
        width: 110px !important; /* Compact width to fit single line */
        background-size: contain !important;
        background-position: center !important;
    }

    .app-header .left-block .header-menu .header-logo > .dxm-content {
        height: 50px !important;
        padding: 0 6px !important; /* Reduced padding */
        overflow: hidden !important;
    }

    /* Right block - User icon compact */
    .app-header .right-block .header-menu .image-item {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        line-height: 50px !important;
        overflow: hidden !important;
    }

    .app-header .right-block .header-menu .image-item > .dxm-content {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        padding: 0 8px !important;
        overflow: hidden !important;
    }

    .app-header .right-block .header-menu .item.toggle-item {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        line-height: 50px !important;
        overflow: hidden !important;
    }

    .app-header .right-block .header-menu .item.toggle-item > .dxm-content {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        padding: 0 12px !important;
        overflow: hidden !important;
    }

    /* User account icon - Compact mobile */
    .app-header .header-menu .account-background {
        width: 30px !important;
        height: 30px !important;
    }

    .app-header .header-menu .account-background .empty-image {
        width: 15px !important;
        height: 15px !important;
        margin: 7.5px !important;
    }

    /* Application menu items - WCAG AAA 44px minimum */
    .app-header .header-menu.application-menu li.dxm-item {
        min-height: 44px !important;
        max-height: 44px !important;
        line-height: 44px !important;
        padding: 0px 14px !important;
        overflow: hidden !important;
    }

    .app-header .header-menu.application-menu li.dxm-item .dxm-content {
        line-height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        padding: 0px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    .app-header .header-menu.application-menu li.dxm-item .dxm-content img {
        width: 20px !important;
        height: 20px !important;
        margin-right: 6px !important;
    }

    .app-header .header-menu.application-menu li.dxm-item .dxm-content span {
        font-size: 15px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Header submenu items - WCAG AAA compliance */
    .app-header .header-sub-menu li.dxm-item {
        min-height: 44px !important;
        max-height: 44px !important;
        line-height: 44px !important;
        padding: 0px 14px !important;
        overflow: hidden !important;
    }

    .app-header .header-sub-menu li.dxm-item .dxm-content {
        line-height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        overflow: hidden !important;
    }
}
