/* ==========================================================================
   Augminter — rebrand theme layer
   Loaded AFTER style.css / style-rtl.css so it overrides the legacy skin.
   Spec: design_handoff_augminter_rebrand/README.md
   Remove this single <link> to roll back to the TheSwanPro skin.
   ========================================================================== */

:root {
    /* brand */
    --aug-brand-700: #3d34d1;
    --aug-brand-600: #4f46e5;
    --aug-brand-500: #6d5ef0;
    --aug-brand-400: #8b7bf5;
    --aug-brand-200: #c7c0f7;
    --aug-brand-soft: #eef0fb;
    --aug-brand-soft-2: #efeafc;

    /* ink & text */
    --aug-ink: #0f1222;
    --aug-text: #3a4152;
    --aug-muted: #5c6373;
    --aug-muted-2: #8a90a0;
    --aug-muted-3: #9aa1b2;

    /* sidebar */
    --aug-sidebar-bg: #0f1222;
    --aug-sidebar-flyout: #171a2e;
    --aug-sidebar-item: #aab0c4;
    --aug-sidebar-icon: #7e8499;
    --aug-sidebar-active-bg: rgba(99, 102, 241, .22);
    --aug-sidebar-active-icon: #a5b4ff;

    /* surfaces */
    --aug-page-bg: #f4f5f8;
    --aug-app-bg: #eef0f4;
    --aug-card-bg: #ffffff;
    --aug-border: #eef0f4;
    --aug-border-2: #e3e6ee;
    --aug-border-3: #eaecf1;
    --aug-input-bg: #fbfbfd;

    /* status */
    --aug-success: #0f9d58;
    --aug-success-bg: #e6f6ec;
    --aug-warning: #b26a00;
    --aug-warning-bg: #fbf1df;
    --aug-danger: #e04848;

    /* shadows */
    --aug-shadow-card: 0 18px 40px -22px rgba(79, 70, 229, .5);
    --aug-shadow-auth: 0 40px 90px -30px rgba(20, 20, 35, .4);
    --aug-shadow-flyout: 0 24px 60px -20px rgba(0, 0, 0, .65);

    /* type */
    --aug-font-display: 'Space Grotesk', 'Poppins', system-ui, sans-serif;
    --aug-font-body: 'Manrope', 'Poppins', system-ui, sans-serif;
    --aug-font-serif: 'Instrument Serif', Georgia, serif;

    /* shell metrics */
    --aug-sidebar-w: 236px;
    --aug-sidebar-w-collapsed: 74px;
    --aug-topbar-h: 64px;
}

/* ==========================================================================
   1. Base
   ========================================================================== */

body {
    font-family: var(--aug-font-body);
    color: var(--aug-text);
    background: var(--aug-page-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.top-title, .card-header, .modal-title {
    font-family: var(--aug-font-display);
    letter-spacing: -0.01em;
    color: var(--aug-ink);
}

a {
    color: var(--aug-brand-600);
    text-decoration: none;
}

a:hover {
    color: var(--aug-brand-700);
}

input::placeholder,
textarea::placeholder {
    color: var(--aug-muted-3);
}

/* ==========================================================================
   2. Auth shell — login & company selector
   ========================================================================== */

.aug-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--aug-app-bg);
}

.aug-auth--selector {
    background: linear-gradient(160deg, #1c1b3a, #2b2870 60%, var(--aug-brand-600));
}

/* --- brand mark ---------------------------------------------------------- */

.aug-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.aug-brand__mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--aug-brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--aug-font-display);
    font-weight: 700;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.aug-brand__mark img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.aug-brand__text {
    font-family: var(--aug-font-display);
    font-weight: 700;
    font-size: 21px;
    color: var(--aug-ink);
    letter-spacing: -0.01em;
}

/* --- login card ---------------------------------------------------------- */

.aug-login {
    width: 100%;
    max-width: 1120px;
    height: 720px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--aug-shadow-auth);
    background: #fff;
    display: flex;
}

