﻿@media (max-width: 768px) { /* Adjust the breakpoint as necessary */
    thead.cn, thead.cl, thead.ml {
        display: none; /* Hide table headers */
    }
    .editCon {
        float: right;
    }

    tr.cn, tr.cl, tr.ml {
        margin-bottom: 0.625rem;
        display: block;
        width: 100%;
    }

    td.cn, td.cl, td.ml {
        display: block;
        text-align: left;
        position: relative;
        padding-left: 40%;

    }
    td.mh38 {
        min-height: 38px;
    }

    td.cn3, td.cl3, td.ml3 {
        display: block;
        text-align: left;
        font-size: 1.4em;
        padding-left: 15px;
    }

    td.cn::before, td.cl::before, td.ml::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 40%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
    }

    td.cn:nth-of-type(1)::before {
        content: "Business Name";
    }

    td.cn:nth-of-type(2)::before {
        content: "Address";
    }

    td.cn:nth-of-type(3)::before {
        content: "Email";
    }

    td.cn:nth-of-type(4)::before {
        content: "Contact Name";
    }

    td.cn:nth-of-type(5)::before {
        content: "Phone";
    }


    td.cl:nth-of-type(1)::before {
        content: "Client";
    }

    td.cl:nth-of-type(2)::before {
        content: "Job Type";
    }

    td.cl:nth-of-type(3)::before {
        content: "Date";
    }

    td.cl:nth-of-type(4)::before {
        content: "Time";
    }

    td.ml:nth-of-type(1)::before {
        content: "Machine";
    }

    td.ml:nth-of-type(2)::before {
        content: "Problem";
    }

    td.ml:nth-of-type(3)::before {
        content: "Fix";
    }

    td.ml:nth-of-type(4)::before {
        content: "Parts";
    }
    td.ml:nth-of-type(5)::before {
        content: "Notes";
    }

    /* Make the table row position relative */
    tr {
        position: relative;
    }

    .actions-column {
        text-align: right; 
        height: 0;
    }

    .action-buttons {
        position: absolute;
        top: -200px;
        right: 0;
        padding: 10px;
        border-bottom-left-radius: 5px;
    }

    .table-responsive-sm {
        overflow: visible;
    }
}

tr.bb {
    border-bottom: 1px solid #ddd;
}

.fr-b {
    aspect-ratio: 1/1; /* Ensures square shape */
    text-align: center; /* Centers text horizontally */
    padding: 15px; /* Add some padding for visual spacing */
    color: black; /* Set text color to black */
    display: flex; /* Enable Flexbox for vertical centering */
    align-items: center; /* Vertically center items within the button */
    justify-content: center; /* Horizontally center items within the button */
    flex-direction: column; /* Stack icon and text vertically */
    text-decoration: none; /* Remove underline from links */
}

    .fr-b:hover {
        background-color: #f0f0f0; /* A slightly lighter shade */
        transform: scale(1.05); /* Optional: Slight scale for emphasis */
        border: 1px solid #333;
    }

    .fr-b:nth-child(1) {
        background-color: lightblue;
    }
    /* Button 1 */
    .fr-b:nth-child(2) {
        background-color: lightgreen;
    }
    /* Button 2 */
    .fr-b:nth-child(3) {
        background-color: lightyellow;
    }
    /* Button 3 */
    .fr-b:nth-child(4) {
        background-color: lightcoral;
    }
    /* Button 4 */
    .fr-b:nth-child(5) {
        background-color: lightsalmon;
    }
    /* Button 5 */
    .fr-b:nth-child(6) {
        background-color: lightseagreen;
    }


.modal-content {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Modern shadow effect */
    border-radius: 0px; /* Rounded corners */
}

.modal-header {
    border-bottom: none; /* Remove the default border */
}

.nicer_head{
    padding: 4px;
    background-color: aliceblue;
    border-radius:5px;
}

.actions-column {
    text-align: right;
    white-space: nowrap;
}

.action-buttons {
    display: inline-flex;
    gap: 5px;
}

.no-wrap {
    white-space: nowrap;
}




/* Default: Show 'lsf' button, hide 'ssf' button */
.lsf {
    display: inline-block; 
}

.ssf {
    display: none;
}

/* On smaller screens: Hide 'lsf', show 'ssf' */
@media (max-width: 767px) { 
    .lsf {
        display: none;
    }

    .ssf {
        display: inline-block;
        position: absolute;
        right: 0;
        top: 5px;
    }
}

.smaller{
    font-size:0.8em;
}
.whead{
    background-color: papayawhip;
    width:90%;
    border-top: solid #aaa 1px;
    padding: 8px;
}

.form-signin {
    max-width: 330px;
    padding: 15px;
}

    .form-signin .form-floating:focus-within {
        z-index: 2;
    }

    .form-signin input[type="email"] {
        margin-bottom: -1px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .form-signin input[type="password"] {
        margin-bottom: 10px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.unsel_point {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
}

input[type=checkbox] {
    height: 25px;
    width: 25px;
    position: absolute;
    cursor: pointer;
}

input[type=radio] {
    height: 25px;
    width: 25px;
    cursor: pointer;
}
.mycheckers {
    margin-left: 30px;
    cursor: pointer;
}