﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
    background-position: initial;
    background-repeat: no-repeat;
    background-size: cover;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  /* Set the fixed height of the footer here */
  height: 60px;
  line-height: 60px; /* Vertically center the text there */
}
.control-label {
    font-weight: bold;
}
.button-link {
    background: none !important;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    color: black;
    font-weight: bold;
}

/* Top navbar */
.ops-navbar .ops-navbar-logo {
    width: auto;
    height: 50px;
    max-height: 50px;
}

.ops-navbar .navbar-nav .nav-link,
.ops-navbar .ops-login-menu .btn.btn-link.nav-link,
.ops-navbar .ops-nav-home {
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-decoration: none;
}

.ops-navbar .ops-login-menu .btn.btn-link.nav-link:hover {
    text-decoration: underline;
}

/* Mobile: hamburger + stacked menu */
@media (max-width: 575.98px) {
    .ops-navbar .ops-navbar-inner {
        flex-wrap: wrap;
        align-items: center;
    }

    .ops-navbar .navbar-brand {
        max-width: calc(100% - 3.5rem);
    }

    .ops-navbar .ops-navbar-logo {
        height: 42px;
        max-height: 42px;
    }

    .ops-navbar .navbar-toggler {
        margin-left: auto;
        padding: 0.35rem 0.55rem;
    }

    .ops-navbar .navbar-collapse.ops-navbar-menu {
        flex-basis: 100%;
        width: 100%;
        max-height: 70vh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 0.25rem;
        padding-top: 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .ops-navbar .ops-nav-home {
        display: block;
        padding: 0.6rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .ops-navbar .ops-navbar-navs {
        display: block;
        width: 100%;
    }

    .ops-navbar .navbar-nav {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100%;
        align-items: stretch !important;
    }

    .ops-navbar .navbar-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .ops-navbar .navbar-nav .nav-link,
    .ops-navbar .ops-login-menu .btn.btn-link.nav-link {
        display: block;
        width: 100%;
        text-align: left;
        white-space: normal !important;
        padding: 0.6rem 1rem !important;
    }

    .ops-navbar .ops-login-menu {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .ops-navbar .ops-login-menu .form-inline {
        display: block;
        width: 100%;
    }
}

/* Desktop: single horizontal row with scroll if many items */
@media (min-width: 576px) {
    .ops-navbar .ops-navbar-inner {
        flex-wrap: nowrap !important;
        align-items: center;
    }

    .ops-navbar .navbar-collapse.ops-navbar-menu {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        flex-wrap: nowrap;
        align-items: center;
        min-width: 0;
        overflow: visible;
    }

    .ops-navbar .ops-nav-home {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.4rem 0.5rem !important;
    }

    .ops-navbar .ops-navbar-navs {
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: nowrap;
        align-items: center;
        margin-left: auto;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .ops-navbar .navbar-nav {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
    }

    .ops-navbar .navbar-nav .nav-item {
        flex-shrink: 0;
    }

    .ops-navbar .navbar-nav .nav-link,
    .ops-navbar .ops-login-menu .btn.btn-link.nav-link {
        white-space: nowrap !important;
        padding: 0.4rem 0.45rem !important;
        font-size: 0.8rem !important;
    }
}

.shift-left {
    margin-left: -15px !important;
    width: 90% !important;
}

.messageBoard {
    height: 100px;
    width: 100%;
    background-color: #eeeeee;
    overflow-y: auto;
    overflow-x: hidden;
    float: left;
    display: inline;
    position: relative;
    align-self: center;
    margin: 3px 0px 10px 3px;
}

.border-all-primary {
    border: 0.25rem solid #d2b48c !important;
}

/*billing ui*/

.checkout-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    overflow: hidden;
}

.checkout-header {
    background: #0d6efd;
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.checkout-body {
    padding: 1.5rem;
}

    .checkout-body p {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

.checkout-summary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.address-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.address-block {
    flex: 1 1 48%;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    min-width: 280px;
    position: relative;
}

    .address-block h6 {
        font-weight: 600;
        color: #0d6efd;
        margin-bottom: 0.5rem;
    }

    .address-block p {
        margin-bottom: 0.3rem;
    }

.address-icon {
    font-size: 1.3rem;
    color: #198754;
    position: absolute;
    top: -12px;
    right: 15px;
    background: #f8f9fa;
    padding: 0 6px;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
}

.payment-options {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

    .payment-options h6 {
        font-weight: 600;
        color: #0d6efd;
        margin-bottom: 0.75rem;
    }

    .payment-options label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1rem;
        cursor: pointer;
        margin-bottom: 0.5rem;
    }

    .payment-options input[type="radio"] {
        accent-color: #0d6efd;
        transform: scale(1.2);
    }

.total-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
    text-align: right;
    margin-top: 1rem;
}

.checkout-footer {
    padding: 1.5rem;
    text-align: center;
}

    .checkout-footer .btn {
        font-size: 1.1rem;
        padding: 0.7rem 2rem;
        border-radius: 8px;
    }

.btn-back {
    background: #6c757d;
    color: white;
    border: none;
}

    .btn-back:hover {
        background: #5a6268;
    }

.btn-pay {
    background: #198754;
    color: white;
    border: none;
}

    .btn-pay:hover {
        background: #157347;
    }

.payment-icons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.payment-icon {
    width: 50px;
    height: 30px;
    background: #e9ecef;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: #495057;
}

@media (max-width: 768px) {
    .checkout-card {
        margin: 1rem;
    }

    .address-section {
        flex-direction: column;
    }

    .total-amount {
        text-align: center;
    }
}
.custom-blue {
    background-color: #1e90ff;
    color: white;
}

.custom-blue:hover {
    background-color: #187bcd;
}
.custom-blue-text {
    color: #187bcd; /* You can change this to any blue */
}
.anchor-like-btn {
    background: none;
    border: none;
    color: #007bff;
    padding: 0;
}

    .anchor-like-btn:hover {
        text-decoration: underline;
    }

.service-type-group {
    display: flex;
    gap: 10px;
}

    .service-type-group label {
        min-width: 120px;
        text-align: center;
        padding: 6px 12px;
        border: 1px solid #ccc;
        cursor: pointer;
        white-space: nowrap;
    }

    .service-type-group input[type="radio"] {
        display: none;
    }

        .service-type-group input[type="radio"]:checked + label {
            background-color: #0d1fd1;
            color: #fff;
            border-color: #0d1fd1;
        }

/* ================================
   Responsive Schedule Tables
   (Guard / Patrol)
================================ */

/* Small devices (mobile) */
@media (max-width: 576px) {

    .schedule-table thead {
        display: none;
    }

    .schedule-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        background: #fff;
        padding: 0.5rem;
    }

    .schedule-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.4rem 0.6rem;
        border: none;
        border-bottom: 1px solid #e9ecef;
        font-size: 0.95rem;
    }

        .schedule-table tbody td:last-child {
            border-bottom: none;
        }

        .schedule-table tbody td::before {
            content: attr(data-label);
            font-weight: bold;
            color: #495057;
        }
}

/* Slightly tighten table spacing everywhere */
.schedule-table {
    margin-bottom: 1.5rem;
    margin: auto; /* center */
}

    .schedule-table th,
    .schedule-table td {
        vertical-align: middle;
        white-space: nowrap;
    }
.security-tab.active {
    color: #ffff !important;
    background-color: #0D1FD1 !important;
    border-color: #dee2e6 #dee2e6 #fff !important;
}
.btn btn-sm btn-primary {
    background-color: #0D1FD1 !important;
}
#securityTabs .nav-item {
    margin-right: 10px;
}
/* FORCE TABLE HEADERS TO SHOW ON MOBILE */
/* container */
.schedule-header,
.schedule-row {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    background: #fff;
}

/* header */
.schedule-header {
    font-weight: 600;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* columns */
/* ===== Base column ===== */
.sch-col {
    padding: 5px 10px; /* a bit more horizontal padding for label feel */
    white-space: nowrap;
    border-right: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 4px; /* rounded corners */
    box-sizing: border-box; /* keep sizing consistent */
    min-width: 70px; /* optional: consistent width */
    text-align: center; /* center text */
    font-size: 12px;
}


    /* normalize input / select / button height */
    .sch-col .form-control,
    .sch-col select,
    .sch-col button {
        height: 38px;
        font-size: 12px;
        box-sizing: border-box;

    }

    /* ===== Single source of truth for widths ===== */
    .sch-col.sl {
        flex: 0 0 70px;
        width: 70px;
        min-width: 70px;
        font-weight: 500;
        font-size: 14px;
    }

    .sch-col.patrol-count {
        flex: 0 0 90px;
        width: 90px;
        min-width: 90px;
        font-weight: 500;
        font-size: 14px;
    }

    .sch-col.hrs {
        flex: 0 0 70px;
        width: 70px;
        min-width: 70px;
        font-weight: 500;
        font-size: 14px;
    }

    .sch-col.start {
        flex: 0 0 110px;
        width: 110px;
        min-width: 110px;
    }

    .sch-col.shift {
        flex: 0 0 130px;
        width: 130px;
        min-width: 130px;
    }

    .sch-col.loc {
        flex: 0 0 140px;
        width: 140px;
        min-width: 140px;
    }

    .sch-col.users {
        flex: 0 0 160px;
        width: 160px;
        min-width: 160px;
    }

    .sch-col.action {
        flex: 0 0 90px;
        width: 90px;
        min-width: 90px;
    }

/* ===== Patrol-specific visuals ===== */
.sch-col.patrol-count input {
    text-align: center;
    font-weight: 600;
    background-color: #f8f9fa;
}

.sch-col.start input {
    text-align: left;
}

.schedule-row .sch-col .form-control,
.schedule-row .sch-col select,
.schedule-row .sch-col .btn {
    width: 100%;
}

.add-action-shift {
    margin-right: 70px; /* move left */
}
.add-action-shiftPat {
    margin-right: 70px;
}

/* horizontal scroll wrapper */
.schedule-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-row .sch-col {
    font-weight: 400;
}

/* remove fake last column */
.sch-col:last-child {
    border-right: none;
}

/* Mobile / small tablet: compact labeled cards (Guard / Patrol) */
@media (max-width: 991.98px) {
    .add-action-shift,
    .add-action-shiftPat {
        margin-right: 0;
    }

    #guardTableSection > .row.align-items-center:first-child,
    #patrolTableSection > .row.align-items-center:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        margin-bottom: 0.5rem;
    }

    #guardTableSection > .row.align-items-center:first-child .col-md-4,
    #patrolTableSection > .row.align-items-center:first-child .col-md-4 {
        display: none;
    }

    #guardTableSection > .row.align-items-center:first-child .col-md-2,
    #patrolTableSection > .row.align-items-center:first-child .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    #guardTableSection > .row.align-items-center:first-child .d-flex.justify-content-end,
    #patrolTableSection > .row.align-items-center:first-child .d-flex.justify-content-end {
        justify-content: flex-start !important;
    }

    #guardTableSection .col-md-8,
    #patrolTableSection .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    #guardTableSection .btn-sm,
    #patrolTableSection .btn-sm {
        font-size: 0.8125rem;
        padding: 0.2rem 0.55rem;
        line-height: 1.25;
    }

    #guardTableSection img,
    #patrolTableSection img {
        width: 28px !important;
        height: 28px !important;
    }

    .schedule-scroll {
        overflow-x: visible;
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .schedule-scroll .schedule-header {
        display: none;
    }

    .schedule-scroll .schedule-header,
    .schedule-scroll .schedule-row {
        min-width: 0;
        width: 100%;
    }

    .schedule-body .schedule-row {
        display: block;
        border: 1px solid #ced4da;
        border-radius: 6px;
        margin: 0 0 0.65rem 0;
        padding: 0;
        background: #fff;
        box-shadow: none;
    }

    .schedule-row .sch-col {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 0.15rem;
        align-items: stretch;
        justify-content: stretch;
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        border-radius: 0 !important;
        padding: 0.35rem 0.5rem;
        text-align: left;
        white-space: normal;
        font-weight: 400;
        font-size: 0.8125rem;
    }

    .schedule-row .sch-col:last-child {
        border-bottom: none;
    }

    .schedule-row .sch-col::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: 0.6875rem;
        line-height: 1.2;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        margin: 0;
        padding: 0;
        max-width: none;
        flex: none;
    }

    .schedule-row .sch-col > .form-control,
    .schedule-row .sch-col > select,
    .schedule-row .sch-col > .btn {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        height: 30px !important;
        min-height: 30px !important;
        font-size: 0.8125rem !important;
        padding: 0.2rem 0.45rem !important;
        line-height: 1.25 !important;
        border-radius: 4px;
    }

    .schedule-row .sch-col.action {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto;
        align-items: center;
        column-gap: 0.5rem;
    }

    .schedule-row .sch-col.action::before {
        grid-column: 1;
        align-self: center;
    }

    .schedule-row .sch-col.action .delete-btn {
        grid-column: 2;
        width: auto !important;
        min-width: 4.5rem;
        height: 28px !important;
        min-height: 28px !important;
        font-size: 0.75rem !important;
        padding: 0.15rem 0.5rem !important;
    }

    .schedule-row .sch-col.patrol-count input {
        font-weight: 500;
    }
}

/* Desktop only: horizontal table layout */
@media (min-width: 992px) {
    .schedule-scroll .schedule-header,
    .schedule-scroll .schedule-row {
        display: flex;
        flex-wrap: nowrap;
        min-width: 780px;
    }

    .schedule-body .schedule-row {
        display: flex;
        flex-wrap: nowrap;
    }
}
.status-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
}
/* NEW */
.status-new {
    background: #3b82f6;
}

/* SUBMITTED */
.status-submitted {
    background: #f59e0b;
}

/* IN PROCESS (Patrol Active) */
.status-patrol {
    background: #06b6d4;
}

/* COMPLETED */
.status-completed {
    background: #10b981;
}
.status-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: white;
}



