:root {
    --app-bg: #f6f3f3;
    --app-surface: #ffffff;
    --app-text: #1b1616;
    --app-muted: #6a5858;
    --app-primary: #b11226;
    --app-primary-soft: #fbe8eb;
    --app-border: #ead7da;
    --app-success: #1f6a45;
    --app-warning: #9c4a16;
    --app-danger: #b42318;
    --app-shadow: 0 14px 34px rgba(30, 18, 18, 0.08);
    --app-radius: 14px;
    --app-layout-max: 1880px;
    --app-layout-inline: clamp(0.85rem, 2vw, 1.5rem);
}

html,
body {
    min-height: 100%;
}

body,
.app-body {
    background: radial-gradient(circle at top right, #ffffff 0%, #f8ecee 22%, var(--app-bg) 58%, #f3efef 100%);
    color: var(--app-text);
    font-family: "Manrope", "Segoe UI", sans-serif;
}

a {
    color: #8f1626;
    text-decoration-color: rgba(143, 22, 38, 0.32);
}

a:hover {
    color: #6e101d;
}

.app-shell {
    width: min(100%, var(--app-layout-max));
    max-width: var(--app-layout-max);
    margin: 0 auto;
    padding-inline: var(--app-layout-inline);
    position: relative;
    z-index: 1;
}

.app-user-table {
    margin-left: auto;
}

.app-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 246, 0.98));
    border: 1px solid rgba(234, 215, 218, 0.95);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    padding: 1rem 1.15rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1200;
    overflow: visible;
}

.app-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-top-left-radius: var(--app-radius);
    border-top-right-radius: var(--app-radius);
    background: linear-gradient(90deg, #1f0d11 0%, #7f1322 45%, #b11226 100%);
    pointer-events: none;
}

.app-header-main {
    display: grid;
    grid-template-columns: auto minmax(320px, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.app-brand-block {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 0 0 auto;
}

.app-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    color: #231717;
}

.app-brand-copy strong {
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.app-brand-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--app-primary);
}

.app-user-panel {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.app-user-avatar {
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: hidden;
    background: #240d11;
    border: 2px solid #f0c5cd;
    box-shadow: 0 6px 14px rgba(177, 18, 38, 0.18);
    flex: 0 0 auto;
}

.app-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-user-avatar-button {
    width: 1.75rem;
    height: 1.75rem;
    margin-right: 0.15rem;
}

.app-top-btn {
    min-height: 42px;
    padding-inline: 0.95rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.app-nav-tools {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.app-context-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.app-context-chip {
    border: 1px solid #e6c6cd;
    background: #fff;
    color: #5b232d;
    border-radius: 999px;
    padding: 0.3rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-context-chip.active {
    border-color: var(--app-primary);
    background: var(--app-primary);
    color: #fff;
}

.app-menu-search-wrap {
    position: relative;
}

.app-menu-search-wrap-top {
    max-width: 760px;
    width: 100%;
}

.app-menu-search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8f5761;
    pointer-events: none;
}

#appMenuSearch {
    padding-left: 2rem;
    min-height: 42px;
    border-radius: 999px;
    background: #fff;
}

.app-menu-search-results {
    position: absolute;
    top: calc(100% + 0.2rem);
    left: 0;
    right: 0;
    z-index: 1080;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--app-shadow);
    max-height: 320px;
    overflow-y: auto;
    padding: 0.35rem;
}

.app-menu-search-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    color: #2f1d21;
}

.app-menu-search-link:hover {
    background: #fff1f3;
}

.app-search-context {
    color: #8a5a63;
    font-size: 0.72rem;
    font-weight: 700;
}

.app-favorite-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.app-favorite-actions > .btn,
.app-favorite-actions > .dropdown > .btn {
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(38, 20, 24, 0.16);
    background: linear-gradient(135deg, #ffffff 0%, #faf7f7 55%, #f2ecec 100%);
    color: #32161b;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    padding-inline: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    box-shadow: 0 6px 14px rgba(25, 12, 12, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.app-favorite-actions > .btn i,
.app-favorite-actions > .dropdown > .btn i {
    color: #8e1726;
}

.app-favorite-actions > .btn:hover,
.app-favorite-actions > .btn:focus,
.app-favorite-actions > .dropdown > .btn:hover,
.app-favorite-actions > .dropdown > .btn:focus,
.app-favorite-actions > .dropdown > .btn.show {
    border-color: transparent;
    background: linear-gradient(115deg, #241015 0%, #891628 46%, #b11226 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(98, 16, 30, 0.28);
}

.app-favorite-actions > .btn:hover i,
.app-favorite-actions > .btn:focus i,
.app-favorite-actions > .dropdown > .btn:hover i,
.app-favorite-actions > .dropdown > .btn:focus i,
.app-favorite-actions > .dropdown > .btn.show i {
    color: #fff;
}

.app-account-btn {
    min-height: 42px;
    border-radius: 999px;
    background: #fff7f8;
    border: 1px solid #efd7dc;
    color: #53171f;
    padding-inline: 0.95rem;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 280px;
}

.app-account-btn:hover,
.app-account-btn:focus {
    background: #fff1f3;
    border-color: #e9c8cf;
    color: #401118;
    box-shadow: none;
}

.app-account-menu form {
    margin: 0;
}

.app-account-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem 0.35rem;
}

.app-account-summary-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
    border: 2px solid #f0c5cd;
    box-shadow: 0 8px 18px rgba(177, 18, 38, 0.16);
}

.app-account-summary-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-account-summary-text {
    min-width: 0;
}

.app-account-summary-text strong {
    display: block;
    color: #2a1418;
    line-height: 1.3;
}

.app-account-summary-text span {
    display: block;
    margin-top: 0.15rem;
    color: #7d5b61;
    font-size: 0.78rem;
    word-break: break-word;
}

.app-account-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.app-favorites-menu {
    min-width: 260px;
}

.app-favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.app-favorite-empty {
    color: #6b7c91;
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
}

.app-link-muted {
    opacity: 0.45;
}

.app-logo {
    margin-bottom: 0.75rem;
}

.app-logo img {
    width: 104px;
    height: auto;
    filter: drop-shadow(0 12px 16px rgba(177, 18, 38, 0.16));
}

.app-nav {
    background: var(--app-surface);
    padding: 0.8rem;
    border-radius: var(--app-radius);
    border: 0;
    box-shadow: var(--app-shadow);
    position: relative;
    z-index: 1210;
    overflow: visible;
}

.app-nav-integrated {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    z-index: 1215;
}

.app-nav .dropdown,
.app-account-dropdown,
.app-favorite-actions .dropdown {
    position: relative;
}

.app-nav .dropdown-menu,
.app-account-dropdown .dropdown-menu,
.app-favorite-actions .dropdown-menu {
    z-index: 1300;
}

.app-nav-scroll {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: hidden;
    gap: 0.5rem;
    scrollbar-width: thin;
}

.app-nav-scroll .nav-item {
    flex: 0 0 auto;
}

.app-nav .nav-link {
    color: var(--app-text) !important;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 0.55rem 0.9rem;
    font-weight: 600;
}

.app-nav .nav-link.dropdown-toggle,
.app-nav .nav-link[href="/"] {
    background: transparent;
    border: 0;
}

.app-mobile-shell {
    display: none;
}

.app-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    background: linear-gradient(120deg, #2a1014 0%, #8f1728 55%, #b11226 100%);
    border-radius: 12px;
    padding: 0.5rem 0.6rem;
    color: #fff;
}

.app-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

.app-mobile-brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #fff;
}

