:root {
    --navy: #123574;
    --blue: #398ed1;
    --background: #edf2f5;
    --text: #20334b;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}
.topbar {
    background: white;
    padding: 22px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dbe3eb;
}
.topbar img {
    width: 235px;
    max-width: 55%;
    height: auto;
}
.topbar span {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--navy);
}
.login-area {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 40px 20px;
}
.login-card {
    background: white;
    width: 100%;
    max-width: 460px;
    padding: 36px;
    border: 1px solid #dbe3eb;
    border-radius: 12px;
    box-shadow: 0 12px 40px #1235740d;
}
.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    color: #526d8b;
}
h1 { font-size: 27px; color: var(--navy); }
h2 { font-size: 17px; }
p { line-height: 1.6; }
label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin: 20px 0 8px;
}
input {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    border: 1px solid #b9c8d7;
    border-radius: 6px;
}
input:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
button {
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 14px;
    margin-top: 24px;
    color: white;
    background: var(--navy);
    font-weight: bold;
    cursor: pointer;
}
button:hover { background: #204d91; }
.security, .support {
    margin-top: 22px;
    text-align: center;
    font-size: 12px;
    color: #526d8b;
}
.alert {
    padding: 12px;
    border-left: 3px solid #b91c1c;
    background: #fff1f1;
    color: #991b1b;
    font-size: 14px;
}
.workspace {
    flex: 1;
    display: flex;
}
.sidebar {
    width: 245px;
    padding: 24px;
    background: var(--navy);
    color: white;
}
.sidebar strong {
    display: block;
    margin-bottom: 25px;
    font-size: 13px;
}
.sidebar a, .sidebar span {
    display: block;
    padding: 13px 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}
.sidebar span { opacity: .65; }
.sidebar button { background: #28538c; }
.dashboard {
    flex: 1;
    min-width: 0;
    padding: 32px;
}
.modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin: 24px 0;
}
.module, .profile {
    background: white;
    padding: 24px;
    border: 1px solid #dbe3eb;
    border-radius: 9px;
    overflow-wrap: anywhere;
}
.module { border-top: 3px solid var(--blue); }
.module small { color: #64748b; }
footer {
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #526d8b;
}
@media (max-width: 700px) {
    .workspace { flex-direction: column; }
    .sidebar { width: 100%; }
    .dashboard { padding: 20px; }
    .topbar span { display: none; }
    .login-card { padding: 24px; }
}


/* AIRSPEED ADMIN CSS */

.metric {
    font-size: 32px;
    font-weight: bold;
    color: var(--navy);
    margin-top: 12px;
}

.admin-section {
    margin: 24px 0;
}

.table-scroll {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    text-align: left;
    background: #edf2f5;
    color: var(--navy);
    padding: 12px;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table tr:hover td {
    background: #f8fafc;
}

.department-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.department-tag {
    display: inline-block;
    background: #eaf1fa;
    color: #123574;
    border: 1px solid #cbdcf0;
    border-radius: 5px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: bold;
}

.admin-pagination {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 18px;
    font-size: 13px;
}

.admin-pagination a {
    color: var(--navy);
    font-weight: bold;
}


/* AIRSPEED ANNOUNCEMENTS */

textarea, select {
    width: 100%;
    padding: 13px;
    border: 1px solid #b9c8d7;
    border-radius: 6px;
    background: white;
    color: var(--text);
    font: inherit;
}

textarea { resize: vertical; }

.announcement-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-check input {
    width: 18px;
    height: 18px;
}

.announcement {
    margin: 18px 0;
    border-left: 4px solid var(--blue);
}

.announcement.important {
    border-left-color: #c58b18;
}

.announcement-priority {
    color: #854d0e;
    background: #fef3c7;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.announcement-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.7;
}

.announcement-meta {
    color: #64748b;
    font-size: 12px;
    margin-top: 24px;
}

.announcement-success {
    background: #ecfdf5;
    color: #166534;
    border-left: 4px solid #15803d;
    padding: 15px;
    margin: 20px 0;
}


/* AIRSPEED DIRECTORY CSS */

.directory-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.directory-person {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.directory-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eaf1fa;
    color: #123574;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.directory-email {
    color: #245c9d;
    font-size: 13px;
    overflow-wrap: anywhere;
}


/* BEGIN AIRSPEED PREMIUM DESIGN */

:root {
    --navy: #123574;
    --blue: #285b99;
    --text: #24364b;
    --muted: #64748b;
    --surface: #ffffff;
    --background: #f3f6fa;
    --border: #e1e7ef;
    --radius: 14px;
    --shadow: 0 3px 14px rgba(16, 43, 82, .045);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Aptos, Roboto,
        "Helvetica Neue", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button, input, select, textarea {
    font-family: inherit;
}

h1, h2, h3, h4 {
    color: #142d4e;
    line-height: 1.3;
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(27px, 2.4vw, 36px);
    font-weight: 650;
    margin: 8px 0 12px;
}

h2 {
    font-size: 20px;
    font-weight: 600;
}

h3 {
    font-size: 17px;
    font-weight: 600;
}

p {
    line-height: 1.65;
}

a {
    color: #285b99;
    text-decoration: none;
}

a:hover {
    color: #123574;
    text-decoration: underline;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: #718096;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(16,43,82,.035);
    padding: 18px 28px;
}

.topbar img {
    max-width: 230px;
    height: auto;
    object-fit: contain;
}

.workspace {
    background: var(--background);
    min-height: calc(100vh - 100px);
}

.sidebar {
    background: linear-gradient(
        170deg, #102b52 0%, #15376a 100%
    );
    padding: 24px 16px;
}

.sidebar strong {
    display: block;
    color: #a6bad5;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    margin: 10px 12px 20px;
}

.sidebar a,
.sidebar span {
    display: block;
    color: #dce7f5;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 14px;
    border-radius: 8px;
    margin: 4px 0;
    transition: background .18s ease;
}

.sidebar a:hover {
    background: rgba(255,255,255,.11);
    color: #ffffff;
    text-decoration: none;
}

.sidebar button {
    background: rgba(255,255,255,.12);
    color: #ffffff;
    box-shadow: none;
    margin-top: 16px;
}

.dashboard {
    padding: 32px clamp(20px, 3vw, 48px);
    min-width: 0;
    flex: 1;
}

.profile,
.module {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.module {
    transition: transform .18s ease,
                box-shadow .18s ease;
}

.module:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16,43,82,.08);
}

.module h2,
.module h3 {
    font-weight: 600;
}

.modules {
    gap: 20px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: #344963;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
    background: #ffffff;
    border: 1px solid #d5deea;
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 14px;
    color: #24364b;
    transition: border-color .18s ease,
                box-shadow .18s ease;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #5985bc;
    box-shadow: 0 0 0 3px rgba(40,91,153,.10);
}

button {
    background: #123574;
    border: 0;
    border-radius: 9px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease,
                box-shadow .18s ease;
}

button:hover {
    background: #204c87;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #8ab4eb;
    outline-offset: 3px;
}

/* DIRETORIO CORPORATIVO */

.directory-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 20px;
    margin-top: 22px;
}

.directory-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px 22px;
    min-width: 0;
    min-height: 270px;
    border: 1px solid #e1e7ef;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(16,43,82,.035);
    transition: transform .2s ease,
                border-color .2s ease,
                box-shadow .2s ease;
}

.directory-person:hover {
    transform: translateY(-3px);
    border-color: #c1d2e8;
    box-shadow: 0 10px 25px rgba(16,43,82,.075);
}

.directory-avatar {
    width: 88px;
    height: 88px;
    min-width: 88px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(
        145deg, #eaf0fa, #dbe7f6
    );
    color: #234b83;
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -1px;
    margin: 0 auto 16px;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 1px #dce6f2;
    overflow: hidden;
}

.directory-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.directory-person h2 {
    font-size: 17px;
    font-weight: 650;
    margin: 0 0 5px;
    overflow-wrap: anywhere;
}

.directory-person p {
    font-size: 13px;
    color: #718096;
    margin: 0 0 8px;
}

.department-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0;
}

