*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --unilab-50: #f0f9ff;
    --unilab-100: #e0f2fe;
    --unilab-500: #0ea5e9;
    --unilab-600: #0284c7;
    --unilab-700: #0369a1;
    --unilab-800: #075985;
    --unilab-900: #0c4a6e;
    --cinza-25: #f8fafc;
    --cinza-50: #f9fafb;
    --cinza-100: #f1f5f9;
    --cinza-200: #e5e7eb;
    --cinza-300: #d1d5db;
    --cinza-500: #6b7280;
    --cinza-700: #374151;
    --cinza-800: #1f2937;
    --sucesso: #16a34a;
    --erro: #dc2626;
    --radius-lg: 12px;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--cinza-800);
    background: var(--cinza-25);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: radial-gradient(circle at top, #e0f2fe 0, #f8fafc 55%, #f8fafc 100%);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border: 1px solid var(--cinza-200);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(2, 132, 199, 0.14);
    padding: 2rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0.2rem 0;
    margin-bottom: 0.5rem;
    min-height: 62px;
    overflow: hidden;
}

.auth-logo {
    display: block;
    width: auto !important;
    height: 54px !important;
    max-width: 100%;
    object-fit: contain;
}

.auth-subtitle {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--cinza-500);
    font-size: 0.92rem;
}

.auth-form {
    display: grid;
    gap: 0.8rem;
}

.auth-form label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--cinza-700);
}

.auth-form input {
    width: 100%;
    border: 1px solid var(--cinza-300);
    border-radius: 10px;
    padding: 0.72rem 0.9rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
    border-color: var(--unilab-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.full-width {
    width: 100%;
}

.alert {
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0.62rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn i {
    width: 0.95rem;
    height: 0.95rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--unilab-600);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--unilab-700);
}

.btn-secondary {
    background: #ffffff;
    color: var(--cinza-700);
    border-color: var(--cinza-200);
}

.btn-secondary:hover {
    background: var(--cinza-50);
}

.btn-ghost {
    background: transparent;
    border-color: var(--cinza-200);
    color: var(--cinza-700);
}

.btn-ghost:hover {
    background: var(--cinza-50);
}

.btn-icon {
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    color: inherit;
}

.btn-icon i {
    width: 1.15rem;
    height: 1.15rem;
}

.app-shell {
    min-height: 100vh;
    padding-left: 265px;
    background: var(--cinza-25);
}

.sidebar {
    width: 265px;
    background: linear-gradient(180deg, #1f3380 0%, #1b2f76 48%, #172862 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 850;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 10px 0 28px rgba(15, 23, 42, 0.12);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 68px;
    overflow: hidden;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--unilab-600);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 160px;
}

.brand-logo {
    display: block;
    width: auto !important;
    height: 32px !important;
    max-width: 100%;
    object-fit: contain;
}

.brand-text {
    font-size: 1.04rem;
    letter-spacing: 0.2px;
}

.brand-text span {
    color: var(--unilab-500);
    margin-left: 2px;
}

.btn-sidebar-close {
    margin-left: auto;
    display: none;
}

.sidebar-content {
    padding: 0.9rem 0.7rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(186, 203, 255, 0.48) transparent;
}

.sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(186, 203, 255, 0.44);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(215, 224, 255, 0.6);
}

.menu-label {
    margin: 0.8rem 0.4rem 0.35rem;
    color: #c9d6ff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.menu-group {
    display: grid;
    gap: 0.18rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.58rem 0.72rem;
    border-radius: 10px;
    color: rgba(236, 243, 255, 0.86);
    font-size: 0.88rem;
    transition: background-color 0.2s, color 0.2s;
}

.menu-item i {
    width: 1rem;
    height: 1rem;
    color: rgba(199, 214, 255, 0.74);
}

