﻿:root {
    --ramp-grey-100: #f5f5f5;
    --ramp-grey-200: #e6e6e6;
    --ramp-grey-300: #d9d9d9;
    --ramp-grey-400: #b3b3b3;
    --ramp-grey-500: #757575;
    --ramp-grey-600: #444444;
    --ramp-grey-700: #383838;
    --ramp-grey-800: #2c2c2c;
    --ramp-grey-900: #1e1e1e;
    --ramp-grey-1000: #111111;
    --ramp-pale_purple-200-light: #ede7f3;
    --ramp-pale_purple-100-light: #f4f1f8;
    --color-brand: #0c8ce9;
    --color-brand-bg: #0d2e62;
    --color-bg-brand-hover: #0a6dc2;
    --color-bg-brand-pressed: #105cad;
    --color-bg-brand-secondary: #105cad;
}

body {
    background-color: var(--ramp-grey-100);
}

.bookmark-list {
    background-color: var(--ramp-grey-200);
    padding: 1ch;
}

.bookmark-item {
}

.card {
    border: 1px solid var(--ramp-grey-400);
    border-radius: 3px;
    filter: drop-shadow(var(--ramp-grey-300) 0px -4px 2px);
    background: white;
    padding: 2ch;
}

.grid-header {
    background-color: var(--ramp-pale_purple-100-light);
    border-bottom: 2px solid var(--ramp-grey-300);
}

    .grid-header th {
        font-weight: 300;
        color: var(--ramp-grey-900);
    }

.gray-swatch tr + tr {
    border-top: 2px solid var(--ramp-grey-300);
}

@layer components {

    body {
        margin: 0;
        padding: 0;
        font-family: "Inter", sans-serif !important;
        letter-spacing: .06em;
        text-wrap: balance;
        line-height: 1.4;
        text-autospace: punctuation;
        display: grid;
        grid-template-columns: minmax(min-content, 24ch) 1fr;
        grid-template-rows: repeat(10, auto);
        /*grid-area: 
            "nav language" 
            "nav body";*/
    }

    /*    body {
        display: grid;

    }*/



    a, p, h1, h2, h3, h4, h5, h6 {
        font-family: "Inter", sans-serif;
        color: #191D25;
        margin: 0;
        padding: 0;
    }

        a:active {
            text-decoration: underline;
            color: white;
        }

    h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }

    h2 {
        font-family: "Inter", sans-serif !important;
        font-size: 1.4rem;
        font-weight: 600;
        color: #191D25;
        line-height: 1.4;
    }

    * {
        box-sizing: border-box;
    }

    ul, dl, dt, dd {
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

    /*    form:not([id="formDomainLanguage"]) button {
        display: inline-flex;
        max-width: 18ch;
        background-color: #356496;
        border: 1px solid #1b5089;
    }*/

    textarea:not([row]) {
        min-height: 8em;
    }

    input, textarea, select {
        border-radius: 8px;
        padding: .6em 15px .6em 15px;
        font-optical-sizing: auto;
        font-weight: 400;
        border: 1px solid #C4CED7;
        font-size: .85rem;
        color: #191D25;
        line-height: 1.3;
        margin: 0;
        width: 100%;
        max-width: var( --input-max-width, 400px);
        letter-spacing: 0.04em;
        align-self: start;
    }

    .language-settings select {
        width: 100%;
        max-width: 150px;
        padding: 4px 5px;
        font-size: 12px;
        margin: 6px 0;
    }

    .field {
        display: grid;
        align-items: start;
        align-content: start;
        gap: .3rem;
        font-family: "Inter", sans-serif !important;
        letter-spacing: 0.04em;
        grid-row: span 1;
    }

        .field[data-ddlid="15"], .field[data-ddlid="16"] {
            grid-row: span 3;
        }

        .field input, .field textarea {
            border-radius: 8px;
            padding: .6em 15px .6em 15px;
            font-optical-sizing: auto;
            font-weight: 400;
            border: 1px solid #C4CED7;
            font-size: .85rem;
            color: #191D25;
            line-height: 1.3;
            margin: 0;
            width: 100%;
            max-width: var(--input-max-width, 400px);
            letter-spacing: 0.04em;
            align-self: start;
        }

        .field:has(> :where([type="checkbox"], [type="radio"])) {
            grid-template-columns: auto 1fr;
            gap: 1.5rem;
            align-content: start;
            justify-content: start;
            & label
            {
                grid-row: 1 / 2;
                grid-column: 3 / 2;
            }

            & input {
                grid-row: 1 / 2;
                grid-column: 1 / 2;
                font-size: 2rem;
            }

}

.field input[type="checkbox"] {
    margin-top: 0.15rem;
}

.field input[type="radio"] {
    margin-top: 0.2rem;
}

input:hover, input:focus {
    border-color: #A3ADBB;
}

.iw-disabled {
    cursor: not-allowed;
}

input.iw-disabled:not([type="checkbox"]):not([type="radio"]),
input.iw-disabled:not([type="checkbox"]):not([type="radio"]):hover,
input.iw-disabled:not([type="checkbox"]):not([type="radio"]):focus {
    background-color: #E8EBEE;
    color: #6B7280;
    border-color: #C4CED7;
}

.field label {
    font-weight: 600;
    font-size: .85rem;
    color: #191D25;
    line-height: 1.4;
}

ul[role=listbox].hidden {
    display: none;
}

.toggletip-container {
    position: relative;
    cursor: pointer;
}

.toggletip-bubble {
    position: absolute;
    left: 100%;
    top: 0;
    width: 520px;
    margin-left: 8px;
    z-index: 10;
    background-color: white;
    padding: 5px;
    line-height: 1.50;
    letter-spacing: 0.06em;
}

.ui-nav {
    display: grid;
    gap: 1.6em;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    grid-column: 1 / 3;
    grid-row: 1 / 11;
    /*        border: 1px solid var(--color-brand-bg);*/
    /*grid-column: 1;
            grid-row: 1 / 2;*/
}

.iw-button {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: min-content;
    font-size: 1rem;
    font-weight: 500;
}

.iw-button-primary {
    padding: .6em 1em;
    border: none;
    border-radius: 8px;
    background: #06a51d;
    color: #ffffff;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.form-layout-basic > label + * {
    margin-top: 0.3em !important;
}


.ui-nav #MainMenu {
    background-color: var(--color-brand-bg);
    border: 1px solid var(--color-brand-bg);
    display: grid;
    gap: 2em;
    padding: 2em 1em;
    grid-column: 1;
    grid-row: 1 / 11;
    align-items: start;
    align-content: start;
    min-height: 100vh;
}