.aug-login__form {
    width: 50%;
    padding: 60px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aug-login__inner {
    max-width: 380px;
    width: 100%;
}

.aug-login__title {
    font-family: var(--aug-font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--aug-ink);
    letter-spacing: -0.02em;
}

.aug-login__subtitle {
    color: var(--aug-muted);
    font-size: 15px;
    margin-top: 8px;
    margin-bottom: 32px;
}

.aug-login__footnote {
    color: var(--aug-muted-3);
    font-size: 12.5px;
    margin-top: 30px;
}

/* --- form controls ------------------------------------------------------- */

.aug-label {
    display: block;
    font-size: 13px;
    color: var(--aug-text);
    margin-bottom: 8px;
    font-weight: 600;
}

.aug-input {
    width: 100%;
    height: 50px;
    border: 1.5px solid var(--aug-border-2);
    border-radius: 12px;
    padding: 0 15px;
    font-size: 15px;
    font-family: inherit;
    color: var(--aug-ink);
    outline: none;
    background: var(--aug-input-bg);
    transition: border-color .15s, box-shadow .15s;
}

.aug-input:focus {
    border-color: var(--aug-brand-400);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}

.aug-input.is-invalid {
    border-color: var(--aug-danger);
}

.aug-field {
    margin-bottom: 18px;
}

.aug-field__error {
    display: block;
    color: var(--aug-danger);
    font-size: 12.5px;
    margin-top: 6px;
}

/* checkbox that keeps the prototype's soft square look */
.aug-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--aug-text);
    font-size: 13.5px;
    cursor: pointer;
    margin: 0;
}

.aug-check input {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border: 1.5px solid #cfd4e0;
    background: #fff;
    cursor: pointer;
    display: inline-block;
    position: relative;
    margin: 0;
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
}

.aug-check input:checked {
    background: var(--aug-brand-600);
    border-color: var(--aug-brand-600);
}

.aug-check input:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 9px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* --- buttons ------------------------------------------------------------- */

.aug-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 11px;
    font-family: var(--aug-font-display);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: filter .15s, background .15s, color .15s, border-color .15s;
    text-decoration: none;
}

.aug-btn:hover {
    filter: brightness(1.06);
}

.aug-btn--primary {
    background: var(--aug-brand-600);
    color: #fff;
}

.aug-btn--primary:hover {
    color: #fff;
}

.aug-btn--soft {
    background: var(--aug-brand-soft-2);
    color: #5b3fd4;
}

.aug-btn--soft:hover {
    color: #5b3fd4;
}

.aug-btn--outline {
    background: #fff;
    border: 1.5px solid var(--aug-border-2);
    color: var(--aug-text);
}

.aug-btn--danger-outline {
    height: 46px;
    padding: 0 26px;
    background: #fff;
    border: 1.5px solid var(--aug-border-2);
    border-radius: 12px;
    color: var(--aug-danger);
    font-size: 14.5px;
}

.aug-btn--block {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    font-size: 15.5px;
}

/* --- login visual / carousel --------------------------------------------- */

.aug-login__visual {
    width: 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 56px;
    background: #3f38d6;
}

.aug-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.1s ease;
}

.aug-slide.on {
    opacity: 1;
}

.aug-login__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 27, 90, .05), rgba(30, 27, 90, .72));
}

.aug-login__vtop {
    position: absolute;
    top: 44px;
    left: 56px;
    right: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aug-login__tag {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-family: var(--aug-font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .03em;
    opacity: .9;
}

.aug-dots {
    display: flex;
    gap: 8px;
}

.aug-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    border: none;
    padding: 0;
    transition: all .35s;
    cursor: pointer;
}

.aug-dot.on {
    width: 26px;
    background: #fff;
}

.aug-login__copy {
    position: relative;
    color: #fff;
}

.aug-login__headline {
    font-family: var(--aug-font-serif);
    font-size: 44px;
    line-height: 1.1;
    font-style: italic;
}

.aug-login__lede {
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .9);
    margin-top: 20px;
    max-width: 400px;
}

/* --- company selector ---------------------------------------------------- */

.aug-selector {
    width: 100%;
    max-width: 820px;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5);
}

