@import url('https://fonts.googleapis.com/css2?family=Outfit:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --bs-font-sans-serif: "Outfit", sans-serif;
  --bs-body-font-family: "Outfit", sans-serif;
}
html {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}
body,
button,
input,
select,
textarea,
.footer,
code,
.preview-list .preview-item .preview-item-content p .content-category {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "wdth" 100;
}

.auth form .auth-form-btn { width: 100%; }
.rex-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: #0C287B;
    letter-spacing: 0;
}
.rex-topbar {
    display: block;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #E6E7F1;
    box-shadow: none;
}
.rex-topbar-row {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    min-height: 74px;
    padding: 0 28px;
}
.rex-topbar-logo {
    display: flex;
    align-items: center;
    line-height: 0;
    flex: 0 0 auto;
}
.rex-topbar-logo img {
    height: 40px;
    width: auto;
    max-width: none;
    filter: none;
}
.rex-topbar-divider {
    width: 1px;
    height: 28px;
    background: #D5DCF0;
    flex: 0 0 auto;
}
.rex-topnav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 30px;
    min-width: 0;
}
.rex-topnav-link {
    position: relative;
    display: flex;
    align-items: center;
    color: #191C20;
    font-size: 15px;
    font-weight: 600;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}
.rex-topnav-link .mdi { font-size: 18px; line-height: 1; color: #0C287B; }
.rex-topnav-link:hover { color: #0C287B; text-decoration: none; }
.rex-topnav-link.active { color: #0C287B; font-weight: 700; }
.rex-topnav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: #0C287B;
}
.rex-topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 0 0 auto;
}
.rex-topbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #0C287B;
    font-size: 22px;
    text-decoration: none;
}
.rex-topbar-icon .mdi { font-size: 22px; line-height: 1; }
.rex-topbar-icon:hover,
.rex-topbar-icon.active { color: #0C287B; text-decoration: none; }
.rex-topbar-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #0C287B;
    color: #fff;
    font-weight: 700;
    text-transform: none;
    white-space: nowrap;
}
.rex-topbar-add:hover { background: #163A9A; color: #fff; }
.rex-topbar-add .mdi { font-size: 18px; line-height: 1; }
.rex-topbar .nav-profile { position: relative; }
.rex-topbar .nav-profile .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 2px;
    color: #191C20;
    font-weight: 600;
}
.rex-topbar .dropdown-toggle::after {
    margin-left: 6px;
    color: #43474E;
    vertical-align: middle;
}
.rex-topbar-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid #0C287B;
    border-radius: 50%;
    background: #E7EBF6;
    color: #0C287B;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.rex-topbar .nav-profile .dropdown-menu { right: 0; left: auto; }
