#filters-cont .filters-active {
    cursor: pointer;
    position: relative;
}

#filters-cont .filters-active .remove {
    display: none;
}

#filters-cont .filters-active:hover {
    background-color: #ca064d;
    color: #fff;
}

#filters-cont .filters-active:hover .text {
    visibility: hidden;
}

#filters-cont .filters-active:hover .remove {
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    line-height: 30px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    color: #fff;
}

.image-remove {
    cursor: pointer;
    position: relative;
}

.image-remove .remove {
    display: none;
}

.image-remove:hover {
    background-image: none !important;
    background-color: #ca064d;
}

.image-remove:hover .remove {
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    line-height: 80px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    color: #fff;
}

table.md-calendar-day-header {
    width: 346px;
}

.seatReserved {
    font-size: 20px;
    font-weight: bold;
}

.blink_me {
    color: red;
    animation: blinker 1.2s linear infinite;
}

.blink_me_2 {
    color: #00AB00;
    animation: blinker 2.2s linear infinite;
    margin-left: 5px;
    vertical-align: super;
}

.blink_me_2::before {
    font-size: 16px !important;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.trip-container {
    border-bottom: 1px solid #ccc;
    margin-top: 5px;
}

.stopTime-line {
    border-bottom: 3px solid #ca064d;
}

.stopTime-desc {
    /* padding: 14px 40px 0px 40px; */
    /* white-space: nowrap; */
    margin-bottom: 20px;
    margin-top: -40px;
    /* clear: both; */
    height: 206px;
    transform: rotate(-60deg);
    text-align: left;
    padding-top: 128px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.stopTime-time {
    margin-bottom: 5px;
}

.stopTime-pickup-dropoff {
    height: 24px;
    margin-bottom: 30px;
}

.stopTime-pickup-dropoff > .mdi {
    vertical-align: middle;
}

.stopTime-pickup-dropoff .mdi-cancel {
    color: #ca064d;
}

.stopTime-pickup-dropoff .mdi-combined {
    position: relative;
    display: inline-block;
    width: 2em;
    height: 1em;
    line-height: 1em;
}

.stopTime-pickup-dropoff .mdi-combined > .mdi:first-child {
    opacity: 0.4;
}
.stopTime-pickup-dropoff .mdi-combined > .mdi:first-child:before {
    font-size: 18px;
    padding-top: 3px;
}

.stopTime-pickup-dropoff .mdi-combined .mdi,
.stopTime-pickup-dropoff .mdi-stack-1,
.stopTime-pickup-dropoff .mdi-stack-2 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
}

.stopTime-desc p:first-child{
    font-weight: bold;
}

.stopTime-info {
    line-height: normal;
    text-align: center;
    flex: 0 0 150px;
}

.stopTime-info:first-child {
    margin-left: -30px;
}

.stopTime-info:first-child .stopTime-line {
    width: 50%;
    float: right;
    transform: rotate(-14deg);
    margin-top: -11px;
    margin-right: -2px;
}

.stopTime-info:last-child .stopTime-line {
    width: 50%;
    float: left;
    transform: rotate(-14deg);
    margin-top: 11px;
    margin-left: -2px;
}

.stopTime-dot {
    margin: 0px auto -6px auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ca064d;
}

.stopTime-info:first-child .stopTime-dot {
    margin-top: 50px;
}

.stopTime-info:last-child .stopTime-dot {
    margin-top: -20px;
}

.unavailable {
    color: #666;
    background-color: #ddd;
}

.unavailable td:first-child {
    text-decoration: line-through;
}

md-switch {
    margin-top: 0px !important;
}

#gtfs-add md-input-container .md-errors-spacer {
    display: none;
}

#gtfs-add md-input-container, #gtfs-add md-select {
    margin-bottom: 0px !important;
    margin-top: 15px;
    padding: 0px !important;
    height: 30px;
}

#gtfs-add md-select {
    overflow: hidden;
}

md-menu-item .mdi {
    color: rgba(0,0,0,0.54);
    margin: auto 16px auto 0;
    vertical-align: middle;
}

md-menu-item span {
    vertical-align: middle;
}

.routeLogoPrev {
    border: 1px solid #d2d2d2;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center center;
}

