/* =========================================
   INVOICE CSS
   PART 1
=========================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;
    background:#f5f7fb;
    color:#333;
    line-height:1.6;
}

.section{
    padding:40px 15px;
}

.container{
    max-width:1250px;
    margin:auto;
}

/*============================*/

.invoice-box{

    background:#fff;

    border-radius:20px;

    padding:35px;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

}

/*============================*/

.invoice-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    padding-bottom:25px;

    border-bottom:2px solid #f1f1f1;

    margin-bottom:30px;

}

.invoice-header h1{

    font-size:34px;

    color:#2563eb;

    margin-bottom:8px;

}

.invoice-header h3{

    color:#222;

    margin-bottom:8px;

}

.invoice-header p{

    color:#777;

}

.invoice-right{

    text-align:right;

}

.invoice-right h2{

    color:#2563eb;

    margin-bottom:8px;

    font-size:28px;

}

.invoice-right p{

    color:#666;

}

/*============================*/

.invoice-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:25px;

    margin:25px 0;

}

/*============================*/

.card-box{

    background:#fff;

    border:1px solid #ececec;

    border-radius:16px;

    padding:25px;

    margin-bottom:25px;

    transition:.3s;

}

.card-box:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 30px rgba(0,0,0,.08);

}

.card-box h4{

    margin-bottom:18px;

    color:#2563eb;

    font-size:18px;

}

.card-box p{

    color:#555;

    line-height:1.8;

}

/*============================*/

.summary-card{

    background:#ffffff;

    color:#333;

    border-radius:12px;

    padding:25px;

    height:fit-content;
    
    border: 1px solid #eaeaea;
    
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);

}

.summary-card h3{

    margin-bottom:20px;

}

.summary-card table{

    width:100%;

    border-collapse:collapse;

}

.summary-card tr{

    border-bottom:1px solid #f0f0f0;

}

.summary-card td,

.summary-card th{

    padding:14px 0;

}

.summary-card th{

    font-size:18px;

}

/*============================*/

.table-produk{

    width:100%;

    border-collapse:collapse;

}

.table-produk thead{

    background:#f5f5f5;

    color:#333;

}

.table-produk th{

    padding:15px;

    text-align:left;

}

.table-produk td{

    padding:15px;

    border-bottom:1px solid #eee;

}

.table-produk tbody tr{

    transition:.25s;

}

.table-produk tbody tr:hover{

    background:#f8fbff;

}

/*============================*/

.status-badge{

    display:inline-block;

    padding:10px 18px;

    border-radius:40px;

    font-size:14px;

    font-weight:bold;

    color:#fff;

}

.status-pending{

    background:#f59e0b;

}

.status-diproses{

    background:#3b82f6;

}

.status-dikirim{

    background:#8b5cf6;

}

.status-selesai{

    background:#10b981;

}

/*============================*/

#map{

    width:100%;

    height:420px;

    border-radius:16px;

    overflow:hidden;

    border:2px solid #ececec;

}

/*=========================================
      INVOICE CSS PART 2
=========================================*/

/* PAYMENT CARD */

.payment-status-card{

    margin-top:25px;
    margin-bottom:25px;

    background:#fff;

    border-radius:18px;

    padding:30px;

    box-shadow:0 10px 35px rgba(0,0,0,.08);

    border:1px solid #ececec;

    transition:.3s;

}

.payment-status-card:hover{

    transform:translateY(-4px);

    box-shadow:0 20px 45px rgba(0,0,0,.12);

}

.payment-grid{

    display:grid;

    grid-template-columns:1.6fr 1fr;

    gap:30px;

    align-items:center;

}

.payment-info h2{

    color:#2563eb;

    font-size:30px;

    margin:15px 0;

}

.payment-info h3{

    margin-bottom:10px;

    color:#222;

}

.payment-info h4{

    color:#10b981;

    margin:10px 0;

}

.payment-info p{

    color:#666;

    line-height:1.8;

}

