/*  Login */

   @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

   .panel-wf > div{
      margin: 0;
      padding: 0;
      
   }
   .panel-wf{
      padding-right: 1rem;
      padding-top: 1rem;
      margin-bottom: 1rem;
      margin-right: 1rem;
   }
   .panel-wf > div:nth-child(2){
      border-radius: 1rem;
   }
        /* ── Login rediseñado ── */
        .login {
            font-family: "Montserrat", sans-serif;
            display: flex;
            height: 100vh;
            overflow: hidden;
        }
        .login-hero {
            flex: 1;
            position: relative;
            background-image: url('../img/weddify_login.JPG');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: flex-end;
        }
        .login-hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(30,24,18,0.72) 0%, rgba(30,24,18,0.18) 60%, transparent 100%);
        }
        .login-hero-content {
            position: relative;
            z-index: 1;
            padding: 40px 44px;
        }
        .login-hero-logo {
            max-width: 140px;
            filter: brightness(0) invert(1);
            margin-bottom: 12px;
            display: block;
        }
        .login-hero-tagline {
            color: rgba(255,255,255,0.8);
            font-size: 0.95rem;
            font-weight: 400;
            margin: 0;
            letter-spacing: 0.02em;
        }
        .login-panel {
            width: 420px;
            min-width: 380px;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 32px;
            overflow-y: auto;
        }
        .login-form-wrap {
            width: 100%;
            max-width: 340px;
        }
        .login-brand {
            display: flex;
            align-items: baseline;
            gap: 6px;
            margin-bottom: 36px;
        }
        .login-brand-title {
            font-size: 1.5rem;
            font-weight: 800;
            color: #1a1a1a;
            letter-spacing: -0.02em;
        }
        .login-brand-dot {
            color: #d1774a;
            font-size: 1.5rem;
            font-weight: 800;
        }
        .login-brand-sub {
            font-size: 0.85rem;
            color: #999;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }
        .login-title {
            font-size: 1.45rem;
            font-weight: 700;
            color: #1a1a1a;
            margin: 0 0 6px;
            letter-spacing: -0.01em;
        }
        .login-subtitle {
            font-size: 0.85rem;
            color: #999;
            margin: 0 0 32px;
        }
        .login-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-top: 0;
        }
        .login-field {
            display: flex;
            flex-direction: column;
            gap: 7px;
        }
        .login-field label {
            font-size: 0.8rem;
            font-weight: 600;
            color: #555;
            letter-spacing: 0.03em;
        }
        .login-input-wrap {
            position: relative;
            display: flex;
            align-items: center;
        }
        .login-input-icon {
            position: absolute;
            left: 14px;
            color: #bbb;
            font-size: 0.85rem;
            pointer-events: none;
        }
        .login-input-wrap input {
            width: 100%;
            padding: 11px 42px 11px 38px;
            border: 1.5px solid #e8e8e8;
            border-radius: 10px;
            font-size: 0.9rem;
            font-family: "Montserrat", sans-serif;
            background: #fafafa;
            color: #1a1a1a;
            outline: none;
            transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
        }
        .login-input-wrap input:focus {
            border-color: #465130;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(70,81,48,0.1);
        }
        .login-input-wrap input::placeholder {
            color: #ccc;
        }
        .login-toggle-pw {
            position: absolute;
            right: 12px;
            background: none;
            border: none;
            padding: 4px 6px;
            cursor: pointer;
            color: #bbb;
            font-size: 0.82rem;
            border-radius: 6px;
            transition: color 0.15s;
            line-height: 1;
        }
        .login-toggle-pw:hover {
            color: #465130;
        }
        .login-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 12px 24px;
            background: #465130;
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 0.92rem;
            font-weight: 700;
            font-family: "Montserrat", sans-serif;
            cursor: pointer;
            transition: background 0.2s, transform 0.1s;
            margin-top: 4px;
        }
        .login-btn:hover {
            background: #d1774a;
            transform: translateY(-1px);
        }
        .login-btn:active {
            transform: translateY(0);
        }
        @media (max-width: 768px) {
            .login-hero { display: none; }
            .login-panel { width: 100%; min-width: unset; }
        }
        /* ── fin login ── */
        .btn-primary {
            background-color: #465130;
            border-color: #465130;
        }
        .btn-primary:hover,.swal2-styled.swal2-confirm{
          background-color: rgb(209, 119, 74) !important;
          border-color: #d1774a !important;
        }

       .swal2-styled:focus {
         box-shadow: 0 0 0 3px rgba(209, 119, 74,.5) !important;
      }
      body {
         font-family:  "Montserrat", sans-serif;
      }
      body, html {
         width: 100vw;
         overflow-x: hidden;
      }
      .container-fluid {
         padding-right: 0;
         padding-left: 0;
      }
      .nav-sidebar {
         background-color: #343a40;
         padding-top: 20px;
      }
      .nav-sidebar .nav-link {
         color: #d8d8d8;
      }
      .nav-sidebar .nav-link:hover {
         color: #fff;
      }
      .main-content {
         padding: 2rem;
      }
      .table-container {
         margin-top: 20px;
      }
      .sidebar-sticky {
         margin-top: 0;
         margin-left: 0;
         position: relative;
         height: 100vh;
         overflow-y: auto;
         overflow-x: hidden;
         padding-bottom: 100px;
      }
      .pl-16{
         padding-left: 16px !important;
      }
      select{
         border-radius: 16px !important;
      }
      .btn-blue {
         background: #5e86cc !important;
         border-color: #5e86cc !important;
         color: white;
     }
     .btn-green{
      background: #5f6f4b !important;
      border-color: #5f6f4b !important;
     }
     .btn-orange{
      background-color: #e28343 !important;
      border-color: #e28343 !important;
     }
     .btn-red{
   background: #bc3f29 !important;
   border-color: #bc3f29 !important;
     }
      /*.sidebar {
         height: 100vh !important;
      }*/
      .nav-link,.nav-link:hover{
         cursor: pointer;
      }
      .number-totals {
         font-size: 13px;
         text-decoration: none;
      }
      .ml-2 {
         margin-left: 8px;
      }
      .main-content {
         padding: 2rem;
         background: white;
         margin: 20px 2rem;
         box-shadow: 0px 0px 0px 3px rgba(243,242,240,1);
         border-radius: 16px;
         border-top-left-radius: 0px;
     }
      .import-div,.add-div {
         position: fixed;
         background: white;
         padding: 20px;
         border-radius: 8px;
         box-shadow: 0px 1px 0px rgba(0,0,0,0.2);
         left: 50%;
         top: 50%;
         transform: translate(-50%,-50%);
         z-index: 99;
      }
      .text-r{
         text-align: right;
      }
      .overlay-import-export {
         position: fixed;
         width: 100%;
         height: 100%;
         left: 0;
         top: 0;
         background-color: rgba(0,0,0,0.10);
         z-index: 3;
      }
      .float-r{
         float: right;
      }
      .btn-exit {
         border: none;
         background: transparent;
      }
      .table-container {
         max-height: 65vh;
         margin-top: 20px;
         overflow-y: scroll;
      }
      thead{
         position: sticky;
         top: -10px;
         z-index: 2;
      }
      .actions{
         display: flex;
         justify-content: center;
         gap: 6px;
      }
      table input[type="number"] {
         width: 55px;
         display: inline-block;
      }
      .img_whats{
         width: 50%;
         height: 100px;
      }
      .form-control{
         -webkit-appearance: listbox !important;
      }
      .p-0{
         padding: 0 !important;
      }
      .h-38{
         height: 38px;
      }
      .invitaciones-edit .row {
         align-items: center;
         margin-right: 20px;
      }
      .invitaciones-edit{
         height: 250px;
         overflow-y: scroll;
         overflow-x: hidden;
      }
      .total-inv, .sub-total-inv {
         display: block;
         font-size: 12px;
         margin: -2px 0;
      }
      .total-inv{
         font-weight: bold;
      }
      .total-inv i {
         float: right;
      }
      .total-inv i {
         float: right;
         margin-top: 2px;
         font-size: 10px;
         font-weight: bold;
         cursor: pointer;
      }

      .actions-div {
         position: relative;
      }
      .toltip {
         display: none;
         position: absolute;
         top: -29px;
         left: 50%;
         width: 160px;
         transform: translate(-50%);
         z-index: 999;
         border-radius: 6px;
         background: black;
         padding: 2px 0;
         color: white;
         text-align: center;
         font-size: 12px;
      }
      .actions-div:hover .toltip{
         transition: 0.3s ease;
      display: block;
      }
      .actions-div:hover .no-toltip{
      display: none;
      }
      .question-event {
         background: #d1774a;
         padding: 4px 6px;
         border-radius: 100%;
         color: white;
         cursor: pointer;
         font-size: 10px;
      }
      .question-event:hover + div{
         display: block;
         transition: 0.3s ease-in-out;
      }
      .info-var-questions p {
         font-size: 14px;
      }
      .info-var-questions {
         padding: 10px;
         border-radius: 8px;
         box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.2);
         background-color: #fff;
         position: absolute;
         left: -118px;
         top: -110px;
         display:none;
         
      }
      .form-label {
         position: relative;
      }
      input[type="checkbox"]{
         display: none;
      }
      input[type="checkbox"] + label {
         margin: 0 auto;
         width: 13px;
         height: 13px;
         border: 1px solid rgba(0,0,0,0.2);
         cursor: pointer;
         border-radius: 3px;
     }
     input[type="checkbox"]:checked + label {
       background: #d1774a;
       border-color: #d1774a;
     }
     td, th, tr {
      border: none;
      font-weight: bold;
      color: #8a8a8a;
      font-size: 14px;
  }
  
  td {
   vertical-align: middle;
}
.panel-wf > .col-md-10 {
   border-radius: 1rem;
}
.actions button,.invitaciones-edit .btn-danger {
   border-radius: 10px !important;
}
 tr td:nth-child(4), tr th:nth-child(n+4) {
   text-align: center;
}
  .weddify-logo {
      color: #4d4d4d;
      font-size: 24px;
      font-style: italic;
      text-decoration: none;
  }
  .sidebar-sticky a:hover {
      text-decoration: none;
   }
   .sidebar-sticky a {
      transition: 0.15s ease;
   }
   .point-wf {
      width: 18px;
      height: 18px;
      background-color: #4d4d4d;
      display: inline-block;
      border-radius: 100%;
  }
  .gap-10x{
   gap:10px;
  }
  .gap-4px{
   gap: 4px;
  }
  .time-box {
      width: 200px;
   }
   .time-box span {
      font-size: 18px;
      font-weight: bold;
  }
  .number{
      display: inline-block;
      margin-left: 10px;
      padding: 0 10px;
      border-radius: 9px;
      color: white !important;
  }
  .tags-nav {
      padding: 0 20px;
      margin: 0 12px;
      margin-top: 20px;
      margin-bottom: -28px;
   }
  .box-time {
      display: block;
      padding: 8px;
      color: white;
      width: 150px;
      border-radius: 16px;
      padding-left: 22px;
   }
   .number-totals {
    display: inline-block;
    /* padding: 20px; */
    /* background: white; */
    border-right: 20px solid transparent;
    border-bottom: 10px solid;
    border-bottom: 40px solid #f2f2f2;
    width: 200px;
    filter: drop-shadow(0px -2px 5px #ddd3d2);
    position: relative;
}
.number-totals.active{
   border-bottom-color: white;
}
table tr:nth-child(2n) td, table thead th {
   background: #f2f2f2 !important;
}
td.actions button {
   border-radius: 12px;
}
.number-totals > span {
   position: absolute;
   top: 20px;
   left: 20px;
   transform: translateY(-50%);
}
   .text-blue{
      color: #5e86cc !important; 
   }
   .box-blue-time,.text-blue .number {
      background: #5e86cc;
   }
   .box-green-time,.text-green .number {
      background: #5f6f4b;
  }
  .box-orange-time,.text-orange .number{
   background: #e28343;
  }
  .box-red-time,.text-red .number{
   background: #bc3f29;
  }
  .text-red{
      color: #bc3f29 !important;
  }
  .faltan{
   font-size: 20px;
  }
  input[type="search"] {
      border-radius: 16px;
      background: transparent;
      border: 1px solid #918987;
      color: #918987 !important;
   }
   .ml-20{
      margin-left: 20px;
   }
  .bg-custom-gray{
    background-color: #f7f6f4;
  }
  .container-90{
   width: 90%;
   margin: 0 auto;
  }
  .btn-green-1{
   background-color: #9fa892;
   color: #fff;
  }
  .btn-green-1:hover{
   background-color: #5f6f4b;
   color: #fff;
   transition: 0.2s;
  }
  .text-green{
   color: #5f6f4b !important;
  }
  .text-orange{
   color: #e28343 !important;
  }
  .w-600{
   font-weight: 600;
  }
  .btn {
      border-radius: 2rem;
   }
   .level-2-wf{
      background-color: #ddd3d2;
      padding: 40px 20px;
      border-radius: 2rem;
      position: relative;
   }
   .w-30{
      width: 30%;
   }
   .w-70{
      width: 70%;
   }
   .tags-nav > a:not(:first-child) {
      width: 220px;
  }
  
  .number-totals:not(:first-child) > span {
      left: 60px;
  }
  
  .tags-nav a:first-child {
      position: relative;
      z-index: 9;
  }
  .tags-nav a:nth-child(2) {
      position: relative;
      transform: translateX(-20px);
      z-index: 8;
  }
  .tags-nav a:nth-child(3) {
      position: relative;
      transform: translateX(-40px);
      z-index: 7;
  }
  .tags-nav a:nth-child(4) {
      position: relative;
      transform: translateX(-60px);
      z-index: 6;
  }
/* ── Mobile top bar ── */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 54px;
    background: #fff;
    border-bottom: 1px solid #e8e0d8;
    z-index: 200;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.mobile-topbar-logo { height: 26px; }
.mobile-topbar-event {
    font-size: .82rem;
    font-weight: 600;
    color: #3d4a2a;
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hamburger button */
.mobile-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    width: 36px;
    height: 36px;
}
.mobile-hamburger span {
    display: block;
    height: 2px;
    background: #3d4a2a;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
    transform-origin: center;
}
.mobile-hamburger span.hb-open:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-hamburger span.hb-open:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-hamburger span.hb-open:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 198;
    opacity: 0;
    pointer-events: none; /* cerrado: deja pasar los clicks al contenido */
    transition: opacity .25s;
}
.sidebar-backdrop.backdrop-visible {
    opacity: 1;
    pointer-events: auto; /* abierto: captura el click para cerrar el menú */
}

