﻿/* 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;
}

a {
  color: #0077cc;
}

.form-control:focus {
    border-color: #0077cc;
    box-shadow: 0 0 0 0.2rem #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.btn-link.nav-link:focus {
  outline: black auto 1px;
}

html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Task Interface Improvements */
.task-interface .card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 0.5rem;
}

.task-interface .card-header {
  border-radius: 0.5rem 0.5rem 0 0 !important;
  font-weight: 600;
}

.task-interface .form-select {
  border-radius: 0.375rem;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.task-interface .form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.task-interface .btn {
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}

.task-interface .table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

.task-interface .table-success {
  background-color: rgba(25, 135, 84, 0.1);
}

.task-interface .form-check-input:checked {
  background-color: #198754;
  border-color: #198754;
}

.task-interface .btn-outline-danger:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

.task-interface .empty-state {
  color: #6c757d;
}

.task-interface .empty-state i {
  opacity: 0.5;
}

.container {
  max-width: 960px;
}

.pricing-header {
  max-width: 700px;
}

.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;
}

html {
  position: relative;
  min-height: 100%;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  overflow: scroll;
  white-space: nowrap;
  line-height: 60px;
}*/


/* NNNNNNNNN carried over... */

/* Body padding moved to later in file to override conflicting rules */


/*body {
    background: url('/images/mbg-mower-background.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
    background-color: #f0f0f0 !important;*/ /* Fallback */
    /*min-height: 100vh !important;
}*/


/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 80px; /* Add top padding to account for fixed navbar */
}

/* Global fix for header clash - apply to all container elements */
.container {
    padding-top: 20px !important;
    padding-left: 20px;
    padding-right: 20px;
}

/* Specific fix for pages that need more top spacing */
.container.admin-page {
    padding-top: 100px !important;
}

/* Larger container for data-heavy pages */
.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 20px !important;
    padding-left: 20px;
    padding-right: 20px;
}

.container-lg.admin-page {
    padding-top: 100px !important;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

input.weekpicker, input.date1picker, input.daterpicker {
    width: 100px;
}

.shadow {
    width: 100%;
    height: 20px;
    background-repeat: repeat-x;
    background-position: top center;
    background-image: url('../images/nav_shadow.png');
    background-color: none;
}

a {
    color: #3155a6;
}

.navbar {
    padding: 0px 10px;
}

.fixed-top {
    background-color: white;
}

/* Schedule toolbar positioning */
.schedule-toolbar-container {
    position: fixed;
    top: 60px; /* Height of the navbar */
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin: 0;
    padding: 0;
}

#toolbarSection {
    position: relative;
    top: 0;
    z-index: 1000;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
}

.schedule-content-container {
    margin-top: 100px; /* Space for navbar + toolbar */
}

#ScheduleTools, #ScheduleClipboardTools, #ScheduleTemplateTools, #ScheduleEditTools {
    width: 100%;
    /*width: 1236px;*/
    border: 1px #3155a6 solid;
    margin-bottom: 5px;
    padding: 2px;
    border-radius: 6px;
    padding-left: 5px;
}

.schedule-box-header, .schedule-box-footer {
    /*width: 155px;*/
    width: 100%;
    min-height: 24px;
    min-width: 155px;
    max-width: 500px;
    padding: 2px;
    border-radius: 5px;
    background-color: #eee;
    overflow: auto;
}

.schedule-box-footer {
    padding-right: 5px;
}

.schedule-box, .empty-schedule-box {
    min-height: 25px;
    /*width: 155px;*/
    width: 100%;
    padding: 1px;
    max-width: 500px;
    min-width: 155px;
    margin-bottom: 2px;
}

.schedule-box {
    border: 1px navy solid;
}

.template-preview-schedule-box {
    border-color: orangered;
    border-style: dashed;
}

.schedule-box-item-header, schedule-box-item-footer {
    float: left;
    /*width: 148px;*/
    width: 100%;
}

.previewfooter {
    background-color: orange;
}

.AuditStatusGood {
    background-color: lime;
}

.AuditStatusOK {
    background-color: yellow;
}

.AuditStatusBad {
    background-color: red;
    color: white;
}

.AuditStatusNone {
    background-color: silver;
}

.schedule-grid {
    width: 100%;
    /*min-width: 1236px;*/
}

.schedule-grid td {
    width: 12.5%;
}

.schedule-grid th, .schedule-grid td {
    border: 1px solid #dee2e6;
}

