* {
    box-sizing: inherit;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
    font-size: 0.65rem;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    max-width: 100vw;
    scroll-behavior: smooth;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    /* Height fix */
    display: table;
    height: 100%;
}

body {
    margin: 0;
    color: #606c76;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
    font-size: 1.4em;
    font-weight: 300;
    letter-spacing: .01em;
    line-height: 1.6;
    width: 100%;
    padding: 0;
    max-width: 100vw;
    background-color: white;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    /* Height fix */
    height: 100%;
    display: table-cell;
    
}

select {
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
    font-size: 100%;
    font-size: 0.8em;
    line-height: 1.5;
    margin: 0;
    text-transform: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: initial;
    border: .1rem solid #d1d1d1;
    border-radius: .4rem;
    box-shadow: none;
    box-sizing: inherit;
    padding: .6rem 1rem;
    width: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="14" viewBox="0 0 29 14" width="29"><path fill="%23d1d1d1" d="M9.37727 3.625l5.08154 6.93523L19.54036 3.625"/></svg>') 100% no-repeat;
    padding-right: 3rem;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"14\" viewBox=\"0 0 29 14\" width=\"29\"><path fill=\"%23d1d1d1\" d=\"M9.37727 3.625l5.08154 6.93523L19.54036 3.625\"/></svg>");
    background-position-x: 100%;
    background-position-y: center;
    background-size: initial;
    background-repeat-x: no-repeat;
    background-repeat-y: no-repeat;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    margin-bottom: 1.5rem;
}

