/* *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */
body {
    background-color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: "Poppins", sans-serif;
}

.scrollable-content {
    margin-top: 20px;
    margin-bottom: 100px;
    padding-bottom: calc(160px + env(safe-area-inset-bottom));
}

.slide-confirm-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom));
    z-index: 999;
    pointer-events: none;
}
.slide-confirm-container .slide-track {
    pointer-events: auto;
    max-width: 400px;
    margin: 0 auto;
}

.bg-purple {
    background: #0a32ad 0%;
}

.bottom-nav .nav-link {
    background-color: white !important;
}

.bottom-nav .nav-link i,
.bottom-nav .nav-link small {
    color: grey;
}

.bottom-nav .nav-link.active i,
.bottom-nav .nav-link.active small {
    color: purple !important;
}

/* LOGIN */
.btn-purple {
    background-color: #3f2f96;
    color: white;
}

.bullet {
    width: 10px;
    height: 10px;
    background-color: #3f2f96;
    border-radius: 50%;
}

.circle {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    z-index: 1;
}

.circle1 {
    width: 100px;
    height: 100px;
    top: 200px;
    left: -10px;
}

.circle2 {
    width: 60px;
    height: 60px;
    top: 230px;
    left: 74px;
}

.circle3 {
    width: 20px;
    height: 20px;
    top: 210px;
    left: 100px;
}

.circle4 {
    width: 80px;
    height: 80px;
    top: 215px;
    /* right: 0; */
    right: -10px;
}

.circle5 {
    width: 40px;
    height: 40px;
    top: 250px;
    right: 60px;
}

.circle6 {
    width: 30px;
    height: 30px;
    top: 215px;
    right: 70px;
}

.floating-box {
    background-color: #2e8b57;
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 12px;
    font-weight: bold;

    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 10;
}

.row-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.label {
    color: #ffff;
}

.value {
    text-align: right;
    max-width: 65%;
    text-overflow: ellipsis;
    overflow: hidden;
}

.alamat-box {
    background-color: #f2f2f2;
    border-radius: 10px;
    padding: 15px;
    width: 90%;
    max-width: 350px;
    margin: 60px auto 0 auto;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

/* css geser button */
.slide-confirm-container {
    padding: 20px;
}

.slide-track {
    background-color: #e0eaff !important;
    position: relative;
    width: 300px;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    overflow: hidden;
}

.slide-button {
    position: absolute;
    left: 0;
    top: 6px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: #004494 !important; /* biru gelap */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slide-label {
    margin: 0 auto;
    z-index: 1;
    pointer-events: none;
}

.total-muat-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 300px;
    margin: 0 auto;
}

.total-muat-label {
    color: #777;
    font-weight: 500;
}

.total-muat-input {
    display: flex;
    align-items: center;
    border: 1.5px solid #7a5af5;
    border-radius: 8px;
    padding: 4px 10px;
    background: #fff;
    min-width: 110px;
}

.total-muat-input input {
    border: none;
    outline: none;
    width: 50px;
    font-weight: 600;
    background: transparent;
    padding: 0;
    margin: 0;
}

.total-muat-input .unit {
    font-weight: 700;
    margin-left: 6px;
}

.foto-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    color: #007bff;
    background: #fff;
    max-width: 400px;
    margin: 0 auto;
}

.foto-upload-box:hover {
    background: #f9f9f9;
}

.foto-upload-box i {
    font-size: 28px;
    margin-bottom: 6px;
}

.foto-upload-box span {
    font-weight: 500;
}

.foto-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    background: #fff;
    max-width: 400px;
    margin: 0 auto;
    transition: border-color 0.2s, background 0.2s;
}
.foto-upload-box:hover {
    background: #f9f9f9;
}

.foto-upload-box .icon {
    font-size: 28px;
    color: #0d6efd;
    margin-bottom: 6px;
}
.foto-upload-box .placeholder {
    font-weight: 500;
    color: #6c757d;
}

