:root {
    --bs-primary-rgb: 62, 64, 149;
}

/* Mercadinho modernizado */
.market-page {
    color: #111a3e;
    padding: 5px 0 0;
}

.market-heading-row,
.market-heading,
.market-benefits,
.market-benefit,
.market-search-row,
.market-filter-row,
.market-products-heading > div,
.market-product-meta,
.market-product-actions,
.market-card-title,
.market-cart-totals > div,
.market-trust-strip,
.market-trust-strip > div {
    display: flex;
    align-items: center;
}

.market-heading-row {
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.market-heading {
    gap: 17px;
    min-width: 0;
}

.market-heading-icon {
    align-items: center;
    background: #f0f3ff;
    border-radius: 14px;
    color: #1684ed;
    display: inline-flex;
    flex: 0 0 64px;
    font-size: 31px;
    height: 64px;
    justify-content: center;
}

.market-heading h1 {
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -.7px;
    margin: 0 0 3px;
}

.market-heading p {
    color: #68708c;
    font-size: 12.5px;
    margin: 0;
}

.market-benefits {
    gap: 12px;
}

.market-benefit {
    background: #fff;
    border: 1px solid #e7e9f2;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(26, 35, 75, .045);
    gap: 11px;
    min-height: 67px;
    padding: 12px 17px;
    width: 202px;
}

.market-benefit > i {
    align-items: center;
    background: #f1efff;
    border-radius: 10px;
    color: #6547ce;
    display: inline-flex;
    flex: 0 0 38px;
    font-size: 18px;
    height: 38px;
    justify-content: center;
}

.market-benefit-green > i {
    background: #e9fbf2;
    color: #16a064;
}

.market-benefit div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.market-benefit strong {
    color: #4a39ad;
    font-size: 12px;
}

.market-benefit-green strong {
    color: #168657;
}

.market-benefit span {
    color: #6c738b;
    font-size: 10px;
}

.market-alert {
    border-radius: 11px;
    font-size: 13px;
    margin-bottom: 14px;
}

.market-layout {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) 330px;
}

.market-catalog-panel,
.market-cart-card,
.market-orders-card {
    background: #fff;
    border: 1px solid #e7e9f1;
    border-radius: 14px;
    box-shadow: 0 5px 22px rgba(28, 35, 73, .045);
}

.market-catalog-panel {
    padding: 16px;
}

.market-filter-form {
    border-bottom: 1px solid #eceef4;
    margin-bottom: 18px;
    padding-bottom: 15px;
}

.market-search-row {
    gap: 14px;
}

.market-search {
    align-items: center;
    border: 1px solid #dfe3ed;
    border-radius: 8px;
    display: flex;
    flex: 1;
    gap: 10px;
    height: 41px;
    padding: 0 13px;
}

.market-search:focus-within {
    border-color: #6157c9;
    box-shadow: 0 0 0 3px rgba(97, 87, 201, .1);
}

.market-search i {
    color: #6b7594;
    font-size: 15px;
}

.market-search button {
    background: none;
    border: 0;
    padding: 0;
}

