﻿/* Operadores Reportes */

    body.opr-reportes-standalone{
      margin:0;
      background:linear-gradient(135deg,#f7fbff,#eef4fb);
      min-height:100vh;
    }

    body.opr-reportes-standalone .opr-reportes{
      min-height:100vh;
    }

    body.opr-reportes-standalone .opr-reportes .app{
      width:100%;
      max-width:none;
    }

    body.opr-reportes-standalone .opr-reportes .app{
      grid-template-columns:360px 1fr;
      gap:18px;
      padding:18px;
    }

    body.opr-reportes-standalone .opr-reportes .control-panel{
      top:18px;
      height:calc(100vh - 36px);
      border-radius:20px;
      padding:18px;
    }

    body.opr-reportes-standalone .opr-reportes .control-panel h1{
      font-size:23px;
    }

    body.opr-reportes-standalone .opr-reportes .control-panel p{
      font-size:14px;
      margin-bottom:16px;
    }

    body.opr-reportes-standalone .opr-reportes .section-title{
      margin:16px 0 8px;
      font-size:12px;
    }

    body.opr-reportes-standalone .opr-reportes input{
      border-radius:12px;
      padding:10px 12px;
      font-size:14px;
    }

    body.opr-reportes-standalone .opr-reportes .field{
      margin-bottom:10px;
    }

    body.opr-reportes-standalone .opr-reportes .reports{
      gap:18px;
    }

    body.opr-reportes-standalone .opr-reportes .report{
      border-radius:0 0 18px 18px;
    }

    body.opr-reportes-standalone .opr-reportes .topbar{
      height:86px;
      padding:0 28px 0 34px;
    }

    body.opr-reportes-standalone .opr-reportes .brand{
      gap:14px;
      font-size:22px;
    }

    body.opr-reportes-standalone .opr-reportes .bars{
      width:36px;
      height:36px;
      gap:4px;
    }

    body.opr-reportes-standalone .opr-reportes .bars span:nth-child(1){height:14px}
    body.opr-reportes-standalone .opr-reportes .bars span:nth-child(2){height:23px}
    body.opr-reportes-standalone .opr-reportes .bars span:nth-child(3){height:32px}

    body.opr-reportes-standalone .opr-reportes .date-chip{
      min-width:260px;
      border-radius:12px;
      padding:14px 20px;
      font-size:20px;
    }

    body.opr-reportes-standalone .opr-reportes .content{
      padding:34px 40px 36px;
    }

    body.opr-reportes-standalone .opr-reportes .headline{
      gap:20px;
      padding-bottom:24px;
      margin-bottom:28px;
    }

    body.opr-reportes-standalone .opr-reportes .big-icon{
      width:78px;
      height:78px;
    }

    body.opr-reportes-standalone .opr-reportes .big-icon svg{
      width:42px;
      height:42px;
    }

    body.opr-reportes-standalone .opr-reportes .headline h2{
      font-size:32px;
    }

    body.opr-reportes-standalone .opr-reportes .subtitle{
      font-size:20px;
      margin-top:8px;
    }

    body.opr-reportes-standalone .opr-reportes .cards{
      gap:24px;
    }

    body.opr-reportes-standalone .opr-reportes .agent-card{
      border-radius:14px;
      padding:22px;
      min-height:0;
    }

    body.opr-reportes-standalone .opr-reportes .agent-head{
      gap:18px;
      margin-bottom:20px;
    }

    body.opr-reportes-standalone .opr-reportes .avatar{
      width:70px;
      height:70px;
    }

    body.opr-reportes-standalone .opr-reportes .avatar svg{
      width:34px;
      height:34px;
    }

    body.opr-reportes-standalone .opr-reportes .agent-name{
      font-size:32px;
    }

    body.opr-reportes-standalone .opr-reportes .metric{
      grid-template-columns:56px 1fr auto;
      gap:14px;
      min-height:58px;
    }

    body.opr-reportes-standalone .opr-reportes .metric-icon{
      width:46px;
      height:46px;
    }

    body.opr-reportes-standalone .opr-reportes .metric-icon svg{
      width:25px;
      height:25px;
    }

    body.opr-reportes-standalone .opr-reportes .metric-label{
      font-size:18px;
    }

    body.opr-reportes-standalone .opr-reportes .metric-value{
      font-size:28px;
    }

    body.opr-reportes-standalone .opr-reportes .productivity-box{
      margin-top:24px;
      border-radius:14px;
      padding:22px 24px;
    }

    body.opr-reportes-standalone .opr-reportes .prod-icon{
      width:48px;
      height:48px;
    }

    body.opr-reportes-standalone .opr-reportes .productivity-title h3{
      font-size:24px;
    }

    body.opr-reportes-standalone .opr-reportes .average-box .value{
      font-size:30px;
    }

    body.opr-reportes-standalone .opr-reportes .progress-row{
      grid-template-columns:110px 1fr 74px;
      margin-top:14px;
    }

    body.opr-reportes-standalone .opr-reportes .progress-name,
    body.opr-reportes-standalone .opr-reportes .progress-value{
      font-size:19px;
    }

    body.opr-reportes-standalone .opr-reportes .note{
      margin-top:34px;
      padding-top:20px;
      font-size:16px;
    }

    body.opr-reportes-standalone .opr-reportes .backoffice-card{
      border-radius:14px;
      padding:18px 34px;
    }

    body.opr-reportes-standalone .opr-reportes .bo-row{
      grid-template-columns:58px 1fr auto;
      gap:18px;
      min-height:86px;
    }

    body.opr-reportes-standalone .opr-reportes .bo-label{
      font-size:24px;
    }

    body.opr-reportes-standalone .opr-reportes .bo-value{
      font-size:34px;
    }

    .opr-reportes{
      --blue:#0b3a78;
      --blue-2:#1268e3;
      --soft-blue:#eaf3ff;
      --green:#24a84f;
      --red:#d7423c;
      --orange:#d88400;
      --text:#0d2340;
      --muted:#63738c;
      --line:#d9e2ef;
      --card:#ffffff;
      --shadow:0 18px 45px rgba(13,35,64,.08);
    }
    .opr-reportes,
    .opr-reportes *{box-sizing:border-box}
    .opr-reportes [hidden]{display:none !important}
    .opr-reportes{
      margin:0;
      font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
      background:linear-gradient(135deg,#f7fbff,#eef4fb);
      color:var(--text);
      min-height:100vh;
    }
    .opr-reportes .app{
      display:grid;
      grid-template-columns:390px 1fr;
      gap:26px;
      padding:24px;
      max-width:1600px;
      margin:0 auto;
    }
    .opr-reportes .control-panel{
      background:rgba(255,255,255,.86);
      backdrop-filter:blur(22px);
      border:1px solid rgba(217,226,239,.9);
      box-shadow:var(--shadow);
      border-radius:24px;
      padding:22px;
      position:sticky;
      top:24px;
      height:calc(100vh - 48px);
      overflow:auto;
    }
    .opr-reportes .control-panel h1{
      font-size:25px;
      margin:0 0 6px;
      letter-spacing:0;
    }
    .opr-reportes .control-panel p{
      margin:0 0 20px;
      color:var(--muted);
      line-height:1.45;
    }
    .opr-reportes .section-title{
      margin:20px 0 10px;
      font-size:13px;
      text-transform:uppercase;
      letter-spacing:0;
      color:#47617f;
      font-weight:800;
    }
    .opr-reportes .sync-diagnostics{
      margin:12px 0 6px;
      padding:11px 12px;
      border:1px solid #d7e4f4;
      border-radius:12px;
      background:#f7fbff;
      color:#173456;
      font-size:13px;
      line-height:1.35;
    }
    .opr-reportes .sync-diagnostics.is-ok{
      border-color:#bfe8cb;
      background:#f3fff6;
      color:#145c2e;
    }
    .opr-reportes .sync-diagnostics.is-warning{
      border-color:#ffe0a8;
      background:#fff9ed;
      color:#7a4b00;
    }
    .opr-reportes .sync-diagnostics.is-error{
      border-color:#ffc7c7;
      background:#fff5f5;
      color:#8c1f1f;
    }
    .opr-reportes .field{margin-bottom:12px}
    .opr-reportes label{
      display:block;
      font-size:13px;
      font-weight:700;
      margin-bottom:6px;
      color:#183655;
    }
    .opr-reportes input{
      width:100%;
      border:1px solid #d8e2ef;
      border-radius:14px;
      padding:12px 13px;
      font-size:15px;
      background:#fff;
      outline:none;
      color:#10233f;
    }
    .opr-reportes input:focus{
      border-color:#6da8f7;
      box-shadow:0 0 0 4px rgba(18,104,227,.12);
    }
    .opr-reportes .two{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:10px;
    }
    .opr-reportes .actions{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
      margin-top:18px;
    }
    .opr-reportes button{
      border:0;
      border-radius:15px;
      padding:13px 15px;
      font-weight:800;
      cursor:pointer;
      font-size:14px;
    }
    .opr-reportes .tab-list{
      display:flex;
      gap:10px;
      align-items:center;
    }
    .opr-reportes .tab-button{
      border:1px solid #d5e2f3;
      background:#f2f7ff;
      color:#17395f;
      border-radius:12px;
      padding:11px 14px;
      font-size:13px;
      line-height:1.15;
      text-align:center;
      box-shadow:none;
    }
    .opr-reportes .tab-button.is-active{
      background:linear-gradient(135deg,#0d68e8,#0a3d7f);
      border-color:#0d68e8;
      color:#fff;
      box-shadow:0 10px 22px rgba(18,104,227,.2);
    }
    .opr-reportes .control-tabs{
      display:grid;
      grid-template-columns:repeat(3,1fr);
      margin:14px 0 18px;
    }
    .opr-reportes .filter-tabs{
      display:grid;
      grid-template-columns:repeat(3,1fr);
      gap:8px;
      margin-bottom:12px;
    }
    .opr-reportes .filter-button{
      border:1px solid #d5e2f3;
      background:#fff;
      color:#17395f;
      border-radius:12px;
      padding:10px 8px;
      font-size:12px;
      box-shadow:none;
    }
    .opr-reportes .filter-button.is-active{
      background:#0b3a78;
      border-color:#0b3a78;
      color:#fff;
    }
    .opr-reportes .report-tabs{
      background:rgba(255,255,255,.78);
      border:1px solid #d6e2f1;
      border-radius:16px;
      padding:8px;
      box-shadow:0 12px 28px rgba(13,35,64,.06);
    }
    .opr-reportes .report-tabs .tab-button{
      flex:1;
      min-height:42px;
      font-size:14px;
    }
    .opr-reportes .primary{
      background:linear-gradient(135deg,#0d68e8,#0a3d7f);
      color:#fff;
      flex:1;
      box-shadow:0 12px 25px rgba(18,104,227,.22);
    }
    .opr-reportes .secondary{
      background:#eef5ff;
      color:#0b3a78;
      border:1px solid #d9e8fb;
    }
    .opr-reportes .actions .primary,
    .opr-reportes .actions .secondary{
      flex:1 1 145px;
    }
    .opr-reportes .actions .save{
      background:linear-gradient(135deg,#24a84f,#147937);
      box-shadow:0 12px 25px rgba(36,168,79,.2);
    }
    .opr-reportes .actions .sync{
      background:linear-gradient(135deg,#7357ff,#0d68e8);
      box-shadow:0 12px 25px rgba(115,87,255,.2);
    }
    .opr-reportes .reports{
      display:flex;
      flex-direction:column;
      gap:26px;
    }
    .opr-reportes .report{
      background:var(--card);
      border:1px solid #cfdbea;
      border-radius:0 0 24px 24px;
      overflow:hidden;
      box-shadow:var(--shadow);
    }
    .opr-reportes .topbar{
      height:112px;
      background:linear-gradient(135deg,#002c64,#062451);
      color:#fff;
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:0 34px 0 42px;
    }
    .opr-reportes .brand{
      display:flex;
      align-items:center;
      gap:17px;
      font-size:24px;
      font-weight:900;
      letter-spacing:0;
    }
    .opr-reportes .bars{
      width:44px;
      height:44px;
      display:grid;
      grid-template-columns:repeat(3,1fr);
      align-items:end;
      gap:5px;
    }
    .opr-reportes .bars span{
      display:block;
      border-radius:5px;
      background:linear-gradient(#8fc5ff,#357ee8);
    }
    .opr-reportes .bars span:nth-child(1){height:17px}
    .opr-reportes .bars span:nth-child(2){height:28px}
    .opr-reportes .bars span:nth-child(3){height:39px}
    .opr-reportes .date-chip{
      background:#fff;
      color:#10233f;
      border-radius:14px;
      padding:18px 24px;
      min-width:300px;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:13px;
      font-size:22px;
      font-weight:700;
      box-shadow:0 12px 24px rgba(0,0,0,.08);
    }
    .opr-reportes .content{padding:44px 52px 46px}
    .opr-reportes .headline{
      display:flex;
      align-items:center;
      gap:25px;
      padding-bottom:33px;
      border-bottom:1px solid var(--line);
      margin-bottom:38px;
    }
    .opr-reportes .big-icon{
      width:104px;
      height:104px;
      border-radius:50%;
      display:grid;
      place-items:center;
      background:linear-gradient(145deg,#1473f4,#0a3a99);
      color:#fff;
      box-shadow:0 16px 35px rgba(18,104,227,.22);
      flex:none;
    }
    .opr-reportes .headline h2{
      margin:0;
      font-size:38px;
      line-height:1;
      letter-spacing:0;
    }
    .opr-reportes .subtitle{
      display:flex;
      align-items:center;
      gap:12px;
      color:#60718a;
      font-size:22px;
      margin-top:12px;
      font-weight:600;
    }
    .opr-reportes .cards{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:36px;
    }
    .opr-reportes .agent-card{
      border:1px solid #cedbea;
      border-radius:16px;
      padding:30px;
      min-height:430px;
      box-shadow:0 14px 28px rgba(13,35,64,.05);
      background:linear-gradient(145deg,#fff,#fbfdff);
    }
    .opr-reportes .agent-head{
      display:flex;
      align-items:center;
      gap:22px;
      margin-bottom:28px;
    }
    .opr-reportes .avatar{
      width:88px;
      height:88px;
      border-radius:50%;
      background:#dcecff;
      display:grid;
      place-items:center;
      color:#0a3d9c;
      flex:none;
    }
    .opr-reportes .agent-name{
      font-size:38px;
      font-weight:900;
      letter-spacing:0;
    }
    .opr-reportes .metric{
      display:grid;
      grid-template-columns:70px 1fr auto;
      align-items:center;
      gap:18px;
      min-height:87px;
      border-top:1px solid var(--line);
    }
    .opr-reportes .metric:first-of-type{border-top:0}
    .opr-reportes .metric-icon{
      width:58px;
      height:58px;
      border-radius:50%;
      display:grid;
      place-items:center;
      flex:none;
    }
    .opr-reportes .blue-i{background:#e5f1ff;color:#1268e3}
    .opr-reportes .red-i{background:#fff1f0;color:var(--red)}
    .opr-reportes .green-i{background:#eaf9ee;color:var(--green)}
    .opr-reportes .orange-i{background:#fff2dc;color:var(--orange)}
    .opr-reportes .metric-icon svg,
    .opr-reportes .big-icon svg,
    .opr-reportes .date-icon svg,
    .opr-reportes .avatar svg,
    .opr-reportes .prod-icon svg{
      width:32px;
      height:32px;
      stroke:currentColor;
      fill:none;
      stroke-width:2.6;
      stroke-linecap:round;
      stroke-linejoin:round;
    }
    .opr-reportes .big-icon svg{width:54px;height:54px;stroke-width:2.4}
    .opr-reportes .avatar svg{width:43px;height:43px;fill:currentColor;stroke:none}
    .opr-reportes .date-icon svg{width:26px;height:26px;stroke-width:2.4}
    .opr-reportes .prod-icon svg{width:30px;height:30px;stroke-width:2.3}
    .opr-reportes .metric-label{
      font-size:22px;
      color:#162d4b;
      font-weight:600;
    }
    .opr-reportes .metric-value{
      font-size:36px;
      font-weight:900;
      color:#0b3a78;
      white-space:nowrap;
    }
    .opr-reportes .metric-value.red{color:var(--red)}
    .opr-reportes .productivity-box{
      margin-top:32px;
      border:1px solid #cedbea;
      border-radius:18px;
      padding:28px 30px;
      background:linear-gradient(145deg,#fff,#fbfdff);
      box-shadow:0 14px 28px rgba(13,35,64,.05);
    }
    .opr-reportes .productivity-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
      margin-bottom:24px;
    }
    .opr-reportes .productivity-title{
      display:flex;
      align-items:center;
      gap:16px;
    }
    .opr-reportes .prod-icon{
      width:60px;
      height:60px;
      border-radius:50%;
      background:#e7f1ff;
      color:#1268e3;
      display:grid;
      place-items:center;
    }
    .opr-reportes .productivity-title h3{
      margin:0;
      font-size:28px;
      letter-spacing:0;
    }
    .opr-reportes .productivity-title p{
      margin:5px 0 0;
      color:var(--muted);
      font-size:16px;
      font-weight:600;
    }
    .opr-reportes .average-box{
      text-align:right;
    }
    .opr-reportes .average-box .label{
      display:block;
      color:var(--muted);
      font-size:14px;
      font-weight:700;
      text-transform:uppercase;
      letter-spacing:0;
      margin-bottom:5px;
    }
    .opr-reportes .average-box .value{
      font-size:34px;
      font-weight:900;
      color:#0b3a78;
    }
    .opr-reportes .progress-row{
      display:grid;
      grid-template-columns:120px 1fr 86px;
      gap:18px;
      align-items:center;
      margin-top:18px;
    }
    .opr-reportes .progress-name{
      font-size:20px;
      font-weight:800;
      color:#163251;
    }
    .opr-reportes .progress-track{
      height:18px;
      background:#e8eef7;
      border-radius:999px;
      overflow:hidden;
      box-shadow: inset 0 1px 3px rgba(0,0,0,.05);
    }
    .opr-reportes .progress-fill{
      height:100%;
      width:0%;
      border-radius:999px;
      background:linear-gradient(90deg,#1d7cff,#0b3a78);
      transition:width .35s ease;
    }
    .opr-reportes .progress-fill.green-fill{
      background:linear-gradient(90deg,#28c76f,#168747);
    }
    .opr-reportes .progress-value{
      font-size:22px;
      font-weight:900;
      color:#0b3a78;
      text-align:right;
    }
    .opr-reportes .note{
      margin-top:52px;
      padding-top:26px;
      border-top:1px solid var(--line);
      display:flex;
      align-items:center;
      gap:16px;
      color:#183655;
      font-size:18px;
      font-weight:600;
    }
    .opr-reportes .info{
      width:35px;
      height:35px;
      border-radius:50%;
      display:grid;
      place-items:center;
      background:#ddecff;
      color:#1473f4;
      font-weight:900;
    }
    .opr-reportes .backoffice-card{
      border:1px solid #cedbea;
      border-radius:16px;
      padding:22px 48px;
      background:linear-gradient(145deg,#fff,#fbfdff);
      box-shadow:0 14px 28px rgba(13,35,64,.05);
    }
    .opr-reportes .dashboard-summary{
      border:1px solid #d6e2f1;
      border-radius:14px;
      background:#f7fbff;
      padding:16px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:14px;
      color:#123154;
    }
    .opr-reportes .dashboard-summary strong{
      font-size:34px;
      color:#0b3a78;
      line-height:1;
    }
    .opr-reportes .summary-label{
      color:#526986;
      font-size:13px;
      font-weight:800;
      text-transform:uppercase;
    }
    .opr-reportes .dashboard-table-wrap{
      border:1px solid #cedbea;
      border-radius:16px;
      overflow:auto;
      background:#fff;
      box-shadow:0 14px 28px rgba(13,35,64,.05);
    }
    .opr-reportes .sales-goals{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:18px;
      margin-bottom:22px;
    }
    .opr-reportes .sales-goal-card{
      border:1px solid #cedbea;
      border-radius:16px;
      padding:20px;
      background:linear-gradient(145deg,#fff,#fbfdff);
      box-shadow:0 14px 28px rgba(13,35,64,.05);
    }
    .opr-reportes .sales-goal-card strong{
      display:block;
      margin:8px 0 14px;
      font-size:34px;
      color:#0b3a78;
      line-height:1;
    }
    .opr-reportes .sales-goal-card .progress-track{
      height:14px;
      margin-bottom:12px;
    }
    .opr-reportes .goal-foot{
      color:#526986;
      font-size:14px;
      font-weight:700;
    }
    .opr-reportes .dashboard-table{
      width:100%;
      border-collapse:collapse;
      min-width:860px;
    }
    .opr-reportes .dashboard-table th,
    .opr-reportes .dashboard-table td{
      border-bottom:1px solid var(--line);
      padding:16px 18px;
      text-align:left;
      color:#142f50;
      font-size:16px;
    }
    .opr-reportes .dashboard-table th{
      background:#f3f8ff;
      color:#47617f;
      font-size:12px;
      font-weight:900;
      text-transform:uppercase;
    }
    .opr-reportes .dashboard-table tbody tr{
      cursor:pointer;
      transition:background .2s ease;
    }
    .opr-reportes .dashboard-table tbody tr:hover,
    .opr-reportes .dashboard-table tbody tr:focus{
      background:#eef5ff;
      outline:none;
    }
    .opr-reportes .dashboard-table tbody tr:last-child td{
      border-bottom:0;
    }
    .opr-reportes .bo-row{
      display:grid;
      grid-template-columns:74px 1fr auto;
      align-items:center;
      gap:22px;
      min-height:118px;
      border-top:1px solid var(--line);
    }
    .opr-reportes .bo-row:first-child{border-top:0}
    .opr-reportes .bo-label{
      font-size:28px;
      font-weight:800;
    }
    .opr-reportes .bo-value{
      font-size:42px;
      font-weight:900;
      color:var(--green);
      white-space:nowrap;
    }
    .opr-reportes .bo-value.warn{color:var(--orange)}
    .opr-reportes .print-tip{
      font-size:12px;
      color:#789;
      margin-top:12px;
      line-height:1.35;
    }

    @media(max-width:1100px){
      .opr-reportes .app{grid-template-columns:1fr}
    .opr-reportes .control-panel{position:relative;height:auto;top:auto}
    .opr-reportes .cards{grid-template-columns:1fr}
    .opr-reportes .productivity-head{flex-direction:column;align-items:flex-start}
    .opr-reportes .progress-row{grid-template-columns:1fr}
    .opr-reportes .progress-value{text-align:left}
    }

    @media print{
      .opr-reportes{background:#fff}
    .opr-reportes .control-panel{display:none}
    .opr-reportes .app{display:block;max-width:none;padding:0}
    .opr-reportes .reports{gap:18px}
    .opr-reportes .report{box-shadow:none;break-inside:avoid;margin-bottom:22px}
    .opr-reportes button{display:none}
    }

    @media(max-width:1100px){
      body.opr-reportes-standalone .opr-reportes .app{grid-template-columns:1fr}
      body.opr-reportes-standalone .opr-reportes .control-panel{position:relative;height:auto;top:auto}
      body.opr-reportes-standalone .opr-reportes .cards{grid-template-columns:1fr}
      body.opr-reportes-standalone .opr-reportes .sales-goals{grid-template-columns:1fr}
    }


