﻿html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
    overflow-y: auto;
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    position: relative;
    margin: 0;
    padding: 0;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Theme definition*/
:root {
    --theme: #036601; 
    --theme-600: #025304;
    --header-height: 56px;
    --sidebar-width: 84px; 
    --content-gap: 12px;
}

/* Main Layout Styles */
.app-wrap {
    flex: 1 0 auto;
    display: flex;
    flex-direction: row;
    min-height: 0;
    background: #f5f7fa;
}

.app-header {
    height: var(--header-height);    
    border-bottom: 4px solid #e6eef0;
}

.app-sidebar {
    width: var(--sidebar-width);
    background: #0a3f0b;
    color: #fff;
    border-right: 1px solid #e6eef0;
}

.sidebar-link {
    width: 100%;
    color: #d7ffe0;
    text-align: center;
    padding: 12px 6px;
    border-radius: 6px;
    margin: 4px 6px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar-label {
    display: block;
    font-size: 0.75rem;
    margin-top: 4px;
}

.app-main {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
}

.breadcrumb {
    --bs-breadcrumb-margin-bottom: 0.5rem !important;
    --bs-breadcrumb-divider: '>';
}

.breadcrumb-item a {
    color: var(--bs-secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #000 !important; /* black */
    text-decoration: underline; /* optional for visual feedback */
}

.sub-breadcrumb {
    --bs-breadcrumb-divider: ' ';
}

/* Background styles*/
.bg-theme {
    background-color: var(--theme) !important;
}

/* Text Styles */
.text-theme {
    color: var(--theme) !important;
}

.badge.text-theme {
    border: 1px solid var(--theme);
}

/* Button Styles */
.bootbox-close-button{
    display:none !important;
}
.btn-theme {
    background-color: var(--theme);
    border-color: var(--theme);
    color: #fff;
    min-width: 62px;
}

.btn-theme:hover {
    background-color: var(--theme-600);
    border-color: var(--theme-600);
    color: #fff;
}

.btn-outline-theme {
    color: var(--theme);
    border-color: var(--theme);
}

.btn-outline-theme:hover {
    color: #fff;
    background-color: var(--theme);
    border-color: var(--theme);
}

.btn-icon-theme {
    background: none;
    border: none;
    padding: 0;
    margin: 3px;
    color: var(--bs-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-icon-theme:hover {
    color: #000; /* black on hover */
}

.btn-icon-danger {
    background: none;
    border: none;
    padding: 0;
    margin: 3px;
    color: #dc3545; /* red for delete, or customize */
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-icon-danger:hover {
    color: #000; /* black on hover */
}

.bootbox-body {
    font-size: 16px;
    padding: 0 15px;
}

.bootbox-accept {
    width: 62px !important;
}

.bootbox-no-borders .modal-header,
.bootbox-no-borders .modal-footer {
    border: 0 !important;
}

.btn-theme-continue,
.btn-theme-continue:hover {
    background-color: var(--theme);
    border-color: var(--theme);
    color: #fff;
    width: 79px !important;
}

@keyframes slideFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.bootbox.slide-top .modal-dialog {
    animation: slideFromTop 0.05s ease-out;
}

/* Main DataTables Styles */
/* Remove zebra striping and row hover */
.dataTable tbody tr,
.dataTable tbody tr.odd,
.dataTable tbody tr.even,
.dataTable tbody tr:hover {
    background-color: transparent !important;
    border: none !important;
}

/* Remove sorting_1 background and hover effect */
.dataTable td.sorting_1 {
    background-color: transparent !important;
}

.dataTable td.sorting_1:hover {
    background-color: transparent !important;
    color: inherit !important; /* keep text visible */
}

/* Header styling */
.dataTable thead {
    background-color: #f1f1f1 !important;
    color: #000 !important;
}

.dataTable thead th {
    border-bottom: 1px solid #dee2e6 !important;
}

/* Footer styling */
.dataTable tfoot {
    background-color: #f1f1f1 !important;
    color: #000 !important;
}

.dataTable tfoot th {
    border-top: 1px solid #dee2e6 !important;
}

/* Remove all other cell borders */
.dataTable td,
.dataTable th {
    border: none !important;
}

/* Optional: auto width */
.dataTable.table-auto-width {
    table-layout: auto !important;
    width: 100% !important;
}


.dataTable .dragable-row i,
.dataTable .expandable-row span {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dataTable .dragable-row i,
.dataTable .expandable-row span {
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Standard Modal Styles */
.modal-standard .floating-label {
    position: relative;
    margin-bottom: 1rem;
}

.modal-standard .floating-label label {
    position: absolute;
    top: -0.55rem;
    left: 0.75rem;
    background-color: #fff;
    padding: 0 0.3rem;
    font-size: 0.96rem;
    color: #6c757d;
    z-index: 1;
}

.modal-standard .floating-label input,
.modal-standard .floating-label textarea,
.modal-standard .floating-label select {
    padding-top: 1.15rem;
    padding-bottom: 0.4rem;
}

.modal-standard .floating-label textarea {
    min-height: calc(1.8em * 3 + 1rem);
    resize: vertical;
}

.modal-standard .btn-close{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23002200'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    background-color: transparent;
    border: none;
    width: 2rem;
    position: absolute;
    top: 0;
    right: 0;
    margin: 1rem;
    cursor: pointer;
}

.modal-standard .modal-footer {
    border-top:none;
}

.modal-standard .multi-select-options {
    height: 300px !important;
    overflow-y: auto;
}

.modal-standard input[type="file"] {
    padding-top: 5px !important;
}

.textValidation {
    color: RGBA(179, 0, 0, 1);
    font-size: 0.8em;
}


/* Image Cropper Styles */
.imgFitCover {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

.imgContainer {
    width: 357px;
    height: 175px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.selectImgBtn {
    cursor: pointer;
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
    padding: 6px 15px !important;
    border-radius: 0.25rem;
    border-left-style: none;
    border-top-style: none;
    border-bottom-style: none;
    white-space: nowrap;
    margin-top: 7.90px;
    left: 0 !important;
}

.input-group .selectImgInputMainPage,
.input-group .selectImgInputLogo {
    padding-top: 6px !important;
    border-bottom-left-radius: 3.5px !important;
    margin-left: 88px !important;
}

#cropModal .modal-content {
    height: 650px;
}

.cropper-wrapper {
  width: 770px;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.cropper-wrapper img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cropper-crop-box .cropper-line.line-n,
.cropper-crop-box .cropper-line.line-s {
    background-color: #0066cc;
    height: 8px !important;
}

.cropper-crop-box .cropper-line.line-e,
.cropper-crop-box .cropper-line.line-w {
    background-color: #0066cc;
    width: 8px !important;
}

.cropper-crop-box .cropper-point {
    width: 13px !important;
    height: 13px !important;
    background-color: #0066cc
}

.cropper-line, .cropper-point{
    opacity: .5 !important;
}
/* Validation Styles */
.validation-summary-errors ul {
    list-style-type: none;
    padding-left: 0 !important;
}

.fs-12{
    font-size: 12px;
}

.siteGroupTemplateLink {
    position: absolute;
    right: 60px;
}

/* User Page Styles*/
.modal-standard .user-clients-districts .multi-select-checkbox {
    height: 34.5vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-standard .user-clients-districts .multi-select-checkbox label {
    top: auto;
    left: auto;
}

.checkAllDistricts-container {
    z-index: 1;
    top: 5px;
    right: 10px;
    width: 90px
}

#filterUserClientContainer {
    max-width: 250px;
    position: absolute;
    right: 55px;
}