:root{
      --rk-orange:#FF7A00;--rk-orange-dark:#E66D00;--rk-black:#050505;--rk-black-2:#111111;
      --rk-panel:#171717;--rk-panel-2:#202020;--rk-white:#FFFFFF;--rk-text:#F5F5F5;
      --rk-muted:#A0A0A0;--rk-border:#303030;--rk-success:#1FA75A;--rk-danger:#D84A4A;
      --rk-radius:22px;--rk-shadow:0 22px 70px rgba(0,0,0,.42)
    }
    *{box-sizing:border-box}
    html{background:var(--rk-black)}
    body{font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh;margin:0;padding:20px;background:
      radial-gradient(circle at 12% 8%,rgba(255,122,0,.10),transparent 25%),
      radial-gradient(circle at 88% 95%,rgba(255,122,0,.07),transparent 28%),var(--rk-black);color:var(--rk-text);display:flex;justify-content:center;align-items:flex-start;-webkit-font-smoothing:antialiased}
    .card{width:100%;max-width:1180px;min-height:calc(100vh - 40px);padding:28px;margin:0;background:rgba(17,17,17,.97);border:1px solid var(--rk-border);border-radius:30px;box-shadow:var(--rk-shadow)}
    h2{margin:0 0 22px;color:#fff;font-size:clamp(25px,4vw,36px);line-height:1.08;font-weight:800;letter-spacing:-1px;text-align:left}
    h3{margin:0 0 12px;color:#fff;font-size:17px;font-weight:800;letter-spacing:-.25px}
    input,button,select{display:block;width:100%;min-height:58px;margin:11px 0;padding:0 18px;border-radius:17px;font:inherit;font-size:15px;transition:.2s ease}
    input,select{border:1px solid var(--rk-border);background:var(--rk-panel-2);color:#fff;outline:none}
    input::placeholder{color:#8D8D8D}
    input:focus,select:focus{border-color:var(--rk-orange);background:#242424;box-shadow:0 0 0 4px rgba(255,122,0,.13)}
    select option{background:#181818;color:#fff}
    button{border:0;background:#2A2A2A;color:#fff;font-weight:800;cursor:pointer;box-shadow:0 9px 22px rgba(0,0,0,.22)}
    button:hover{transform:translateY(-1px);filter:brightness(1.06)}button:active{transform:translateY(0) scale(.995)}button:disabled{opacity:.55;cursor:not-allowed;transform:none}
    button.btn-primary,#btn-entrar,#btn-cadastrar,#btn-solicitar-entrega,#btn-calcular-valor{background:linear-gradient(135deg,var(--rk-orange),var(--rk-orange-dark))!important;color:#fff!important;box-shadow:0 14px 30px rgba(255,122,0,.26)}
    button.btn-danger,#btn-logout-entregador,#btn-logout-cliente,#btn-logout-admin{background:transparent!important;color:#B9B9B9!important;border:1px solid #393939;box-shadow:none}
    label{display:block;margin:22px 0 7px;color:#B5B5B5;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.65px}
    .brand-header{display:flex;align-items:center;justify-content:center;margin:0 0 26px}
    /* A logo principal aparece somente no login; cada painel usa apenas sua logo própria. */
    .card:has(#entrega-section[style*="display: block"]) > .brand-header,
    .card:has(#cliente-section[style*="display: block"]) > .brand-header,
    .card:has(#admin-section[style*="display: block"]) > .brand-header,
    .card:has(#canhoto-section[style*="display: block"]) > .brand-header{display:none!important}
    .brand-header .logo-icon,.brand-header .logo-text{display:none!important}
    .rk-logo-main{display:block;width:min(290px,78vw);max-height:150px;object-fit:contain;margin:0 auto;filter:drop-shadow(0 12px 25px rgba(255,122,0,.17))}
    .rk-panel-logo{display:block;width:min(220px,62vw);max-height:105px;object-fit:contain;margin:0 auto 28px;filter:drop-shadow(0 10px 22px rgba(255,122,0,.14))}
    #login-section{max-width:430px;margin:0 auto;padding:0 2px 14px}
    #login-section h2{text-align:center;font-size:22px;margin:4px 0 22px;color:#fff}
    #login-section input,#login-section select{background:#fff;color:#111;border-color:#fff;box-shadow:0 8px 20px rgba(0,0,0,.22)}
    #login-section input::placeholder{color:#6E6E6E}
    #login-section input:focus,#login-section select:focus{background:#fff;border-color:var(--rk-orange);box-shadow:0 0 0 4px rgba(255,122,0,.18)}
    #login-section #auth-status{background:#181818!important;color:#AFAFAF!important;border:1px solid #292929;padding:11px 13px;border-radius:13px}
    #toggle-auth,#toggle-auth-back{color:var(--rk-orange)!important;font-size:13px!important}
    .entrega-item,.section-box,.billing-card,.finance-box{background:var(--rk-panel);border:1px solid var(--rk-border);border-radius:var(--rk-radius);padding:19px;margin:14px 0;box-shadow:0 10px 28px rgba(0,0,0,.22)}
    .entrega-item{border-left:5px solid var(--rk-orange)}
    .entrega-item p{margin:8px 0;color:#D0D0D0;font-size:13px;line-height:1.5}
    .section-box{background:#141414}.section-box .section-box{background:#1B1B1B}
    .footer-note,.field-note{color:#929292!important}.footer-note{font-size:11px;text-align:center;font-style:italic}
    .badge,.flag{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:900;letter-spacing:.25px}
    .badge{background:#292929;color:#D7D7D7}.badge-active,.status-rota{background:#492700;color:#FFB56B}.status-pendente{background:#2A2020;color:#FF9898}.status-finalizada,.flag-pago{background:#153523;color:#72DB9E}
    .flag-row{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.flag-urgente{background:#492000;color:#FF9F45}.flag-retorno{background:#142B48;color:#8FC0FF}.flag-chuva{background:#25234A;color:#A8A3FF}.flag-pagamento{background:#493A10;color:#FFD56C}
    .checkbox-container{display:flex;align-items:center;gap:12px;min-height:54px;margin:9px 0;padding:0 15px;border:1px solid var(--rk-border);border-radius:17px;background:#191919}.checkbox-container input{width:21px;min-height:21px;margin:0;accent-color:var(--rk-orange)}
    canvas{display:block;width:100%;box-sizing:border-box;touch-action:none;border:1px dashed #444;background:#fff;border-radius:16px}
    .btn-whatsapp-link{display:block;background:#1FA75A;color:#fff;text-decoration:none;text-align:center;padding:16px;border-radius:17px;font-weight:800;margin:10px 0;box-shadow:0 10px 24px rgba(31,167,90,.18)}
    .mini-preview{width:100%;max-height:220px;object-fit:cover;border-radius:16px;border:1px solid var(--rk-border);margin-top:9px;display:none}
    .admin-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0 20px}.admin-tabs button{margin:0;min-height:48px;padding:8px;font-size:12px;background:#202020;color:#C7C7C7;box-shadow:none;border:1px solid #303030}.admin-tabs button.active{background:var(--rk-orange);color:#fff;border-color:var(--rk-orange)}
    .admin-panel{display:none}.admin-panel.active{display:block}.finance-total{font-size:25px;font-weight:900;color:#7CE3A8}.hidden{display:none!important}
    .status-ok{color:#5ED891!important;font-weight:800}.status-erro{color:#FF7474!important;font-weight:800}.btn-success{background:#1FA75A!important;color:#fff!important}.btn-whatsapp{background:#1FA75A!important;color:#fff!important}.btn-google{background:var(--rk-orange)!important;color:#fff!important}
    .urgent-card{border:2px solid #FF7A00!important;background:#21160E!important}.notification-badge{display:inline-block;min-width:22px;padding:3px 7px;border-radius:999px;background:#FF7A00;color:#fff;font-size:11px;font-weight:800;text-align:center}
    .toast{position:fixed;top:18px;right:18px;left:18px;max-width:430px;margin:auto;z-index:9999;padding:15px 17px;border-radius:15px;background:#202020;color:#fff;border:1px solid #343434;box-shadow:0 16px 40px rgba(0,0,0,.42);display:none}.toast.show{display:block}
    a{color:#FF9D43}
    #valor-estimado-cliente{color:#fff!important}
    [style*="background:#f8fafc"],[style*="background: #f8fafc"],[style*="background:#fefce8"],[style*="background: #fefce8"],[style*="background:#fff"],[style*="background: #fff"]{background:#181818!important;border-color:#333!important}
    [style*="color:#0f172a"],[style*="color: #0f172a"],[style*="color:#475569"],[style*="color: #475569"],[style*="color:#64748b"],[style*="color: #64748b"]{color:#D0D0D0!important}
    [style*="border-top:2px solid #f1f5f9"],[style*="border-top: 2px solid #f1f5f9"],[style*="border-bottom:2px solid #f1f5f9"],[style*="border-bottom: 2px solid #f1f5f9"]{border-color:#303030!important}
    #splash-screen{position:fixed;inset:0;z-index:100000;background:#000;display:flex;align-items:center;justify-content:center;transition:opacity .5s ease,visibility .5s ease}
    #splash-screen.hide{opacity:0;visibility:hidden;pointer-events:none}
    #splash-screen img{width:min(520px,82vw);max-height:310px;object-fit:contain;animation:rkSplash 1.2s ease both;filter:drop-shadow(0 18px 40px rgba(255,122,0,.22))}
    @keyframes rkSplash{from{opacity:0;transform:scale(.90)}to{opacity:1;transform:scale(1)}}
    @media(max-width:760px){body{padding:0}.card{min-height:100vh;border-radius:0;border-left:0;border-right:0;padding:22px 16px}.admin-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.rk-panel-logo{margin-bottom:22px}h2{font-size:27px}}
    @media(min-width:761px){#login-section{padding-top:8px}.card:has(#login-section[style*="display: block"]),.card:has(#login-section:not([style*="display: none"])) {max-width:520px;min-height:auto;margin-top:4vh;padding:42px 38px}}

  
    /* RK Express — colunas do painel operacional */
    .admin-status-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
      align-items: start;
      margin-top: 14px;
    }
    .admin-status-grid > .section-box {
      min-width: 0;
      margin-top: 0 !important;
      height: fit-content;
    }
    .admin-status-grid #lista-pendentes-admin,
    .admin-status-grid #lista-em-rota-admin,
    .admin-status-grid #lista-finalizadas-admin {
      max-height: 68vh;
      overflow-y: auto;
      padding-right: 4px;
    }
    @media (max-width: 980px) {
      .admin-status-grid { grid-template-columns: 1fr; }
      .admin-status-grid #lista-pendentes-admin,
      .admin-status-grid #lista-em-rota-admin,
      .admin-status-grid #lista-finalizadas-admin { max-height: none; }
    }

    #pwa-install-btn{position:fixed;right:18px;bottom:18px;z-index:99998;width:auto;min-width:190px;min-height:52px;margin:0;padding:0 20px;border-radius:999px;background:linear-gradient(135deg,#FF7A00,#E66D00)!important;color:#fff!important;border:1px solid rgba(255,255,255,.12);box-shadow:0 16px 38px rgba(0,0,0,.45),0 8px 26px rgba(255,122,0,.24);font-weight:900;display:none}
    #pwa-install-btn.show{display:block;animation:pwaRise .35s ease both}
    @keyframes pwaRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
    @media(max-width:600px){#pwa-install-btn{left:16px;right:16px;bottom:14px;width:calc(100% - 32px)}}

  
    /* =========================================================
       RK EXPRESS — CORREÇÃO RESPONSIVA MOBILE
       Mantém o desktop e reorganiza o aplicativo em telas menores.
       ========================================================= */
    html, body {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
    }

    body[data-rk-screen]:not([data-rk-screen="login"]) .brand-header {
      display: none !important;
    }

    img, video, iframe, svg {
      max-width: 100%;
    }

    #login-section,
    #entrega-section,
    #cliente-section,
    #admin-section,
    #canhoto-section,
    .admin-panel,
    .section-box,
    .entrega-item,
    .billing-card,
    .finance-box {
      min-width: 0;
      max-width: 100%;
    }

    .entrega-item p,
    .section-box p,
    .billing-card p,
    .finance-box p,
    a {
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    input,
    select,
    button,
    textarea,
    canvas {
      max-width: 100%;
    }

    input[type="file"] {
      height: auto;
      min-height: 58px;
      padding: 14px 12px;
      white-space: normal;
    }

    @media (max-width: 768px) {
      html {
        width: 100%;
        min-width: 0;
        background: var(--rk-black);
      }

      body {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: 100svh;
        padding: 0;
        margin: 0;
        background:
          radial-gradient(circle at 50% 0%, rgba(255,122,0,.10), transparent 28%),
          var(--rk-black);
      }

      .card {
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 100svh;
        margin: 0;
        padding:
          calc(18px + env(safe-area-inset-top))
          14px
          calc(24px + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0;
        box-shadow: none;
      }

      .brand-header {
        width: 100%;
        margin: 0 auto 20px;
      }

      .rk-logo-main {
        width: min(260px, 78vw);
        max-height: 132px;
      }

      .rk-panel-logo {
        width: min(190px, 58vw);
        max-height: 92px;
        margin: 0 auto 20px;
      }

      #splash-screen img {
        width: min(330px, 84vw);
        max-height: 220px;
      }

      h2 {
        margin-bottom: 18px;
        font-size: clamp(24px, 7.5vw, 30px);
        line-height: 1.12;
        letter-spacing: -.65px;
      }

      h3 {
        font-size: 16px;
        line-height: 1.25;
      }

      label {
        margin-top: 18px;
        font-size: 11px;
        line-height: 1.35;
      }

      input,
      select,
      button {
        width: 100%;
        min-width: 0;
        min-height: 56px;
        padding-left: 15px;
        padding-right: 15px;
        border-radius: 15px;
        font-size: 16px; /* impede zoom automático no iPhone */
      }

      #login-section {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
        padding: 0;
      }

      #login-section h2 {
        font-size: 21px;
      }

      .entrega-item,
      .section-box,
      .billing-card,
      .finance-box {
        width: 100%;
        min-width: 0;
        padding: 15px;
        margin: 12px 0;
        border-radius: 18px;
      }

      .entrega-item {
        border-left-width: 4px;
      }

      .checkbox-container {
        width: 100%;
        min-width: 0;
        padding: 10px 13px;
        min-height: 54px;
        align-items: flex-start;
      }

      .checkbox-container span {
        min-width: 0;
        line-height: 1.35;
      }

      .admin-tabs {
        display: flex;
        width: 100%;
        max-width: 100%;
        gap: 8px;
        padding: 2px 0 7px;
        margin: 14px 0 18px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
      }

      .admin-tabs button {
        flex: 0 0 auto;
        width: auto;
        min-width: 122px;
        min-height: 48px;
        padding: 8px 12px;
        scroll-snap-align: start;
        white-space: nowrap;
      }

      .admin-status-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        gap: 14px;
      }

      .admin-status-grid > .section-box {
        width: 100%;
        min-width: 0;
      }

      .admin-status-grid #lista-pendentes-admin,
      .admin-status-grid #lista-em-rota-admin,
      .admin-status-grid #lista-finalizadas-admin,
      #lista-clientes-admin,
      #lista-motoboys-admin,
      #lista-historico,
      #lista-solicitacoes-cliente,
      #lista-rotas-entregador {
        width: 100%;
        max-width: 100%;
        max-height: none !important;
        overflow-x: hidden;
      }

      .flag-row {
        width: 100%;
        gap: 6px;
      }

      .flag,
      .badge {
        max-width: 100%;
        white-space: normal;
        line-height: 1.25;
      }

      canvas {
        width: 100% !important;
        height: auto;
        min-height: 145px;
      }

      .mini-preview {
        width: 100%;
        height: auto;
        max-height: 260px;
      }

      .btn-whatsapp-link {
        width: 100%;
        padding: 15px 12px;
        line-height: 1.3;
      }

      #pwa-install-btn {
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        width: calc(100% - 24px);
        min-width: 0;
      }

      .toast {
        top: calc(10px + env(safe-area-inset-top));
        left: 10px;
        right: 10px;
        width: auto;
      }

      /* Neutraliza larguras fixas que possam ser criadas nos cartões pelo JS. */
      #entrega-section *,
      #cliente-section *,
      #admin-section *,
      #canhoto-section * {
        max-width: 100%;
      }
    }

    @media (max-width: 390px) {
      .card {
        padding-left: 11px;
        padding-right: 11px;
      }

      .entrega-item,
      .section-box,
      .billing-card,
      .finance-box {
        padding: 13px;
      }

      .admin-tabs button {
        min-width: 112px;
        font-size: 11px;
      }

      h2 {
        font-size: 24px;
      }
    }

    @media (orientation: landscape) and (max-height: 520px) {
      #splash-screen img {
        width: min(280px, 58vw);
        max-height: 65vh;
      }

      .rk-logo-main {
        max-height: 92px;
      }
    }

  
    /* RK Express — login mobile definitivo */
    @media (max-width: 768px) {
      body[data-rk-screen="login"] {
        min-height: 100svh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
      }
      body[data-rk-screen="login"] .card {
        width: 100%;
        max-width: 100%;
        min-height: 100svh;
        padding: calc(28px + env(safe-area-inset-top)) 18px calc(30px + env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
      }
      body[data-rk-screen="login"] .brand-header {
        width: 100%;
        margin: 6vh auto 20px;
      }
      body[data-rk-screen="login"] #login-section {
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        padding: 0;
      }
      body[data-rk-screen="login"] .rk-logo-main {
        width: min(310px, 82vw);
        max-height: 150px;
      }
      body[data-rk-screen="login"] #login-section input,
      body[data-rk-screen="login"] #login-section select,
      body[data-rk-screen="login"] #login-section button {
        width: 100%;
        min-height: 58px;
        font-size: 16px;
      }
      body[data-rk-screen="login"] #auth-status {
        width: 100%;
      }
    }
    @media (max-width: 380px) {
      body[data-rk-screen="login"] .brand-header { margin-top: 3vh; }
      body[data-rk-screen="login"] .rk-logo-main { width: min(270px, 80vw); }
    }

  

    /* =========================================================
       RK EXPRESS — MOBILE DEFINITIVO
       Também funciona quando o navegador do celular força
       largura de desktop, usando características reais de toque.
       ========================================================= */
    @media (max-device-width: 820px), (hover: none) and (pointer: coarse) {
      html, body {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        text-size-adjust: 100% !important;
        -webkit-text-size-adjust: 100% !important;
      }

      body {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 100dvh !important;
      }

      .card,
      body[data-rk-screen="login"] .card,
      body[data-rk-screen="cliente"] .card,
      body[data-rk-screen="entregador"] .card,
      body[data-rk-screen="admin"] .card,
      body[data-rk-screen="canhoto"] .card {
        display: block !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        padding: calc(18px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom)) !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
      }

      body[data-rk-screen="login"] .card {
        padding-left: 18px !important;
        padding-right: 18px !important;
        background:
          radial-gradient(circle at 50% 8%, rgba(255,122,0,.14), transparent 30%),
          #050505 !important;
      }

      body[data-rk-screen="login"] .brand-header {
        display: flex !important;
        width: 100% !important;
        margin: 4vh auto 18px !important;
      }

      body[data-rk-screen]:not([data-rk-screen="login"]) .brand-header {
        display: none !important;
      }

      .rk-logo-main {
        width: min(82vw, 360px) !important;
        max-width: 82vw !important;
        max-height: 150px !important;
      }

      .rk-panel-logo {
        width: min(58vw, 220px) !important;
        max-width: 58vw !important;
        max-height: 100px !important;
        margin: 0 auto 18px !important;
      }

      #login-section {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
      }

      #login-section h2 {
        font-size: 22px !important;
        text-align: center !important;
        margin: 0 0 18px !important;
      }

      #login-section input,
      #login-section select,
      #login-section button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 58px !important;
        margin: 10px 0 !important;
        font-size: 16px !important;
        border-radius: 16px !important;
      }

      #login-section #auth-status {
        width: 100% !important;
        margin: 14px 0 0 !important;
      }

      h2 {
        font-size: clamp(25px, 7vw, 32px) !important;
        line-height: 1.12 !important;
      }

      h3 { font-size: 17px !important; }

      input, select, button, textarea {
        font-size: 16px !important;
      }

      #entrega-section,
      #cliente-section,
      #admin-section,
      #canhoto-section,
      .admin-panel,
      .section-box,
      .entrega-item,
      .billing-card,
      .finance-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
      }

      .entrega-item,
      .section-box,
      .billing-card,
      .finance-box {
        padding: 15px !important;
        border-radius: 18px !important;
      }

      .admin-tabs {
        display: flex !important;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        gap: 8px !important;
      }

      .admin-tabs button {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 122px !important;
      }

      .admin-status-grid {
        display: grid !important;
        grid-template-columns: minmax(0,1fr) !important;
        width: 100% !important;
      }

      .admin-status-grid > .section-box {
        width: 100% !important;
        min-width: 0 !important;
      }

      canvas, img, video, iframe, svg {
        max-width: 100% !important;
      }

      canvas { width: 100% !important; height: auto !important; }

      #pwa-install-btn {
        left: 12px !important;
        right: 12px !important;
        width: calc(100% - 24px) !important;
        min-width: 0 !important;
      }
    }

  
    /* Atualização das solicitações do cliente */
    .cliente-solicitacoes-cabecalho{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:14px;
      margin-bottom:12px;
    }
    .cliente-solicitacoes-cabecalho > div{min-width:0}
    .btn-atualizar-cliente{
      width:auto;
      min-width:132px;
      min-height:44px;
      margin:0;
      padding:0 15px;
      border:1px solid #424242;
      border-radius:14px;
      background:#202020;
      color:#fff;
      box-shadow:none;
      white-space:nowrap;
      font-size:13px;
    }
    .btn-atualizar-cliente.atualizando{
      border-color:var(--rk-orange);
      color:#FFB56B;
    }
    @media(max-width:520px){
      .cliente-solicitacoes-cabecalho{
        align-items:stretch;
        flex-direction:column;
      }
      .btn-atualizar-cliente{
        width:100%;
        min-height:50px;
      }
    }

  
    /* RK Express — módulo fiscal NFS-e */
    .fiscal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .fiscal-grid .full{grid-column:1/-1}
    .fiscal-status{padding:11px 13px;border-radius:14px;border:1px solid #3b3b3b;background:#1b1b1b;color:#d4d4d4;font-size:12px;line-height:1.45;margin:10px 0}
    .fiscal-status.ok{border-color:#275d3d;background:#13281d;color:#7ce3a8}
    .fiscal-status.warn{border-color:#6b4a17;background:#2b1c0b;color:#ffc47c}
    .fiscal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
    .btn-nfse{background:linear-gradient(135deg,#FF7A00,#E66D00)!important;color:#fff!important}
    .btn-nfse-secondary{background:#242424!important;color:#fff!important;border:1px solid #444!important}
    @media(max-width:640px){
      .fiscal-grid,.fiscal-actions{grid-template-columns:1fr}
    }

  
    /* =========================================================
       RK EXPRESS — SPRINT 1
       Cancelamentos, planos, franquias, score, cupons e GPS
       ========================================================= */
    .admin-status-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
    .plan-badge{display:inline-flex;padding:6px 10px;border-radius:999px;background:#3a220e;color:#ffb56b;font-size:10px;font-weight:900}
    .score-box{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px;border-radius:16px;background:#1b1b1b;border:1px solid #353535;margin:10px 0}
    .score-number{font-size:25px;font-weight:900}
    .score-ok{color:#72db9e}.score-warn{color:#ffd56c}.score-risk{color:#ff8585}
    .franquia-box{padding:14px;border-radius:17px;background:#151515;border:1px solid #343434;margin:11px 0}
    .franquia-bar{height:10px;background:#292929;border-radius:999px;overflow:hidden;margin:8px 0}
    .franquia-bar span{display:block;height:100%;background:linear-gradient(90deg,#ff7a00,#ffad55);border-radius:999px}
    .cancel-card{border-left-color:#d84a4a!important;background:#1d1414!important}
    .btn-cancelar{background:#3a1c1c!important;color:#ff9d9d!important;border:1px solid #683636!important}
    .btn-desconto{background:#2d2142!important;color:#cdb6ff!important;border:1px solid #59437d!important}
    .cupom-box{padding:14px;border-radius:17px;background:#21190d;border:1px solid #5e4019;margin:12px 0}
    .gps-box{padding:14px;border-radius:17px;background:#101d25;border:1px solid #28516a;margin:12px 0}
    .gps-live{color:#80d5ff;font-weight:800}
    .plano-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
    .plano-config-grid .full{grid-column:1/-1}
    @media(max-width:980px){.admin-status-grid{grid-template-columns:1fr!important}}
    @media(max-width:640px){.plano-config-grid{grid-template-columns:1fr}.plano-config-grid .full{grid-column:auto}}


/* =========================================================
   RK EXPRESS — SPRINT 3 / RK ANALYTICS
   ========================================================= */
.analytics-header{
  display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px
}
.analytics-filtros{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:10px;
  align-items:end;padding:14px;border:1px solid #343434;background:#151515;
  border-radius:18px;margin-bottom:16px
}
.analytics-filtros label{margin:0}
.analytics-kpis{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0
}
.analytics-kpi{
  min-width:0;padding:17px;border-radius:19px;border:1px solid #343434;
  background:linear-gradient(145deg,#191919,#111);box-shadow:0 12px 28px rgba(0,0,0,.2)
}
.analytics-kpi span{display:block;font-size:22px;margin-bottom:8px}
.analytics-kpi small{display:block;color:#989898;font-size:11px;font-weight:800;text-transform:uppercase}
.analytics-kpi strong{display:block;margin-top:8px;color:#fff;font-size:22px;overflow-wrap:anywhere}
.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.analytics-bars{display:grid;gap:10px}
.analytics-bar-row{display:grid;grid-template-columns:minmax(100px,160px) 1fr auto;gap:10px;align-items:center}
.analytics-bar-label{font-size:12px;font-weight:800;color:#ddd}
.analytics-bar-track{height:11px;border-radius:999px;background:#292929;overflow:hidden}
.analytics-bar-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#ff7a00,#ffb264)}
.analytics-bar-value{font-size:12px;font-weight:900;color:#ffb264}
.analytics-ranking-item{
  display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;
  padding:11px 0;border-bottom:1px solid #2e2e2e
}
.analytics-ranking-item:last-child{border-bottom:0}
.analytics-ranking-pos{
  width:32px;height:32px;display:grid;place-items:center;border-radius:10px;
  background:#2b1b0d;color:#ff9a38;font-weight:900
}
.analytics-ranking-name{font-weight:800;overflow-wrap:anywhere}
.analytics-ranking-detail{font-size:11px;color:#9b9b9b;margin-top:3px}
.analytics-ranking-value{text-align:right;font-weight:900;color:#fff}
.analytics-alert{
  padding:12px 13px;border-radius:14px;border:1px solid #59421f;background:#2a1d0d;
  color:#ffd18f;margin-bottom:9px;line-height:1.45
}
.analytics-alert.risk{border-color:#623434;background:#2b1515;color:#ffaaaa}
.analytics-alert.ok{border-color:#28543c;background:#12251a;color:#84e5aa}
.analytics-chart{
  min-height:220px;display:flex;align-items:flex-end;gap:7px;padding:18px 8px 8px;
  overflow-x:auto;border-bottom:1px solid #383838
}
.analytics-day{
  flex:1 0 34px;min-width:34px;display:flex;flex-direction:column;justify-content:flex-end;
  align-items:center;gap:6px;height:190px
}
.analytics-day-bar{
  width:100%;max-width:28px;min-height:3px;border-radius:8px 8px 2px 2px;
  background:linear-gradient(180deg,#ff9b3e,#ff6f00);
  box-shadow:0 0 15px rgba(255,122,0,.18)
}
.analytics-day-label{font-size:9px;color:#8f8f8f;white-space:nowrap}
.analytics-empty{color:#858585;font-size:12px;padding:12px 0}
@media(max-width:1080px){
  .analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .analytics-header{align-items:stretch;flex-direction:column}
  .analytics-filtros{grid-template-columns:1fr}
  .analytics-kpis,.analytics-grid{grid-template-columns:1fr}
  .analytics-bar-row{grid-template-columns:105px 1fr auto}
}


/* =========================================================
   RK EXPRESS — SPRINT 4 / CLIENTE 360°
   ========================================================= */
.btn-cliente360{
  background:linear-gradient(135deg,#ff7a00,#d85f00)!important;
  color:#fff!important;font-weight:900!important;margin:10px 0!important
}
.cliente360-modal{position:fixed;inset:0;z-index:100000;display:none}
.cliente360-modal.aberto{display:block}
.cliente360-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.82);backdrop-filter:blur(8px)}
.cliente360-dialog{
  position:relative;width:min(1180px,calc(100% - 28px));height:min(92vh,920px);
  margin:4vh auto;background:#0f0f0f;border:1px solid #383838;border-radius:26px;
  box-shadow:0 34px 90px rgba(0,0,0,.6);overflow:auto
}
.cliente360-topo{
  position:sticky;top:0;z-index:4;display:flex;justify-content:space-between;align-items:flex-start;
  gap:16px;padding:22px 24px;background:rgba(15,15,15,.96);border-bottom:1px solid #303030;
  backdrop-filter:blur(12px)
}
.cliente360-topo h2{margin:8px 0 4px;font-size:28px}
.cliente360-topo p{margin:0;color:#969696}
.cliente360-fechar{
  width:48px!important;height:48px!important;min-width:48px!important;margin:0!important;padding:0!important;
  border-radius:50%!important;background:#242424!important;color:#fff!important;font-size:29px!important
}
.cliente360-loading{padding:60px 24px;text-align:center;color:#aaa}
.cliente360-conteudo{padding:20px 24px 32px}
.cliente360-kpis{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:18px
}
.cliente360-kpis article{
  padding:15px;border:1px solid #333;background:linear-gradient(145deg,#191919,#121212);
  border-radius:17px;min-width:0
}
.cliente360-kpis small{display:block;color:#909090;font-size:10px;font-weight:900;text-transform:uppercase}
.cliente360-kpis strong{display:block;margin-top:8px;font-size:20px;overflow-wrap:anywhere}
.cliente360-tabs{
  display:flex;gap:7px;overflow-x:auto;padding:4px 0 12px;margin-bottom:12px;position:sticky;top:104px;
  z-index:3;background:#0f0f0f
}
.cliente360-tabs button{
  width:auto!important;min-width:max-content!important;margin:0!important;padding:11px 15px!important;
  background:#202020!important;border:1px solid #343434!important;box-shadow:none!important
}
.cliente360-tabs button.active{background:#ff7a00!important;border-color:#ff7a00!important;color:#fff!important}
.cliente360-painel{display:none}.cliente360-painel.active{display:block}
.cliente360-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.cliente360-grid .full{grid-column:1/-1}
.cliente360-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.cliente360-form label{margin:0;color:#cfcfcf}
.cliente360-form .full{grid-column:1/-1}
.cliente360-form textarea{resize:vertical;min-height:110px}
.cliente360-margin-top{margin-top:14px}
.cliente360-mini-chart{
  min-height:190px;display:flex;align-items:flex-end;gap:8px;padding:15px 4px 4px;overflow-x:auto
}
.c360-month{
  flex:1 0 48px;min-width:48px;height:170px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px
}
.c360-month-bar{width:30px;min-height:3px;border-radius:8px 8px 2px 2px;background:linear-gradient(180deg,#ff9c40,#ff7000)}
.c360-month-label{font-size:9px;color:#888}.c360-month-value{font-size:9px;color:#ffb16b;font-weight:900}
.c360-info-row{
  display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #2e2e2e;
  font-size:12px
}
.c360-info-row:last-child{border-bottom:0}.c360-info-row span{color:#989898}.c360-info-row strong{text-align:right}
.c360-alert{padding:12px;border-radius:13px;margin-bottom:8px;background:#26190c;border:1px solid #5a3e1c;color:#ffc980}
.c360-alert.ok{background:#11251a;border-color:#28513b;color:#83dda6}
.c360-alert.risk{background:#2b1414;border-color:#653434;color:#ffaaaa}
.c360-history-item{
  border:1px solid #343434;border-left:4px solid #ff7a00;border-radius:16px;padding:14px;margin-bottom:10px;background:#151515
}
.c360-history-item.cancelada{border-left-color:#d94b4b;background:#1e1414}
.c360-history-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.c360-chip{display:inline-flex;padding:5px 9px;border-radius:999px;background:#282828;font-size:9px;font-weight:900;text-transform:uppercase}
.cliente360-history-filters{display:flex;justify-content:flex-end;margin-bottom:12px}
.cliente360-history-filters select{width:auto;min-width:220px}
body.cliente360-sem-scroll{overflow:hidden}
@media(max-width:1080px){
  .cliente360-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
  .cliente360-dialog{width:100%;height:100%;max-height:none;margin:0;border-radius:0}
  .cliente360-topo{padding:16px;top:0}.cliente360-topo h2{font-size:21px}
  .cliente360-conteudo{padding:14px}
  .cliente360-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cliente360-grid,.cliente360-form{grid-template-columns:1fr}
  .cliente360-grid .full,.cliente360-form .full{grid-column:auto}
  .cliente360-tabs{top:87px}
}


/* =========================================================
   RK EXPRESS — SPRINT 5 / CENTRAL OPERACIONAL
   ========================================================= */
.central-topo{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:15px
}
.central-topo h3{font-size:24px;margin:9px 0 4px}
.central-topo-acoes{display:flex;gap:8px;flex-wrap:wrap}
.central-topo-acoes button{width:auto;margin:0;min-height:46px;padding:0 16px}
.central-kpis{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px
}
.central-kpis article{
  padding:14px;border-radius:17px;border:1px solid #343434;background:linear-gradient(145deg,#191919,#111)
}
.central-kpis small{display:block;color:#969696;font-size:10px;font-weight:900;text-transform:uppercase}
.central-kpis strong{display:block;margin-top:7px;font-size:23px}
.central-filtros{
  display:grid;grid-template-columns:2fr repeat(3,minmax(150px,1fr));gap:9px;
  padding:13px;border:1px solid #343434;border-radius:18px;background:#151515;margin-bottom:12px
}
.central-filtros input,.central-filtros select{margin:0}
.central-board{
  display:grid;grid-template-columns:repeat(5,minmax(260px,1fr));gap:12px;overflow-x:auto;
  padding-bottom:12px;align-items:start
}
.central-lane{
  min-width:260px;border:1px solid #333;border-radius:20px;background:#121212;overflow:hidden
}
.central-lane > header{
  position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;
  padding:14px 15px;border-bottom:1px solid #333;background:#191919;font-size:13px;font-weight:900
}
.central-lane > header b{
  min-width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#2b2b2b;color:#ffae65
}
.central-lista{padding:10px;display:grid;gap:9px;max-height:68vh;overflow-y:auto}
.central-card{
  border:1px solid #353535;border-left:4px solid #ff7a00;border-radius:16px;padding:12px;background:#181818
}
.central-card.prime{border-left-color:#ffb100;background:linear-gradient(145deg,#22180b,#181818)}
.central-card.cancelada{border-left-color:#d34a4a;background:#1d1414}
.central-card.finalizada{border-left-color:#2aae68}
.central-card-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;margin-bottom:9px}
.central-card-title{font-size:12px;font-weight:900;overflow-wrap:anywhere}
.central-card-id{font-size:9px;color:#777;margin-top:3px}
.central-card-value{font-weight:900;color:#ffae65;white-space:nowrap;font-size:12px}
.central-card p{margin:6px 0;font-size:11px;line-height:1.42;color:#c6c6c6;overflow-wrap:anywhere}
.central-card-meta{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0}
.central-card-chip{
  display:inline-flex;padding:5px 7px;border-radius:999px;background:#282828;color:#cfcfcf;font-size:8px;font-weight:900
}
.central-card-chip.alerta{background:#4b260b;color:#ffc07b}
.central-card-chip.ok{background:#153523;color:#78dda2}
.central-card-acoes{display:grid;grid-template-columns:1fr;gap:6px;margin-top:9px}
.central-card-acoes button,.central-card-acoes select{
  margin:0;min-height:39px;height:39px;border-radius:11px;padding:0 10px;font-size:10px
}
.central-tempo-alerta{color:#ff9f6d!important;font-weight:900}
.central-empty{padding:18px 8px;text-align:center;color:#777;font-size:11px}
@media(max-width:1200px){
  .central-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .central-filtros{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .central-topo{flex-direction:column}
  .central-topo-acoes{width:100%}.central-topo-acoes button{width:100%}
  .central-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .central-filtros{grid-template-columns:1fr}
  .central-board{grid-template-columns:repeat(5,86vw)}
  .central-lane{min-width:86vw}
}


/* =========================================================
   RK EXPRESS — SPRINT 7 / RK FISCAL
   ========================================================= */
.fiscal-center-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}
.fiscal-center-header h3{font-size:25px;margin:8px 0 4px}
.fiscal-center-actions{display:flex;gap:8px;flex-wrap:wrap}
.fiscal-center-actions button{width:auto;margin:0;min-height:46px;padding:0 15px}
.fiscal-center-warning{
  padding:14px 16px;border-radius:17px;background:#2a1d0c;border:1px solid #68491d;
  color:#ffd092;font-size:12px;line-height:1.5;margin-bottom:14px
}
.fiscal-center-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}
.fiscal-center-kpis article{padding:15px;border:1px solid #343434;border-radius:18px;background:linear-gradient(145deg,#191919,#111)}
.fiscal-center-kpis small{display:block;color:#949494;font-size:9px;font-weight:900;text-transform:uppercase}
.fiscal-center-kpis strong{display:block;margin-top:8px;font-size:21px;overflow-wrap:anywhere}
.fiscal-center-tabs{display:flex;gap:7px;overflow-x:auto;margin:0 0 14px}
.fiscal-center-tabs button{
  width:auto!important;min-width:max-content!important;margin:0!important;padding:11px 15px!important;
  background:#202020!important;border:1px solid #383838!important;box-shadow:none!important
}
.fiscal-center-tabs button.active{background:#ff7a00!important;border-color:#ff7a00!important}
.fiscal-center-panel{display:none}.fiscal-center-panel.active{display:block}
.fiscal-center-toolbar{display:grid;grid-template-columns:2fr 1fr;gap:9px;margin-bottom:10px}
.fiscal-doc-card{
  border:1px solid #363636;border-left:4px solid #ff7a00;border-radius:18px;padding:15px;
  background:#161616;margin-bottom:11px
}
.fiscal-doc-card.emitida{border-left-color:#2bb46b}.fiscal-doc-card.erro{border-left-color:#d84a4a;background:#1d1414}
.fiscal-doc-card.validada{border-left-color:#d7a227}
.fiscal-doc-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.fiscal-doc-title{font-weight:900;font-size:14px;overflow-wrap:anywhere}
.fiscal-doc-id{font-size:9px;color:#777;margin-top:4px}
.fiscal-doc-value{font-weight:900;color:#ffae65;white-space:nowrap}
.fiscal-doc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:11px 0}
.fiscal-doc-info{padding:9px 10px;border-radius:12px;background:#202020;min-width:0}
.fiscal-doc-info small{display:block;color:#888;font-size:8px;font-weight:900;text-transform:uppercase}
.fiscal-doc-info strong{display:block;margin-top:5px;font-size:11px;overflow-wrap:anywhere}
.fiscal-doc-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.fiscal-doc-actions button,.fiscal-doc-actions a{
  width:auto!important;min-height:40px!important;margin:0!important;padding:0 12px!important;
  display:inline-flex;align-items:center;justify-content:center;border-radius:12px;text-decoration:none;
  background:#252525;color:#fff;border:1px solid #414141;font-size:10px;font-weight:900
}
.fiscal-doc-actions .primary{background:linear-gradient(135deg,#ff7a00,#df6500);border-color:#ff7a00}
.fiscal-doc-actions .success{background:#176d3c;border-color:#268d53}
.fiscal-doc-actions .danger{background:#431d1d;border-color:#683434;color:#ffaaaa}
.fiscal-config-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.fiscal-config-form label{margin:0}.fiscal-config-form .full{grid-column:1/-1}
.fiscal-status-box{padding:14px;border:1px solid #343434;border-radius:16px;margin-top:13px;background:#151515;color:#aaa}
.fiscal-audit-row{
  display:grid;grid-template-columns:150px 1fr auto;gap:12px;padding:12px 0;border-bottom:1px solid #2e2e2e;align-items:start
}
.fiscal-audit-row:last-child{border-bottom:0}.fiscal-audit-time{color:#888;font-size:10px}.fiscal-audit-action{font-size:12px}
.fiscal-audit-user{font-size:10px;color:#ffad66;text-align:right}
@media(max-width:1150px){.fiscal-center-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){
  .fiscal-center-header{flex-direction:column}.fiscal-center-actions{width:100%}.fiscal-center-actions button{width:100%}
  .fiscal-center-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fiscal-center-toolbar,.fiscal-config-form{grid-template-columns:1fr}
  .fiscal-config-form .full{grid-column:auto}.fiscal-doc-grid{grid-template-columns:1fr}
  .fiscal-doc-top{flex-direction:column}.fiscal-audit-row{grid-template-columns:1fr}
  .fiscal-audit-user{text-align:left}
}



/* RK EXPRESS — SPRINT 8 / RK INTELLIGENCE */
.rki-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:13px}
.rki-header h3{font-size:25px;margin:8px 0 4px}.rki-header-actions button{width:auto;margin:0}
.rki-disclaimer{padding:11px 14px;border-radius:15px;background:#171717;border:1px solid #343434;color:#8e8e8e;font-size:10px;margin-bottom:12px}
.rki-hero{display:flex;align-items:center;gap:16px;padding:20px;border-radius:22px;border:1px solid #3a3026;background:linear-gradient(135deg,#24170b,#151515);margin-bottom:13px}
.rki-avatar{width:64px;height:64px;display:grid;place-items:center;border-radius:20px;background:linear-gradient(135deg,#ff9b36,#ff6c00);font-size:22px;font-weight:1000;box-shadow:0 12px 30px rgba(255,122,0,.22)}
.rki-hero small{color:#ffad63;font-size:9px;font-weight:900;letter-spacing:1px}.rki-hero h2{margin:5px 0;font-size:25px}.rki-hero p{margin:0;color:#c4c4c4;line-height:1.5}
.rki-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:13px}
.rki-kpis article{padding:16px;border-radius:18px;border:1px solid #343434;background:linear-gradient(145deg,#191919,#111)}
.rki-kpis small{display:block;color:#919191;font-size:9px;font-weight:900;text-transform:uppercase}.rki-kpis strong{display:block;margin:8px 0 4px;font-size:21px;overflow-wrap:anywhere}.rki-kpis span{font-size:10px;color:#999}.rki-kpis span.positive{color:#65d991}.rki-kpis span.negative{color:#ff8585}
.rki-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.rki-layout .rki-main{grid-column:1/-1}
.rki-section-title{display:flex;justify-content:space-between;gap:12px;align-items:center}.rki-section-title span{font-size:9px;color:#777}
.rki-recommendation{display:grid;grid-template-columns:38px 1fr;gap:11px;padding:13px;border-radius:15px;border:1px solid #3a3a3a;background:#1b1b1b;margin-bottom:9px}
.rki-recommendation-number{width:32px;height:32px;display:grid;place-items:center;border-radius:11px;background:#33200f;color:#ffad62;font-weight:900}.rki-recommendation strong{font-size:12px}.rki-recommendation p{margin:5px 0 0;color:#aaa;font-size:11px;line-height:1.45}
.rki-recommendation.risco{border-color:#613535;background:#211515}.rki-recommendation.positivo{border-color:#28553c;background:#12241a}.rki-recommendation.oportunidade{border-color:#684817;background:#281b0c}
.rki-health{display:flex;align-items:center;gap:12px;padding:13px;border-radius:16px;margin-bottom:10px;border:1px solid #3b3b3b}.rki-health-score{width:58px;height:58px;display:grid;place-items:center;border-radius:50%;font-size:21px;font-weight:1000;background:#252525}.rki-health p{margin:4px 0 0;color:#999;font-size:10px}
.rki-health.good{border-color:#2c6244;background:#14281d}.rki-health.good .rki-health-score{background:#1e6d43}.rki-health.medium{border-color:#665025;background:#2a210f}.rki-health.bad{border-color:#683737;background:#2b1515}
.rki-chart{min-height:205px;display:flex;align-items:flex-end;gap:7px;overflow-x:auto;padding:12px 4px 4px}.rki-chart-item{flex:1 0 43px;height:185px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px}.rki-chart-item>div{width:27px;min-height:4px;border-radius:8px 8px 2px 2px;background:linear-gradient(#ff9b3b,#ff6d00)}.rki-chart-item span{font-size:8px;color:#ffb578}.rki-chart-item small{font-size:8px;color:#777}
.rki-ranking{display:grid;grid-template-columns:34px 1fr auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #2d2d2d}.rki-ranking:last-child{border-bottom:0}.rki-pos{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:#282018;color:#ff9f48;font-weight:900}.rki-ranking strong{display:block;font-size:11px}.rki-ranking span{display:block;color:#888;font-size:9px;margin-top:3px}.rki-ranking b{text-align:right;font-size:10px;color:#fff}
.rki-opportunity{display:flex;justify-content:space-between;gap:13px;align-items:center;padding:12px;border:1px solid #3c342b;border-radius:15px;background:#1c1813;margin-bottom:8px}.rki-opportunity strong{font-size:12px}.rki-opportunity p{margin:4px 0 0;color:#999;font-size:10px}.rki-opportunity>span{padding:7px 10px;border-radius:999px;background:#ff7a00;color:#fff;font-size:9px;font-weight:900;white-space:nowrap}
.rki-alert{padding:11px;border-radius:13px;border:1px solid #54401e;background:#261d0d;color:#ffce8a;font-size:10px;margin-bottom:7px}
@media(max-width:1000px){.rki-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.rki-header{flex-direction:column}.rki-header-actions,.rki-header-actions button{width:100%}.rki-layout{grid-template-columns:1fr}.rki-layout .rki-main{grid-column:auto}.rki-hero{align-items:flex-start}.rki-kpis{grid-template-columns:1fr 1fr}}
@media(max-width:430px){.rki-kpis{grid-template-columns:1fr}.rki-opportunity{align-items:flex-start;flex-direction:column}}


/* =========================================================
   RK EXPRESS — CORREÇÕES DE CAMPO
   ========================================================= */
.manual-adicionais-box{
  margin:14px 0;padding:15px;border:1px solid #3b3b3b;border-radius:18px;
  background:linear-gradient(145deg,#181818,#111)
}
.manual-adicionais-box h4{margin:0 0 10px;color:#ff9e45;font-size:13px}
.manual-checkbox{
  display:flex!important;align-items:center!important;gap:10px!important;
  min-height:48px;padding:10px 12px!important;margin:7px 0!important;
  border:1px solid #353535;border-radius:14px;background:#202020
}
.manual-checkbox input{width:20px!important;height:20px!important;margin:0!important;flex:none}
.manual-checkbox span{font-size:12px;font-weight:800;color:#eee}

.foto-coleta-bloco{
  padding:13px;margin:10px 0;border:1px solid #3c3c3c;border-radius:15px;background:#191919
}
.foto-coleta-bloco label{color:#ffac61;font-weight:900}
.foto-coleta-bloco input{margin-bottom:0}
.fotos-coletas-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px
}
.fotos-coletas-grid figure{margin:0;padding:8px;border-radius:14px;background:#202020;border:1px solid #393939}
.fotos-coletas-grid figcaption{text-align:center;color:#aaa;font-size:10px;margin-top:6px}

.mapa-motoboy-box{
  margin:14px 0;padding:12px;border:1px solid #3c3c3c;border-radius:18px;background:#111;overflow:hidden
}
.mapa-motoboy-topo{
  display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px
}
.mapa-motoboy-topo strong{color:#fff;font-size:13px}
.mapa-motoboy-topo p{margin:4px 0 0!important;color:#999!important;font-size:10px!important}
.btn-navegacao-motoboy{
  display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 12px;
  border-radius:12px;background:#ff7a00;color:#fff!important;text-decoration:none;font-size:10px;font-weight:900;
  white-space:nowrap
}
.mapa-motoboy-canvas{
  width:100%;height:340px;border-radius:14px;overflow:hidden;background:#202020
}
.mapa-motoboy-vazio{
  height:100%;display:grid;place-items:center;text-align:center;padding:20px;color:#aaa;font-size:11px
}
@media(max-width:620px){
  .mapa-motoboy-topo{align-items:stretch;flex-direction:column}
  .btn-navegacao-motoboy{width:100%}
  .mapa-motoboy-canvas{height:300px}
  .fotos-coletas-grid{grid-template-columns:1fr}
}

.rk-notification-bell{position:fixed!important;right:18px;bottom:18px;z-index:90000;width:58px!important;height:58px!important;min-width:58px!important;margin:0!important;padding:0!important;border-radius:50%!important;background:#ff7a00!important;font-size:22px!important}.rk-notification-bell span{position:absolute;right:-3px;top:-4px;min-width:23px;height:23px;display:grid;place-items:center;border-radius:999px;background:#df3636;color:#fff;font-size:10px;border:2px solid #111}.rk-notification-drawer{position:fixed;right:-430px;top:0;bottom:0;width:min(410px,92vw);z-index:90002;background:#111;border-left:1px solid #3a3a3a;transition:right .25s;display:flex;flex-direction:column}.rk-notification-drawer.aberta{right:0}.rk-notification-drawer>header{display:flex;justify-content:space-between;padding:18px;border-bottom:1px solid #303030}.rk-notification-drawer header small{display:block;color:#888}.rk-notification-drawer header button{width:42px!important;height:42px!important;min-width:42px!important;margin:0!important;padding:0!important}.rk-notification-actions{padding:10px}.rk-notification-actions button{margin:0!important}.rk-notification-list{overflow:auto;padding:10px}.rk-notification-item{display:grid;grid-template-columns:42px 1fr;gap:10px;padding:12px;border-radius:15px;border:1px solid #303030;background:#181818;margin-bottom:8px}.rk-notification-item.nao-lida{border-color:#6c431e;background:#24180d}.rk-notification-icon{font-size:18px}.rk-notification-item p{margin:5px 0;color:#aaa;font-size:10px}.rk-notification-empty{text-align:center;color:#777;padding:35px}.rk-notification-backdrop{position:fixed;inset:0;z-index:90001;background:rgba(0,0,0,.65);display:none}.rk-notification-backdrop.aberto{display:block}.manual-financeiro-box{margin:14px 0;padding:15px;border:1px solid #3b3b3b;border-radius:18px;background:#151515}.manual-financeiro-box h4{color:#72dda0}.manual-saldo-box{display:flex;justify-content:space-between;padding:13px;border-radius:14px;background:#21190f;border:1px solid #5a3d1c;margin:10px 0}.manual-saldo-box strong{color:#ffab5d;font-size:19px}


/* =========================================================
   RK EXPRESS — SPRINT 9A.1 / CLIENTES E PROMOÇÃO
   ========================================================= */
#lista-clientes-admin .entrega-item{
  padding:10px!important;background:transparent!important;border:0!important
}
.cliente-card-resumo{
  display:flex;justify-content:space-between;align-items:center;gap:14px;
  padding:15px;border-radius:17px;border:1px solid #343434;background:#181818
}
.cliente-card-resumo h4{margin:0 0 5px;font-size:15px}
.cliente-card-resumo p{margin:0;color:#929292;font-size:10px}
.btn-cliente-mais{
  width:auto!important;min-width:86px!important;min-height:42px!important;
  margin:0!important;padding:0 14px!important;background:#ff7a00!important
}
.cliente-card-detalhes{
  margin-top:8px;padding:14px;border:1px solid #343434;border-radius:17px;background:#131313
}
.cliente-card-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}
.cliente-card-tags span{
  padding:4px 7px;border-radius:999px;background:#292929;color:#bbb;
  font-size:8px;font-weight:900;text-transform:uppercase
}
.cliente-card-tags .promo-ativa{background:#3e270d;color:#ffb067}
.cliente-card-tags .status-alerta{background:#421e1e;color:#ffaaaa}
.cliente-admin-actions{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:11px
}
.cliente-admin-actions button{margin:0!important;min-height:44px!important;font-size:9px!important}
.btn-promocao-prime{background:#6b430e!important;color:#ffd18c!important;border:1px solid #98631b!important}
.btn-excluir-cliente{background:#3a1717!important;color:#ffaaaa!important;border:1px solid #683131!important}
@media(max-width:720px){
  .cliente-card-resumo{align-items:flex-start;flex-direction:column}
  .btn-cliente-mais{width:100%!important}
  .cliente-admin-actions{grid-template-columns:1fr}
}


/* =========================================================
   RK EXPRESS — SPRINT 9B / GESTÃO AUTOMÁTICA DE PLANOS
   ========================================================= */
.plano-preview{
  margin-top:10px;padding:13px;border:1px solid #393939;border-radius:16px;background:#161616
}
.plano-preview-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px
}
.plano-preview-grid>div{
  padding:10px;border-radius:12px;background:#222;border:1px solid #343434
}
.plano-preview-grid small{
  display:block;color:#888;font-size:8px;font-weight:900;text-transform:uppercase
}
.plano-preview-grid strong{display:block;margin-top:5px;font-size:11px}
.prime-rule-highlight,.prime-free-note{
  margin-top:10px;padding:11px;border-radius:13px;background:#30200e;
  border:1px solid #704a1c;color:#ffc47f;font-size:10px;line-height:1.5
}
.analytics-plan-management{grid-column:1/-1}
.plan-management-kpis{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:12px
}
.plan-management-kpis article{
  padding:13px;border-radius:15px;border:1px solid #343434;background:#181818
}
.plan-management-kpis small{
  display:block;color:#888;font-size:8px;font-weight:900;text-transform:uppercase
}
.plan-management-kpis strong{display:block;margin-top:6px;font-size:18px}
.plan-management-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px
}
.plan-management-card{
  padding:14px;border-radius:17px;border:1px solid #393939;background:linear-gradient(145deg,#1b1b1b,#121212)
}
.plan-management-card>div{display:flex;justify-content:space-between;gap:10px;align-items:center}
.plan-management-card small{font-size:10px;color:#ffad61;font-weight:900}
.plan-management-card strong{font-size:12px}
.plan-management-card p{margin:8px 0 0;font-size:10px;color:#aaa}
.plan-management-card b{color:#fff}
.plan-management-card.prime{border-color:#73501e;background:linear-gradient(145deg,#281b0c,#151515)}
.prime-analytics-note{color:#ffc27d!important}
@media(max-width:800px){
  .plano-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .plan-management-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .plan-management-grid{grid-template-columns:1fr}
}
@media(max-width:460px){
  .plano-preview-grid,.plan-management-kpis{grid-template-columns:1fr}
}


/* =========================================================
   RK EXPRESS — SPRINT 10 / PUSH NOTIFICATIONS
   ========================================================= */
.rk-notification-actions{
  display:grid;grid-template-columns:1fr 1fr;gap:7px
}
.rk-notification-actions button{width:100%!important}
.rk-push-status{
  grid-column:1/-1;margin:3px 0 0;padding:9px 10px;border-radius:11px;
  background:#1b1b1b;border:1px solid #333;color:#999;font-size:9px;line-height:1.4
}
.rk-push-status.sucesso{background:#13271c;border-color:#2a5c40;color:#86dcaa}
.rk-push-status.erro{background:#2a1515;border-color:#633535;color:#ffaaaa}
#rk-push-enable{background:#73501a!important;color:#ffd49a!important;border:1px solid #9a6d26!important}
#rk-push-test{background:#174f32!important;color:#8fe5b4!important;border:1px solid #28754b!important}
.rk-push-config-modal{position:fixed;inset:0;z-index:100010;display:none}
.rk-push-config-modal.aberto{display:block}
.rk-push-config-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(7px)}
.rk-push-config-dialog{
  position:relative;width:min(620px,calc(100% - 28px));margin:10vh auto;padding:20px;
  border-radius:23px;border:1px solid #3a3a3a;background:#121212;box-shadow:0 35px 90px rgba(0,0,0,.65)
}
.rk-push-config-dialog header{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:13px}
.rk-push-config-dialog header strong,.rk-push-config-dialog header small{display:block}
.rk-push-config-dialog header small{color:#888;margin-top:3px}
.rk-push-config-dialog header button{width:42px!important;height:42px!important;min-width:42px!important;margin:0!important;padding:0!important}
.rk-push-config-dialog p{color:#aaa;font-size:11px;line-height:1.5}
.rk-push-config-dialog textarea{font-family:monospace;word-break:break-all}
@media(max-width:520px){
  .rk-notification-actions{grid-template-columns:1fr}
  .rk-push-status{grid-column:auto}
}


/* =========================================================
   RK EXPRESS — SPRINT 12 / OPERAÇÃO INTELIGENTE
   ========================================================= */
.corrida-timeline{
  display:flex;align-items:center;gap:5px;margin:12px 0;padding:11px;
  border:1px solid #343434;border-radius:15px;background:#141414;overflow-x:auto
}
.timeline-step{min-width:74px;text-align:center;opacity:.38}
.timeline-step span{display:grid;place-items:center;width:30px;height:30px;margin:0 auto 5px;border-radius:50%;background:#292929}
.timeline-step b{font-size:8px;display:block}
.timeline-step.atual,.timeline-step.concluido{opacity:1}
.timeline-step.atual span{background:#ff7a00;box-shadow:0 0 0 5px rgba(255,122,0,.12)}
.timeline-step.concluido span{background:#1f8f53}
.timeline-step.erro span{background:#a52f2f}
.timeline-line{height:3px;min-width:24px;background:#333;border-radius:4px}.timeline-line.concluida{background:#1f8f53}

.sequencia-motoboy{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0
}
.sequencia-motoboy>div{padding:9px 5px;text-align:center;border:1px solid #333;border-radius:12px;background:#181818;opacity:.4}
.sequencia-motoboy span{display:grid;place-items:center;width:25px;height:25px;margin:0 auto 5px;border-radius:50%;background:#292929;font-size:9px}
.sequencia-motoboy b{font-size:8px;display:block}.sequencia-motoboy .atual,.sequencia-motoboy .feito{opacity:1}.sequencia-motoboy .atual{border-color:#80501d}.sequencia-motoboy .atual span{background:#ff7a00}.sequencia-motoboy .feito span{background:#1f8f53}

.editar-corrida-modal{position:fixed;inset:0;z-index:100020;display:none}.editar-corrida-modal.aberto{display:block}
.editar-corrida-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(8px)}
.editar-corrida-dialog{position:relative;width:min(720px,calc(100% - 24px));max-height:90vh;overflow:auto;margin:5vh auto;padding:20px;border-radius:23px;border:1px solid #3b3b3b;background:#121212;box-shadow:0 35px 100px rgba(0,0,0,.7)}
.editar-corrida-dialog header{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:16px}.editar-corrida-dialog header strong,.editar-corrida-dialog header small{display:block}.editar-corrida-dialog header small{color:#888}.editar-corrida-dialog header button{width:42px!important;height:42px!important;min-width:42px!important;margin:0!important;padding:0!important}
.editar-corrida-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0}.editar-corrida-checks label{padding:11px;border:1px solid #343434;border-radius:13px;background:#191919;font-size:10px}
.editar-corrida-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.editar-corrida-resumo{margin:13px 0;padding:14px;border:1px solid #4d391f;border-radius:15px;background:#21170d}.editar-corrida-resumo>div{display:flex;justify-content:space-between;margin:5px 0}.editar-corrida-resumo small{color:#aaa}.editar-corrida-resumo strong{color:#ffb36c}.editar-corrida-resumo p{font-size:10px;color:#aaa}
.editar-corrida-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.editar-corrida-actions button{margin:0!important}
.btn-editar-corrida{background:#294966!important;color:#a9d7ff!important;border:1px solid #40719b!important}.btn-complemento{background:#57410e!important;color:#ffe08a!important;border:1px solid #886719!important}.saldo-complementar{padding:8px;border-radius:10px;background:#3a2a09;color:#ffd26e}
.promo-duration-control{display:grid;grid-template-columns:110px 1fr;gap:7px}.promo-duration-control select,.promo-duration-control button{margin:0!important}
@media(max-width:650px){.editar-corrida-checks,.editar-corrida-grid,.editar-corrida-actions{grid-template-columns:1fr}.sequencia-motoboy{grid-template-columns:repeat(2,minmax(0,1fr))}.promo-duration-control{grid-template-columns:1fr}}


/* =========================================================
   RK EXPERIENCE — DASHBOARD EXECUTIVO DO CLIENTE
   ========================================================= */
.rk-client-app{max-width:1160px;margin:0 auto;color:var(--rk-text)}
.rk-client-app .rk-panel-logo{width:150px;max-height:76px;margin:0;object-fit:contain}
.rk-client-hero{display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center;padding:22px 26px;margin-bottom:18px;background:linear-gradient(135deg,#191919,#111);border:1px solid #303030;border-radius:26px;position:relative;overflow:hidden}
.rk-client-hero:after{content:"";position:absolute;width:230px;height:230px;border-radius:50%;right:-105px;top:-130px;background:rgba(255,122,0,.12);filter:blur(4px)}
.rk-client-hero-copy{position:relative;z-index:1}.rk-client-hero-copy h2{margin:4px 0 5px;font-size:30px}.rk-client-hero-copy p{margin:0;color:#aaa;font-size:13px}.rk-eyebrow{display:block;color:var(--rk-orange);font-size:10px;font-weight:900;letter-spacing:1.7px}
.rk-client-header-actions{display:flex;gap:9px;position:relative;z-index:2}.rk-icon-action{display:grid!important;place-items:center;width:48px!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0!important;border:1px solid #383838!important;border-radius:15px!important;background:#232323!important;color:#fff!important;text-decoration:none!important;font-size:19px!important;box-shadow:none!important}.rk-logout-icon{color:#ff8a8a!important}
.rk-client-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0 0 18px}.rk-client-kpis article{display:flex;gap:13px;align-items:center;min-height:104px;padding:18px;background:#171717;border:1px solid #2f2f2f;border-radius:21px}.rk-client-kpis article>span{display:grid;place-items:center;width:45px;height:45px;flex:0 0 45px;border-radius:14px;background:rgba(255,122,0,.12);color:var(--rk-orange);font-size:20px}.rk-client-kpis small{display:block;color:#929292;font-size:11px;margin-bottom:7px}.rk-client-kpis strong{font-size:21px;color:#fff;white-space:nowrap}
.rk-client-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.rk-client-quick-actions button{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;text-align:left;column-gap:12px;align-items:center;min-height:88px;margin:0;padding:15px;background:#202020;border:1px solid #333;box-shadow:none}.rk-client-quick-actions button>span{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--rk-orange);color:#fff;font-size:23px}.rk-client-quick-actions b{font-size:14px}.rk-client-quick-actions small{color:#8f8f8f;font-size:10px;font-weight:500}
.rk-client-panel{padding:22px;margin:0 0 18px;background:#141414;border:1px solid #303030;border-radius:25px;box-shadow:0 16px 36px rgba(0,0,0,.22)}.rk-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.rk-panel-heading h3{font-size:20px;margin:4px 0 0}.rk-live-dot{padding:7px 10px;border-radius:999px;background:rgba(31,167,90,.12);color:#62d995;font-size:9px;font-weight:900;letter-spacing:1px}.rk-live-dot:before{content:"";display:inline-block;width:6px;height:6px;background:#36c878;border-radius:50%;margin-right:6px;box-shadow:0 0 0 5px rgba(54,200,120,.1)}
.rk-client-delivery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rk-client-delivery-grid .entrega-item{margin:0}.rk-empty-state{grid-column:1/-1;text-align:center;color:#888;padding:26px;margin:0;border:1px dashed #333;border-radius:18px}
.rk-small-button{width:auto;min-height:40px;margin:0;padding:0 14px;border:1px solid #383838;background:#222;box-shadow:none;font-size:11px}.rk-order-form.collapsed{display:none}.rk-form-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.rk-order-form fieldset{border:1px solid #303030;border-radius:20px;padding:16px;margin:0;background:#181818}.rk-order-form legend{padding:0 8px;color:#fff;font-size:13px;font-weight:800}.rk-order-form legend span{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:7px;background:var(--rk-orange);border-radius:8px}.rk-input-row{display:grid;grid-template-columns:.65fr 1.35fr;gap:9px}.rk-order-form input,.rk-order-form select{min-height:51px;margin:8px 0;border-radius:14px}.rk-options-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:14px 0}.rk-options-grid .checkbox-container{height:auto;min-height:76px;margin:0;padding:12px 14px}.rk-options-grid .checkbox-container span{display:flex;flex-direction:column}.rk-options-grid .checkbox-container b{font-size:12px}.rk-options-grid .checkbox-container small{color:#888;font-size:10px;margin-top:3px}.rk-checkout-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rk-estimate-card,.rk-payment-card{padding:18px;border:1px solid #303030;border-radius:20px;background:#181818}.rk-estimate-card h3,.rk-payment-card h3{margin:4px 0 12px}.rk-estimate-card>strong{display:block;color:#fff;font-size:24px}.rk-estimate-card>p{font-size:11px;color:#8f8f8f}.rk-estimate-card button{min-height:48px}.rk-payment-card .cupom-box{margin:5px 0 0;padding:0;background:none;border:0}.rk-submit-order{display:flex!important;align-items:center;justify-content:center;gap:12px;max-width:460px;margin:18px auto 0!important}.rk-submit-order span{font-size:22px}.rk-client-history{display:grid;gap:12px;max-height:none!important;overflow:visible!important}.rk-client-history .entrega-item{margin:0;padding:18px}.rk-client-history .timeline-corrida{margin:12px 0}
@media(max-width:900px){.rk-client-kpis,.rk-client-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.rk-form-columns,.rk-checkout-grid{grid-template-columns:1fr}.rk-options-grid{grid-template-columns:1fr}.rk-client-delivery-grid{grid-template-columns:1fr}}
@media(max-width:600px){.rk-client-hero{grid-template-columns:1fr auto;padding:18px}.rk-client-brand{grid-column:1/-1}.rk-client-app .rk-panel-logo{width:125px}.rk-client-hero-copy h2{font-size:25px}.rk-client-header-actions{align-self:end}.rk-client-kpis{gap:9px}.rk-client-kpis article{min-height:91px;padding:13px;gap:9px}.rk-client-kpis article>span{width:36px;height:36px;flex-basis:36px;font-size:16px}.rk-client-kpis strong{font-size:16px}.rk-client-quick-actions{grid-template-columns:1fr 1fr;gap:9px}.rk-client-quick-actions button{grid-template-columns:35px 1fr;min-height:76px;padding:11px}.rk-client-quick-actions button>span{width:35px;height:35px;font-size:18px}.rk-client-panel{padding:16px;border-radius:21px}.rk-panel-heading{align-items:flex-start}.rk-input-row{grid-template-columns:1fr}.rk-client-history .entrega-item{padding:15px}}

/* =========================================================
   RK EXPRESS — PAINEL DO ENTREGADOR V17
   Reforma exclusivamente visual. IDs, eventos e regras intactos.
   ========================================================= */
body[data-rk-screen="entregador"]{background:#050505!important;color:#fff}
body[data-rk-screen="entregador"] .card{max-width:1120px!important;background:linear-gradient(180deg,#090909,#050505)!important;border:1px solid #1f1f1f!important}
body[data-rk-screen="entregador"] #entrega-section{display:block;max-width:980px;margin:0 auto;padding-bottom:30px}
body[data-rk-screen="entregador"] #entrega-section>.rk-panel-logo{width:min(250px,65vw);display:block;margin:0 auto 4px}
body[data-rk-screen="entregador"] #entrega-section>h2{margin:0;text-align:left;font-size:clamp(24px,5vw,38px);letter-spacing:-.04em}
body[data-rk-screen="entregador"] #user-status{text-align:left!important;margin:7px 0 20px!important;color:#9d9d9d!important}
body[data-rk-screen="entregador"] #rotas-entregador-section{margin:0!important;padding:18px!important;border:1px solid #252525!important;border-radius:24px;background:#101010;box-shadow:0 20px 60px rgba(0,0,0,.35)}
body[data-rk-screen="entregador"] #rotas-entregador-section>h3{font-size:17px;margin:0 0 14px;color:#fff}
body[data-rk-screen="entregador"] #lista-rotas-entregador{max-height:none!important;overflow:visible!important;display:grid;gap:18px;color:#aaa}
body[data-rk-screen="entregador"] #lista-rotas-entregador>.entrega-item{margin:0!important;padding:18px!important;border:1px solid #303030!important;border-radius:22px!important;background:linear-gradient(180deg,#181818,#101010)!important;box-shadow:0 14px 36px rgba(0,0,0,.28)}
body[data-rk-screen="entregador"] #lista-rotas-entregador>.entrega-item>p{font-size:14px;line-height:1.5;margin:8px 0;color:#d2d2d2}
body[data-rk-screen="entregador"] #lista-rotas-entregador>.entrega-item>p strong{color:#fff}
body[data-rk-screen="entregador"] .badge{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;font-size:10px;letter-spacing:.08em;font-weight:800}
body[data-rk-screen="entregador"] .mapa-motoboy-box{margin:18px 0;border:1px solid #343434;border-radius:20px;overflow:hidden;background:#090909}
body[data-rk-screen="entregador"] .mapa-motoboy-topo{padding:14px 14px 12px;background:#121212}
body[data-rk-screen="entregador"] .mapa-motoboy-canvas{height:380px;min-height:300px;background:#151515}
body[data-rk-screen="entregador"] .btn-navegacao-motoboy{min-height:58px;display:flex;align-items:center;justify-content:center;border-radius:15px!important;background:#ff7a00!important;color:#111!important;font-size:15px!important;font-weight:900!important;padding:0 20px!important;box-shadow:0 10px 25px rgba(255,122,0,.22)}
body[data-rk-screen="entregador"] .section-box,body[data-rk-screen="entregador"] .gps-box{margin:14px 0!important;padding:16px!important;border:1px solid #2e2e2e!important;border-radius:18px!important;background:#141414!important}
body[data-rk-screen="entregador"] .section-box h3,body[data-rk-screen="entregador"] .gps-box h3{color:#fff!important;font-size:16px;margin:0 0 9px}
body[data-rk-screen="entregador"] .field-note,body[data-rk-screen="entregador"] [data-espera-info]{color:#aaa!important;line-height:1.45}
body[data-rk-screen="entregador"] input,body[data-rk-screen="entregador"] select,body[data-rk-screen="entregador"] textarea{min-height:54px;border-radius:14px!important;border:1px solid #373737!important;background:#0b0b0b!important;color:#fff!important;font-size:16px!important}
body[data-rk-screen="entregador"] input[type="file"]{padding:11px!important}
body[data-rk-screen="entregador"] canvas[data-signature-canvas]{width:100%!important;max-width:100%!important;background:#fff!important;border-radius:14px!important;border:2px solid #ff7a00!important}
body[data-rk-screen="entregador"] [data-action="coletar"],body[data-rk-screen="entregador"] [data-action="finalizar"]{width:100%!important;min-height:76px!important;margin-top:16px!important;border-radius:18px!important;background:#ff7a00!important;color:#111!important;font-size:17px!important;font-weight:900!important;letter-spacing:-.01em!important;box-shadow:0 12px 28px rgba(255,122,0,.24)!important}
body[data-rk-screen="entregador"] [data-action="ativar-gps"],body[data-rk-screen="entregador"] [data-action="iniciar-espera-rota"],body[data-rk-screen="entregador"] [data-action="parar-espera-rota"],body[data-rk-screen="entregador"] [data-action="limpar-assinatura-rota"]{min-height:56px!important;border-radius:14px!important;font-weight:800!important;font-size:14px!important}
body[data-rk-screen="entregador"] .btn-whatsapp-link{display:flex;align-items:center;justify-content:center;min-height:54px;border-radius:14px!important;font-weight:800!important}
body[data-rk-screen="entregador"] .sequencia-motoboy{margin:14px 0;gap:8px}
body[data-rk-screen="entregador"] .sequencia-motoboy>div{min-height:76px;display:flex;flex-direction:column;justify-content:center}
body[data-rk-screen="entregador"] #historico-section{margin-top:20px!important;padding:18px!important;border:1px solid #252525!important;border-radius:22px;background:#101010}
body[data-rk-screen="entregador"] #historico-section>h3{margin-top:0;color:#fff}
body[data-rk-screen="entregador"] #lista-historico{max-height:420px!important}
body[data-rk-screen="entregador"] #btn-logout-entregador{width:100%;min-height:54px;margin:18px 0 0!important;border-radius:15px!important}
@media(max-width:650px){
 body[data-rk-screen="entregador"] .card{padding:calc(14px + env(safe-area-inset-top)) 12px calc(22px + env(safe-area-inset-bottom))!important}
 body[data-rk-screen="entregador"] #entrega-section>.rk-panel-logo{width:190px;margin-bottom:2px}
 body[data-rk-screen="entregador"] #rotas-entregador-section{padding:12px!important;border-radius:20px}
 body[data-rk-screen="entregador"] #lista-rotas-entregador>.entrega-item{padding:14px!important;border-radius:18px!important}
 body[data-rk-screen="entregador"] .mapa-motoboy-canvas{height:52vh;min-height:300px;max-height:430px}
 body[data-rk-screen="entregador"] [data-action="coletar"],body[data-rk-screen="entregador"] [data-action="finalizar"]{min-height:82px!important;font-size:18px!important}
 body[data-rk-screen="entregador"] .sequencia-motoboy{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* =========================================================
   RK EXPRESS — UI PREMIUM V18
   Ajustes exclusivamente visuais para Motoboy e Super Admin.
   ========================================================= */
:root{
  --rk-surface:#101010;
  --rk-surface-soft:#171717;
  --rk-surface-raised:#1d1d1d;
  --rk-line:rgba(255,255,255,.09);
  --rk-orange-soft:rgba(255,122,0,.13);
  --rk-shadow-soft:0 12px 34px rgba(0,0,0,.24);
}

/* Controles leves compartilhados */
body[data-rk-screen="entregador"] button:not([data-action="coletar"]):not([data-action="finalizar"]),
body[data-rk-screen="admin"] button:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-cancelar){
  min-height:46px;
  border:1px solid var(--rk-line)!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#202020,#181818)!important;
  color:#f5f5f5!important;
  box-shadow:0 7px 18px rgba(0,0,0,.16)!important;
  font-size:13px!important;
  font-weight:750!important;
  letter-spacing:-.01em;
}
body[data-rk-screen="entregador"] button:not([data-action="coletar"]):not([data-action="finalizar"]):hover,
body[data-rk-screen="admin"] button:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-cancelar):hover{
  border-color:rgba(255,122,0,.42)!important;
  background:linear-gradient(180deg,#292929,#1d1d1d)!important;
  transform:translateY(-1px);
}

/* Motoboy: aparência de aplicativo e mapa prioritário */
body[data-rk-screen="entregador"] #entrega-section{
  position:relative;
}
body[data-rk-screen="entregador"] #rotas-entregador-section{
  background:linear-gradient(180deg,rgba(20,20,20,.98),rgba(10,10,10,.98))!important;
  border-color:var(--rk-line)!important;
  box-shadow:var(--rk-shadow-soft)!important;
}
body[data-rk-screen="entregador"] #lista-rotas-entregador>.entrega-item{
  border-left:0!important;
  background:linear-gradient(160deg,#1b1b1b,#101010)!important;
  border-color:var(--rk-line)!important;
  box-shadow:var(--rk-shadow-soft)!important;
}
body[data-rk-screen="entregador"] .mapa-motoboy-box{
  position:relative;
  isolation:isolate;
  border-color:rgba(255,122,0,.28)!important;
  border-radius:24px!important;
  box-shadow:0 18px 46px rgba(0,0,0,.34),0 0 0 1px rgba(255,122,0,.05) inset;
}
body[data-rk-screen="entregador"] .mapa-motoboy-topo{
  gap:14px;
  padding:15px 16px!important;
  background:linear-gradient(180deg,#1b1b1b,#121212)!important;
  border-bottom:1px solid var(--rk-line);
}
body[data-rk-screen="entregador"] .mapa-motoboy-topo strong{font-size:15px!important}
body[data-rk-screen="entregador"] .mapa-motoboy-topo p{font-size:11px!important;line-height:1.4}
body[data-rk-screen="entregador"] .mapa-motoboy-canvas{
  width:100%!important;
  height:clamp(330px,50vh,520px)!important;
  min-height:330px!important;
  overflow:hidden;
  contain:layout paint;
}
body[data-rk-screen="entregador"] .btn-navegacao-motoboy{
  width:auto!important;
  min-width:170px;
  min-height:48px!important;
  margin:0!important;
  border:0!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#ff8a1a,#ff7000)!important;
  color:#090909!important;
  box-shadow:0 10px 24px rgba(255,122,0,.2)!important;
}
body[data-rk-screen="entregador"] [data-action="coletar"],
body[data-rk-screen="entregador"] [data-action="finalizar"]{
  min-height:68px!important;
  border-radius:17px!important;
  box-shadow:0 12px 26px rgba(255,122,0,.20)!important;
}
body[data-rk-screen="entregador"] [data-action="ativar-gps"],
body[data-rk-screen="entregador"] [data-action="iniciar-espera-rota"],
body[data-rk-screen="entregador"] [data-action="parar-espera-rota"],
body[data-rk-screen="entregador"] [data-action="limpar-assinatura-rota"]{
  min-height:48px!important;
  box-shadow:none!important;
}
body[data-rk-screen="entregador"] .section-box,
body[data-rk-screen="entregador"] .gps-box,
body[data-rk-screen="entregador"] #historico-section{
  border-color:var(--rk-line)!important;
  background:var(--rk-surface)!important;
  box-shadow:none!important;
}

/* Super Admin: ERP limpo, abas compactas e ações discretas */
body[data-rk-screen="admin"] .card{
  max-width:1440px!important;
  background:linear-gradient(180deg,#0d0d0d,#070707)!important;
}
body[data-rk-screen="admin"] #admin-section{
  max-width:1360px;
  margin:0 auto;
}
body[data-rk-screen="admin"] .admin-tabs{
  position:sticky;
  top:10px;
  z-index:50;
  grid-template-columns:repeat(8,minmax(100px,1fr));
  gap:7px;
  padding:8px;
  border:1px solid var(--rk-line);
  border-radius:18px;
  background:rgba(12,12,12,.88);
  backdrop-filter:blur(18px);
  box-shadow:0 12px 32px rgba(0,0,0,.25);
}
body[data-rk-screen="admin"] .admin-tabs button{
  min-height:42px!important;
  margin:0!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  background:transparent!important;
  border-color:transparent!important;
  color:#aaa!important;
  box-shadow:none!important;
  font-size:11px!important;
}
body[data-rk-screen="admin"] .admin-tabs button.active{
  background:var(--rk-orange-soft)!important;
  border-color:rgba(255,122,0,.35)!important;
  color:#ff9c43!important;
}
body[data-rk-screen="admin"] .admin-panel,
body[data-rk-screen="admin"] .section-box,
body[data-rk-screen="admin"] .finance-box,
body[data-rk-screen="admin"] .billing-card,
body[data-rk-screen="admin"] .entrega-item{
  border-color:var(--rk-line)!important;
  box-shadow:none!important;
}
body[data-rk-screen="admin"] .entrega-item{
  border-left:0!important;
  background:linear-gradient(180deg,#171717,#111)!important;
}
body[data-rk-screen="admin"] table{border-collapse:separate;border-spacing:0 8px}
body[data-rk-screen="admin"] th{color:#8d8d8d;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
body[data-rk-screen="admin"] td{background:#151515;border-top:1px solid var(--rk-line);border-bottom:1px solid var(--rk-line)}
body[data-rk-screen="admin"] td:first-child{border-left:1px solid var(--rk-line);border-radius:12px 0 0 12px}
body[data-rk-screen="admin"] td:last-child{border-right:1px solid var(--rk-line);border-radius:0 12px 12px 0}

@media(max-width:1050px){
  body[data-rk-screen="admin"] .admin-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:650px){
  body[data-rk-screen="entregador"] .mapa-motoboy-topo{align-items:stretch!important}
  body[data-rk-screen="entregador"] .btn-navegacao-motoboy{width:100%!important}
  body[data-rk-screen="entregador"] .mapa-motoboy-canvas{height:48vh!important;min-height:320px!important;max-height:460px!important}
  body[data-rk-screen="admin"] .admin-tabs{top:4px;grid-template-columns:repeat(2,minmax(0,1fr));border-radius:15px}
  body[data-rk-screen="admin"] .admin-tabs button{min-height:40px!important}
}


/* RK EXPRESS V21 — correção de renderização do Google Maps */
body[data-rk-screen="entregador"] .gm-style canvas,
body[data-rk-screen="entregador"] .gm-style div {
  border-radius:0;
}
body[data-rk-screen="entregador"] .gm-style canvas {
  width:auto!important;
  max-width:none!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body[data-rk-screen="entregador"] .mapa-motoboy-canvas {
  background:#e8edf1!important;
}
body[data-rk-screen="entregador"] .mapa-motoboy-topo {
  min-height:72px;
}
@media (min-width:900px){
  body[data-rk-screen="entregador"] .mapa-motoboy-canvas{height:clamp(430px,56vh,620px)!important;}
}


/* =========================================================
   RK EXPRESS V22 — OPERATION ONE
   Central operacional premium para o painel do entregador.
   ========================================================= */
body[data-rk-screen="entregador"] #entrega-section{
  max-width:1240px;
  margin:0 auto;
}
body[data-rk-screen="entregador"] #user-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:34px;
  margin:0 0 18px!important;
  color:#a3a3a3!important;
  font-size:11px!important;
  letter-spacing:.02em;
}
body[data-rk-screen="entregador"] #rotas-entregador-section>h3{
  margin:0 0 4px;
  font-size:12px;
  color:#ff922e;
  text-transform:uppercase;
  letter-spacing:.14em;
}
body[data-rk-screen="entregador"] #lista-rotas-entregador{
  max-height:none!important;
  overflow:visible!important;
}
body[data-rk-screen="entregador"] .rk-driver-hero{
  margin:-2px -2px 18px;
  padding:22px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  background:
    radial-gradient(circle at 92% 0%,rgba(255,122,0,.18),transparent 34%),
    linear-gradient(145deg,#1a1a1a,#0d0d0d 70%);
  box-shadow:0 18px 44px rgba(0,0,0,.24);
}
body[data-rk-screen="entregador"] .rk-driver-hero-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
body[data-rk-screen="entregador"] .rk-driver-eyebrow{
  display:block;
  margin-bottom:7px;
  color:#ff922e;
  font-size:10px;
  font-weight:900;
  letter-spacing:.17em;
}
body[data-rk-screen="entregador"] .rk-driver-hero h2{
  margin:0;
  color:#fff;
  font-size:clamp(21px,2.2vw,30px);
  line-height:1.08;
  letter-spacing:-.035em;
}
body[data-rk-screen="entregador"] .rk-driver-hero-top p{
  margin:8px 0 0;
  color:#9f9f9f;
  font-size:13px;
}
body[data-rk-screen="entregador"] .rk-driver-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:20px;
}
body[data-rk-screen="entregador"] .rk-driver-metric{
  min-height:92px;
  padding:14px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px;
  background:rgba(255,255,255,.035);
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  column-gap:9px;
  align-content:center;
}
body[data-rk-screen="entregador"] .rk-driver-metric>span{
  grid-row:1/3;
  align-self:center;
  font-size:22px;
}
body[data-rk-screen="entregador"] .rk-driver-metric small{
  color:#888;
  font-size:9px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.1em;
}
body[data-rk-screen="entregador"] .rk-driver-metric strong{
  overflow:hidden;
  color:#f7f7f7;
  font-size:14px;
  line-height:1.25;
  text-overflow:ellipsis;
}
body[data-rk-screen="entregador"] .rk-route-timeline{
  position:relative;
  margin-top:18px;
  padding:16px;
  border-radius:17px;
  background:#0d0d0d;
  border:1px solid rgba(255,255,255,.07);
}
body[data-rk-screen="entregador"] .rk-route-point{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:34px 1fr;
  gap:12px;
  align-items:flex-start;
}
body[data-rk-screen="entregador"] .rk-route-point>span{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:11px;
  background:#ff7a00;
  color:#111;
  font-size:12px;
  font-weight:950;
  box-shadow:0 8px 18px rgba(255,122,0,.22);
}
body[data-rk-screen="entregador"] .rk-route-point-end>span{
  background:#f5f5f5;
  box-shadow:none;
}
body[data-rk-screen="entregador"] .rk-route-point small{
  display:block;
  margin-bottom:4px;
  color:#777;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}
body[data-rk-screen="entregador"] .rk-route-point strong{
  display:block;
  color:#eee;
  font-size:13px;
  line-height:1.45;
}
body[data-rk-screen="entregador"] .rk-route-line{
  width:2px;
  height:18px;
  margin:2px 0 2px 15px;
  background:linear-gradient(#ff7a00,rgba(255,255,255,.28));
}
body[data-rk-screen="entregador"] .mapa-motoboy-box{
  margin-top:18px!important;
}
body[data-rk-screen="entregador"] .mapa-motoboy-topo{
  padding:18px!important;
}
body[data-rk-screen="entregador"] .mapa-motoboy-topo strong{
  font-size:16px!important;
}
body[data-rk-screen="entregador"] .section-box,
body[data-rk-screen="entregador"] .gps-box{
  padding:20px!important;
  border-radius:20px!important;
}
body[data-rk-screen="entregador"] .section-box>h3,
body[data-rk-screen="entregador"] .gps-box>h3{
  margin-top:0;
  font-size:16px;
  letter-spacing:-.015em;
}
@media(max-width:760px){
  body[data-rk-screen="entregador"] .rk-driver-hero{padding:16px;border-radius:18px}
  body[data-rk-screen="entregador"] .rk-driver-hero-top{align-items:center}
  body[data-rk-screen="entregador"] .rk-driver-hero h2{font-size:22px}
  body[data-rk-screen="entregador"] .rk-driver-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-rk-screen="entregador"] .rk-driver-metric{min-height:82px;padding:12px}
  body[data-rk-screen="entregador"] .rk-route-timeline{padding:14px}
  body[data-rk-screen="entregador"] .rk-route-point strong{font-size:12px}
}

/* =========================================================
   RK EXPRESS V23.2 — POLIMENTO SEGURO DO SUPERADMIN
   Apenas apresentação. Não altera estrutura nem regras.
   ========================================================= */
body[data-rk-screen="admin"]{
  background:
    radial-gradient(circle at 12% 0%,rgba(255,122,0,.11),transparent 28%),
    linear-gradient(180deg,#080808 0,#111 100%)!important;
}
body[data-rk-screen="admin"]>.card{
  width:min(1500px,calc(100% - 32px))!important;
  max-width:1500px!important;
  margin:20px auto!important;
  padding:30px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:26px!important;
  background:linear-gradient(145deg,#151515,#0d0d0d)!important;
  box-shadow:0 28px 80px rgba(0,0,0,.36)!important;
}
body[data-rk-screen="admin"] #admin-section{
  max-width:none!important;
  margin:0!important;
}
body[data-rk-screen="admin"] #admin-section>.rk-panel-logo{
  width:138px!important;
  max-height:74px!important;
  object-fit:contain!important;
  object-position:left center!important;
  margin:0 0 14px!important;
}
body[data-rk-screen="admin"] #admin-section>h2{
  margin:0 0 22px!important;
  color:#f5f5f5!important;
  font-size:clamp(26px,3vw,38px)!important;
  letter-spacing:-.045em!important;
  line-height:1!important;
}
body[data-rk-screen="admin"] #admin-status{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  margin:18px 0 12px!important;
  color:#a4a4a4!important;
  font-size:11px!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
body[data-rk-screen="admin"] #admin-status:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 5px rgba(34,197,94,.12);
}

/* Formulário manual: compacto, corporativo e sem ocupar a tela inteira */
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type{
  position:relative!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  column-gap:18px!important;
  row-gap:4px!important;
  margin:0 0 22px!important;
  padding:22px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-top:3px solid #ff7a00!important;
  border-radius:20px!important;
  background:
    radial-gradient(circle at 100% 0%,rgba(255,122,0,.09),transparent 32%),
    #121212!important;
  box-shadow:0 16px 40px rgba(0,0,0,.18)!important;
}
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type>h3,
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type>.footer-note,
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type>.manual-adicionais-box,
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type>.manual-financeiro-box,
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type>#manual-coletas-container,
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type>#btn-add-coleta-manual,
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type>#btn-criar-entrega-manual{
  grid-column:1/-1!important;
}
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type>h3{
  margin:0!important;
  color:#ff922e!important;
  font-size:17px!important;
  letter-spacing:-.015em!important;
}
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type>.footer-note{
  margin:2px 0 14px!important;
  text-align:left!important;
  color:#848484!important;
}
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type label{
  margin:10px 0 6px!important;
  color:#8d8d8d!important;
  font-size:10px!important;
  font-weight:850!important;
  letter-spacing:.08em!important;
}
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type input:not([type="checkbox"]),
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type select,
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type textarea{
  min-height:46px!important;
  margin:0!important;
  padding:11px 13px!important;
  border:1px solid #303030!important;
  border-radius:12px!important;
  background:#0b0b0b!important;
  color:#f0f0f0!important;
  box-shadow:none!important;
}
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type input:focus,
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type select:focus,
body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type textarea:focus{
  border-color:#ff7a00!important;
  box-shadow:0 0 0 3px rgba(255,122,0,.12)!important;
}
body[data-rk-screen="admin"] #manual-coletas-container{
  display:grid!important;
  gap:8px!important;
}
body[data-rk-screen="admin"] #btn-add-coleta-manual{
  justify-self:start!important;
  width:auto!important;
  min-height:38px!important;
  margin:8px 0 2px!important;
  padding:8px 13px!important;
  border:1px solid #353535!important;
  border-radius:11px!important;
  background:#202020!important;
  color:#ddd!important;
  font-size:11px!important;
  box-shadow:none!important;
}
body[data-rk-screen="admin"] .manual-adicionais-box,
body[data-rk-screen="admin"] .manual-financeiro-box{
  margin-top:14px!important;
  padding:16px!important;
  border:1px solid #292929!important;
  border-radius:15px!important;
  background:#0d0d0d!important;
}
body[data-rk-screen="admin"] .manual-adicionais-box h4,
body[data-rk-screen="admin"] .manual-financeiro-box h4{
  margin:0 0 10px!important;
  color:#ededed!important;
  font-size:13px!important;
}
body[data-rk-screen="admin"] .manual-checkbox{
  min-height:42px!important;
  margin:6px 0!important;
  padding:9px 11px!important;
  border:1px solid #292929!important;
  border-radius:11px!important;
  background:#151515!important;
}
body[data-rk-screen="admin"] #btn-criar-entrega-manual{
  min-height:50px!important;
  margin:14px 0 0!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,#ff8a1f,#ff6a00)!important;
  color:#111!important;
  box-shadow:0 12px 26px rgba(255,122,0,.2)!important;
}

/* Navegação e painéis */
body[data-rk-screen="admin"] .admin-tabs{
  position:sticky!important;
  top:8px!important;
  z-index:20!important;
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
  gap:6px!important;
  margin:0 0 18px!important;
  padding:7px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:16px!important;
  background:rgba(12,12,12,.92)!important;
  backdrop-filter:blur(16px)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.22)!important;
}
body[data-rk-screen="admin"] .admin-tabs button{
  min-width:0!important;
  min-height:42px!important;
  margin:0!important;
  padding:8px 7px!important;
  border:1px solid transparent!important;
  border-radius:11px!important;
  background:transparent!important;
  color:#969696!important;
  font-size:10px!important;
  font-weight:850!important;
  box-shadow:none!important;
  white-space:normal!important;
}
body[data-rk-screen="admin"] .admin-tabs button:hover{
  background:#1b1b1b!important;
  color:#eee!important;
}
body[data-rk-screen="admin"] .admin-tabs button.active{
  border-color:rgba(255,122,0,.35)!important;
  background:linear-gradient(135deg,rgba(255,122,0,.22),rgba(255,122,0,.09))!important;
  color:#ff9b3f!important;
}
body[data-rk-screen="admin"] .admin-panel{
  padding:20px!important;
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:20px!important;
  background:#101010!important;
}
body[data-rk-screen="admin"] .admin-panel>h3{
  margin:0 0 6px!important;
  color:#f0f0f0!important;
  font-size:18px!important;
  letter-spacing:-.02em!important;
}
body[data-rk-screen="admin"] .admin-status-grid{
  gap:12px!important;
  margin-top:16px!important;
}
body[data-rk-screen="admin"] .admin-status-grid>.section-box{
  min-width:0!important;
  padding:16px!important;
  border:1px solid #292929!important;
  border-radius:16px!important;
  background:#151515!important;
  box-shadow:none!important;
}
body[data-rk-screen="admin"] .admin-status-grid>.section-box h3{
  margin:0 0 5px!important;
  color:#eee!important;
  font-size:13px!important;
}
body[data-rk-screen="admin"] .admin-status-grid>.section-box .footer-note{
  min-height:32px!important;
  margin:0 0 10px!important;
  color:#747474!important;
  font-size:9px!important;
  line-height:1.4!important;
}
body[data-rk-screen="admin"] .entrega-item{
  margin:8px 0!important;
  padding:14px!important;
  border:1px solid #2b2b2b!important;
  border-radius:14px!important;
  background:#111!important;
  box-shadow:none!important;
}

@media(max-width:1180px){
  body[data-rk-screen="admin"] .admin-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body[data-rk-screen="admin"] .admin-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  body[data-rk-screen="admin"]>.card{
    width:100%!important;
    margin:0!important;
    padding:18px 14px!important;
    border-radius:0!important;
  }
  body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type{
    grid-template-columns:1fr!important;
    padding:16px!important;
  }
  body[data-rk-screen="admin"] #admin-section>.section-box:first-of-type>*{grid-column:1!important}
  body[data-rk-screen="admin"] .admin-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;top:4px!important}
  body[data-rk-screen="admin"] .admin-status-grid{grid-template-columns:1fr!important}
  body[data-rk-screen="admin"] .admin-panel{padding:14px!important}
}


/* RK Express V24 — múltiplas entregas e cálculo manual */
.btn-add-parada,.btn-calcular-rota{width:auto!important;display:inline-block!important;min-height:44px!important;padding:8px 14px!important;margin:6px 6px 14px 0!important;border-radius:12px!important;font-size:13px!important}
.btn-add-parada{background:#475569!important}.btn-calcular-rota{background:#0f766e!important}
.manual-destino-row{padding:14px;margin:10px 0;border:1px solid var(--rk-border);border-radius:16px;background:#1b1b1b}
.manual-destino-row input{margin:7px 0}.manual-remover-destino{width:auto;min-height:38px;padding:6px 12px;margin:5px 0 0;background:#7f1d1d;color:#fff}
#manual-rota-status{padding:12px;border:1px solid #2f4f4f;border-radius:12px;background:#102323;color:#b7ece6!important}
.rk-entrega-destino{margin:16px 0;padding:16px;border:1px solid #444;border-left:5px solid var(--rk-orange);border-radius:16px;background:#191919}
.rk-entrega-destino.concluida{border-left-color:var(--rk-success);background:#102219}.rk-entrega-destino h4{margin:0 0 8px}
.rk-entrega-destino .assinatura-mini{object-fit:contain;background:#fff;max-height:160px}
@media(max-width:768px){.btn-add-parada,.btn-calcular-rota{width:100%!important;margin:6px 0!important}.manual-destino-row{padding:12px}}


/* =========================================================
   RK EXPRESS V25 — CLIENTES, PAGAMENTOS E NOTA FISCAL
   ========================================================= */
.rk-cliente-autocomplete{position:relative}.rk-cliente-sugestoes{position:absolute;z-index:1000;left:0;right:0;top:100%;max-height:300px;overflow:auto;background:#111;border:1px solid #444;border-radius:14px;box-shadow:0 18px 40px rgba(0,0,0,.45);padding:6px}.rk-cliente-sugestao{display:block;width:100%;text-align:left;margin:0 0 5px!important;padding:12px!important;background:#1d1d1d!important;border:1px solid #333!important;border-radius:10px!important}.rk-cliente-sugestao strong,.rk-cliente-sugestao small{display:block}.rk-cliente-sugestao small{margin-top:4px;color:#aaa;font-size:10px}.rk-cliente-novo{display:block;width:100%;text-align:left;margin:0!important;padding:14px!important;color:#ddd!important;background:#171717!important;border:1px dashed #666!important;border-radius:10px!important;cursor:pointer}.rk-cliente-novo strong,.rk-cliente-novo small{display:block}.rk-cliente-novo small{margin-top:5px;color:#aaa;font-size:10px}.manual-cliente-extra-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.rk-pagamento-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900}.rk-pagamento-badge.pago{background:#123924;color:#7ce2a5;border:1px solid #286443}.rk-pagamento-badge.pendente{background:#442c0f;color:#ffc277;border:1px solid #78501e}.rk-financeiro-resumo{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.rk-financeiro-resumo>div{padding:10px;border:1px solid #343434;border-radius:12px;background:#171717}.rk-financeiro-resumo strong,.rk-financeiro-resumo span,.rk-financeiro-resumo small{display:block}.rk-financeiro-resumo strong{font-size:20px}.rk-financeiro-resumo span{font-size:10px;font-weight:800}.rk-financeiro-resumo small{color:#aaa;margin-top:3px}.rk-pagamentos-lista{max-height:230px;overflow:auto;margin:10px 0}.rk-pagamentos-lista>div{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid #292929}.rk-pagamentos-lista small{color:#aaa}@media(max-width:720px){.manual-cliente-extra-grid{grid-template-columns:1fr}.rk-financeiro-resumo{grid-template-columns:1fr}}

/* RK EXPRESS V25.4 — CORRIDAS POR CLIENTE NO FISCAL */
.rk-corridas-fiscais-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:14px 0 8px}.rk-corridas-fiscais-toolbar span{font-size:13px;font-weight:700;color:#334155}.rk-corridas-fiscais-lista{display:grid;gap:8px;max-height:430px;overflow:auto;padding:4px 2px 8px}.rk-corrida-fiscal-item{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer}.rk-corrida-fiscal-item:hover{border-color:#fb923c}.rk-corrida-fiscal-item input{width:18px;height:18px;margin-top:3px}.rk-corrida-fiscal-dados{display:grid;gap:4px;min-width:0}.rk-corrida-fiscal-dados strong{color:#0f172a}.rk-corrida-fiscal-dados small{color:#64748b;overflow-wrap:anywhere}.rk-corrida-fiscal-dados>span{display:flex;gap:6px;flex-wrap:wrap;margin-top:3px}
