/* =====================================================
   SHOPEE KANBAN 2.0
   Visual Moderno SaaS
   ===================================================== */

:root{
    --primary:#ee4d2d;
    --primary-dark:#d84323;

    --blue:#3b82f6;
    --purple:#8b5cf6;
    --green:#22c55e;
    --yellow:#f59e0b;
    --cyan:#06b6d4;

    --bg:#f8fafc;
    --card:#ffffff;
    --border:#e5e7eb;

    --text:#111827;
    --muted:#6b7280;

    --shadow:
    0 4px 15px rgba(0,0,0,.04);

    --shadow-hover:
    0 15px 35px rgba(0,0,0,.10);

    --primary-blue: #204079;
    --light-orange: #dbe8ff;
    --text-dark: #333;
    --text-gray: #777;
    --border-color: #eaeaea;
    --bg-gray: #fafafa;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:var(--bg);
    color:var(--text);
    min-height:100vh;
    min-width: 1320px;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   MODAL | INSCREVA-SE
   ===================================================== */

#subscribeModal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.modal-box{
    width: 450px;
    background:white;
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,.2);
}

.modal-box h1{
    margin-bottom:15px;
}

.modal-box p{
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 25px;
}

.modal-box button{
    width: 100%;
    background: #ff0000;
    color: white;
    border: none;
    height: 50px;
    font-size: 16px;
    font-weight: 700;
}

/* =====================================================
CABEÇALHO CONTROLES
===================================================== */

.controls{
    display: flex;
    align-items: center;
    width: 100%;
}

