﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');


.atd-typography-bodyTitle
{
    font-size: 14px !important;
    font-weight:500 !important;
    color: black !important;
}

.e-schedule .e-quick-popup-wrapper .e-popup-footer {
    padding: 0 16px 14px !important;
    border: none !important;
}

.atd-typography-caption
{
    font-size: 0.75rem !important;
    font-weight:400 !important;
    color: #545352 !important;
}

/* Base Class: Handles shape, size, and transitions */
.atd-button-icon-base {
    border-radius: 5px !important;
    padding: 0px !important;
    width: 36px;
    height: 36px;
    font-size: 1.0rem;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mud-button.atd-button-black
{
   color: white; 
    background-color: black;
    box-shadow:  none;
}


/* Modifier 1: Your original Gray/Transparent style */
.atd-icon-gray {
    background-color: transparent !important;
    color: #6E6C6B !important;
    border: 1px solid #C9C8C7 !important;
}

.atd-icon-gray:hover {
    background-color: #eeeeee !important;
    border: 1px solid #A6A4A4 !important;
    color: #6E6C6B !important;
}

/* Modifier 2: A New Color Variant (e.g., Primary Blue) */
.atd-icon-primary {
    /* Uses MudBlazor's Primary Theme Color */
    background-color: var(--mud-palette-primary) !important;
    color: var(--mud-palette-primary-text) !important;
    border: 1px solid var(--mud-palette-primary-darken) !important;
}

.atd-icon-primary:hover {
    /* Uses the slightly darker version for the hover state */
    background-color: var(--mud-palette-primary-darken) !important;
    border: 1px solid var(--mud-palette-primary-darker) !important;
}

 


/* Custom Clean Data Grid - Banded, Compact, & High Contrast */
.clean-data-grid.mud-table {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e0e0e0 !important;
    /*overflow: hidden;*/
}

.clean-data-grid .mud-table-head .mud-table-cell {
    color: #545352 !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    font-size: 12px !important;
    letter-spacing: 0.05em;
    padding: 10px 12px !important;
}

/* Header: Solid #6455B2 with forced White Text */
.clean-data-grid .mud-table-head {
    background-color: #FAF8F8 !important;
}

/* Specificity boost to ensure all header text/icons are white */
.clean-data-grid .mud-table-cell.mud-table-head-cell,
.clean-data-grid .mud-table-head .mud-button-root,
.clean-data-grid .mud-table-head .mud-table-sort-label {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em;
    padding: 10px 12px !important;
}

/* Cell Styling: Tighter margins */
.clean-data-grid .mud-table-cell {
    padding: 8px 12px !important;
    color: #424242 !important;
    font-size: 0.875rem;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* Banded Rows: Only targets body rows, not the header */
/*.clean-data-grid .mud-table-body .mud-table-row:nth-of-type(even) {*/
/*    background-color: #fafafa !important;*/
/*}*/

/* Hover Effect: Targeting tbody rows specifically so it doesn't hit the header.
   The addition of .mud-table-row ensures it overrides the banded color. */
.clean-data-grid .mud-table-body .mud-table-row:hover {
    background-color: #EEEEEE !important;
    transition: background-color 0.1s ease-in;
}

/* Pagination & Toolbar */
.clean-data-grid .mud-table-pagination {
    padding: 4px !important;
}

.clean-data-grid .mud-table-toolbar {
    height: 56px !important;
}


.animate-on-load {
    animation: fadeIn 0.4s ease-in-out;
}

.sidebar-item-header
{
    color: #6B6E85;
    opacity: 0.6;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.hide-panel
{
    display:none !important;
}

.moderncard1
{
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.12);  
    padding: 16px 24px !important;
}

.moderncard2
{
    border: 1px solid #e5e2db !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(44,40,37,0.06);
    background: #ffffff; 
    overflow: hidden;
}
 

.moderncard2-header {
    padding: 12px 8px;
    border-bottom: 1px solid #e5e2db;
    display: flex;
    align-items: center;
    gap: 10px;
}



/*.mud-popover.mud-popover-open*/
/*{*/
/*    z-index:5000 !important;*/
/*}*/


.backbutton-title.ios.mud-button-text.mud-button-text-dark
{
    /*padding:0px;*/
    /*margin:0px;*/
    /*font-size: 14px;*/
    text-transform: none !important;
}

.mud-button-outlined.circularbutton{
    border-radius: 10px  !important;
    min-width: 50px;
    border: none  !important;
    text-transform: none;
}
.mud-button-outlined.circularbutton:hover
{
    border-radius: 10px !important;
    min-width: 50px;
    border: none !important;
    color: #0a58ca;
}

.mud-button-outlined.emphasized{
    border-radius: 10px  !important; 
    background-color: #EBEBED !important;
    border: none  !important;
}
.mud-button-outlined.emphasized:hover
{
    border-radius: 10px !important; 
    border: none !important;
    color: #0a58ca;
}

.backbutton-title.ios.mud-button-text.mud-button-text-dark:hover
{
    color: #0a53be;
    background: transparent !important;
    /*padding:0px;*/
    /*margin:0px;*/
    /*font-size: 14px;*/
}

.dynamicform-report { 
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    color: #666;
    /*background-color: #f9f9f9;*/
}

.dynamicform-report td {
    padding: 0px;
    vertical-align: top;
    line-height: 1.5;
}

.encountercard-itemtitle { 
    color: black; /* #999;*/
    text-transform: uppercase;
    font-size: 16px !important;
    font-weight: 500  !important;
}

#strip-html-container {
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    /*color: #222 !important;*/
}

#strip-html-container * {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    /*color: inherit !important;*/
}