.foto-upload-box .preview,
.foto-upload-box .filename {
    display: none;
}
.foto-upload-box .preview {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin: 6px 0 4px;
}
.foto-upload-box .filename {
    font-size: 0.9rem;
    color: #555;
}

.foto-upload-box.has-file {
    border-color: #7a5af5;
}
.foto-upload-box.has-file .icon,
.foto-upload-box.has-file .placeholder {
    display: none;
}
.foto-upload-box.has-file .preview,
.foto-upload-box.has-file .filename {
    display: block;
}

.btn-delete-foto {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
}

.btn-delete-foto:hover {
    background: #bb2d3b;
}

.btn-delete-foto i {
    font-size: 1rem;
}

.section-divider {
    position: relative;
    text-align: left;
    margin: 16px 0;
}
.section-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}
.section-divider > span {
    position: relative;
    background: #fff;
    padding: 0 8px;
    color: #6c757d;
    font-weight: 600;
}

.unit-row label {
    margin: 0;
    color: #777;
    font-weight: 600;
}

.form-rows {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.unit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.unit-row label {
    margin: 0;
    color: #777;
}

.unit-input {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #7a5af5;
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
    min-width: 140px;
}
.unit-input input {
    border: 0;
    outline: 0;
    width: 90px;
    max-width: 120px;
    font-weight: 600;
    background: transparent;
    padding: 0;
    margin: 0;
    text-align: left;
}
.unit-input .unit {
    font-weight: 700;
}

.unit-input input::-webkit-outer-spin-button,
.unit-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.unit-input input[type="number"] {
    -moz-appearance: textfield;
}

.section-label {
    color: #1f6feb;
    font-weight: 700;
    margin-bottom: 6px;
}

.sign-box {
    border: 2px solid #1f6feb;
    border-radius: 8px;
    padding: 6px;
    background: #fff;
}
.sign-box canvas {
    width: 100%;
    height: 150px;
    display: block;
    border-radius: 4px;
    background: #fff;
}

.doc-card {
    position: relative;
    border: 2px solid #7a5af5;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    min-height: 120px;
}
.doc-title {
    position: absolute;
    top: -12px;
    left: 10px;
    background: #fff;
    color: #7a5af5;
    border: 1px solid #7a5af5;
    font-weight: 700;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.85rem;
}
.doc-remove {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #e55353;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}
.doc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #0d6efd;
    cursor: pointer;
    min-height: 140px;
    border-radius: 6px;
}
.doc-placeholder i {
    font-size: 28px;
}
.doc-preview {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.foto-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}
.foto-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #7a5af5;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    background: #fff;
    width: 100%;
}
.foto-upload-box .icon {
    font-size: 28px;
    color: #0d6efd;
    margin-bottom: 6px;
}
.foto-upload-box .placeholder {
    font-weight: 600;
    color: #6c757d;
}
.foto-upload-box .preview,
.foto-upload-box .filename {
    display: none;
}
.foto-upload-box .preview {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin: 6px 0 4px;
}
.foto-upload-box .filename {
    font-size: 0.9rem;
    color: #555;
}
.foto-upload-box.has-file .icon,
.foto-upload-box.has-file .placeholder {
    display: none;
}
.foto-upload-box.has-file .preview,
.foto-upload-box.has-file .filename {
    display: block;
}
.btn-delete-foto {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 6px;
}