.brand{
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo img{
    width: 150px;
    margin: 20px;
    margin-right: 0px;
}

.brand-info h2{
    font-size: 22px;
    margin: 0;
    color: #111827;
}

.brand-info span{
    font-size: 13px;
    color: #64748b;
}

.actions{
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

#filterSelect{
    width: 160px;
    margin-right: 20px;
}

.upload-btn{
    height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

.upload-btn:hover{
    transform:translateY(-2px);
}

/* =====================================================
   TOPBAR
   ===================================================== */

.topbar{
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}

.stats{
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 16px;
    width: 100%;
}

.stats span{
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

button, input, select{
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    outline: none;
    transition: .25s;
    font-family: inherit;
}

input:focus, select:focus{
    border-color: var(--primary);
}

button{
    cursor: pointer;
    font-weight: 600;
}

button:hover{
    transform: translateY(-2px);
}

.controls button:nth-child(2){
    background: #fff;
    font-family: inherit;
}

.controls button:nth-child(3){
    background: #fff;
    font-family: inherit;
}

/* =====================================================
   KANBAN
   ===================================================== */

.kanban{
    display: grid;
    grid-template-columns: repeat(5, minmax(240px, 1fr));
    gap: 18px;
    padding: 18px;
    height: calc(100vh - 220px);
    overflow-x: auto;
    overflow-y: hidden;
}

.column{
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.column-header{
    padding: 18px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.column-header input {
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 700;
    padding: 0;
    height: auto;
    width: 85%;
    font-family: inherit; 
}

.column-header span:last-child{
    min-width: 28px;
    text-align: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #6366f1;
    font-size: 13px;
}

.cards{
    flex: 1;
    min-height: 0;
    padding: 12px;
    overflow-y: auto;
}


/* =====================================================
   INFORMAÇÕES: ATRASADOS...
   ===================================================== */



.kpi-card{
    flex: 1;
    min-width: 180px;
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.kpi-icon{
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.kpi-info{
    display: flex;
    flex-direction: column;
}

.kpi-title{
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.kpi-info strong{
    font-size: 30px;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 5px;
}

.kpi-info small{
    color: #94a3b8;
    font-size: 12px;
}

.total .kpi-icon{
    background: #fff4e8;
}

.atrasado .kpi-icon{
    background: #ffeaea;
}

.hoje .kpi-icon{
    background: #eaf3ff;
}

.amanha .kpi-icon{
    background :#fff7dc;
}

.depois .kpi-icon{
    background: #f0eaff;
}

.demais .kpi-icon{
    background: #e8f8ee;
}

/* =====================================================
   CARD PEDIDO
   ===================================================== */

.card{
    position: relative;
    background: white;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    transition: .25s;
    cursor: grab;
}

.card:hover{
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.card::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    border-radius: 18px 0 0 18px;
}

.card.red{
    background: #fff1f2;
    border-color: #fda4af;
    box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}

.card.red::before{
    background: #df0b0b;
}

.card.orange::before{
    background: #f97316;
}

.card.yellow::before{
    background: #eab308;
}

.card.blue::before{
    background: #3b82f6;
}

.card p{
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 4px;
}

.card-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* =====================================================
   BOTÕES CARD
   ===================================================== */

.copy-btn{
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover{
    background: #e5e7eb;
}

.card button{
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-finish{
    color: white;
}
/* =====================================================
   TEMPO PARADO
   ===================================================== */

   .time-stopped{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    color: #6b7280;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    margin-block: 10px;

}

/* =====================================================
   COLUNAS VAZIAS
   ===================================================== */

.cards:empty::after{
    content: "Nenhum pedido";
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    border: 2px dashed var(--border);
    border-radius: 18px;
    color: #9ca3af;
    font-size: 14px;
}

/* =====================================================
   FINALIZADOS
   ===================================================== */

.finalizados-box{
    margin: 18px;
    background: white;
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.finalizados-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#finalizadosText{
    width: 100%;
    height:  130px;
    border:none;
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px;
    resize: none;
}

/* =====================================================
   TOAST "PEDIDO COPIADO"
   ===================================================== */

.toast{
    position: fixed;
    top: 20px;
    left: 50%;
    transform:
        translateX(-50%)
        translateY(-30px);
    background: #22c55e;
    color: white;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    opacity: 0;
    z-index: 99999;
    transition:
        opacity .3s ease,
        transform .3s ease;
}

.toast.show{
    opacity: 1;
    transform:
        translateX(-50%)
        translateY(0);
}

/* =====================================================
   MODAL
   ===================================================== */

/* Fundo do Modal (Overlay) */
.modal{
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9999;
}

.modal.show{
    opacity: 1;
    visibility: visible;
}

/* Caixa Principal do Modal */
.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius:24px;
}

/* --- CABEÇALHO --- */
.modal-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.user-details h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 500;
}

.badge-cliente {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.close-modal {
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- CORPO DO MODAL --- */
.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-dados-pedidos {
    border-radius: 8px;
    padding: 20px;
    border: none;
    border-left: 5px solid #204079;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    max-height: 500px;
    overflow-y: auto;
}

.card-dados-pedidos-header {
    color: #204079;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid de Dados do Pedido */
.card-dados-pedidos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.grid-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

.item-text {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.value {
    font-size: 14px;
    color: var(--text-dark);
}

.border-bottom {
    border-bottom: 1px dashed var(--text-gray);
    padding-bottom: 2px;
}

/* Área de Produtos */
.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-orange {
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: bold;
}

.product-title {
    font-size: 16px;
    color: var(--text-dark);
    margin: 8px 0 16px 0;
    max-width: 400px;
}

.product-variation {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-variation {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    width: fit-content;
}

.product-quantity {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.qty-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 8px;
}

.qty-number {
    font-size: 20px;
}

.badge-qty {
    background-color: var(--light-orange);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
}

/* --- RODAPÉ --- */
.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-gray);
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--border-color);
}

.btn-primary {
    background: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: #162b5d;
}

.mobile-blocker {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box; 
    overflow: hidden; 
  }

.mobile-blocker img {
    width: 150px;
    margin: 20px;
    margin-right: 0px;
}
  

@media (max-width: 1279px) {
  body {
    min-width: unset !important;
    overflow: hidden !important;
  }

  body > *:not(.mobile-blocker) {
    display: none !important;
  }

  .mobile-blocker {
    display: flex !important; /* Força a exibição */
  }
}