.encountercard-sectiontitle {
    color: white;
    /*text-transform: uppercase;*/
    font-size: 14px !important;
    background: #002148;
    width: max-content !important;
    display: inline;
    border-radius: 4px;
    padding: 8px;
    font-weight: 800 !important;
    position: relative; 
    /*margin-top: 10px !important; */
}

/*.encountercard-sectiontitle::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    left: 0;*/
/*    bottom: 0;*/
/*    height: 3px;*/
/*    width: 50px; !* Adjust as needed *!*/
/*    background-color: black;*/
/*    border-radius: 2px;*/
/*}*/


.dynamicform-report td:first-child {
    width: 200px;
    color: #999;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
}

.dynamicform-report td:last-child {
    padding-left: 10px;
    width: auto;
    color: #555;
}


*:focus {
    outline: none;
}

*:focus-visible {
    outline: none;
}

.mud-dialog-centerright
{
    padding-right: 0px !important; 
}

.dropdown-option.deselect {
    color: red;
    font-weight: bold;
}
 


.tinymce-smartlist-placeholder 
{
    background-color: #e7f3fe;
    /*border: 1px dashed #007bff;*/
    /*padding: 2px 4px;*/
    /*cursor: pointer;*/
}

.tmc-dropdown {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px;
    z-index: 10100; /* Above floating panels (9991) + TinyMCE aux (10100) */
    display: block;
    width: 200px;
    max-width: 250px;
    max-height: 300px;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    font-size: 14px;
}
.dropdown-option {
    padding: 5px 10px; /* Spacing for options */
    cursor: pointer; /* Pointer cursor for options */
    transition: background-color 0.2s ease; /* Smooth hover effect */
}
.dropdown-option:hover {
    background-color: #f1f1f1; /* Light gray background on hover */
}

.dropdown-option.selected {
    background-color: #e0e0e0;
}

/* Ensure the overlay itself is transparent; we'll animate a layer on top */
.dialog-overlay-light-backgroundcolor {
    background: transparent !important;
    position: fixed; /* overlay already is, but ensure the ::after positions correctly */
    inset: 0;
}

/* Animated film */
.dialog-overlay-light-backgroundcolor::after {
    content: "";
    position: absolute;
    inset: 0;
    /*wbackground: rgba(0, 0, 0, 0.35); /* target dim */

    background: rgba(30, 41, 59, 0.40); 
    opacity: 0;
    animation: atd-overlay-fade-in 100ms ease-out forwards;
}

.mud-overlay .mud-overlay-scrim.mud-overlay-light{
    background:  rgba(0, 0, 0, 0.20);
}

@keyframes atd-overlay-fade-in {
    to { opacity: 1; }
}

.mud-popover.mud-popover-open
{
    border-radius: 20px !important;
}

.mud-popover .mud-list
{
    padding: 0px !important;
}

/*.dialog-overlay-light-backgroundcolor {*/
/*    !*background-color: rgba(238, 238, 238, 0.2) !important; !*ήταν 0.2 το opacity *!*!*/