.inline-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.inline-input label {
    margin: 0;
    color: #777;
    font-weight: 700;
}
.inline-input .form-control {
    max-width: 160px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

.next-order {
    display: inline-block;

    color: #1f6feb;
    background: #fff;
    font-weight: 700;

    padding: 10px 14px;
    text-align: center;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-next-order {
    display: inline-block;
    border: 2px solid #1f6feb;
    color: #1f6feb;
    background: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn-next-order:active,
.btn-next-order:hover {
    background: #eaf2ff;
    color: #174ea6;
    box-shadow: 0 2px 6px rgba(23, 78, 166, 0.15);
}

.confirm-note {
    border: 2px solid #f1b4b7;
    color: #c9343a;
    background: #fff7f7;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    text-align: center;
}

/* MENU UJP */
.ujp-wrap {
    max-width: 420px;
    margin: 16px auto 96px;
    padding: 0 12px;
}

.btn-ujp {
    display: block;
    background: #27ae60;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.25);
    margin-bottom: 12px;
}
.btn-ujp:active {
    transform: translateY(1px);
}

.card-ujp {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
}

.link-date {
    color: #1f6feb;
    text-decoration: none;
}
.link-date:hover {
    text-decoration: underline;
}

body {
    font-family: "Poppins", sans-serif;
}

.history-wrap {
    max-width: 420px;
    margin: 12px auto 96px;
    padding: 0 12px;
}

.history-hero {
    position: relative;
    height: 84px;
    border-radius: 12px;
    background: linear-gradient(180deg, #2f57d0 0%, #3f6be6 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}
.btn-back {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #2f57d0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.history-chip {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -14px;
    background: #f4a64b;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.history-card {
    background: #fff;
    border: 1.5px solid #e6e8ee;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    margin-top: 20px;
}
.history-card .muted {
    color: #8a8f9c;
    font-size: 0.82rem;
    font-weight: 600;
}
.history-card .strong {
    color: #2a2e36;
    font-weight: 700;
}

.history-card .row-top,
.history-card .row-mid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.history-card .pair {
    margin-bottom: 8px;
}
.history-card .text-end {
    text-align: right;
}

.date-link {
    color: #2f57d0;
    font-weight: 700;
    text-decoration: none;
}
.date-link:hover {
    text-decoration: underline;
}

@media (max-width: 360px) {
    .history-card .row-mid {
        flex-direction: column;
        gap: 6px;
    }
    .history-card .text-end {
        text-align: left;
    }
}

/* MENU PROFIL */
body {
    font-family: "Poppins", sans-serif;
}

.profile-wrap {
    max-width: 420px;
    margin: 12px auto 96px;
    padding: 0 12px;
}

.profile-hero {
    background: linear-gradient(180deg, #2f57d0 0%, #3f6be6 100%);
    border-radius: 12px;
    padding: 12px;
    color: #fff;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin-bottom: 10px;
}
.btn-back {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #2f57d0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.hero-row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    flex: 0 0 72px;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.driver-name {
    color: #cfe2ff;
    font-weight: 700;
    text-decoration: none;
}
.driver-name:hover {
    text-decoration: underline;
}
.sim-line {
    display: flex;
    gap: 8px;
    align-items: center;
    opacity: 0.95;
}
.sim-type {
    margin-left: auto;
    font-weight: 700;
}
.sim-valid {
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-sim-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #e55353;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(229, 83, 83, 0.25);
}

.section-panel {
    background: #e9f2ff;
    border: 2px solid #d7e5ff;
    border-radius: 12px;
    padding: 10px;
}
.section-title {
    background: #fff;
    color: #2f57d0;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: block;
    width: max-content;
    margin: 0 auto 10px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.tile {
    background: #fff;
    border: 1.5px solid #e6e8ee;
    border-radius: 10px;
    padding: 8px 10px;
    min-height: 64px;
}
.muted {
    color: #8a8f9c;
    font-size: 0.82rem;
    font-weight: 600;
}
.strong {
    color: #2a2e36;
    font-weight: 700;
}
.sub {
    color: #8a8f9c;
    font-weight: 600;
    font-size: 0.8rem;
    margin-left: 4px;
}

.addr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.addr-text .strong {
    margin-bottom: 2px;
}
.btn-map {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 92px;
    font-weight: 700;
}

@media (max-width: 360px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}