.payment-image{

    text-align:center;

}

.payment-image img{

    width:100%;

    max-width:240px;

    object-fit:contain;

    transition:.35s;

}

.payment-image img:hover{

    transform:scale(1.05);

}

/* BUTTON */

.btn{

    display:inline-block;

    text-decoration:none;

    padding:13px 28px;

    border-radius:10px;

    font-weight:600;

    transition:.3s;

}

.btn-primary{

    background:#2563eb;

    color:#fff;

}

.btn-primary:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

    box-shadow:0 10px 25px rgba(37,99,235,.25);

}

/* TIMELINE */

.timeline{

    list-style:none;

    margin-top:10px;

    position:relative;

}

.timeline::before{

    content:"";

    position:absolute;

    left:18px;

    top:0;

    width:3px;

    height:100%;

    background:#ddd;

}

.timeline li{

    position:relative;

    padding:0 0 28px 55px;

    color:#777;

    font-size:15px;

}

.timeline li:last-child{

    padding-bottom:0;

}

.timeline li span{

    position:absolute;

    left:0;

    top:-2px;

    width:38px;

    height:38px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#ddd;

    color:#fff;

    font-size:16px;

    font-weight:bold;

}

.timeline li.done{

    color:#222;

    font-weight:600;

}

.timeline li.done span{

    background:#10b981;

}

/* LEAFLET */

.leaflet-container{

    border-radius:16px;

    font-family:inherit;

}

.leaflet-popup-content-wrapper{

    border-radius:12px;

}

.leaflet-control-zoom{

    border:none !important;

}

.leaflet-bar{

    box-shadow:0 8px 20px rgba(0,0,0,.18);

}

.leaflet-control-zoom a{

    transition:.25s;

}

.leaflet-control-zoom a:hover{

    background:#2563eb;

    color:#fff;

}

/* CARD */

.card-box{

    overflow:hidden;

}

.card-box h4{

    display:flex;

    align-items:center;

    gap:8px;

}

/* TABLE */

.table-produk td:nth-child(2),

.table-produk td:nth-child(3),

.table-produk td:nth-child(4){

    white-space:nowrap;

}

/* HOVER */

.summary-card{

    transition:.35s;

}

.summary-card:hover{

    transform:translateY(-2px);

    box-shadow:0 12px 24px rgba(0,0,0,0.08);

}

/* SCROLL */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:#2563eb;

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:#f2f2f2;

}

/* TABLET */

@media(max-width:992px){

.invoice-grid{

grid-template-columns:1fr;

}

.payment-grid{

grid-template-columns:1fr;

text-align:center;

}

.invoice-header{

flex-direction:column;

gap:20px;

}

.invoice-right{

text-align:left;

}

}

/* MOBILE */

@media(max-width:768px){

.invoice-box{

padding:20px;

}

.invoice-header h1{

font-size:28px;

}

.invoice-right h2{

font-size:22px;

}

.table-produk{

display:block;

overflow-x:auto;

white-space:nowrap;

}

.summary-card{

margin-top:10px;

}

#map{

height:300px;

}

.payment-image img{

max-width:180px;

}

.timeline li{

font-size:14px;

}

}

/* EXTRA SMALL */

@media(max-width:480px){

.card-box,

.summary-card,

.payment-status-card{

padding:18px;

}

.table-produk th,

.table-produk td{

padding:10px;

font-size:13px;

}

.btn{

width:100%;

text-align:center;

}

.payment-info h2{

font-size:24px;

}

}

/*=========================================
      INVOICE CSS PART 3 (FINAL)
=========================================*/

/* ANIMATION */

.invoice-box{
    animation:fadeInvoice .5s ease;
}