.aug-selector__head {
    padding: 30px 40px;
    border-bottom: 1px solid var(--aug-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.aug-selector__title {
    font-family: var(--aug-font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--aug-ink);
    letter-spacing: -0.01em;
}

.aug-selector__subtitle {
    color: var(--aug-muted);
    font-size: 14px;
    margin-top: 4px;
}

.aug-selector__body {
    padding: 36px 40px;
}

.aug-selector__filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.aug-selector__filters > * {
    flex: 1 1 220px;
}

.aug-select,
.aug-search {
    height: 46px;
    width: 100%;
    border: 1.5px solid var(--aug-border-2);
    border-radius: 12px;
    padding: 0 15px;
    font-size: 14px;
    font-family: inherit;
    color: var(--aug-ink);
    background: var(--aug-input-bg);
    outline: none;
}

.aug-select:focus,
.aug-search:focus {
    border-color: var(--aug-brand-400);
}

.aug-companies {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.aug-company {
    display: block;
    border: 1.5px solid #eceef4;
    border-radius: 16px;
    padding: 26px 20px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    text-decoration: none;
    transition: box-shadow .18s, transform .18s, border-color .18s;
}

.aug-company:hover {
    box-shadow: var(--aug-shadow-card);
    transform: translateY(-3px);
    border-color: #c9c3f5;
}

.aug-company__logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--aug-font-display);
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    overflow: hidden;
}

.aug-company__logo__bg {
    background: linear-gradient(135deg, var(--aug-brand-600), var(--aug-brand-400));
}

.aug-company__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.aug-company__name {
    font-family: var(--aug-font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--aug-ink);
}

.aug-company__tag {
    color: var(--aug-muted-2);
    font-size: 13px;
    margin-top: 3px;
}

.aug-selector__foot {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.aug-empty {
    text-align: center;
    color: var(--aug-muted-2);
    font-size: 14px;
    padding: 30px 0;
    grid-column: 1 / -1;
}

/* ==========================================================================
   3. Application shell — sidebar + topbar + content
   ========================================================================== */

body.sidebar-long {
    --aug-shell-sidebar: var(--aug-sidebar-w);
}

body.sidebar-short {
    --aug-shell-sidebar: var(--aug-sidebar-w-collapsed);
}

/* --- sidebar ------------------------------------------------------------- */

.sidebar {
    top: 0 !important;
    height: 100vh !important;
    width: var(--aug-sidebar-w) !important;
    background-color: var(--aug-sidebar-bg) !important;
    border-right: 1px solid rgba(255, 255, 255, .05);
    z-index: 1030;
    overflow: visible;
    transition: width .22s ease;
}

.sidebar-short .sidebar {
    width: var(--aug-sidebar-w-collapsed) !important;
}

.sidebar .wrapper {
    padding: 0 14px 0 !important;
    min-height: 100vh;
    overflow: visible;
}

/* brand row at the top of the rail */
.aug-rail-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: var(--aug-topbar-h);
    padding: 0 4px;
    flex-shrink: 0;
}

.aug-rail-brand__mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #6366f1, var(--aug-brand-400));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}

.aug-rail-brand__text {
    font-family: var(--aug-font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
    color: #fff;
    white-space: nowrap;
}

.sidebar-short .aug-rail-brand {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    height: auto;
    padding: 12px 0;
}

/* wordmark hides when collapsed; the toggle must stay reachable */
.sidebar-short .aug-rail-brand__text {
    display: none;
}

.minibtn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--aug-sidebar-item);
    font-size: 14px;
    background: transparent;
    border: none;
    transition: background .15s;
}

.minibtn:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

/* nav rows */
.sidebar .nav-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 11px !important;
    border-radius: 10px;
    color: var(--aug-sidebar-item) !important;
    font-family: var(--aug-font-body);
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff !important;
}

.sidebar .nav-link.active,
.sidebar .nav-pills .nav-link.active {
    color: #fff !important;
    background: var(--aug-sidebar-active-bg) !important;
}

.sidebar .nav-pills .nav-item > a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff !important;
}

.sidebar .nav-link i {
    width: 26px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
    color: var(--aug-sidebar-icon);
}

.sidebar .nav-link.active i,
.sidebar .nav-link:hover i {
    color: var(--aug-sidebar-active-icon);
}

