@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

@font-face {
    font-family: "MorionBold";
    src: url('../asset/fonts/morion-400.woff2');
}

@font-face {
    font-family: "MorionRegular";
    src: url('../asset/fonts/morion-200.woff2');
}

@font-face {
    font-family: "FB";
    src: url('../asset/fonts/funnel-display-latin-wght-normal.woff2');
}

@font-face {
    font-family: "FR";
    src: url('../asset/fonts/funnel-sans-latin-wght-normal.woff2');
}

:root {
    /* ---- Modern Executive LegalTech Typography ------------------------- */
    --primary-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --heading-font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* ---- Neutral / Slate Palette (Tailwind-grade precision) ------------ */
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    --neutral-100: #f8fafc;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --white: #ffffff;

    /* ---- Executive Brand: Royal & Electric Blue ------------------------ */
    --brand-primary: #0f172a;
    --brand-secondary: #1e293b;
    --royal-blue: #2563eb;
    --royal-blue-hover: #1d4ed8;
    --royal-blue-light: #60a5fa;
    --royal-blue-deep: #1e3a8a;
    --royal-blue-wash: rgba(37, 99, 235, 0.08);

    /* Sky alias redirected to modern royal blue */
    --sky: #2563eb;
    --sky-dark: #1d4ed8;
    --sky-light: #60a5fa;
    --sky-deep: #1e3a8a;
    --sky-wash: rgba(37, 99, 235, 0.09);

    /* ---- Status & Legal Prestige Accents -------------------------------- */
    --red: #dc2626;
    --red-bg: #fef2f2;
    --emerald: #059669;
    --emerald-bg: #ecfdf5;
    --amber: #d97706;
    --amber-bg: #fffbeb;

    /* ---- Legal Chambers Identity ---------------------------------------- */
    --ink: #0f172a;
    --card: #ffffff;
    --gold: #d97706;
    --gold-dark: #b45309;
    --green: #059669;
    --green-light: #ecfdf5;
    --rust: #dc2626;
    --rust-light: #fef2f2;
    --charcoal: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;

    /* ---- Surfaces & Chrome Aliases -------------------------------------- */
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active: rgba(37, 99, 235, 0.14);
    --header-bg: #ffffff;
    --body-bg: #f8fafc;
    --accent: #2563eb;

    /* ---- Auth Pages ----------------------------------------------------- */
    --auth-accent: #2563eb;
    --auth-accent-dark: #1d4ed8;
    --auth-accent-light: #60a5fa;
    --auth-navy-2: #1e3a8a;
    --auth-ink: #0f172a;
    --auth-slate-600: #475569;
    --auth-slate-500: #64748b;
    --auth-slate-400: #94a3b8;
    --auth-border: #e2e8f0;
    --auth-surface: #ffffff;
    --auth-surface-glass: rgba(255, 255, 255, .98);
    --auth-surface-muted: #f8fafc;
    --auth-danger: #dc2626;
    --auth-danger-bg: #fef2f2;
    --auth-success: #059669;
    --auth-success-bg: #ecfdf5;
    --auth-radius: 12px;
    --auth-shadow: 0 20px 40px -15px rgba(15, 23, 42, .12), 0 0 0 1px rgba(226, 232, 240, .8);
}


/* =============================================================================
   3. BASE & TYPOGRAPHY                                       (was style.css)
   ============================================================================= */

html,
body {
    font-family: var(--primary-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font) !important;
}

.w-60 {
    width: 60px !important;
}


.hm-30 {
    min-height: 30px !important;
}

.table td,
.table th {
    padding: 0.5rem;
}

#Widget-line-chart1,
#Widget-line-chart2,
#Widget-line-chart3,
#Widget-line-chart4 {
    width: 100%;
    height: 75px;
}

#realtime-profit,
#sale-diff {
    height: 150px;
}

#sec-ecommerce-chart-line {
    height: 30px;
}

#sec-ecommerce-chart-bar {
    height: 100px;
}

#app-sale1,
#app-sale2,
#app-sale3,
#app-sale4 {
    height: 50px;
}

#status-round-1,
#status-round-2,
#status-round-3,
#status-round-4 {
    width: 80px !important;
    height: 80px !important;
}

#card-412 {
    min-height: 412px;
}

#card-422 {
    min-height: 422px;
}

#visitfromworld {
    width: 100%;
    height: 350px;
}

#pbc-1,
#pbc-2,
#pbc-3,
#pbc-4,
#pbc-5,
#pbc-6 {
    height: 50px;
}

/* ---------------------------------------------------------------------------
   The block below was commented out in the original. It is preserved here
   for reference. Note: `#deal-analytic-chart { height: 300 !important; }`
   is missing a unit and would be ignored by the browser if uncommented.
   Fix to `300px` before restoring.
   ---------------------------------------------------------------------------
.sale-card {
    min-height: 301px;
}

#deal-analytic-chart {
    height: 300px !important;
}

#tot-rev-chart {
    width: 100px;
    height: 100px;
}

#allocation-map,
#allocation-chart {
    height: 250px;
}

#sal-income,
#rent-income,
#income-analysis {
    height: 100px;
}
--------------------------------------------------------------------------- */

.hide {
    display: none;
}


.pricing .card {
    border: none;
    border-radius: 1rem;
    transition: all 0.2s;
    border: 1px solid #DADCE0;
    box-shadow: 0 2px 6px 0 rgba(60, 64, 67, 0.16) !important;
}


.pricing .card-price .period {
    font-size: 0.8rem;
}


.pricing .text-muted {
    opacity: 0.7;
}

.pricing .btn {
    border-radius: 5rem;
    letter-spacing: .1rem;
    font-weight: bold;
    opacity: 0.7;
    transition: all 0.2s;
}

.app-sidebar {
    -webkit-transition-property: none !important;
    -moz-transition-property: none !important;
    -o-transition-property: none !important;
    transition-property: none !important;
}