.menu-item:hover,
.menu-item.ativo {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.menu-item:hover i,
.menu-item.ativo i {
    color: #f1f5ff;
}

.sidebar-user {
    margin-top: auto;
    padding: 0.9rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #2f4da8;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.8rem;
}

.sidebar-user strong {
    display: block;
    font-size: 0.86rem;
}

.sidebar-user small {
    color: #c9d6ff;
    font-size: 0.76rem;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    height: 100vh;
}

.topbar {
    height: 66px;
    background: #ffffff;
    border-bottom: 1px solid var(--cinza-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem 0 1.15rem;
    gap: 0.9rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.topbar-left h1 {
    margin: 0 0 0 0.5rem;
    font-size: 1.15rem;
    white-space: nowrap;
}

.btn-sidebar-open {
    display: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.notif-wrap {
    position: relative;
}

.notif-button {
    position: relative;
    border: 1px solid var(--cinza-200);
    border-radius: 10px;
    background: #ffffff;
    color: var(--cinza-700);
    width: 2.15rem;
    height: 2.15rem;
}

.notif-button:hover {
    background: var(--cinza-50);
}

.notif-badge {
    position: absolute;
    top: -0.32rem;
    right: -0.35rem;
    min-width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 0 0.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notif-panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(360px, calc(100vw - 2rem));
    background: #ffffff;
    border: 1px solid var(--cinza-200);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14);
    display: none;
    z-index: 1100;
}

.notif-panel.aberto {
    display: block;
}

.notif-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--cinza-100);
}

.notif-head strong {
    font-size: 0.84rem;
}

.notif-head a {
    font-size: 0.76rem;
    color: var(--unilab-600);
    font-weight: 600;
}

.notif-body {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.35rem;
    display: grid;
    gap: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 51, 128, 0.32) transparent;
}

.notif-body::-webkit-scrollbar {
    width: 8px;
}

.notif-body::-webkit-scrollbar-track {
    background: transparent;
}

.notif-body::-webkit-scrollbar-thumb {
    background: rgba(31, 51, 128, 0.28);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.notif-empty {
    margin: 0;
    padding: 0.55rem 0.45rem;
    color: var(--cinza-500);
    font-size: 0.8rem;
}

.notif-item {
    border: 1px solid var(--cinza-200);
    border-left: 3px solid var(--unilab-600);
    border-radius: 8px;
    padding: 0.45rem 0.52rem;
    display: grid;
    gap: 0.18rem;
    background: var(--cinza-25);
}

.notif-item--atrasado {
    border-left-color: #dc2626;
}

.notif-item--hoje {
    border-left-color: #d97706;
}

.notif-item-title {
    margin: 0;
    color: var(--cinza-800);
    font-size: 0.78rem;
    font-weight: 700;
}

.notif-item-meta {
    margin: 0;
    color: var(--cinza-500);
    font-size: 0.72rem;
}

.notif-item-msg {
    margin: 0;
    color: var(--cinza-700);
    font-size: 0.74rem;
    font-weight: 600;
}

.notif-foot {
    border-top: 1px solid var(--cinza-100);
    padding: 0.52rem 0.8rem 0.62rem;
    color: #991b1b;
    font-size: 0.74rem;
    font-weight: 600;
}

.content-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.3rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 51, 128, 0.24) transparent;
}

.content-area::-webkit-scrollbar {
    width: 10px;
}

.content-area::-webkit-scrollbar-track {
    background: transparent;
}

.content-area::-webkit-scrollbar-thumb {
    background: rgba(31, 51, 128, 0.22);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(31, 51, 128, 0.34);
}

.content-area > section + section {
    margin-top: 0.95rem;
}

.page-intro h2 {
    margin: 0 0 0.3rem;
    font-size: 1.45rem;
}

.page-intro p {
    margin: 0;
    color: var(--cinza-500);
    font-size: 0.93rem;
}