/* chevrons */
.sidebar .nav-link .fa-chevron-right,
.sidebar .nav-link .fa-chevron-left {
    margin-left: auto;
    font-size: 11px;
    transition: transform .2s;
    width: auto;
}

.sidebar .nav-link[aria-expanded="true"] .fa-chevron-right {
    transform: rotate(90deg);
}

.sidebar .nav-link[aria-expanded="true"] .fa-chevron-left {
    transform: rotate(-90deg);
}

/* sub-levels */
.sidebar .popupmenu1,
.sidebar .popupmenu1-child {
    padding-left: 11px !important;
}

.sidebar .popupmenu1 .nav-link,
.sidebar .popupmenu1 li a {
    font-size: 13px;
    padding: 8px 10px !important;
}

.sidebar .menu-item {
    font-size: 14px;
}

/* scroll area */
.sidebar .nav-pills {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - var(--aug-topbar-h) - 16px);
    width: 100%;
    padding-bottom: 16px !important;
    margin-bottom: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: #2a2e45 transparent;
}

.sidebar .nav-pills::-webkit-scrollbar {
    width: 6px;
}

.sidebar .nav-pills::-webkit-scrollbar-thumb {
    background: #2a2e45;
    border-radius: 999px;
}

/* collapsed rail: icon-only + flyout submenu */
.sidebar-short .sidebar .nav-link {
    /* justify-content: center; */
    padding: 12px 0 !important;
}

.sidebar-short .sidebar .nav-link .fa-chevron-right,
.sidebar-short .sidebar .nav-link .fa-chevron-left {
    display: none;
}

.sidebar-short .sidebar .popupmenu1 {
    background: var(--aug-sidebar-flyout) !important;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    padding: 8px !important;
    min-width: 212px;
    box-shadow: var(--aug-shadow-flyout);
    left: calc(var(--aug-sidebar-w-collapsed) + 6px) !important;
    z-index: 1040;
}

.sidebar-short .sidebar .nav-item[area-label]:hover:after {
    left: calc(var(--aug-sidebar-w-collapsed) - 4px);
    background: var(--aug-sidebar-flyout);
    font-family: var(--aug-font-body);
    border-radius: 8px;
    padding: 6px 10px;
}

/* collapse toggle pinned to the bottom of the rail */
.sidebar .collapse-btn .content {
    background: rgba(255, 255, 255, .06) !important;
    border-radius: 10px !important;
}

/* --- topbar -------------------------------------------------------------- */

.navbar-expand {
    left: var(--aug-shell-sidebar, var(--aug-sidebar-w));
    width: calc(100% - var(--aug-shell-sidebar, var(--aug-sidebar-w)));
    transition: left .22s ease, width .22s ease;
}

.navbar {
    height: var(--aug-topbar-h) !important;
    background: #fff !important;
    border-bottom: 1px solid var(--aug-border-3);
    box-shadow: none !important;
    padding: 0 26px !important;
}

.navbar .container-fluid {
    padding: 0;
}

.navbar .breadcrumb {
    margin: 0;
    font-family: var(--aug-font-display);
    font-size: 13px;
    letter-spacing: .02em;
}

.navbar .breadcrumb .breadcrumb-item,
.navbar .breadcrumb .breadcrumb-item a {
    color: var(--aug-muted-2);
    text-transform: uppercase;
}

.navbar .breadcrumb .breadcrumb-item:last-child,
.navbar .breadcrumb .breadcrumb-item:last-child a {
    color: var(--aug-ink);
    font-weight: 600;
}

/* company chip */
.aug-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--aug-brand-soft);
    color: var(--aug-brand-600);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 13px;
    border-radius: 9px;
    font-family: var(--aug-font-display);
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* icon buttons in the topbar */
.aug-iconbtn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--aug-page-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    font-size: 15px;
    border: none;
    transition: background .15s, color .15s;
}

.aug-iconbtn:hover {
    background: var(--aug-brand-soft) !important;
    color: var(--aug-brand-600) !important;
}

