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

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

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

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

.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 {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

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

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

.custom-dialog-rounded {
    border-radius: 15px;
}

.scrollable-dialog {
      max-height: 80vh;
      max-width: 100%;
      overflow-y: auto;
      overflow-x: auto;
}


.enquiry-cell .edit-icon {
    visibility: hidden !important;
}

.hoverable-row:hover .enquiry-cell .edit-icon {
    visibility: visible !important;
}



/* set the width of the Select dropdown scoped to the CallsGridComponent only */
body.calls-grid-active .mud-popover.mud-popover-relative-width[style*="max-width"] {
    max-width: 150px !important;
    min-width: 150px !important;
    width: auto !important;
    margin-left: -20px;
}
/* must exist in global css to hit the wider page body DOM */


.mud-table-container {
    margin-top: 20px !important;
}


.custom-expansion-panels {
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    padding: 16px;
    color: blue;
}

.custom-expansion-panel {
    border-radius: 12px !important;
    margin-bottom: 16px;
    background-color: #f9fafb;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    color: blue;
}

    .custom-expansion-panel:hover {
        box-shadow: 0 8px 18px rgba(0,0,0,0.25);

    }

.custom-panel {
    background-color: #fff;
    border-radius: 8px;
    padding: 8px;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.07);
}


.custom-panel-fixed {
    background-color: #fff;
    border-radius: 8px;
    padding: 8px;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.07);
    min-height: 255px;
}

.custom-expansion-panel .mud-expansion-panel-expand-icon svg {
    color: #1976d2;
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 24px;
    color: blue;
}

.custom-expansion-panel.mud-expanded .mud-expansion-panel-expand-icon {
    transform: rotate(90deg);
    color: blue;
}

.custom-expansion-panel .mud-expansion-panel-header {
    font-weight: 600;
    font-size: 1.25rem; /* bigger */
    color: #555555; /* softer dark grey */
    letter-spacing: 0.03em;
    padding-left: 24px;
    border-bottom: 2px solid #1976d2; /* keep the underline blue */
    user-select: none;
    color: blue;
}

    .custom-expansion-panel .mud-expansion-panel-header:hover {
        background-color: #e3f2fd;
        cursor: pointer;
        color: blue;
    }
/* Hide the edit icon by default */
.edit-icon {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: auto; /* Allow clicking when visible */
}

/* Show the icon when hovering over the entire row */
.mud-table-row:hover .edit-icon {
    opacity: 1;
}

.form-container {
    height: calc(100vh - 32px); /* Adjust based on navbar/footer presence */
    overflow-y: auto;
    padding: 8px;
    box-sizing: border-box;
}

.form-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 8px;
    box-sizing: border-box;
    margin:0px;
}

.form-scrollable-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 16px;
}

.form-footer {
    flex-shrink: 0;
    padding-top: 8px;
    background-color: #fff; /* optional: matches paper */
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05); /* optional subtle top shadow */
    z-index: 1;
}

.search-box-quickfilter input {
    height: 32px !important;
    font-size: 0.85rem !important;
    padding: 4px !important;
    line-height: 1.5 !important;
    box-sizing: border-box;
}

.search-box-quickfilter .mud-input-adornment {
    margin-right: 4px !important; /* Reduce space between icon and text */
    display: flex;
    justify-content: flex-start;
}

