﻿/* GENERAL LAYOUT */

body {
    background-color: #f6f8fb !important;
    font-family: Inter, Roboto, "Segoe UI", sans-serif;
}

/* CARD STYLE */
.card {
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* BUTTONS */
.btn-primary {
    background-color: #4C8BF5 !important;
    border-color: #4C8BF5 !important;
    font-weight: 500;
    padding: 8px 20px !important;
    border-radius: 8px !important;
}

.btn-outline-primary {
    border-radius: 8px !important;
}

/* FILTER LABELS */
.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #4d4f5c;
}

/* SELECT & INPUT */
.form-control,
.form-select {
    border-radius: 8px !important;
    border-color: #dce1eb !important;
    height: 44px;
    box-shadow: none !important;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #4C8BF5 !important;
    }

/* TABLE STYLE */

.table thead th {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    border-bottom: 2px solid #eef0f4 !important;
}

.table tbody tr {
    border-bottom: 1px solid #f1f2f6;
}

    .table tbody tr:hover {
        background-color: #f8faff;
    }

/* STATUS COLORS */

.status-running {
    color: #14b45c !important;
    font-weight: 600;
}

.status-completed {
    color: #007bff !important;
    font-weight: 600;
}

.status-delayed {
    color: #ff4d4f !important;
    font-weight: 600;
}

.status-default {
    color: #a0a4ae;
}

/* BADGE FOR “+3 Stops” */

.badge-stop {
    background-color: #eef2ff;
    color: #444cfc;
    font-weight: 500;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
}

/* ACTION BUTTONS */
.btn-sm {
    padding: 4px 14px !important;
    border-radius: 8px !important;
    font-size: 14px;
}

.btn-outline-secondary {
    border-radius: 8px !important;
}

/* TABLE LAST COLUMN ALIGN */
table td:last-child {
    text-align: right;
}
/* DASHBOARD CARDS */
.stats-card {
    border-radius: 14px;
    padding: 22px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
}

.stats-icon {
    font-size: 32px;
    opacity: .7;
}

.stats-value {
    font-size: 32px;
    font-weight: 700;
    margin-top: 4px;
}

.bg-blue {
    background-color: #4C8BF5;
}

.bg-green {
    background-color: #13b77b;
}

.bg-red {
    background-color: #e74c3c;
}

.bg-dark {
    background-color: #4b5563;
}

/* MAP CARD */
.map-box {
    height: 350px;
    background-color: #eef1f7;
    border-radius: 14px;
    border: 1px solid #e2e5ec;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9ca3af;
    font-size: 18px;
}

/* RUNNING JOB LIST */
.running-job-item {
    background-color: #f8faff;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #e4e7ef;
    margin-bottom: 10px;
    cursor: pointer;
    transition: .2s;
}

    .running-job-item:hover {
        background-color: #eef4ff;
        border-color: #cdd9ff;
    }

.running-job-title {
    font-weight: 600;
    font-size: 15px;
}

.running-status {
    background-color: #e6fff3;
    color: #19a368;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 20px;
}

/* RIGHT PANEL */
.right-panel {
    background: white;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e4e7ef;
    height: 100%;
    min-height: 350px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* COMPACT DASHBOARD */

.compact-card {
    height: 110px;
    padding: 16px 18px !important;
    border-radius: 12px !important;
}

    .compact-card .stats-value {
        font-size: 26px;
        margin-top: 2px;
    }

    .compact-card span {
        font-size: 14px;
    }

/* COMPACT FILTER ROW */
.compact-filters .form-select,
.compact-filters .form-control {
    height: 38px !important;
    font-size: 14px;
    padding: 4px 10px !important;
}

.compact-filters .btn {
    height: 38px !important;
    padding: 4px 14px !important;
    font-size: 14px;
}

/* COMPACT MAP */
.map-box-compact {
    height: 280px;
}

/* COMPACT RUNNING JOBS LIST */
.running-job-item {
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
}

.running-job-title {
    font-size: 14px;
}

.running-status {
    padding: 3px 8px !important;
    font-size: 12px;
}

/* COMPACT RIGHT PANEL */
.right-panel-compact {
    padding: 14px !important;
    min-height: 280px;
}

/* COMPACT TABLE */
.table td, .table th {
    padding: 8px 12px !important;
    font-size: 14px;
}
/* Materio compact card */
.m-card {
    background: #ffffff;
    border: 1px solid #e6e9f0;
    border-radius: 12px;
    padding: 20px;
}

/* Compact heading */
.page-title {
    font-weight: 600;
    font-size: 22px;
}

/* Filters */
.filter-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.m-input, .m-select {
    height: 42px !important;
    border-radius: 10px !important;
    border: 1px solid #d7dae4 !important;
    font-size: 14px !important;
    padding: 6px 10px !important;
}

/* Buttons */
.m-btn-primary {
    background-color: #4C8BF5 !important;
    border-color: #4C8BF5 !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    font-size: 14px;
    font-weight: 500;
}

.m-btn-outline {
    border-radius: 10px;
    padding: 8px 16px !important;
    font-size: 14px;
}

/* Table */
.m-table thead th {
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #eff0f3;
    color: #6b7280;
}

.m-table tbody tr td {
    padding: 10px 12px !important;
    font-size: 14px !important;
    border-bottom: 1px solid #f2f4f7;
}

.m-table tbody tr:hover {
    background: #f9fbff;
}

/* Status colors */
.status-running {
    color: #13b77b !important;
    font-weight: 600;
}

.status-delayed {
    color: #ff4d4f !important;
    font-weight: 600;
}

.status-completed {
    color: #4C8BF5 !important;
    font-weight: 600;
}

.status-default {
    color: #a3a7b0;
}

/* Stops badge */
.badge-stop {
    background-color: #eef1ff;
    color: #5a5cf0;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 16px;
    font-weight: 500;
}
/* ================================
   MATERIO FORM UI — ADD/EDIT JOB
================================ */

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.m-form-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.m-input, .m-select, .m-textarea {
    height: 44px;
    border-radius: 10px !important;
    border: 1px solid #d9dce3 !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
}

.m-textarea {
    height: auto !important;
}

.section-divider {
    border-top: 1px solid #e6e9f0;
    margin: 25px 0;
}

.drop-table th {
    font-size: 13px;
    font-weight: 700;
    background: #f9fafb;
    color: #6b7280;
    border-bottom: 1px solid #eceef3;
}

.drop-table td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid #f2f3f7;
}