.numero-de-whatsapp {
   width: 250px;
   position: absolute;
   right: 10px;
   top: 10px;
   padding: 10px;
   background: #f7f6f4;
   border-radius: 16px;
}
.numero-de-whatsapp > span {
   font-size: 14px;
}
.btn-mensaje {
    cursor: pointer;
    border: none;
    color: #e28343;
    background-color: transparent;
    padding: 0;
    float: right;
}
/* ── Modal mensaje invitado ── */
.msg-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: msgFadeIn 0.18s ease;
}
@keyframes msgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.msg-card {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    animation: msgSlideUp 0.2s ease;
    overflow: hidden;
}
@keyframes msgSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.msg-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #f0ece5;
}
.msg-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef3e8;
    color: #465130;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.msg-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.msg-guest-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2a2a2a;
    line-height: 1.2;
}
.msg-header-sub {
    font-size: 0.7rem;
    color: #9a9a9a;
    display: flex;
    align-items: center;
    gap: 5px;
}
.msg-close-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f5f2ed;
    color: #888;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.msg-close-btn:hover { background: #ffe0dc; color: #c0392b; }
.msg-card-body { padding: 20px; }
.msg-bubble {
    background: #f7f4ef;
    border-left: 3px solid #465130;
    border-radius: 0 12px 12px 0;
    padding: 14px 16px;
    position: relative;
}
.msg-quote-icon {
    color: #465130;
    opacity: 0.35;
    font-size: 1.1rem;
    margin-bottom: 6px;
    display: block;
}
.msg-text {
    font-size: 0.88rem;
    color: #3a3a3a;
    line-height: 1.65;
    margin: 0;
}
.msg-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 0 4px;
    color: #bbb;
    font-size: 0.8rem;
    text-align: center;
}
.msg-empty-icon {
    font-size: 2rem;
    color: #d8d3cb;
}
.pos-rel{
   position: relative;
}
.delete-img-whats {
    border: none;
    background: transparent;
    position: absolute;
    left: 92%;
    top: 0;
    cursor: pointer;
}



