/* ═══════════════════════════════════════════════════════════════════════════
   Kridha Cloud — brand tokens + console skin
   Colours sampled from the logo: navy #023783 · royal #0A5BD3 · sky #059CF3
   · orange #FC890A · amber #F5A623
   Loaded by layouts/layout.ejs (website + auth) and layouts/console.ejs.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --k-font-head: "Montserrat", "Inter", system-ui, sans-serif;
    --k-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --k-ink: #0B1F44;
    --k-text: #2A3A55;
    --k-muted: #5B6B85;
    --k-bg: #FFFFFF;
    --k-bg-alt: #F4F7FC;
    --k-surface: #FFFFFF;
    --k-border: #E2E8F2;

    --k-primary: #0A5BD3;
    --k-primary-hover: #084AB0;
    --k-primary-ink: #FFFFFF;
    --k-primary-soft: rgba(10, 91, 211, .08);
    --k-accent: #FC890A;
    --k-accent-2: #059CF3;
    --k-navy: #023783;

    --k-deep: #041A40;
    --k-deep-2: #072B66;
    --k-on-deep: #EAF2FF;
    --k-on-deep-muted: #A3B6D8;
    --k-deep-border: rgba(255, 255, 255, .10);

    --k-grad: linear-gradient(118deg, #059CF3 0%, #0A5BD3 52%, #023783 100%);
    --k-grad-text: linear-gradient(100deg, #0A5BD3 10%, #059CF3 60%, #FC890A 100%);
    --k-grad-warm: linear-gradient(90deg, #FC890A, #F5A623);
    --k-glow-1: rgba(5, 156, 243, .20);
    --k-glow-2: rgba(252, 137, 10, .16);

    --k-radius: 14px;
    --k-shadow: 0 1px 2px rgba(4, 26, 64, .05), 0 8px 28px rgba(4, 26, 64, .08);
}

/* Wordmark used in site header/footer next to the mark */
.ks-wordmark { font-family: var(--k-font-head); font-weight: 800; letter-spacing: .01em; color: var(--k-navy); }
.ks-wordmark b { color: var(--k-accent-2); font-weight: 700; letter-spacing: .18em; margin-left: .35em; font-size: .78em; }
.ks-on-deep .ks-wordmark { color: #fff; }


/* ═══════════════════════════════════════════════════════════════════════════
   CONSOLE SKIN — only applies inside layouts/console.ejs (body.ks-console).
   Sits on top of cloud4c.css. A palette picked in the theme picker is
   injected later in <head> and still wins.
   ═══════════════════════════════════════════════════════════════════════════ */

body.ks-console { background: #F3F6FB; color: #1B2A44; font-family: var(--k-font-body); }
:where(body.ks-console) .content { background: #F3F6FB; }

/* Sidebar — deep Kridha navy */
:where(body.ks-console) .sidebar,
:where(body.ks-console) .sidebar-content { background: linear-gradient(180deg, #04245C 0%, #031A44 100%) !important; }
:where(body.ks-console) .sidebar-brand { box-shadow: 0 1px 0 rgba(255,255,255,.08) !important; color: #fff !important; }
:where(body.ks-console) .sidebar-brand span { font-family: var(--k-font-head); font-weight: 700; letter-spacing: .01em; }
:where(body.ks-console) .sidebar-link,
:where(body.ks-console) .sidebar-link i,
:where(body.ks-console) .sidebar-link svg { color: #C9D8F2 !important; stroke: currentColor; }
:where(body.ks-console) .sidebar-link:hover { background: rgba(255,255,255,.07) !important; color: #fff !important; }
:where(body.ks-console) .sidebar-item.active > .sidebar-link { background: transparent !important; color: #fff !important; }  /* every item carries .active in the markup */
:where(body.ks-console) .sidebar-dropdown .sidebar-link { color: #AFC3E6 !important; }
:where(body.ks-console) .sidebar-dropdown .sidebar-link:hover { color: #fff !important; box-shadow: inset 3px 0 0 #FC890A; }
:where(body.ks-console) .nav-org_name-container { background: rgba(252,137,10,.12) !important; }
:where(body.ks-console) #nav-org_name-- { color: #FFD6A8 !important; font-family: var(--k-font-head); }

/* Navbar + footer */
:where(body.ks-console) .navbar-bg,
:where(body.ks-console) .footer-fixed { background: #FFFFFF !important; }
:where(body.ks-console) .navbar { box-shadow: 0 1px 0 rgba(2,55,131,.08) !important; }

/* Cards / tables / forms */
:where(body.ks-console) .card { border-radius: 12px !important; box-shadow: 0 1px 2px rgba(4,26,64,.04), 0 6px 20px rgba(4,26,64,.06) !important; }
:where(body.ks-console) .card-title,
:where(body.ks-console) h1, body.ks-console h2, body.ks-console h3,
:where(body.ks-console) h4, body.ks-console h5 { color: #0B1F44; }
:where(body.ks-console) .table thead th { background: #F5F8FD !important; color: #5B6B85 !important; }
:where(body.ks-console) .form-control:focus,
:where(body.ks-console) .form-select:focus,
:where(body.ks-console) #super-search-bar:focus { border-color: #0A5BD3 !important; box-shadow: 0 0 0 3px rgba(10,91,211,.15) !important; }

/* Buttons + links */
:where(body.ks-console) .btn-primary { background: #0A5BD3 !important; box-shadow: 0 1px 4px rgba(10,91,211,.35) !important; }
:where(body.ks-console) .btn-primary:hover { background: #084AB0 !important; }
:where(body.ks-console) .btn-outline-dark:hover { color: #0A5BD3 !important; border-color: #0A5BD3 !important; }
:where(body.ks-console) a { color: #0A5BD3; }
:where(body.ks-console) #super-app-setup- { border-color: rgba(252,137,10,.55) !important; color: #B85F00 !important; }
:where(body.ks-console) #super-app-setup-:hover { background: #FC890A !important; color: #fff !important; }
:where(body.ks-console) .dropdown-item:hover { color: #0A5BD3 !important; }

/* Theme-picker trigger (picker injects a dark default) */
:where(body.ks-console) #cwo-theme-trigger { background: #FFFFFF !important; border-color: #D3DDEC !important; color: #0A5BD3 !important; }
:where(body.ks-console) #cwo-theme-trigger:hover { border-color: #0A5BD3 !important; }

/* Organization name bar (filled from the backend by board.js) */
:where(body.ks-console) .ks-org-label { display: block; font-size: .68rem; letter-spacing: .04em; opacity: .7; color: inherit; margin-bottom: 2px; }

/* Machines live view colours come from the active theme palette (js/brand-theme.js). */

.notyf__toast--error { display: none !important; }  /* hide the default Notyf error toast, we use a custom one */

.notyf__toast:has(.notyf__ripple[style*="rgb(220, 53, 69)"]) {

    display: none !important;

}

/* ...except on the sign-in pages and Payment Methods (assets/js/txn.js super_not adds this class) */
div.notyf__toast.super-notyf-show.super-notyf-show { display: block !important; }