﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/*.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}*/

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.btn-info,
.btn-info:hover,
.btn-info:active,
.btn-info:visited,
.btn-info:focus {
    background-color: grey !important;
    border-color: grey !important;
}

.btn-danger,
.btn-danger:hover,
.btn-danger:active,
.btn-danger:visited,
.btn-danger:focus {
    background-color: firebrick !important;
    border-color: firebrick !important;
}

.right {
    text-align: right;
    margin-right: 1em;
}

.card, .card-header, .card-body, .card-footer {
    border-radius: 0px !important;
}

.card-header {
    background-color: #B4A286;
    color: white;
    height: 30px;
    align-items: center;
    display: flex;
}

.card-body {
    padding-bottom: 0px;
}

.card-footer {
    padding-top: 0px;
    padding-bottom: 0px;
}

/*.btn {
    background-color: #B4A286;
    color: black;
    border: none;
    border-radius: 2px;
}*/

/*    .btn:hover {
        background-color: #B4A286;
        transition: 0.7s;
        color: black;
    }

    .btn:focus {
        background-color: #B4A286;
    }

    .btn:active {
        background-color: #B4A286;
    }*/

.bottom-wrapper {
    margin-top: 0.5em;
}

a:link, a:visited {
    color: #B4A286;
    text-decoration: underline;
    cursor: pointer;
}

#myTable {
    display: none;
}

/*.e-grid .e-toolbar {
    background-color: white !important;
}

    .e-grid .e-toolbar .e-tbar-btn .e-tbar-btn-text {
        background-color: #B4A286 !important;
        color: white !important;*/
        /*font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;*/
        /*min-height: 30px !important;
    }

.e-grid .e-icon-filter::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('/images/filter.svg') no-repeat center center;
    background-size: cover;
}

.e-grid .e-rowcell {
    font-size: 12px;
}*/

.modal {
/*    pointer-events: none;*/
    padding-top: 0px;
    padding-bottom: 0px;
}

.modal-dialog {
    pointer-events: all;
    border-radius: 0px;
    margin-bottom: 0%;
    border: thin;
    border-color: black;
    padding-bottom: 0px;
    height: auto;
}

.modal-content {
    padding: 0px;
    margin: 0px;
    border-radius: 0px;
    margin-bottom: 0%;
}

.modal-body {
    padding: 0px;
    margin: 0px;
    border-radius: 0px;
    margin-bottom: 0%;
}

/* Syncfusion grid */

.e-toolbar {
    border: none !important;
    box-shadow: none !important;
    height:50px!important;
}

    .e-toolbar .e-tbar-btn {
        border-color: #B4A286 !important;
        border-style: solid !important;
        border-width: 1px !important;
        padding: 5px !important;
        margin-left: 2px !important;
        height: 10px !important;
    }