.add-drop-link {
    font-size: 14px;
    font-weight: 600;
    color: #4C8BF5;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
}

    .add-drop-link i {
        font-size: 16px;
        margin-right: 6px;
    }

.save-btn {
    background: #4C8BF5 !important;
    border-color: #4C8BF5 !important;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}
 
/* ---------- Page (Materio style) ---------- */
.job-status-page {
    padding: 26px;
    background: #f5f7fb;
    color: #111827;
    min-height: 80vh;
    font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Header */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

    .job-header h2 {
        margin: 0;
        font-weight: 700;
        font-size: 28px;
    }

.status-badge {
    background: #05b885;
    color: #fff;
    padding: 10px 18px;
    border-radius: 22px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(5,184,133,0.12);
}

/* Timeline */
.timeline-wrap {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #ecf0f6;
    margin-bottom: 16px;
    position: relative; /* REQUIRED for the line to appear */
}

.timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 6px;
}

    .timeline-step .circle {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #eef2f8;
        border: 2px solid #eef2f8;
        transition: all .2s;
    }

    .timeline-step .label {
        margin-top: 8px;
        display: block;
        font-size: 13px;
        color: #374151;
        font-weight: 600;
    }
/* connecting line */
.timeline::before {
    content: "";
    position: absolute;
    top: 28px;
    height: 4px;
    background: linear-gradient(90deg,#05b885,#1fb3ff);
    border-radius: 10px;
    z-index: 0;
    /* FIXED OFFSETS */
    left: calc(50px + 0.5rem);
    right: calc(50px + 0.5rem);
}

.timeline-step .circle--done {
    background: #05b885;
    border-color: #05b885;
    color: white;
    box-shadow: 0 6px 18px rgba(5,184,133,0.12);
}

.timeline-step .circle--active {
    background: transparent;
    border-color: #1fb3ff;
    box-shadow: 0 0 0 6px rgba(31,179,255,0.08);
    color: #1fb3ff;
    border-width: 3px;
}

/* Main layout */
.grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 18px;
    align-items: start;
}

/* Map card */
.map-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ecf0f6;
    padding: 0;
    overflow: hidden;
    min-height: 360px;
    display: flex;
}

.map-placeholder {
    flex: 1;
    min-height: 360px;
    background-image: url('/images/map-placeholder.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

    /* small truck icon (decorative) */
    .map-placeholder .truck {
        position: absolute;
        width: 56px;
        height: 36px;
        transform: rotate(-15deg);
        left: 46%;
        top: 52%;
        background: url('/images/truck-icon.png') no-repeat center/contain;
    }

/* Right status panel */
.status-panel {
    width: 340px;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #ecf0f6;
}

    .status-panel h6 {
        font-size: 13px;
        text-transform: uppercase;
        color: #374151;
        margin-bottom: 12px;
        letter-spacing: .6px;
    }

.status-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.status-sub {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.divider {
    border-top: 1px solid #eef2f6;
    margin: 12px 0;
}

/* Activity logs */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .activity-list li {
        padding: 8px 0;
        font-size: 14px;
        color: #374151;
    }

/* Drop cards */
.drop-list {
    margin-top: 18px;
}

.drop-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ecf0f6;
    margin-bottom: 14px;
    padding: 12px 16px;
}

.drop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.drop-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

    .drop-left .drop-no {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: #f3f6fb;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: #0f172a;
    }

.drop-title {
    font-weight: 700;
    color: #111827;
    font-size: 15px;
}

.drop-meta {
    color: #6b7280;
    font-size: 13px;
    margin-top: 4px;
}

.drop-status {
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
}

/* status colors */
.status-completed {
    background: #ecfdf3;
    color: #0f5132;
}

.status-inprogress {
    background: #eff7ff;
    color: #0353a4;
}

.status-pending {
    background: #fff7ed;
    color: #92400e;
}

/* document row */
.doc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 0;
    border-top: 1px dashed #eef2f6;
    margin-top: 8px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 13px;
    color: #0f172a;
}

    .doc-item .icon {
        width: 18px;
        height: 18px;
        display: inline-block;
        background: #e6eefb;
        border-radius: 4px;
        text-align: center;
        line-height: 18px;
        font-size: 12px;
        color: #034a9a;
    }

.doc-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* download button */
.btn-download {
    background: transparent;
    border: 0;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
}

/* Utilities */
.small-muted {
    font-size: 13px;
    color: #6b7280;
}

.hr {
    height: 1px;
    background: #eef2f6;
    margin: 12px 0;
}

@media (max-width: 1000px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .status-panel {
        width: 100%;
        order: 2;
    }

    .map-card {
        order: 1;
    }
} 