.sidebar-action {
    position: absolute;
    right: 23px;
    font-size: 25px;
    color: #c7c7c7;
    cursor: pointer;
}

.sidebar-mini .sidebar-action i:before {
    content: "\e911";
}

.sidebar-mini.sidebar-mini-hover .sidebar-action i:before {
    content: "\e910";
}

.sidebar-mini .app-sidebar {
    width: 70px !important;
}

.sidebar-mini .app-sidebar .sidebar-content .nav-container .navigation-main .nav-item a span {
    display: none;
}

.sidebar-mini .header-brand-img {
    display: none;
}

.sidebar-mini .app-sidebar .sidebar-content .nav-container .navigation-main .nav-item.has-sub a::before {
    display: none;
}

.sidebar-mini .main-content,
.sidebar-mini .header-top {
    padding-left: 80px !important;
}

.sidebar-mini .app-sidebar .sidebar-content .nav-container .navigation-main .nav-lavel {
    display: none;
}

.sidebar-mini .app-sidebar.colored .sidebar-content .nav-container .navigation-main .nav-item .submenu-content {
    display: none;
}

.sidebar-mini.sidebar-mini-hover .app-sidebar {
    width: 240px !important;
}

.sidebar-mini.sidebar-mini-hover .app-sidebar .sidebar-content .nav-container .navigation-main .nav-item a span {
    display: inline-block;
}

.sidebar-mini.sidebar-mini-hover .header-brand-img {
    display: inline-block;
}

.sidebar-mini.sidebar-mini-hover .app-sidebar .sidebar-content .nav-container .navigation-main .nav-item.has-sub a::before {
    display: block;
}

.sidebar-mini.sidebar-mini-hover .main-content,
.sidebar-mini.sidebar-mini-hover .header-top {
    padding-left: 250px !important;
}

.sidebar-mini.sidebar-mini-hover .app-sidebar .sidebar-content .nav-container .navigation-main .nav-lavel {
    display: block;
}

.sidebar-mini.sidebar-mini-hover .app-sidebar.colored .sidebar-content .nav-container .navigation-main .nav-item.open.has-sub .submenu-content {
    display: block;
}

.wrapper .page-wrap .app-sidebar .sidebar-content .nav-container .navigation-main .nav-item.has-sub .submenu-content .menu-item:after {
    content: '--';
    position: absolute;
    left: 29px;
}

.select2-container {
    width: 100% !important;
}

.html-editor.h-205 .note-editor {
    height: 205px !important;
}

label {
    font-weight: bold;
}

.note-editable {
    height: 115px !important;
}

@media (min-width: 992px) {
    .pricing .card:hover {
        margin-top: -.25rem;
        margin-bottom: .25rem;
        box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.3);
    }

    .pricing .card:hover .btn {
        opacity: 1;
    }
}

.box-shadow {
    -webkit-box-shadow: 0 6px 0 0 rgb(0 0 0 / 1%), 0 15px 32px 0 rgb(0 0 0 / 6%);
    -moz-box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.01), 0 15px 32px 0 rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 0 0 rgb(0 0 0 / 1%), 0 15px 32px 0 rgb(0 0 0 / 6%);
}

.cursor-pointer {
    cursor: pointer;
}

.hidden {
    display: none;
}


/* =============================================================================
   4. FORMS & BUTTONS                                          (was app.css)
   -----------------------------------------------------------------------------
   The .btn rule here used to set `color:#fff !important` and a blue
   gradient background. Declared after Bootstrap at equal specificity, it
   won: btn-danger, btn-success, btn-outline-secondary and btn-light all
   rendered as the SAME blue, so "destructive actions clearly identified"
   was impossible. The geometry is kept; the colours are Bootstrap's again.
   ============================================================================= */

/* ================================
   Buttons
================================ */

.btn {
    display: inline-block;
    border-radius: 5px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover,
.btn:focus {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}


/* ================================
   Form Controls
================================ */

input[type="text"]:not(.form-control),
input[type="email"]:not(.form-control),
input[type="password"]:not(.form-control),
select:not(.form-control):not(.custom-select),
textarea:not(.form-control) {
    width: 100%;
    margin: 4px 0;
    color: #343A40;

    font-size: 14px;
    line-height: 1.5;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;


    padding: .5rem !important;
    border: 1px solid #cacaca !important;
    border-radius: 0 !important;
    background-color: #fefefe;
    box-shadow: inset 0 1px 2px hsla(0, 0%, 4%, .1);
}


/* ================================
   Form Focus
================================ */

input[type="text"]:not(.form-control):focus,
input[type="email"]:not(.form-control):focus,
input[type="password"]:not(.form-control):focus,
select:not(.form-control):not(.custom-select):focus,
textarea:not(.form-control):focus {
    border-color: #1698D5;
    outline: none;
    box-shadow:
        0 0 0 2px rgba(22, 152, 213, 0.12),
        inset 0 1px 2px rgba(0, 0, 0, 0.04);
}


/* ================================
   Placeholder
================================ */

input::placeholder,
textarea::placeholder {
    color: #888888;
}


/* ================================
   Disabled Controls
================================ */

input:disabled,
select:disabled,
textarea:disabled {
    color: #6C757D;
    background: #F5F7FA;
    cursor: not-allowed;
}


/* =============================================================================
   5. ADMIN LAYOUT                                    (was layouts/master.css)
   ============================================================================= */

/* Admin layout (resources/views/layouts/master.blade.php) */

/* Bootstrap 4 doesn't ship gap utilities; shim the scale used across the templates */
.gap-1 {
    gap: .25rem;
}

.gap-2 {
    gap: .5rem;
}

.gap-3 {
    gap: 1rem;
}


body#app {
    background-color: var(--body-bg) !important;
    font-family: var(--primary-font) !important;
}