.kpi-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.kpi-card {
    background: #ffffff;
    border: 1px solid var(--cinza-200);
    border-radius: var(--radius-lg);
    padding: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.kpi-icon i {
    width: 1.16rem;
    height: 1.16rem;
}

.icon-blue {
    background: #e0f2fe;
    color: #0369a1;
}

.icon-green {
    background: #dcfce7;
    color: #15803d;
}

.icon-orange {
    background: #ffedd5;
    color: #c2410c;
}

.icon-purple {
    background: #ede9fe;
    color: #6d28d9;
}

.kpi-label {
    margin: 0;
    color: var(--cinza-500);
    font-size: 0.8rem;
}

.kpi-value {
    font-size: 1.32rem;
}

.kpi-trend {
    margin: 0.3rem 0 0;
    font-size: 0.74rem;
    font-weight: 600;
}

.kpi-trend-up {
    color: #15803d;
}

.kpi-trend-down {
    color: #b91c1c;
}

.kpi-trend-neutral {
    color: var(--cinza-500);
}

.panel-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.9rem;
}

.panel-card {
    background: #ffffff;
    border: 1px solid var(--cinza-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--cinza-100);
    background: var(--cinza-50);
}

.panel-head h3 {
    margin: 0;
    font-size: 0.96rem;
}

.panel-head a {
    color: var(--unilab-600);
    font-size: 0.82rem;
    font-weight: 600;
}

.panel-body {
    padding: 1rem;
}

.panel-body p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.empty-state {
    color: var(--cinza-500);
}

.quick-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.page-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.form-layout {
    margin-top: 0.95rem;
}

.form-grid,
.filters-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.85rem;
}

.filters-grid .field {
    grid-column: span 3;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    grid-column: span 6;
}

.field-2 {
    grid-column: span 12;
}

.field label {
    font-size: 0.8rem;
    color: var(--cinza-700);
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    border: 1px solid var(--cinza-300);
    border-radius: 10px;
    padding: 0.62rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--cinza-800);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--unilab-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.field textarea {
    resize: vertical;
    min-height: 96px;
}

.field select[multiple] {
    min-height: 140px;
}

.filter-actions {
    grid-column: span 12;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

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

.calendar-toolbar {
    align-items: flex-start;
    gap: 0.75rem;
}

.calendar-subtitle {
    margin: 0.2rem 0 0;
    color: var(--cinza-500);
    font-size: 0.8rem;
}

.calendar-scroll {
    overflow-x: auto;
    padding-bottom: 0.3rem;
}

.calendar-weekdays {
    min-width: 980px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.6rem;
    padding: 0.85rem 0.85rem 0.3rem;
}

.calendar-weekday {
    text-align: center;
    color: var(--cinza-500);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.calendar-grid {
    min-width: 980px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.6rem;
    padding: 0.2rem 0.85rem 0.9rem;
}

.calendar-day {
    border: 1px solid var(--cinza-200);
    border-radius: 12px;
    background: #ffffff;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-day--outside {
    background: var(--cinza-50);
}

.calendar-day--today {
    border-color: var(--unilab-500);
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.24);
}

.calendar-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.48rem 0.6rem;
    border-bottom: 1px solid var(--cinza-100);
    background: var(--cinza-50);
}

.calendar-day-number {
    font-size: 0.8rem;
    font-weight: 700;
}

.calendar-count {
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    padding: 0 0.35rem;
    background: var(--unilab-100);
    color: var(--unilab-700);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-events {
    padding: 0.5rem;
    display: grid;
    gap: 0.45rem;
    max-height: 268px;
    overflow-y: auto;
}

.calendar-empty {
    margin: 0;
    color: var(--cinza-500);
    font-size: 0.76rem;
}

.calendar-event {
    border: 1px solid var(--cinza-200);
    border-left: 3px solid var(--unilab-600);
    border-radius: 8px;
    background: var(--cinza-25);
    padding: 0.42rem 0.46rem;
}

.calendar-event-time {
    margin: 0;
    font-size: 0.71rem;
    font-weight: 700;
    color: var(--unilab-700);
}

.calendar-event-title {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cinza-800);
}

