:root {
    --rc-shell-css-ready: 1;
    --rc-font-sans: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    --rc-ink-950: #172427;
    --rc-ink-800: #294044;
    --rc-ink-600: #5b6d70;
    --rc-ink-500: #7b8b8d;
    --rc-line: #e1e8e7;
    --rc-line-strong: #d2dddb;
    --rc-canvas: #f3f6f5;
    --rc-surface: #ffffff;
    --rc-river: #0e6f68;
    --rc-river-dark: #0a514d;
    --rc-river-soft: #e8f4f2;
    --rc-danger: #c54851;
    --rc-shadow-sm: 0 1px 2px rgba(20,45,46,.04), 0 4px 14px rgba(20,45,46,.035);
    --rc-shadow-md: 0 16px 40px rgba(20,45,46,.09);
}

html, body { min-width: 0; min-height: 100%; }
body.rivercraft-shell { margin: 0; background: var(--rc-canvas); color: var(--rc-ink-950); font-family: var(--rc-font-sans); font-size: 14px; font-weight: 400; }
body.rivercraft-shell a { text-decoration: none; }
body.rivercraft-shell button, body.rivercraft-shell input, body.rivercraft-shell select, body.rivercraft-shell textarea { font-family: var(--rc-font-sans); font-size: inherit; }
body.rivercraft-shell * { font-family: var(--rc-font-sans) !important; }
body.rivercraft-shell h1, body.rivercraft-shell h2, body.rivercraft-shell h3, body.rivercraft-shell h4, body.rivercraft-shell h5, body.rivercraft-shell h6,
body.rivercraft-shell .page-sidebar, body.rivercraft-shell .btn, body.rivercraft-shell .table, body.rivercraft-shell .dropdown-menu { font-family: var(--rc-font-sans) !important; }
body.rivercraft-shell .material-icons { display: inline-block; direction: ltr; font-family: "Material Icons" !important; font-style: normal; font-weight: 400 !important; letter-spacing: normal; line-height: 1; text-transform: none; white-space: nowrap; word-wrap: normal; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }
body.rivercraft-shell .fa { font-family: FontAwesome !important; }
body.rivercraft-shell [class^="icon-custom-"], body.rivercraft-shell [class*=" icon-custom-"] { font-family: icomoon !important; }
body.rivercraft-shell button:focus-visible, body.rivercraft-shell a:focus-visible, body.rivercraft-shell input:focus-visible, body.rivercraft-shell textarea:focus-visible { outline: 3px solid rgba(14,111,104,.22); outline-offset: 2px; }

