/* Brand colors live in css/ath-brand.css — do not redeclare here. */
:root {
    /* Layout dimensions */
    --header: 35px;
    --footer: 25px;
    --toolbar: 80px;
}

/* Root container */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden; /* prevent page scroll */
}

/* Top navbar */
.appbar-top {
    flex-shrink: 0;
    height: var(--header);
    padding: 2px;
}

/* Bottom footer */
.appbar-bottom {
    flex-shrink: 0;
    height: var(--footer);
    padding: 2px;
}

/* Middle section */
.app-body {
    flex: 1;
    display: flex;
    overflow: hidden; /* IMPORTANT */
}

/* Drawer wrapper fix */
.mainlayout-drawer {
    height: 100%;
    width: 100%;
}

/* Content area */
.content-area {
    height: 100%;
    overflow: auto; /* scroll ONLY here */
    padding: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/*
#blazor-error-ui {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;
    width: auto;
    max-width: 400px;
    z-index: 20002;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.9rem;
    display: none;
}

#blazor-error-ui .reload {
    color: #721c24;
    font-weight: bold;
    text-decoration: underline;
    margin-left: 8px;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #721c24;
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0.6;
}

#blazor-error-ui .dismiss:hover {
    opacity: 1;
}
*/

/* --- TELERIK NOTIFICATION CUSTOMIZATION --- */

/*.k-notification-error.k-notification {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.k-notification-error .k-notification-status {
    color: #721c24 !important;
    opacity: 1;
}

.k-notification-error .k-notification-close-action {
    color: #721c24 !important;
    opacity: 0.6;
}

.k-notification-error .k-notification-close-action:hover {
    opacity: 1;
}

.k-notification-error .k-notification-content {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
}

.k-notification-success.k-notification {
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.k-notification-success .k-notification-status {
    color: #155724 !important;
}

.k-notification-success .k-notification-close-action {
    color: #155724 !important;
}

.k-notification-container,
.k-animation-container {
    z-index: 20000 !important;
}

.k-notification-group {
    z-index: 20001 !important;
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
}*/




/* TELERIK PROJECT TEMPLATE STYLES */


a, .btn-link {
    color: #006bb7;
}

.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;
}

h1:focus {
    outline: none;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsY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My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.telerik-file-select {
    display: inline-block;
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.telerik-file-select:hover {
    background-color: #e8e8e8;
    border-color: #999;
}

.telerik-file-select:active {
    background-color: #dcdcdc;
}


@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .responsive-form .k-form-layout {
        grid-template-columns: 1fr !important;
    }
}


/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999 !important;
}

.progress-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 320px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.progress-bar {
    transition: width 0.3s ease;
}

.telerik-notification {
    z-index: 99999 !important;
/*    font-size: 24px !important; not working*/
}

.k-datepicker .k-input-button .k-icon {
    color: #6c757d; /* Bootstrap secondary (grey) */
}

/* ----------------------------------------------------------
   Layout rules migrated off consent-2.css (no longer loaded —
   it had accumulated an unrelated, conflicting full Kendo Material
   theme bundle plus a stray `body { background-image: url(...) !important }`
   texture override that washed out the navy/orange ath-brand theme).
   These are the few project-shell classes MainLayout.razor's own
   markup needs that have no ath-brand.css equivalent.
   ---------------------------------------------------------- */

.sidebar {
    width: 250px;
    transition: width 0.3s ease;
    background-image: linear-gradient(#2b458e80, #00206040);
    background-color: var(--ath-navy);
}

.sidebar.collapsed {
    width: 0;
}

.footer {
    background-color: #f7f7f7;
    border-top: 1px solid #d6d5d5;
    justify-content: center;
    width: 100%;
    display: flex;
    text-align: center;
    position: fixed;
    bottom: 0;
    z-index: 99;
}

.main-title {
    font-weight: 600;
    margin-top: 5px;
    text-align: center;
    width: 100%;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    max-width: 230px;
}

.logo-img {
    max-height: 55px;
    max-width: 230px;
    width: auto;
    height: auto;
    object-fit: contain;
    padding-right: 35px;
}

.k-grid .status-text {
    font-size: inherit;
    font-weight: normal;
    line-height: normal;
    padding: 3px 8px;
    border-radius: 10px;
}

/* Toolbar-centered page title — still used by the 10 entity pages not yet
   migrated to the page-toolbar/page-title bar pattern (see ConsentPage.razor
   and SOW/devp_status.md backlog item 9/12). */
.toolbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.toolbar-title {
    margin: 0;
    font-weight: 300;
    color: white;
}

/* Remove focus ring on Telerik buttons app-wide */
.k-button:focus,
.k-button.k-focus,
.k-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.k-button::after {
    box-shadow: none !important;
    border: none !important;
}

/* Login/Account auth pages (Components/Account/Pages/*, ManageAccount.razor,
   ManageNavMenu.razor, ForgotPassword.razor, etc.) */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 56px;   /* clear the fixed auth-header */
    background: linear-gradient(160deg, #dce8f7 0%, #eef4fb 55%, #f5f8fd 100%);
}

.auth-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--ath-navy, #223773);
    border-bottom: 3px solid var(--ath-orange, #F26522);
    color: #fff;
    padding: 10px 0;
    text-align: center;
    z-index: 10;
}

.auth-header h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
}