.schedule-box-item-header-customer, schedule-box-item-header-custsite {
    /*float: left;*/
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    /*width: 125px;*/
    min-width: 125px;
    width: 100%;
    padding: 0px;
    border-right: 5px;
    border: 0px;
    margin: 0px;
}

    .schedule-box-item-header-customer strong, .schedule-box-item-header-custsite strong,
    .schedule-box-item-header-customer, .schedule-box-item-header-custsite strong {
        font-size: small;
    }

.schedule-cell {
    font-weight: normal;
    font-size: small;
}


.empty-schedule-box {
    border: 1px #ccc solid;
    color: #ccc;
}

.schedule-team {
    /*width: 130px;
    max-width: 130px;*/
    min-width: 130px;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    padding: 0px 3px;
    border-right: 5px;
    border: 0px;
    margin: 0px;
    border: 1px solid #dee2e6;
}

.schedule-team-staff {
    float: left;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    /*width: 125px;
    max-width: 125px;*/
    min-width: 125px;
    font-size: .85em;
    padding: 0px;
    border-right: 5px;
    border: 0px;
    margin: 0px;
}

input.weekpicker, input.date1picker {
    width: 120px;
}

.day-sheet-item-notes {
    max-width: none;
    width: 100%;
}

.day-sheet-day-notes {
    max-width: none;
}

.teamdaynote {
    width: 300px;
}

.teamdaynotetext {
    color: red;
    font-weight: bold;
    font-size: small;
}

#welcomepanel {
    background-image: url('../images/rotunda.jpg');
    background-size: cover;
}

.home-btn {
    width: 100%;
    margin-bottom: 10px;
}

.home-menu-col {
    text-align: center;
}

.btn-outline-primary:hover, .btn-outline-secondary:hover {
    color: #fff;
    background-color: #3155a6;
    border-color: #3155a6;
}

.btn-outline-primary, .btn-outline-secondary {
    color: #3155a6;
    border-color: #3155a6;
}

.toggle-link:hover {
    font-weight: bold
}

.schedule-item-dialog {
    min-width: 1000px;
    max-width: 1000px;
}

.important-note {
    color: red;
}

.item-selected {
    border-color: red;
}

.schedule-done {
    background-color: greenyellow;
}

.schedule-notdone {
    background-color: red;
}

.daysheet-custsite {
    font-weight: bold;
    font-size: medium;
}

.scheduleprint-custsite {
    font-size: medium;
}

ul.pagination li {
    padding: 3px;
}

.schedule-site-note {
    display: block;
    color: red;
}

.schedule-customer-note {
    display: block;
    
}

.customer-note-highlighted {
    background-color: yellow; /* Only applies yellow to text */
}

.schedule-customer-note, .schedule-item-box-jobdetails .schedule-site-note {
    font-size: small;
}

.attachment-image {
    max-width: 300px;
}


#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}




/* quickGrid Styling */
/*::deep th.country-name {
    width: 14rem;
}*/

/* Subtle stripe effect */
::deep tr:nth-child(even) {
    background: rgba(255,255,255,0.4);
}

/* Don't collapse rows even if they are empty */
::deep tbody tr {
    height: 1.8rem;
}


/*.dialog-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    animation: dialog-container-entry 0.2s;
}

@keyframes dialog-container-entry {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.dialog {
    background-color: white;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    align-self: center;
    margin: auto;
    width: 700px;
    max-height: calc(100% - 3rem);
    animation: dialog-entry 0.4s;
    animation-timing-function: cubic-bezier(0.075, 0.820, 0.165, 1.000);
}

@keyframes dialog-entry {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateX(0px) scale(1.0);
    }
}

.dialog-title {
    background-color: #444;
    color: #fff2cc;
    padding: 1.3rem 2rem;
}

.dialog-title h2 {
    color: white;
    font-size: 1.4rem;
    margin: 0;
    font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    line-height: 1.3rem;
}

.dialog-body {
    flex-grow: 1;
    padding: 0.5rem 3rem 1rem 0;
}

.dialog-buttons {
    height: 4rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background-color: #eee;
    padding: 0 1rem;
}

.dialog-body > div {
    display: flex;
    margin-top: 1rem;
    align-items: center;
}

.dialog-body label {
    text-align: right;
    width: 200px;
    margin: 0 1.5rem;
}

.dialog-body input, .dialog-body select {
    flex-grow: 1;
    width: unset;
}

.dialog-body .size-label {
    min-width: 110px;
    text-align: right;
}

.dialog .toppings {
    text-align: center;
    display: block;
    padding-left: 4rem;
}

.dialog .topping {
    display: inline-block;
    background-color: #a04343;
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 2rem;
    margin: 0.4rem 0.3rem;
    font-weight: 700;
}

.dialog .topping-price {
    font-weight: 100;
    font-size: 0.8rem;
}

.dialog .topping-price::before {
    content: '£';
}
*/

