/* Port Authority Mobile Operations CSS */

/* Action buttons — big touch targets */
.ops-action-btn {
    min-height: 48px;
    min-width: 100px;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ops-action-btn-arrive {
    background-color: #198754;
}
.ops-action-btn-arrive:hover {
    background-color: #157347;
}
.ops-action-btn-depart {
    background-color: #0d6efd;
}
.ops-action-btn-depart:hover {
    background-color: #0b5ed7;
}

/* Operations cards */
.ops-card {
    border-left: 4px solid #dee2e6;
    padding: 12px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.ops-card-scheduled {
    border-left-color: #0d6efd;
}
.ops-card-berthed {
    border-left-color: #198754;
}
.ops-card-delayed {
    border-left-color: #ffc107;
}
.ops-card-cancelled {
    border-left-color: #dc3545;
    opacity: 0.6;
}
.ops-card-departed {
    border-left-color: #6c757d;
}

/* Overdue indicator */
.overdue {
    border-left-color: #dc3545 !important;
    background-color: #fff3cd !important;
}

/* Stat cards */
.ops-stat {
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 8px;
}
.ops-stat .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}
.ops-stat .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 4px;
}
.ops-stat .stat-detail {
    font-size: 0.75rem;
    color: #adb5bd;
}

/* Berth status dots */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}
.status-free {
    background-color: #198754;
}
.status-occupied {
    background-color: #dc3545;
}
.status-maintenance {
    background-color: #fd7e14;
}

/* Berth status card */
.berth-status-card {
    border-left: 5px solid #dee2e6;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.15s;
}
.berth-status-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: inherit;
}
.berth-status-card.status-card-occupied {
    border-left-color: #dc3545;
}
.berth-status-card.status-card-free {
    border-left-color: #198754;
}
.berth-status-card.status-card-maintenance {
    border-left-color: #fd7e14;
}

/* Quick action buttons on list rows */
.quick-action-btn {
    min-height: 36px;
    min-width: 80px;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
    border: none;
    color: #fff;
    padding: 4px 12px;
}
.quick-action-arrive {
    background-color: #198754;
}
.quick-action-arrive:hover {
    background-color: #157347;
}
.quick-action-depart {
    background-color: #0d6efd;
}
.quick-action-depart:hover {
    background-color: #0b5ed7;
}

/* Card metadata line */
.ops-card-meta {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.ops-card-meta .badge {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Berth occupancy progress bar */
.berth-occupancy-bar {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    overflow: hidden;
    margin-top: 4px;
}
.berth-occupancy-bar .bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

/* Berth mini grid */
.berth-mini-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
}
.berth-mini-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 28px;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    padding: 0 8px;
    cursor: default;
}
.berth-mini-dot.dot-free {
    background-color: #198754;
}
.berth-mini-dot.dot-occupied {
    background-color: #dc3545;
}
.berth-mini-dot.dot-maintenance {
    background-color: #fd7e14;
}

/* Week strip */
.week-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}
.week-day {
    flex: 0 0 auto;
    min-width: 80px;
    text-align: center;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 0.8rem;
}
.week-day .day-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.week-day .day-counts {
    color: #6c757d;
    font-size: 0.75rem;
}

/* Tomorrow preview */
.tomorrow-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
}

/* Print styles */
@media print {
    .navbar, .quick-actions-bar, .no-print {
        display: none !important;
    }
    .ops-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .ops-stat .stat-value {
        font-size: 1.5rem;
    }
    .ops-stat .stat-label {
        font-size: 0.7rem;
    }
    .ops-action-btn {
        min-width: 80px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .ops-card {
        padding: 10px;
    }
}