.ui-nav .menu {
    padding: 1rem;
    background-color: white;
    border: 1px solid #e1e5ea; 
    border-radius: 6px;
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    min-height: 100vh;
}

#MainMenu a {
    display: inline-block;
    align-items: center;
    background-color: inherit;
    color: white;
    padding: 0;
    font-weight: 300;
    text-transform: lowercase !important;
    font-size: 16px;
    text-align: left;
    padding-left: 3ch;
    background-size: 24px 24px;
    background-position-y: bottom;
}

.ui-nav a::first-letter {
    text-transform: capitalize;
}

.ui-nav #MainMenu :where(img, br) {
    display: none;
}

.language-settings {
    grid-column: 2;
    grid-row: 1 / 3;
    background-color: white;
    border: 1px solid #e1e5ea;
    margin-left: -10px;
    z-index: 1;
}

.iw-gray-line {
    border-top: 1px solid #e1e5ea;
    padding-top: .5em;
}

.iw-spacing > * + * {
    margin-top: var(--spacing, 1.2em);
}

/*.iw-grid-layout > * + * {
    margin
}*/
.iw-grid-layout {
    display: grid;

    --grid-max-size: min(2000px, 100%, calc(var(--grid-col-count, 2) * var(--grid-item-size, 380px)));
    max-width: var(--grid-max-size);

    --grid-column-cap-size: calc((var(--grid-max-size) - var(--grid-col-count, 1) * var(--grid-gap, 1rem)) 
        / var(--grid-col-count, 2));

    --grid-item-min-size: calc((1 / var(--grid-col-count, 2)) * 680px);

    grid-template-columns: repeat(var(--grid-layout, auto-fill),
        minmax(
          min(100%, 
                max(var(--grid-column-cap-size), 
                    var(--grid-item-min-size, 280px))
                ),
          1fr
        )    
    );

    column-gap: var(--grid-gap, 1rem);
    --input-max-width: 100%;
}

.iw-grid-layout input { --input-max-width: 100%; }
.iw-grid-layout.iw-stretch { --grid-max-size: min(2000px, 100%); }
.iw-grid-layout.no-gap { --grid-gap: 0; }
.iw-grid-layout .fill { grid-column: 1 / -1; }
.iw-grid-layout > * { grid-row: span var(--grid-item-spill, 1); }

.iw-grid-layout hr {
    display: block;
    width: 100%;
    height: 2px;
}

@media (width <= 600px)  {
    .iw-grid-layout {
        grid-template-columns: 1fr !important;
        --grid-col-count: 1 !important;
    }
    .iw-grid-layout > * {
        --grid-item-span: 1 !important;
        grid-column: 1 !important;
    }
}

/*.iw-grid-layout:has(> [style*="--grid-item-span"]) {
    --grid-max-size: min(2000px, 100%);
    grid-template-columns: repeat(12, minmax(0, 1fr));
}*/

[style*="--grid-item-span"] {
    grid-column: span var(--grid-item-span);
}

table td, table th {
    font-family: "Inter", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.06em;
    font-size: 14px;
}