.main-content {
    background: var(--body-bg) !important;
}

.app-sidebar.colored {
    background: var(--sidebar-bg) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.app-sidebar.colored .sidebar-header {
    background: var(--sidebar-bg) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Card styles */
.card-header {
    background-color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--slate-700);

}

.card {
    border: 1px solid var(--line) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
    border-radius: 12px !important;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04) !important;
    border-color: #cbd5e1 !important;
}

.card-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 1rem 1.25rem !important;
    font-weight: 700;
    color: var(--slate-900);
}

.card-header h5 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--slate-900) !important;
    margin-bottom: 0 !important;
}

/* Button Upgrades for Modern SaaS */
.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
}

.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-primary {
    background-color: var(--royal-blue) !important;
    border-color: var(--royal-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--royal-blue-hover) !important;
    border-color: var(--royal-blue-hover) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--royal-blue) !important;
    border-color: var(--royal-blue) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background-color: var(--royal-blue-wash) !important;
    color: var(--royal-blue-hover) !important;
}

.btn-light {
    background-color: #ffffff !important;
    border-color: var(--slate-200) !important;
    color: var(--slate-700) !important;
}

.btn-light:hover {
    background-color: var(--slate-50) !important;
    border-color: var(--slate-300) !important;
    color: var(--slate-900) !important;
}

/* Modern Data Tables */
.table {
    color: var(--slate-800);
    margin-bottom: 0;
}

.table thead th {
    background: var(--slate-50);
    color: var(--slate-500);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line) !important;
    border-top: none !important;
    padding: 0.85rem 1rem !important;
    vertical-align: middle;
}

.table tbody td {
    padding: 0.85rem 1rem !important;
    vertical-align: middle;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
}

.table tbody tr:hover {
    background-color: rgba(248, 250, 252, 0.9);
}

/* Modern Pill Badges */
.badge {
    font-weight: 600 !important;
    padding: 0.35em 0.75em !important;
    border-radius: 9999px !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.02em;
}

.badge-primary {
    background-color: var(--royal-blue-wash) !important;
    color: var(--royal-blue) !important;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-success {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge-warning {
    background-color: #fffbeb !important;
    color: #d97706 !important;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-danger {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge-info {
    background-color: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-secondary,
.badge-light {
    background-color: var(--slate-100) !important;
    color: var(--slate-600) !important;
    border: 1px solid var(--slate-200);
}

/* Top Menu and Navigation Bar */
.top-menu {
    height: 62px;
    background: #ffffff !important;
    border-bottom: 1px solid var(--line) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.app-sidebar.colored {
    background: var(--slate-900) !important;
    border-right: 1px solid var(--slate-800);
}

.app-sidebar.colored .sidebar-header {
    background: var(--slate-950) !important;
    border-bottom: 1px solid var(--slate-800) !important;
    height: 62px;
    display: flex;
    align-items: center;
}

.teeka-sidebar-brand {
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: -0.02em;
}

.app-sidebar.colored .sidebar-content .nav-container .navigation-main .nav-lavel {
    color: var(--slate-500) !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    padding: 18px 20px 6px !important;
}

.app-sidebar.colored .sidebar-content .nav-container .navigation-main .nav-item>a {
    color: var(--slate-400) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    margin: 3px 12px !important;
    transition: all 0.15s ease !important;
}

.app-sidebar.colored .sidebar-content .nav-container .navigation-main .nav-item>a:hover {
    color: #ffffff !important;
    background: var(--slate-800) !important;
}

.app-sidebar.colored .sidebar-content .nav-container .navigation-main .nav-item.active>a {
    color: #ffffff !important;
    background: var(--royal-blue) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

.app-sidebar.colored .sidebar-content .nav-container .navigation-main .nav-item>a i {
    font-size: 1rem !important;
    margin-right: 10px !important;
}

/* Footer */
.footer {
    background: var(--header-bg) !important;
    border-top: 1px solid var(--neutral-200) !important;
}


/* =============================================================================
   6. SIGN-IN PAGES                                           (was auth.css)
   -----------------------------------------------------------------------------
   Loaded on every page now rather than only the auth layout. Safe: every
   rule is scoped to .auth-* / .btn-auth-* / .portal-* , none of which
   appear inside the dashboard, and the two bare `body`/`h6` rules are
   overridden by section 4's body#app.
   ============================================================================= */

/* ==========================================================================
   WEB EFRIS — Authentication pages
   Split-screen layout: dark brand panel + light form panel.
   ========================================================================== */


body {
    font-family: var(--primary-font);
    color: var(--auth-ink);
}

/* ---------- Shell ---------- */
.auth-shell {
    min-height: 100vh;
    display: flex;
    background: var(--auth-surface-muted);
}

/* ---------- Brand panel (left) ---------- */
.auth-brand {
    position: relative;
    flex: 0 0 42%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    padding: 48px;
    overflow: hidden;
    color: #fff;
    background: #1E3A8A;
}

.auth-brand::before,
.auth-brand::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.auth-brand::before {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -120px;
    background: #1b1b1b;
    opacity: .22;
}

/* NOTE: ::after declares geometry but no `background` — it is currently
   invisible. If a second glow was intended, add a background colour here. */
.auth-brand::after {
    width: 320px;
    height: 320px;
    bottom: -100px;
    left: -80px;
}


.auth-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.auth-brand-word {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.02em;
    text-decoration: none;
}

.auth-brand-word .w1 {
    color: #ffffff;
}

.auth-brand-word .w2 {
    color: var(--auth-accent-light);
}

.auth-brand-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
    width: fit-content;
}

.auth-brand-copy {
    margin: auto 0 32px;
    max-width: 380px;
}

.auth-brand-copy h2 {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin-bottom: 14px;
}

.auth-brand-copy p {
    color: rgba(255, 255, 255, .68);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
}

.auth-brand-features {
    list-style: none;
    margin: 0 0 auto;
    padding: 0;
}

.auth-brand-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .875rem;
    color: rgba(255, 255, 255, .82);
    margin-bottom: 12px;
}

.auth-brand-features li i {
    color: var(--auth-accent-light);
    margin-top: 3px;
    font-size: .8rem;
}

.auth-brand-footer {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .45);
    font-size: .78rem;
}

/* ---------- Form panel (right) ---------- */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../asset/images/background.jpg) no-repeat center center;
    background-size: cover;
    padding: 40px 24px;
}

