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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


.navbar-nav .nav-link {
    white-space: nowrap;
    padding-left: .5rem;
    padding-right: .5rem;
}


/* float plan specific */

/* vessel checklist */
.checked-label {
    text-decoration: line-through;
    color: gray;
}

/* =========================
   FLOAT PLAN CARD SYSTEM
   Compatible with Bootstrap Sandstone theme
   ========================= */
/* CARD */
.fp-card {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.5rem; /* Sandstone uses softer radius */
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    /*overflow: hidden; */
    overflow: visible;
    background-color: #fff;
}

/* HEADER */
.fp-header {
    background-color: var(--bs-primary);
    color: #fff;
    padding: .5rem .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

    /* optional softer Sandstone feel */
    .fp-header.sandstone {
        background-color: #3e3f3a; /* Sandstone-like dark neutral */
    }

.fp-header-title {
    font-size: .95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.fp-section-title {
    font-size: .8rem;
    font-weight: 600;
    color: #444;
    padding-top: .75rem; /* top space */
    padding-left: .75rem; /* left space */

    margin: 0; /* remove default bottom spacing */
}

.fp-header-subtitle {
    font-size: .75rem;
    opacity: .85;
    margin: 0;
}

/* BODY */
.fp-body {
    padding: .75rem;
    font-size: .875rem;
    color: #333;
}

/* INPUTS */
.fp-input {
    font-size: .875rem;
    padding: .35rem .6rem;
    border-radius: .375rem;
}

/* READ ONLY DISPLAY */
.fp-readonly {
    background: #f8f9f5; /* warmer Sandstone tone */
    border: 1px solid rgba(0,0,0,.1);
    border-radius: .375rem;
    padding: .35rem .5rem;
    font-size: .85rem;
    color: #444;
}

/* LABELS */
.fp-label {
    font-size: .8rem;
    font-weight: 600;
    color: #555; /* softer than Bootstrap gray */
    margin-bottom: .25rem;
    display: block;
}

.fp-value {
    font-weight: 500;
}

/* ALERTS */
.fp-alert {
    font-size: .85rem;
    padding: .5rem .75rem;
    margin-bottom: .75rem;
    border-radius: .375rem;
}

/* BUTTONS */
.fp-btn {
    font-size: .85rem; /* smaller text */
    padding: .3rem .6rem; /* tighter button */
    border-radius: .375rem;
}

/* SMALL FORM CONTROLS (Sandstone-friendly) */
.fp-form-control {
    font-size: .875rem;
    padding: .35rem .6rem;
    border-radius: .375rem;
}

/*
.trailer-disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(30%);
}

.trailer-enabled {
    opacity: 1;
    pointer-events: auto;
}
*/


.fp-link {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    transition: 0.15s ease;
}

.fp-link:hover {
    text-decoration: underline;
    color: #0a58ca;
}

.fp-progress {
    height: 25px;
    border-radius: 50px;
    background-color: #dee2e6;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.fp-progress-bar {
    /*background: linear-gradient(90deg, #4c5c75, #5d6f8a);*/
    background: var(--bs-info);
    transition: width 0.4s ease;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* optional: smoother text */
.fp-progress-wrapper small {
    font-weight: 500;
}

.fp-progress-wrapper {
    margin-bottom: 12px;
}



/* radio / selection pills */
.btn-outline-primary {
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #555;
    border: 1px solid #ced4da;
    background-color: #fff;
    transition: all 0.15s ease;
}

    /* hover */
    .btn-outline-primary:hover {
        background-color: #f1f3f5;
        border-color: #adb5bd;
        color: #333;
    }

/* selected */
.btn-check:checked + .btn-outline-primary {
    background: linear-gradient(90deg, #0d6efd, #4dabf7);
    border-color: #0d6efd;
    color: white;
    box-shadow: 0 1px 3px rgba(13, 110, 253, 0.18);
}


.checklist-item input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    color: gray;
}



.date-input-wrapper {
    position: relative;
}

    .date-input-wrapper input {
        padding-right: 45px;
    }

.calendar-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #6c757d;
    pointer-events: none;
}


/* vessel images */
.img-hover-wrapper {
    position: relative;
    display: inline-block;
}

.vessel-table {
    overflow: visible;
}


/* small image in table */
.img-thumb {
    width: 70px;
    height: 45px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.15s ease;
}

/* hidden large preview */
.img-hover-preview {
    position: absolute;
    display: none;
    top: -10px;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.img-hover-preview-right {
    left: 70px;
}

.img-hover-preview-left {
    right: 70px;
}
    
.img-hover-preview img {
        width: 500px;
        height: auto;
        border-radius: 4px;
 }

/* show on hover */
.img-hover-wrapper:hover .img-hover-preview {
    display: block;
}


@page {
    size: Letter;
    margin: 0.25in;
}

@media print {

    /* hide header and footer in print */
    header,
    footer,
    nav {
        display: none !important;
    }

    /* print only overwrite container renderbody() in _layout */
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    main {
        width: 100% !important;
        max-width: 100% !important;
    }


    .container-fluid {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    /*
    .col-lg-4 {
        width: 35% !important;
        flex: 0 0 35% !important;
    }

    .col-lg-8 {
        width: 65% !important;
        flex: 0 0 65% !important;
    }*/

    .col-lg-5 {
        width: 40% !important;
        flex: 0 0 40% !important;
        max-width: 40% !important;
    }

    .col-lg-7 {
        width: 60% !important;
        flex: 0 0 60% !important;
        max-width: 60% !important;
    }

    .card {
        margin-bottom: 6px !important;
    }

    .card-body {
        padding: .5rem !important;
    }

    .card-header {
        padding: .4rem .6rem !important;
    }

   
    .print-summary {
        display: block !important;
    }

    .row.text-center.mb-4 {
        display: none !important;
    }


    .col-md-5 {
        width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }

    .col-md-7 {
        width: 66.666667% !important;
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
    }

}