.app-mobile-brand strong {
    font-size: 1.12rem;
    line-height: 1;
    white-space: nowrap;
}

.app-mobile-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.app-mobile-notify,
.app-mobile-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.app-mobile-menu-btn {
    font-size: 1.15rem;
}

.app-mobile-notify-badge {
    position: absolute;
    top: -0.3rem;
    right: -0.35rem;
    min-width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.28rem;
    border: 2px solid #8f1728;
}

.app-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(86vw, 360px);
    background: #f8f4f5;
    box-shadow: -14px 0 28px rgba(48, 13, 20, 0.3);
    transform: translateX(100%);
    transition: transform 0.26s ease;
    z-index: 1610;
    display: flex;
    flex-direction: column;
}

.app-mobile-drawer.is-open {
    transform: translateX(0);
}

.app-mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 10, 12, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 1600;
}

.app-mobile-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.app-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid #e8d5d9;
    background: #fff;
}

.app-mobile-drawer-body {
    padding: 0.7rem;
    overflow: auto;
}

.app-mobile-account-card {
    background: #ffffff;
    border: 1px solid #e8d5d9;
    border-radius: 14px;
    padding: 0.72rem;
    margin-bottom: 0.7rem;
    box-shadow: none;
}

.app-mobile-account-head {
    display: flex;
    align-items: center;
    gap: 0.58rem;
}

.app-mobile-account-avatar {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid #f0c5cd;
    background: #240d11;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.app-mobile-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-mobile-account-text {
    min-width: 0;
    display: grid;
}

.app-mobile-account-text strong {
    font-size: 0.83rem;
    font-weight: 800;
    color: #2e1519;
    line-height: 1.2;
    word-break: break-word;
}

.app-mobile-account-text span {
    font-size: 0.72rem;
    color: #7d6168;
    line-height: 1.2;
    word-break: break-word;
}

.app-mobile-account-actions {
    margin-top: 0.62rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.app-mobile-header-shortcuts {
    margin-top: 0.1rem;
}

.app-mobile-account-btn {
    width: 100%;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid #e2c4cb;
    background: #fff6f8;
    color: #531a24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 700;
}

.app-mobile-account-btn:hover,
.app-mobile-account-btn:focus {
    background: #ffeef2;
    color: #3d121a;
}

.app-mobile-account-btn-danger {
    border-color: #ebc7cf;
    color: #8f1728;
    background: #fff3f5;
}

.app-mobile-account-btn-danger:hover,
.app-mobile-account-btn-danger:focus {
    background: #ffe8ed;
    color: #701120;
}

.app-mobile-account-actions form {
    margin: 0;
}

.app-mobile-header-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.app-mobile-header-shortcut {
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid #e7d1d6;
    background: #fff;
    color: #3b1a20;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    position: relative;
}

.app-mobile-pending-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    padding: 0 0.35rem;
    background: #d22d2d;
    color: #fff;
    font-size: 0.67rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.app-mobile-header-shortcut:hover,
.app-mobile-header-shortcut:focus {
    background: #fff1f3;
    color: #2f1418;
    border-color: #dcb4bc;
}

.app-mobile-header-accordion {
    margin-top: 0.15rem;
}

.app-mobile-header-accordion .accordion-item {
    border: 1px solid #e9d8dd;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.45rem;
    background: #fff;
}

.app-mobile-header-accordion .accordion-button {
    font-weight: 800;
    color: #34171c;
    background: #fff8fa;
    box-shadow: none;
}

.app-mobile-header-accordion .accordion-button:not(.collapsed) {
    background: #fdeef2;
    color: #2b1317;
}

.app-mobile-header-accordion .accordion-body {
    padding: 0.45rem 0.55rem;
    display: grid;
    gap: 0.35rem;
}

.app-mobile-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    border-radius: 10px;
    border: 1px solid #f1dfe3;
    background: #fff;
    color: #3f1b22;
    text-decoration: none;
    font-weight: 700;
    padding: 0.48rem 0.6rem;
}

.app-mobile-menu-link > span:first-of-type {
    margin-right: auto;
}

.app-mobile-link-badge {
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    padding: 0 0.35rem;
    background: #b11226;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-mobile-menu-link:hover,
.app-mobile-menu-link:focus {
    background: #fff2f5;
    border-color: #e8c3cb;
    color: #2f1217;
}

.app-mobile-bottom-nav {
    display: none;
}

.app-mobile-bottom-link {
    color: #dbe7df;
    text-decoration: none;
}

.app-page-shell {
    width: min(100%, var(--app-layout-max)) !important;
    max-width: var(--app-layout-max);
    margin: 0 auto;
    padding-inline: var(--app-layout-inline);
}

.app-page-content {
    padding: 0.4rem 0 1.75rem;
}

.app-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff7f8 0%, #fdeff1 55%, #f8dde2 100%);
    color: #2f171b;
    border-radius: 20px;
    border: 1px solid #efdadf;
    box-shadow: 0 16px 34px rgba(120, 18, 34, 0.1);
}

.app-page-hero > div {
    flex: 1 1 auto;
    min-width: 0;
}

.app-page-hero-compact {
    padding: 1.15rem 1.3rem;
}

.app-page-hero-admin {
    padding: 1.1rem 1.35rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff9fa 0%, #fff3f5 52%, #fae7eb 100%);
    box-shadow: 0 12px 24px rgba(120, 18, 34, 0.08);
}