/* ── Dashboard: barra de progreso ──────────────────────────────────────── */
.dash-progress-card {
    background: #fff;
    border: 1px solid #ede8df;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.dash-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}
.dash-progress-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #555;
}
.dash-progress-pct {
    font-size: 0.78rem;
    font-weight: 800;
    color: #465130;
}
.dash-progress-bar {
    display: flex;
    height: 10px;
    border-radius: 99px;
    overflow: hidden;
    background: #f0ece6;
    gap: 2px;
    margin-bottom: 12px;
}
.dash-prog-seg { height: 100%; transition: width 0.6s ease; min-width: 0; }
.dash-prog-conf { background: #3a7d44; border-radius: 99px 0 0 99px; }
.dash-prog-pend { background: #d08700; }
.dash-prog-canc { background: #c0392b; border-radius: 0 99px 99px 0; }
.dash-progress-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.dash-prog-leg {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #888;
}
.dash-prog-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dash-prog-leg-conf .dash-prog-dot { background: #3a7d44; }
.dash-prog-leg-pend .dash-prog-dot { background: #d08700; }
.dash-prog-leg-canc .dash-prog-dot { background: #c0392b; }

/* ── Invitados: botón copy link ─────────────────────────────────────────── */
.inv-action-copy { background: #eef3e8 !important; color: #465130 !important; }
.inv-action-copy:hover { background: #ddecd3 !important; }

/* ── Invitados: badge nuevo ─────────────────────────────────────────────── */
.inv-nombre-wrap { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.inv-nuevo-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 20px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffd97d;
    animation: badgePulse 2s ease infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* ── Invitados: filtro por mesa ─────────────────────────────────────────── */
.inv-mesa-filter-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #e0dbd4;
    border-radius: 20px;
    padding: 4px 10px 4px 10px;
    margin-left: auto;
}
.inv-mesa-filter-icon { font-size: 0.72rem; color: #aaa; }
.inv-mesa-filter-select {
    border: none;
    background: transparent;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    outline: none;
    cursor: pointer;
    max-width: 160px;
}
.inv-mesa-filter-clear {
    border: none; background: none;
    color: #bbb; cursor: pointer;
    font-size: 0.72rem; padding: 0;
    display: flex; align-items: center;
}
.inv-mesa-filter-clear:hover { color: #888; }

/* ── Invitados: pases expandidos con inline mesa edit ───────────────────── */
.inv-pase-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    min-width: 0;
}
.inv-pase-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.inv-pase-person-name {
    font-size: 0.78rem;
    color: #444;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inv-mesa-inline-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #888;
    background: #f5f2ed;
    border: 1px solid #e8e2d8;
    border-radius: 20px;
    padding: 2px 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.inv-mesa-inline-chip:hover {
    background: #eef3e8;
    border-color: #465130;
    color: #465130;
}
.inv-mesa-inline-input {
    width: 90px;
    padding: 3px 8px;
    border: 1.5px solid #465130;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    color: #2a2a2a;
    background: #fff;
    outline: none;
    flex-shrink: 0;
}

/* ── Print: vista mesas ─────────────────────────────────────────────────── */
@media print {
    .menu-wf, .sidebar, .inv-header, .inv-filters-bar,
    .mesas-page-header button, nav, .btn-menu-open-close { display: none !important; }
    .col-md-2 { display: none !important; }
    .col-md-10 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
    .mesas-page-header { margin-bottom: 16px; }
    .mesas-page-title  { font-size: 1.1rem; }
    .mesas-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .mesa-card  { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; }
    body        { background: #fff !important; font-size: 11px; }
}

/* ── Vista mesas ────────────────────────────────────────────────────────── */
.mesas-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-top: 8px;
}
.mesas-page-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2a2a2a;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mesas-page-title i { color: #465130; }
.mesas-page-sub { font-size: 0.78rem; color: #aaa; margin: 0; }

.mesas-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 0;
    color: #ccc;
    font-size: 0.85rem;
}
.mesas-empty i { font-size: 2.5rem; }

.mesas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.mesa-card {
    background: #fff;
    border: 1px solid #ede8df;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.15s;
}
.mesa-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.mesa-card-unassigned { border-style: dashed; background: #faf8f5; }

.mesa-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mesa-card-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.mesa-icon-default    { background: #eef3e8; color: #465130; }
.mesa-icon-unassigned { background: #f5f5f5; color: #bbb; }

.mesa-card-title-wrap { display: flex; flex-direction: column; gap: 1px; }
.mesa-card-name  { font-size: 0.88rem; font-weight: 800; color: #2a2a2a; }
.mesa-card-count { font-size: 0.68rem; color: #aaa; font-weight: 600; }

.mesa-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.mesa-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.7rem; font-weight: 700;
    padding: 3px 9px; border-radius: 20px;
}
.mesa-badge-conf { background: #edf7ee; color: #3a7d44; }
.mesa-badge-pend { background: #fff8ed; color: #d08700; }
.mesa-badge-canc { background: #fef0ee; color: #c0392b; }

.mesa-prog-bar {
    height: 4px;
    background: #f0ece6;
    border-radius: 99px;
    overflow: hidden;
}
.mesa-prog-fill {
    height: 100%;
    background: #3a7d44;
    border-radius: 99px;
    transition: width 0.5s ease;
}

.mesa-guest-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mesa-guest-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #555;
}
.mesa-guest-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-conf { background: #3a7d44; }
.dot-pend { background: #d08700; }
.dot-canc { background: #c0392b; }
.mesa-guest-name { line-height: 1.3; flex: 1; min-width: 0; }

.mesa-guest-item-unassigned { align-items: center; flex-wrap: wrap; gap: 6px; }

.mesa-assign-input {
    width: 90px;
    padding: 3px 8px;
    border: 1.5px solid #ddd8cf;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.72rem;
    color: #2a2a2a;
    background: #faf8f5;
    outline: none;
    transition: border-color 0.15s, width 0.2s;
    flex-shrink: 0;
}
.mesa-assign-input:focus {
    border-color: #465130;
    background: #fff;
    width: 110px;
}
.mesa-assign-input::placeholder { color: #c0b8ae; }

.mesa-assign-hint {
    font-size: 0.68rem;
    color: #bbb;
    margin: 8px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}

/* ── Super Admin ────────────────────────────────────────────────────────── */
.sidebar-nav-admin { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 4px; padding-top: 4px; }

.adm-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-top: 8px;
}
.adm-page-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2a2a2a;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.adm-page-title i { color: #465130; }
.adm-page-sub { font-size: 0.78rem; color: #aaa; margin: 0; }

/* Stats grid */
.adm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.adm-stat-card {
    background: #fff;
    border: 1px solid #ede8df;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.adm-stat-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.adm-icon-users  { background: #eef3e8; color: #465130; }
.adm-icon-events { background: #e8f0f8; color: #3a6fa8; }
.adm-icon-inv    { background: #fef6e4; color: #b07c2a; }
.adm-icon-wa     { background: #edfaf1; color: #25a244; }

.adm-stat-body { display: flex; flex-direction: column; gap: 2px; }
.adm-stat-num   { font-size: 1.4rem; font-weight: 800; color: #2a2a2a; line-height: 1; }
.adm-stat-label { font-size: 0.7rem; color: #aaa; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* Count badge in card header */
.adm-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef3e8;
    color: #465130;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
}

/* Search */
.adm-search-wrap {
    position: relative;
    margin-bottom: 16px;
}
.adm-search-icon {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    color: #bbb; font-size: 0.8rem;
}
.adm-search-input {
    width: 100%;
    padding: 9px 36px 9px 34px;
    border: 1.5px solid #ede8df;
    border-radius: 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.83rem;
    color: #2a2a2a;
    background: #faf8f5;
    outline: none;
    transition: border-color 0.15s;
}
.adm-search-input:focus { border-color: #465130; background: #fff; }
.adm-search-clear {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    border: none; background: none;
    color: #bbb; cursor: pointer; font-size: 0.8rem;
    padding: 4px;
}
.adm-search-clear:hover { color: #888; }

/* Empty state */
.adm-empty {
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; padding: 32px 0;
    color: #ccc; font-size: 0.82rem; text-align: center;
}
.adm-empty i { font-size: 2rem; color: #ddd; }

/* User list */
.adm-user-list { display: flex; flex-direction: column; gap: 8px; }
.adm-user-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #faf8f5;
    border: 1px solid #ede8df;
    border-radius: 12px;
    transition: box-shadow 0.15s;
}
.adm-user-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.adm-user-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: #eef3e8; color: #465130;
    font-size: 0.95rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.adm-user-info { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.adm-user-name { font-size: 0.88rem; font-weight: 700; color: #2a2a2a; }
.adm-user-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.68rem; font-weight: 600; color: #888;
    background: #fff; border: 1px solid #e8e2d8;
    border-radius: 20px; padding: 2px 8px;
}
.adm-chip-wa { color: #25a244; border-color: #c5efd1; background: #f4fdf6; }
.adm-chip-limit { color: #c0392b; border-color: #f3c9c4; background: #fdf1f0; }

/* User actions */
.adm-user-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.adm-status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.68rem; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
}
.adm-status-active   { background: #edfaf1; color: #25a244; }
.adm-status-inactive { background: #f5f5f5; color: #aaa; }
.adm-status-active i  { font-size: 0.45rem; }
.adm-status-inactive i { font-size: 0.45rem; }

.adm-action-btn {
    width: 32px; height: 32px; border-radius: 8px;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; transition: all 0.15s;
}
.adm-btn-danger  { background: #fff0ee; color: #c0392b; }
.adm-btn-danger:hover  { background: #ffd6d1; }
.adm-btn-success { background: #edfaf1; color: #25a244; }
.adm-btn-success:hover { background: #c5efd1; }
.adm-btn-key     { background: #fef6e4; color: #b07c2a; }
.adm-btn-key:hover     { background: #fde8b0; }
.adm-btn-cap     { background: #eef2fb; color: #4b6f8a; }
.adm-btn-cap:hover     { background: #d8e3f5; }
.adm-btn-wa      { background: #edfaf1; color: #25a244; }
.adm-btn-wa:hover      { background: #c5efd1; }

/* Modal: mensajes por evento */
.adm-ev-list { display: flex; flex-direction: column; gap: 10px; }
.adm-ev-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #faf9f6;
    border: 1px solid #ece7df;
    border-radius: 12px;
}
.adm-ev-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-ev-name { font-weight: 700; color: #2a2a2a; font-size: 0.9rem; }
.adm-ev-sub { font-size: 0.72rem; color: #999; }
.adm-ev-sub i { color: #25a244; }
.adm-ev-edit { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.adm-ev-input {
    width: 90px;
    padding: 7px 10px;
    border: 1.5px solid #e0dbd4;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: "Montserrat", sans-serif;
    text-align: right;
    outline: none;
}
.adm-ev-input:focus { border-color: #465130; }
.adm-ev-save {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #465130;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.adm-ev-save:hover:not(:disabled) { background: #3a4528; }
.adm-ev-save:disabled { opacity: 0.4; cursor: default; }
.adm-btn-delete  { background: #fff0ee; color: #dc2626; }
.adm-btn-delete:hover  { background: #fecaca; }

/* Modal: add messages user preview */
.adm-addmsg-user {
    display: flex; align-items: center; gap: 10px;
    background: #faf8f5; border: 1px solid #ede8df;
    border-radius: 10px; padding: 10px 14px;
    margin-bottom: 16px;
}
.adm-addmsg-empty {
    display: flex; align-items: center; gap: 8px;
    background: #fff9e6; border: 1px solid #fde8b0;
    border-radius: 10px; padding: 12px 14px;
    font-size: 0.8rem; color: #b07c2a;
    margin-bottom: 12px;
}

@media screen and (max-width: 1200px) {
    .adm-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 700px) {
    .adm-stats-grid { grid-template-columns: 1fr 1fr; }
    .adm-user-row { flex-wrap: wrap; }
    .adm-user-actions { width: 100%; justify-content: flex-end; }
}

   @media screen and (max-width: 1200px ) {
      .sidebar-sticky {
         margin-left: 0rem;
   }
   .box-time {
         width: 100px;
   }
   
      .number-totals:not(:first-child) > span {
         left: 20px;
      }
      .tags-nav > a:not(:first-child) {
         width: 220px;
         width: 180px;
   }
   .number-totals > span {
         left: 4px;
   }
   .tags-nav a:first-child {
         width: 180px;
   }
   }
   
     @media screen and (max-width: 1080px){
      .mobile-topbar { display: flex; }
      .sidebar-backdrop { display: block; }

      .panel-wf { margin-left: 0 !important; }
      .panel-wf > .col-md-10 { width: 100%; padding-top: 54px; }

      /* Sidebar oculto por defecto, slide-in al abrir */
      .menu-wf {
          position: fixed;
          top: 0; left: 0;
          width: 260px !important;
          max-width: 80vw;
          height: 100%;
          z-index: 199;
          background: #fff;
          transform: translateX(-100%);
          transition: transform .28s cubic-bezier(.4,0,.2,1);
          box-shadow: none;
          margin: 0 !important;
          padding: 0 !important;
      }
      .menu-wf.menu-wf-open {
          transform: translateX(0);
          box-shadow: 4px 0 24px rgba(0,0,0,.18);
      }
      /* Ocultar logo del sidebar en móvil (ya está en topbar) */
      .sidebar-logo { display: none; }
     }
     .pr-4 {
    padding-right: 2rem;
}
     @media screen and (max-width: 902px){
         .panel-wf {
            margin: 0.5rem !important;
            padding: 0.5rem !important;
         }
         .tags-nav b {
            font-size: 10px;
         }
         .tags-nav a:first-child {
            width: 155px;
         }    
         .tags-nav > a:not(:first-child) {
            width: 150px;
         }
     }   
     /* ── Upload cards ── */
     .upload-card {
         position: relative;
         display: flex;
         flex-direction: column;
         align-items: center;
         justify-content: center;
         gap: 6px;
         min-height: 90px;
         padding: 18px 16px;
         border: 1.5px dashed #d0c8be;
         border-radius: 10px;
         background: #faf8f5;
         cursor: pointer;
         transition: border-color 0.15s, background 0.15s;
         overflow: hidden;
     }
     .upload-card:hover {
         border-color: #5f6f4b;
         background: #f3f0ea;
     }
     .upload-card-icon {
         font-size: 1.3rem;
         color: #888;
     }
     .upload-card:hover .upload-card-icon {
         color: #5f6f4b;
     }
     .upload-card-label {
         font-size: 0.88rem;
         font-weight: 600;
         color: #444;
     }
     .upload-card-hint {
         font-size: 0.74rem;
         color: #aaa;
     }
     .upload-card-preview {
         width: 100%;
         max-height: 160px;
         object-fit: cover;
         border-radius: 6px;
     }
     .upload-card-delete {
         position: absolute;
         top: 6px;
         right: 6px;
         background: rgba(0,0,0,0.45);
         color: #fff;
         border: none;
         border-radius: 50%;
         width: 24px;
         height: 24px;
         font-size: 0.75rem;
         display: flex;
         align-items: center;
         justify-content: center;
         cursor: pointer;
         z-index: 2;
         transition: background 0.15s;
     }
     .upload-card-delete:hover {
         background: #bc3f29;
     }

     /* ── Sidebar rediseñado ── */
     .sidebar-logo {
         padding: 20px 16px 10px;
         text-align: center;
     }
     .sidebar-logo .logo-wf {
         max-width: 120px;
         width: 100%;
     }
     .sidebar-username {
         display: flex;
         align-items: center;
         gap: 8px;
         padding: 10px 16px 14px;
         color: #3a3a3a;
         font-size: 0.88rem;
         font-weight: 700;
         border-bottom: 1px solid #e8e0d8;
         word-break: break-word;
         line-height: 1.3;
     }
     .sidebar-heart {
         color: #d1774a;
         font-size: 0.75rem;
         flex-shrink: 0;
     }
     .sidebar-section-label {
         padding: 14px 16px 5px;
         font-size: 0.65rem;
         text-transform: uppercase;
         letter-spacing: 0.1em;
         color: #aaa;
         font-weight: 700;
     }
     .sidebar-eventos {
         padding: 0 8px;
         list-style: none;
         margin: 0;
     }
     .sidebar-evento-item {
         display: flex;
         align-items: center;
         gap: 10px;
         padding: 8px 10px;
         border-radius: 8px;
         cursor: pointer;
         color: #555;
         font-size: 0.84rem;
         font-weight: 500;
         transition: background 0.15s, color 0.15s;
         text-decoration: none;
         margin-bottom: 2px;
     }
     .sidebar-evento-item:hover {
         background: #f0ebe4;
         color: #2a2a2a;
     }
     .sidebar-evento-activo {
         background: #eae4dc !important;
         color: #2a2a2a !important;
         font-weight: 700;
     }
     .sidebar-evento-icon {
         width: 10px;
         height: 10px;
         border-radius: 3px;
         flex-shrink: 0;
         display: inline-block;
     }
     .sidebar-evento-nombre {
         flex: 1;
         line-height: 1.3;
     }
     .sidebar-bottom {
         position: absolute;
         bottom: 0;
         left: 0;
         right: 0;
         padding: 8px;
         border-top: 1px solid #e8e0d8;
         background: #fff;
     }
     .sidebar-nav-item {
         display: flex;
         align-items: center;
         gap: 10px;
         padding: 9px 10px;
         border-radius: 8px;
         cursor: pointer;
         color: #666;
         font-size: 0.84rem;
         font-weight: 500;
         transition: background 0.15s, color 0.15s;
         text-decoration: none;
     }
     .sidebar-nav-item:hover {
         background: #f0ebe4;
         color: #2a2a2a;
     }
     .sidebar-salir:hover {
         color: #bc3f29;
         background: #fdf0ee;
     }
     .sidebar-nav-item i {
         width: 16px;
         text-align: center;
         font-size: 0.82rem;
         color: #888;
     }
     .sidebar-nav-item:hover i {
         color: inherit;
     }

     @media screen and (max-width: 767px){
      .main-content {
         padding-top: 1rem;
      }
      .contador-and-search {
         flex-direction: column;
      }
      .contador-and-search .w-30,
      .contador-and-search .w-70{
         width: 100%;
      }
      .container-90 {
         width: 95%;
      }
      .table-container {
         height: auto !important;
         max-height: 100vh;
         margin-top: 20px;
         overflow-y: scroll;
         margin-bottom: 100px;
     }
      .main-content{
         padding-right: 16px;
         padding-left: 16px;
         padding-top: 20px;
      }
      .acciones-iniciales .col-md-6 {
            margin: 12px 0;
            display: flex;
            justify-content: space-between;
      }
      .acciones-lote-resp .col-md-5, .acciones-lote-resp .col-md-1,.acciones-iniciales .col-md-6 button {
         width: 50%;
      }
      .acciones-lote-resp button {
         width: 100%;
         margin-left: 0 !important;
      }
      input[type="search"]{
         margin-top: 8px;
      }
      .import-div, .add-div{
         width: 95vw;
      }
      .edit-div {
         height: 60vh;
         overflow-y: scroll;
     }
     }
     @media (min-width: 576px){
      .container, .container-sm {
         max-width: 100% !important;
      }
   }

      @media screen and (max-width: 530px){
            .contador-and-search .w-70 {
               flex-direction: column;
           }
           .level-2-wf > span {
               text-align: center;
           }
           .box-time,.time-box {
              margin-bottom: 10px;
              width: 100% !important;
           }
           .time-box span {
               text-align: center;
           }
           .tags-nav {
            padding: 0;
            margin-bottom: -10px;
            } 
            .tags-nav a {
               width: 50% !important;
               margin: 0 !important;
               transform: translate(0) !important;
               border-right: none;
           }
           .main-content {
               padding: 0;
               margin: 0;
            }
             .acciones-lote-resp > div {
               width: 100% !important;
               margin-top: 6px;
               padding: 0;
            }
      } /* fin @media 530px */

/* ── Invitados header ── */
.inv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 28px;
    background: #fff;
    border-bottom: 1px solid #ede8e1;
    flex-wrap: wrap;
}
.inv-header-left {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.inv-header-meta { display: flex; flex-direction: column; }
.inv-header-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bbb;
    margin-bottom: 2px;
}
.inv-header-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2a2a2a;
    margin: 0;
    white-space: nowrap;
}
.inv-countdown-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.inv-count-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f7f4ef;
    border-radius: 8px;
    padding: 6px 12px;
    min-width: 44px;
}
.inv-count-num {
    font-size: 1.15rem;
    font-weight: 900;
    color: #465130;
    line-height: 1;
}
.inv-count-label {
    font-size: 0.58rem;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.inv-count-sep {
    font-size: 1rem;
    font-weight: 900;
    color: #d0c9bf;
    margin-top: -8px;
}
.inv-count-sec { opacity: 0.5; }
.inv-count-sec-sep { opacity: 0.5; }
.inv-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.inv-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.inv-search-icon {
    position: absolute;
    left: 12px;
    color: #ccc;
    font-size: 0.78rem;
    pointer-events: none;
}
.inv-search-input {
    padding: 8px 32px 8px 34px;
    border: 1.5px solid #e0dbd4;
    border-radius: 20px;
    font-size: 0.82rem;
    font-family: "Montserrat", sans-serif;
    background: #faf9f7;
    color: #333;
    outline: none;
    width: 220px;
    transition: border-color 0.15s, width 0.2s;
}
.inv-search-input:focus {
    border-color: #465130;
    width: 260px;
    background: #fff;
}
.inv-search-input::placeholder { color: #ccc; }
.inv-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 4px;
}
.inv-search-clear:hover { color: #555; }
.inv-wa-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    border: 1.5px solid;
}
.wa-chip-green { background: #f0faf4; border-color: #b7e4c7; color: #2d9e5f; }
.wa-chip-orange { background: #fffaf0; border-color: #ffd8a0; color: #d08700; }
.wa-chip-red    { background: #fff5f4; border-color: #ffbcb2; color: #c0392b; }
.inv-wa-chip .fa-whatsapp { font-size: 1rem; }
.inv-btn-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    border: 1.5px solid;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.inv-btn-import {
    background: #fff;
    border-color: #d0c9bf;
    color: #555;
}
.inv-btn-import:hover { background: #f7f4ef; border-color: #bbb; }
.inv-btn-export {
    background: #465130;
    border-color: #465130;
    color: #fff;
}
.inv-btn-export:hover { background: #3a4228; }

/* ── Filtros invitados ── */
.inv-filters-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #faf9f7;
    border-bottom: 1px solid #ede8e1;
    flex-wrap: wrap;
}
.inv-filter-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #e0dbd4;
    background: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
}
.inv-filter-pill:hover { border-color: #bbb; background: #f7f4ef; }
.inv-filter-pill.active {
    background: #465130;
    border-color: #465130;
    color: #fff;
}
.inv-filter-pill.active .inv-pill-dot { background: #fff !important; }
.inv-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.inv-pill-label { font-weight: 600; }
.inv-pill-count {
    background: rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 22px;
    text-align: center;
}
.inv-filter-pill.active .inv-pill-count { background: rgba(255,255,255,0.2); }

@media (max-width: 800px) {
    .inv-header { padding: 16px; gap: 12px; }
    .inv-count-sec, .inv-count-sec-sep { display: none; }
    .inv-search-input { width: 160px; }
    .inv-search-input:focus { width: 180px; }
    .inv-btn-action span { display: none; }
    .inv-btn-action { padding: 7px 10px; }
}

/* ── Modal system ── */
.modal-wf-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    z-index: 900;
    animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal-wf {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    width: 720px;
    max-width: 96vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 910;
    animation: slideUp 0.18s ease;
    overflow-y: scroll;
}
.modal-wf-sm { width: 440px; }

.modal-wf-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid #ede8e1;
    flex-shrink: 0;
    border-radius: 18px 18px 0 0;
}
.modal-wf-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.modal-wf-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.modal-wf-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bbb;
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}
.modal-wf-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: #2a2a2a;
    margin: 0;
    line-height: 1.2;
}
.modal-wf-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}
.modal-step {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: #f0ece6;
    color: #bbb;
    transition: all 0.2s;
}
.modal-step-active { background: #465130; color: #fff; }
.modal-step-done   { background: #edf7ee; color: #3a7d44; }
.modal-step-line   { width: 20px; height: 2px; background: #ede8e1; border-radius: 2px; }
.modal-wf-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f7f4ef;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.1s, color 0.1s;
    flex-shrink: 0;
}
.modal-wf-close:hover { background: #ede8e1; color: #333; }

.modal-wf-body {
    padding: 22px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.modal-wf-section-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bbb;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-wf-section-count {
    background: #f0ece6;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 0.7rem;
    color: #888;
}
.modal-wf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.mf-field { display: flex; flex-direction: column; gap: 5px; }
.mf-field-grow { flex: 1; min-width: 120px; }
.mf-field-sm { min-width: 90px; }
.mf-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #aaa;
}
.mf-input {
    padding: 8px 12px;
    border: 1.5px solid #e0dbd4;
    border-radius: 8px;
    font-size: 0.83rem;
    font-family: "Montserrat", sans-serif;
    color: #2a2a2a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}
.mf-input:focus { border-color: #465130; background: #fafaf8; }
.mf-input::placeholder { color: #ccc; }
.mf-input-group { display: flex; gap: 6px; }
.mf-input-lada { flex: 0 0 100px; }
.mf-input-tel  { flex: 1; }

/* ── Combobox de lada / país con buscador ── */
.mf-lada-combo { position: relative; flex: 0 0 110px; }
.mf-lada-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    cursor: pointer;
    padding: 8px 10px;
    height: 100%;
    text-align: left;
}
.mf-lada-flag { font-size: 1.05rem; line-height: 1; }
.mf-lada-code { font-size: 0.83rem; font-weight: 600; color: #2a2a2a; }
.mf-lada-caret { margin-left: auto; font-size: 0.65rem; color: #999; }
.mf-lada-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 50;
    width: 280px;
    max-width: 80vw;
    background: #fff;
    border: 1px solid #e0dbd4;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
    overflow: hidden;
}
.mf-lada-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0ece6;
    color: #999;
}
.mf-lada-search {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.82rem;
    font-family: "Montserrat", sans-serif;
    color: #2a2a2a;
    background: transparent;
}
.mf-lada-list { max-height: 260px; overflow-y: auto; }
.mf-lada-group-label {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #a99;
    padding: 8px 12px 4px;
    background: #faf8f5;
    position: sticky;
    top: 0;
}
.mf-lada-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
}
.mf-lada-item:hover { background: #f4f1ec; }
.mf-lada-item-active { background: #eef2e6; }
.mf-lada-name { flex: 1; font-size: 0.82rem; color: #2a2a2a; }
.mf-lada-dial { font-size: 0.78rem; font-weight: 600; color: #7a8a5a; }
.mf-lada-empty { padding: 16px 12px; text-align: center; color: #aaa; font-size: 0.8rem; }

/* Pases list */
.mf-pases-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mf-pase-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 14px;
    background: #faf9f7;
    border: 1px solid #ede8e1;
    border-radius: 10px;
    flex-wrap: wrap;
}
.mf-pase-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #465130;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 2px;
}
.mf-del-btn {
    background: #fef0ee;
    border: none;
    border-radius: 8px;
    color: #c0392b;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.78rem;
    flex-shrink: 0;
    transition: background 0.1s;
}
.mf-del-btn:hover { background: #ffbcb2; }

/* Footer */
.modal-wf-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #ede8e1;
    flex-shrink: 0;
    background: #faf9f7;
    border-radius: 0 0 18px 18px;
}
.mf-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    border: none;
    transition: background 0.15s, filter 0.15s;
    white-space: nowrap;
}
.mf-btn-primary  { background: #465130; color: #fff; }
.mf-btn-primary:hover  { background: #3a4228; }
.mf-btn-secondary { background: #f0ece6; color: #555; border: 1.5px solid #e0dbd4; }
.mf-btn-secondary:hover { background: #ede8e1; }

/* Import modal */
.mf-import-options { display: flex; flex-direction: column; gap: 10px; }
.mf-import-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1.5px solid #ede8e1;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: "Montserrat", sans-serif;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
}
.mf-import-opt:hover { border-color: #465130; background: #faf9f7; }
.mf-import-opt-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.mf-import-opt-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2a2a2a;
}
.mf-import-opt-desc {
    display: block;
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 2px;
}
.mf-import-opt-arrow { color: #ccc; margin-left: auto; font-size: 0.8rem; }
.mf-download-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #465130;
    text-decoration: none;
    margin-bottom: 14px;
}
.mf-download-link:hover { text-decoration: underline; }
.mf-file-drop {
    border: 2px dashed #d0c9bf;
    border-radius: 12px;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: #aaa;
    font-size: 0.85rem;
    position: relative;
    transition: border-color 0.15s;
}
.mf-file-drop:hover { border-color: #465130; }
.mf-file-drop .fas { font-size: 2rem; color: #d0c9bf; }
.mf-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.mf-file-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #465130;
    background: #eef3e8;
    padding: 3px 10px;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .modal-wf-grid-2 { grid-template-columns: 1fr; }
    .mf-pase-row { flex-direction: column; align-items: stretch; }
    .modal-wf-body { padding: 16px; }
    .modal-wf-footer { padding: 12px 16px; }
    .modal-wf-header { padding: 16px; }
}

/* ── Invitados toolbar ── */
.inv-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid #ede8e1;
    flex-wrap: wrap;
}
.inv-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.inv-bulk-select {
    padding: 7px 12px;
    border: 1.5px solid #e0dbd4;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: "Montserrat", sans-serif;
    color: #555;
    background: #fff;
    outline: none;
    cursor: pointer;
    appearance: auto;
}
.inv-bulk-select:focus { border-color: #465130; }
.inv-bulk-apply {
    padding: 7px 16px;
    border-radius: 20px;
    border: none;
    background: #465130;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}
.inv-bulk-apply:hover { background: #3a4228; }
.inv-bulk-apply:disabled { background: #ccc; cursor: not-allowed; }
.inv-selected-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #465130;
    background: #eef3e8;
    border-radius: 20px;
    padding: 4px 10px;
}
.inv-add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    border: none;
    background: #465130;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}
.inv-add-btn:hover { background: #3a4228; }

/* ── Invitados tabla ── */
.inv-table-wrap {
    overflow-x: auto;
    background: #fff;
}
.inv-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Montserrat", sans-serif;
    font-size: 0.82rem;
}
.inv-table thead tr {
    border-bottom: 2px solid #ede8e1;
}
.inv-table thead th {
    padding: 10px 14px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #aaa;
    white-space: nowrap;
    background: #faf9f7;
}
.inv-th-check { width: 40px; text-align: center; }
.inv-row {
    border-bottom: 1px solid #f0ece6;
    transition: background 0.1s;
}
.inv-row:hover { background: #faf9f7; }
.inv-row-novio { border-left: 3px solid #4b6f8a; }
.inv-row-novia { border-left: 3px solid #c4956a; }
.inv-table td { padding: 10px 14px; vertical-align: middle; }
.inv-td-check { width: 40px; text-align: center; }
.inv-td-name { min-width: 160px; }
.inv-nombre { font-weight: 700; color: #2a2a2a; }
.inv-msg-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 4px;
    margin-left: 4px;
}
.inv-msg-btn:hover { color: #465130; }
.inv-td-pases { min-width: 80px; }
.inv-pases-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f7f4ef;
    border: none;
    border-radius: 20px;
    padding: 4px 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    transition: background 0.1s;
}
.inv-pases-toggle:hover { background: #ede8e1; }
.inv-pases-num { font-size: 0.9rem; font-weight: 900; color: #2a2a2a; }
.inv-pases-detail {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.inv-pase-chip {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}
.inv-pase-conf { background: #edf7ee; color: #3a7d44; }
.inv-pase-pend { background: #fff8ed; color: #d08700; }
.inv-pase-decl { background: #fef0ee; color: #c0392b; }
.inv-td-de { min-width: 90px; }
.inv-de-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.inv-de-novio { background: #e8f0f7; color: #4b6f8a; }
.inv-de-novia { background: #faf0e8; color: #c4956a; }
.inv-de-otro  { background: #f0ece6; color: #888; }
.inv-td-idioma { min-width: 120px; }
.inv-idioma-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f6f4f0;
    border: 1px solid #e6e0d8;
    border-radius: 20px;
    padding: 2px 8px 2px 10px;
}
.inv-idioma-flag { font-size: 0.95rem; line-height: 1; }
.inv-idioma-select {
    border: none;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    color: #5a5248;
    cursor: pointer;
    outline: none;
    padding: 2px 0;
}
/* ── Switch de recordatorio por invitación ── */
.inv-td-rec { min-width: 90px; text-align: center; }
.rec-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
}
.rec-switch input { opacity: 0; width: 0; height: 0; }
.rec-switch-slider {
    position: absolute;
    inset: 0;
    background: #d6d0c8;
    border-radius: 22px;
    transition: background 0.2s;
}
.rec-switch-slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.rec-switch input:checked + .rec-switch-slider { background: #6f8a4b; }
.rec-switch input:checked + .rec-switch-slider::before { transform: translateX(18px); }
.rec-switch-disabled { cursor: not-allowed; opacity: 0.5; }

/* Variante en línea (dentro de modales, con texto) */
.rec-switch-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding-top: 6px;
}
.rec-switch-inline input { opacity: 0; width: 0; height: 0; position: absolute; }
.rec-switch-inline .rec-switch-slider {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex: 0 0 40px;
}
.rec-switch-inline input:checked + .rec-switch-slider { background: #6f8a4b; }
.rec-switch-inline input:checked + .rec-switch-slider::before { transform: translateX(18px); }
.rec-switch-inline.rec-switch-disabled { cursor: not-allowed; opacity: 0.5; }
.rec-switch-text { font-size: 0.82rem; font-weight: 600; color: #5a5248; }
.mf-hint { font-size: 0.72rem; color: #a08a5a; margin-top: 4px; }

.inv-td-actions { min-width: 160px; }
.inv-actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.inv-action-wrap {
    position: relative;
    display: inline-flex;
}
.inv-toltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #2a2a2a;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 10;
}
.inv-toltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #2a2a2a;
}
.inv-action-wrap:hover .inv-toltip { opacity: 1; }
.inv-toltip-disabled { display: none; }
.inv-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
}
.inv-action-btn:hover { filter: brightness(0.9); transform: translateY(-1px); }
.inv-action-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.inv-action-edit { background: #e8f0f7; color: #4b6f8a; }
.inv-action-inv  { background: #edf7ee; color: #2d9e5f; }
.inv-action-mesa { background: #fff3e0; color: #d08700; }
.inv-action-del  { background: #fef0ee; color: #c0392b; }
.inv-td-status { min-width: 160px; }
.inv-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.inv-status-pend { background: #fff8ed; color: #d08700; border: 1px solid #ffd8a0; }
.inv-status-mesa { background: #edf7ee; color: #3a7d44; border: 1px solid #b7e4c7; }
.inv-status-done { background: #e8f0f7; color: #4b6f8a; border: 1px solid #b8d0e8; }
.inv-status-decl { background: #fef0ee; color: #c0392b; border: 1px solid #ffbcb2; }

/* ── Configuraciones ── */
.cfg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px;
    background: #fff;
    border-bottom: 1px solid #ede8e1;
    flex-wrap: wrap;
}
.cfg-header-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bbb;
    display: block;
    margin-bottom: 2px;
}
.cfg-header-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2a2a2a;
    margin: 0;
}
.cfg-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px 28px;
    align-items: start;
}
.cfg-col { display: flex; flex-direction: column; gap: 16px; }

/* Cards */
.cfg-card {
    background: #fff;
    border: 1px solid #ede8e1;
    border-radius: 14px;
    overflow: hidden;
}
.cfg-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #f0ece6;
    background: #faf9f7;
}
.cfg-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.cfg-card-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #2a2a2a;
    flex: 1;
}
.cfg-card-action {
    padding: 5px 12px !important;
    font-size: 0.75rem !important;
}
.cfg-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cfg-hint {
    font-size: 0.75rem;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}

/* WhatsApp info */
.cfg-wa-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #faf9f7;
    border: 1px solid #ede8e1;
    margin-top: 4px;
}
.cfg-wa-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cfg-wa-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: #2a2a2a;
    display: block;
    line-height: 1;
}
.cfg-wa-label {
    font-size: 0.7rem;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Tipos de evento */
.cfg-eventos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
}
.cfg-evento-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    background: #f0ece6;
    color: #555;
    border: 1.5px solid #e0dbd4;
    transition: all 0.15s;
    user-select: none;
}
.cfg-evento-chip-active {
    background: #465130;
    color: #fff;
    border-color: #465130;
}
.cfg-evento-del {
    background: rgba(0,0,0,0.12);
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.58rem;
    color: inherit;
    padding: 0;
    line-height: 1;
}
.cfg-evento-del:hover { background: rgba(0,0,0,0.25); }
.cfg-add-evento {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.cfg-add-btn {
    padding: 8px 14px !important;
    border-radius: 8px !important;
    flex-shrink: 0;
}

/* Cuestionario */
.cfg-preguntas-list { display: flex; flex-direction: column; gap: 8px; }
.cfg-pregunta-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cfg-pregunta-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0ece6;
    color: #888;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Media grid */
.cfg-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Variables box */
.cfg-vars-box {
    background: #f7f4ef;
    border: 1px solid #ede8e1;
    border-radius: 10px;
    padding: 14px 16px;
}
.cfg-vars-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.cfg-vars-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cfg-var-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cfg-var-tag {
    font-size: 0.72rem;
    font-weight: 700;
    background: #465130;
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: monospace;
    white-space: nowrap;
    flex-shrink: 0;
}
.cfg-var-desc {
    font-size: 0.75rem;
    color: #888;
}

/* Lang tabs */
.cfg-lang-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.cfg-lang-tab {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid #e0dbd4;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
}
.cfg-lang-tab:hover { border-color: #bbb; background: #f7f4ef; }
.cfg-lang-tab-active {
    background: #465130;
    border-color: #465130;
    color: #fff;
}
.cfg-lang-tab-add {
    padding: 5px 10px;
    color: #aaa;
    border-style: dashed;
}
.cfg-lang-tab-add:hover { color: #465130; border-color: #465130; border-style: solid; }
.cfg-textarea {
    resize: vertical;
    min-height: 90px;
    font-size: 0.82rem;
    line-height: 1.6;
    font-family: "Montserrat", sans-serif;
}

@media (max-width: 900px) {
    .cfg-body { grid-template-columns: 1fr; padding: 16px; }
    .cfg-media-grid { grid-template-columns: 1fr; }
    .cfg-header { padding: 16px; }
}

/* ── Loading / empty states ── */
.evento-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 60vh;
    color: #bbb;
    font-size: 0.9rem;
    font-weight: 600;
}
.evento-loading .fa-circle-notch {
    font-size: 2rem;
    color: #465130;
}
.empty-eventos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 70vh;
    text-align: center;
    padding: 40px 20px;
}

.empty-ev-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: #eef3e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #465130;
    box-shadow: 0 4px 16px rgba(70,81,48,0.10);
}

.empty-ev-text { display: flex; flex-direction: column; gap: 8px; }

.empty-ev-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2a2a2a;
    margin: 0;
    letter-spacing: 0.01em;
}

.empty-ev-sub {
    color: #b0a898;
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
    max-width: 300px;
}

.empty-ev-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.empty-ev-input {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #ddd8cf;
    border-radius: 12px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.875rem;
    color: #2a2a2a;
    background: #fff;
    outline: none;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.empty-ev-input:focus {
    border-color: #465130;
    box-shadow: 0 0 0 3px rgba(70,81,48,0.08);
}
.empty-ev-input::placeholder { color: #c0b8ae; }

.empty-ev-btn {
    width: 100%;
    padding: 11px;
    background: #465130;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
}
.empty-ev-btn:hover  { background: #3a4228; }
.empty-ev-btn:active { transform: scale(0.98); }
.sidebar-empty-events {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #ccc;
    font-size: 0.78rem;
    font-style: italic;
}
.sidebar-empty-events i { font-size: 0.9rem; }

/* ── Sidebar WhatsApp counter ── */
.sidebar-wa-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7f4ef;
    border: 1.5px solid #e8e2d9;
}
.sidebar-wa-counter .fa-whatsapp {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.wa-green { border-color: #b7e4c7; background: #f0faf4; }
.wa-green .fa-whatsapp { color: #2d9e5f; }
.wa-orange { border-color: #ffd8a0; background: #fffaf0; }
.wa-orange .fa-whatsapp { color: #d08700; }
.wa-red { border-color: #ffbcb2; background: #fff5f4; }
.wa-red .fa-whatsapp { color: #c0392b; }
.wa-counter-info { display: flex; flex-direction: column; line-height: 1.2; }
.wa-counter-num  { font-size: 1.1rem; font-weight: 800; color: #2a2a2a; }
.wa-counter-label { font-size: 0.68rem; color: #aaa; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Dashboard ── */
.dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border: 1px solid #ede8e1;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.dash-event-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2a2a2a;
    margin: 0 0 4px;
}
.dash-event-date {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dash-countdown {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.dash-count-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f7f4ef;
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 56px;
}
.dash-count-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: #465130;
    line-height: 1;
}
.dash-count-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}
.dash-count-sec { opacity: 0.55; }
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.dash-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #ede8e1;
    border-radius: 14px;
    padding: 18px 20px;
}
.dash-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.dash-stat-body { display: flex; flex-direction: column; }
.dash-stat-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: #2a2a2a;
    line-height: 1;
}
.dash-stat-label {
    font-size: 0.72rem;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3px;
}
.dash-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 14px;
}
.dash-wa-card,
.dash-recent-card {
    background: #fff;
    border: 1px solid #ede8e1;
    border-radius: 14px;
    padding: 22px 22px 18px;
}
.dash-wa-header,
.dash-recent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 16px;
}
.dash-wa-header .fa-whatsapp { color: #25d366; font-size: 1.1rem; }
.dash-recent-header .fa-circle-check { color: #3a7d44; font-size: 1rem; }
.dash-wa-num {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2px;
}
.wa-num-green { color: #2d9e5f; }
.wa-num-orange { color: #d08700; }
.wa-num-red { color: #c0392b; }
.dash-wa-sub { font-size: 0.8rem; color: #aaa; margin: 0 0 12px; }
.dash-wa-bar-bg {
    height: 6px;
    background: #f0ece6;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 6px;
}
.dash-wa-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.5s ease;
}
.wa-bar-green  { background: #2d9e5f; }
.wa-bar-orange { background: #d08700; }
.wa-bar-red    { background: #c0392b; }
.dash-wa-hint { font-size: 0.7rem; color: #ccc; margin: 0 0 8px; }
.dash-ver-todos {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #465130;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    display: block;
    margin-top: 6px;
}
.dash-ver-todos:hover { text-decoration: underline; }
.dash-recent-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dash-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fafaf8;
    border: 1px solid #f0ece6;
}
.dash-recent-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #465130;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-recent-info { display: flex; flex-direction: column; flex: 1; }
.dash-recent-name  { font-size: 0.85rem; font-weight: 700; color: #2a2a2a; }
.dash-recent-count { font-size: 0.72rem; color: #aaa; }
.dash-recent-badge { font-size: 0.75rem; color: #3a7d44; font-weight: 800; }
.dash-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
    color: #ccc;
    font-size: 0.85rem;
}
.dash-empty i { font-size: 1.6rem; }
@media (max-width: 900px) {
    .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-bottom-row { grid-template-columns: 1fr; }
    .dash-count-sec { display: none; }
}

/* ── Logs WhatsApp ── */
.inv-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
    padding: 8px 0 4px;
}
.logs-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.logs-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid #ede8e1;
    border-radius: 12px;
}
.logs-stat-inv  { border-top: 3px solid #4b6f8a; }
.logs-stat-mesa { border-top: 3px solid #5f6f4b; }
.logs-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2a2a2a;
    line-height: 1;
}
.logs-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.logs-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}
.logs-search-icon {
    position: absolute;
    left: 12px;
    color: #ccc;
    font-size: 0.8rem;
    pointer-events: none;
}
.logs-search-input {
    width: 100%;
    padding: 7px 36px 7px 34px;
    border: 1.5px solid #e0dbd4;
    border-radius: 20px;
    font-size: 0.82rem;
    font-family: "Montserrat", sans-serif;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.15s;
}
.logs-search-input:focus { border-color: #465130; }
.logs-search-input::placeholder { color: #ccc; }
.logs-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 0.78rem;
    padding: 2px 4px;
    line-height: 1;
}
.logs-search-clear:hover { color: #555; }
.logs-date-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bbb;
}
.logs-date-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ede8e1;
}
.logs-date-sep:first-child { margin-top: 0; }
.logs-subtitle {
    font-size: 0.82rem;
    color: #aaa;
    margin: 2px 0 0;
}
.btn-wf-outline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border: 1.5px solid #d0c8be;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.btn-wf-outline:hover:not(:disabled) { border-color: #465130; color: #465130; }
.btn-wf-outline:disabled { opacity: 0.4; cursor: default; }
.logs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.logs-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1.5px solid #e0dbd4;
    border-radius: 20px;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    font-family: "Montserrat", sans-serif;
}
.logs-filter-btn:hover { border-color: #bbb; color: #333; }
.logs-filter-btn.active { border-color: #465130; background: #465130; color: #fff; }
.logs-filter-btn.active .logs-dot { background: rgba(255,255,255,0.7) !important; }
.logs-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.logs-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 20px;
    color: #ccc;
    font-size: 0.9rem;
}
.logs-state i { font-size: 2rem; }
.logs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.log-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #ede8e1;
    border-radius: 12px;
    padding: 12px 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.log-card:hover {
    border-color: #d0c8be;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.log-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.log-icon-inv  { background: #e8f0f6; color: #4b6f8a; }
.log-icon-mesa { background: #eaf2e8; color: #3d6b36; }
.log-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.log-card-nombre {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2a2a2a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.log-card-numero {
    font-size: 0.78rem;
    color: #aaa;
}
.log-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.log-tipo-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}
.log-tipo-inv  { background: #e8f0f6; color: #4b6f8a; }
.log-tipo-mesa { background: #eaf2e8; color: #3d6b36; }
.log-card-fecha {
    font-size: 0.72rem;
    color: #bbb;
    white-space: nowrap;
}

/* Estado de envío (UltraMsg) */
.logs-stat-fail { border-top: 3px solid #dc2626; }
.logs-filter-fail.active { border-color: #dc2626; background: #dc2626; }
.log-card-fail { background: #fef6f5; border-color: #f3d4cf; }
.log-card-detalle {
    display: block;
    font-size: 0.72rem;
    color: #c0392b;
    margin-top: 2px;
}
.log-estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}
.log-estado-badge i { font-size: 0.66rem; }
.log-estado-enviado      { background: #eef2f6; color: #5a7184; }
.log-estado-entregado    { background: #e7f0f7; color: #2f6f9e; }
.log-estado-leido        { background: #e7f4ea; color: #2e7d43; }
.log-estado-error        { background: #fdecea; color: #c0392b; }
.log-estado-sin_whatsapp { background: #fff4e5; color: #b26a00; }
.logs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
    padding-bottom: 8px;
}
.logs-page-info { font-size: 0.82rem; color: #aaa; font-weight: 600; }
.sidebar-nav-activo {
    background: #eae4dc !important;
    color: #2a2a2a !important;
    font-weight: 700;
}
.sidebar-nav-activo i { color: #465130 !important; }
         }

/* ── SweetAlert2 — tema panel ── */
.swal2-popup {
    font-family: "Montserrat", sans-serif !important;
    border-radius: 18px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.16) !important;
}
.swal2-header {
    padding: 24px 28px 0 !important;
}
.swal2-title {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #2a2a2a !important;
    padding: 0 !important;
    margin-bottom: 6px !important;
}
.swal2-html-container {
    font-size: 0.85rem !important;
    color: #888 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 4px 28px 0 !important;
}
.swal2-content {
    padding: 0 28px !important;
}
/* Ícono */
/* Fix Bootstrap box-sizing conflict with SweetAlert2 icon internals */
.swal2-icon,
.swal2-icon *,
.swal2-icon *::before,
.swal2-icon *::after {
    box-sizing: content-box !important;
}
/* Fix Bootstrap svg vertical-align */
.swal2-popup img,
.swal2-popup svg {
    vertical-align: initial !important;
}
.swal2-icon {
    margin: 20px auto 8px !important;
}
.swal2-icon .swal2-icon-content {
    font-size: 2.2rem !important;
}
/* Botones */
.swal2-actions {
    padding: 16px 24px 20px !important;
    gap: 10px !important;
    margin: 0 !important;
}
.swal2-confirm {
    font-family: "Montserrat", sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    padding: 9px 22px !important;
    background-color: #465130 !important;
    border: none !important;
    box-shadow: none !important;
    transition: background 0.15s !important;
}
.swal2-confirm:hover {
    background-color: #3a4228 !important;
}
.swal2-cancel {
    font-family: "Montserrat", sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    padding: 9px 22px !important;
    background-color: #f0ece6 !important;
    color: #555 !important;
    border: 1.5px solid #e0dbd4 !important;
    box-shadow: none !important;
    transition: background 0.15s !important;
}
.swal2-cancel:hover {
    background-color: #ede8e1 !important;
}
.swal2-deny {
    font-family: "Montserrat", sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    padding: 9px 22px !important;
    background-color: #fef0ee !important;
    color: #c0392b !important;
    border: 1.5px solid #ffbcb2 !important;
    box-shadow: none !important;
}
/* Input y select (usado en exportar) */
.swal2-input,
.swal2-select,
.swal2-textarea {
    font-family: "Montserrat", sans-serif !important;
    font-size: 0.83rem !important;
    border: 1.5px solid #e0dbd4 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
    color: #2a2a2a !important;
    margin: 12px 0 4px !important;
}
.swal2-input:focus,
.swal2-select:focus {
    border-color: #465130 !important;
    outline: none !important;
    box-shadow: none !important;
}
/* Backdrop */
.swal2-backdrop-show {
    backdrop-filter: blur(3px) !important;
    background: rgba(0,0,0,0.4) !important;
}
/* Colores de íconos */
.swal2-icon.swal2-success { border-color: #3a7d44 !important; }
.swal2-icon.swal2-success [class^="swal2-success-line"] { background: #3a7d44 !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(58,125,68,0.3) !important; }
.swal2-icon.swal2-warning { border-color: #d08700 !important; color: #d08700 !important; }
.swal2-icon.swal2-error { border-color: #c0392b !important; color: #c0392b !important; }
.swal2-icon.swal2-error [class^="swal2-x-mark-line"] { background: #c0392b !important; }
.swal2-icon.swal2-info { border-color: #4b6f8a !important; color: #4b6f8a !important; }
.swal2-icon.swal2-question { border-color: #888 !important; color: #888 !important; }
/* Animación */
.swal2-show { animation: swal-slideUp 0.18s ease !important; }
@keyframes swal-slideUp {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Configuraciones: vista previa iframe ───────────────────────────────── */
.cfg-preview-body { padding: 16px 20px 20px !important; }

.cfg-preview-label {
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}
.cfg-preview-label strong { color: #2a2a2a; font-weight: 700; }
.cfg-preview-pases {
    margin-left: auto;
    background: #eef6ee;
    color: #3a7d44;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.cfg-iframe-outer {
    display: flex;
    justify-content: center;
}

.cfg-iframe-phone {
    width: 260px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 14px 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22), inset 0 0 0 1.5px #333;
    position: relative;
}

.cfg-iframe-notch {
    width: 80px;
    height: 8px;
    background: #333;
    border-radius: 8px;
    margin: 0 auto 10px;
}

.cfg-iframe-inner {
    display: block;
    width: 375px;
    height: 620px;
    border: none;
    border-radius: 4px;
    transform: scale(0.64);
    transform-origin: top center;
    /* Elimina el espacio vacío que deja el scale en el layout */
    margin-bottom: calc(620px * 0.64 - 620px);
}

.cfg-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    color: #bbb;
    font-size: 0.82rem;
    text-align: center;
}

/* ── Correo electrónico ─────────────────────────────────────────────────── */
.mf-label-opt { font-weight: 400; color: #bbb; font-size: 0.7rem; margin-left: 4px; }
.cfg-smtp-row { display: flex; gap: 12px; align-items: flex-end; }
.cfg-smtp-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ── Email preview ──────────────────────────────────────────────────────── */
.cfg-email-preview-btn { margin-left: auto; display: flex; align-items: center; gap: 6px; background: #eef2ff; color: #4b6f8a; border: none; border-radius: 8px; padding: 6px 14px; font-size: .8rem; font-weight: 500; cursor: pointer; transition: background .15s; }
.cfg-email-preview-btn:hover { background: #d8e3f0; }
.email-preview-modal { width: min(760px, 95vw) !important; max-height: 90vh !important; }
.email-preview-body { padding: 0 !important; flex: 1; display: flex; overflow: hidden; border-radius: 0 0 18px 18px; }
.email-preview-iframe { width: 100%; min-height: 560px; border: none; border-radius: 0 0 18px 18px; display: block; }
.email-preview-langs { display: flex; gap: 6px; margin-left: auto; margin-right: 10px; align-items: center; flex-wrap: wrap; }
.email-preview-tipo-tabs { display: flex; gap: 4px; }
.email-preview-lang-divider { width: 1px; height: 22px; background: #e0e0e0; margin: 0 4px; }
.email-preview-lang-btn { background: #f3f3f3; border: 1px solid #e0e0e0; border-radius: 8px; padding: 4px 12px; font-size: .78rem; cursor: pointer; color: #666; transition: all .15s; }
.email-preview-lang-btn.active { background: #eef2ff; border-color: #4b6f8a; color: #4b6f8a; font-weight: 600; }
.email-preview-lang-btn:hover:not(.active) { background: #e8e8e8; }
.inv-action-email { background: #eef2ff !important; color: #4b6f8a !important; }
.inv-action-email:hover { background: #d8e3f0 !important; }
.inv-action-email-sent { background: #dcfce7 !important; color: #16a34a !important; }
.inv-action-email-sent:hover { background: #bbf7d0 !important; }

/* ── Configuraciones: nuevos campos ────────────────────────────────────── */
.cfg-fecha-hora-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.cfg-mapa-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.cfg-mapa-row .mf-input { flex: 1; }
.cfg-mapa-preview {
    flex-shrink: 0;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
}

/* ── Dashboard: alertas ─────────────────────────────────────────────────── */
.dash-alerts-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.dash-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.82rem;
    cursor: default;
}
.dash-alert i { font-size: 1.2rem; flex-shrink: 0; }
.dash-alert div { display: flex; flex-direction: column; gap: 2px; }
.dash-alert strong { font-weight: 700; font-size: 0.83rem; }
.dash-alert span { color: inherit; opacity: 0.85; }
.dash-alert-aforo {
    background: #fff3e0;
    border: 1.5px solid #ffc57a;
    color: #8a4a00;
}
.dash-alert-aforo i { color: #e07b39; }
.dash-alert-deadline {
    background: #fff0f0;
    border: 1.5px solid #ffb3b3;
    color: #7a1a1a;
    cursor: pointer;
}
.dash-alert-deadline:hover { background: #ffe8e8; }
.dash-alert-deadline i { color: #c0392b; }

/* ── Recordatorio automático ────────────────────────────────────────────── */
.rec-toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}
.rec-toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.rec-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ddd8d0;
    border-radius: 24px;
    transition: background 0.2s;
}
.rec-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.rec-toggle-switch input:checked + .rec-toggle-slider { background: #465130; }
.rec-toggle-switch input:checked + .rec-toggle-slider::before { transform: translateX(18px); }

.rec-intervalo-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rec-intervalo-input { width: 80px !important; text-align: center; }
.rec-intervalo-hint { font-size: 0.8rem; color: #888; }

.rec-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #faf8f5;
    border: 1.5px solid #ede8e1;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 16px;
}
.rec-status-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #555;
}
.rec-ver-btn { font-size: 0.78rem !important; padding: 7px 14px !important; white-space: nowrap; }

/* Badge sidebar */
.sidebar-rec-badge {
    margin-left: auto;
    background: #e07b39;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 20px;
    padding: 1px 7px;
    line-height: 1.6;
}

/* Modal recordatorio */
.rec-modal-list { display: flex; flex-direction: column; gap: 8px; }
.rec-modal-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #faf8f5;
    border: 1.5px solid #ede8e1;
    border-radius: 10px;
}
.rec-modal-info { flex: 1; min-width: 0; }
.rec-modal-name { display: block; font-size: 0.85rem; font-weight: 700; color: #2a2a2a; }
.rec-modal-meta { display: block; font-size: 0.72rem; color: #aaa; margin-top: 2px; }
.rec-send-btn { font-size: 0.76rem !important; padding: 6px 12px !important; white-space: nowrap; flex-shrink: 0; }
.rec-modal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    color: #888;
    font-size: 0.85rem;
}