/* =========================================================
   RTO SYSTEM - CSS PROFESIONAL
   ========================================================= */

.rto-panel-page{
    padding:20px;
}

/* =========================================================
   BOXES
   ========================================================= */

.rto-box{
    background:#f5f5f5;
    border:1px solid #a9a9a9;
    border-radius:8px;
    padding:14px;
    margin-bottom:18px;
}

.rto-title{
    font-size:18px;
    font-weight:700;
    margin-bottom:14px;
    display:flex;
    align-items:center;
    gap:8px;
}

.rto-title span{
    color:#1b8ed6;
}

/* =========================================================
   FORMULARIOS
   ========================================================= */

.rto-form-box{
    margin-bottom:10px;
}

.rto-row{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
}

.rto-row label{
    min-width:120px;
    font-size:13px;
    font-weight:600;
}

.rto-control{
    width:100%;
    height:34px;
    border:1px solid #bcbcbc;
    border-radius:6px;
    padding:6px 10px;
    font-size:13px;
    background:#fff;
}

textarea.rto-control{
    min-height:90px;
    resize:vertical;
}

.rto-row-search{
    display:flex;
    align-items:center;
    gap:8px;
}

.rto-row-search label{
    min-width:55px;
}

/* =========================================================
   BOTONES
   ========================================================= */

.rto-btn{
    height:34px;
    border:none;
    background:#0c82d8;
    color:#fff;
    padding:0 18px;
    border-radius:6px;
    cursor:pointer;
    font-size:13px;
    font-weight:600;
    transition:.15s;
}

.rto-btn:hover{
    background:#086cb4;
}

.rto-btn-large{
    height:40px;
    padding:0 25px;
}

/* =========================================================
   TABLAS
   ========================================================= */

.rto-table-wrap{
    overflow:auto;
    border-radius:8px;
}

.rto-planillas-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    font-size:13px;
}

.rto-planillas-table th{
    background:linear-gradient(to bottom,#d6eefb,#b6dff3);
    color:#000;
    padding:10px 8px;
    text-align:center;
    border-right:1px solid #fff;
    border-bottom:1px solid #cfcfcf;
    font-weight:700;
    line-height:1.2;
}

.rto-planillas-table td{
    padding:8px 10px;
    border-right:1px solid #fff;
    border-bottom:1px solid #e2e2e2;
    vertical-align:top;
    line-height:1.4;
    font-weight:600;
}

.rto-planillas-table tbody tr:nth-child(even){
    background:#eeeeee;
}

.rto-planillas-table tbody tr:nth-child(odd){
    background:#fafafa;
}

.rto-planillas-table tbody tr:hover{
    background:#e9f6ff;
}

.rto-empty{
    text-align:center;
    padding:20px;
    color:#666;
}

/* =========================================================
   LINKS ESTADOS
   ========================================================= */

.rto-estados{
    min-width:190px;
}

.rto-estado-link,
.rto-estados span{
    display:block;
    width:fit-content;
    margin-bottom:6px;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
    transition:all .15s ease;
    border-bottom:1px dotted transparent;
    cursor:pointer;
}

.rto-estado-link{
    background:transparent;
    border:none;
    padding:0;
}

.rto-estado-link:hover{
    transform:translateX(2px);
    opacity:.8;
    border-bottom-color:currentColor;
}

.estado-verde{
    color:#008000 !important;
}

.estado-rojo{
    color:#df0000 !important;
}

.estado-negro{
    color:#222 !important;
    font-weight:700;
}

/* =========================================================
   BOTON ANULAR
   ========================================================= */

.rto-accion-anular{
    width:110px;
    text-align:center;
    vertical-align:middle !important;
}

.rto-btn-anular{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-width:85px;
    height:31px;
    border:1px solid #b91c1c;
    background:#fff;
    color:#b91c1c;
    border-radius:6px;
    cursor:pointer;
    font-size:12px;
    font-weight:700;
    transition:all .15s ease;
}

.rto-btn-anular::before{
    content:"✕";
    font-size:12px;
}

.rto-btn-anular:hover{
    background:#b91c1c;
    color:#fff;
}

/* =========================================================
   BADGES
   ========================================================= */

.rto-badge-anulada{
    display:inline-block;
    background:#222;
    color:#fff;
    padding:5px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
}

/* =========================================================
   PAGINACION
   ========================================================= */

.rto-pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin-top:16px;
}

.rto-pagination a{
    text-decoration:none;
    color:#0b82d8;
    font-weight:700;
}

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

.rto-modal-overlay{
    display:none !important;
    position:fixed !important;
    inset:0 !important;
    background:rgba(0,0,0,.45) !important;
    z-index:99999 !important;
    align-items:center !important;
    justify-content:center !important;
}

.rto-modal-overlay.activo{
    display:flex !important;
}

.rto-modal-box{
    width:640px;
    max-width:95%;
    background:#fff;
    border:1px solid #9b9b9b;
    border-radius:8px;
    padding:14px;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.rto-modal-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px;
}

.rto-modal-header h2{
    font-size:17px;
    margin:0;
    display:flex;
    align-items:center;
    gap:7px;
}

.rto-modal-header h2 span{
    color:#1691d9;
}

.rto-modal-close{
    border:none;
    background:transparent;
    font-size:28px;
    cursor:pointer;
    line-height:1;
}

.rto-modal-content-box{
    border:1px solid #b5b5b5;
    border-radius:8px;
    padding:16px;
}

.rto-modal-row{
    display:grid;
    grid-template-columns:160px 1fr;
    gap:10px;
    align-items:center;
    margin-bottom:10px;
}

.rto-modal-row label{
    font-size:13px;
    font-weight:700;
}

.rto-modal-row strong{
    color:#0a4f87;
    font-size:14px;
}

.rto-modal-row-textarea{
    align-items:start;
}

.rto-modal-actions{
    border:1px solid #b5b5b5;
    border-radius:8px;
    padding:14px;
    text-align:right;
    margin-top:8px;
}

.rto-btn-danger{
    background:#0a83d9;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:6px;
    cursor:pointer;
    font-size:13px;
    font-weight:700;
    transition:.15s;
}

.rto-btn-danger:hover{
    background:#076eb7;
}

.rto-modal-note{
    margin-top:8px;
    font-size:12px;
}

/* =========================================================
   ALERTAS
   ========================================================= */

.rto-alert{
    padding:10px 12px;
    border-radius:6px;
    font-size:13px;
    line-height:1.45;
}

.rto-alert-warning{
    background:#fff3cd;
    border:1px solid #ffda6a;
    color:#664d03;
}

/* =========================================================
   HELPERS
   ========================================================= */

.mt-2{
    margin-top:8px;
}

.mt-3{
    margin-top:14px;
}

.mb-3{
    margin-bottom:14px;
}

.mb-4{
    margin-bottom:18px;
}