.aug-iconbtn__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--aug-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* language switcher pill — kept prominent, multi-language is required */
.aug-langpill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid #e6e8ef;
    border-radius: 9px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 600;
    color: var(--aug-text);
    cursor: pointer;
    background: #fff;
    transition: background .15s, color .15s, border-color .15s;
}

.aug-langpill:hover {
    background: var(--aug-brand-soft);
    color: var(--aug-brand-600);
    border-color: #d9dcf5;
}

.aug-langpill img {
    width: 18px;
    height: auto;
    border-radius: 2px;
}

.aug-langpill .fa-chevron-down {
    font-size: 10px;
    color: #a5abb8;
}

/* avatar */
.aug-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aug-brand-600), var(--aug-brand-400));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-family: var(--aug-font-display);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.aug-avatar:hover {
    color: #fff;
    filter: brightness(1.06);
}

.aug-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- content ------------------------------------------------------------- */

/* the shell row must not add its own gutter — .we-content owns the padding */
body.sidebar-long > .container-fluid,
body.sidebar-short > .container-fluid {
    padding: 0;
}

.we-content {
    margin-top: var(--aug-topbar-h) !important;
    margin-bottom: 0 !important;
    padding: 28px 30px !important;
    background: var(--aug-page-bg);
    /* `col` flexes to fill the row; a fixed width here would double-count the rail */
    width: auto !important;
    min-width: 0;
    transition: margin-left .22s ease;
}

.sidebar-long .we-content {
    margin-left: var(--aug-sidebar-w);
}

.sidebar-short .we-content {
    margin-left: var(--aug-sidebar-w-collapsed);
}

.page-title h1 .top-title {
    font-family: var(--aug-font-display);
    font-size: 28px !important;
    font-weight: 700;
    color: var(--aug-ink);
    letter-spacing: -0.02em;
}

.page-title {
    margin-bottom: 20px;
}

/* ==========================================================================
   4. Dashboard components
   ========================================================================== */

.aug-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
}

.aug-page-head__sub {
    color: var(--aug-muted-2);
    font-size: 13.5px;
    margin-top: 4px;
}

.aug-card {
    background: var(--aug-card-bg);
    border: 1px solid var(--aug-border);
    border-radius: 16px;
    padding: 22px 24px;
}

.aug-card__title {
    font-family: var(--aug-font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--aug-ink);
}

.aug-card__sub {
    font-size: 12.5px;
    color: var(--aug-muted-3);
    margin-top: 2px;
}

.aug-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

/* --- KPI cards ----------------------------------------------------------- */

.aug-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.aug-kpi {
    background: #fff;
    border: 1px solid var(--aug-border);
    border-radius: 16px;
    padding: 20px 22px;
    transition: box-shadow .18s, transform .18s, border-color .18s;
}

.aug-kpi:hover {
    box-shadow: var(--aug-shadow-card);
    transform: translateY(-3px);
    border-color: #c9c3f5;
}

.aug-kpi__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.aug-kpi__label {
    font-size: 13px;
    color: #7b8294;
    font-weight: 600;
}

.aug-kpi__value {
    font-family: var(--aug-font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--aug-ink);
    margin-top: 12px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.aug-kpi__sub {
    font-size: 12.5px;
    color: var(--aug-muted-3);
    margin-top: 3px;
}

.aug-delta {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.aug-delta--up {
    color: var(--aug-success);
    background: var(--aug-success-bg);
}

.aug-delta--down {
    color: var(--aug-danger);
    background: #fdecec;
}

.aug-delta--flat {
    color: var(--aug-muted);
    background: var(--aug-border);
}

/* mini sparkline */
.aug-spark {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 34px;
    margin-top: 14px;
}

.aug-spark span {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: var(--aug-brand-200);
    min-height: 2px;
}

.aug-spark--brand span {
    background: var(--aug-brand-600);
}

/* --- charts -------------------------------------------------------------- */

.aug-charts {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.aug-legend {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--aug-muted);
    flex-wrap: wrap;
}

.aug-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.aug-legend i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    display: inline-block;
}

.aug-bars {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 190px;
}

.aug-bars__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}

.aug-bars__pair {
    width: 100%;
    display: flex;
    gap: 5px;
    align-items: flex-end;
    height: 100%;
}