.app-page-hero-collab {
    background: linear-gradient(130deg, #fff9f9 0%, #ffeef1 48%, #f8dde3 100%);
    box-shadow: 0 14px 28px rgba(116, 16, 33, 0.1);
}

.app-page-hero-admin .app-page-title {
    font-size: clamp(1.45rem, 1.55vw, 1.95rem);
}

.app-page-hero-admin .app-page-subtitle {
    max-width: 58rem;
}

.app-dashboard-shell .app-page-content {
    padding-top: 0.3rem;
}

.app-hero-sidepanel {
    width: min(100%, 380px);
    flex: 0 0 clamp(250px, 29vw, 380px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #efd8dd;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.app-hero-sidepanel-title {
    display: inline-block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 800;
    color: #7d1f2f;
    margin-bottom: 0.5rem;
}

.app-hero-sidepanel-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.app-hero-sidepanel-links a {
    display: block;
    text-decoration: none;
    font-weight: 700;
    color: #5b1a25;
    background: #fff;
    border: 1px solid #f0d6dc;
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    transition: all 0.2s ease;
}

.app-hero-sidepanel-links a:hover {
    background: #fff5f7;
    border-color: #e5b7c2;
    color: #43131b;
}

.app-hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.app-hero-stat-item {
    border-radius: 10px;
    padding: 0.52rem 0.6rem;
    border: 1px solid #f1dbe0;
    background: #fff;
}

.app-hero-stat-item small {
    display: block;
    color: #82515a;
    font-weight: 700;
    margin-bottom: 0.12rem;
}

.app-hero-stat-item strong {
    display: block;
    font-size: 1.06rem;
    line-height: 1.15;
    color: #2e1519;
}

.app-login-shell {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 1.2rem;
}

.app-login-stage {
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    align-items: stretch;
    min-height: calc(100vh - 3rem);
}

.app-login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(255, 247, 248, 0.96), rgba(250, 229, 233, 0.96));
    border: 1px solid #efd7dc;
    border-radius: 28px;
    box-shadow: var(--app-shadow);
}

.app-login-brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-login-version {
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    background: #fff;
    color: #6d2a35;
    border: 1px solid #efd7dc;
    font-size: 0.75rem;
    font-weight: 800;
}

.app-login-copy h2 {
    margin: 0.35rem 0 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    font-weight: 800;
    color: #2d1418;
}

.app-login-copy p {
    margin: 1rem 0 0;
    max-width: 40rem;
    font-size: 1rem;
    color: #6a4d53;
}

.app-login-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.app-login-highlight-card {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #f0dce0;
}

.app-login-highlight-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #39181d;
}

.app-login-highlight-card span {
    color: #6b5257;
    font-size: 0.92rem;
}

.app-login-card-wrap {
    display: flex;
    align-items: center;
}

.app-login-card {
    width: 100%;
    border: 1px solid #edd9de;
    border-radius: 28px;
    box-shadow: 0 20px 48px rgba(72, 18, 26, 0.12);
    background: rgba(255, 255, 255, 0.96);
}

.app-login-card-head {
    margin-bottom: 1.25rem;
}

.app-login-card-head h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #2c1518;
}

.app-login-card-head p {
    margin: 0.45rem 0 0;
    color: #73595e;
}

.app-login-form label {
    font-weight: 700;
    color: #532129;
}

.app-profile-page {
    width: min(100%, 1480px) !important;
}

.app-profile-card {
    overflow: hidden;
}

.app-profile-form .card-body {
    padding: 1.35rem;
}

.app-profile-photo-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}

.app-profile-photo-frame {
    width: 160px;
    height: 160px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #2a1014, #b11226);
    box-shadow: 0 18px 38px rgba(177, 18, 38, 0.22);
}

.app-profile-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-profile-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.app-profile-role {
    margin: -0.35rem 0 0;
    color: var(--app-muted);
    font-weight: 700;
}

.app-profile-meta-list {
    width: 100%;
    display: grid;
    gap: 0.8rem;
    margin-top: 0.35rem;
}

.app-profile-meta-list > div {
    background: #fff6f7;
    border: 1px solid #f1d8dc;
    border-radius: 14px;
    padding: 0.85rem 1rem;
}

.app-profile-meta-label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--app-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.app-profile-upload {
    width: 100%;
    text-align: left;
    margin-top: 0.3rem;
}

.app-profile-upload-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.app-profile-photo-status {
    font-size: 0.8rem;
    color: var(--app-muted);
    font-weight: 600;
}

.app-profile-section-head {
    margin-bottom: 1rem;
}

.app-profile-section-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.app-profile-section-head p {
    margin: 0.3rem 0 0;
    color: var(--app-muted);
}

.app-profile-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-statement-page {
    width: min(100%, 1540px) !important;
}

.app-statement-hero {
    background: linear-gradient(135deg, #fff8f9 0%, #fff1f4 58%, #f9e4e8 100%);
    border-color: #edd6dc;
    box-shadow: 0 14px 28px rgba(108, 22, 35, 0.09);
}

.app-statement-card {
    border: 1px solid #e9d7dc;
    box-shadow: 0 14px 28px rgba(75, 20, 30, 0.08);
}

.app-statement-intro h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2d1519;
    font-size: 1.1rem;
    font-weight: 800;
}

.app-statement-intro ol {
    margin: 0.9rem 0 0;
    padding-left: 1.15rem;
    color: #5e4147;
}

.app-statement-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
    overflow: visible;
    padding-bottom: 0;
}

.app-statement-step {
    position: relative;
    min-width: 0;
    border: 1px solid #e8d6db;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fff7f8 100%);
    padding: 0.75rem 0.85rem 0.7rem;
    box-shadow: 0 10px 18px rgba(83, 24, 34, 0.06);
}

.app-statement-step::after {
    display: none;
}

.app-statement-step:last-child::after {
    display: none;
}

.app-statement-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #2a1215, #b11226);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.app-statement-step strong {
    display: block;
    color: #2d1519;
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.app-statement-step p {
    margin: 0;
    color: #62454b;
    font-size: 0.8rem;
    line-height: 1.35;
}

.app-statement-step-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.app-statement-step-badges .badge {
    font-size: 0.68rem;
    line-height: 1;
    padding: 0.42rem 0.55rem;
}