/*    background: rgba(0, 0, 0, 0.1); !* very light dim *!*/
/*    !*backdrop-filter: blur(2px);      !* optional: soft blur *!*!*/
/*    !*-webkit-backdrop-filter: blur(2px);*!*/
/*    */
/*    */
/*    !*backdrop-filter: blur(10px); !* Adds a soft modern blur *!*!*/
/*    !*-webkit-backdrop-filter: blur(10px); !* Ensures compatibility with Safari *!*!*/
/*}*/

.dialog-overlay-light-backgroundcolor .mud-overlay-scrim.mud-overlay-dark {
    background-color: inherit !important;
    background: inherit !important; 
}

.dialog-overlay-no-backgroundcolor {
    background-color: transparent !important;
}

.dialog-overlay-no-backgroundcolor .mud-overlay-scrim.mud-overlay-dark {
    background-color: inherit !important;
    background: inherit !important;
}
 


.mud-dialog.atdpopup { 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.12);  
    min-height: 20% !important;
    overflow-y:hidden;  
    border-radius: 20px;
    max-width: 90vw !important;
    background-color: white !important;  
    border: 1px solid rgba(255, 255, 255, 0.18); 
}

.atdpopup .mud-dialog-content {
    flex: 1;                /* take the free space in the paper */
    display: flex;
    flex-direction: column; 
    min-height: 0;          /* critical so inner flex items can shrink */
}



.atdfullheight .mud-dialog-content {
    padding: 0px !important;
    border-radius: 0px !important;
}


.mud-dialog.mud-dialog-atdmodern {
    /*display: flex;*/
    /*align-self: center; !* Center content vertically *!*/
    justify-content: center; /* Center content horizontally */
    /*box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); !* Soft shadow for depth *!*/
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.12); /* Soft shadow for depth */
    /*height: 98vh;*/
    max-height: 100vh !important;
    height:100%;
    overflow-y:hidden;
    justify-content: stretch;
    /* Rounded corners */
    border-radius: 20px;

    /* Light Glass effect */
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    /*background-color: rgba(255, 255, 255, 0.35); !* Subtle frosted white *!*/
    
    /*background-color: #F2F4F8; !*   rgba(238, 238, 238, 0.75); Subtle frosted white *!*/
    background-color: #F2F3F8; /*   rgba(238, 238, 238, 0.75); Subtle frosted white */

    /* Optional border to add subtle structure */
    border: none; /* 1px solid rgba(255, 255, 255, 0.18);*/

    /*!* Dark glass effect *!*/
    /*-webkit-backdrop-filter: blur(20px) saturate(150%);*/
    /*backdrop-filter: blur(20px) saturate(150%);*/
    /*background-color: rgba(0, 0, 0, 0.3); !* Darker frosted black *!*/

    /*!* Subtle border for structure *!*/
    /*border: 1px solid rgba(255, 255, 255, 0.12);*/
}


.atd-dialog-close-button
{
    border-radius: 10px !important;
    padding: 5px !important;
    background-color:#EEEEEE !important;
    color: #000 !important;
    /*box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.12);*/
}


.mud-dialog.mud-dialog-atdmodern.atd-modernwrapper {
    max-width: 98vw !important;
    max-height: 98vh !important;
    min-height: 30% !important;
    width: 700px !important;
    height: unset !important;
}

/* Desktop / tablet: square dialog */
@media (min-width: 768px) {
    .mud-dialog.mud-dialog-atdmodern.atd-modernwrapper {
        aspect-ratio: 1 / 1;
    }
}

/* Mobile: taller dialog */
@media (max-width: 767px) {
    .mud-dialog.mud-dialog-atdmodern.atd-modernwrapper {
        width: 100vw !important;
        max-width: 100vw !important; 
        height: 85vh !important;
        min-height: 70vh !important;
        aspect-ratio: auto;
    }
}
 


.mud-dialog.mud-dialog-atdmodern.atd-embedwrapper {
     max-width: 90vw !important;
    height: 90vh !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    /*border-radius: 20px 20px 0px 0px;*/
    /*max-height: calc(100vh - 20px) !important;*/
    /*margin-top: 20px;*/
}