.auth-main-inner {
    width: 100%;
    max-width: 540px;
}

.auth-main-inner--wide {
    max-width: 560px;
}

.auth-card {
    background: var(--auth-surface-glass);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 44px 40px;
    animation: authCardIn .5s ease-out;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-area {
    text-align: center;
    margin-bottom: 28px;
}

.logo-area img {
    height: 42px;
    width: auto;
    margin-bottom: 18px;
}

.logo-area h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--auth-ink);
    margin-bottom: 4px;
    letter-spacing: -.01em;
}

.logo-area p {
    color: var(--auth-slate-500);
    font-size: .875rem;
    margin: 0;
}

/* ---------- Form elements ---------- */
.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-group .form-label {
    display: block;
    color: var(--auth-slate-600);
    font-weight: 600;
    font-size: .78rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.auth-form-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-slate-400);
    font-size: .85rem;
    pointer-events: none;
}

.auth-form-group .form-control {
    height: auto;
    padding: 11px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    font-size: .95rem;
    background: var(--auth-surface-muted);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.auth-form-group .form-control.with-icon {
    padding-left: 40px;
}

.auth-form-group .form-control::placeholder {
    color: #888888;
}

.auth-form-group .form-control:focus {
    background: var(--auth-surface);
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .14);
    outline: none;
}

.auth-form-group .form-control.is-invalid {
    border-color: var(--auth-danger);
    background: var(--auth-danger-bg);
}

/* ---------- Buttons & links ---------- */
.btn-auth-primary {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-dark) 100%);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn-auth-primary:hover,
.btn-auth-primary:focus {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(14, 165, 233, .5);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

.btn-auth-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 24px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--auth-slate-600);
    background: var(--auth-surface);
    text-decoration: none;
    transition: all .15s ease;
}

.btn-auth-secondary:hover {
    color: var(--auth-ink);
    background: var(--auth-surface-muted);
    border-color: var(--auth-slate-400);
    text-decoration: none;
}

.auth-link {
    color: var(--auth-accent-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
}

.auth-link:hover {
    color: var(--auth-navy-2);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 22px 0;
    /* --auth-slate-500, not 400: this is text. 400 (#94a3b8) is a fine step
       for the field icons and the hover border, but at ~2.6:1 on white it is
       under the 4.5:1 that small text needs. 500 (#64748b) is ~4.6:1. */
    color: var(--auth-slate-500);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-divider span {
    padding: 0 14px;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-border);
}

.auth-footer small {
    /* Text, so the readable step - see .auth-divider. */
    color: var(--auth-slate-500);
    font-size: .78rem;
}

/* ---------- Alerts ---------- */
/* FIX: was `.auth-card .auth-card .alert-success` — a descendant selector
   that required an .auth-card inside another .auth-card. Never matched,
   so success alerts fell through to Bootstrap's default green. */
.auth-card .alert-success {
    background: var(--auth-success-bg);
    border-color: #bbf7d0;
    color: var(--auth-success);
}

.auth-card .alert-danger {
    background: var(--auth-danger-bg);
    border-color: #fecaca;
    color: var(--auth-danger);
}

.auth-card .invalid-feedback {
    font-size: .8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .auth-brand {
        display: none;
    }

    .auth-main {
        padding: 32px 20px;
    }
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 32px 24px;
    }
}


/* =============================================================================
   7. E-GWOKO DESIGN SYSTEM                          (was pages/egwoko-app.css)
   -----------------------------------------------------------------------------
   Brand tokens and the shared components. Last, so it wins.
   ============================================================================= */

/* --- Dashboard content widgets (Overview / By location / Group statement / Audit log) --- */


/* FIX: was 900px — every other breakpoint in this file uses Bootstrap's
   .98px steps. Aligned for consistency. */
@media (max-width: 991.98px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}


.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.badge-green {
    background: var(--green-light);
    color: var(--green);
}

.badge-rust {
    background: var(--rust-light);
    color: var(--rust);
}

