@charset "utf-8";
/*Modifikationer av temat*/
body {margin-top: 0px;}
.ui-widget { font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; font-size: 0.8em; }
.twitter-typeahead, .typeahead, .tt-hint, .tt-input, .tt-menu { width: 100% !important; }
.nobr {white-space: nowrap;}
input[readonly].form-control{
  background-color:transparent;
}
/*För att få det tydligare */
.form-control {
  color:  #000000;
  font-size:0.9rem;
  font-weight:400;
  border: 2px solid #CCCCCC; 
}
.centercell{
  text-align:center;
}
.table-no-border{
  border: 0px;
}
.img-no-border{
  border: 0px;
}
.popover {
  max-width: 800px;
  width: auto;
}
.has-search .form-control {
    padding-left: 2.375rem;
}

.has-search .form-control-feedback {
    position: absolute;
    z-index: 2;
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    line-height: 2.375rem;
    text-align: center;
    pointer-events: none;
    color: #aaa;
}

/* Sticky helphover - kräver klick för att stänga */
.helphover-sticky {
    cursor: pointer;
}

/* Reset Password Page Styles */
.reset-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 500px;
    width: 100%;
}

.reset-container .logo {
    text-align: center;
    margin-bottom: 30px;
}

.reset-container .logo img {
    max-width: 200px;
    height: auto;
}

.reset-container .spinner-border {
    width: 3rem;
    height: 3rem;
}

.reset-container .status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.reset-container .success-icon {
    color: #28a745;
}

.reset-container .error-icon {
    color: #dc3545;
}

.reset-container .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
}

.reset-container .btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.popover.sticky-popover {
    z-index: 1060;
}

.popover.sticky-popover .popover-header {
    position: relative;
    padding-right: 35px;
    min-height: 32px;
}

.popover.sticky-popover .close-popover {
    position: absolute;
    right: 5px;
    top: 5px;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popover.sticky-popover .close-popover:hover {
    opacity: 0.8;
}

/* ========================================
   ADMIN TABLE STYLES - Reusable for all admin pages
   ======================================== */

/* Selected row styling - strong selectors to override DataTables and Bootstrap */
.adminTable tbody tr.selected,
.adminTable tbody tr.selected td,
.adminTable tbody tr.selected td.sorting_1,
.adminTable.table-hover tbody tr.selected:hover,
.adminTable.table-hover tbody tr.selected:hover td,
table.dataTable tbody tr.selected,
table.dataTable tbody tr.selected td,
table.dataTable tbody tr.selected > .sorting_1,
table.table-hover tbody tr.selected:hover,
table.table-hover tbody tr.selected:hover td,
.table tbody tr.selected,
.table tbody tr.selected td,
.table tbody tr.selected:hover,
.table tbody tr.selected:hover td {
    background-color: rgba(135, 206, 250, 0.4) !important;
    color: #212529 !important;
}

.adminTable tbody tr.selected a,
table.dataTable tbody tr.selected a,
.table tbody tr.selected a {
    color: #0d6efd !important;
}

/* ========================================
   ADMIN OFFCANVAS STYLES - Reusable for all admin pages
   ======================================== */

/* Offcanvas Size */
.admin-offcanvas {
    width: 750px !important;
}

/* Offcanvas Layout - Fixed header, scrollable content, fixed footer */
.admin-offcanvas .offcanvas-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
}

.admin-offcanvas form {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

/* Bootstrap 5 Tab Styling */
.admin-offcanvas .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
    background-color: #f8f9fa;
    padding: 1rem 1rem 0;
}

.admin-offcanvas .nav-tabs .nav-link {
    color: #495057;
    background-color: transparent;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.admin-offcanvas .nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    background-color: #ffffff;
    color: #212529;
}

.admin-offcanvas .nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom-color: #fff;
    font-weight: 600;
}

/* Scrollable Tab Content */
.admin-offcanvas .tab-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
}

.admin-offcanvas .tab-pane {
    padding-top: 0;
    min-height: 100%;
}