.e-grid {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

    .e-grid .e-headercelldiv {
        font-size: 12px !important;
    }

    .e-grid .e-rowcell {
        font-size: 12px !important;
    }

.statustemplate.e-inactivecolor {
    background-color: #ffd7cc;
    width: 120px;
}

.statustemplate.e-activecolor {
    background-color: #ccffcc;
    width: 120px;
}

.statustemplate.notusedcolor {
    background-color: #ccffcc;
    width: 120px;
}

.statustemplate {
    position: relative;
    height: 19px;
    border-radius: 5px;
    text-align: center;
}

.e-bigger .e-grid .statustxt {
    position: relative;
    top: -2px;
}

td.e-rowcell .statustxt.e-activecolor {
    color: #00cc00;
    position: relative;
    top: 9px;
}

td.e-rowcell .statustxt.e-inactivecolor {
    color: #e60000;
    position: relative;
    top: 9px;
}

td.e-rowcell .statustxt.notusedcolor {
    color: gray;
    position: relative;
    top: 9px;
}

td.e-rowcell .statustxt.e-nacolor {
    color: black;
    position: relative;
    top: 9px;
}

.statusprovisiontemplate {
    position: relative;
    height: 19px;
    border-radius: 5px;
    text-align: center
}

.statusprovisiontemplate.e-activecolor {
    background-color: #ccffcc;
    width: 150px;
}

.statusprovisiontemplate.e-inactivecolor {
    background-color: #ffd7cc;
    width: 150px;
}

.statusprovisiontemplate.e-nacolor {
    background-color: lightgray;
    width: 150px;
}

td.e-rowcell .statusprovisiontxt.e-activecolor {
    color: #00cc00;
}

td.e-rowcell .statusprovisiontxt.e-inactivecolor {
    color: #e60000;
}

td.e-rowcell .statusprovisiontxt.e-nacolor {
    color: black;
}

/* Supplier Evaluation */
.statustemplate.e-normal {
    background-color: #c1e2be;
    width: 120px;
    justify-content: center;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

.statustemplate.e-significant {
    background-color: #fffdcc;
    width: 120px;
    justify-content: center;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

.statustemplate.e-important {
    background-color: #fce2b3;
    width: 120px;
    justify-content: center;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

.statustemplate.e-critical {
    background-color: #f38989;
    width: 120px;
    justify-content: center;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

.statustemplate.e-na {
    background-color: lightgray;
    width: 120px;
    justify-content: center;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

td.e-rowcell .statustxt.e-normal {
    color: black;
    position: relative;
    top: 9px;
}

td.e-rowcell .statustxt.e-significant {
    color: black;
    position: relative;
    top: 9px;
}

td.e-rowcell .statustxt.e-important {
    color: black;
    position: relative;
    top: 9px;
}

td.e-rowcell .statustxt.e-critical {
    color: #ffd7cc;    
    position: relative;
    top: 9px;
}

td.e-rowcell .statustxt.e-na {
    color: black;
    position: relative;
    top: 9px;
}

/* Supplier Evaluation */
/* Syncfusion grid */
/* e-dialog*/
/* Apply rounded border to the dialog */
.e-dialog {
    border-radius: 15px !important; /* Adjust the radius as needed */
}

.e-dlg-content,
.e-footer-content {
    border-radius: 15px !important; /* Adjust the radius as needed */
}


/* --- Sidebar base --- */
.stika-sidebar.e-sidebar {
    background: #ffffff;
    border-right: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    overflow: hidden;
    position: relative; /* needed for footer positioning */
}

/* Header */
.stika-sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #fff;
    background: linear-gradient(135deg, #0091EB, #A5E6FF);
}

/* Toggle */
.stika-toggle {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.18);
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

    .stika-toggle:hover {
        background: rgba(255,255,255,.26);
        transform: scale(1.02);
    }

    .stika-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: #fff;
        border-radius: 3px;
        margin: 2px 0;
    }

/* Title */
.stika-title {
    line-height: 1.05;
}

.stika-title-main {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .2px;
}

.stika-title-sub {
    font-weight: 650;
    font-size: 13px;
    opacity: .95;
}

/* Menu layout */
.stika-menu {
    padding: 10px;
    padding-bottom: 74px; /* room for footer */
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Buttons look like menu items */
.stika-item, .stika-subitem, .stika-logout {
    all: unset;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-radius: 14px;
    box-sizing: border-box;
}

/* Primary items */
.stika-item {
    padding: 12px 12px;
    background: #f7fbff;
    border: 1px solid rgba(0,145,235,.12);
    font-weight: 750;
    font-size: 15px;
    color: #0b2b3b;
    transition: background .15s ease, transform .05s ease;
}

    .stika-item:hover {
        background: #e8f5ff;
    }

    .stika-item:active {
        transform: scale(.99);
    }

/* Icon (main items) */
.stika-ico {
    width: 22px;
    height: 22px;
    display: grid;
    place-content: center;
    border-radius: 10px;
    background: rgba(0,145,235,.12);
}

    .stika-ico svg {
        width: 16px;
        height: 16px;
        fill: #0b2b3b;
    }

/* Chevron */
.stika-chevron {
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(11,43,59,.55);
    border-bottom: 2px solid rgba(11,43,59,.55);
    transform: rotate(45deg);
    transition: transform .15s ease;
}

.stika-item[aria-expanded="true"] .stika-chevron {
    transform: rotate(-135deg);
}

/* Submenu container (tight spacing) */
.stika-submenu {
    margin: 2px 0 6px 34px; /* less left + top space */
    display: none;
    flex-direction: column;
    gap: 2px; /* tighter gap */
}

/* Submenu items */
.stika-subitem {
    padding: 8px 10px; /* slightly tighter */
    font-size: 14px;
    color: #0b2b3b;
    background: transparent;
    border-radius: 12px;
    transition: background .15s ease;
}

    .stika-subitem:hover {
        background: rgba(0,145,235,.10);
    }

/* Optional bullet (if you still use it anywhere) */
.stika-bullet {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(0,145,235,.45);
}

/* Submenu icon style (optional, if you're adding icons in submenu) */
.stika-ico-sub {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    display: grid;
    place-content: center;
    background: rgba(0,145,235,.10);
}

    .stika-ico-sub svg {
        width: 14px;
        height: 14px;
        fill: #0b2b3b;
    }

/* Footer */
.stika-sidebar-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,1) 40%);
}

/* Logout button (NOT a link style) */
.stika-logout {
    padding: 12px;
    width: 100%;
    font-size: 14px;
    background: #f7fbff;
    border: 1px solid rgba(0,145,235,.12);
    font-weight: 750;
    color: #0b2b3b;
    transition: background .15s ease, transform .05s ease;
}

    .stika-logout:hover {
        background: #e8f5ff;
    }

    .stika-logout:active {
        transform: scale(.99);
    }

/* Fix your global gold links inside sidebar (your site.css a:visited is gold) */
.stika-sidebar a,
.stika-sidebar a:link,
.stika-sidebar a:visited {
    color: #0b2b3b !important;
    text-decoration: none !important;
}

/* ---------------- Flyout submenu (when collapsed) ---------------- */
.stika-flyout {
    position: fixed;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 15px 40px rgba(0,0,0,.12);
    border-radius: 14px;
    padding: 8px;
    z-index: 9999;
}

    .stika-flyout .stika-submenu {
        display: flex !important;
        margin: 0 !important;
        gap: 2px !important;
    }

    .stika-flyout .stika-subitem {
        justify-content: flex-start;
        padding: 10px 10px;
    }

    /* show text inside flyout even if sidebar is collapsed */
    .stika-flyout .stika-text,
    .stika-flyout .stika-logout-text {
        display: inline !important;
    }

/* default hidden (your CSS already sets display:none) */
.stika-submenu.is-open {
    display: flex !important;
}

/* If collapsed: force-hide all label text and keep icons centered */
.stika-sidebar.stika-collapsed .stika-text,
.stika-sidebar.stika-collapsed .stika-title,
.stika-sidebar.stika-collapsed .stika-logout-text {
    display: none !important;
}

.stika-sidebar.stika-collapsed .stika-item,
.stika-sidebar.stika-collapsed .stika-subitem,
.stika-sidebar.stika-collapsed .stika-logout {
    justify-content: center !important;
}

/* Make collapsed styles work when the class is on Syncfusion's .e-sidebar wrapper */
.e-sidebar.stika-collapsed .stika-title,
.e-sidebar.stika-collapsed .stika-text,
.e-sidebar.stika-collapsed .stika-chevron,
.e-sidebar.stika-collapsed .stika-submenu,
.e-sidebar.stika-collapsed .stika-logout-text {
    display: none !important;
}

.e-sidebar.stika-collapsed .stika-item,
.e-sidebar.stika-collapsed .stika-subitem,
.e-sidebar.stika-collapsed .stika-logout {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* === Main content offset for Syncfusion sidebar === */
.stika-main {
    margin-left: 280px; /* expanded sidebar width */
    padding: 24px;
    min-height: 100vh;
    transition: margin-left 180ms ease;
}

body.stika-sidebar-collapsed .stika-main {
    margin-left: 72px; /* dockSize */
}

/* Optional: keep pages from touching the top edge */
.stika-page {
    max-width: none;
    width: 100%;
}

/* Mobile: usually sidebar overlays, so content should be full width */
@media (max-width: 991.98px) {
    .stika-main,
    body.stika-sidebar-collapsed .stika-main {
        margin-left: 0;
        padding: 16px;
    }
}

:root {
    --stika-primary: #0091EB;
    --stika-sand: #B4A286;
    --stika-border: rgba(180, 162, 134, 0.28);
    --stika-soft: rgba(180, 162, 134, 0.10);
}

.stika-h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.stika-muted {
    opacity: .75;
}

.stika-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.stika-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--stika-soft);
    border-radius: 12px;
}

.stika-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: flex-end;
    overflow-x: auto; /* desktop: if ever needed */
}

.stika-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* desktop sizing */
    flex: 0 0 250px; /* fixed-ish width per field */
    min-width: 250px;
}

    /* inputs fill field */
    .stika-field .e-dropdownlist,
    .stika-field .form-control {
        width: 100% !important;
    }