.search-box-quickfilter .mud-input-control {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.search-box-quickfilter {
    margin-left: 8px;
}

.search-box-quickfilter {
    margin-left: 8px;
}


.dot-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}



 .compact-grid .mud-table-cell {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.810rem;
    font-weight: 400;
    min-width: 130px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

 .compact-grid .mud-table-head-cell {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 4px 8px;
}

 .filter-control {
    font-size: 0.25rem;
    min-height: 32px;
    max-height: 32px;
    padding: 0px 8px;
    background-color: transparent;
    border: 1.0px solid rgba(0, 0, 0, 0.38);
    border-radius: 4px;
    box-sizing: border-box;
    max-width: 88px;
}

 .mud-select .mud-input-slot {
    font-size: 0.25rem;
    min-height: 32px;
    max-height: 32px;
    padding: 0px 8px;
    border: none;
    background-color: transparent;
    box-sizing: border-box;
}

 .mud-select.filter-control .mud-input-slot {
    transform: none !important;
    font-size: 0.75rem !important;
    padding: 0;
    margin: 0;
    line-height: normal;
}

 .mud-select.filter-control .mud-select-input {
    font-size: 0.75rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

 .mud-select.filter-control .mud-input-control {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 32px;
    max-height: 32px;
    display: flex;
    align-items: flex-start;
    min-width: 158px;
}

 .mud-select.filter-control .mud-input-adornment .mud-icon-root {
    font-size: 10px;
}

 .mud-select .mud-input-slot {
    transform: translateY(5px);
    min-height: 32px;
    max-height: 32px;
    font-size: 0.25rem;
    padding: 0px 8px;
    border: none;
    background-color: transparent;
    box-sizing: border-box;
}

 .mud-select.filter-control .mud-input-slot {
    transform: none;
    padding: 0px 8px;
    font-size: inherit;
}

 .mud-select.filter-control .mud-select-input {
    font-size: 0.85rem !important;
/*    padding:  2px !important;
    line-height: 2.5;*/
}

 .mud-select.filter-control {
    min-height: 32px;
    max-height: 32px;
}

 .filter-control .mud-input-underline {
    visibility: visible;
}

 .filter-control .mud-input-label {
    font-size: 0.25rem;
    transform: translate(14px, 12px) scale(1);
}

 .filter-control input {
    padding-left: 12px;
    font-size: 0.25rem;
    max-width: 90px !important;
}

 .filter-control .mud-input-adornment {
    margin-left: auto;
    margin-right: 1px;
}

     .filter-control .mud-input-adornment .mud-icon-root {
        font-size: 15px;
    }

 .filter-control .mud-input-underline::before,
 .filter-control .mud-input-underline::after {
    display: none !important;
}

 .input {
    margin-bottom: -33px;
    padding-left: 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    text-overflow: clip;
    overflow: hidden;
    text-rendering: auto;
}

.filter-wrapper {
    position: relative;
    top: 16px;
}

 .filter-row {
    margin-top: 48px;
    padding-top: 44px;
}

 .excel-export {
    background-color: blue !important;
    color: white !important;
    margin-right: 20px !important;
}

 .search-box .mud-input-root {
    min-height: 35px !important;
    max-height: 35px !important;
    margin: 0px !important;
    padding: 0px !important;
    font-size: 0.8rem;
}

.search-box .mud-input-underline {
    display: none;
}

 .search-box .mud-input-slot {
    padding: 4px 4px;
}

 .search-box .mud-input-adornment {
    margin-left: -10px;
    margin-right: 4px;
}

 .grid-header-filter {
    margin-top: 4px;
    padding-top: 4px;
}

 .mud-date-picker.filter-control .mud-picker-input {
    font-size: 0.15rem !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0px 4px !important;
    box-sizing: border-box;
}

.mud-date-picker.filter-control .mud-input-slot {
    font-size: 0.15rem !important;
    padding: 0px 0px !important;
}

 .mud-select.filter-control .mud-input-adornment {
    display: none !important;
}

 .fromTo-date-picker {
    min-width: 160px !important;
    max-width: 160px !important;
    font-size: small !important;
    place-items: left !important;
}

.mud-picker.filter-control .mud-input.mud-input-text {
    font-size: 0.85rem;
}

.filter-control .mud-input-slot {
    text-overflow: clip !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

 .filter-control .mud-input-control {
    text-overflow: clip !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}


.mud-input-adornment-start {
    margin-left: -5 !important;
    padding-left: 0 !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.light-grey-icon {
    color: dimgrey;
}

.header-grey-background {
    background-color: #f5f5f5; /* Light grey */
}

.mud-select.filter-control .mud-select-input {
    font-size: 0.75rem !important;
    padding: 0 2px !important;
    line-height: 2.5;
}



/* Hide top banner iframe + its container if Google injects one */
html body > iframe.goog-te-banner-frame,
html body > .goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

/* Google sometimes wraps with a skiptranslate div */
html body > div.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

/* Google pushes body down when banner is shown; force it back */
html, body {
    margin-top: 0 !important;
    top: 0 !important;
}