.rc-global-header {
    position: relative;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(350px,1fr) minmax(280px,520px) minmax(300px,1fr);
    align-items: center;
    height: 70px;
    padding: 0 22px;
    border-bottom: 1px solid var(--rc-line);
    background: rgba(255,255,255,.97);
}
.rc-header-start, .rc-header-actions { display: flex; align-items: center; min-width: 0; }
.rc-header-actions { justify-content: flex-end; gap: 7px; }
.rc-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 154px; color: var(--rc-ink-950); }
.rc-brand:hover, .rc-brand:focus { color: var(--rc-ink-950); }
.rc-brand-mark { position: relative; display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; border-radius: 11px; background: var(--rc-river-dark); color: #fff; box-shadow: 0 7px 14px rgba(10,81,77,.18); font-size: 17px; font-weight: 750; }
.rc-brand-mark::after { content: ""; position: absolute; right: -10px; bottom: -12px; width: 35px; height: 25px; border-radius: 50%; background: #24a194; transform: rotate(-16deg); opacity: .75; }
.rc-brand-copy, .rc-profile-copy, .rc-corporate-button > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.15; }
.rc-brand-copy strong { font-size: 16px; letter-spacing: -.025em; }
.rc-brand-copy small, .rc-profile-copy small, .rc-corporate-button small { margin-top: 3px; color: var(--rc-ink-500); font-size: 10px; font-weight: 530; }
.rc-header-divider { width: 1px; height: 28px; margin: 0 15px 0 6px; background: var(--rc-line); }
.rc-corporate-button, .rc-profile-button, .rc-icon-button, .rc-mobile-menu { border: 0; background: transparent; color: inherit; cursor: pointer; }
.rc-corporate-button { display: flex; align-items: center; gap: 9px; min-width: 190px; padding: 7px 9px; border-radius: 10px; text-align: left; }
.rc-corporate-button:hover, .rc-profile-button:hover, .rc-icon-button:hover { background: #f3f6f5; }
.rc-corporate-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--rc-line); border-radius: 9px; color: var(--rc-river); }
.rc-corporate-icon .material-icons { font-size: 17px; }
.rc-corporate-button > span:nth-child(2) { flex: 1; min-width: 0; }
.rc-corporate-button strong, .rc-profile-copy strong { overflow: hidden; color: var(--rc-ink-800); font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.rc-corporate-button > .material-icons, .rc-profile-button > .material-icons { color: var(--rc-ink-500); font-size: 17px; }
.rc-global-search { display: flex; align-items: center; width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--rc-line); border-radius: 11px; background: #f8faf9; color: var(--rc-ink-500); }
.rc-global-search:focus-within { border-color: #8ac0bb; background: #fff; box-shadow: 0 0 0 3px var(--rc-river-soft); }
.rc-global-search .material-icons { font-size: 18px; }
.rc-global-search input { flex: 1; min-width: 0; padding: 0 10px; border: 0; outline: 0; background: transparent; color: var(--rc-ink-950); }
.rc-global-search kbd { padding: 2px 6px; border: 1px solid var(--rc-line); border-bottom-color: #c9d3d1; border-radius: 5px; background: #fff; color: var(--rc-ink-500); font-size: 10px; }
.rc-icon-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--rc-ink-600); }
.rc-icon-button .material-icons { font-size: 21px; }
.rc-notification-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: #db4c58; }
.rc-profile-button { display: flex; align-items: center; gap: 9px; min-width: 190px; padding: 5px 7px; border-radius: 11px; text-align: left; }
.rc-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #dcebea; color: var(--rc-river-dark); font-size: 11px; font-weight: 720; }
.rc-profile-copy { flex: 1; min-width: 0; }
.rc-profile-menu { min-width: 210px; padding: 8px; border: 1px solid var(--rc-line); border-radius: 12px; box-shadow: var(--rc-shadow-md); }
.rc-profile-menu a { display: flex !important; align-items: center; gap: 9px; padding: 9px 10px !important; border-radius: 8px; color: var(--rc-ink-800) !important; }
.rc-profile-menu .material-icons { font-size: 18px; }
.rc-mobile-menu { display: none; place-items: center; width: 38px; height: 38px; margin-right: 6px; border-radius: 9px; }

.rc-workspace-tabs { position: relative; z-index: 900; display: flex; align-items: flex-end; justify-content: space-between; height: 48px; padding: 7px 16px 0; border-bottom: 1px solid var(--rc-line-strong); background: #e9eeed; }
.rc-tabs-scroll { display: flex; align-items: flex-end; align-self: stretch; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.rc-tabs-scroll::-webkit-scrollbar { display: none; }
.rc-workspace-tab { position: relative; display: flex; align-items: center; flex: 0 0 auto; height: 40px; min-width: 148px; max-width: 215px; margin-right: 3px; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; color: var(--rc-ink-600); }
.rc-workspace-tab::after { content: ""; position: absolute; right: 0; bottom: 9px; width: 1px; height: 21px; background: #d0d9d7; }
.rc-workspace-tab.is-active { border-color: var(--rc-line-strong); background: #fff; color: var(--rc-ink-950); }
.rc-workspace-tab.is-active::before { content: ""; position: absolute; top: -1px; left: 9px; right: 9px; height: 2px; border-radius: 0 0 2px 2px; background: var(--tab-accent,var(--rc-river)); }
.rc-workspace-tab.is-active::after { display: none; }
.rc-home-tab { gap: 8px; padding: 0 15px; font-weight: 620; }
.rc-home-tab .material-icons { font-size: 17px; }
.rc-tab-main { display: flex; align-items: center; flex: 1; min-width: 0; height: 100%; padding: 0 4px 0 8px; color: inherit; }
.rc-tab-main:hover { color: inherit; }
.rc-tab-main > span:not(.rc-tab-icon) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-tab-grip { margin-right: 3px; color: #a9b4b3; font-size: 15px !important; cursor: grab; }
.rc-tab-icon { display: grid; place-items: center; width: 25px; height: 25px; margin-right: 7px; border-radius: 7px; background: #edf4f3; color: var(--tab-accent,var(--rc-river)); }
.rc-tab-icon .material-icons { font-size: 16px; }
.rc-tab-close, .rc-add-tab, .rc-app-popover-head button { display: grid; place-items: center; border: 0; background: transparent; color: #869492; cursor: pointer; }
.rc-tab-close { flex: 0 0 auto; width: 28px; height: 28px; margin-right: 5px; border-radius: 7px; }
.rc-tab-close:hover { background: #e9eeed; color: var(--rc-ink-950); }
.rc-tab-close .material-icons { font-size: 15px; }
.rc-add-tab { width: 38px; height: 38px; margin: 0 6px; border-radius: 9px; }
.rc-add-tab:hover { background: rgba(255,255,255,.68); }
.rc-unsaved-dot { flex: 0 0 auto; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--tab-accent); }
.rc-app-tab.is-dragging { opacity: .55; }
.rc-tabs-status { display: flex; align-items: center; align-self: stretch; gap: 5px; padding: 0 7px 12px 12px; color: #71817f; font-size: 11px; white-space: nowrap; }
.rc-tabs-status .material-icons { font-size: 15px; }
.rc-app-popover { position: absolute; top: 51px; right: 16px; z-index: 1200; width: min(360px,calc(100vw - 24px)); padding: 12px; border: 1px solid var(--rc-line); border-radius: 14px; background: #fff; box-shadow: var(--rc-shadow-md); }
.rc-app-popover-head { display: flex; align-items: center; justify-content: space-between; padding: 3px 4px 10px; }
.rc-app-popover-head button { width: 30px; height: 30px; border-radius: 8px; }
.rc-app-popover-head .material-icons { font-size: 18px; }
.rc-app-popover-list { display: grid; gap: 5px; }
.rc-app-popover-list a { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; padding: 9px; border-radius: 10px; color: var(--rc-ink-950); }
.rc-app-popover-list a:hover { background: #f6f8f7; }
.rc-app-popover-list a > span:first-child { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; }
.rc-app-popover-list a > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.rc-app-popover-list small { margin-top: 3px; color: var(--rc-ink-500); }

body.rivercraft-shell .rc-page-container { margin-top: 0 !important; background: var(--rc-canvas); }
body.rivercraft-shell .page-content { min-height: calc(100vh - 118px); margin-left: 250px; background: var(--rc-canvas); }
body.rivercraft-shell .page-content.rc-page-content-home { margin-left: 0; }
body.rivercraft-shell .page-content > .content { min-height: calc(100vh - 118px); padding: 0; }
body.rivercraft-shell .page-sidebar { top: 118px; height: calc(100vh - 118px); margin-top: 0 !important; padding-bottom: 0 !important; background: #14272a; }
body.rivercraft-shell .page-sidebar .page-sidebar-wrapper { height: 100%; }
body.rivercraft-shell .page-sidebar .rc-sidebar-avatar { display: grid; place-items: center; overflow: visible; border: 1px solid rgba(255,255,255,.14); background: #dcebea; color: var(--rc-river-dark); font-size: 13px; font-weight: 700; }
body.rivercraft-shell .footer-widget { display: none; }
body.rivercraft-shell .page-sidebar .menu-title { color: #71878a; }
body.rivercraft-shell .page-sidebar a { color: #a9b9ba; }
body.rivercraft-shell .page-sidebar ul > li > a:hover, body.rivercraft-shell .page-sidebar ul > li.open > a, body.rivercraft-shell .page-sidebar ul > li.active > a { background: rgba(255,255,255,.06); color: #fff; }

.rc-home-page { width: min(1420px,calc(100% - 48px)); margin: 0 auto; padding: 30px 0 18px; }
.rc-welcome-panel { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 150px; overflow: hidden; padding: 30px 34px; border: 1px solid #d7e2e0; border-radius: 20px; background: #f9fbfa; box-shadow: var(--rc-shadow-sm); }
.rc-welcome-panel::after { content: ""; position: absolute; right: -110px; bottom: -195px; width: 430px; height: 300px; border: 48px solid #e5f1ef; border-radius: 50%; transform: rotate(-10deg); }
.rc-welcome-copy, .rc-workspace-status { position: relative; z-index: 1; }
.rc-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--rc-ink-600); font-size: 11px; font-weight: 630; letter-spacing: .08em; text-transform: uppercase; }
.rc-eyebrow span { width: 7px; height: 7px; border: 2px solid #b7ded9; border-radius: 50%; background: var(--rc-river); box-sizing: content-box; }
.rc-welcome-copy h1 { margin: 0; font-size: clamp(28px,3.1vw,42px); font-weight: 650; letter-spacing: -.045em; line-height: 1.1; }
.rc-welcome-copy p { margin: 10px 0 0; color: var(--rc-ink-600); font-size: 15px; }
.rc-workspace-status { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; min-width: 280px; padding: 15px 17px; border: 1px solid #dbe5e3; border-radius: 14px; background: rgba(255,255,255,.84); box-shadow: 0 12px 30px rgba(21,61,60,.06); }
.rc-status-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--rc-river-soft); color: var(--rc-river); }
.rc-workspace-status > span:nth-child(2) { display: flex; flex-direction: column; }
.rc-workspace-status small, .rc-workspace-status em { color: var(--rc-ink-500); font-size: 10px; font-style: normal; }
.rc-workspace-status strong { margin: 2px 0; font-size: 14px; }
.rc-app-center, .rc-home-two-panel { margin-top: 28px; }
.rc-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rc-section-heading small { display: block; margin-bottom: 3px; color: var(--rc-ink-500); font-size: 10px; font-weight: 680; letter-spacing: .12em; }
.rc-section-heading h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.rc-text-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 2px; border: 0; background: transparent; color: var(--rc-river-dark); font-size: 12px; font-weight: 650; }
.rc-text-button .material-icons { font-size: 16px; }
.rc-application-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.rc-application-card { position: relative; display: flex; min-width: 0; min-height: 235px; flex-direction: column; overflow: hidden; padding: 20px; border: 1px solid var(--rc-line); border-radius: 16px; background: #fff; color: var(--rc-ink-950); box-shadow: var(--rc-shadow-sm); transition: transform .17s ease,border-color .17s ease,box-shadow .17s ease; }
.rc-application-card:hover { transform: translateY(-3px); border-color: var(--card-accent); color: var(--rc-ink-950); box-shadow: var(--rc-shadow-md); }
.rc-card-line { position: absolute; top: 0; left: 20px; width: 42px; height: 3px; border-radius: 0 0 4px 4px; background: var(--card-accent); }
.rc-card-head, .rc-card-foot { display: flex; align-items: center; justify-content: space-between; }
.rc-app-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--card-soft); color: var(--card-accent); }
.rc-app-icon .material-icons { font-size: 26px; }
.rc-access-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--rc-line); border-radius: 999px; color: var(--rc-ink-500); font-size: 9px; font-weight: 620; }
.rc-access-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--card-accent); }
.rc-card-body { display: flex; flex: 1; flex-direction: column; padding-top: 20px; }
.rc-card-body small { color: var(--card-accent); font-size: 10px; font-weight: 650; letter-spacing: .07em; }
.rc-card-body strong { margin-top: 4px; font-size: 17px; font-weight: 660; letter-spacing: -.025em; }
.rc-card-body > span { margin-top: 8px; color: var(--rc-ink-600); font-size: 12px; line-height: 1.55; }
.rc-card-foot { padding-top: 15px; border-top: 1px solid #edf1f0; color: var(--rc-ink-600); font-size: 11px; font-weight: 580; }
.rc-card-foot > .material-icons { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card-soft); color: var(--card-accent); font-size: 17px; }
.rc-home-two-panel { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; }
.rc-panel { padding: 20px; border: 1px solid var(--rc-line); border-radius: 16px; background: #fff; box-shadow: var(--rc-shadow-sm); }
.rc-ready-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border-radius: 8px; background: var(--rc-river-soft); color: var(--rc-river); font-size: 9px; font-weight: 700; }
.rc-ready-badge.is-green { background: #e8f7ef; color: #087f5b; }
.rc-foundation-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.rc-foundation-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 13px; border: 1px solid #edf1f0; border-radius: 12px; }
.rc-foundation-list > div > span, .rc-service-grid article > span, .rc-module-list > div > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--rc-river-soft); color: var(--rc-river); }
.rc-foundation-list .material-icons { font-size: 20px; }
.rc-foundation-list div div, .rc-service-grid article div, .rc-module-list > div div { display: flex; flex-direction: column; }
.rc-foundation-list strong { font-size: 12px; }
.rc-foundation-list small { margin-top: 4px; color: var(--rc-ink-500); font-size: 10px; line-height: 1.45; }
.rc-usage-panel dl { margin: 0; }
.rc-usage-panel dl > div { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid #edf1f0; }
.rc-usage-panel dt { color: var(--rc-ink-500); font-weight: 500; }
.rc-usage-panel dd { margin: 0; font-weight: 650; }
.rc-empty-state, .rc-mini-empty { display: flex; align-items: center; flex-direction: column; padding: 38px 20px; border: 1px dashed var(--rc-line-strong); border-radius: 16px; background: #fafcfb; text-align: center; }
.rc-empty-state > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--rc-river-soft); color: var(--rc-river); }
.rc-empty-state h3 { margin: 13px 0 5px; }
.rc-empty-state p, .rc-mini-empty p { max-width: 520px; margin: 0; color: var(--rc-ink-500); }
.rc-workspace-footer { display: flex; justify-content: space-between; padding: 22px 4px 0; color: #84918f; font-size: 10px; }
.rc-workspace-footer strong { color: var(--rc-river-dark); }

.rc-app-page { width: min(1380px,calc(100% - 52px)); margin: 0 auto; padding: 24px 0 30px; }
.rc-app-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.rc-app-page-header h1 { margin: 2px 0 4px; font-size: 25px; font-weight: 650; letter-spacing: -.035em; }
.rc-app-page-header p { margin: 0; color: var(--rc-ink-600); }
.rc-breadcrumb { display: flex; align-items: center; gap: 2px; color: var(--rc-ink-500); font-size: 10px; }
.rc-breadcrumb .material-icons { font-size: 13px; }
.rc-core-version { padding: 8px 11px; border: 1px solid var(--rc-line); border-radius: 9px; background: #fff; color: var(--rc-ink-600); font-size: 11px; }
.rc-core-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.rc-core-stats article { display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 17px; border: 1px solid var(--rc-line); border-radius: 14px; background: #fff; box-shadow: var(--rc-shadow-sm); }
.rc-core-stats article > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--rc-river-soft); color: var(--rc-river); }
.rc-core-stats article > div { display: flex; flex-direction: column; }
.rc-core-stats small { color: var(--rc-ink-500); }
.rc-core-stats strong { margin-top: 2px; font-size: 24px; }
.rc-core-two-panel { display: grid; grid-template-columns: 1.55fr .65fr; gap: 12px; margin-top: 12px; }
.rc-service-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.rc-service-grid article { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 12px; border: 1px solid #edf1f0; border-radius: 12px; }
.rc-service-grid strong, .rc-module-list strong { font-size: 12px; }
.rc-service-grid small, .rc-module-list small { margin-top: 3px; color: var(--rc-ink-500); font-size: 10px; line-height: 1.4; }
.rc-module-list { display: grid; gap: 8px; }
.rc-module-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 10px; border: 1px solid #edf1f0; border-radius: 11px; }
.rc-mini-empty { padding: 26px 15px; }
.rc-mini-empty .material-icons { margin-bottom: 8px; color: var(--rc-ink-500); font-size: 28px; }
.rc-migration-panel { margin-top: 12px; }
.rc-migration-panel .table { min-width: 680px; margin: 0; }
.rc-migration-panel th { color: var(--rc-ink-500); font-size: 9px; letter-spacing: .05em; }
.rc-migration-panel td { vertical-align: middle !important; color: var(--rc-ink-600); font-size: 11px; }
.rc-status-pill { display: inline-flex; padding: 4px 7px; border-radius: 99px; background: #e8f7ef; color: #087f5b; font-size: 9px; font-weight: 680; }

/* v1.4 typography rhythm: one readable scale across Webarch and Rivercraft. */
.rc-brand-copy strong { font-size: 16px; font-weight: 700; }
.rc-brand-copy small, .rc-profile-copy small, .rc-corporate-button small { font-size: 11px; }
.rc-corporate-button strong, .rc-profile-copy strong { font-size: 13px; font-weight: 600; }
.rc-global-search input { font-size: 13px; }
.rc-workspace-tab { font-size: 13px; }
.rc-tabs-status { font-size: 12px; }
.rc-eyebrow { font-size: 12px; }
.rc-workspace-status small, .rc-workspace-status em { font-size: 11px; }
.rc-access-badge, .rc-ready-badge { font-size: 11px; }
.rc-card-body small { font-size: 11px; }
.rc-card-body > span { font-size: 13px; }
.rc-card-foot { font-size: 12px; }
.rc-foundation-list strong { font-size: 13px; }
.rc-foundation-list small { font-size: 11px; }
.rc-usage-panel dt, .rc-usage-panel dd { font-size: 13px; }
.rc-empty-state p, .rc-mini-empty p { font-size: 13px; line-height: 1.55; }
.rc-workspace-footer { font-size: 11px; }
.rc-app-page-header h1 { font-size: 28px; font-weight: 650; }
.rc-app-page-header p { font-size: 14px; line-height: 1.55; }
.rc-breadcrumb { font-size: 11px; }
.rc-core-version { font-size: 12px; }
.rc-core-stats article { display: grid; grid-template-columns: 44px minmax(0,1fr); }
.rc-core-stats article > span { width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; }
.rc-core-stats article > span .material-icons { font-size: 22px; }
.rc-core-stats article > div { min-width: 0; }
.rc-core-stats small { font-size: 12px; line-height: 1.25; }
.rc-core-stats strong { margin-top: 4px; font-size: 26px; line-height: 1; }
.rc-section-heading small { font-size: 11px; }
.rc-section-heading h2 { font-size: 19px; }
.rc-service-grid strong, .rc-module-list strong { font-size: 13px; font-weight: 650; }
.rc-service-grid small, .rc-module-list small { font-size: 11px; line-height: 1.5; }
.rc-migration-panel th { font-size: 11px; }
.rc-migration-panel td { font-size: 12px; }
.rc-status-pill { font-size: 10px; }
body.rivercraft-shell .page-sidebar .menu-title { font-size: 11px; }
body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul > li > a { font-size: 14px; }
body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul > li > ul.sub-menu > li > a { font-size: 13px; font-weight: 400; }

.rc-upload-zone { padding: 24px; border: 2px dashed var(--rc-line-strong); border-radius: 14px; background: #fafcfb; text-align: center; transition: border-color .16s ease,background .16s ease; }
.rc-upload-zone.is-dragover { border-color: var(--rc-river); background: var(--rc-river-soft); }
.rc-reference-frame { width: 100%; height: min(72vh,760px); border: 0; border-radius: 10px; background: #fff; }
.swal2-popup.rc-alert, .swal2-popup { border-radius: 16px; }

@media (max-width: 1199px) {
    .rc-global-header { grid-template-columns: minmax(300px,1fr) minmax(260px,420px) minmax(250px,1fr); padding: 0 16px; }
    .rc-profile-copy { display: none; }
    .rc-profile-button { min-width: 48px; }
    .rc-application-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .rc-foundation-list { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .rc-global-header { grid-template-columns: minmax(0,1fr) auto; }
    .rc-global-search { display: none; }
    .rc-mobile-menu { display: grid; }
    .rc-tabs-status { display: none; }
    body.rivercraft-shell .page-content { margin-left: 0; }
    body.rivercraft-shell .page-sidebar { position: fixed; z-index: 1100; top: 118px; height: calc(100vh - 118px); }
    .rc-home-two-panel, .rc-core-two-panel { grid-template-columns: 1fr; }
    .rc-core-stats { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 767px) {
    body.rivercraft-shell, body.rivercraft-shell .page-content, body.rivercraft-shell .page-content p, body.rivercraft-shell .page-content label, body.rivercraft-shell .page-content input, body.rivercraft-shell .page-content select, body.rivercraft-shell .page-content textarea { font-size: 16px; }
    .rc-global-header { height: 64px; padding: 0 10px; }
    .rc-brand { min-width: 36px; }
    .rc-brand-copy, .rc-header-divider, .rc-corporate-icon, .rc-corporate-button small, .rc-header-actions .rc-icon-button { display: none; }
    .rc-corporate-button { min-width: 0; max-width: 145px; padding: 7px; }
    .rc-corporate-button strong { font-size: 12px; }
    .rc-profile-button { padding: 4px; }
    .rc-avatar { width: 36px; height: 36px; }
    .rc-workspace-tabs { height: 49px; padding: 7px 7px 0; }
    .rc-workspace-tab { min-width: 132px; height: 41px; }
    .rc-home-tab { min-width: 48px; width: 48px; padding: 0; justify-content: center; }
    .rc-home-tab span, .rc-tab-grip { display: none; }
    .rc-add-tab { width: 34px; margin: 0 2px; }
    body.rivercraft-shell .page-content, body.rivercraft-shell .page-content > .content { min-height: calc(100vh - 113px); }
    body.rivercraft-shell .page-sidebar { top: 113px; height: calc(100vh - 113px); }
    .rc-home-page { width: calc(100% - 22px); padding-top: 14px; }
    .rc-welcome-panel { display: block; min-height: 0; padding: 23px 20px; border-radius: 16px; }
    .rc-welcome-copy h1 { font-size: 29px; }
    .rc-welcome-copy p { font-size: 16px; line-height: 1.45; }
    .rc-workspace-status { min-width: 0; width: 100%; margin-top: 22px; padding: 12px; }
    .rc-application-grid { grid-template-columns: 1fr; gap: 10px; }
    .rc-application-card { min-height: 0; padding: 17px; border-radius: 14px; }
    .rc-card-body strong { font-size: 18px; }
    .rc-card-body > span { font-size: 14px; }
    .rc-card-foot { margin-top: 16px; font-size: 13px; }
    .rc-section-heading h2 { font-size: 19px; }
    .rc-text-button { font-size: 13px; }
    .rc-panel { padding: 16px; }
    .rc-foundation-list strong, .rc-service-grid strong, .rc-module-list strong { font-size: 14px; }
    .rc-foundation-list small, .rc-service-grid small, .rc-module-list small { font-size: 12px; }
    .rc-workspace-footer { align-items: center; flex-direction: column; gap: 3px; font-size: 11px; }
    .rc-app-page { width: calc(100% - 22px); padding-top: 14px; }
    .rc-app-page-header { align-items: flex-start; flex-direction: column; }
    .rc-core-stats { display: flex; gap: 9px; overflow-x: auto; scroll-snap-type: x mandatory; }
    .rc-core-stats article { flex: 0 0 78%; scroll-snap-align: start; }
    .rc-service-grid { grid-template-columns: 1fr; }
    .rc-app-popover { top: 50px; right: 8px; }
    .swal2-popup, .swal2-title, .swal2-html-container, .swal2-confirm, .swal2-cancel { font-size: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Shared action controls + sidebar alignment + tables v1.5.1
   These were previously scoped to the user page only.
   ========================================================= */
body.rivercraft-shell .rc-primary-action,
body.rivercraft-shell .rc-app-page-header .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

body.rivercraft-shell .rc-primary-action .material-icons,
body.rivercraft-shell .rc-app-page-header .btn .material-icons {
    font-size: 18px;
}

body.rivercraft-shell .rc-corporate-switcher {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100%, 270px);
    min-width: 230px;
    height: 40px;
    margin: 0;
}

body.rivercraft-shell .rc-corporate-switcher > .material-icons {
    position: absolute;
    left: 11px;
    z-index: 2;
    color: var(--rc-river);
    font-size: 18px;
    pointer-events: none;
}

body.rivercraft-shell .rc-corporate-switcher select {
    width: 100%;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 34px 0 37px !important;
    border: 1px solid var(--rc-line-strong);
    border-radius: 10px;
    background-color: #fff;
    color: var(--rc-ink-800);
    font-size: 13px;
    line-height: 40px;
    outline: 0;
}

/* Webarch's legacy sidebar positions icons with offsets. Rivercraft uses a flex row instead. */
body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul,
body.rivercraft-shell .page-sidebar .page-sidebar-wrapper ul.sub-menu {
    width: 100%;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul > li > a,
body.rivercraft-shell .page-sidebar .page-sidebar-wrapper ul.sub-menu > li > a {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 43px;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-right: 14px !important;
    padding-bottom: 0 !important;
    line-height: 1.25 !important;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul > li > a {
    padding-left: 20px !important;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper ul.sub-menu > li > a {
    min-height: 40px;
    padding-left: 46px !important;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper ul.sub-menu ul.sub-menu > li > a {
    padding-left: 64px !important;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul > li > a > .material-icons,
body.rivercraft-shell .page-sidebar .page-sidebar-wrapper ul.sub-menu > li > a > .material-icons {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    min-width: 21px;
    height: 22px;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit;
    font-size: 19px !important;
    line-height: 1 !important;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper ul.sub-menu > li > a > .material-icons {
    font-size: 18px !important;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul > li > a > .title,
body.rivercraft-shell .page-sidebar .page-sidebar-wrapper ul.sub-menu > li > a > .title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    line-height: 1.25 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul > li > a > .arrow,
body.rivercraft-shell .page-sidebar .page-sidebar-wrapper ul.sub-menu > li > a > .arrow {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    flex: 0 0 auto;
    margin: 0 0 0 auto !important;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul > li > a > .selected,
body.rivercraft-shell .page-sidebar .page-sidebar-wrapper ul.sub-menu > li > a > .selected {
    position: absolute;
    right: 0;
}

/* Migration and other core tables must occupy their card instead of leaving dead space. */
body.rivercraft-shell .rc-migration-panel .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.rivercraft-shell .rc-migration-panel .table {
    width: 100% !important;
    min-width: 760px;
    margin: 0 !important;
    table-layout: auto;
}

body.rivercraft-shell .rc-migration-panel .table > thead > tr > th {
    padding: 11px 14px !important;
    border-bottom: 1px solid var(--rc-line) !important;
    background: #f8faf9;
    vertical-align: middle;
    white-space: nowrap;
}

body.rivercraft-shell .rc-migration-panel .table > tbody > tr > td {
    padding: 13px 14px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #edf1f0;
    vertical-align: middle !important;
}

body.rivercraft-shell .rc-migration-panel .table > tbody > tr:last-child > td {
    border-bottom: 0;
}

body.rivercraft-shell .rc-migration-panel .table > thead > tr > th:first-child,
body.rivercraft-shell .rc-migration-panel .table > tbody > tr > td:first-child {
    width: 150px;
}

body.rivercraft-shell .rc-migration-panel .table > thead > tr > th:nth-child(3),
body.rivercraft-shell .rc-migration-panel .table > tbody > tr > td:nth-child(3) {
    width: 140px;
}

@media (max-width: 1024px) {
    body.rivercraft-shell .rc-app-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    body.rivercraft-shell .rc-app-page-header > :last-child {
        align-self: stretch;
    }

    body.rivercraft-shell .rc-corporate-switcher {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 767px) {
    body.rivercraft-shell .rc-app-page {
        width: calc(100% - 20px);
        padding-top: 16px;
    }

    body.rivercraft-shell .rc-primary-action,
    body.rivercraft-shell .rc-app-page-header .btn,
    body.rivercraft-shell .rc-corporate-switcher,
    body.rivercraft-shell .rc-corporate-switcher select {
        min-height: 46px !important;
        height: 46px !important;
        font-size: 16px;
    }

    body.rivercraft-shell .rc-corporate-switcher select {
        line-height: 46px;
    }

    body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul > li > a,
    body.rivercraft-shell .page-sidebar .page-sidebar-wrapper ul.sub-menu > li > a {
        min-height: 48px;
        font-size: 16px;
    }

    body.rivercraft-shell .page-sidebar .page-sidebar-wrapper ul.sub-menu > li > a {
        padding-left: 44px !important;
    }
}

/* =========================================================
   Rivercraft v1.5.2 — action alignment + active navigation
   ========================================================= */
@media (min-width: 1025px) {
    body.rivercraft-shell .rc-user-header-actions,
    body.rivercraft-shell .rc-application-header-actions {
        display: flex;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        min-width: max-content;
    }

    body.rivercraft-shell .rc-user-header-actions .rc-corporate-switcher,
    body.rivercraft-shell .rc-application-header-actions .rc-corporate-switcher {
        flex: 0 0 270px;
        width: 270px;
        min-width: 270px;
    }

    body.rivercraft-shell .rc-user-header-actions .rc-primary-action,
    body.rivercraft-shell .rc-application-header-actions .rc-primary-action {
        flex: 0 0 auto;
    }
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul > li.rc-active-ancestor > a {
    background: rgba(255,255,255,.065);
    color: #fff;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper li.rc-current-menu > a,
body.rivercraft-shell .page-sidebar .page-sidebar-wrapper li.rc-current-menu > a:hover {
    position: relative;
    background: linear-gradient(90deg, rgba(16,167,156,.24), rgba(16,167,156,.10));
    color: #fff;
    font-weight: 650;
    box-shadow: inset 3px 0 0 #28c6ba;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper li.rc-current-menu > a > .material-icons {
    color: #65e1d7;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper li.rc-current-menu > a > .title {
    color: #fff;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper li.rc-current-menu > a > .selected {
    top: 50%;
    right: 12px;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border: 0;
    border-radius: 50%;
    background: #65e1d7;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper li.rc-current-menu > a > .selected::before,
body.rivercraft-shell .page-sidebar .page-sidebar-wrapper li.rc-current-menu > a > .selected::after {
    display: none !important;
}

body.rivercraft-shell .page-sidebar .page-sidebar-wrapper ul.sub-menu > li.rc-current-menu > a {
    padding-right: 31px !important;
}

@media (max-width: 1024px) and (min-width: 768px) {
    body.rivercraft-shell .rc-user-header-actions,
    body.rivercraft-shell .rc-application-header-actions {
        display: grid;
        grid-template-columns: minmax(230px,1fr) auto;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    body.rivercraft-shell .rc-user-header-actions .rc-corporate-switcher,
    body.rivercraft-shell .rc-application-header-actions .rc-corporate-switcher {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 767px) {
    body.rivercraft-shell .rc-user-header-actions,
    body.rivercraft-shell .rc-application-header-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        width: 100%;
    }

    body.rivercraft-shell .rc-user-header-actions .rc-corporate-switcher,
    body.rivercraft-shell .rc-application-header-actions .rc-corporate-switcher,
    body.rivercraft-shell .rc-user-header-actions .rc-primary-action,
    body.rivercraft-shell .rc-application-header-actions .rc-primary-action {
        width: 100%;
        max-width: none;
    }
}


/* =========================================================
   Rivercraft v1.5.3 — responsive shell + exact action height
   Rivercraft now follows Webarch's real tablet breakpoint (1024px)
   so the old 50px mini-sidebar can never leak into tablet layouts.
   ========================================================= */
body.rivercraft-shell .rc-primary-action,
body.rivercraft-shell .rc-app-page-header .btn {
    box-sizing: border-box !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border-width: 1px !important;
    line-height: 1 !important;
}

body.rivercraft-shell .rc-corporate-switcher {
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
    margin: 0 !important;
}

body.rivercraft-shell .rc-corporate-switcher select {
    box-sizing: border-box !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    line-height: 42px;
}

body.rivercraft-shell .rc-app-page-header > div:first-child {
    min-width: 0;
}

body.rivercraft-shell .rc-app-page-header > div:first-child p {
    max-width: 720px;
}

/* 1025–1279 still has the full desktop sidebar, so available content width
   is too narrow for title + corporate selector + action button in one row. */
@media (min-width: 1025px) and (max-width: 1279px) {
    body.rivercraft-shell .rc-app-page-header {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    body.rivercraft-shell .rc-user-header-actions,
    body.rivercraft-shell .rc-application-header-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Modern tablet/mobile drawer. Override Webarch's legacy 50px mini rail. */
.rc-sidebar-backdrop {
    display: none;
}

@media (max-width: 1024px) {
    body.rivercraft-shell .rc-global-header {
        grid-template-columns: minmax(0,1fr) auto;
    }

    body.rivercraft-shell .rc-global-search {
        display: none;
    }

    body.rivercraft-shell .rc-mobile-menu {
        display: grid;
        flex: 0 0 38px;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    body.rivercraft-shell.open-menu-left {
        overflow: hidden;
    }

    body.rivercraft-shell .page-content,
    body.rivercraft-shell.open-menu-left .page-content {
        margin-left: 0 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }

    body.rivercraft-shell .page-sidebar,
    body.rivercraft-shell .page-sidebar.mini,
    body.rivercraft-shell .page-sidebar.mini-mobile {
        display: block !important;
        position: fixed !important;
        top: 118px !important;
        left: 0 !important;
        z-index: 1200 !important;
        width: min(300px, calc(100vw - 48px)) !important;
        max-width: 300px !important;
        height: calc(100dvh - 118px) !important;
        margin: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        opacity: 0 !important;
        background: #1b1e24 !important;
        box-shadow: 18px 0 42px rgba(10, 24, 25, .20);
        transform: translate3d(-100%, 0, 0) !important;
        -webkit-transform: translate3d(-100%, 0, 0) !important;
        transition: transform .22s ease, opacity .18s ease, visibility 0s linear .22s !important;
    }

    body.rivercraft-shell .page-sidebar.visible,
    body.rivercraft-shell.open-menu-left .page-sidebar {
        visibility: visible !important;
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        transition-delay: 0s !important;
    }

    body.rivercraft-shell .page-sidebar .page-sidebar-wrapper,
    body.rivercraft-shell .page-sidebar.mini .page-sidebar-wrapper,
    body.rivercraft-shell .page-sidebar.mini-mobile .page-sidebar-wrapper {
        display: block !important;
        float: none !important;
        width: 100% !important;
        height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul,
    body.rivercraft-shell .page-sidebar.mini .page-sidebar-wrapper > ul,
    body.rivercraft-shell .page-sidebar.mini-mobile .page-sidebar-wrapper > ul {
        width: 100% !important;
        margin: 0 !important;
        padding-top: 0 !important;
    }

    body.rivercraft-shell .page-sidebar .user-info-wrapper,
    body.rivercraft-shell .page-sidebar .user-info,
    body.rivercraft-shell .page-sidebar .profile-wrapper,
    body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > p,
    body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul li span.title,
    body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul li span.arrow {
        display: block !important;
    }

    body.rivercraft-shell .page-sidebar .user-info-wrapper {
        display: flex !important;
    }

    body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul > li > ul.sub-menu,
    body.rivercraft-shell .page-sidebar .page-sidebar-wrapper ul.sub-menu {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.rivercraft-shell .page-sidebar .page-sidebar-wrapper > ul > li > a,
    body.rivercraft-shell .page-sidebar .page-sidebar-wrapper ul.sub-menu > li > a {
        color: #dfe8e7;
    }

    body.rivercraft-shell .rc-sidebar-backdrop {
        position: fixed;
        inset: 118px 0 0 0;
        z-index: 1150;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        border: 0;
        background: rgba(13, 27, 29, .36);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease;
    }

    body.rivercraft-shell.open-menu-left .rc-sidebar-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    body.rivercraft-shell .rc-app-page {
        width: calc(100% - 30px);
        max-width: none;
        padding-top: 18px;
    }

    body.rivercraft-shell .rc-app-page-header {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    body.rivercraft-shell .rc-app-page-header > :last-child {
        width: 100%;
        align-self: stretch;
    }

    body.rivercraft-shell .rc-user-header-actions,
    body.rivercraft-shell .rc-application-header-actions {
        display: grid;
        grid-template-columns: minmax(0,1fr) auto;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    body.rivercraft-shell .rc-user-header-actions .rc-corporate-switcher,
    body.rivercraft-shell .rc-application-header-actions .rc-corporate-switcher {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    body.rivercraft-shell .rc-user-header-actions .rc-primary-action,
    body.rivercraft-shell .rc-application-header-actions .rc-primary-action {
        width: auto;
        min-width: max-content;
    }
}

@media (max-width: 767px) {
    body.rivercraft-shell .page-sidebar,
    body.rivercraft-shell .page-sidebar.mini,
    body.rivercraft-shell .page-sidebar.mini-mobile {
        top: 113px !important;
        width: min(310px, calc(100vw - 34px)) !important;
        max-width: 310px !important;
        height: calc(100dvh - 113px) !important;
    }

    body.rivercraft-shell .rc-sidebar-backdrop {
        inset: 113px 0 0 0;
    }

    body.rivercraft-shell .rc-app-page {
        width: calc(100% - 20px);
        padding-top: 14px;
    }

    body.rivercraft-shell .rc-primary-action,
    body.rivercraft-shell .rc-app-page-header .btn,
    body.rivercraft-shell .rc-corporate-switcher,
    body.rivercraft-shell .rc-corporate-switcher select {
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        font-size: 16px;
    }

    body.rivercraft-shell .rc-corporate-switcher select {
        line-height: 46px;
    }

    body.rivercraft-shell .rc-user-header-actions,
    body.rivercraft-shell .rc-application-header-actions {
        grid-template-columns: 1fr;
    }

    body.rivercraft-shell .rc-user-header-actions .rc-primary-action,
    body.rivercraft-shell .rc-application-header-actions .rc-primary-action {
        width: 100%;
        min-width: 0;
    }
}