.directory-person .department-grid {
    justify-content: center;
}

.department-tag {
    background: #edf3fb;
    border: 1px solid #dce7f6;
    border-radius: 30px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2px;
    color: #315b8c;
}

.directory-email {
    display: block;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #edf1f6;
    font-size: 12px;
    color: #285b99;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.directory-email:hover {
    color: #123574;
    text-decoration: underline;
}

form:has(#directory-search) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
}

form:has(#directory-search) label {
    grid-column: 1 / -1;
    margin: 0;
}

form:has(#directory-search) input,
form:has(#directory-search) button {
    margin: 0;
    width: 100%;
}

form:has(#directory-search) a {
    font-size: 13px;
    font-weight: 500;
    padding: 10px;
    white-space: nowrap;
}

/* ADMINISTRACAO */

.admin-section {
    margin: 24px 0;
}

.admin-table {
    width: 100%;
    font-size: 13px;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    background: #f1f5fa;
    color: #526780;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 14px;
}

.admin-table td {
    padding: 14px;
    border-bottom: 1px solid #edf1f6;
}

.admin-table tr:hover td {
    background: #f7f9fc;
}

.metric {
    font-size: 36px;
    font-weight: 650;
    letter-spacing: -1.5px;
    color: #123574;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    margin-top: 24px;
    color: #64748b;
    font-size: 13px;
}

.admin-pagination a {
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    padding: 8px 16px;
}

/* COMUNICADOS */

.announcement {
    border-left: 4px solid #285b99;
    padding: 24px 28px;
}

.announcement-body {
    font-size: 15px;
    line-height: 1.8;
}

.announcement-meta {
    color: #718096;
    font-size: 12px;
}

.announcement.important {
    border-left-color: #c58b18;
}

footer {
    color: #718096;
    font-size: 12px;
    border-top: 1px solid #e1e7ef;
}

/* RESPONSIVIDADE */

@media (max-width: 900px) {
    .dashboard {
        padding: 24px;
    }

    .directory-grid {
        grid-template-columns:
            repeat(auto-fill, minmax(min(100%, 220px), 1fr));
        gap: 14px;
    }

    form:has(#directory-search) {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    form:has(#directory-search) a {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .workspace {
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 12px;
    }

    .dashboard {
        padding: 18px;
    }

    .directory-grid {
        grid-template-columns: 1fr;
    }

    .profile {
        padding: 20px;
    }

    form:has(#directory-search) {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 14px;
    }

    .topbar img {
        max-width: 160px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* END AIRSPEED PREMIUM DESIGN */


/* AIRSPEED CORPORATE PROFILE */

.profile-editor {
    max-width: 920px;
    margin: 24px 0;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.profile-identity .directory-avatar {
    margin: 0;
    flex-shrink: 0;
}

.profile-photo {
    width: 112px;
    height: 112px;
}

.profile-fields {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

.profile-editor input[readonly] {
    background: #f1f5f9;
    color: #64748b;
}

.field-help {
    font-size: 12px;
    color: #64748b;
}

.profile-editor button {
    width: auto;
    min-width: 180px;
    color: #ffffff;
}

.profile-editor input[type=file] {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 640px) {
    .profile-fields {
        grid-template-columns: 1fr;
    }

    .profile-identity {
        gap: 16px;
    }
}


/* AIRSPEED EMPLOYEE MANAGEMENT */

.employee-search {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.employee-search input,
.employee-search select {
    width: 100%;
    margin: 0;
}

.employee-search button {
    width: auto;
    margin: 0;
    color: #ffffff;
}

.employee-table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}

.employee-table {
    min-width: 850px;
}

.employee-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-person .directory-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 14px;
    border-width: 2px;
    margin: 0;
}

.employee-person strong {
    color: #142d4e;
    font-weight: 600;
}

.employee-person small {
    display: block;
    font-size: 11px;
    color: #64748b;
    overflow-wrap: anywhere;
}

.employee-table .department-tag {
    display: inline-block;
    margin: 2px;
}

.employee-edit {
    display: inline-block;
    padding: 7px 15px;
    border: 1px solid #dce7f6;
    border-radius: 8px;
    background: #edf3fb;
    color: #123574;
    font-size: 12px;
    font-weight: 600;
}

.employee-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.employee-success {
    background: #edf8f1;
    border: 1px solid #cde8d6;
    border-radius: 10px;
    padding: 14px 20px;
    color: #22633c;
    margin: 18px 0;
}

@media (max-width: 900px) {
    .employee-search {
        grid-template-columns: 1fr;
    }
}

/* BEGIN AIRSPEED COMMUNICATION CSS */

.chat-contacts {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.chat-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px;
    border: 1px solid #e1e7ef;
    border-radius: 12px;
    color: var(--text);
}

.chat-contact:hover {
    background: #f3f6fa;
    text-decoration: none;
}

.chat-contact[hidden] {
    display: none;
}

.chat-contact-info {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.chat-contact-info small {
    display: block;
    color: #64748b;
}

.chat-contact .directory-avatar,
.chat-header .directory-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    margin: 0;
    font-size: 18px;
}

.chat-badge {
    display: inline-block;
    border-radius: 20px;
    background: #123574;
    color: white;
    padding: 3px 10px;
    font-size: 12px;
}

.chat-window {
    margin-top: 18px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #e1e7ef;
    padding-bottom: 18px;
}

.chat-header h2 {
    margin: 0;
}

.chat-history {
    height: 440px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #f3f6fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 18px;
}

.chat-message {
    align-self: flex-start;
    max-width: 80%;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e1e7ef;
    border-radius: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chat-message.mine {
    align-self: flex-end;
    background: #e4eefb;
    border-color: #cbdcf0;
}

.chat-message small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 10px;
}

#chat-status {
    font-size: 12px;
    color: #64748b;
}

#chat-form button,
#chat-older {
    width: auto;
}

#chat-older {
    font-size: 12px;
    background: #eaf1fa;
    color: #123574;
}

.corporate-notification {
    margin-top: 15px;
    padding: 18px;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
}

.corporate-notification.unread {
    border-left: 4px solid #285b99;
    background: #f4f8fd;
}

@media (max-width: 640px) {
    .chat-history {
        height: 360px;
        padding: 10px;
    }

    .chat-message {
        max-width: 92%;
    }
}

/* END AIRSPEED COMMUNICATION CSS */

/* BEGIN AIRSPEED CALENDAR CSS */

.calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.calendar-navigation a {
    padding: 8px 14px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    font-weight: 600;
}

.calendar-scroll {
    overflow-x: auto;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(110px, 1fr));
    gap: 5px;
    min-width: 770px;
}