#planningPage .mdi-seat-recline-normal:before {
    font-size: 20px;
}

#editDialog #gtfs-add td input {
    min-width: 100px;
}

md-dialog#editDialog {
    max-width: 95%;
}

#editDialog table {
    border: none !important;
}

/* Styling for route description textarea */
.route-desc-textarea {
    width: 100%;
    min-width: 200px;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    resize: vertical;
}

/* Make sure the cell has enough space */
#editDialog td:nth-child(6) {
    min-width: 250px;
    max-width: 350px;
    vertical-align: top;
}

/* Restore and improve the text editor toolbar styling */
.text-editor-toolbar {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    padding: 4px 8px;
    min-height: 48px;
    flex-wrap: wrap; /* Allow wrapping if needed */
}

/* Create a container for the buttons */
.text-editor-toolbar .button-group {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Create a container for the switch */
.text-editor-toolbar .switch-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

/* Override Angular Material's md-switch styles with !important */
.text-editor-toolbar .md-switch {
    margin: 0 !important;
    height: 36px !important;
}

.text-editor-toolbar .md-switch .md-container {
    margin: 0 !important;
}

.text-editor-toolbar .md-switch .md-label {
    margin: 0 0 0 8px !important;
    font-size: 14px !important;
}

/* HTML Preview styling */
.html-preview {
    width: 100%;
    min-width: 200px;
    min-height: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
    overflow-y: auto;
}

.html-preview a {
    color: #2196F3;
    text-decoration: underline;
}

.html-preview ul {
    padding-left: 20px;
}

/* Style for disabled buttons */
.text-editor-toolbar .md-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Activity Dialog Styles */
.activity-dialog {
    min-width: 600px;
    max-width: 800px;
}

.activity-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.activity-header h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.activity-summary {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.activity-timeline {
    position: relative;
    margin-right: 15px;
    padding-inline: 8px;
    padding-top: 2px;
    flex-shrink: 0;
}

.activity-dot {
    width: 12px;
    height: 12px;
    background-color: #ca064d;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #ca064d;
    z-index: 2;
    position: relative;
}

.activity-line {
    position: absolute;
    top: 12px;
    left: 13px;
    width: 2px;
    height: calc(100% + 8px);
    background-color: #e0e0e0;
    z-index: 1;
}

.activity-content {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #ca064d;
}

.activity-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.activity-user {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #333;
}

.activity-user-icon {
    margin-right: 8px;
    color: #ca064d;
    font-size: 18px;
    width: 18px;
    aspect-ratio: 1;
}

.activity-user-name {
    margin-right: 5px;
}

.activity-user-email {
    color: #666;
    font-size: 12px;
}

.activity-date {
    color: #666;
    font-size: 12px;
}

.activity-description {
    margin-bottom: 10px;
    color: #333;
}

.activity-details {
    background-color: #fff;
    border-radius: 4px;
    padding: 10px;
    border: 1px solid #e0e0e0;
}

.activity-detail-item {
    display: flex;
    margin-bottom: 5px;
    font-size: 12px;
}

.activity-detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 500;
    color: #666;
    min-width: 100px;
    margin-right: 10px;
}

.detail-value {
    color: #333;
    word-break: break-word;
}

.no-activity {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-activity-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.no-activity p {
    margin: 0;
    font-size: 16px;
}

@media screen and (max-width: 600px) {
    .activity-dialog {
        min-width: 90vw;
        max-width: 90vw;
    }

    .activity-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-date {
        margin-top: 5px;
    }

    .activity-detail-item {
        flex-direction: column;
    }

    .detail-label {
        min-width: auto;
        margin-bottom: 2px;
    }
}

/* Revision Comment Styles */
.revision-comment-section {
    margin-top: 16px;
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
}

.revision-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}

.revision-comment-header md-icon {
    margin-right: 8px;
    font-size: 18px;
}

.revision-comment-content {
    background-color: #f5f5f5;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #ca064d;
}

.revision-comment-content p {
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.revision-comment-meta {
    color: #666;
    font-size: 12px;
}

.revision-comment-dialog .md-dialog-content {
    min-width: 400px;
}

.revision-comment-dialog textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    font-family: inherit;
    resize: vertical;
}