.market-search input {
    border: 0;
    color: #20294c;
    font-size: 12px;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.market-search input::placeholder {
    color: #777f98;
}

.market-view-toggle {
    background: #f8f9fc;
    border: 1px solid #e4e7ef;
    border-radius: 8px;
    display: flex;
    flex: 0 0 auto;
    overflow: hidden;
}

.market-view-toggle button {
    background: transparent;
    border: 0;
    color: #59627f;
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 11px;
    font-weight: 650;
    height: 40px;
    padding: 0 17px;
}

.market-view-toggle button.is-active {
    background: #443baa;
    color: #fff;
}

.market-filter-row {
    gap: 12px;
    margin-top: 12px;
}

.market-select {
    align-items: center;
    border: 1px solid #e0e3ec;
    border-radius: 8px;
    display: flex;
    flex: 1;
    gap: 8px;
    height: 39px;
    padding: 0 10px;
}

.market-select i {
    color: #59648b;
    font-size: 13px;
}

.market-select select {
    background: #fff;
    border: 0;
    color: #59617b;
    cursor: pointer;
    font-size: 11px;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.market-clear-filters {
    color: #463eae;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    font-size: 11px;
    text-decoration: none;
}

.market-promos {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 25px;
}

.market-promo {
    border-radius: 13px;
    display: flex;
    height: 152px;
    justify-content: space-between;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.market-promo-offers {
    background: #4339ad;
    color: #fff;
}

.market-promo-popular {
    background: #e5f7ec;
    color: #145e3f;
}

.market-promo > div {
    position: relative;
    z-index: 1;
    max-width: 61%;
}

.market-promo-kicker {
    font-size: 10px;
    font-weight: 700;
    opacity: .78;
    text-transform: uppercase;
}

.market-promo h2 {
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.25px;
    line-height: 1.14;
    margin: 4px 0 5px;
}

.market-promo p {
    font-size: 11px;
    line-height: 1.35;
    margin: 0 0 10px;
    opacity: .88;
}

.market-promo button {
    background: #fff;
    border: 0;
    border-radius: 7px;
    color: #4037a1;
    font-size: 10px;
    font-weight: 700;
    padding: 8px 12px;
}

.market-promo-popular button {
    color: #168657;
}

.market-promo img {
    height: 165px;
    object-fit: contain;
    position: absolute;
    right: -5px;
    top: -5px;
    width: 43%;
}

.market-products-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
}

.market-products-heading > div {
    gap: 10px;
}

.market-products-heading h2,
.market-card-title h2 {
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.25px;
    margin: 0;
}

.market-products-heading span,
.market-products-heading small {
    color: #7a8198;
    font-size: 10.5px;
}

.market-products-heading small {
    background: #f5f4ff;
    border-radius: 20px;
    color: #4e45b4;
    padding: 5px 9px;
}

.market-products {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.market-product-card {
    background: #fff;
    border: 1px solid #e5e8f0;
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.market-product-card:hover {
    border-color: #c9c7e9;
    box-shadow: 0 9px 24px rgba(39, 36, 105, .09);
    transform: translateY(-2px);
}

.market-product-image-wrap {
    align-items: center;
    background: #fbfbfd;
    display: flex;
    height: 145px;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}

.market-product-image-wrap img {
    height: 100%;
    mix-blend-mode: multiply;
    object-fit: contain;
    width: 100%;
}

.market-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 11px;
}

.market-product-copy {
    flex: 1;
}

.market-product-category {
    color: #6a56bd;
    display: block;
    font-size: 8.5px;
    font-weight: 700;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.market-product-copy h3 {
    color: #152047;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 3px;
    min-height: 28px;
}

.market-product-code {
    color: #8990a4;
    display: block;
    font-size: 9px;
}

.market-product-meta {
    justify-content: space-between;
    margin: 9px 0;
}

.market-product-meta > strong {
    color: #3d36a2;
    font-size: 13px;
}

.market-stock {
    align-items: center;
    color: #15925b;
    display: flex;
    font-size: 8.5px;
    gap: 5px;
}

.market-stock i {
    background: #15a265;
    border-radius: 50%;
    height: 6px;
    width: 6px;
}

.market-product-actions {
    gap: 7px;
}

.market-stepper,
.market-cart-stepper {
    align-items: center;
    border: 1px solid #e0e3eb;
    border-radius: 7px;
    display: flex;
    height: 31px;
    overflow: hidden;
}

.market-stepper button,
.market-cart-stepper button {
    background: #fff;
    border: 0;
    color: #59617b;
    height: 100%;
    width: 23px;
}

.market-stepper input {
    appearance: textfield;
    border: 0;
    color: #273050;
    font-size: 10px;
    outline: 0;
    padding: 0;
    text-align: center;
    width: 25px;
}

.market-stepper input::-webkit-inner-spin-button {
    appearance: none;
}

.market-add-button {
    align-items: center;
    background: #443baa;
    border: 0;
    border-radius: 7px;
    color: #fff;
    display: flex;
    flex: 1;
    font-size: 9.5px;
    font-weight: 700;
    gap: 5px;
    height: 31px;
    justify-content: center;
}

.market-add-button:hover,
.market-checkout-button:hover {
    background: #342b91;
}

.market-products[data-view="list"] {
    grid-template-columns: 1fr;
}

.market-products[data-view="list"] .market-product-card {
    flex-direction: row;
}

.market-products[data-view="list"] .market-product-image-wrap {
    flex: 0 0 130px;
    height: 125px;
}

.market-products[data-view="list"] .market-product-content {
    display: grid;
    align-items: center;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 150px 200px;
}

.market-products[data-view="list"] .market-product-copy h3 {
    min-height: 0;
}

.market-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.market-cart-card,
.market-orders-card {
    padding: 17px;
}

.market-cart-card {
    position: sticky;
    top: 98px;
}

.market-card-title {
    justify-content: space-between;
    margin-bottom: 13px;
}

.market-card-title span {
    background: #f1efff;
    border-radius: 6px;
    color: #5147b7;
    font-size: 9px;
    font-weight: 700;
    padding: 5px 8px;
}

.market-cart-items {
    border-bottom: 1px solid #eceef3;
    border-top: 1px solid #eceef3;
}

.market-cart-item {
    display: grid;
    gap: 9px;
    grid-template-columns: 43px minmax(0, 1fr) auto;
    min-height: 76px;
    padding: 10px 0;
}

.market-cart-item + .market-cart-item {
    border-top: 1px solid #eef0f4;
}

.market-cart-item > img {
    background: #fafafd;
    border: 1px solid #eceef3;
    border-radius: 6px;
    height: 48px;
    object-fit: contain;
    width: 43px;
}

.market-cart-item-copy h3 {
    color: #28304f;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 2px;
}

.market-cart-item-copy > span {
    color: #8a90a2;
    display: block;
    font-size: 8.5px;
    margin-bottom: 6px;
}

.market-cart-stepper {
    height: 24px;
    width: fit-content;
}

.market-cart-stepper button {
    font-size: 10px;
    width: 20px;
}

.market-cart-stepper b {
    font-size: 9px;
    font-weight: 600;
    text-align: center;
    width: 22px;
}

.market-cart-price {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.market-cart-price button {
    background: none;
    border: 0;
    color: #9298aa;
    font-size: 11px;
    padding: 0;
}

.market-cart-price strong {
    color: #383194;
    font-size: 10.5px;
    white-space: nowrap;
}

.market-cart-empty,
.market-orders-empty,
.market-empty-state {
    align-items: center;
    color: #7a8299;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    text-align: center;
}

.market-cart-empty {
    min-height: 145px;
}

.market-cart-empty i,
.market-empty-state > i {
    color: #b2afd8;
    font-size: 28px;
}

.market-cart-empty strong {
    color: #333b59;
    font-size: 11px;
}

.market-cart-empty span,
.market-orders-empty span {
    font-size: 9.5px;
}

.market-cart-totals {
    padding: 12px 0 10px;
}

.market-cart-totals > div {
    color: #606981;
    font-size: 10.5px;
    justify-content: space-between;
    margin-bottom: 7px;
}

.market-cart-totals b {
    color: #4039a0;
}

.market-cart-totals .market-discount {
    color: #15925b;
}

.market-cart-totals .market-cart-total {
    border-top: 1px solid #e8eaf0;
    color: #202744;
    font-size: 13px;
    margin: 9px 0 0;
    padding-top: 10px;
}

.market-cart-total strong {
    color: #3c339e;
    font-size: 17px;
}

.market-checkout-button {
    align-items: center;
    background: #443baa;
    border: 0;
    border-radius: 8px;
    color: #fff;
    display: flex;
    font-size: 11px;
    font-weight: 700;
    height: 43px;
    justify-content: space-between;
    padding: 0 18px;
    width: 100%;
}

.market-checkout-button:disabled {
    background: #a7a5bd;
    cursor: not-allowed;
}

.market-payment-note {
    color: #858ca0;
    font-size: 9px;
    margin: 9px 0 0;
    text-align: center;
}

.market-payment-note i {
    margin-right: 5px;
}

.market-orders-card {
    margin-top: 0;
}

.market-recent-orders article {
    align-items: center;
    border-top: 1px solid #eceef3;
    display: grid;
    gap: 9px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 10px 0;
}

.market-order-icon {
    align-items: center;
    background: #fff2d8;
    border-radius: 8px;
    color: #d99427;
    display: flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.market-recent-orders article > div {
    display: flex;
    flex-direction: column;
}

.market-recent-orders article > div:nth-child(2) strong {
    color: #5147b4;
    font-size: 9.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-recent-orders article span,
.market-recent-orders article b,
.market-recent-orders article small {
    font-size: 8.5px;
}

.market-recent-orders article span {
    color: #81889d;
}

.market-recent-orders article > div:last-child {
    align-items: flex-end;
}

.market-recent-orders article b {
    color: #303857;
}

.market-recent-orders article small {
    background: #e7f8ef;
    border-radius: 5px;
    color: #178653;
    margin-top: 5px;
    padding: 3px 6px;
}

.market-orders-empty {
    border-top: 1px solid #eceef3;
    min-height: 90px;
}

.market-empty-state {
    min-height: 260px;
}

.market-empty-state h3 {
    color: #2d3554;
    font-size: 15px;
    margin: 2px 0 0;
}

.market-empty-state p {
    font-size: 11px;
    margin: 0;
}

.market-empty-state a {
    color: #443baa;
    font-size: 11px;
    font-weight: 700;
}

.market-trust-strip {
    background: #fff;
    border: 1px solid #e6e8f0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 18px rgba(28, 35, 73, .04);
    gap: 0;
    justify-content: space-around;
    margin-top: 14px;
    min-height: 58px;
}

.market-trust-strip > div {
    gap: 11px;
    justify-content: center;
    width: 33.333%;
}

.market-trust-strip > div + div {
    border-left: 1px solid #e9ebf1;
}

.market-trust-strip i {
    color: #584ec0;
    font-size: 20px;
}

.market-trust-strip > div:nth-child(2) i {
    color: #1eab74;
}

.market-trust-strip span {
    color: #7a8195;
    display: flex;
    flex-direction: column;
    font-size: 9px;
}

.market-trust-strip strong {
    color: #303958;
    font-size: 10px;
}

@media (max-width: 1280px) {
    .market-layout { grid-template-columns: minmax(0, 1fr) 300px; }
    .market-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .market-benefit { width: 180px; }
}

@media (max-width: 1050px) {
    .market-heading-row { align-items: flex-start; flex-direction: column; }
    .market-benefits { width: 100%; }
    .market-benefit { flex: 1; width: auto; }
    .market-layout { grid-template-columns: 1fr; }
    .market-sidebar-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .market-cart-card { position: static; }
}

@media (max-width: 760px) {
    .market-page { padding-top: 0; }
    .market-heading-row { gap: 14px; margin-bottom: 14px; }
    .market-heading { align-items: flex-start; }
    .market-heading-icon { flex-basis: 50px; font-size: 24px; height: 50px; }
    .market-heading h1 { font-size: 24px; }
    .market-heading p { font-size: 11px; }
    .market-benefits { align-items: stretch; flex-direction: column; }
    .market-benefit { min-height: 58px; width: 100%; }
    .market-catalog-panel { padding: 12px; }
    .market-search-row { align-items: stretch; flex-direction: column; }
    .market-view-toggle { width: 100%; }
    .market-view-toggle button { flex: 1; justify-content: center; }
    .market-filter-row { align-items: stretch; flex-direction: column; }
    .market-select { flex: auto; }
    .market-clear-filters { justify-content: center; padding: 5px; }
    .market-promos { grid-template-columns: 1fr; }
    .market-promo { height: 145px; }
    .market-products-heading { align-items: flex-start; gap: 8px; }
    .market-products-heading > div { align-items: flex-start; flex-direction: column; gap: 2px; }
    .market-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .market-product-image-wrap { height: 135px; }
    .market-product-actions { align-items: stretch; flex-direction: column; }
    .market-stepper { justify-content: space-between; width: 100%; }
    .market-add-button { flex: 0 0 31px; }
    .market-products[data-view="list"] .market-product-content { display: flex; gap: 0; }
    .market-sidebar-column { display: flex; }
    .market-trust-strip { align-items: stretch; flex-direction: column; padding: 4px 14px; }
    .market-trust-strip > div { justify-content: flex-start; padding: 10px 0; width: 100%; }
    .market-trust-strip > div + div { border-left: 0; border-top: 1px solid #e9ebf1; }
}

@media (max-width: 430px) {
    .market-products { grid-template-columns: 1fr; }
    .market-product-card { flex-direction: row; }
    .market-product-image-wrap { flex: 0 0 118px; height: auto; min-height: 190px; }
    .market-product-content { min-width: 0; }
    .market-products[data-view="list"] .market-product-image-wrap { flex-basis: 100px; height: auto; }
    .market-promo > div { max-width: 68%; }
    .market-promo img { opacity: .8; right: -18px; width: 46%; }
}

html, body {
    height: 100%;
}

body {
    color: #212529;
}

.wrapper {
    align-items: stretch;
    display: flex;
    height: 100%;
    overflow-x: hidden;
    position: absolute;
    width: 100%;
}

#navbar {
    left: 300px;
    transition: all .3s;
}

#navbar.active {
    left: 0;
}

#sidebar {
    max-width: 300px;
    min-height: 100vh;
    min-width: 300px;
    overflow: auto;
    transition: all .3s;
    z-index: 500;
}

#sidebar.active {
    margin-left: -300px;
}

#sidebar.shadow-lg {
    box-shadow: 0 1.1rem 4rem -1rem rgba(0, 0, 0, .175) !important;
}

#content {
    overflow: auto;
    transition: all .3s;
    width: calc(100% - 300px);
}

#content.active {
    width: 100%;
}

.content-column {
    min-height: calc(100% - 65px);
}

.navbar-spacer {
    height: 65px;
}

.sidebar-logo {
    object-fit: contain;
}

.sidebar .nav-link {
    border-radius: 10px;
    transition: all .3s;
}

.sidebar .nav-link .bi {
    margin-right: 10px;
}

.sidebar .nav-link:hover {
    background-color: rgba(var(--bs-primary-rgb), 1) !important;
    color: #fff !important;
}

.sidebar .nav-link.active {
    background-color: rgba(var(--bs-primary-rgb), 1) !important;
    color: #fff !important;
}

.sidebar .nav-link.active .bi,
.sidebar .nav-link:hover .bi {
    color: #fff !important;
}

.disabled-module {
    cursor: default;
}

.announcement-content img {
    height: auto;
    max-width: 100%;
}

.dashboard-banner img {
    max-height: 600px;
    object-fit: cover;
}

.dashboard-announcements {
    height: 604px;
}

.dashboard-announcement + .dashboard-announcement {
    border-top: 1px solid #dee2e6;
    margin-top: 1rem;
    padding-top: 1rem;
}

.dashboard-birthdays {
    height: 500px;
}

.dashboard-course-image {
    min-height: 105px;
    object-fit: cover;
}

.dashboard-news-image {
    height: 200px;
    object-fit: cover;
}

.dashboard-empty-state {
    min-height: 120px;
    padding: 2rem 1rem;
}

.news-icon {
    color: #ffc700;
}

.gallery-icon {
    color: #f58634;
}

.news-card-image {
    height: 200px;
    object-fit: cover;
}

.news-hero {
    background-color: #000;
    height: 300px;
    margin: -20px -16px 0;
}

.news-hero-image {
    filter: brightness(.5);
    object-fit: cover;
}

.news-content {
    min-height: 120px;
}

.gallery-card-image {
    height: 200px;
    object-fit: cover;
}

.gallery-figure {
    margin-bottom: 1rem;
}

.gallery-detail-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.video-icon {
    color: #f033f5;
}

.video-card-preview {
    background-color: #000;
    object-fit: cover;
}

.video-detail-shell {
    min-height: calc(100vh - 170px);
}

.video-description p:last-child {
    margin-bottom: 0;
}

.video-detail-player {
    background-color: #000;
    max-height: 72vh;
}

.file-bank-icon {
    color: #b3d342;
}

.file-description p:last-child {
    margin-bottom: 0;
}

.internal-jobs-icon {
    color: #eb268f;
}

.useful-links-icon {
    color: #009ee0;
}

.internal-job-description {
    line-height: 1.65;
}

.internal-job-related-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.internal-job-related-list li + li {
    border-top: 1px solid #dee2e6;
    margin-top: .75rem;
    padding-top: .75rem;
}

.internal-job-related-list .tit {
    display: block;
    font-weight: 700;
}

.useful-link-description p:last-child {
    margin-bottom: 0;
}

.department-requests-icon {
    color: #ea0d2c;
}

.forums-icon {
    color: #05d3b5;
}

.forum-message-content {
    overflow-wrap: anywhere;
}

.classifieds-icon {
    color: #ff0000;
}

.market-icon {
    color: #401861;
}

.classified-listing + .classified-listing {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

.market-intro {
    font-size: 1.15rem;
}

.market-total {
    font-size: 1.35rem;
}

.admin-icon {
    color: #3c3e91;
}

.admin-metric-card {
    border-left: 4px solid #3c3e91;
}

.course-icon {
    color: #009036;
}

.course-list-image {
    max-height: 220px;
    object-fit: cover;
}

.course-detail-image {
    max-height: 520px;
    object-fit: cover;
}

.course-related-image {
    max-height: 150px;
    object-fit: cover;
    width: 100%;
}

.directory-card {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

@media (max-width: 768px) {
    #navbar { left: 0; }
    #navbar.active { left: 300px; right: -300px; }
    #sidebar { margin-left: -300px; }
    #sidebar.active { margin-left: 0; }
    #content { width: 100%; }
    #content.active { margin-right: -300px; }

    .dashboard-announcements,
    .dashboard-birthdays {
        height: auto;
        max-height: 604px;
    }

    .dashboard-banner img {
        max-height: 350px;
    }
}

/* Home moderna ------------------------------------------------------------ */
:root {
    --sm-primary: #3e4095;
    --sm-primary-dark: #24246f;
    --sm-violet: #6d46da;
    --sm-blue: #1688ee;
    --sm-green: #1fb76a;
    --sm-yellow: #f3b51a;
    --sm-pink: #ed268f;
    --sm-ink: #172033;
    --sm-muted: #697386;
    --sm-line: #e6e9f0;
    --sm-surface: #ffffff;
    --sm-canvas: #f7f8fc;
    --sm-radius: 14px;
    --sm-shadow: 0 10px 35px rgba(38, 43, 72, .07);
}

.intranet-body {
    background: var(--sm-canvas);
    color: var(--sm-ink);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
}

.intranet-body .wrapper {
    align-items: stretch;
    display: flex;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    position: relative;
}

#sidebar.intranet-sidebar {
    background: #fff;
    border-right: 1px solid var(--sm-line);
    bottom: 0;
    box-shadow: none !important;
    left: 0;
    max-width: 204px;
    min-height: 100vh;
    min-width: 204px;
    overflow-x: hidden;
    overflow-y: auto;
    position: fixed;
    top: 0;
    width: 204px;
    z-index: 1050;
}

#sidebar.intranet-sidebar.active {
    margin-left: -204px;
}

.sidebar-shell {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 18px 15px 20px;
}

.sidebar-brand {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 96px;
    padding: 2px 4px 12px;
}

.sidebar-brand .sidebar-logo {
    height: auto;
    max-width: 166px;
    object-fit: contain;
    width: 100%;
}

.sidebar-navigation {
    flex: 1;
}

.sidebar-home-link,
.sidebar-link {
    align-items: center;
    color: #586277;
    display: flex;
    font-size: .83rem;
    font-weight: 500;
    gap: 11px;
    line-height: 1.2;
    min-height: 39px;
    padding: 8px 11px;
    text-decoration: none;
    transition: background-color .2s, color .2s, transform .2s;
}

.sidebar-home-link {
    border-radius: 9px;
    margin: 2px 0 23px;
}

.sidebar-home-link.active,
.sidebar-home-link:hover {
    background: var(--sm-primary);
    color: #fff;
}

.sidebar-link {
    border-radius: 8px;
    margin-bottom: 1px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #f0f0fb;
    color: var(--sm-primary);
    transform: translateX(2px);
}

.sidebar-home-link .bi,
.sidebar-link .bi {
    flex: 0 0 18px;
    font-size: 1rem;
    margin: 0;
    text-align: center;
}

.sidebar-group {
    border-top: 1px solid #edf0f5;
    margin-top: 5px;
    padding: 14px 0 6px;
}

.sidebar-group h2 {
    color: #7d8799;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .055em;
    margin: 0 11px 7px;
    text-transform: uppercase;
}

.sidebar-help {
    background: #f7f6ff;
    border: 1px solid #dddaf6;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 22px;
    padding: 14px;
}

.sidebar-help strong {
    color: var(--sm-primary);
    font-size: .78rem;
}

.sidebar-help span {
    color: var(--sm-muted);
    font-size: .69rem;
    line-height: 1.45;
}

.sidebar-help a {
    border: 1px solid #c9c5ec;
    border-radius: 8px;
    color: var(--sm-primary);
    font-size: .72rem;
    font-weight: 600;
    margin-top: 8px;
    padding: 8px 9px;
    text-align: center;
    text-decoration: none;
}

#content {
    background: var(--sm-canvas);
    margin-left: 204px;
    min-height: 100vh;
    overflow: visible;
    width: calc(100% - 204px);
}

