/* PAINEL DE SUPORTE MATEUS INFORMÁTICA — cores da marca (azul e grafite do logo) */
:root {
  --azul: #1f5fae; --azul-esc: #143d73; --azul-claro: #e8f0fb; --grafite: #2b2f36; --cinza: #6b7280; --linha: #dde3ec;
  --fundo: #f3f6fa; --branco: #fff; --verde: #16a34a; --verde-claro: #dcfce7; --verm: #dc2626; --amarelo: #f59e0b; --roxo: #6d28d9;
  --raio: 12px; --sombra: 0 2px 10px rgba(20, 40, 80, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--grafite); background: var(--fundo); -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; }
input[type=text], input[type=tel], input:not([type]), textarea { text-transform: uppercase; }
input::placeholder, textarea::placeholder { text-transform: none; }
button { cursor: pointer; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--azul); color: #fff; font-weight: 600; letter-spacing: .2px; }
button:hover { filter: brightness(1.07); }
button:disabled { opacity: .55; cursor: default; }
button.sec { background: var(--branco); color: var(--azul); border: 1px solid var(--linha); }
button.verde { background: var(--verde); } button.verm { background: var(--verm); } button.amar { background: var(--amarelo); color: #222; }
button.mini, a.mini { padding: 3px 8px; font-size: 12px; border-radius: 6px; background: var(--azul); color: #fff; text-decoration: none; display: inline-block; }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid var(--linha); border-radius: 10px; background: #fff; color: var(--grafite); outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(31, 95, 174, .15); }
label { display: block; font-size: 12px; font-weight: 700; color: var(--cinza); margin: 12px 0 5px; letter-spacing: .3px; }
.oculto { display: none !important; }
.card { background: var(--branco); border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px; }
.marca { display: flex; align-items: center; gap: 10px; }
.marca img { height: 38px; }
.marca b { font-size: 15px; color: var(--azul-esc); letter-spacing: .3px; line-height: 1.15; }
.etiqueta { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; letter-spacing: .3px; }
.s-NOVO { background: #fde68a; color: #78350f; } .s-EM.ATENDIMENTO, .s-EM { background: var(--azul-claro); color: var(--azul-esc); }
.s-AGUARDANDO { background: #ede9fe; color: var(--roxo); } .s-RESOLVIDO { background: var(--verde-claro); color: #166534; }
.urg { background: var(--verm); color: #fff; }

/* mensagens */
.msgs { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: #eef2f7; background-image: radial-gradient(#dfe6ef 1px, transparent 1px); background-size: 18px 18px; }
.msg { max-width: min(78%, 620px); padding: 8px 11px 5px; border-radius: 12px; box-shadow: 0 1px 1px rgba(0,0,0,.06); word-wrap: break-word; position: relative; }
.msg.eu { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; }
.msg.outro { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.msg.sis { align-self: center; background: #fff8e1; color: #5b4500; font-size: 13px; text-align: center; max-width: 90%; }
.msg.matia { align-self: stretch; max-width: 100%; background: #f5f0ff; border: 1px solid #d8c9ff; font-size: 13.5px; }
.msg.interno:not(.matia) { background: #fff3cd; border: 1px dashed #e0b100; }
.msg .autor { font-size: 12px; font-weight: 700; color: var(--azul); margin-bottom: 2px; }
.msg.matia .autor { color: var(--roxo); }
.msg .etq { font-size: 10.5px; font-weight: 700; color: #8a6d00; }
.msg .hora { font-size: 10.5px; color: var(--cinza); text-align: right; margin-top: 2px; }
.msg img { max-width: 100%; max-height: 320px; border-radius: 8px; display: block; }
.msg video { max-width: 100%; max-height: 320px; border-radius: 8px; }
.msg audio { width: 260px; max-width: 100%; height: 40px; }
.msg .transc { font-size: 12.5px; color: #444; margin-top: 3px; font-style: italic; }
.msg .anydesk { font-size: 14px; } .msg .anydesk b { font-size: 17px; letter-spacing: 1px; color: #c2410c; }
.msg .arq { color: var(--azul); font-weight: 600; }
.msg a { color: var(--azul); }
.digitando { font-size: 12px; color: var(--cinza); padding: 2px 14px; min-height: 18px; }

/* barra de envio */
.envio { display: flex; gap: 6px; align-items: flex-end; padding: 8px; background: #f7f9fc; border-top: 1px solid var(--linha); }
.envio textarea { resize: none; min-height: 44px; max-height: 140px; border-radius: 22px; padding: 11px 15px; text-transform: none; }
.envio .ic { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border-radius: 50%; font-size: 19px; background: #fff; color: var(--grafite); border: 1px solid var(--linha); }
.envio .ic.enviar { background: var(--azul); color: #fff; border: 0; }
.envio .ic.gravando { background: var(--verm); color: #fff; animation: pulsa 1s infinite; }
@keyframes pulsa { 50% { transform: scale(1.08); } }
.gravacao { display: flex; align-items: center; gap: 8px; flex: 1; color: var(--verm); font-weight: 700; padding: 0 8px; }

/* chamada */
.chamada { position: fixed; z-index: 50; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); background: var(--grafite); color: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.chamada.tela-grande { left: 16px; top: 16px; width: auto; display: flex; flex-direction: column; }
.chamada .tit { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.chamada .sub { color: #cbd5e1; font-size: 13px; margin-bottom: 10px; }
.chamada .bts { display: flex; gap: 8px; flex-wrap: wrap; }
.chamada video { width: 100%; background: #000; border-radius: 10px; margin-bottom: 10px; max-height: 60vh; object-fit: contain; }
.chamada.tela-grande video { flex: 1; max-height: none; min-height: 0; }
.chamada.tocando { animation: balanca .6s infinite alternate; }
@keyframes balanca { to { transform: translateY(-4px); } }

/* avisos */
#avisos { position: fixed; z-index: 99; left: 50%; transform: translateX(-50%); top: 14px; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.aviso { background: var(--grafite); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--sombra); font-weight: 600; font-size: 14px; transition: opacity .5s; max-width: 90vw; }
.aviso.erro { background: var(--verm); } .aviso.ok { background: var(--verde); }
.aviso.sai { opacity: 0; }

.estrelas { display: flex; gap: 6px; justify-content: center; font-size: 34px; }
.estrelas span { cursor: pointer; color: #cbd5e1; } .estrelas span.on { color: #f59e0b; }
.instalar { display: none; } body.pode-instalar .instalar { display: inline-block; }
