/* Filters */
.grid-filters {
    align-items: flex-end;
}
.grid-filters label {
    font-size: 0.8rem;
}
.grid-filters input, .grid-filters select {
    padding: 8px;
    font-size: 0.8rem;
    line-height: 1.4em;
}
.grid-filters .k-widget.k-daterangepicker {
    width: 262px;
    max-width: 100%;
    background: none;
}
.grid-filters .k-widget.k-daterangepicker .k-textbox-container {
    width: 8rem;
    padding: 0;
}
.grid-filters .k-widget.k-daterangepicker .k-label {
    opacity: 0;
}
.grid-filters .k-widget.k-daterangepicker input {
    padding: 7px 2px;
    border-radius: 0;
}
.grid-filters .k-dropdown-wrap {
    border-radius: 0;
}
.grid-filters .k-dropdown-wrap .k-input {
    padding: 7px 2px 6px;
    border-radius: 0;
    font-size: 0.8rem;
    line-height: 1.4em;
}

.clear-filters {
    align-items: center;
    margin: auto 0 15px;
    padding: 7px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #c11919;
    font-size: 0.9rem;
    line-height: 1.4em;
    white-space: nowrap;
}
.clear-filters:hover {
    border: 1px solid #c11919;
    background: #c11919;
    color: #fff;
}

/* General Table Container */
.kendoGridContainer table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

/* Column Headers */
.kendoGridContainer .k-grid-header th.k-header {
    text-transform: uppercase;
    font-size: 0.8rem;
    color: black;
    text-align: center;
    padding: 12px 8px;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #d1d1d1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

/* Links in Column Headers */
.kendoGridContainer .k-grid-header th.k-header a {
    color: inherit;
    text-decoration: none;
}

/* Row Styles */
.kendoGridContainer table td {
    padding: 12px 8px;
    font-size: 0.9em;
    line-height: 1.3em;
    color: #333;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}
.kendoGridContainer table td > span.days {
    display: block;
    font-size: 0.75rem;
    line-height: 1.4em;
}

/* Status */
.kendoGridContainer table td .status {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem;
    border-radius: 2rem;
    background: #999;
    color: #fff;
    white-space: nowrap;
}
.kendoGridContainer table td span {
    overflow: visible;
}
.kendoGridContainer table td span.status-green {
    background: #22a564;
}
.kendoGridContainer table td span.status-blue {
    background: #0D5587;
}
.kendoGridContainer table td span.status-yellow {
    background: #eae200;
    text-shadow: 0 0 6px #843b00;
}
.kendoGridContainer table td span.status-red {
    background: #c11919;
}
.kendoGridContainer table td span.status span.k-icon {
    background: none;
    font-size: 1.6rem;
}
.kendoGridContainer table td span.status span.k-icon img {
    width: 24px;
    height: auto;
}

.kendoGridContainer table td span.truncate {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Alternating Row Colors */
.kendoGridContainer .k-alt {
    background-color: #f9fcff;
}

/* Row Hover Effect */
.kendoGridContainer table tbody tr:hover {
    background-color: #eef5ff;
    cursor: pointer;
}

/* Overdue Row Highlight */
.kendoGridContainer tr.overdue {
    background-color: rgba(255, 99, 71, 0.7);
    color: #d9534f;
    font-weight: bold;
}

div.k-grid-header {
    padding-right: 0 !important;
}

/* Buttons */
.kendoGridContainer tbody td .button {
    background-color: #229cd1;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.kendoGridContainer tbody td .button:hover {
    background-color: #1a6ea5;
    transform: translateY(-1px);
    /* Slight lift on hover */
}

/* Pagination Styles */
.kendoGridContainer .k-grid .k-pager-wrap {
    border: none;
    background-color: #f8f8f8;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.kendoGridContainer .k-grid .k-pager-wrap .k-link {
    color: #229cd1;
    text-decoration: none;
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.kendoGridContainer .k-grid .k-pager-wrap .k-link:hover {
    background-color: #229cd1;
    color: #fff;
}

.k-pager-numbers-wrap {
    z-index: 1;
}

/* No Records Placeholder */
.k-grid-norecords {
    text-align: center;
    font-size: 1em;
    color: #663;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.k-tooltip {
    font-size: 12px;
    color: #333;
    padding: 5px 10px;
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 5px;
}

