/* Diseno PowerBit para la Mesa de Servicios (osTicket, portal de clientes) */
:root{--navy:#111827;--navy-2:#0b0f17;--gold:#0070e0;--gold-2:#005fc0;--ink:#1f2933;--muted:#5b6776;--alt:#f4f6fa;--line:#e3e8ef}
html,body.pb-theme{background:var(--alt)!important}
body.pb-theme{font-family:"Segoe UI",Roboto,Helvetica,Arial,sans-serif!important;color:var(--ink);font-size:15px;line-height:1.55}
body.pb-theme a{color:var(--navy)}
body.pb-theme *{box-sizing:border-box}

/* Barra superior comun con la web */
.pb-topbar{background:var(--navy-2);color:#c8d1e0;font-size:13px}
.pb-topbar-in{max-width:1140px;margin:0 auto;padding:8px 20px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pb-topbar a{color:#fff!important;text-decoration:none;font-weight:600}
.pb-topbar a:hover{color:var(--gold)!important}
.pb-topbar-links{display:flex;gap:18px}

/* Contenedor */
body.pb-theme #container{width:auto!important;max-width:1140px;margin:24px auto!important;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(17,24,39,.06);padding:0 0 10px!important;overflow:hidden}

/* Cabecera */
body.pb-theme #header{height:auto!important;min-height:84px;padding:14px 28px!important;border-bottom:1px solid var(--line);display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;background:#fff}
body.pb-theme #header .pull-right{float:none!important;text-align:right}
body.pb-theme #header p{margin:2px 0;font-size:14px;color:var(--muted)}
body.pb-theme #header p a{font-weight:600}
body.pb-theme #logo{float:none!important;height:auto!important;width:auto!important;display:flex;align-items:center}
body.pb-theme #logo .valign-helper{display:none}
body.pb-theme #logo img{max-height:60px!important;max-width:min(330px,70vw)!important;width:auto;height:auto}
body.pb-theme #header + .clear{display:none}

/* Menu */
body.pb-theme #nav{margin:0!important;padding:0 20px!important;height:auto!important;background:var(--navy)!important;border:0!important;box-shadow:none!important;display:flex;flex-wrap:wrap;gap:2px;width:auto!important}
body.pb-theme #nav li{float:none!important;margin:0!important;display:block}
body.pb-theme #nav li a{display:block;padding:13px 16px 13px 38px!important;color:#e8edf6!important;font-weight:600;font-size:14px;height:auto!important;line-height:1.3!important;background-color:transparent!important;background-position:12px center!important;border:0!important;border-radius:0!important;filter:brightness(0) invert(1);text-shadow:none!important}
body.pb-theme #nav li a.active,body.pb-theme #nav li a:hover{background-color:rgba(255,255,255,.12)!important;color:#fff!important;box-shadow:inset 0 -3px 0 var(--gold)}
body.pb-theme hr{border:0;border-top:4px solid var(--navy);margin:0}

/* Contenido */
body.pb-theme #content{padding:28px!important;min-height:300px;width:auto!important;margin:0!important}
body.pb-theme h1,body.pb-theme h2,body.pb-theme h3{color:var(--navy-2);font-family:inherit!important}
body.pb-theme #landing_page h1,body.pb-theme .main-content h1{font-size:1.8rem;margin-top:0}
body.pb-theme .sidebar{width:300px}
body.pb-theme .front-page-button{width:100%}

/* Botones */
body.pb-theme .button,body.pb-theme input[type=submit],body.pb-theme button,body.pb-theme input[type=button],body.pb-theme input[type=reset]{background:var(--navy)!important;background-image:none!important;color:#fff!important;border:2px solid var(--navy)!important;border-radius:6px!important;padding:10px 18px!important;font-weight:600!important;font-size:15px!important;text-shadow:none!important;box-shadow:none!important;height:auto!important;line-height:1.3!important;cursor:pointer}
body.pb-theme .button:hover,body.pb-theme input[type=submit]:hover,body.pb-theme button:hover{background:var(--navy-2)!important;border-color:var(--navy-2)!important}
body.pb-theme a.button.blue,body.pb-theme .button.green{display:block;text-align:center;margin-bottom:12px;width:100%;text-decoration:none}
body.pb-theme a.button.blue{background:var(--gold)!important;border-color:var(--gold)!important}
body.pb-theme a.button.blue:hover{background:var(--gold-2)!important;border-color:var(--gold-2)!important}
body.pb-theme input[type=reset],body.pb-theme input[name=cancel],body.pb-theme .button.cancel{background:#fff!important;color:var(--navy)!important}

/* Formularios */
body.pb-theme input[type=text],body.pb-theme input[type=email],body.pb-theme input[type=password],body.pb-theme input[type=tel],body.pb-theme input[type=number],body.pb-theme select,body.pb-theme textarea{border:1px solid #cfd7e3!important;border-radius:6px!important;padding:8px 10px!important;font-size:15px!important;max-width:100%;background:#fff}
body.pb-theme input:focus,body.pb-theme select:focus,body.pb-theme textarea:focus{outline:2px solid rgba(17,24,39,.25);border-color:var(--navy)!important}
body.pb-theme .form-header h1,body.pb-theme .form-header h2{color:var(--navy)}

/* Tablas y mensajes */
body.pb-theme table.list thead th,body.pb-theme #ticketTable thead th{background:var(--navy)!important;color:#fff!important;background-image:none!important;border-color:var(--navy)!important}
body.pb-theme table.list tbody tr:nth-child(odd) td{background:var(--alt)}
body.pb-theme #msg_notice{background:#eaf4ea;border-color:#b9dbb9;border-radius:6px}
body.pb-theme #msg_error{border-radius:6px}
body.pb-theme #msg_warning{border-radius:6px}

/* Pie */
body.pb-theme #footer{max-width:1140px;margin:0 auto 24px!important;width:auto!important;text-align:center;color:var(--muted);font-size:13px;padding:0 20px}
body.pb-theme #footer p{margin:6px 0}
body.pb-theme #footer .pb-footer-links a{font-weight:600}
body.pb-theme #poweredBy{opacity:.55;transform:scale(.85);display:inline-block}

/* Responsive */
@media (max-width:760px){
  body.pb-theme #container{margin:0!important;border-radius:0;border-left:0;border-right:0}
  body.pb-theme #header{flex-direction:column;align-items:flex-start;padding:12px 16px!important}
  body.pb-theme #header .pull-right{text-align:left}
  body.pb-theme #logo img{max-height:46px!important}
  body.pb-theme #nav{padding:0 8px!important}
  body.pb-theme #nav li{flex:1 1 auto}
  body.pb-theme #nav li a{padding:11px 10px 11px 32px!important;font-size:13px;background-position:8px center!important}
  body.pb-theme #content{padding:18px 16px!important}
  body.pb-theme .sidebar,body.pb-theme .pull-right.sidebar,body.pb-theme .main-content{float:none!important;width:100%!important;margin:0 0 16px!important}
  body.pb-theme table,body.pb-theme .form_table{width:100%!important}
  body.pb-theme table.list{display:block;overflow-x:auto}
  body.pb-theme input[type=text],body.pb-theme input[type=email],body.pb-theme input[type=password],body.pb-theme select,body.pb-theme textarea{width:100%!important}
  .pb-topbar-in{padding:8px 16px}
  .pb-topbar-links{gap:12px}
}