.aug-bars__pair i {
    flex: 1;
    border-radius: 5px 5px 0 0;
    display: block;
    min-height: 2px;
}

.aug-bars__a {
    background: var(--aug-brand-600);
}

.aug-bars__b {
    background: var(--aug-brand-200);
}

.aug-bars__label {
    font-size: 11px;
    color: var(--aug-muted-3);
    font-weight: 600;
}

/* donut */
.aug-donut-wrap {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.aug-donut {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aug-donut__hole {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aug-donut__total {
    font-family: var(--aug-font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--aug-ink);
}

.aug-donut__caption {
    font-size: 11px;
    color: var(--aug-muted-3);
}

.aug-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aug-donut-legend > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.aug-donut-legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.aug-donut-legend b {
    font-size: 13px;
    color: var(--aug-text);
    font-weight: 600;
    min-width: 78px;
}

.aug-donut-legend span {
    font-size: 13px;
    color: var(--aug-muted-3);
}

/* --- activity table ------------------------------------------------------ */

.aug-table {
    width: 100%;
}

.aug-table__head,
.aug-table__row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr .9fr .9fr;
    align-items: center;
    gap: 10px;
}

.aug-table__head {
    padding: 0 12px 10px;
    border-bottom: 1px solid #f0f1f5;
    font-size: 12px;
    color: var(--aug-muted-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.aug-table__row {
    padding: 14px 12px;
    border-bottom: 1px solid var(--aug-page-bg);
    font-size: 13.5px;
    color: var(--aug-text);
    transition: background .15s;
}

.aug-table__row:hover {
    background: #fafafe;
}

.aug-table__client {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.aug-table__av {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--aug-brand-600), var(--aug-brand-400));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--aug-font-display);
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.aug-table__amount {
    font-weight: 700;
    color: var(--aug-ink);
}

.aug-table__muted {
    color: var(--aug-muted-2);
}

/* status pills */
.aug-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.aug-pill--success {
    color: var(--aug-success);
    background: var(--aug-success-bg);
}

.aug-pill--warning {
    color: var(--aug-warning);
    background: var(--aug-warning-bg);
}

.aug-pill--brand {
    color: var(--aug-brand-600);
    background: var(--aug-brand-soft);
}

.aug-pill--muted {
    color: var(--aug-muted);
    background: var(--aug-border);
}

/* --- dashboard section headers ------------------------------------------- */

.aug-section {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 28px 0 16px;
}

.aug-section__title {
    font-family: var(--aug-font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--aug-ink);
}

.aug-section__meta {
    font-size: 12.5px;
    color: var(--aug-muted-3);
}

/* the ajax-loaded analysis cards get the KPI-card treatment */
.analysis .card {
    border: 1px solid var(--aug-border);
    border-radius: 16px;
    box-shadow: none !important;
    height: 100%;
    transition: box-shadow .18s, transform .18s, border-color .18s;
}

.analysis .card:hover {
    box-shadow: var(--aug-shadow-card);
    transform: translateY(-3px);
    border-color: #c9c3f5;
}

.analysis .card-header {
    background: #fff !important;
    border-bottom: none;
    padding: 18px 22px 0;
    font-family: var(--aug-font-display);
    font-size: 13px;
    font-weight: 600;
    color: #7b8294 !important;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.analysis .card-body {
    padding: 8px 22px 20px;
}

.analysis .card-body .f14 {
    font-size: 13px !important;
    color: var(--aug-muted);
    margin-top: 4px;
}

.analysis .card-body .f14 .fw-normal {
    font-family: var(--aug-font-display);
    font-size: 20px;
    font-weight: 700 !important;
    color: var(--aug-ink);
    display: block;
    letter-spacing: -0.02em;
}

.analysis .card-body h2 .fw-normal {
    font-family: var(--aug-font-display);
    font-size: 30px;
    font-weight: 700 !important;
    color: var(--aug-ink);
    letter-spacing: -0.02em;
}

/* news ticker + promo slideshow card */
.ticker-wrapper-h {
    background: var(--aug-brand-soft);
    border-radius: 12px;
    color: var(--aug-brand-600);
}

.summary > .row > h3,
.summary > .row > h4 {
    font-family: var(--aug-font-display);
}

/* skeletons while the analysis widgets load */
.skeleton-text {
    background: linear-gradient(90deg, #f0f1f5 25%, #f7f8fb 50%, #f0f1f5 75%);
    background-size: 200% 100%;
    animation: aug-shimmer 1.4s infinite;
    border-radius: 6px;
    height: 12px;
    display: inline-block;
}

@keyframes aug-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   5. Legacy component reskin (bleeds into the other ~1,800 views)
   ========================================================================== */

.card {
    border: 1px solid var(--aug-border);
    border-radius: 16px;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--aug-border);
    font-family: var(--aug-font-display);
    font-weight: 700;
}

.btn {
    border-radius: 10px;
    font-family: var(--aug-font-display);
    font-weight: 600;
}

.btn-primary,
.bg-blue {
    background-color: var(--aug-brand-600) !important;
    border-color: var(--aug-brand-600) !important;
}

.btn-primary:hover {
    background-color: var(--aug-brand-700) !important;
    border-color: var(--aug-brand-700) !important;
}

.bg-violet {
    background-color: var(--aug-brand-400) !important;
}

.color-blue {
    color: var(--aug-brand-600) !important;
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: var(--aug-border-2);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--aug-brand-400);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

.table > :not(caption) > * > * {
    border-color: #f0f1f5;
}

.modal-header {
    background-color: var(--aug-ink) !important;
}

.back-to-top {
    background: var(--aug-brand-600);
}

/* ==========================================================================
   6. RTL (Arabic locale) — mirror the shell
   ========================================================================== */

html[dir="rtl"] .sidebar,
body.rtl .sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, .05);
}

html[dir="rtl"] .navbar-expand,
body.rtl .navbar-expand {
    left: auto;
    right: var(--aug-shell-sidebar, var(--aug-sidebar-w));
}

html[dir="rtl"] .sidebar-long .we-content,
body.rtl .sidebar-long .we-content {
    margin-left: 0;
    margin-right: var(--aug-sidebar-w);
}

html[dir="rtl"] .sidebar-short .we-content,
body.rtl .sidebar-short .we-content {
    margin-left: 0;
    margin-right: var(--aug-sidebar-w-collapsed);
}

html[dir="rtl"] .sidebar-short .sidebar .popupmenu1,
body.rtl .sidebar-short .sidebar .popupmenu1 {
    left: auto !important;
    right: calc(var(--aug-sidebar-w-collapsed) + 6px) !important;
}

.table-striped>tbody>tr:nth-of-type(odd)>*{
    --bs-table-accent-bg:var(--aug-brand-soft) !important;
}

/* ==========================================================================
   7. Responsive
   ========================================================================== */

@media (max-width: 1400px) {
    .aug-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    .aug-charts {
        grid-template-columns: 1fr;
    }

    .aug-companies {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .aug-login {
        height: auto;
        max-width: 560px;
        flex-direction: column;
    }

    .aug-login__form {
        width: 100%;
        padding: 44px 32px;
    }

    .aug-login__inner {
        max-width: none;
    }

    .aug-login__visual {
        width: 100%;
        min-height: 320px;
        padding: 32px;
    }

    .aug-login__vtop {
        top: 24px;
        left: 32px;
        right: 32px;
    }

    .aug-login__headline {
        font-size: 32px;
    }

    .navbar-expand {
        left: 0;
        width: 100%;
    }

    .sidebar {
        top: var(--aug-topbar-h) !important;
        height: calc(100vh - var(--aug-topbar-h)) !important;
    }

    .we-content {
        padding: 20px 16px !important;
    }
}

@media (max-width: 767px) {
    .aug-auth {
        padding: 16px;
    }

    .aug-kpis,
    .aug-companies {
        grid-template-columns: 1fr;
    }

    .aug-table__head {
        display: none;
    }

    .aug-table__row {
        grid-template-columns: 1fr 1fr;
        row-gap: 6px;
    }

    .aug-selector__head,
    .aug-selector__body {
        padding: 24px 20px;
    }
}