.app-ferias-create-btn,
.app-statement-action-btn {
    min-height: 42px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid #8f1322;
    background: #b11226;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 18px rgba(88, 14, 24, 0.16);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.app-ferias-create-btn:hover,
.app-ferias-create-btn:focus,
.app-statement-action-btn:hover,
.app-statement-action-btn:focus {
    color: #fff;
    border-color: #6f0e1a;
    background: #8f1322;
    box-shadow: 0 12px 22px rgba(98, 16, 30, 0.24);
}

.app-os-rect-btn {
    border-radius: 10px !important;
}

.app-ferias-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.app-ferias-icon-btn {
    min-height: 34px;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.app-ferias-icon-btn i,
.app-ferias-icon-btn .bi {
    font-size: 0.95rem;
    line-height: 1;
}

.app-ferias-icon-btn-success {
    background: #1f6a45;
    color: #fff;
}

.app-ferias-icon-btn-danger {
    background: #b42318;
    color: #fff;
}

.app-ferias-icon-btn-primary {
    background: #b11226;
    color: #fff;
}

.app-curriculo-preview-btn {
    min-height: 28px;
    padding: 0.28rem 0.5rem;
}

.app-curriculo-preview-btn .bi {
    font-size: 0.82rem;
}

.app-ferias-icon-btn-secondary {
    background: #394e6a;
    color: #fff;
}

.app-ferias-icon-btn-ghost {
    background: #f5eff1;
    color: #7c3a45;
    border-color: #e1cad0;
}

.app-ferias-icon-btn:hover,
.app-ferias-icon-btn:focus {
    color: #fff;
    filter: brightness(0.96);
    text-decoration: none;
}

.app-statement-intro li + li {
    margin-top: 0.3rem;
}

.app-statement-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.95rem;
}

.app-statement-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.9rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.app-list-filter {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: min(100%, 340px);
}

.app-list-filter > .bi {
    color: var(--app-muted);
}

.app-list-filter input {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .app-list-filter {
        width: 100%;
        margin-left: 0 !important;
    }
}

.app-statement-intro-simple {
    margin-bottom: 0.8rem;
}

    .app-statement-step {
        min-width: 170px;
    }

    .app-statement-stepper {
        gap: 0.55rem;
    }

.app-statement-table thead th {
    white-space: nowrap;
}

.app-statement-table td {
    vertical-align: middle;
}

.app-statement-page-erp {
    width: min(100%, 1560px) !important;
}

.app-statement-hero-erp {
    background: linear-gradient(180deg, #fafbfc 0%, #f3f5f7 100%);
    border-color: #d7dee7;
    box-shadow: 0 8px 20px rgba(20, 33, 52, 0.08);
    color: #1d2735;
}

.app-statement-page-erp .app-page-kicker {
    color: #394e6a;
}

.app-statement-page-erp .app-page-title {
    color: #1b2838;
    font-size: clamp(1.55rem, 1.95vw, 2rem);
}

.app-statement-page-erp .app-page-subtitle {
    color: #4f6176;
}

.app-statement-card-erp {
    border: 1px solid #d9e1ea;
    box-shadow: 0 8px 20px rgba(18, 33, 50, 0.07);
    background: #fff;
}

.app-statement-intro-erp h3 {
    color: #233348;
    font-size: 1.03rem;
}

.app-statement-intro-erp ol {
    color: #4a5e77;
}

.app-statement-page-erp .app-statement-status-list .badge {
    border: 1px solid #d2dae5;
    font-weight: 700;
}

.app-statement-table-erp thead th {
    background: #f4f7fa;
    color: #314760;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #d8e1eb;
}

.app-statement-table-erp tbody td {
    border-color: #e5ebf2;
}

.app-statement-table-erp tbody tr:hover {
    background: #f8fbfe;
}

.app-plantao-table {
    min-width: 1320px;
    table-layout: fixed;
}

.app-plantao-table th,
.app-plantao-table td {
    vertical-align: top;
}

.app-plantao-table .app-col-data {
    width: 122px;
    white-space: nowrap;
    text-align: center;
}

.app-plantao-table .app-col-colaborador,
.app-plantao-table .app-col-substituto {
    min-width: 200px;
    white-space: normal;
    word-break: break-word;
}

.app-plantao-table .app-col-unidade,
.app-plantao-table .app-col-aprovado {
    min-width: 170px;
    white-space: normal;
    word-break: break-word;
}

.app-plantao-table .app-col-status {
    min-width: 230px;
}

.app-plantao-table .app-col-status .badge {
    display: inline-flex;
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.2;
}

.app-plantao-table .app-col-acoes {
    width: 178px;
}

.app-plantao-table .app-col-acoes .app-ferias-row-actions {
    justify-content: flex-end;
}

.app-plantao-table .app-col-acoes .app-ferias-row-actions > span {
    display: contents;
}

.app-entities-page {
    width: min(100%, 1680px) !important;
}

.app-entities-hero {
    background: linear-gradient(130deg, #fff8f9 0%, #fff0f3 50%, #f8dfe4 100%);
    border-color: #edd3da;
    box-shadow: 0 14px 30px rgba(102, 18, 33, 0.1);
}

.app-entities-card {
    border: 1px solid #e8d4d9;
    box-shadow: 0 14px 30px rgba(70, 20, 29, 0.08);
}

.app-entities-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.app-entities-summary-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-entities-stat {
    border: 1px solid #efd9de;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fff7f9 100%);
    padding: 0.85rem 0.95rem;
}

.app-entities-stat span {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #88535d;
    font-weight: 800;
}

.app-entities-stat strong {
    display: block;
    margin-top: 0.2rem;
    color: #2a1519;
    font-size: 1.1rem;
    line-height: 1.25;
}

.app-entities-health {
    max-width: 460px;
}

.app-entities-health label {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7f5059;
    font-weight: 800;
}

.app-entities-health-compact {
    max-width: 280px;
}

.app-entities-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.app-entities-toolbar-start {
    justify-content: flex-start;
}

.app-entities-table td {
    vertical-align: middle;
}

.app-entities-section-title {
    margin: 0 0 0.8rem;
    font-size: 1rem;
    font-weight: 800;
    color: #33161a;
}

.app-entity-form-page {
    width: min(100%, 1180px) !important;
}

.app-entity-form-page-wide {
    width: min(100%, 1380px) !important;
}

.app-entity-form-card {
    border: 1px solid #e7d4d9;
    box-shadow: 0 14px 28px rgba(72, 20, 30, 0.08);
}

.app-entity-form-intro {
    margin-bottom: 1rem;
}

.app-entity-form-intro h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c1518;
    font-size: 1.08rem;
    font-weight: 800;
}

.app-entity-form label {
    font-weight: 700;
    color: #58232c;
}

.app-entity-form .form-group {
    margin-bottom: 0.9rem;
}

.app-entity-form-actions {
    margin-top: 0.2rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

.app-transport-export-form {
    margin-left: 0.2rem;
    vertical-align: middle;
}

.app-transport-toolbar .app-statement-action-btn {
    min-height: 42px;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
}

.app-transport-toolbar .app-transport-export-select {
    min-height: 42px;
    font-size: 0.9rem;
}

.app-transport-toolbar .app-transport-export-form .btn {
    min-height: 42px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
}

.app-transport-export-select {
    min-width: 130px;
}

.app-page-kicker {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a11d31;
}

.app-page-title {
    margin: 0;
    font-size: clamp(1.7rem, 2vw, 2.35rem);
    font-weight: 800;
}

.app-page-subtitle {
    max-width: 62rem;
    margin: 0.45rem 0 0;
    color: #69484f;
    font-size: 1rem;
}

.app-dashboard-shell .row {
    --bs-gutter-x: 1.3rem;
    --bs-gutter-y: 1.3rem;
}

.app-dashboard-shell .card {
    height: auto;
    border: 1px solid #e8d5d9;
    background: linear-gradient(180deg, #ffffff 0%, #fff9fa 100%);
    box-shadow: 0 14px 28px rgba(81, 20, 31, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-dashboard-shell .card-body {
    padding: 1.1rem 1.15rem;
}

.app-dashboard-shell .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(81, 20, 31, 0.13);
}

.app-dashboard-shell .card-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #2f171b;
}

.app-dashboard-shell .card-title a {
    color: inherit;
}

.app-dashboard-shell .card-text {
    color: #6a4b51;
    margin-bottom: 0;
}

.app-dashboard-shell .card-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 992px) {
    .app-dashboard-shell .card {
        height: 100%;
    }
}

.app-nav .nav-link.active,
.app-nav .nav-link:hover,
.app-nav .show > .nav-link {
    color: #fff !important;
    background-color: var(--app-primary);
}

.dropdown-menu {
    border: 1px solid var(--app-border);
    border-radius: 12px;
    box-shadow: var(--app-shadow);
}

.dropdown-scroll {
    max-height: 70vh;
    overflow-y: auto;
}

.card {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
}

.card .card-header {
    background: linear-gradient(135deg, #2a1215, var(--app-primary));
    color: #fff;
    border-top-left-radius: var(--app-radius);
    border-top-right-radius: var(--app-radius);
    font-weight: 700;
}

.alert {
    border: none;
    border-radius: 12px;
}

.table {
    border-color: var(--app-border);
}

.table thead th {
    background: #fff7f8;
    color: #5c232b;
    border-bottom-width: 1px;
}

.table-responsive,
.dataTables_wrapper {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    gap: 0.3rem;
}

.dataTables_wrapper .dataTables_paginate .page-link {
    color: #5a1f29;
    border: 1px solid #e3c7ce;
    background: #fffafb;
    border-radius: 9px;
    font-weight: 700;
    min-width: 2rem;
    text-align: center;
    box-shadow: none;
}

.dataTables_wrapper .dataTables_paginate .page-link:hover {
    color: #fff;
    border-color: #b11226;
    background: #b11226;
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    color: #fff;
    border-color: #2a1215;
    background: linear-gradient(135deg, #2a1215, #b11226);
}

.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
    color: #a78a91;
    border-color: #efdee2;
    background: #fff;
}

.dataTables_wrapper .dataTables_paginate .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(177, 18, 38, 0.14);
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: #ccd7e6;
}

.form-control:focus,
.form-select:focus {
    border-color: #d57282;
    box-shadow: 0 0 0 0.2rem rgba(177, 18, 38, 0.12);
}

.form-group {
    margin-bottom: 1rem;
}

.btn {
    border-radius: 10px;
    font-weight: 600;
}

.btn-outline-danger {
    border-color: #c74f4f;
    color: #983030;
}

.btn-outline-danger:hover {
    background-color: #b42318;
    border-color: #b42318;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background: #151111;
    border-color: #151111;
}

.badge {
    border-radius: 999px;
    padding: 0.45rem 0.6rem;
}

.app-alert-detail-card {
    border-radius: 10px;
    box-shadow: none;
}

.content-wrapper {
    background: transparent;
}

.mx-auto[style*="width: 90%"],
.mx-auto[style*="width: 75%"] {
    width: min(100%, 1820px) !important;
    padding-inline: 0.35rem;
}

.app-legacy-page-shell {
    width: min(100%, var(--app-layout-max)) !important;
    max-width: var(--app-layout-max);
    margin: 0 auto;
    padding-inline: var(--app-layout-inline);
}

.app-legacy-page-shell > .card:first-child,
.app-standard-hero-card {
    border-radius: 18px;
    border: 1px solid #edd8dd;
    background: linear-gradient(135deg, #fff8f9 0%, #fff2f4 56%, #f9e4e8 100%);
    box-shadow: 0 16px 30px rgba(96, 19, 33, 0.1);
}

.app-legacy-page-shell > .card:first-child .lead,
.app-standard-hero-card .lead {
    margin: 0;
    font-size: clamp(1.16rem, 1.2vw, 1.4rem);
    font-weight: 800;
    color: #2f141a;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.app-standard-form {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    padding: clamp(1rem, 1.8vw, 1.35rem);
}

.app-standard-form fieldset {
    border: 1px solid #ead9dd !important;
    border-radius: 14px;
    padding: 0.95rem 1rem 0.7rem !important;
    background: linear-gradient(180deg, #fffdfd 0%, #fff8f9 100%);
}

.app-standard-form legend {
    float: none;
    width: auto;
    margin-bottom: 0.55rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: #fbeaed;
    color: #5a1e28;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-standard-form .form-label,
.app-standard-form label {
    font-weight: 700;
    color: #412126;
    margin-bottom: 0.35rem;
    font-size: 0.86rem;
}

.app-standard-form .form-check-label {
    font-weight: 600;
    color: #3b2529;
}

.app-standard-form .form-check-input:checked {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.app-standard-form .btn,
.app-standard-action {
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.app-standard-form .btn-outline-danger,
.app-standard-action.btn-outline-danger {
    color: #951e2f;
    border-color: #d78a97;
    background: #fff;
}

.app-standard-form .btn-outline-danger:hover,
.app-standard-form .btn-outline-danger:focus,
.app-standard-action.btn-outline-danger:hover,
.app-standard-action.btn-outline-danger:focus {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, #281216 0%, #8f1728 48%, #b11226 100%);
}

.app-os-open-form {
    display: grid;
    gap: 1rem;
}

.app-os-choice-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e5d6da;
    border-radius: 10px;
    background: linear-gradient(180deg, #fffdfd 0%, #fff7f8 100%);
    box-shadow: 0 8px 18px rgba(99, 28, 41, 0.05);
    min-height: 100%;
}

.app-os-choice-card .form-check-input {
    margin-top: 0.25rem;
    flex: 0 0 auto;
}

.app-os-choice-card .form-check-label {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    cursor: pointer;
    margin-bottom: 0;
    line-height: 1.35;
}

.app-os-choice-card .form-check-label strong {
    color: #2e1f25;
    font-size: 0.96rem;
}

.app-os-choice-card .form-check-label span {
    color: #6f5360;
    font-size: 0.84rem;
}

.app-os-choice-card-radio:has(.form-check-input:checked) {
    border-color: #b11226;
    box-shadow: 0 0 0 3px rgba(177, 18, 38, 0.1);
}

.app-autocomplete-wrap {
    position: relative;
}

.app-autocomplete-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 1080;
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    border: 1px solid #e3d5d9;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(22, 32, 45, 0.12);
    max-height: 220px;
    overflow: auto;
}

.app-autocomplete-list:empty {
    display: none;
}

.app-autocomplete-list li {
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    color: #283645;
    font-weight: 600;
}

.app-autocomplete-list li:hover,
.app-autocomplete-list li:focus {
    background: #f8ecef;
}

.app-os-problema-results {
    display: grid;
    gap: 0.6rem;
}

.app-os-problema-results .app-os-choice-card {
    width: 100%;
}

.app-os-problema-results .app-os-problema-item {
    display: block;
}

.app-os-open-form #filtroProblema {
    background: #fff;
}

.app-os-open-form #filtroProblema:focus {
    border-color: #b11226;
    box-shadow: 0 0 0 0.2rem rgba(177, 18, 38, 0.12);
}

.app-table-standard,
.app-legacy-page-shell table.table,
.app-standard-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.app-table-standard thead th,
.app-legacy-page-shell table.table thead th,
.app-standard-table thead th {
    background: linear-gradient(180deg, #fff8f9 0%, #f9ecf0 100%);
    color: #4d1f27;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e7d3d8;
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
}

.app-table-standard tbody td,
.app-legacy-page-shell table.table tbody td,
.app-standard-table tbody td {
    color: #301a20;
    border-bottom-color: #f0e3e7;
    vertical-align: middle;
    padding-top: 0.66rem;
    padding-bottom: 0.66rem;
}

.app-table-standard tbody tr:nth-child(even),
.app-legacy-page-shell table.table tbody tr:nth-child(even),
.app-standard-table tbody tr:nth-child(even) {
    background: #fffafb;
}

.app-table-standard tbody tr:hover,
.app-legacy-page-shell table.table tbody tr:hover,
.app-standard-table tbody tr:hover {
    background: #fff2f4;
}

.app-standard-table-wrap,
.app-legacy-page-shell .table-responsive {
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: #fff;
    padding: 0.65rem;
    box-shadow: 0 10px 24px rgba(56, 22, 30, 0.08);
}

.app-os-page {
    width: min(100%, 1620px) !important;
}

.app-os-hero {
    border-color: #e6cfd6;
    background: linear-gradient(132deg, #fffaf9 0%, #fff1f2 52%, #f7dfe4 100%);
}

.app-os-card {
    border-color: #e5d2d8;
    box-shadow: 0 14px 28px rgba(94, 24, 38, 0.08);
}

.app-os-monthly-indicator {
    --indicator-color: #b42318;
    --indicator-surface: #fff1f0;
    display: grid;
    grid-template-columns: minmax(210px, auto) minmax(220px, 1fr);
    align-items: center;
    gap: 1.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid color-mix(in srgb, var(--indicator-color) 35%, white);
    border-left: 5px solid var(--indicator-color);
    border-radius: 8px;
    background: var(--indicator-surface);
}

.app-os-monthly-indicator-amarelo {
    --indicator-color: #9a6700;
    --indicator-surface: #fff8c5;
}

.app-os-monthly-indicator-verde {
    --indicator-color: #1a7f37;
    --indicator-surface: #dafbe1;
}

.app-os-monthly-indicator-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-os-monthly-indicator-icon {
    display: grid;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--indicator-color);
}

.app-os-monthly-indicator-summary > div,
.app-os-monthly-indicator-progress {
    min-width: 0;
}

.app-os-monthly-indicator-summary > div > span,
.app-os-monthly-indicator-progress > span {
    display: block;
    color: #4b3035;
    font-size: 0.8rem;
    font-weight: 700;
}

.app-os-monthly-indicator-summary strong {
    display: block;
    color: var(--indicator-color);
    font-size: 1.45rem;
    line-height: 1.15;
}

.app-os-monthly-indicator-summary small {
    font-size: 0.78rem;
}

.app-os-monthly-indicator-progress .progress {
    height: 0.65rem;
    margin-bottom: 0.35rem;
    background: rgba(255, 255, 255, 0.85);
}

.app-os-monthly-indicator-progress .progress-bar {
    background: var(--indicator-color);
}

@media (max-width: 767.98px) {
    .app-os-monthly-indicator {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.app-recursos-geral-table {
    table-layout: fixed;
    width: 100%;
}

.app-recursos-geral-table th,
.app-recursos-geral-table td {
    font-size: 0.82rem;
    padding: 0.48rem 0.42rem;
    vertical-align: top;
    line-height: 1.25;
}

.app-recursos-geral-table th {
    white-space: normal;
}

.app-recursos-geral-table td {
    white-space: normal;
    word-break: break-word;
}

.app-recursos-geral-table .app-recursos-col-nome {
    width: 14%;
}

.app-recursos-geral-table .app-recursos-col-unidade {
    width: 14%;
}

.app-recursos-geral-table .app-recursos-col-nota {
    width: 12%;
}

.app-recursos-geral-table .badge {
    display: inline-flex;
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

.app-recursos-geral-table .app-recursos-badge {
    word-break: break-word;
}

.app-recursos-mobile-badge {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: left;
    line-height: 1.2;
}

@media (max-width: 1650px) {
    .app-recursos-geral-table .app-recursos-col-proximo {
        display: none;
    }
}

@media (max-width: 1400px) {
    .app-recursos-geral-table th,
    .app-recursos-geral-table td {
        font-size: 0.78rem;
        padding: 0.42rem 0.36rem;
    }

    .app-recursos-geral-table .app-recursos-col-turno,
    .app-recursos-geral-table .app-recursos-col-regime {
        display: none;
    }
}

.app-os-heading-card {
    border: 1px solid #ecd9df;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fff8fa 100%);
}

.app-os-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
    margin-bottom: 0.95rem;
}

.app-os-toolbar .btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.app-os-toolbar-start {
    justify-content: flex-start;
}

.app-os-pagination {
    padding: 0.7rem 0.8rem;
    border: 1px solid #ecd9df;
    border-radius: 12px;
    background: #fffafb;
}

.app-os-pagination .page-link {
    color: #5a1f29;
    border: 1px solid #e3c7ce;
    background: #fffafb;
    border-radius: 9px;
    font-weight: 700;
    min-width: 2rem;
    text-align: center;
    box-shadow: none;
}

.app-os-pagination .page-link:hover {
    color: #fff;
    border-color: #b11226;
    background: #b11226;
}

.app-os-pagination .page-item.active .page-link {
    color: #fff;
    border-color: #2a1215;
    background: linear-gradient(135deg, #2a1215, #b11226);
}

.app-os-pagination .page-item.disabled .page-link {
    color: #a78a91;
    border-color: #efdee2;
    background: #fff;
}

.app-os-pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(177, 18, 38, 0.14);
}

.app-os-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.6rem;
}

.app-os-filter-form label {
    font-weight: 700;
}

.app-os-metric-card {
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fff8fa 100%);
}

.app-os-tabs .nav-link {
    color: #6a1f2c;
    font-weight: 700;
}

.app-os-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(120deg, #731022 0%, #b11226 100%);
    border-color: #b11226;
}

.app-os-chart-card {
    border: 1px solid #e9d7dc;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(84, 23, 34, 0.08);
}

.app-os-chart-title {
    margin: 0 0 0.9rem;
    font-size: 1rem;
    font-weight: 800;
    color: #2f151c;
}

.app-os-chart-wrap {
    position: relative;
    min-height: 280px;
}

.app-os-chart-wrap-tall {
    min-height: 360px;
}

.app-os-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.app-os-resolver-modal .modal-content,
.app-os-resolver-modal .app-os-resolver-form {
    max-height: calc(100vh - 3.5rem);
}

.app-os-resolver-modal .app-os-resolver-form {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

.app-os-resolver-modal .modal-header,
.app-os-resolver-modal .modal-footer {
    flex-shrink: 0;
}

.app-os-resolver-modal .modal-body {
    min-height: 0;
    overflow-y: auto;
}

.app-os-resolver-modal .app-os-problem-summary {
    height: auto;
    min-height: 0;
    text-align: left;
}

.app-os-resolver-modal .app-os-problem-summary-text {
    max-height: 10rem;
    overflow-y: auto;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.app-trip-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(18, 33, 50, 0.07);
}

.app-trip-summary-item {
    min-width: 0;
    padding: 0.9rem 1rem;
    border-right: 1px solid #e5ebf2;
}

.app-trip-summary-item:last-child {
    border-right: 0;
}

.app-trip-summary-item > span {
    display: block;
    margin-bottom: 0.25rem;
    color: #617187;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.app-trip-summary-item strong {
    color: #233348;
    overflow-wrap: anywhere;
}

.app-trip-summary-highlight strong {
    color: #9f1426;
    font-size: 1.15rem;
}

.app-expense-entry-list {
    display: grid;
    gap: 0.75rem;
}

.app-expense-entry {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) 2.25rem;
    align-items: end;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #f8fafc;
}

.app-expense-entry-number {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    align-self: center;
    border-radius: 50%;
    color: #fff;
    background: #394e6a;
    font-weight: 800;
}

.app-expense-entry-fields {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(135px, 0.65fr) minmax(130px, 0.55fr) minmax(220px, 1fr);
    gap: 0.75rem;
}

.app-expense-entry-fields label {
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.app-expense-form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-expense-batch-total {
    display: flex;
    min-width: 150px;
    margin-left: auto;
    flex-direction: column;
    text-align: right;
}

.app-expense-batch-total span {
    color: #617187;
    font-size: 0.75rem;
    font-weight: 700;
}

.app-expense-batch-total strong {
    color: #9f1426;
    font-size: 1.1rem;
}

.app-reembolso-preview-body {
    min-height: min(70vh, 720px);
    padding: 0;
    background: #eef2f6;
}

.app-reembolso-preview-frame {
    display: block;
    width: 100%;
    min-height: min(70vh, 720px);
    border: 0;
    background: #fff;
}

@media (max-width: 991.98px) {
    .app-trip-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-trip-summary-item:nth-child(2) {
        border-right: 0;
    }

    .app-trip-summary-item:nth-child(-n+2) {
        border-bottom: 1px solid #e5ebf2;
    }

    .app-expense-entry-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .app-trip-summary,
    .app-expense-entry-fields {
        grid-template-columns: 1fr;
    }

    .app-trip-summary-item {
        border-right: 0;
        border-bottom: 1px solid #e5ebf2;
    }

    .app-trip-summary-item:last-child {
        border-bottom: 0;
    }

    .app-expense-entry {
        grid-template-columns: 1fr 2.25rem;
    }

    .app-expense-entry-number {
        grid-column: 1 / -1;
    }

    .app-expense-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .app-expense-batch-total {
        margin-left: 0;
        text-align: left;
    }
}

.app-dashboard-shell .app-entities-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-dashboard-shell .app-os-filter-form {
    align-items: stretch;
}

.app-dashboard-shell .app-os-filter-form .flex-grow-1 {
    min-width: 220px;
}

.app-dashboard-shell .app-os-filter-form .btn {
    align-self: flex-end;
}

.app-os-report-form {
    display: grid;
    gap: 1rem;
}

.app-os-report-form .btn {
    min-width: 170px;
}

.app-report-summary-list {
    display: grid;
    gap: 0.65rem;
}

.app-report-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    border: 1px solid #ead9dd;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffdfd 0%, #fff7f8 100%);
    box-shadow: 0 8px 16px rgba(99, 28, 41, 0.05);
}

.app-report-summary-item span {
    color: #47252d;
    font-weight: 700;
    line-height: 1.35;
}

.app-report-summary-item strong {
    color: #b11226;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.app-mobile-toggle-panel.is-collapsed-mobile {
    display: block;
}

@media (max-width: 992px) {
    .app-dashboard-shell .app-entities-summary-grid {
        grid-template-columns: 1fr;
    }

    .app-os-chart-wrap {
        min-height: 240px;
    }

    .app-os-chart-wrap-tall {
        min-height: 320px;
    }

    .app-os-report-form .btn {
        width: 100%;
        min-width: 0;
    }

    .app-report-summary-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-report-summary-item strong {
        white-space: normal;
    }

    .app-mobile-toggle-panel.is-collapsed-mobile {
        display: none;
    }

    .app-mobile-toggle-panel.is-expanded-mobile {
        display: block;
    }
}

.app-desktop-only {
    display: block !important;
}

.app-mobile-only {
    display: none !important;
}

.app-mobile-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}

.app-mobile-card {
    border: 1px solid #e6dde0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fff9fa 70%, #fff4f6 100%);
    box-shadow: 0 12px 22px rgba(66, 20, 30, 0.08);
    padding: 0.9rem;
}

.app-mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.55rem;
    margin-bottom: 0.6rem;
}

.app-mobile-card-head .badge {
    font-size: 0.67rem;
    letter-spacing: 0.04em;
    padding: 0.42rem 0.58rem;
    border-radius: 999px;
}

.app-mobile-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #2e161a;
    line-height: 1.3;
}

.app-mobile-meta {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.7rem;
}

.app-mobile-meta-item {
    min-width: 0;
}

.app-mobile-meta-item dt {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7d6168;
    margin-bottom: 0.15rem;
}

.app-mobile-meta-item dd {
    margin: 0;
    font-size: 0.9rem;
    color: #26171b;
    line-height: 1.3;
    word-break: break-word;
}

.app-mobile-actions {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.app-mobile-actions .btn {
    width: 100%;
    min-height: 42px;
    justify-content: center;
}

.app-mobile-visual-hide {
    position: static;
}

@media (max-width: 992px) {
    body.app-body.app-mobile-drawer-open {
        overflow: hidden;
    }

    .app-user-table,
    .app-user-table tbody,
    .app-user-table tr,
    .app-user-table td {
        display: block;
        width: 100%;
    }

    .app-user-table td {
        text-align: right;
        padding-bottom: 0.4rem;
    }

    .app-nav {
        gap: 0.35rem;
    }

    .app-nav-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .app-nav .nav-link {
        font-size: 0.92rem;
    }

    .app-header {
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .app-header::before {
        display: none;
    }

    .app-header-main {
        display: none;
    }

    .app-nav-tools {
        display: none;
    }

    .app-nav-integrated {
        display: none;
    }

    .app-menu-search-wrap-top,
    .app-user-panel {
        display: none;
    }

    .app-mobile-shell {
        display: block;
    }

    .app-mobile-topbar {
        display: flex !important;
    }

    .app-favorite-actions {
        justify-content: flex-start;
    }

    .app-page-content {
        padding-top: 0.4rem;
        padding-bottom: 5.2rem;
    }

    .app-page-hero {
        padding: 1.15rem;
        border-radius: 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .app-hero-sidepanel {
        width: 100%;
        flex: 1 1 auto;
    }

    .app-hero-sidepanel-links,
    .app-hero-stats-grid {
        grid-template-columns: 1fr;
    }

    .app-page-subtitle {
        font-size: 0.94rem;
    }

    .app-statement-stepper {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .app-shell {
        padding-inline: 0.8rem;
    }

    .app-mobile-bottom-nav {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        z-index: 1450;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        background: linear-gradient(180deg, #2a1014 0%, #8f1728 55%, #b11226 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.24);
        box-shadow: 0 -10px 22px rgba(67, 14, 24, 0.34);
        padding: 0.38rem 0.3rem max(0.42rem, env(safe-area-inset-bottom));
    }

    .app-mobile-bottom-link {
        position: relative;
        min-height: 46px;
        border-radius: 9px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        font-size: 0.63rem;
        font-weight: 700;
        letter-spacing: 0.01em;
    }

    .app-mobile-bottom-link i {
        font-size: 1rem;
        line-height: 1;
    }

    .app-mobile-bottom-link:hover,
    .app-mobile-bottom-link:focus {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }

    .app-mobile-bottom-badge {
        position: absolute;
        top: 0.1rem;
        right: 0.5rem;
        min-width: 1.15rem;
        height: 1.15rem;
        border-radius: 999px;
        background: #dc3a3a;
        color: #fff;
        font-size: 0.62rem;
        font-weight: 800;
        padding: 0 0.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #8f1728;
    }

    .app-page-shell {
        padding-inline: 0.8rem;
    }

    .app-profile-photo-frame {
        width: 132px;
        height: 132px;
    }

    .app-profile-form .card-body {
        padding: 1rem;
    }

    .app-statement-toolbar {
        justify-content: stretch;
    }

    .app-statement-toolbar .btn {
        width: 100%;
    }

    .app-login-shell {
        padding: 0.9rem;
    }

    .app-login-stage {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .app-login-brand-panel {
        padding: 1.2rem;
    }

    .app-login-highlights {
        grid-template-columns: 1fr;
    }

    .app-entities-summary-grid,
    .app-entities-summary-grid-3 {
        grid-template-columns: 1fr;
    }

    .app-entities-health,
    .app-entities-health-compact {
        max-width: 100%;
    }

    .app-entities-toolbar {
        justify-content: stretch;
    }

    .app-entities-toolbar .btn {
        width: 100%;
    }

    .app-entity-form-actions {
        justify-content: stretch;
    }

    .app-entity-form-actions .btn {
        width: 100%;
    }

    .app-transport-export-form {
        display: flex !important;
        width: 100%;
        margin-top: 0.6rem;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .app-transport-export-select,
    .app-transport-export-form .btn {
        width: 100%;
    }

    .app-desktop-only {
        display: none !important;
    }

    .app-mobile-only {
        display: block !important;
    }

    .app-mobile-only.app-mobile-list {
        display: grid !important;
    }

    .app-mobile-meta {
        grid-template-columns: 1fr;
    }

    .app-mobile-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-mobile-visual-hide {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .app-os-pagination {
        width: 100%;
        padding: 0.55rem 0.6rem;
    }

    .app-os-pagination > div {
        width: 100%;
        text-align: center;
    }

    .app-os-pagination .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        width: 100%;
    }

    .app-os-pagination .page-link {
        min-width: 1.75rem;
        padding: 0.3rem 0.5rem;
        font-size: 0.78rem;
        line-height: 1.1;
    }

    .app-index-quick-summary {
        display: none;
    }

    .app-os-flow {
        display: none;
    }

    .app-os-resolver-modal .app-os-resolver-extra {
        display: none;
    }

    .app-os-resolver-modal .app-os-resolver-textarea {
        min-height: 120px;
    }

    .app-os-resolver-modal .modal-body {
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }
}

@media (max-width: 420px) {
    .app-mobile-header-shortcuts {
        grid-template-columns: 1fr;
    }

    .app-mobile-brand strong {
        font-size: 0.98rem;
    }

    .app-mobile-bottom-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }

    .app-mobile-actions {
        grid-template-columns: 1fr;
    }
}