.mud-dialog.mud-dialog-atdmodern.atd-embedwrapper .mud-dialog-content {
    padding: 0px !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* Re-assert MudBlazor.Extensions' first-paint hide rule. Our 3-class
   .atd-embedwrapper selector above declares `display: flex !important`,
   which has higher specificity than the library's own
   `.mud-ex-dialog-initial { display: none !important }` (1 class) and
   would otherwise paint the dialog at full 90vh size for one frame
   before the FadeIn animation starts. Same fix applies to the
   modern + right-sidebar wrappers. See MBE issue #47. */
.mud-dialog.mud-dialog-atdmodern.atd-embedwrapper.mud-ex-dialog-initial,
.mud-dialog.mud-dialog-atdmodern.atd-modernwrapper.mud-ex-dialog-initial,
.mud-dialog.mud-ex-dialog-initial {
    display: none !important;
}

/* Per-invocation width overrides for embed/modern dialogs.
   Override the global `max-width: 90vw !important` (above) when callers opt in.
   Pass via:
     - `coreService.ShowDialogWithComponent<T>(..., dialogClass: DialogWidthClasses.Compact)`
     - or `parameters["MainDialogClassExtra"] = DialogWidthClasses.Compact;` when using ShowExAsync directly.
   Same classes work for both `.atd-embedwrapper` and `.atd-modernwrapper`. */
.mud-dialog.atd-embedwrapper.dlg-w-narrow,
.mud-dialog.atd-modernwrapper.dlg-w-narrow   { max-width: 640px !important; }

.mud-dialog.atd-embedwrapper.dlg-w-compact,
.mud-dialog.atd-modernwrapper.dlg-w-compact  { max-width: 820px !important; }

.mud-dialog.atd-embedwrapper.dlg-w-standard,
.mud-dialog.atd-modernwrapper.dlg-w-standard { max-width: 1024px !important; }

.mud-dialog.atd-embedwrapper.dlg-w-wide,
.mud-dialog.atd-modernwrapper.dlg-w-wide     { max-width: 1280px !important; }

@media (max-width: 800px) {
    .mud-dialog.mud-dialog-atdmodern.atd-embedwrapper {
        width: 100vw !important;
        /*border-radius: 10px;*/
        max-width: 100vw !important;
        max-height: 100vh !important;
        height: 100vh !important;
        margin-top: 0px;
        /*border-radius: 20px 20px 0px 0px;*/
        /*max-height: calc(100vh - 20px) !important;*/
        /*margin-top: 20px;*/
    }

    /* Mobile: width-class overrides yield to the full-width mobile rule */
    .mud-dialog.atd-embedwrapper.dlg-w-narrow,
    .mud-dialog.atd-embedwrapper.dlg-w-compact,
    .mud-dialog.atd-embedwrapper.dlg-w-standard,
    .mud-dialog.atd-embedwrapper.dlg-w-wide,
    .mud-dialog.atd-modernwrapper.dlg-w-narrow,
    .mud-dialog.atd-modernwrapper.dlg-w-compact,
    .mud-dialog.atd-modernwrapper.dlg-w-standard,
    .mud-dialog.atd-modernwrapper.dlg-w-wide {
        max-width: 100vw !important;
    }
}
 

.tox-tinymce-aux
{
    z-index: 10100 !important;
}

.tox.tox-tinymce-aux .tox-menu.tox-collection {
    z-index: 10100 !important;
}

/* TinyMCE autocompleter dropdown: taller max-height for cardmenuitems
   (each card has 2 lines) and ensure keyboard-navigated items scroll into view */
.tox .tox-autocompleter .tox-collection__group {
    max-height: 350px;
}

.tox .tox-collection__item--active {
    scroll-margin: 4px;
}

.mud-dialog.mud-dialog-atdmodern.atdfullheight 
{ 
    height: 100vh !important;
    overflow-y:hidden !important;
    /* Rounded corners */
    border-radius: 0px !important;  
    /*right: inherit !important;*/
    /*top: 0 !important;*/
    max-width:100vw !important;
    /*position: absolute !important;*/
    width: 800px;
}

.mud-dialog.mud-dialog-atdmodern.atdfullheight.left-sidebar
{
    height: 100vh !important;
    overflow-y:hidden !important;
    /* Rounded corners */
    border-radius: 0px;
    left: inherit !important; /*LEFT NEEDS TO BE INHERIT for it to work in CenterLeft position...*/
    /*right: inherit !important;*/
    /*top: 0 !important;*/
    max-width:100vw !important;
    /*position: absolute !important;*/
    width: 800px;
}



.atd-my-modern-table.mud-table {
    background-color: inherit !important; /* keep the same background as the container */
}

.atd-my-modern-table .mud-table-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    background: #fff; /* #fff Ensure white background */
}