/*////////////////////////////////////////////BOOTSTRAP OVERRIDES////////////////////////////////////////////////////////////////////////////////////////*/
.card {
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Layout consistency */
.row {
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.col-12 {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

/* Message box fix */
.box {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Typography */
p {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    line-height: 1.5;
}

.alert-secondary {
    background-color: #d9edf7 !important;
    color: #31708f !important;
    border: 1px solid #bce8f1 !important;
}

/*////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

main {
    display: block;
}

div.page {
    background: #ebebeb;
    min-height: 100%;
    height: 100%;
}

@media (max-width:1200px) {
    .mud-main-content {
        padding-top: 0px;
    }
}

@media (min-width:1200px) {
    .mud-main-content {
        margin-left: 200px;
        padding-top: 5px;
    }
}

h3 {
    font-weight: 300;
    letter-spacing: -.1rem;
    margin-bottom: 2rem;
    margin-top: 0;
    font-size: 2.8rem;
    line-height: 1.3;
}

h4 {
    font-weight: 300;
    letter-spacing: -.1rem;
    margin-bottom: 2rem;
    margin-top: 0;
    font-size: 2rem;
    line-height: 1.1;
}

.wrapper {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

*, :after, :before {
    box-sizing: inherit;
}

.hero {
    display: flex;
    display: -ms-flexbox;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 2rem;
    padding-top: 2rem;
}

.bg-primary {
    background: #5755d9 !important;
    color: #fff;
}

.hero.hero-sm {
    padding-bottom: 2rem;
    padding-top: 2rem;
}

section {
    margin-top: 2rem;
}

.hero .hero-body {
    padding: .4rem 2rem;
}

p {
    margin-bottom: 2.5rem;
    margin-top: 0;
}

a {
    background-color: transparent;
    color: rgba(63,92,207,.8);
    text-decoration: none;
}

img {
    border-style: none;
    max-width: 100%;
}

.img-responsive {
    width: 100%;
    max-width: none;
    display: block;
    height: auto;
}

ul {
    list-style: none;
    margin-top: 0;
    padding-left: 0;
    margin-bottom: 2.5rem;
    padding: 0;
}

.wrap {
    white-space: pre-wrap;
}

li {
    margin-bottom: 1rem;
}

ul li {
    margin-top: .4rem;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.check-mark {
    vertical-align: sub;
    margin-right: .5rem;
    color: rgba(0,255,30,.7);
}

* {
    box-sizing: inherit;
}

main {
    display: block;
}

.wrapper {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

*, :after, :before {
    box-sizing: inherit;
}

.container {
    max-width: 100rem;
    padding: 1rem;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

.paper {
    box-shadow: 0 0.438rem 1.25rem 0 rgba(21,64,97,.15),0 0.063rem 0.25rem 0 rgba(21,64,97,.25);
    margin-bottom: 10rem;
    padding: 2rem;
}

p {
    margin-bottom: 2.5rem;
    margin-top: 0;
}

.right-flex {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    flex: 1;
    text-align: end;
    justify-content: center;
    align-items: flex-end;
}

.sideBarLogo {
    background-color: white;
}

.sideBarLogo, img {
    background-color: white;
    height: auto;
    width: 12.5rem;
    align-content: center;
    padding-bottom: 1.25rem;
    padding-top: 1.25rem;
    margin: auto;
}

label, legend {
    display: block;
    font-weight: 700; /* Same as fw-bold */
    font-size: 1.25rem; /* Same as fs-5 */
    margin-bottom: 0.5rem;
    color: #606c76;
    margin-bottom: .5rem;
    margin: 0;
}

header {
    box-shadow: 0 3px 20px 0 rgba(21,64,97,0.15), 0 1px 2px 0 rgba(21,64,97,0.25);
    border-top: 6px solid hsla(228, 60%, 53%, 0.8);
    color: hsl(24,12%,30%);
    margin-bottom: 20px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 400;
}

.navbar-logo {
    max-height: 45px;
    height: auto;
    width: auto;
    margin: 0;
    padding: 0;
}

.navbar-nav {
    height: 4.5rem;
    margin-bottom: 20px;
}

fieldset {
    margin: 8px;
    border: 1px solid silver;
    padding: 8px;
    border-radius: 4px;
}

legend {
    padding: 2px;
}

.selectEmoji {
    font-size: 24px;
}

.tableEmoji {
    font-size: 24px;
    min-width: 75px;
    display: inline-block;
}

.tableMessage {
    min-width: 200px;
    /*min-height: 100px;*/
    overflow-x: scroll;
}

.clock {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
}

/*///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

@media (min-width: 600px) {
    .teacher-select {
        max-width: 300px;
    }
}

@media (min-width: 40rem) {
    .teacher-select {
        max-width: 300px;
    }
}

input {
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
    font-size: 100%;
    line-height: 2.0;
    margin: 0;
    overflow: visible;
    margin-bottom: 1.5rem;
}

    input:not([type]) {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-color: transparent;
        border: .1rem solid #d1d1d1;
        border-radius: .4rem;
        box-shadow: none;
        box-sizing: inherit;
        padding: .6rem 1rem;
        width: 100%;
    }

[type="checkbox"] {
    box-sizing: border-box;
    padding: 0;
}

input[type="checkbox"] {
    display: inline;
}

.modal {
    z-index: 101;
}

textarea.form-control {
    min-height: calc(2.5em + 2.75rem + 2px);
}

@media (max-height: 1080px) {
    body {
        margin: 0;
        color: #606c76;
        font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
        font-size: 1.3em;
        font-weight: 300;
        letter-spacing: .01em;
        line-height: 1.4;
        width: 100%;
        height: 100%;
        padding: 0;
        max-width: 100vw;
        background-color: white;
        backface-visibility: hidden;
        -webkit-font-smoothing: subpixel-antialiased;
    }

    html {
        line-height: 1;
        -webkit-text-size-adjust: 100%;
        font-size: 58%;
        box-sizing: border-box;
        font-size: 0.70rem;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        max-width: 100vw;
        scroll-behavior: smooth;
        backface-visibility: hidden;
        -webkit-font-smoothing: subpixel-antialiased;
    }

    select {
        font-size: 100%;
        font-size: 0.7em;
        line-height: 1.3;
        margin: 0;
        border: .1rem solid #d1d1d1;
        border-radius: .4rem;
        padding: .4rem 1rem;
        width: 100%;
        padding-right: 3rem;
        background-position-y: center;
        margin-bottom: 1.3rem;
    }

    h3 {
        font-weight: 300;
        letter-spacing: -.1rem;
        margin-bottom: 2rem;
        margin-top: 0;
        font-size: 2.2rem;
        line-height: 1.3;
    }

    h4 {
        font-weight: 300;
        letter-spacing: -.1rem;
        margin-bottom: 2rem;
        margin-top: 0;
        font-size: 1.8rem;
        line-height: 1.1;
    }

    label, legend {
        display: block;
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: .5rem;
        margin: 0;
        color: #606c76;
    }
}

@media (max-width: 1440px) {
    body {
        margin: 0;
        color: #606c76;
        font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
        font-size: 1.0em;
        font-weight: 200;
        letter-spacing: .01em;
        line-height: 1.2;
        width: 100%;
        height: 100%;
        padding: 0;
        max-width: 100vw;
        background-color: white;
        backface-visibility: hidden;
        -webkit-font-smoothing: subpixel-antialiased;
    }

    html {
        line-height: 1;
        -webkit-text-size-adjust: 100%;
        font-size: 58%;
        box-sizing: border-box;
        font-size: 0.60rem;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        max-width: 100vw;
        scroll-behavior: smooth;
        backface-visibility: hidden;
        -webkit-font-smoothing: subpixel-antialiased;
    }

    /* Apply only to regular inputs, not radio/checkbox */
    input:not([type="radio"]):not([type="checkbox"]) {
        font-size: 100%;
        font-size: 1.5em;
        line-height: 1.3;
        margin: 0;
        padding: .5rem 1rem;
        width: 100%;
        padding-right: 3rem;
        margin-bottom: 1.3rem;
    }

    select {
        font-size: 100%;
        font-size: 1rem;
        line-height: 1.3;
        margin: 0;
        padding: .5rem 1rem;
        width: 100%;
        padding-right: 3rem;
        margin-bottom: 1.3rem;
    }

    h3 {
        font-weight: 300;
        letter-spacing: -.1rem;
        margin-bottom: 2rem;
        margin-top: 0;
        font-size: 2.2rem;
        line-height: 1.3;
    }

    h4 {
        font-weight: 300;
        letter-spacing: -.1rem;
        margin-bottom: 2rem;
        margin-top: 0;
        font-size: 1.8rem;
        line-height: 1.1;
    }

    label, legend {
        display: block;
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: .6rem;
        margin: 0;
        color: #606c76;
    }

    .apl-table-header {
        padding: 8px 16px; /* Padding inside the header cells */
        text-align: left; /* Align text to the left */
        border-bottom: 1px solid #ddd; /* Bottom border */
        font-weight: bold; /* Make the text bold */
    }
}

@media (max-width: 1920px) {
    .hide-cells {
        display: none; /* Hidden for screens 1920px and under */
    }
}

/* Show cells for screens wider than 1920px */
@media (min-width: 1921px) {
    .hide-cells {
        display: table-cell; /* Visible for screens wider than 1920px */
    }
}

.groupBox {
    border-width: 1px;
    border-style: solid;
    border-color: #606c76;
}

.groupBox-label {
    background-color: inherit;
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .5rem;
    margin: 0;
    color: #606c76;
}

.error {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    background-color: black;
}

.error-bg {
    background-color: black;
    height: fit-content;
}
/* Tables */

/* Buttons (åtgärder) */
.table-buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 2px;
}

@media (max-width:1200px) {
    .table-buttons {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        gap: 2px;
    }
}

.table-buttons button {
}

.apl-table-header-old {
    background: #1a2640 !important;
    color: white !important;
}

.apl-table-header span:hover {
    color: white !important;
}

.apl-table-header {
    background: #c7c5bf !important;
    padding: 12px 20px; /* Padding inside the header cells */
    text-align: left; /* Align text to the left */
    border-bottom: 1px solid #ddd; /* Bottom border */
    font-weight: bold; /* Make the text bold */
}

.card {
    border-radius: .25rem;
}

.frame .h3 {
    color: #1a2640;
   
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

.pre-wrap {
    white-space: pre-wrap;
}

.blazored-toast-container {
    z-index: 9999 !important;
}
/* /////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

.card {
    font-family: 'Arial', sans-serif;
    border: 0.5px solid #999;
    box-shadow: 0 0 0 0.1px #c7c5bf; /* Outer border mimicking a second border */

    box-sizing: border-box;
}

.card-header {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    background-image: linear-gradient(120deg, #c7c5bf 0%, #ebebeb 100%);
}

.card-footer {
    font-size: 14px;
    color: #999;
    margin-top: 12px;
}

.form-group label {
    margin-bottom: 5px; /* Space between label and input */
    color: #666; /* Matching color for text */
    font-weight: bold; /* Makes label text bold */
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%; /* Allows input to fill the width of the form group */
    border: 1px solid #ccc; /* Subtle border for inputs */
    border-radius: 4px; /* Slightly rounded corners for inputs */
    line-height: 1.5; /* Adequate line height for readability */
    padding: 8px; /* Padding inside inputs */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); /* Inset shadow for depth */
    background-color: #f9f9f9; /* Slightly off-white background to highlight depth */
}

.form-check {
    margin-left: 0px; /* Space between each radio button */
    padding: 0px; /* Padding for touch area */
}

    .form-check label {
        margin-bottom: 5px; /* Space between label and input */
        color: #666; /* Matching color for text */
        font-weight: bold; /* Makes label text bold */
    }

.form-check-input {
    margin-right: 5px; /* Space between the radio button and the label */
    accent-color: #007bff; /* Custom color for the radio button */
    cursor: pointer; /* Pointer cursor on hover */
}

.label-inline {
    display: block; /* Ensures label takes full width inside its container */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 14px; /* Slightly larger font for readability */
    line-height: 1.5; /* Adequate line-height for better readability */
}

/* Styling for the container that holds the radio groups for better spacing and alignment */

.disabled-marked {
    background-color: #f8f9fa; /* Light gray background to indicate disabled */
    opacity: 0.7; /* Slightly faded look */
    pointer-events: none; /* Optional: Prevent interactions */
}

.brand {
    height: 4rem;
    width: auto;
    max-width: 60px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.top-right-logo {
    position: absolute;
    top: 1rem;
    right: 1rem;
    height: 6rem;
    max-width: 150px;
    padding: 10px;
    object-fit: contain;
    /* Clean, subtle frame */
    border: 1px solid #ccc; /* Thinner and lighter */
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Softer shadow */
}
.text-secondary {
    color: rgba(0, 0, 0, 0.54);
}


.total-color {
    color: #4285F4;
}

.available-color {
    color: #34A853;
}

.taken-color {
    color: #EA4335;
}
.tutorUnactivated {
    color: grey !important;
    background-color: lightgray;
}


div.validation-message,
.validation-message.text-muted {
    color: red !important;
    font-weight: 500;
}
.frame {
    background-color: white;
}

/* Dropdown overflow fix for DottedButton in MudTables */
.dropdown-cell {
    overflow: visible !important;
    position: relative !important;
}

.dropdown-cell + tr,
tr:has(.dropdown-cell) {
    overflow: visible !important;
}

.mud-table-container {
    overflow: visible !important;
}

.mud-table-root {
    overflow: visible !important;
}