button.primary {
    padding: 0 16px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* Text/select inputs used directly in the dashboard views (not wrapped in
   Bootstrap's .form-control) so they don't inherit the theme's bare
   input/select reset.

   NOTE: the `[wire\:model]` attribute selector only matches Livewire v2's
   bare `wire:model`. Livewire v3's `wire:model.live`, `wire:model.blur`,
   etc. will NOT match. If this codebase moves to v3, replace with
   `[wire\:model], [wire\:model\.live], [wire\:model\.blur], [wire\:model\.lazy]`
   or, better, add a shared `.dash-input` class at the call sites. */

/* --- Quick actions (Overview) — .quick-action / .action-icon /
   .section-label. These began as the admin template's dashboard.css
   tiles, reskinned to E-Gwoko's gold accent; that file was never linked
   (it also defined a rival .stat-card/.stat-icon that collided with the
   one above) and was deleted in the 2026-09-08 public/css tidy-up, so
   these rules are now the only definition.

   The group profile uses the compact .action-bar / .action-btn further
   down this file instead; other dashboards still use these tiles. --- */
.section-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin: 1.75rem 0 .75rem;
}

.section-label:first-child {
    margin-top: 0;
}


/* --- Sidebar brand wordmark (left_side/sidebar included inside the
   template's .app-sidebar) --- */
.teeka-sidebar-brand {
    color: var(--gold);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
}

/* --- Header user avatar (no photo asset — initials on a brand-colored
   circle instead of the template's default user_img.png) --- */

/* --- Login card (layouts/guest.blade.php, inside the auth template's
   .auth-main-inner panel) --- */


.egwoko-login-card .title {
    font-size: 20px;
    font-weight: 700;
    color: var(--charcoal);
    margin: 4px 0 20px;
}


.egwoko-login-card .error {
    color: var(--rust);
    font-size: 12px;
    margin-bottom: 10px;
}

/* ---------- Linked dashboard widget cards (Bootstrap4 .card as an <a>) ---------- */
.stat-link-card {
    display: block;
    color: inherit;
    transition: box-shadow .15s ease, transform .15s ease;
}

.stat-link-card:hover,
.stat-link-card:focus {
    box-shadow: 0 10px 22px -10px rgba(27, 42, 56, .25);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

/* ---------- KPI cards (fintech-style: label / big value / trend or
   context) — Bootstrap4 .card underneath, no bespoke component framework.
   Every dashboard's headline metrics should use this instead of ad-hoc
   inline styles, so Overview/By location/By performance/Group statement
   all read as one product. Deliberately restrained: one accent color per
   card (an icon chip), not a colored card background — see brief's "avoid
   too many colors / huge cards". ---------- */
.kpi-card {
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08) !important;
    border-color: #cbd5e1 !important;
}

.kpi-card .card-body {
    padding: 1.25rem 1.35rem;
}

.kpi-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--slate-500);
}

.kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.kpi-icon.bg-ink-soft {
    background: var(--royal-blue-wash);
    color: var(--royal-blue);
}

.kpi-icon.bg-green-soft {
    background: #ecfdf5;
    color: #059669;
}

.kpi-icon.bg-gold-soft {
    background: #fffbeb;
    color: #d97706;
}

.kpi-icon.bg-rust-soft {
    background: #fef2f2;
    color: #dc2626;
}

.kpi-icon.bg-info-soft {
    background: #eff6ff;
    color: #2563eb;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: .6rem;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    /* financial values must never wrap/clip inside a KPI card */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-context {
    margin-top: .4rem;
    font-size: .78rem;
    font-weight: 500;
    color: var(--slate-500);
}

.kpi-trend.up {
    color: var(--emerald);
}

.kpi-trend.down {
    color: var(--red);
}

.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-500);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
    margin-left: 0.85rem;
}

/* ---------- Chart cards: header carries the title + a "go to report"
   affordance, body carries a fixed-height canvas so charts never reflow
   the page as they render. ---------- */


/* ---------- Empty states — a real icon + message + optional action
   instead of a bare "No X found" table row, per brief section 21. ---------- */
.empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--muted);
}

.empty-state i {
    font-size: 1.8rem;
    color: var(--line);
    margin-bottom: .6rem;
    display: block;
}

.empty-state .empty-state-title {
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: .25rem;
}

/* ---------- Plan picker (companies._form / companies.subscriptions.create /
   subscription.show) — a Bootstrap4 custom-radio, styled as a pricing
   card instead of a bare radio button. .plan-radio is the (visually
   hidden, by Bootstrap's own custom-control CSS) <input>; the sibling
   label wraps .plan-card, and the :checked state is read via the
   sibling combinator since the native radio can't be styled by :has()
   reliably across the browsers this admin template already targets. ---------- */
