@media screen and (orientation: portrait) {
    .col-md-1 {
        width: 25%;
        margin-bottom: 10px;
        margin-top: 0px;
    }
    .col-md-2 {
        width: 33%;
        margin-bottom: 10px;
        margin-top: 0px;
    }

    .col-md-2.tct3{
        width: 25%;
        display: inline-block;
        margin-bottom: 10px;
        margin-top: 0px;
    }
    .col-md-3 {
         width: 50%;
         margin-bottom: 10px;
         margin-top: 0px;
    }

    .col-md-4.tct {
        width: 75%;
        margin-bottom: 10px;
        margin-top: 0px;
    }

    .col-md-6.tct {
        width: 75%;
        margin-bottom: 10px;
        margin-top: 0px;
    }

    .col-md-4 {
        margin-bottom: 10px;
        margin-top: 0px;
    }
    .col-md-2.control-label.tct {
        width: 100%;
    }

    .col-md-9 {
        width: 75%;
    }

    .form-group {
        margin-bottom: 0px;
    }

    .form-control.tct {
        width: 50%;
        margin-bottom: 10px;
    }

    .fa.fa-shopping-cart {
        font-size: 1.5em;
    }
    .fa.fa-pencil {
        font-size: 1.5em;
    }
    .tctdisplay {
        display:none;
    }
    .table-text.tctdisplay
    {
        display:none;
    }
}

.searchtct {
    overflow: hidden;
    padding-right: .5em;
}
.form-control.tct {
    width: 50%;
}
.modal-header.tct
{
    padding: 0px;
}

.tct_links .a {
    line-height: 125px;
    display: inline-block;
    width: 125px;
    text-align: center;
    background-color: #44aaee;
    color: white;
    padding: 15px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .1rem;
    vertical-align: center;
}
/* adding in for signature pad */
.signature-pad {
    margin: auto;
    height: auto;
}

.signature-pad--body {
    min-height: 200px;
}

.signature-pad--actions {
    overflow: hidden;
}

.signature-pad--actions > div:first-child {
    float: left;
}

.signature-pad--actions > div:last-child {
    float: right;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.signature-pad {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    font-size: 10px;
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 300px;
    border: 1px solid #e8e8e8;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.08) inset;
    border-radius: 4px;
    padding: 16px;
}

.signature-pad::before,
.signature-pad::after {
    position: absolute;
    z-index: -1;
    content: "";
    width: 40%;
    height: 10px;
    bottom: 10px;
    background: transparent;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

.signature-pad::before {
    left: 10px;
    -webkit-transform: skew(-3deg) rotate(-3deg);
    transform: skew(-3deg) rotate(-3deg);
}

.signature-pad::after {
    right: 10px;
    -webkit-transform: skew(3deg) rotate(3deg);
    transform: skew(3deg) rotate(3deg);
}

.signature-pad--body {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border: 1px solid #f4f4f4;
}

.signature-pad--body
canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: 700px;
    max-height: 260px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;
}

.signature-pad--footer {
    color: #000000;
    text-align: center;
    font-size: 1.2em;
    margin-top: 8px;
}

.signature-pad--actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 8px;
}

#github img {
    border: 0;
}

@media (max-width: 940px) {
    #github img {
        width: 90px;
        height: 90px;
    }
}

/* -------------------------------
   INITIALS / SIGNATURE PAD STYLING
---------------------------------- */

/* General box model consistency */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Container for initials pad */
.signature-pad_int {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    max-width: 240px;
    max-height: 220px;
    margin: auto;
    padding: 10px;

    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fff;
    box-shadow:
            0 1px 4px rgba(0, 0, 0, 0.25),
            inset 0 0 8px rgba(0, 0, 0, 0.05);
}

/* Subtle drop-shadow effect (optional) */
.signature-pad_int::before,
.signature-pad_int::after {
    position: absolute;
    z-index: -1;
    content: "";
    width: 40%;
    height: 10px;
    bottom: 10px;
    background: transparent;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

.signature-pad_int::before {
    left: 10px;
    transform: skew(-3deg) rotate(-3deg);
}

.signature-pad_int::after {
    right: 10px;
    transform: skew(3deg) rotate(3deg);
}

/* Drawing area */
.signature-pad_int--body {
    position: relative;
    flex: 1;
    width: 100%;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
    min-height: 120px;
}

.signature-pad_int--body canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}