/* Table headers */
.atd-my-modern-table th {
    background-color: #C8E6C9; /* Light gray  #f9f9f9 for header background */
    font-weight: 800;
    color: #333;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Table cells */
.atd-my-modern-table td {
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #555;
    padding: 0.75rem;
}

/* Remove default borders if desired, since we use subtle lines */
.atd-my-modern-table .mud-table-root {
    border: none;
}

/* Hover effect on rows */
.atd-my-modern-table tr:hover:not(:first-child) td {
    background-color: #F2F2FA; /* Slightly lighter on hover */
}









.masonry {
    column-count: 2; /* Number of columns */
    column-gap: 32px; /* Gap between columns */
    row-gap: 32px;
    /*display: grid; */
    /*grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));*/
    /*grid-template-rows: masonry;*/
    /*gap: 16px; !* Adjust gap between cards *!*/
}

.masonry-item {
    display: inline-block;
    width: 100%; /* Ensure items fill the column width */
    margin-bottom: 32px; /* Vertical gap */
    break-inside: avoid;
    background: transparent;
    /*padding: 16px;*/
    /*border: 1px solid #ccc;*/
    /*border-radius: 8px;*/
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
}

/* Responsive adjustments */
@media (max-width: 1500px) {
    .masonry {
        column-count: 2; /* Reduce to 3 columns */
        column-gap: 32px; /* Gap between columns */
        row-gap: 32px;
    }
}

@media (max-width: 900px) {
    .masonry {
        column-count: 1; /* Reduce to 2 columns */
        column-gap: 32px; /* Gap between columns */
        row-gap: 32px;
    }
}

@media (max-width: 600px) {
    .masonry {
        column-count: 1; /* Single column on smaller screens */
        column-gap: 32px; /* Gap between columns */
        row-gap: 32px;
    }
}
   

.appHeading1
{
    /*font-family: 'Inter', 'Roboto'  !important;*/
    font-weight: 1000 !important;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

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

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 520px;
    width: calc(100% - 32px);
    background: #1B2A4A;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
    padding: 14px 48px 14px 16px;
    z-index: 99999;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    animation: blazor-error-slide-up 0.3s ease-out;
}

#blazor-error-ui .blazor-error-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

#blazor-error-ui .blazor-error-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #F59E0B;
}

#blazor-error-ui span {
    flex: 1;
    line-height: 1.4;
}

#blazor-error-ui .reload {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.15s;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

#blazor-error-ui .reload:hover {
    background: rgba(255, 255, 255, 0.2);
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

#blazor-error-ui .dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@keyframes blazor-error-slide-up {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.blazor-error-boundary {
    background: #1B2A4A;
    padding: 1.25rem 1.25rem 1.25rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    margin: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}

.blazor-error-boundary::after {
    content: "Παρουσιάστηκε σφάλμα. Δοκιμάστε να φορτώσετε ξανά τη σελίδα."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.atd-modern-table2.mud-table {
    background-color: inherit !important; /* keep the same background as the container */
}

.atd-modern-table2 .mud-table-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    background: #fff; /* #fff Ensure white background */
}

/* Table headers */
.atd-modern-table2 th {
    background-color: #201F3B; /* Light gray  #f9f9f9 for header background */
    font-weight: 800;
    color: white !important;
    border-bottom: 1px solid #eee;
    /*text-transform: uppercase;*/
    font-size: 0.9rem;
    padding: 4px 16px;
    letter-spacing: 0.5px;
}

/* Table cells */
.atd-modern-table2 td {
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #555;
    padding: 0.75rem;
}

/* Remove default borders if desired, since we use subtle lines */
.atd-modern-table2 .mud-table-root {
    border: none;
}

/* Hover effect on rows */
.atd-modern-table2 tr:hover:not(:first-child) td {
    background-color: #F2F2FA; /* Slightly lighter on hover */
}










@container (max-width: 575.98px) {
    .container-hidden-below-xs {
        display: none !important;
    }
}