.plan-card {
    border: 2px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.plan-radio:checked+.plan-card-label .plan-card {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(198, 138, 46, .15);
}

.plan-card-label {
    cursor: pointer;
}

/* "What's included" bullets — a plain list without its own bullet glyph
   would blend into the description above it; a small gold dash reads as
   deliberate rather than a leftover default <ul>. */
.plan-card-features {
    list-style: none;
    padding-left: 0 !important;
}

.plan-card-features li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 4px;
    color: var(--charcoal, #2B2621);
}

.plan-card-features li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* ---------- Notifications (notifications.index) — unread row highlight,
   gold rather than a generic "blue unread" since that's this app's own
   accent, not Bootstrap's default. ---------- */

/* ==========================================================================
   Shared dashboard widgets — "Requires attention", "Recent activity" and the
   live-meeting card. Used by the Company Admin dashboard (dashboard/company),
   the Group Admin dashboard (groups/show) and the Member dashboard
   (member/dashboard) so every role's landing page reads the same way:
   what needs me → what's going on → what can I do. Built only from the brand
   tokens above; no gradients, no oversized cards (see the client brief).
   ========================================================================== */

/* --- Requires attention ------------------------------------------------- */


/* --- Recent activity feed --------------------------------------------- */


/* --- Live meeting card ------------------------------------------------- */


.live-meeting-card .lm-actions .btn {
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.live-meeting-card .lm-actions .btn-light {
    background: #fff;
    color: var(--green);
    border-color: #fff;
}


/* --- Loan pipeline strip (loans/oversight) --------------------------- */

.loan-pipeline .stage {
    flex: 1;
    min-width: 130px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    padding: 12px 14px;
    text-decoration: none;
    color: var(--charcoal);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.loan-pipeline .stage:hover,
.loan-pipeline .stage:focus {
    border-color: var(--gold);
    box-shadow: 0 8px 20px -12px rgba(198, 138, 46, .4);
    text-decoration: none;
    color: var(--charcoal);
}

.loan-pipeline .stage.is-active {
    border-color: var(--ink);
}

.loan-pipeline .stage .stage-name {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}

.loan-pipeline .stage .stage-count {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--charcoal);
}

/* --- Progressive disclosure (groups/show "Group details & management") --- */
details.group-details {
    margin-top: 1.5rem;
    border-top: 1px solid var(--line);
    padding-top: .5rem;
}

details.group-details>summary {
    cursor: pointer;
    list-style: none;
    padding: .85rem .25rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .5rem;
}

details.group-details>summary::-webkit-details-marker {
    display: none;
}

details.group-details>summary::before {
    content: "\203A";
    /* › */
    display: inline-block;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform .15s ease;
}

details.group-details[open]>summary::before {
    transform: rotate(90deg);
}

details.group-details>summary:hover {
    color: var(--gold-dark);
}

.group-details-body {
    padding-top: .5rem;
}

/* --- Disbursement confirmation panel (loans/show) ------------------- */


/* ---------------------------------------------------------------
   Compact action bar (client, 2026-09-08: "replacing card actions
   with action buttons, minimizing space").

   Replaces the .quick-action tile grid on the group profile: same
   destinations, one wrapping row instead of a block of large cards.
   Kept as its own class rather than restyling .quick-action, which
   other dashboards still use.
   --------------------------------------------------------------- */


/* FIX: the runtime --brand token is injected by Blade. On pages where it
   is absent, the original fallback #4680ff (Bootstrap blue) clashed with
   the gold/green brand. Fall back to brand gold so it degrades in-palette. */


@media (max-width: 575.98px) {

    /* Two per row on a phone rather than one long scroll. */
    .action-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
}

/* ==========================================================================
   UI STANDARDISATION PASS (client brief, 2026-09-14)
   --------------------------------------------------------------------------
   Everything below exists to make the same thing look the same everywhere.
   Nothing here is decorative: each rule replaced either an inline style that
   was repeated across files, or a class that was being used but had never
   been defined.
   ========================================================================== */

.impersonation-bar {
    background: var(--gold);
    color: #fff;
    font-size: .85rem;
}

/* --- Alerts -------------------------------------------------------------
   One shape for every message in the app (partials/_flash). The icon is
   floated out of the text flow so a two-line message stays aligned under
   itself rather than wrapping beneath the icon. */
.alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: .9rem;
}

.alert>span {
    flex: 1;
    min-width: 0;
}

/* --- Buttons -------------------------------------------------------------
   `btn-xs` is a Bootstrap 3 class. Five views were already using it and
   getting a default-sized button, which is why "Remove"/"Mark read"
   buttons in dense tables looked oversized next to their row. Defining it
   is less churn than rewriting those call sites, and it gives the app a
   real third size for table-row actions. */
.btn-xs {
    padding: .15rem .5rem;
    font-size: .75rem;
    line-height: 1.5;
    border-radius: .2rem;
}

/* Buttons sitting next to each other in a table cell or a form footer
   should never touch. */
.btn+.btn {
    margin-left: .25rem;
}

td .btn+.btn,
.btn-group .btn+.btn {
    margin-left: 0;
}

/* --- Badges --------------------------------------------------------------
   The pill shape is set on bare `.badge` higher up this file. These two
   were being used by views but had never been defined anywhere, so they
   rendered as unstyled text. Defining them to match the palette is safer
   than deleting the call sites, which carry real meaning. */
.badge-soft-info {
    background: rgba(23, 162, 184, .12);
    color: #0f7c8f;
}

.badge-outline-secondary {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
}

/* --- Tables --------------------------------------------------------------
   Consistent scanning: quiet uppercase headers, roomy rows, numbers and
   actions where the eye expects them. */
.table thead th {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    border-top: 0;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

/* Money and counts read far faster right-aligned and in tabular figures,
   so columns line up digit under digit. Opt in with class="num". */
.table .num,
.table th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* --- Forms ---------------------------------------------------------------
   A required field should be obvious without reading the help text, and
   help text should sit quietly under the input rather than competing with
   the label. */
.form-group label {
    font-weight: 600;
    font-size: .85rem;
    color: var(--charcoal);
}


/* --- Page header ---------------------------------------------------------
   76 pages hand-roll this block. The shared markup lives in
   partials/_page-header; these rules make the hand-rolled ones match it
   too, so the two look identical while the migration is incremental. */
.page-header {
    margin-bottom: 1.25rem;
}

.page-header-title h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0;
}

.page-header-title span {
    font-size: .85rem;
    color: var(--muted);
}

.breadcrumb-container .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: .35rem;
    font-size: .8rem;
    justify-content: flex-end;
}

@media (max-width: 767.98px) {

    /* Stacked on a phone: the breadcrumb and the action button go under
       the title instead of being squeezed beside it. */
    .breadcrumb-container .breadcrumb {
        justify-content: flex-start;
    }

    .page-header .text-right {
        text-align: left !important;
        margin-top: .5rem;
    }
}

/* --- Responsive: things the template gets wrong below 576px ------------- */
@media (max-width: 575.98px) {

    /* KPI cards were designed four-across; at phone width the value was
       clipping before the ellipsis could help. */
    .kpi-value {
        font-size: 1.25rem;
    }

    .kpi-card .card-body {
        padding: .9rem 1rem;
    }

    /* A card's own padding plus the container's gutter wasted a third of
       a 320px screen. */
    .card-body {
        padding: 1rem;
    }
}

/* A table inside .table-responsive still needs a hint that it scrolls. */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* --- Semantic text colours ------------------------------------------------
   These three were written inline 52 times across the views
   (color:var(--green) / --rust / --gold-dark). Same three meanings every
   time, so they are utilities now: money in / money out / needs a look.
   Named for what they MEAN, not what colour they are, so the palette can
   change without a find-and-replace through the Blade files. */
.text-positive {
    color: var(--green) !important;
}

.text-negative {
    color: var(--rust) !important;
}

.text-accent {
    color: var(--gold-dark) !important;
}

/* --- Small repeated bits of chrome -------------------------------------- */

/* A company/group logo thumbnail in a list or a profile header. */


/* The label column of a two-column "detail" table (profile pages). */
.table .th-label {
    width: 220px;
    color: var(--muted);
    font-weight: 600;
}

@media (max-width: 575.98px) {

    /* A fixed 220px label column leaves nothing for the value on a
       phone; let both columns share the width instead. */
    .table .th-label {
        width: auto;
    }
}