.iw-input-long {
    width: 100% !important;
    max-width: 60ch !important;
}

.iw-input-short {
    width: 100%;
    max-width: 30ch;
}

.iw-input-max {
    width: 100%;
    max-width: 100%;
}

.iw-box {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: var(--box-gap, 1rem);
    align-items: center;
}

.iw-toolbar {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--grid-item-min-size, 200px)), 1fr));
    gap: var(--grid-gap, 1.2rem);
    align-items: center;
}

.iw-toolbar button {
    max-width: max-content;
}

/*.iw-grid-layout:has([style*="--grid-item-span"]) > * + * {
    margin-left: 1rem;
}*/
.ui-nav a[href^="/Invoicing"] {
    border-top: 2px solid #264472;
    padding-top: 1em;
    border-radius: unset;
}

.ui-nav a[href^="/Auditors"] {
    border-top: 2px solid #264472;
    padding-top: 1em;
    border-radius: unset;
}

.ui-nav a[href^="/Settings"] {
    border-top: 2px solid #264472;
    padding-top: 1em;
    border-radius: unset;
}

a[href^="/Customers"] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="8" r="2.5"/><path d="M4.5 17c.9-2.5 3-4 4.5-4s3.6 1.5 4.5 4"/><circle cx="17" cy="9.5" r="2"/><path d="M15.5 17c.6-1.7 1.9-2.8 3.5-3.2"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Offers"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="3.5" y="5" width="11" height="14" rx="2.5"/><path d="M7 8h4M7 11h4M7 14h3"/><rect x="13" y="9" width="7.5" height="7.5" rx="1.8"/><path d="M15.2 12.8l1.5 1.5 2.8-3"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/AuditPlans"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="5" width="14" height="15" rx="2.5"/><path d="M8 3.8v2.7M14 3.8v2.7M4 9.5h14"/><path d="M9 13.5h5M9 16.5h3"/><path d="M18 8.5l2.5-2.5"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Audit/"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="4" width="12" height="16" rx="2.5"/><path d="M8.5 8h5M8.5 12h5M8.5 16h3"/><circle cx="18.2" cy="16.8" r="2.2"/><path d="M19.8 18.4l1.7 1.7"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Appointments"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="8" cy="9" r="2.3"/><path d="M4.5 17c.9-2.6 2.7-4 4.5-4s3.6 1.4 4.5 4"/><path d="M15.5 7.5h5M18 5v5"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Assessments"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="4" width="14" height="16" rx="2.5"/><path d="M8.5 8h7M8.5 12h7M8.5 16h5"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Assessments"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="4" width="14" height="16" rx="2.5"/><path d="M8.5 8h7M8.5 12h7M8.5 16h5"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Decision"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="8"/><path d="M9.5 8.8h2.2a2.7 2.7 0 1 1 0 5.4H9.5z"/><path d="M9.5 14.2h2.5c1.7 0 3 .9 3.7 2.2"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Certificates"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="4" width="14" height="11" rx="2.5"/><path d="M8 8h8"/><path d="M12 15v5l-2-1.2L8 20v-5"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Invoicing"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="5" width="14" height="14" rx="2.5"/><path d="M9 9h6M9 13h6M9 17h3"/><rect x="3.5" y="3.5" width="6" height="6" rx="1.5"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Costs"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="6" width="16" height="12" rx="2.5"/><circle cx="12" cy="12" r="2.3"/><path d="M7 9h.01M17 15h.01"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Bank"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M3.5 9.5L12 5l8.5 4.5z"/><path d="M5.5 9.5V18M9.5 9.5V18M14.5 9.5V18M18.5 9.5V18"/><path d="M4 18h16"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Auditors"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M7 7.5h10"/><rect x="5" y="4.5" width="14" height="15" rx="2.5"/><path d="M10 14c0-1.4.9-2.5 2-2.5s2 1.1 2 2.5"/><circle cx="12" cy="9.2" r="1.8"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Qualifications"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M5 6.5h10a2 2 0 0 1 2 2V18l-4-2-4 2-4-2z"/><path d="M17 8l2-1.5L21 8v8.5"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Documents"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M6 6h9l3 3v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"/><path d="M15 6v4h4"/><path d="M8 13h8M8 17h5"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Settings"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="2.5"/><path d="M12 4.5v2M12 17.5v2M4.5 12h2M17.5 12h2M6.7 6.7l1.4 1.4M15.9 15.9l1.4 1.4M17.3 6.7l-1.4 1.4M8.1 15.9l-1.4 1.4"/></svg>');
    background-repeat: no-repeat;
}

a[href^="/Development"] {
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="3.5" y="5.5" width="17" height="13" rx="2.5"/><path d="M9.5 10l-2 2 2 2M14.5 10l2 2-2 2"/></svg>');
    background-repeat: no-repeat;
}
}