/* Card wrapper: shadow + accent top bar */
.auth-card {
    width: 420px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(34, 55, 115, 0.16), 0 2px 8px rgba(34, 55, 115, 0.08);
    overflow: hidden;
    background: #fff;
}

/* Accent stripe at top of card using brand gradient */
.auth-card::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--ath-navy, #223773) 0%, var(--ath-orange, #F26522) 100%);
}

/* Override k-card default styling — auth-card handles the card shape */
.auth-card .k-card,
.auth-card .k-card-body {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 32px 36px 28px !important;
}

/* "Log in" heading */
.auth-title {
    text-align: center;
    margin-bottom: 24px;
    color: var(--ath-navy, #223773);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.auth-field {
    margin-bottom: 18px;
}

/* Kendo input wrapper — explicit border so it shows on the white card */
.auth-input {
    width: 100%;
}

.k-input.auth-input,
span.k-textbox.auth-input {
    border: 1.5px solid #c0cce0 !important;
    border-radius: 6px !important;
    background: #fff !important;
    height: 44px !important;
}

.k-input.auth-input:focus-within,
span.k-textbox.auth-input:focus-within {
    border-color: var(--ath-navy, #223773) !important;
    box-shadow: 0 0 0 2px rgba(34, 55, 115, 0.12) !important;
}

.auth-button {
    width: 100%;
}

.auth-button-outline {
    background: transparent !important;
    border: 1px solid var(--kendo-color-primary);
    color: var(--kendo-color-primary) !important;
    font-weight: 500;
}

.auth-footer {
    text-align: center;
    margin-top: 4px;
}

.k-textbox.auth-input {
    font-size: 14px;
    border-radius: 6px;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-btn {
    width: 100%;
    height: 42px;
    border-radius: 8px;
    justify-content: flex-start;
    font-weight: 500;
    margin-left: 5px;
}

.menu-btn-active {
    background-color: var(--kendo-color-primary);
    color: white;
    border-color: var(--kendo-color-primary);
}

.menu-btn:hover {
    background-color: var(--kendo-color-primary-hover);
    color: white;
}

.custom-form {
    max-width: 420px;
}

.form-title {
    margin-bottom: 16px;
    font-weight: 600;
}

.k-form .k-form-field {
    margin-bottom: 16px;
}

.k-button.w-100 {
    height: 42px;
    font-weight: 500;
}

.cancel-btn {
    background: #e0e0e0 !important;
    color: #555 !important;
    box-shadow: none !important;
}

/* Grid pager polish */
.k-pager .k-button {
    margin: 4px 3px;
    border: 1px solid #d6dcff;
    background-color: #ffffff;
}

.k-pager .k-button:hover {
    background-color: #eef1ff;
}

.k-pager .k-selected {
    background-color: #3e76c7 !important;
    color: #fff !important;
    border-color: #3e76c7 !important;
}

.k-pager-numbers-wrap {
    gap: 4px;
}

.k-pager .k-picker {
    border: 1px solid #d6dcff;
}

.k-pager-info {
    color: #49454f;
    font-weight: 500;
}

/* Status/event-type badges (ConsentPage.razor and others) */
.k-badge-solid-info {
    border-color: var(--kendo-color-info, #0058E9);
    color: var(--kendo-color-on-info, white);
    background-color: var(--kendo-color-info, #0058E9);
}

.k-badge-solid-success {
    border-color: var(--kendo-color-success, #278200);
    color: var(--kendo-color-on-success, white);
    background-color: var(--kendo-color-success, #278200);
}

.k-badge-solid-warning {
    border-color: var(--kendo-color-warning, #F5A600);
    color: var(--kendo-color-on-warning, white) !important;
    background-color: var(--kendo-color-warning, #F5A600);
}

.k-badge-solid-error {
    border-color: var(--kendo-color-error, #D51923);
    color: var(--kendo-color-on-error, white);
    background-color: var(--kendo-color-error, #D51923);
}

.k-badge-solid-light {
    border-color: var(--kendo-color-light, #757575);
    color: white;
    background-color: #6e687c;
}

/* Excel/PDF export toolbar buttons (custom <img> logos, not Telerik icons) —
   without explicit sizing these <img> tags render at native pixel dimensions. */
.custom-excel-pdf-btn {
    padding-inline: 0.5rem !important;
    margin-right: 10px;
    padding-block: 0.1rem !important;
}

.pdf-icon {
    width: 34px;
    height: 30px;
    margin: -22px;
}

.excel-icon {
    width: 30px;
    height: 33px;
    margin: -22px;
}

/* Page-level title bar above a grid (ConsentPage.razor's new pattern, see
   SOW/devp_status.md §14) — ported from the reference project's ath-brand.css
   §23, which wasn't included when only sections 1-17 were copied in. */
.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--ath-content-bg);
    gap: 12px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ath-navy);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.page-title-icon {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.page-count-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 0 9px;
    height: 26px;
    border-radius: 13px;
    background: var(--ath-navy);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}