/* --- select2 multi-select, matched to Bootstrap 4 -----------------------
   select2 ships its own look, which sits ~6px shorter than a
   .form-control and squares off the corners. Used by the agent group
   picker (agents/show); any future multi-select gets it for free. */
.select2-container--default .select2-selection--multiple {
    min-height: calc(1.5em + .75rem + 2px);
    padding: .25rem .4rem;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--gold);
    box-shadow: 0 0 0 .2rem rgba(198, 138, 46, .15);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--green-light);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--green);
    font-size: .82rem;
    padding: 1px 8px;
    margin-top: .25rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--green);
    margin-right: 5px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--gold);
}


/* --- Sidebar: an item that ACTS rather than navigates -------------------
   "Sign out" has to be a POST (CSRF), so it is a <form><button>, not an
   <a>. The admin template styles only `.nav-item a`, so the button
   borrows the same padding, colour and hover here. This is the one
   place in the sidebar that needs it; everything else is a link. */
.navigation-main .nav-item>form {
    margin: 0;
}

.navigation-main .nav-item>form>button {
    display: block;
    width: calc(100% - 24px);
    margin: 2px 12px;
    padding: 10px 25px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease;
}

.navigation-main .nav-item>form>button:hover,
.navigation-main .nav-item>form>button:focus {
    background: var(--sidebar-hover);
}

.navigation-main .nav-item>form>button i {
    font-size: 20px;
    margin-right: 10px;
    vertical-align: -4px;
}

.navigation-main .nav-item>form>button span {
    font-size: 13px;
}

/* =============================================================================
   8. MARKETING SITE                                            (public pages)
   -----------------------------------------------------------------------------
   The signed-out site: home, features, pricing, contact, privacy.

   Restrained on purpose. This is software sold to advocates, so no
   gradients, no parallax, no animation beyond the accordion Bootstrap
   already provides. The credibility comes from being legible and specific,
   not from motion.

   The four surfaces below are scoped to .mk-page rather than declared in
   :root, because nothing inside the dashboard uses them and the token block
   is for colours the whole application shares.
   ============================================================================= */

/* =============================================================================
   8. MARKETING SITE                                            (public pages)
   -----------------------------------------------------------------------------
   Modern Executive LegalTech Marketing Design:
   Credible, sharp, highly polished SaaS aesthetic engineered for Ugandan law
   firms, chambers, and corporate legal departments.
   ============================================================================= */

.mk-page {
    --mk-quiet: #f8fafc;
    --mk-line: #e2e8f0;
    --mk-muted: #64748b;
    background: #ffffff;
    color: var(--slate-800);
}

.mk-page h1,
.mk-page h2,
.mk-page h3,
.mk-page h4,
.mk-page h5 {
    color: var(--slate-900);
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* ---------- Navigation ---------- */
.mk-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mk-line);
    padding: 0.85rem 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.mk-nav .navbar-brand {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.mk-nav .navbar-brand img {
    height: 42px;
    width: auto;
}

.mk-nav .nav-link {
    color: var(--slate-600);
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.mk-nav .nav-link:hover {
    color: var(--royal-blue);
    background-color: var(--royal-blue-wash);
}

.mk-nav .nav-link.active {
    color: var(--royal-blue);
    background-color: var(--royal-blue-wash);
    box-shadow: none;
    font-weight: 700;
}

/* ---------- Hero ---------- */
.mk-hero {
    position: relative;
    background: radial-gradient(ellipse at 80% 20%, rgba(37, 99, 235, 0.22) 0%, transparent 60%),
        linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 6.5rem 0 5.5rem;
    overflow: hidden;
}

.mk-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.mk-hero h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.mk-hero p.lead {
    color: #cbd5e1;
    font-size: 1.125rem;
    line-height: 1.65;
    max-width: 36rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.mk-hero .mk-hero-note {
    color: #94a3b8;
    font-size: 0.88rem;
}

.mk-hero .mk-hero-note a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Hero UI Mockup Card */
.mk-mockup {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: var(--slate-900);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.mk-mockup:hover {
    transform: translateY(-4px);
}

.mk-mockup-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mk-mockup-dots {
    display: flex;
    gap: 6px;
}

.mk-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mk-mockup-dot.red {
    background: #ef4444;
}

.mk-mockup-dot.yellow {
    background: #f59e0b;
}

.mk-mockup-dot.green {
    background: #10b981;
}

.mk-mockup-body {
    padding: 1.25rem;
}

/* Interior Pages Header */
.mk-pagehead {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 4.5rem 0 3.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mk-pagehead h1 {
    color: #ffffff;
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.65rem;
}

.mk-pagehead p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 42rem;
    margin: 0;
}

/* ---------- Sections ---------- */
.mk-section {
    padding: 5rem 0;
}

.mk-section-alt {
    background-color: #f8fafc !important;
}

.mk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--royal-blue);
    background: var(--royal-blue-wash);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.mk-pagehead .mk-eyebrow {
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(147, 197, 253, 0.3);
}

.mk-section h2 {
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
    color: var(--slate-900);
}

.mk-lede {
    color: var(--slate-600);
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 44rem;
}

/* ---------- Cards ---------- */
.mk-card {
    border: 1px solid var(--mk-line);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03) !important;
    border-radius: 14px;
    padding: 1.85rem;
    height: 100%;
    background: #ffffff;
    transition: all 0.25s ease;
}

.mk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03) !important;
    border-color: #cbd5e1;
}

.mk-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--slate-900);
}

.mk-card p {
    color: var(--slate-600);
    font-size: 0.93rem;
    line-height: 1.6;
    margin: 0;
}

.mk-card .mk-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--royal-blue-wash);
    color: var(--royal-blue);
    font-size: 1.15rem;
    margin-bottom: 1.15rem;
}