/* Footer with label + clear button */
.signature-pad_int--footer {
    text-align: center;
    margin-top: 10px;
}

/* Make the INITIAL / SIGN ABOVE text larger and elegant */
.signature-pad--footer .description,
.signature-pad_int--footer .description {
    font-size: 1.2rem;
    font-family: "Garamond", serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Clear buttons — balanced font + tighter padding */
.button.clear,
.btn-clear {
    background: #f5f5f5;
    border: 1px solid #888;
    border-radius: 6px;
    padding: 6px 12px;              /* tighter vertical padding */
    font-size: 1rem;                /* slightly larger, clean readable text */
    font-family: "Garamond", serif; /* matches your theme */
    font-weight: 600;
    color: #222;
    cursor: pointer;
    min-width: 100px;
    touch-action: manipulation;
    transition: all 0.2s ease-in-out;
}

.button.clear:hover,
.btn-clear:hover {
    background: #e0e0e0;
    border-color: #666;
}

/* Spacing between multiple pads (signature + initials) */
.signature-pad,
.signature-pad_int {
    margin-bottom: 10px;
}

/* Responsive scaling for tablets and larger displays */
@media (min-width: 768px) {
    /* Give the initials pad more room on larger screens */
    .signature-pad_int {
        max-width: 300px;      /* slightly smaller than 320 for balance */
        max-height: 230px;
        padding: 10px;
    }

    .signature-pad_int--body {
        min-height: 140px;
    }

    /* Make Clear buttons *slightly* larger, but not huge */
    .button.clear,
    .btn-clear {
        padding: 0px 0px;      /* comfortable for touch, not oversized */
        font-size: 16px;     /* subtle increase */
    }

    /* Scale up the "INITIAL" and "Sign above" text a bit */
    .signature-pad--footer .description,
    .signature-pad_int--footer .description {
        font-size: 1.2rem;      /* not too large; keeps proportions right */
        margin-bottom: 10px;
    }
    /* Disabled signature pad state */
    .signature-pad--disabled .signature-pad--body canvas {
        pointer-events: none;   /* no drawing */
        opacity: 0.4;           /* visually disabled */
    }

    /* Optionally dim the footer text too */
    .signature-pad--disabled .signature-pad--footer .description {
        opacity: 0.6;
    }

    .signature-pad {
        max-width: 700px;      /* slightly smaller than 320 for balance */
        max-height: 240px;
        padding: 10px;
        background-color: #f5f8fa;
    }

    .signature-pad--body {
        position: relative;
        min-height: 160px;
        max-height: 160px;
        background-color: #ffffff;
    }

    /* Transparent blocker that sits on top of the canvas when disabled */
    .signature-pad-blocker {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
        background: transparent;  /* fully see-through */
    }
    /* Make the checkbox bigger */
    .ack-checkbox {
        width: 26px;
        height: 26px;
        cursor: pointer;
    }

    /* Optional: slightly thicker border on some browsers */
    .ack-checkbox {
        accent-color: #333; /* modern browsers; sets the check color */
    }
}



/* end for signature pad */

/*
@media (min-width: 500px) and (max-width: 932px) and (orientation:landscape) {
    .col-sm-1 {
        width:50%;
        margin-bottom: 10px;
    // some properties
    }
    .col-sm-2 {
        width:50%;
        margin-bottom: 10px;
    // some properties
    }
    .col-sm-3 {
        width:75%;
        margin-bottom: 10px;
    // some properties
    }

    .col-sm-4 {
        margin-bottom: 10px;
    // some properties
    }
}
*/
/*
@media (min-width: 932px) and (orientation:landscape) {
    .col-sm-1 {
       padding:0px 5px 0px 0px;
    // some properties
    }
    .col-sm-2 {
        padding:0px 5px 0px 0px;
    // some properties
    }
    .col-sm-3 {
        padding:0px 5px 0px 0px;
    // some properties
    }

    .col-sm-4 {
        padding:0px 5px 0px 0px;
    // some properties
    }
    .col-sm-12 {
        padding:0px 5px 0px 0px;
    // some properties
    }
}*/