.calendar-event-meta {
    margin: 0.2rem 0 0;
    font-size: 0.71rem;
    color: var(--cinza-500);
}

.calendar-event-link {
    margin-top: 0.32rem;
    display: inline-block;
    color: var(--unilab-600);
    font-size: 0.72rem;
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--cinza-100);
    text-align: left;
    padding: 0.75rem 0.9rem;
    vertical-align: top;
    font-size: 0.86rem;
}

.data-table th {
    background: var(--cinza-50);
    color: var(--cinza-500);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tbody tr:hover {
    background: #fbfdff;
}

.text-right {
    text-align: right;
}

.inline-actions {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
}

.inline-actions form {
    margin: 0;
}

.anexo-upload {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--cinza-100);
}

.anexo-upload .field {
    grid-column: span 12;
}

.anexo-upload-actions {
    display: flex;
    justify-content: flex-end;
}

.interacao-form {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cinza-100);
}

.interacao-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.85rem;
}

.interacao-form-grid .field {
    grid-column: span 6;
}

.interacao-form-grid .field-2 {
    grid-column: span 12;
}

.interacao-form-actions {
    display: flex;
    justify-content: flex-end;
}

.interacao-text {
    margin: 0;
    white-space: pre-line;
}

.interacao-link {
    color: var(--unilab-600);
    font-weight: 600;
}

.interacao-link:hover {
    text-decoration: underline;
}

.interacao-actions {
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.42rem 0.7rem;
    font-size: 0.77rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-muted {
    background: #f1f5f9;
    color: #475569;
}

.muted {
    color: var(--cinza-500);
    font-size: 0.74rem;
}

.empty-cell {
    text-align: center !important;
    color: var(--cinza-500);
    padding: 1.1rem !important;
}

.empty-cell .empty-link {
    display: inline-block;
    margin-top: 0.35rem;
    color: var(--unilab-600);
    font-weight: 600;
    font-size: 0.82rem;
}

.error-text {
    color: var(--erro);
    font-size: 0.74rem;
}

.form-footer {
    border-top: 1px solid var(--cinza-100);
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

.error-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.2rem;
    background: var(--cinza-50);
}

.error-card {
    width: min(420px, 100%);
    background: #ffffff;
    border: 1px solid var(--cinza-200);
    border-radius: 14px;
    padding: 1.8rem;
    text-align: center;
}

.error-card h1 {
    margin: 0;
    font-size: 2.3rem;
    color: var(--unilab-700);
}

.error-card p {
    margin: 0.7rem 0 1.15rem;
    color: var(--cinza-500);
}

.overlay-sidebar {
    display: none;
}

@media (max-width: 1100px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .filters-grid .field {
        grid-column: span 6;
    }
}

@media (max-width: 900px) {
    .app-shell {
        padding-left: 0;
    }

    .app-main {
        height: auto;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1000;
    }

    .sidebar.aberto {
        transform: translateX(0);
    }

    .btn-sidebar-open,
    .btn-sidebar-close {
        display: inline-flex;
    }

    .overlay-sidebar {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.48);
        z-index: 900;
    }

    .overlay-sidebar.ativo {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

@media (max-width: 720px) {
    .topbar {
        height: auto;
        padding: 0.65rem 0.9rem;
        flex-wrap: wrap;
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .notif-panel {
        right: -0.3rem;
        width: min(360px, calc(100vw - 1.5rem));
    }

    .content-area {
        padding: 1rem;
    }

    .topbar-left h1 {
        font-size: 1rem;
    }

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

    .page-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .field,
    .filters-grid .field,
    .field-2 {
        grid-column: span 12;
    }

    .interacao-form-grid .field,
    .interacao-form-grid .field-2 {
        grid-column: span 12;
    }

    .calendar-toolbar {
        flex-direction: column;
    }

    .auth-logo {
        height: 44px !important;
    }

    .brand-logo {
        height: 28px !important;
    }
}
