﻿

@media(min-width:1200px) {
    .container {
        width: 95%;
    }
}

.hideradios > .btn input[type="radio"], .hideradios > .btn-group > .btn input[type="radio"], .hideradios > .btn input[type="checkbox"], .hideradios > .btn-group > .btn input[type="checkbox"] {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

input[type=file] {
    height: auto;
}

.form-control.beside-checkbox {
    width: 95%;
    display: inline;
    margin-left: 1%;
}

/*
    Fix for wider time picker
    https://github.com/xdan/datetimepicker/issues/49*/
.xdsoft_datetimepicker .xdsoft_timepicker {
    /* changed from 58px */
    width: 88px;
    float: left;
    text-align: center;
    margin-left: 8px;
    margin-top: 0px;
}

    .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev,
    .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next {
        float: none;
        background-position: -40px -15px;
        height: 15px;
        width: 30px;
        display: block;
        /* changed from 14px */
        margin-left: 29px;
        margin-top: 7px;
    }


body {
    padding-bottom: 20px;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

.pageCount {
    text-align: center;
    padding-top: 5px;
}

.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

.btn-bracketed::before {
    display: inline-block;
    content: "[";
    padding-right: .5em;
}

.btn-bracketed::after {
    display: inline-block;
    content: "]";
    padding-left: .5em;
}

.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* Fix issue with checkboxes being too high horizontal forms. Need to repeat selector to increase specificity */
.checkboxfix.checkboxfix {
    margin-top: 11px;
}

.initial-option {
    font-weight: bold;
    font-style: italic;
}


/* TFP Button Style Overrides - Based on Calendar Page */
/* Base button styling */
.btn {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    height: 34px;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
    outline: none;
    vertical-align: middle;
    box-sizing: border-box;
}

.btn-primary,
.btn-default {
    background-color: #2C3E50;
    color: white;
    font-weight: 500;
}

.btn-primary:hover,
.btn-default:hover,
.btn-primary:focus,
.btn-default:focus {
    background-color: #1a252f;
    color: white;
    border-color: #1a252f;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-info {
    background-color: #4681f4;
    border-color: #4681f4;
}

.btn-info:hover,
.btn-info:focus {
    background-color: #5783db;
    border-color: #5783db;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

/* Button active states */
.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Disabled button styling */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* Input group button styling */
.input-group-btn .btn {
    height: 100%;
}



/* Custom Dropdown Component */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.custom-dropdown-button {
    background-color: #2C3E50;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    min-width: 120px;
    height: 34px;
}

.custom-dropdown-button:hover {
    background-color: #34495e;
}

.custom-dropdown-button:focus {
    background-color: #34495e;
    outline: none;
}

.custom-dropdown-button .caret {
    margin-left: 8px;
    font-size: 10px;
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2C3E50;
    min-width: 200px;
    border: 1px solid #34495e;
    border-radius: 6px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow: hidden;
}

.custom-dropdown.open .custom-dropdown-menu {
    display: block;
}

.custom-dropdown-menu .btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border: none;
    background: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    border-radius: 0;
    box-shadow: none;
    transition: background-color 0.3s ease;
}

.custom-dropdown-menu .btn:hover,
.custom-dropdown-menu .btn:focus {
    background-color: #34495e;
    color: white;
    transform: none;
}

.custom-dropdown-menu .btn + .btn {
    border-top: 1px solid #3d566e;
}

.custom-dropdown-menu .btn:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.custom-dropdown-menu .btn:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}


/* Page Header Component */
.page-header {
    background-color: #2C3E50;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header h1,
.page-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 22px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-header .header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-header .btn {
    background-color: #ffffff;
    color: #2C3E50;
    font-weight: 600;
}

.page-header .btn:hover {
    background-color: #f8f9fa;
    color: #1a252f;
}

.page-header .btn:focus {
    background-color: #f8f9fa;
    color: #1a252f;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}


/* Search Section Component */
.search-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

/* Calendar Search Container (for horizontal layouts) */
.calendar-search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 8px;
}

.calendar-search-container input[type="text"] {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    height: 34px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-search-container input[type="text"]:focus {
    border-color: #2C3E50;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.15);
}

/* Search Input Group (for grouped layouts like Company page) */
.search-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.search-input-group .form-control {
    flex: 1;
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    height: 34px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input-group .form-control:focus {
    border-color: #2C3E50;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.15);
}


.table-title {
    font-size: 20px;
}

/* Pagination styling for both DataTables and regular pagination */
div.dt-container div.dt-paging ul.pagination li.active .page-link,
.pagination .page-item.active .page-link {
    background-color: #495057;
    border-color: #495057;
    color: white;
}

div.dt-container div.dt-paging ul.pagination li .page-link,
.pagination .page-item .page-link {
    color: #495057;
}

div.dt-container div.dt-paging ul.pagination li .page-link:hover,
.pagination .page-item .page-link:hover {
    color: #343a40;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

div.dt-container div.dt-paging ul.pagination li.active .page-link:hover,
.pagination .page-item.active .page-link:hover {
    background-color: #343a40;
    border-color: #343a40;
    color: white;
}

/* Reusable DataTables-style Layout Components */
.datatable-controls {
    margin-top: 15px;
}

.datatable-info {
    padding-top: 6px;
    margin-bottom: 0;
    color: #555;
    font-size: 14px;
}

.datatable-pagination {
    margin: 0;
    display: inline-block;
}

.datatable-pagination-container {
    text-align: right;
}


.pagination-nav {
    text-align: center;
}

.index-title {
    margin-top: 20px;
    display: block;
}

    .index-title a {
        float: left;
        margin-top: 40px;
    }

    .index-title h1 {
        float: left;
    }

    .index-title p {
        margin-top: 40px;
        float: left;
        display: inline;
    }

.has-searchbar {
    float: right;
    margin-top: 20px;
}

    .has-searchbar input {
        max-width: 100%;
    }


.navbar > .container .navbar-brand,
.navbar > .container-fluid .navbar-brand {
    margin-left: inherit !important;
    padding: 0px !important;
}

.navbar {
    border: none !important;
}

.navbar-inverse .navbar-nav > li > a {
    color: #fff;
}

.navbar-nav {
    text-transform: uppercase;
    font-weight: 600;
}

.navbar-right {
    text-transform: inherit;
    font-weight: 400;
}

.fa {
    color: #f7941d;
    float: left;
    padding: 17px 0px 0px 0px;
}

.navbar-inverse .btn-link {
    color: #fff;
    padding: 6px;
}

.h1,
h1 {
    font-size: 2.25em;
    font-weight: 600;
}

.h2,
h2 {
    font-size: 2em;
    font-weight: 600;
}

.h3,
h3 {
    font-size: 1.8em;
}

.h4,
h4 {
    font-size: 1.6em;
}


.dl-horizontal {
    display: table;
    width: 100%;
}

.btn-group-sm > .btn,
.btn-sm {
    padding: 2px 10px;
    font-size: 1.2em;
}


.navbar-right {
    margin-right: inherit;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .table > thead > tr > th {
        font-size: .8em;
    }

    .dl-horizontal a {
        word-break: break-all;
        line-height: 1em;
        display: table;
        padding: 2px 0px;
    }
}

.dl-horizontal dd {
    margin-left: 2%;
    width: 60%;
    float: left;
}

.dl-horizontal dt {
    width: 30%;
}

dd,
dt {
    line-height: 1.1em;
    padding: 3px 0px;
}

.inventoryTable {
    overflow-y: scroll;
    height: 350px;
}


table .inventoryRow:hover td {
    background: cornsilk;
}

.editBox {
    display: none;
}

table .inventoryRow:hover .editBox {
    display: block;
}


/*Inspection Schedules*/
.inspectionSchedulesTable {
    overflow-y: scroll;
    height: 600px;
}


/* Overwrite BootStrap Breakpoint*/
body {
    padding-top: 70px;
}

@media (max-width: 1200px) {
    .navbar-header {
        float: none;
    }

    .navbar-left, .navbar-right {
        float: none !important;
    }

    .navbar-toggle {
        display: block;
        background: orange;
    }

        .navbar-toggle .icon-bar {
            background-color: black;
        }

    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }

    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-nav {
        float: none !important;
        margin-top: 7.5px;
    }

        .navbar-nav > li {
            float: none;
        }

            .navbar-nav > li > a {
                padding-top: 10px;
                padding-bottom: 10px;
            }

    .collapse.in {
        display: block !important;
    }
}


.pre {
    white-space: pre-line;
}

[data-href] {
    cursor: pointer;
}

/* ================================================
   MOBILE RESPONSIVE STYLES
   ================================================ */
@media (max-width: 768px) {
    /* Button responsive styling */
    .btn {
        margin-bottom: 5px;
    }
    
    /* Carousel responsive styling */
    .carousel-caption {
        display: none;
    }
    
    /* Custom dropdown responsive styling */
    .custom-dropdown {
        width: 100%;
    }
    
    .custom-dropdown-button {
        width: 100%;
        justify-content: space-between;
        padding: 8px 12px;
    }
    
    .custom-dropdown-menu {
        width: 100%;
        min-width: auto;
    }
    
    /* Page header responsive styling */
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .page-header .header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .page-header .btn {
        width: 100%;
        text-align: center;
    }
    
    .page-header h1,
    .page-header h2 {
        font-size: 20px;
    }
    
    /* Search responsive styling */
    .calendar-search-container {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .calendar-search-container input[type="text"] {
        width: 100%;
        margin: 0;
    }
    
    .calendar-search-container .btn {
        width: 100%;
        margin: 0;
    }
    
    /* DataTable pagination responsive styling */
    .datatable-pagination-container {
        text-align: center;
        margin-top: 10px;
    }
}