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;
}



html, body {
    height: 100%;
    margin: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* This makes the main section take up available space */
}

footer {
    border-top: 1px solid lightgray;
    background-color: #f8f9fa; /* Example footer background color */
    padding: 10px;
    text-align: center;
}

.aligncenter {
    text-align: center;
}
/*
.styled-table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 18px;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
    border: 1px solid #dddddd;
}

.styled-table th {
    background-color: #0F2C52;
    color: white;
}

.styled-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.styled-table tr:hover {
    background-color: #ddd;
}

.styled-table a {
    color: blue;
    text-decoration: none;
}

.styled-table a:hover {
    text-decoration: underline;
}*/


.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 5px;
    text-align: left;
    border: 1px solid #ddd;
}

.table th {
    background-color: #527aab;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #ddd;
}

@media (max-width: 768px) {
    th, td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}

paymentstable {
    width: 100%;
    border-collapse: collapse;
}

.paymentstable th, td {
    text-align: left;
    border: 1px solid #ddd;
    padding: 3px !important
}

.paymentstable th {
    background-color: lightslategray;
    color: white;
    height: 10px;
}


/* Tab container */
.tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
}

/* Tab links */
.tab {
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
    background-color: lightgray;
    color: #555;
    transition: background-color 0.3s, color 0.3s;
}

    .tab:hover {
        background-color: #527aab;
        color: white;
    }

    /* Active tab */
    .tab.active {
        background-color: #527aab;
        color: white;
        border-color: #007bff;
    }

/* Tab content */
.tab-content {
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
    background-color: #f9f9f9;
}

    .tab-content p {
        margin: 0;
    }


/* Strong CSS selectors to override Bootstrap's .is-valid for optional fields */
.was-validated .form-control-plain.is-valid,
.form-control-plain.is-valid,
.was-validated .form-control-plain:valid {
    border-color: #ced4da !important; /* Default border */
    box-shadow: none !important;
    background-image: none !important;
}

    .was-validated .form-control-plain.is-valid:after,
    .form-control-plain.is-valid:after {
        display: none !important;
    }

.was-validated .form-control-plain.is-valid,
.form-control-plain.is-valid,
.was-validated .form-control-plain:valid {
    border-color: #ced4da !important;
    box-shadow: none !important;
    background-image: none !important;
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}


canvas#signature-pad {    
    display: block; /* Prevent inline extra space */
    width: 100%; /* Fill the parent container horizontally */
    height: 200px; /* Increase to make signature input more ergonomic */
    box-sizing: border-box; /* Include borders and paddings in dimensions */
    touch-action: none; /* Disable touch scrolling while drawing */
}