/* ✅ when screen is smaller: wrap instead of scroll */
@media (max-width: 1200px) {
    .stika-filters {
        flex-wrap: wrap; /* allow wrapping */
        overflow-x: visible; /* no horizontal scroll */
    }

    .stika-field {
        flex: 1 1 280px; /* shrink and wrap naturally */
        min-width: 280px;
    }
}

/* ✅ even smaller: 2 per row or 1 per row */
@media (max-width: 768px) {
    .stika-field {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

.stika-label {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
}

/* Search can be slightly wider */
.stika-field-search {
    flex: 1 1 250px;
    min-width: 250px;
}


.stika-search {
    position: relative;
}

.stika-search-input {
    border-radius: 10px !important;
    border-color: #d9d9d9 !important;
    padding-right: 34px;
    height: 32px;
}

.stika-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    opacity: .6;
    cursor: pointer;
}

    .stika-search-clear:hover {
        opacity: 1;
    }

.stika-rowcount {
    font-size: 12px;
    font-weight: 600;
    opacity: .85;
    white-space: nowrap;
}

/* Buttons aligned with your theme */
.btn-primary {
    background-color: var(--stika-primary);
    border-color: var(--stika-primary);
}

    .btn-primary:hover {
        background-color: #007dcb;
        border-color: #007dcb;
    }

.btn-outline-primary {
    color: var(--stika-primary);
    border-color: rgba(0,145,235,.35);
}

    .btn-outline-primary:hover {
        background: rgba(0,145,235,.08);
        border-color: rgba(0,145,235,.45);
    }

/* Grid border tone to match sand scheme */
.e-grid .e-rowcell, .e-grid .e-headercell {
    border-color: var(--stika-border) !important;
}

/* Syncfusion input group tweaks (keeps your rounded look) */
.e-input-group {
    height: 32px;
    border-radius: 10px !important;
    border-color: #d9d9d9 !important;
}

/* Column chooser button polish (no duplicates) */
#ComplianceGrid_columnchooser {
    height: 40px !important;
    line-height: 40px !important;
    margin-top: 7px !important;
    border-radius: 20px !important;
    padding: 6px 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-color:lightgray !important;
}