@container (min-width: 576px) {
    .container-hidden-above-xs {
        display: none !important;
    }
}

@container (max-width: 767.98px) {
    .container-hidden-below-sm {
        display: none !important;
    }
}

@container (min-width: 768px) {
    .container-hidden-above-sm {
        display: none !important;
    }
}

@container (max-width: 991.98px) {
    .container-hidden-below-md {
        display: none !important;
    }
}

@container (min-width: 992px) {
    .container-hidden-above-md {
        display: none !important;
    }
}

@container (max-width: 1199.98px) {
    .container-hidden-below-lg {
        display: none !important;
    }
}

@container (min-width: 1200px) {
    .container-hidden-above-lg {
        display: none !important;
    }
}

@container (max-width: 1399.98px) {
    .container-hidden-below-xl {
        display: none !important;
    }
}

@container (min-width: 1400px) {
    .container-hidden-above-xl {
        display: none !important;
    }
}

/* For XXL, only hide above since there's no upper limit */
@container (min-width: 1400px) {
    .container-hidden-above-xxl {
        display: none !important;
    }
}












/* Breakpoints match MudBlazor's default breakpoints */
/* Hidden below breakpoints (down) - FIXED to ensure there are no gaps */

/* xs-down: Hidden below xs (always hidden since xs is the smallest) */
.custom-hidden-xs-down {
    display: none !important;
}

/* sm-down: Hidden below sm (<600px) */
@media (max-width: 599.99px) {
    .custom-hidden-sm-down {
        display: none !important;
    }
}

/* md-down: Hidden below md (<960px) */
@media (max-width: 959.99px) {
    .custom-hidden-md-down {
        display: none !important;
    }
}

/* lg-down: Hidden below lg (<1280px) */
@media (max-width: 1279.99px) {
    .custom-hidden-lg-down {
        display: none !important;
    }
}

/* xl-down: Hidden below xl (<1920px) */
@media (max-width: 1919.99px) {
    .custom-hidden-xl-down {
        display: none !important;
    }
}

/* Hidden above breakpoints (up) - FIXED to ensure there are no gaps */

/* xs-up: Hidden above xs (≥0px - always hidden) */
.custom-hidden-xs-up {
    display: none !important;
}

/* sm-up: Hidden at sm and above (≥600px) */
@media (min-width: 600px) {
    .custom-hidden-sm-up {
        display: none !important;
    }
}

/* md-up: Hidden at md and above (≥960px) */
@media (min-width: 960px) {
    .custom-hidden-md-up {
        display: none !important;
    }
}

/* lg-up: Hidden at lg and above (≥1280px) */
@media (min-width: 1280px) {
    .custom-hidden-lg-up {
        display: none !important;
    }
}

/* xl-up: Hidden at xl and above (≥1920px) */
@media (min-width: 1920px) {
    .custom-hidden-xl-up {
        display: none !important;
    }
}



/* Display rules for specific breakpoints - each has its own visibility rules */

/* XS - Only visible on XS screens */
.custom-hidden-display-xs {
    display: none;
}
@media (max-width: 599.98px) {
    .custom-hidden-display-xs {
        display: block;
    }
}

/* SM - Only visible on SM screens and up */
.custom-hidden-display-sm {
    display: none;
}
@media (min-width: 600px) {
    .custom-hidden-display-sm {
        display: block;
    }
}

/* MD - Only visible on MD screens and up */
.custom-hidden-display-md {
    display: none;
}
@media (min-width: 960px) {
    .custom-hidden-display-md {
        display: block;
    }
}

/* LG - Only visible on LG screens and up */
.custom-hidden-display-lg {
    display: none;
}
@media (min-width: 1280px) {
    .custom-hidden-display-lg {
        display: block;
    }
}

/* XL - Only visible on XL screens */
.custom-hidden-display-xl {
    display: none;
}
@media (min-width: 1920px) {
    .custom-hidden-display-xl {
        display: block;
    }
}



/* https://dev.to/mhrastegari/net-maui-blazor-best-practices-for-mobile-ui-4def */

/*@supports (-webkit-touch-callout: none) {*/
/*    body {*/
/*        padding-top: env(safe-area-inset-top);*/
/*        padding-right: env(safe-area-inset-right);*/
/*        padding-bottom: env(safe-area-inset-bottom);*/
/*        padding-left: env(safe-area-inset-left);*/
/*    }*/
/*}*/