.horizontal-menu .bottom-navbar .page-navigation > .nav-item > .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
}
.horizontal-menu .bottom-navbar .page-navigation > .nav-item > .nav-link .menu-icon,
.horizontal-menu .bottom-navbar .page-navigation > .nav-item > .nav-link .menu-title {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
}
.rex-topbar-menu {
    display: none;
    border: 0;
    background: transparent;
    color: #0C287B;
    font-size: 26px;
    line-height: 1;
    padding: 4px;
}
@media (min-width: 768px) {
    .horizontal-menu .bottom-navbar { display: none !important; }
}
@media (max-width: 767.98px) {
    .rex-topnav,
    .rex-topbar-row > .rex-topbar-divider,
    .rex-topbar .nav-profile-name,
    .rex-topbar .dropdown-toggle::after { display: none; }
    .rex-topbar-row { padding: 0 12px; gap: 10px; }
    .rex-topbar-menu { display: inline-flex; }
    .rex-topbar-add { padding: 0 12px; }
}
.auth .brand-logo img { width: min(280px, 100%); height: auto; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin: 1.25rem 0 1rem; }
.lede, .meta { color: #6c7293; }
.lede { margin: 0; }
.filters, .actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.filters { margin-bottom: 1rem; }
.filters > .form-control { width: auto; min-width: 180px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin-bottom: .75rem; }
.field label { display: block; font-weight: 500; margin-bottom: .35rem; }
.req { color: #ee5b5b; }
.level { margin-bottom: .5rem; }
.step { border: 1px solid #ebedf2; border-radius: 4px; padding: 1rem; margin-bottom: .75rem; }
.step h3, .step h4 { margin: 0 0 .35rem; font-size: 1rem; }
.overlay { position: fixed; inset: 0; background: rgba(16, 16, 40, .45); display: none; z-index: 1040; }
.overlay.open { display: block; }
.rex-drawer {
    position: fixed; top: 0; right: 0; height: 100%; width: min(520px, 100%);
    z-index: 1050; transform: translateX(100%); transition: transform .2s ease; overflow: auto;
    background: #fff; padding: 1.5rem; box-shadow: 0 0 24px rgba(0, 0, 0, .12);
}
.rex-drawer.open { transform: none; }
.suggest { border: 1px solid #ebedf2; border-radius: 4px; margin-top: 4px; display: none; max-height: 220px; overflow: auto; background: #fff; }
.suggest button { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #ebedf2; padding: .5rem .75rem; cursor: pointer; color: #212529; }
.toggle-card {
    display: flex; justify-content: space-between; gap: 16px; align-items: center;
    border: 1px solid #ebedf2; border-radius: 4px; padding: 14px 16px; margin-bottom: 16px; background: #fff;
}
.toggle-card p { margin: 4px 0 0; color: #6c7293; font-size: 13px; font-weight: 500; }
.toggle-card strong { font-size: 14px; }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #e5e7eb; border-radius: 999px; cursor: pointer; }
.switch span:before {
    content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
    background: #fff; border-radius: 999px; transition: .2s;
}
.switch input:checked + span { background: #0C287B; }
.switch input:checked + span:before { transform: translateX(20px); }
.price-input { display: flex; align-items: center; gap: 8px; }
.price-input span { font-weight: 700; color: #6c7293; }
.price-input input { flex: 1; }
.pack-row { border: 1px solid #ebedf2; border-radius: 4px; padding: 12px; margin-bottom: 10px; }
.pack-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
hr.sep { border: 0; border-top: 1px solid #ebedf2; margin: 16px 0; }
.section-title { margin: 18px 0 10px; font-size: 16px; }
@media (max-width: 900px) {
    .grid-3, .form-grid, .charts, .page-head { grid-template-columns: 1fr; display: block; }
    .page-head { display: block; }
}

.rex-product {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 18px;
}
.rex-product-main { width: 65%; min-width: 0; }
.rex-product-side { width: 35%; min-width: 0; }
.rex-product h2 {
    margin: 0 0 12px;
    color: #0C287B;
    font-size: 18px;
    font-weight: 800;
}
.rex-product .card {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(12, 40, 123, 0.06);
    min-height: 640px;
}
.rex-product .card-body {
    max-height: 725px;
    padding: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #0C287B #f1f3f7;
}
.rex-product .card-body::-webkit-scrollbar { width: 8px; }
.rex-product .card-body::-webkit-scrollbar-track { background: #f1f3f7; border-radius: 999px; }
.rex-product .card-body::-webkit-scrollbar-thumb { background: #0C287B; border-radius: 999px; border: 2px solid #f1f3f7; }
.rex-product .nav-tabs {
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
    padding: 12px 16px 0;
    overflow-x: auto;
    border-bottom: 1px solid #e6e9f2;
    scrollbar-color: #0C287B #f1f3f7;
}
.rex-product .nav-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 12px 12px 0 0;
    color: #5c657a;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}
.rex-product .nav-tabs .nav-link .mdi { font-size: 18px; line-height: 1; }
.rex-product .nav-tabs .nav-link.active {
    color: #0C287B;
    background: #E7EBF6;
}
.rex-product .tab-content { padding: 16px; }
.rex-product-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rex-product-fields {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 10px 12px;
    list-style: none;
    border: 1px solid #E4E8F4;
    border-radius: 16px;
    background: #fff;
}
.rex-product-fields li {
    display: grid;
    grid-template-columns: minmax(140px, 38%) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 48px;
    margin: 0;
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(231, 235, 246, 0.55);
}
.rex-product-fields .label {
    color: #5c657a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}
.rex-product-fields .info {
    color: #151126;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    word-break: break-word;
}
.rex-product-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 4px 20px 20px;
}
.rex-product-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 10px;
    font-weight: 800;
}
.rex-product-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #6c7293;
    font-size: 13px;
}
.rex-product-table-wrap {
    overflow: auto;
    border: 1px solid #E4E8F4;
    border-radius: 16px;
    background: #fff;
}
.rex-product-table { margin: 0; }
.rex-product-table thead th {
    padding: 14px 16px;
    border-bottom: 1px solid #E4E8F4;
    background: #F7F8FC;
    color: #5c657a;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.rex-product-table td {
    padding: 14px 16px;
    color: #151126;
    font-size: 14px;
    font-weight: 600;
    vertical-align: middle;
}
.rex-product-empty {
    margin: 0;
    padding: 28px 8px;
    color: #8b93a7;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.rex-product .card-body.rex-activity-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.rex-product-activity { flex: 1; min-height: 180px; padding: 18px 18px 8px; overflow: auto; }
.rex-product-activity .step { position: relative; padding: 0 0 2px 22px; }
.rex-product-activity .step h6 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #151126;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}
.rex-product-activity .activity-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #5c657a;
    font-weight: 700;
}
.rex-product-activity .activity-meta .mdi { font-size: 14px; line-height: 1; }
.rex-product-activity .activity-dash { color: #151126; }
.rex-product-comment {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid #eef0f5;
    background: #fff;
}
.rex-product-comment input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #151126;
    font-size: 13px;
    font-weight: 600;
}
.rex-product-comment {
    border: 1px solid #e4e7f2;
    border-radius: 12px;
    margin: auto 12px 12px;
}
.rex-product-comment:focus-within {
    border-color: #0C287B;
    box-shadow: 0 0 0 3px rgba(12, 40, 123, 0.12);
}
.rex-product-comment button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #0C287B;
    color: #fff;
    cursor: pointer;
}
.rex-product-comment button .mdi { font-size: 18px; line-height: 1; }
.rex-product-comment-error {
    flex: 1 0 100%;
    margin: 0;
    color: #b00020;
    font-size: 12px;
    font-weight: 700;
}
.rex-product-activity .step h6::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0C287B;
    box-shadow: 0 0 0 4px #E7EBF6;
}
.rex-product-activity .step p {
    margin: 0;
    padding: 4px 0 24px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}
.rex-product-activity .step:not(:last-of-type)::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 18px;
    bottom: 2px;
    width: 2px;
    border-radius: 2px;
    background: #e4e7f2;
}
@media (max-width: 991px) {
    .rex-product { display: block; }
    .rex-product-main, .rex-product-side { width: 100%; }
    .rex-product-side { margin-top: 20px; }
    .rex-product .card { min-height: 0; }
    .rex-product .card-body { max-height: none; }
}
@media (max-width: 576px) {
    .rex-product-columns { grid-template-columns: 1fr; }
    .rex-product-fields li { grid-template-columns: 1fr; gap: 6px; min-height: 0; }
}