/* Make this modal width similar everywhere (instead of inline 30%) */
.stika-modal {
    max-width: 520px; /* tweak if you want */
}

/* Syncfusion grid container spacing inside stika card */
#ProcessGrid {
    border-radius: 14px;
}

    /* Syncfusion toolbar -> match stika */
    #ProcessGrid .e-toolbar {
        background: var(--stika-soft) !important;
        border: 0 !important;
        border-bottom: 1px solid var(--stika-border) !important;
        border-radius: 14px 14px 0 0 !important;
    }

        /* Style toolbar buttons to look like your stika buttons */
        #ProcessGrid .e-toolbar .e-tbar-btn {
            border-radius: 999px !important;
            border: 1px solid rgba(0,145,235,.25) !important;
            background: #fff !important;
            height: 36px !important;
            padding: 6px 14px !important;
        }

            #ProcessGrid .e-toolbar .e-tbar-btn:hover {
                background: rgba(0,145,235,.08) !important;
            }

    /* Make the custom "Nýskrá" look like primary */
    #ProcessGrid #AddNew {
        background: var(--stika-primary) !important;
        border-color: var(--stika-primary) !important;
        color: #fff !important;
    }

        #ProcessGrid #AddNew:hover {
            background: #007dcb !important;
            border-color: #007dcb !important;
        }

    /* Optional: soften grid borders to match your other pages */
    #ProcessGrid .e-rowcell,
    #ProcessGrid .e-headercell {
        border-color: var(--stika-border) !important;
    }

#SupplierGrid_columnchooser {
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 20px !important;
    padding: 6px 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 7px !important;
    border-color: lightgray !important;
}

/* ✅ When NOT authenticated, remove sidebar spacing completely */
body.stika-auth .stika-main {
    margin-left: 0 !important;
    padding: 0 !important;
}

/* ✅ Make the login background truly full screen */
body.stika-auth .stika-auth-page {
    min-height: 100vh;
    width: 100%;
}

/* Optional: if anything still adds spacing */
body.stika-auth .stika-page {
    padding: 0 !important;
}
.stika-gap {
    height: 20px;
    background-color: white !important;
    display: block;
    width: 100%;
    flex: 0 0 auto;
}