﻿#blazor-error-ui {
    position: fixed;
    inset: 0;
    z-index: 99999;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

    #blazor-error-ui.app-error-hidden {
        display: none !important;
    }

    #blazor-error-ui.app-error-visible {
        display: flex !important;
    }

    #blazor-error-ui .app-refresh-content {
        width: 100%;
        max-width: 440px;
        background: #ffffff;
        border-radius: 18px;
        padding: 24px;
        text-align: center;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
        box-sizing: border-box;
    }

    #blazor-error-ui .app-refresh-title {
        font-size: 20px;
        font-weight: 700;
        color: #1e3a8a;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    #blazor-error-ui .app-refresh-text {
        font-size: 14px;
        color: #4b5563;
        margin-bottom: 20px;
        line-height: 1.55;
    }

    #blazor-error-ui .app-refresh-actions {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    #blazor-error-ui .app-refresh-button,
    #blazor-error-ui .app-refresh-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 130px;
        padding: 10px 16px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
        box-sizing: border-box;
    }

    #blazor-error-ui .app-refresh-button {
        background: #2563eb;
        color: #ffffff;
    }

        #blazor-error-ui .app-refresh-button:hover {
            background: #1e40af;
            color: #ffffff;
        }

    #blazor-error-ui .app-refresh-close {
        background: #f3f4f6;
        color: #374151;
        cursor: pointer;
    }

        #blazor-error-ui .app-refresh-close:hover {
            background: #e5e7eb;
            color: #111827;
        }

@media (max-width: 600px) {
    #blazor-error-ui {
        padding: 16px;
    }

        #blazor-error-ui .app-refresh-content {
            max-width: 100%;
            padding: 20px;
            border-radius: 16px;
        }

        #blazor-error-ui .app-refresh-title {
            font-size: 18px;
        }

        #blazor-error-ui .app-refresh-text {
            font-size: 13.5px;
        }

        #blazor-error-ui .app-refresh-actions {
            flex-direction: column;
            gap: 12px;
        }

        #blazor-error-ui .app-refresh-button,
        #blazor-error-ui .app-refresh-close {
            width: 100%;
            min-width: 0;
            padding: 12px;
            font-size: 15px;
        }
}

/*#blazor-error-ui {
    display: none;
    padding: .75rem 1.25rem;
    position: fixed;
    width: 30vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    color: #856404;
    background-color: #fff3cd;
}

    #blazor-error-ui > div {
        padding: 1rem 0 .3rem 0;
    }

    #blazor-error-ui .reload {
        padding: .5rem;
        color: #212529;
        background-color: #ffc107;
        text-decoration: none;
    }*/

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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);
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

.full-width-tiles {
    width: 100%;
    max-width: 100%;
}

/* ADD 14012026 mobiles padding */
@media (max-width: 768px) {

    /* 1) Le GROS padding qui te flingue tout */
    .k-drawer-content {
        padding: 6px !important; /* mets 0 si tu veux full edge */
    }

    /* 2) Le TileLayout : il a du padding/gap inline -> il faut l'écraser */
    .k-tilelayout.full-width-tiles {
        padding: 6px !important; /* ou 0 */
        gap: 8px !important; /* ou 6 */
        width: 100% !important;
        margin: 0 !important;
    }

    /* 3) Les cards (tuiles) : réduire un peu l’intérieur */
    .k-tilelayout-item .k-card-header,
    .k-tilelayout-item .k-card-body {
        padding: 10px !important;
    }

    /* 4) Bootstrap container dans le header de la tuile (il remet du padding) */
    .k-tilelayout-item-header .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    /* 5) Optionnel : éviter scroll horizontal accidentel */
    html, body {
        overflow-x: hidden;
    }
}
