
:root {
    --white: #ffffff;
    --black: #000000;
    --light: #fbfbfb;
    --dark: #181b1c;
    --primary: #0d6dfb;
    --secondary: #4d86ff;
    --info: #6097b3;
    --accent1: #003153;
    --accent2: #5f5f60;
    --accent3: #9fa6a7;
    --success: #00a75f;
    --warning: #e3cc00;
    --danger: #f31800;
}

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

/* ----- Side Scrollbar ----- */
html {
    scrollbar-width: thin;
    scrollbar-color: gray rgba(0, 0, 0, 0);
}


/* ----- MainLayout.razor ----- */
.main-container {
    padding: 1rem;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--light);
}

.no-padding-x {
    margin-left: -1rem;
    margin-right: -1rem;
}

.no-padding-y {
    margin-top: -1rem;
    margin-bottom: -1rem;
}

.no-padding-xy {
    margin: -1rem;
}

@media only screen and (max-width: 768px) {
    /* Za zgornji odmik vsebine na telefonih zaradi navigacije */
    .main-container {
        min-height: 100vh;
        margin-top: 60px;
    }
}

/* ----- Page global -----*/
.page-full-height {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

@media only screen and (max-width: 768px) {
    .page-full-height {
        height: 100%;
    }
}

/* Fullscreen Grid Popup Edit Form on small screens */
@media (max-width: 768px) {
  /* The outer popup element */
  .my-style .dxbl-pu {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;

    /* pin to the viewport edges */
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  /* Make the popup content use the full height and scroll its body */
  .my-style .dxbl-pu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .my-style .dxbl-pu-header,
  .my-style .dxbl-pu-footer {
    /* keep header/footer visible while body scrolls */
    position: sticky;
    z-index: 1;
  }

  .my-style .dxbl-pu-header { top: 0; }
  .my-style .dxbl-pu-footer { bottom: 0; }

  .my-style .dxbl-pu-body {
    flex: 1 1 auto;
    overflow: auto;           /* scroll form fields */
    -webkit-overflow-scrolling: touch;
  }
}

/* Optional: slightly wider on tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .my-style .dxbl-pu {
    width: 90vw;
    max-width: 90vw;
    height: 90vh;
    max-height: 90vh;
  }
}

/* Multi-line DxDialog message boxes (MessageBoxOptions.CssClass), e.g. reservation conflicts on /Schedulers/ReservationSchedule */
.my-messagebox {
    white-space: pre-line;
}