.calendar-weekday {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.calendar-day, .calendar-empty {
    min-height: 115px;
    padding: 8px;
    border: 1px solid #e1e7ef;
    border-radius: 7px;
    min-width: 0;
}

.calendar-empty {
    background: #f5f7fa;
}

.calendar-today {
    border: 2px solid #285b99;
    background: #f4f8fd;
}

.calendar-event, .calendar-birthday {
    display: block;
    margin-top: 5px;
    padding: 5px;
    border-radius: 4px;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.calendar-geral {
    background: #e1ecfa;
    color: #123574;
}

.calendar-pessoal {
    background: #e2f3e9;
    color: #22633c;
}

.calendar-departamento {
    background: #eee8f9;
    color: #65449a;
}

.calendar-birthday {
    background: #fef3c7;
    color: #854d0e;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px;
    color: #64748b;
}

.calendar-columns {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 20px;
    margin-top: 20px;
}

.calendar-list-event {
    padding: 18px 0;
    border-bottom: 1px solid #e1e7ef;
}

.calendar-list-event p {
    font-size: 13px;
}

.calendar-remove {
    width: auto;
    padding: 8px 12px;
    background: #fff1f1;
    color: #991b1b;
    font-size: 12px;
}

.calendar-remove:hover {
    background: #fee2e2;
}

.birthday-person {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e1e7ef;
}

.birthday-person .directory-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin: 0;
    font-size: 17px;
}

.birthday-person p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 900px) {
    .calendar-columns {
        grid-template-columns: 1fr;
    }
}

/* END AIRSPEED CALENDAR CSS */