@keyframes fadeInvoice{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.card-box,
.summary-card,
.payment-status-card{

    animation:cardShow .45s ease;

}

@keyframes cardShow{

    from{
        opacity:0;
        transform:scale(.96);
    }

    to{
        opacity:1;
        transform:scale(1);
    }

}

/*====================================*/

.invoice-box{

    position:relative;
    overflow:hidden;

}

.invoice-box::before{

    content:"";

    position:absolute;

    top:-120px;
    right:-120px;

    width:260px;
    height:260px;

    border-radius:50%;

    background:rgba(37,99,235,.05);

}

.invoice-box::after{

    content:"";

    position:absolute;

    bottom:-100px;
    left:-100px;

    width:220px;
    height:220px;

    border-radius:50%;

    background:rgba(16,185,129,.05);

}

/*====================================*/

.invoice-header{

    position:relative;
    z-index:2;

}

.card-box,
.summary-card,
.payment-status-card{

    position:relative;
    z-index:2;

}

/*====================================*/

.invoice-header h1{

    letter-spacing:1px;
    font-weight:700;

}

.invoice-right h2{

    word-break:break-word;

}

/*====================================*/

.summary-card{

    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

}

.summary-card table tr:last-child{

    border:none;

}

.summary-card th{

    font-size:20px;

}

/*====================================*/

.table-produk thead th{

    text-transform:uppercase;

    letter-spacing:.5px;

    font-size:14px;

}

.table-produk tbody tr:nth-child(even){

    background:#fafafa;

}

.table-produk tbody tr:hover{

    background:#eef5ff;

}

/*====================================*/

.status-badge{

    min-width:120px;
    text-align:center;
    letter-spacing:.4px;

}

/*====================================*/

.payment-status-card{

    background:
    linear-gradient(
    to right,
    #ffffff,
    #fcfcfc);

}

.payment-info h2{

    letter-spacing:1px;

}

.payment-image{

    display:flex;
    justify-content:center;
    align-items:center;

}

/*====================================*/

.timeline li{

    transition:.3s;

}

.timeline li:hover{

    transform:translateX(6px);

}

.timeline li.done span{

    box-shadow:0 8px 18px rgba(16,185,129,.35);

}

/*====================================*/

#map{

    transition:.3s;

}

#map:hover{

    box-shadow:0 20px 40px rgba(0,0,0,.12);

}

/*====================================*/

.btn-primary{

    position:relative;
    overflow:hidden;

}

.btn-primary::after{

    content:"";

    position:absolute;

    top:0;
    left:-120%;

    width:100%;
    height:100%;

    background:
    linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.3),
    transparent);

    transition:.6s;

}

.btn-primary:hover::after{

    left:120%;

}

/*====================================*/

::selection{

    background:#2563eb;
    color:#fff;

}

::placeholder{

    color:#aaa;

}

/*====================================*/

@media(max-width:768px){

.invoice-header{

text-align:center;

}

.invoice-right{

text-align:center;

width:100%;

}

.payment-grid{

gap:20px;

}

.summary-card table{

font-size:14px;

}

.timeline::before{

left:15px;

}

.timeline li span{

width:32px;
height:32px;
font-size:14px;

}

}

/*====================================*/
/* PRINT */
/*====================================*/

@media print{

body{

background:#fff;

}

.section{

padding:0;

}

.invoice-box{

box-shadow:none;

border:none;

padding:0;

}

.payment-status-card{

page-break-inside:avoid;

}

.card-box{

page-break-inside:avoid;

}

.summary-card{

background:#fff !important;

color:#000 !important;

border:2px solid #000;

}

.summary-card td,
.summary-card th{

color:#000;

}

#map{

display:none;

}

.btn,
.btn-primary{

display:none;

}

.timeline li span{

background:#000 !important;

}

}

/*====================================*/

@media(min-width:1400px){

.container{

max-width:1350px;

}

.invoice-box{

padding:45px;

}

}

/*====================================*/

img{

max-width:100%;

display:block;

}

/*====================================*/

.card-box:last-child{

margin-bottom:0;

}

/*====================================*/

.invoice-box *{

box-sizing:border-box;

}