.modal-backdrop {
    z-index: 1040 !important;
}

.modal-dialog {
    margin: 2px auto;
    z-index: 1100 !important;
}


.bodyprint {
    background-color: red !important;
    padding-top: 0px;
}

@media print {
    @page {
        size: A4 portrait;
        vertical-align: top;
    }

    .attachment-image-print {
        width: 100%;
        /*max-width: 300px;*//* !important;*/

        /*border: 1px red solid;*/
    }

}


/*override bootstrap blazor: - REMOVED: Legacy CSS override no longer needed in modern Bootstrap Blazor */
/*body, .form-control, .dropdown-menu, .form-select, .input-group-text {    
    font-size: 1rem;
}

.btn {
    --bs-btn-font-size: 1rem;
}*/

/* Font size consistency - ensure proper text sizing across the application */
body, .form-control, .dropdown-menu, .form-select, .input-group-text, .btn, .nav-link, .navbar-brand, .table, .card, .modal, .alert {
    font-size: 1rem;
}

/* Ensure buttons maintain proper sizing */
.btn {
    --bs-btn-font-size: 1rem;
}

/* Schedule grid specific font sizing */
.schedule-grid, .schedule-item, .schedule-cell {
    font-size: 1rem;
}

/* Navigation and header text sizing */
.navbar-nav .nav-link, .navbar-brand {
    font-size: 1rem;
}

/* Additional text elements that might need larger sizing */
.schedule-team, .schedule-route, .schedule-vehicle, .schedule-default, .schedule-people {
    font-size: 1rem;
}

/* Login page specific styling - scoped to avoid breaking other buttons */
.login-input {
    width: 100%;
}

.login-button {
    width: 100%;
}

/* Dashboard styles moved to Index.razor.css for better organization */

/* Professional SortableJS styles */
.sortable-item {
    transition: all 0.2s ease;
    cursor: move;
    position: relative;
}

.sortable-item:hover {
    background-color: #e9ecef !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* SortableJS specific classes */
.sortable-ghost {
    background-color: #f8f9fa !important;
    border: 2px dashed #6c757d !important;
    border-radius: 4px;
    opacity: 0.8;
    height: auto !important;
    min-height: 50px;
    margin: 2px 0;
    position: relative;
}

.sortable-ghost::before {
    content: "Drop here";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    pointer-events: none;
}

.sortable-chosen {
    background-color: #e3f2fd !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #2196f3 !important;
}

.sortable-drag {
    background-color: #e3f2fd !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #2196f3 !important;
    opacity: 0.9;
    transform: none !important;
    z-index: 1000;
}

.sortable-dragging {
    background-color: #e3f2fd !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #2196f3 !important;
    opacity: 0.9;
    z-index: 1000;
}

.sortable-fallback {
    background-color: #e3f2fd !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #2196f3 !important;
    opacity: 0.9;
    z-index: 1000;
}

/* Smooth list transitions */
.sortable-list {
    transition: all 0.2s ease;
}

.sortable-list .sortable-item {
    transition: all 0.2s ease;
}


/* Minimal button styling with clear hover effects */
.dashboard-btn {
    width: 100%;
    font-size: 0.8rem;
    min-height: 32px;
    transition: all 0.2s ease;
}

/* Dashboard button styling - matching actual HTML classes */
.dashboard-btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid;
    min-height: 40px;
    font-size: 0.9rem;
}

/* Primary buttons (Home section) */
.primary-btn {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.primary-btn:hover {
    background-color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.secondary-btn {
    background-color: white;
    border-color: #0d6efd;
    color: #0d6efd;
}

.secondary-btn:hover {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

/* Section Headers - Professional with Bootstrap icons */
.section-header {
    margin-bottom: 12px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-title i {
    font-size: 16px;
    color: #6b7280;
}

/* Subsection styling for Admin section */
.subsection {
    margin-bottom: 24px;
}

    .subsection:last-child {
        margin-bottom: 0;
    }

.subsection-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