/* ---------- Numbered steps ---------- */
.mk-step {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
}

.mk-step .num {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--royal-blue);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.mk-step h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--slate-900);
}

.mk-step p {
    color: var(--slate-600);
    font-size: 0.93rem;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Checklist ---------- */
.mk-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mk-check li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--slate-700);
    line-height: 1.5;
}

.mk-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--emerald);
    font-weight: 800;
    font-size: 1.05rem;
}

/* ---------- Pricing ---------- */
.mk-price {
    border: 1px solid var(--mk-line);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    position: relative;
}

.mk-price:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.mk-price.is-featured {
    border: 2px solid var(--royal-blue);
    box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.15);
}

.mk-price .mk-price-name {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--slate-900);
}

.mk-price .mk-price-desc {
    color: var(--slate-500);
    font-size: 0.88rem;
    line-height: 1.45;
    min-height: 2.6rem;
    margin-top: 0.25rem;
}

.mk-price .amount {
    font-family: var(--heading-font);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.mk-price .cycle {
    color: var(--slate-500);
    font-size: 0.88rem;
    font-weight: 500;
}

.mk-price ul {
    flex: 1 1 auto;
    margin: 1.5rem 0;
}

/* ---------- FAQ ---------- */
.mk-page .accordion .card {
    border: 1px solid var(--mk-line) !important;
    border-radius: 10px !important;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.mk-page .accordion .card-header {
    background: #ffffff !important;
    cursor: pointer;
    border-bottom: none !important;
    padding: 1.15rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-900);
}

.mk-page .accordion .card-body {
    color: var(--slate-600);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 1.25rem 1.25rem;
}

/* ---------- Footer ---------- */
.mk-footer {
    background: #0b132b;
    color: #94a3b8;
    padding: 4.5rem 0 2.25rem;
    font-size: 0.92rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mk-footer h6 {
    color: #ffffff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.mk-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease;
}

.mk-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

.mk-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mk-footer ul li {
    margin-bottom: 0.65rem;
}

.mk-footer .mk-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    color: #64748b;
    font-size: 0.82rem;
}

@media (max-width: 991.98px) {
    .mk-hero {
        padding: 4.5rem 0 3.5rem;
    }

    .mk-hero h1 {
        font-size: 2.35rem;
    }

    .mk-section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .mk-hero h1 {
        font-size: 1.95rem;
    }
}

/* ===========================================================================
   Workspace polish (release preparation)
   ---------------------------------------------------------------------------
   Fixes found by reviewing every workspace screen. Kept in one section at the
   end so it layers over the theme without rewriting it.
   =========================================================================== */

/* Dropdowns looked like text boxes: the theme removed the native arrow and
   drew none of its own. A chevron makes every <select> recognisable. */
select.form-control:not([multiple]):not([size]) {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
}

/* Filter buttons were grey and read as disabled. */
form[method="GET"] .btn-secondary,
form[method="get"] .btn-secondary {
    background: var(--royal-blue, #2563eb);
    border-color: var(--royal-blue, #2563eb);
    color: #fff;
}

form[method="GET"] .btn-secondary:hover,
form[method="get"] .btn-secondary:hover {
    background: var(--royal-blue-hover, #1d4ed8);
    border-color: var(--royal-blue-hover, #1d4ed8);
}

/* Reference numbers (CL/2026/00002, KLA/2026/00042) were shown in the
   browser's red "code" style. They are identifiers people read aloud and
   type into searches: neutral, monospaced, aligned. */
.main-content code,
.teeka-ref {
    color: var(--slate-700, #334155);
    background: var(--slate-100, #f1f5f9);
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    font-size: 0.85em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Sidebar brand: the logo, with the firm underneath. */
.teeka-sidebar-logo {
    height: 30px;
    width: auto;
    max-width: 100%;
    display: block;
}

.teeka-sidebar-firm {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 200px;
}

/* The firm the person is working in, shown in the top bar. */
.teeka-firm-chip {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-700, #334155);
    background: var(--slate-50, #f8fafc);
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
}

/* DataTables search box, when a list has no server filter. */
.dataTables_wrapper .dataTables_filter input {
    min-width: 220px;
    border: 1px solid var(--slate-300, #cbd5e1);
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
}

/* Visible keyboard focus everywhere (accessibility). */
.main-content a:focus-visible,
.main-content .btn:focus-visible,
.app-sidebar a:focus-visible {
    outline: 2px solid var(--royal-blue, #2563eb);
    outline-offset: 2px;
}

/* Phones and tablets: the sidebar becomes an off-canvas menu.
   Before this, the theme's half-applied rules left the sidebar permanently
   open over the page on a phone, pushing the content off-screen. Below 992px
   it is hidden until the menu button is pressed; tapping outside it or
   pressing Escape closes it again (see master.blade.php). */
.teeka-nav-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    .wrapper .page-wrap .app-sidebar {
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: 0;
        width: 260px !important;
        transform: translateX(-100%);
        transition: transform 0.25s ease !important;
        transition-property: transform !important;
        z-index: 1045;
        overflow-y: auto;
    }

    body.teeka-nav-open .wrapper .page-wrap .app-sidebar {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(15, 23, 42, 0.35);
    }

    body.teeka-nav-open .teeka-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1040;
    }

    body.teeka-nav-open {
        overflow: hidden;
    }

    .wrapper .page-wrap .main-content {
        padding-left: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
    }

    .main-content .top-menu {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Tables scroll sideways inside their card instead of widening the page. */
    .main-content .card-body,
    .main-content .table-responsive {
        overflow-x: auto;
    }
}

/* The theme switches to its mobile layout at 1024px but the menu button
   only appears below 992px; keep the sidebar visible in between. */
@media (min-width: 992px) and (max-width: 1023.98px) {
    .wrapper .page-wrap .app-sidebar {
        transform: none !important;
    }
}