* {
    -webkit-tap-highlight-color: transparent;
}

/**:not(input) {*/
/*    user-select: none;*/
/*    -webkit-user-select: none;*/
/*}*/


 

/* Style the outer wrapper too (helps with FixedHeader rounding) */
.modern-labs-table{
    border-radius:12px !important; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.06) !important;
    border:1px solid #e5e7eb;
}

/* Container */
.modern-labs-table .mud-table-container{
    /* keep if you prefer the shadow/border here instead of on the root */
}

/* Header */
.modern-labs-table thead { background:#f9fafb; border-bottom:1px solid #e5e7eb; }
.modern-labs-table thead th{
    font-weight:600; color:#374151; padding:12px 16px; font-size:.9rem; background:#f9fafb;
}

/* Body cells */
.modern-labs-table tbody td{
    padding:10px 16px; border-bottom:1px solid #f0f0f0; font-size:.9rem; color:#1f2937;
    background:white; transition:background-color .15s ease;
}
.modern-labs-table tbody tr:hover td{ background:#f5f7fa; }

/* “main cells” soft fill (not first column) */
.modern-labs-table tbody td:not(:first-child){ background:#F2F2FA; }
.modern-labs-table tbody tr:nth-child(even) td:not(:first-child){ background:#f6f6f6; }

/* First column width */
.wide-first-column th:first-child,
.wide-first-column td:first-child{
    min-width:300px; width:300px; white-space:nowrap; font-weight:500;
}





/* ════════════════════════════════════════════════
   Syncfusion TimePicker — MudBlazor Outlined Match
   Add to elythos-forms.css (GLOBAL, not scoped)
   ════════════════════════════════════════════════ */
 

.sf-time-wrap.outlined-match {
    position: relative;
    width: 100%;
    margin-top: 5px;
    min-width: 0;
    align-self: center;   /* fill grid cell height */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* align to bottom like MudBlazor fields */
}

.sf-time-float-label {
    position: absolute;
    top: -8px;
    left: 10px;
    background: var(--ely-surface-card, #fff);
    padding: 0 4px;
    font-size: 12px;
    font-weight: 400;
    color: var(--ely-text-secondary);
    z-index: 1;
    pointer-events: none;
}

/* Nuke all Syncfusion borders/shadows */
.sf-time-wrap.outlined-match .e-input-group,
.sf-time-wrap.outlined-match .e-control-wrapper,
.sf-time-wrap.outlined-match .e-input-group *,
.sf-time-wrap.outlined-match .e-control-wrapper * {
    border: none !important;
    box-shadow: none !important;
}

.sf-time-wrap.outlined-match .e-input-group::before,
.sf-time-wrap.outlined-match .e-input-group::after,
.sf-time-wrap.outlined-match .e-input-group *::before,
.sf-time-wrap.outlined-match .e-input-group *::after {
    display: none !important;
}

/* Our own outlined border */ 

.sf-time-wrap.outlined-match .e-input-group {
    border: 1px solid rgba(0,0,0,0.23) !important;  /* matches MudBlazor outlined */
    border-radius: var(--ely-radius-sm, 6px) !important;
    height: 40px !important;  /* MudBlazor Dense = 40px, normal = 56px */
    width: 100% !important;
    padding: 0 12px !important;
    background: var(--ely-surface-card, #fff) !important;
    transition: border-color 0.15s ease !important;
}

.sf-time-wrap.outlined-match .e-input-group:hover {
    border-color: rgba(0,0,0,0.87) !important;
}

.sf-time-wrap.outlined-match .e-input-group.e-input-focus {
    border-color: var(--ely-primary, #002148) !important;
    border-width: 2px !important;
}
 
/* Input text */
.sf-time-wrap.outlined-match input.e-input {
    font-size: 14px !important;
    font-family: var(--ely-font) !important;
    color: var(--ely-text-primary) !important;
    padding: 0 !important;
    height: 100% !important;
    background: transparent !important;
}

/* Clock icon */ 
.sf-time-wrap.outlined-match .e-input-group-icon {
    color: var(--ely-text-tertiary) !important;
    background: transparent !important;
    min-height: unset !important;
    display: flex !important;
    align-items: center !important;
    border: none !important;
}

.sf-time-wrap.outlined-match .e-input-group-icon::before {
    display: inline-block !important;
}

/* ── SfSchedule QuickInfo: prevent full-screen on mobile/touch ── */
.e-quick-popup-wrapper.e-device {
    bottom: auto !important;
    right: auto !important;
    height: auto !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: unset !important;
    max-height: calc(100vh - 48px) !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    overflow-y: auto !important;
    border-radius: 14px !important;
    transition: none !important;
    animation: none !important;
}

/* ── SfSchedule QuickInfo: override Syncfusion section padding ── */
.e-quick-popup-wrapper {
    border: none !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06) !important;
}
.e-quick-popup-wrapper,
.e-quick-popup-wrapper .e-event-popup {
    background: white !important;
}
.e-quick-popup-wrapper .e-event-popup {
    border: none !important;
    box-shadow: none !important;
    border-radius: 14px !important;
}
.e-quick-popup-wrapper .e-popup-header,
.e-quick-popup-wrapper .e-event-popup .e-popup-header {
    padding: 0 !important;
    border: none !important;
    background: white !important;
}
.e-quick-popup-wrapper .e-popup-content,
.e-quick-popup-wrapper .e-event-popup .e-popup-content {
    padding: 4px 16px !important;
    border: none !important;
    background: white !important;
}
.e-quick-popup-wrapper .e-popup-footer,
.e-quick-popup-wrapper .e-event-popup .e-popup-footer {
    padding: 4px 16px 12px !important;
    border: none !important;
    text-align: left !important;
    background: white !important;
}
.e-quick-popup-wrapper .aqv-qi-actions {
    display: flex !important;
    gap: 6px !important;
    padding: 0 !important;
}
.e-quick-popup-wrapper .aqv-qi-content {
    padding: 0 !important;
}
.e-quick-popup-wrapper .aqv-qi-header {
    padding: 10px 16px 0 !important;
    border-left: none !important;
}

/* ============================================================
   MudBlazor ripple-effect suppression (perf override)
   ------------------------------------------------------------
   MudBlazor 9.4 has no global ripple toggle — ripple is per-component
   and re-paints on every tap. On iPhone (WKWebView interpreter mode)
   each ripple animation pays full paint+composite cost; in dense lists
   (sidebar items, agenda cards, calendar) the cumulative cost is
   measurable in Safari Timeline (large share of the 59.6% paint time).
   These rules suppress only the visual ripple. Buttons remain fully
   interactive. To re-enable selectively: add Ripple="true" on the
   component (parameter wins) and add a more specific CSS rule.
   Loaded AFTER MudBlazor.min.css in every host (EHR.Web, Elythos.WebApp,
   EHR.MobileApp), so these overrides win the cascade.
   ============================================================ */

/* The dynamically-injected ripple overlay element (added on tap by MudBlazor JS) */
.mud-ripple-effect,
.mud-ripple-effect-expanding,
.mud-ripple-effect-fading {
    display: none !important;
}

/* Icon-button scale-on-tap animation (.mud-ripple-icon::after) */
.mud-ripple-icon::after,
.mud-ripple-icon:active::after {
    display: none !important;
    transform: none !important;
    transition: none !important;
}

/* ============================================================
   iOS / WKWebView tap responsiveness
   ------------------------------------------------------------
   Two perceived-perf wins on iPhone (no impact on desktop):
   1. touch-action: manipulation
      Eliminates the legacy 300ms double-tap-to-zoom wait. Equivalent
      to "pan-x pan-y pinch-zoom" — scrolling, panning, and pinch-zoom
      still work; only double-tap-to-zoom is disabled.
   2. -webkit-tap-highlight-color: transparent
      Removes the gray translucent flash that briefly appears on
      tappable elements after a touch. Cosmetic but highly noticeable
      on dense UIs (sidebar lists, agenda cards).
   Long-press / context menu still works; only the 300ms wait + flash
   are suppressed.
   ============================================================ */
html {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Belt-and-suspenders: some UA stylesheets re-apply tap highlight per-element.
   Listing the common interactive surfaces explicitly. */
a, button, [role="button"], input, select, textarea, label, summary,
.mud-button-root, .mud-icon-button, .mud-list-item, .mud-nav-link, .mud-fab,
.mud-tab, .mud-chip, .clickable, [onclick] {
    -webkit-tap-highlight-color: transparent;
}