#content.active {
    margin-left: 0;
    width: 100%;
}

#navbar.intranet-topbar {
    align-items: center;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(230, 233, 240, .8);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(220px, .8fr) minmax(290px, 1.45fr) minmax(310px, 1fr) minmax(210px, .85fr);
    height: 98px;
    left: 204px;
    padding: 0 25px;
    position: fixed;
    right: 0;
    top: 0;
    transition: left .3s;
    z-index: 1040;
}

#navbar.intranet-topbar.active {
    left: 0;
}

.navbar-spacer {
    height: 98px;
}

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

.topbar-greeting > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar-greeting strong {
    color: #12192a;
    font-size: 1.25rem;
    letter-spacing: -.025em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-greeting span {
    color: #848b99;
    font-size: .76rem;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-menu-button {
    background: transparent;
    border: 0;
    color: var(--sm-primary);
    display: none;
    font-size: 1.6rem;
    margin-right: 8px;
    padding: 0;
}

.topbar-search {
    align-items: center;
    background: #fff;
    border: 1px solid #dde1ea;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(26, 31, 56, .03);
    display: flex;
    gap: 10px;
    min-width: 0;
    padding: 0 12px 0 16px;
}

.topbar-search .bi {
    color: #354052;
    font-size: 1rem;
}

.topbar-search input {
    background: transparent;
    border: 0;
    color: var(--sm-ink);
    flex: 1;
    font-size: .76rem;
    min-width: 0;
    outline: 0;
    padding: 13px 0;
}

.topbar-search input::placeholder {
    color: #8c94a4;
}

.topbar-search kbd {
    background: #f5f6f8;
    border: 1px solid #e3e6ec;
    border-radius: 6px;
    color: #7a8292;
    font-family: inherit;
    font-size: .62rem;
    font-weight: 500;
    padding: 4px 6px;
}

.topbar-shortcuts {
    align-items: center;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.topbar-shortcuts a {
    align-items: center;
    color: #465065;
    display: flex;
    flex: 1;
    flex-direction: column;
    font-size: .61rem;
    gap: 4px;
    max-width: 66px;
    min-width: 52px;
    text-decoration: none;
}

.topbar-shortcuts a:hover {
    color: var(--sm-primary);
}

.topbar-shortcuts .bi {
    font-size: 1.08rem;
}

.shortcut-market { color: var(--sm-yellow); }
.shortcut-courses { color: var(--sm-blue); }
.shortcut-files { color: #6a78dc; }
.shortcut-requests { color: var(--sm-pink); }
.shortcut-directory { color: #14a995; }

.topbar-profile {
    min-width: 0;
}

.profile-button {
    align-items: center;
    background: transparent;
    border: 0;
    display: flex;
    gap: 10px;
    min-width: 0;
    padding: 6px 0;
    text-align: left;
    width: 100%;
}

.profile-notification {
    color: #798294;
    font-size: 1.12rem;
    position: relative;
}

.profile-notification span {
    background: #ea4251;
    border: 2px solid #fff;
    border-radius: 50%;
    height: 8px;
    position: absolute;
    right: -2px;
    top: -2px;
    width: 8px;
}

.profile-avatar {
    border-radius: 50%;
    height: 42px;
    object-fit: cover;
    width: 42px;
}

.profile-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.profile-copy strong,
.profile-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy strong {
    color: var(--sm-ink);
    font-size: .76rem;
}

.profile-copy small {
    color: #8a91a0;
    font-size: .62rem;
    margin-top: 3px;
}

.profile-chevron {
    color: #778092;
    font-size: .72rem;
}

.content-column {
    min-height: calc(100vh - 98px);
}

.intranet-main {
    padding: 10px 24px 8px;
}

.dashboard-modern {
    margin: 0 auto;
    max-width: 1600px;
}

.dashboard-hero {
    border-radius: 15px;
    box-shadow: var(--sm-shadow);
    overflow: hidden;
}

.dashboard-hero-slide {
    align-items: center;
    background-color: var(--sm-primary-dark);
    background-position: center;
    background-size: cover;
    display: flex;
    height: 150px;
    justify-content: space-between;
    overflow: hidden;
    padding: 24px 38px;
}

.hero-message {
    position: relative;
    z-index: 2;
}

.hero-message h1 {
    color: #fff;
    font-size: clamp(1.55rem, 2.1vw, 2.25rem);
    font-weight: 450;
    letter-spacing: -.035em;
    line-height: 1.15;
    margin: 0;
}

.hero-message h1 span {
    color: #21b6e4;
    font-weight: 650;
}

.hero-brand-lockup {
    height: auto;
    max-height: 90px;
    max-width: 43%;
    object-fit: contain;
    position: relative;
    width: 430px;
    z-index: 2;
}

.dashboard-hero .carousel-control-prev,
.dashboard-hero .carousel-control-next {
    opacity: 0;
    transition: opacity .2s;
    width: 4%;
}

.dashboard-hero:hover .carousel-control-prev,
.dashboard-hero:hover .carousel-control-next {
    opacity: .8;
}

.dashboard-section {
    margin-top: 16px;
}

.section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 40px;
    padding: 0 2px;
}

.section-heading h2 {
    color: var(--sm-ink);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: -.015em;
    margin: 0;
}

.section-heading a {
    color: #4d56ba;
    font-size: .68rem;
    font-weight: 600;
    text-decoration: none;
}

.compact-heading {
    min-height: 32px;
}

.quick-access-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.quick-access-card {
    align-items: center;
    background: #fff;
    border: 1px solid #eaecf2;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(35, 41, 70, .045);
    color: var(--sm-ink);
    display: flex;
    gap: 11px;
    min-height: 65px;
    padding: 10px 12px;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.quick-access-card:hover {
    border-color: #d8d9ee;
    box-shadow: 0 10px 26px rgba(35, 41, 70, .09);
    color: var(--sm-primary);
    transform: translateY(-2px);
}

.quick-access-icon {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    flex: 0 0 39px;
    height: 39px;
    justify-content: center;
    width: 39px;
}

.quick-access-icon .bi {
    font-size: 1.15rem;
}

.tone-purple { background: #eee9ff; color: #7148d9; }
.tone-blue { background: #e8f4ff; color: #1688ee; }
.tone-violet { background: #f0eaff; color: #6448d4; }
.tone-green { background: #e6f9ed; color: #19a75a; }
.tone-yellow { background: #fff6db; color: #e9a910; }

.quick-access-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.quick-access-copy strong,
.quick-access-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-access-copy strong {
    font-size: .76rem;
}

.quick-access-copy small {
    color: #848b99;
    font-size: .62rem;
    margin-top: 4px;
}

.quick-access-arrow {
    color: #465065;
    font-size: .75rem;
}

.dashboard-content-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.48fr) minmax(0, 1.32fr) minmax(250px, .92fr);
    margin-top: 28px;
}

.dashboard-content-grid > .dashboard-panel {
    min-height: 370px;
}

.dashboard-panel {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
    min-width: 0;
    padding: 10px 12px 12px;
}

.featured-announcement {
    align-items: stretch;
    background: #fafaff;
    border: 1px solid #e4e2f6;
    border-radius: 11px;
    color: inherit;
    display: grid;
    gap: 12px;
    grid-template-columns: 36% minmax(0, 1fr) 18px;
    min-height: 135px;
    padding: 10px;
    text-decoration: none;
}

.featured-announcement:hover,
.announcement-row:hover {
    color: var(--sm-primary);
}

.featured-announcement-art {
    align-items: center;
    background: var(--sm-primary-dark);
    border-radius: 9px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.featured-announcement-art .bi {
    color: #a995ff;
    font-size: 2.5rem;
}

.featured-announcement-art small {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin-top: 8px;
    text-transform: uppercase;
}

.featured-announcement-copy,
.announcement-row-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.featured-announcement-copy > strong {
    color: #33388e;
    font-size: .8rem;
    margin: 6px 0 4px;
}

.featured-announcement-copy > span:not(.content-tag),
.announcement-row-copy > span {
    color: #677083;
    font-size: .65rem;
    line-height: 1.38;
}

.featured-announcement-copy > small,
.announcement-row-copy > small {
    color: #818899;
    font-size: .56rem;
    margin-top: auto;
    padding-top: 6px;
}

.announcement-bookmark {
    align-self: start;
    color: #6d72bb;
    font-size: .9rem;
}

.announcement-row {
    align-items: center;
    border-bottom: 1px solid #edf0f4;
    color: inherit;
    display: grid;
    gap: 11px;
    grid-template-columns: 39px minmax(0, 1fr) 18px;
    min-height: 76px;
    padding: 8px 5px;
    text-decoration: none;
}

.announcement-row:last-child {
    border-bottom: 0;
}

.announcement-row-icon {
    align-items: center;
    background: #efedff;
    border-radius: 50%;
    color: #6b55d9;
    display: flex;
    height: 35px;
    justify-content: center;
    width: 35px;
}

.announcement-row-copy strong {
    color: #333a4e;
    font-size: .73rem;
    margin-bottom: 2px;
}

.content-tag {
    align-self: flex-start;
    border-radius: 5px;
    display: inline-block;
    font-size: .53rem !important;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    padding: 4px 6px;
    text-transform: uppercase;
}

.tag-purple { background: #7251d6; color: #fff; }
.tag-blue { background: #238dea; color: #fff; }
.tag-green { background: #28b76b; color: #fff; }
.tag-orange { background: #f08a19; color: #fff; }

.course-card-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-course-card {
    border: 1px solid #e5e7ed;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(38, 43, 72, .04);
    color: inherit;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
}

.dashboard-course-card:hover {
    border-color: #cfd2e8;
    color: var(--sm-primary);
}

.dashboard-course-cover {
    height: 165px;
    object-fit: cover;
    width: 100%;
}

.course-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 145px;
    padding: 9px;
}

.course-card-content small {
    align-self: flex-start;
    background: #edf4ff;
    border-radius: 4px;
    color: #4a75aa;
    font-size: .52rem;
    padding: 3px 5px;
}

.course-card-content strong {
    color: #242b3d;
    display: block;
    font-size: .68rem;
    line-height: 1.35;
    margin-top: 9px;
}

.course-card-content > span:not(.course-progress) {
    color: #646d80;
    font-size: .61rem;
    margin-top: auto;
    padding-top: 10px;
}

.course-progress {
    background: #e9ebf0;
    border-radius: 4px;
    display: block;
    height: 4px;
    margin-top: 8px;
    overflow: hidden;
    width: 100%;
}

.course-progress span {
    background: #6545d5;
    border-radius: inherit;
    display: block;
    height: 100%;
}

.birthdays-panel {
    display: flex;
    flex-direction: column;
}

.birthday-list {
    flex: 1;
}

.birthday-row {
    align-items: center;
    border-top: 1px solid #edf0f4;
    display: grid;
    gap: 9px;
    grid-template-columns: 39px minmax(0, 1fr) 24px;
    min-height: 56px;
    padding: 6px 2px;
}

.birthday-avatar {
    border-radius: 50%;
    height: 36px;
    object-fit: cover;
    width: 36px;
}

.birthday-row > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.birthday-row small,
.birthday-row strong,
.birthday-row em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.birthday-row small {
    color: #41495b;
    font-size: .58rem;
}

.birthday-row strong {
    color: #2e3547;
    font-size: .68rem;
}

.birthday-row em {
    color: #838a98;
    font-size: .56rem;
    font-style: normal;
}

.birthday-cake {
    object-fit: contain;
}

.birthday-all-link {
    border: 1px solid #d7d8eb;
    border-radius: 8px;
    color: var(--sm-primary);
    font-size: .65rem;
    font-weight: 600;
    margin-top: 8px;
    padding: 8px 10px;
    text-align: center;
    text-decoration: none;
}

.news-panel {
    margin-top: 14px;
}

.dashboard-news-grid {
    display: grid;
    gap: 13px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-news-card {
    border: 1px solid #e4e7ed;
    border-radius: 9px;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
}

.dashboard-news-card:hover {
    border-color: #cfd2e8;
    box-shadow: 0 8px 22px rgba(38, 43, 72, .08);
    color: var(--sm-primary);
}

.dashboard-news-cover {
    height: 84px;
    object-fit: cover;
    width: 100%;
}

.dashboard-news-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 77px;
    padding: 9px 10px;
}

.dashboard-news-content strong {
    color: #222a3c;
    font-size: .72rem;
    line-height: 1.25;
    margin-top: 7px;
}

.dashboard-news-content > span {
    color: #848b99;
    font-size: .57rem;
    margin-top: auto;
    padding-top: 8px;
}

.modern-empty-state {
    align-items: center;
    color: #778092;
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 140px;
    text-align: center;
}

.modern-empty-state .bi {
    color: #b5b9d9;
    font-size: 1.8rem;
}

.intranet-footer {
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--sm-line);
    color: #9197a4;
    display: grid;
    font-size: .65rem;
    gap: 18px;
    grid-template-columns: 1fr auto auto;
    margin-top: 10px;
    min-height: 40px;
    padding: 5px 24px;
}

.intranet-footer nav {
    display: flex;
    gap: 18px;
}

.intranet-footer a {
    color: #777f90;
    text-decoration: none;
}

.footer-social {
    display: flex;
    font-size: 1.2rem;
    gap: 10px;
}

.footer-social a {
    color: var(--sm-primary);
}

@media (max-width: 1300px) {
    #navbar.intranet-topbar {
        gap: 12px;
        grid-template-columns: minmax(190px, .8fr) minmax(250px, 1.35fr) minmax(220px, .8fr) minmax(170px, .7fr);
        padding-inline: 18px;
    }

    .topbar-shortcuts a {
        min-width: 40px;
    }

    .topbar-shortcuts span,
    .profile-copy small {
        display: none;
    }

    .dashboard-content-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.25fr);
    }

    .birthdays-panel {
        grid-column: 1 / -1;
    }

    .birthday-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    #navbar.intranet-topbar {
        grid-template-columns: minmax(190px, .8fr) minmax(240px, 1.2fr) auto;
    }

    .topbar-shortcuts {
        display: none;
    }

    .quick-access-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #sidebar.intranet-sidebar {
        margin-left: -204px;
    }

    #sidebar.intranet-sidebar.active {
        margin-left: 0;
    }

    #content,
    #content.active {
        margin-left: 0;
        width: 100%;
    }

    #navbar.intranet-topbar,
    #navbar.intranet-topbar.active {
        gap: 10px;
        grid-template-columns: 1fr auto;
        height: 76px;
        left: 0;
        padding: 0 14px;
    }

    .navbar-spacer {
        height: 76px;
    }

    .topbar-menu-button {
        display: block;
    }

    .topbar-greeting strong {
        font-size: 1rem;
    }

    .topbar-greeting span,
    .topbar-search,
    .profile-copy,
    .profile-chevron,
    .profile-notification {
        display: none;
    }

    .profile-button {
        width: auto;
    }

    .profile-avatar {
        height: 38px;
        width: 38px;
    }

    .intranet-main {
        padding: 12px;
    }

    .dashboard-hero-slide {
        align-items: flex-start;
        flex-direction: column;
        height: 210px;
        justify-content: center;
        padding: 24px;
    }

    .hero-message h1 {
        font-size: 1.7rem;
    }

    .hero-brand-lockup {
        margin-top: 20px;
        max-width: 78%;
        width: 330px;
    }

    .quick-access-grid,
    .dashboard-content-grid,
    .dashboard-news-grid {
        grid-template-columns: 1fr;
    }

    .quick-access-grid {
        gap: 9px;
    }

    .birthdays-panel {
        grid-column: auto;
    }

    .birthday-list {
        display: block;
    }

    .course-card-grid {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .featured-announcement {
        grid-template-columns: 92px minmax(0, 1fr) 16px;
    }

    .intranet-footer {
        grid-template-columns: 1fr auto;
        padding-inline: 14px;
    }

    .intranet-footer nav {
        display: none;
    }
}

@media (max-width: 430px) {
    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .featured-announcement {
        grid-template-columns: 1fr 18px;
    }

    .featured-announcement-art {
        display: none;
    }

    .course-card-grid {
        grid-template-columns: repeat(3, 142px);
    }
}