/* Form Elements - Enhanced Bootstrap 5 Styling */
.admin-offcanvas .form-control,
.admin-offcanvas .form-select {
    font-size: 0.875rem;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
    transition: border-color 0.15s ease-in-out;
}

.admin-offcanvas .form-control:focus,
.admin-offcanvas .form-select:focus {
    border-color: #86b7fe;
    box-shadow: none;
    outline: none;
}

.admin-offcanvas .form-control:disabled,
.admin-offcanvas .form-select:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

/* Labels */
.admin-offcanvas .form-label,
.admin-offcanvas .col-form-label {
    font-weight: 500;
    color: #212529;
    margin-bottom: 0.5rem;
}

.admin-offcanvas .form-group {
    margin-bottom: 1rem;
}

/* Radio and Checkbox Inputs */
.admin-offcanvas .form-check-input {
    margin-top: 0.3em;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.admin-offcanvas .form-check-input:focus {
    border-color: #0d6efd !important;
    box-shadow: none !important;
    outline: none !important;
}

.admin-offcanvas .form-check-label {
    cursor: pointer;
}

/* Fast but smooth slide-in animation for offcanvas */
.offcanvas.admin-offcanvas {
    transition: transform 0.15s ease-out !important;
}

.offcanvas.admin-offcanvas.showing,
.offcanvas.admin-offcanvas.hiding {
    transition: transform 0.15s ease-out !important;
}

/* No content animations - show everything immediately */
.admin-offcanvas .offcanvas-header,
.admin-offcanvas .offcanvas-body,
.admin-offcanvas .nav-tabs,
.admin-offcanvas .offcanvas-footer,
.admin-offcanvas .form-group {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Button hover effects in footer */
.admin-offcanvas .offcanvas-footer .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-offcanvas .offcanvas-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.admin-offcanvas .offcanvas-footer .btn:active {
    transform: translateY(0);
}

/* Ensure fancybox (helphover) is above offcanvas */
.fancybox-container {
    z-index: 99999 !important;
}

.fancybox-bg {
    z-index: 99998 !important;
}

/* Bootstrap Toggle Switches */
.admin-offcanvas .form-switch {
    padding-left: 2.5em;
    min-height: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.admin-offcanvas .form-switch .form-check-input {
    width: 2em;
    height: 1em;
    margin-left: -2.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: none; /* Ingen animation */
    margin-top: 0.25em;
}

.admin-offcanvas .form-switch .form-check-input:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.admin-offcanvas .form-switch .form-check-label {
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Toggle status text (Ja/Nej) */
.admin-offcanvas .toggle-status {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 30px;
}

.admin-offcanvas .toggle-status.status-yes {
    color: #198754;
}

.admin-offcanvas .toggle-status.status-no {
    color: #6c757d;
}

/* Textarea specific */
.admin-offcanvas textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

/* Fixed Footer with Buttons */
.admin-offcanvas .offcanvas-footer {
    flex-shrink: 0;
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    background-color: #f8f9fa;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* Offcanvas Header Enhancement */
.admin-offcanvas .offcanvas-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    background-color: #ffffff;
}

.admin-offcanvas .offcanvas-title {
    font-weight: 600;
    color: #212529;
    font-size: 1.25rem;
}

/* SelectPicker Dropdown Styling */
.admin-offcanvas .bootstrap-select .dropdown-toggle {
    border: 1px solid #ced4da;
    font-size: 0.875rem;
}

.admin-offcanvas .bootstrap-select .dropdown-toggle:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

/* Color Picker Input */
.admin-offcanvas input[type="hidden"].palettes + .sp-replacer {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.admin-offcanvas input[type="hidden"].palettes + .sp-replacer:hover {
    border-color: #86b7fe;
}

/* Help Icons */
.admin-offcanvas .helphover img,
.admin-offcanvas .helphover-sticky img {
    opacity: 0.6;
    transition: opacity 0.15s ease-in-out;
}

.admin-offcanvas .helphover:hover img,
.admin-offcanvas .helphover-sticky:hover img {
    opacity: 1;
}

/* Date Picker Fields */
.admin-offcanvas .date-picker-field {
    cursor: pointer;
}

/* Admin Loading Overlay - Generic for all admin pages */
.admin-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.admin-loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive adjustments for offcanvas */
@media (max-width: 768px) {
    .admin-offcanvas {
        width: 90vw !important;
    }

    .admin-offcanvas .nav-tabs {
        font-size: 0.875rem;
    }

    .admin-offcanvas .nav-tabs .nav-link {
        padding: 0.375rem 0.75rem;
    }
}

/* Scrollbar styling for tab content */
.admin-offcanvas .tab-content::-webkit-scrollbar {
    width: 8px;
}

.admin-offcanvas .tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.admin-offcanvas .tab-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.admin-offcanvas .tab-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Offcanvas animations och z-index */
/* Ta bort fade-animation från offcanvas */
.offcanvas {
    transition: none !important;
    z-index: 1045 !important;
}

.offcanvas.show {
    transform: none !important;
}

/* Offcanvas backdrop under allt annat */
.offcanvas-backdrop {
    z-index: 1044 !important;
}

/* Fancybox3 - HÖGSTA prioritet över allt annat */
.fancybox-container {
    z-index: 9999999 !important;
}

.fancybox-bg {
    z-index: 9999998 !important;
}

.fancybox-inner,
.fancybox-outer,
.fancybox-stage,
.fancybox-slide,
.fancybox-content,
.fancybox-iframe {
    z-index: 9999999 !important;
}

/* Fancybox navigation och kontroller */
.fancybox-toolbar,
.fancybox-infobar,
.fancybox-navigation,
.fancybox-button {
    z-index: 9999999 !important;
}

/* Äldre fancybox versioner - för bakåtkompabilitet */
.fancybox-overlay,
.fancybox-wrap {
    z-index: 9999999 !important;
}

/* Bootstrap popovers över offcanvas men under fancybox */
.popover {
    z-index: 999999 !important;
}

/* ============================================
   ADMIN TABLE STYLING
   Reusable for projectsTable, usersTable etc.
   ============================================ */

/* Modern table styling */
.adminTable {
    font-size: 0.875rem;
}

.adminTable thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
}

/* Ensure dt-left class columns are left-aligned */
.adminTable thead th.dt-left,
.adminTable tbody td.dt-left {
    text-align: left !important;
}

.adminTable tbody td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.adminTable tbody tr {
    transition: background-color 0.15s ease-in-out;
}

.adminTable tbody tr:hover {
    background-color: #f8f9fa;
}

/* Text truncation with ellipsis */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badge styling */
.adminTable .badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
}

/* Toggle switch styling - only for switches in tables */
.adminTable .form-check-input[type="checkbox"].form-switch,
.adminTable .form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
}

/* Standard Bootstrap checkbox and radio styling for offcanvas */
.admin-offcanvas .form-check {
    display: flex;
    align-items: center;
    padding-left: 1.75em;
    margin-bottom: 0.5rem;
    min-height: 1.5rem;
}

.admin-offcanvas .form-check-input[type="checkbox"],
.admin-offcanvas .form-check-input[type="radio"] {
    width: 1em;
    height: 1em;
    margin-top: 0;
    margin-left: -1.75em;
    border: 1px solid #adb5bd !important;
    background-color: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    print-color-adjust: exact;
    vertical-align: top;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    outline: none !important;
    box-shadow: none !important;
}

.admin-offcanvas .form-check-input[type="checkbox"]::before,
.admin-offcanvas .form-check-input[type="checkbox"]::after,
.admin-offcanvas .form-check-input[type="radio"]::before,
.admin-offcanvas .form-check-input[type="radio"]::after {
    display: none !important;
}

.admin-offcanvas .form-check-input[type="radio"] {
    border-radius: 50%;
}

.admin-offcanvas .form-check-input[type="checkbox"] {
    border-radius: 0.25em;
}

.admin-offcanvas .form-check-input[type="checkbox"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    outline: none !important;
    box-shadow: none !important;
}

.admin-offcanvas .form-check-input[type="radio"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
    outline: none !important;
    box-shadow: none !important;
}

.admin-offcanvas .form-check-inline {
    display: inline-flex;
    align-items: center;
    padding-left: 0;
    margin-right: 1rem;
}

.admin-offcanvas .form-check-inline .form-check-input {
    position: static;
    margin-top: 0;
    margin-right: 0.5rem;
    margin-left: 0;
}

/* Hide input-helper elements from legacy theme - they cause duplicate borders */
.admin-offcanvas .input-helper,
.admin-offcanvas .form-check-label .input-helper {
    display: none !important;
}

/* Hide input-helper in all form-switch toggles globally (fixes grey square next to toggles) */
.form-switch .input-helper,
.form-switch .form-check-label .input-helper {
    display: none !important;
}

/* Icon spacing */
.adminTable .bi {
    margin-right: 0.25rem;
}

/* Compact spacing for small text */
.adminTable .small {
    font-size: 0.813rem;
    line-height: 1.4;
}

/* ========================================
   ADMIN PAGE COMMON STYLES
   Generic styles for admin search forms and toolbars
   ======================================== */

/* Admin search form - compact styling */
.admin-search-form {
    font-size: 12px;
}

/* Admin toolbar - icon links and actions */
.admin-toolbar {
    font-size: 12px;
}

.admin-toolbar a {
    font-size: 12px;
}

/* Admin toolbar icon - no border on images */
.admin-toolbar img,
.admin-toolbar-icon {
    border: 0;
}

/* ========================================
   ADMIN TABLE STYLES
   ======================================== */
/* Admin table full width */
.adminTable {
    width: 100%;
}

.adminTable th {
    text-align: left;
}


/* ========================================
   ADMIN OFFCANVAS TAB STYLES
   Remove fade animation from tabs for better UX
   ======================================== */
.admin-offcanvas .tab-pane.fade {
    transition: none !important;
}

.admin-offcanvas .tab-pane.fade:not(.show) {
    opacity: 0;
    display: none;
}

.admin-offcanvas .tab-pane.fade.show {
    opacity: 1;
    display: block;
}

/* ========================================
   GPS LOCATION PICKER BUTTON
   ======================================== */
.btn-gps-picker {
    display: inline-block;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-gps-picker img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.15s ease-in-out;
}

.btn-gps-picker:hover img {
    opacity: 1;
}

/* ========================================
   MAP ADDRESS LINK
   ======================================== */
.map-address-link {
    cursor: pointer;
    margin-left: 5px;
}

.map-address-link:hover {
    opacity: 0.7;
}

/* ========================================
   GOOGLE PLACES AUTOCOMPLETE STYLING
   Styla Google PlaceAutocompleteElement för att matcha Bootstrap form-control
   ======================================== */
gmp-place-autocomplete {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

gmp-place-autocomplete:focus-within {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Dölj Google's inbyggda input-styling */
gmp-place-autocomplete::part(input) {
    border: none;
    outline: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    background: transparent;
    width: 100%;
}

/* Google Maps Places Autocomplete dropdown - ensure it appears above offcanvas */
.pac-container {
    z-index: 10000 !important;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pac-item {
    padding: 8px 12px;
    cursor: pointer;
}

.pac-item:hover {
    background-color: #f5f5f5;
}

.pac-item-query {
    font-weight: 500;
}

/* Statistics Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-widget {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget-value {
    font-size: 32px;
    font-weight: bold;
    color: #36A2EB;
    margin: 20px 0;
    text-align: center;
}

.widget-title {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.chart-container {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

.nav-tabs .nav-link {
    color: #495057;
    cursor: pointer;
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.tab-content {
    padding-top: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ==========================================================================
   DATEPICKER MED IKON - Format: YYYY-MM-DD
   ========================================================================== */

.date-input-wrapper {
    display: flex;
    align-items: stretch;
}

.date-input-wrapper input.form-control {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.date-input-wrapper .date-picker-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border: 2px solid #CCCCCC;
    border-left: none;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    background-color: #e9ecef;
    cursor: pointer;
}

.date-input-wrapper .date-picker-toggle:hover {
    background-color: #dde0e3;
}

.date-input-wrapper .date-picker-toggle i {
    font-size: 1.1rem;
    color: #495057;
}

