.custom-textarea-class {
    height: 150px;
}
.comment-textarea-class {
    height: 200px;
}

/* Telerik fallback styles */
.telerik-fallback {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    background-color: #fafafa;
    min-height: 40px;
}

.telerik-fallback .mud-input-control {
    margin: 0;
}

/* Circuit disconnected warning */
.circuit-disconnected-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 4px 0;
    font-size: 0.875rem;
}

.circuit-disconnected-warning .warning-icon {
    margin-right: 6px;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-details {
    font-size: 0.85em;
    line-height: 1.2;
}

/* MudDialog + TelerikEditor popup fixes */
.mud-dialog {
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.mud-dialog .mud-dialog-content {
    overflow-y: auto !important;
    max-height: calc(100vh - 180px);
}

.mud-dialog .k-editor,
.mud-dialog .k-editor-toolbar {
    overflow: visible;
}

.k-animation-container,
.k-animation-container-shown,
.k-popup,
.k-list-container {
    z-index: 20000 !important;
}

@media (max-width: 768px) {
    .table-responsive {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
}
/* MAIP and SMAIP approval grids share fixed column widths so they line up on the Approvals pages. */
.approvals-grid table {
    table-layout: fixed;
    width: 100%;
}

.approvals-grid td,
.approvals-grid th {
    overflow-wrap: anywhere;
}

.approvals-grid .approval-link {
    color: #1565c0;
    text-decoration: underline;
    cursor: pointer;
}

.approvals-grid .approval-link:hover {
    color: #0d47a1;
}

.approvals-grid th {
    text-align: center;
}

.approvals-grid tr.approval-pending td {
    font-weight: 700;
}

/* "Pending With" is sized to the "Pending Your Action" tag, so trim the cell padding and keep the tag on one line. */
.approvals-grid .pending-col {
    padding-left: 8px;
    padding-right: 8px;
}

.approvals-grid .pending-col .mud-chip {
    white-space: nowrap;
}

.approvals-grid tr.approval-dimmed td {
    opacity: 0.55;
}

.approvals-grid tr.approval-dimmed:hover td {
    opacity: 1;
}
