/* Goose Reports — mismo esquema visual que el monitor: encabezado blanco, Inter, fondo gris claro */
:root { --dark: #292B30; --green: #85D7B4; --green-d: #2A8C66; --bg: #F5F5F5; --line: #E5E7EB; --muted: #6B7280; --red: #C94444; }
* { box-sizing: border-box; }
body.ghr-app { margin: 0; background: var(--bg); color: #1F2937; font: 400 15px/1.5 Inter, Arial, sans-serif; }
a { color: var(--green-d); }
h1, h2 { font-weight: 700; color: #1F2937; }
h1 { font-size: 30px; margin: 0 0 20px; letter-spacing: -.3px; }
h2 { font-size: 17px; margin: 0 0 12px; }

/* Encabezado */
.ghr-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.ghr-top-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; align-items: stretch; gap: 32px; min-height: 74px; }
.ghr-brand { display: flex; align-items: center; }
.ghr-brand img { max-height: 40px; max-width: 140px; }
.ghr-top nav { display: flex; gap: 4px; flex: 1; }
.ghr-top nav a { display: flex; align-items: center; padding: 0 16px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
.ghr-top nav a:hover { color: var(--dark); }
.ghr-top nav a.on { color: var(--dark); font-weight: 600; border-bottom-color: var(--green); }
.ghr-right { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.ghr-right select { min-width: 210px; }
.ghr-user { font-weight: 600; color: #1F2937; }
.ghr-link { color: var(--muted); text-decoration: none; }
.ghr-link:hover { color: var(--dark); }
.ghr-one-client { color: var(--muted); }

.ghr-main { max-width: 1180px; margin: 0 auto; padding: 32px 16px 40px; }
.ghr-foot { text-align: center; color: var(--muted); padding: 24px 16px 40px; font-size: 15px; }
.ghr-foot strong { font-weight: 600; }

/* Tarjetas y formularios */
.ghr-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 0 0 16px; }
.ghr-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.ghr-row label, .ghr-quick > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.ghr-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.ghr-quick > span { width: 100%; }
.ghr-chip { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: #1F2937; text-decoration: none; font-weight: 500; font-size: 14px; background: #fff; }
.ghr-chip:hover, .ghr-chip.on { border-color: var(--green); background: #EEF9F4; }
input[type=text], input[type=date], input[type=month], input[type=url], input[type=password], select, textarea {
  font: 400 15px Inter, sans-serif; border: 1px solid #D1D5DB; border-radius: 8px; padding: 9px 12px; background: #fff; color: #1F2937; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.large-text { width: 100%; }
.ghr-num { width: 120px; }
.description { color: var(--muted); font-size: 13px; }
.button, .ghr-btn { display: inline-block; font: 600 14px Inter, sans-serif; border-radius: 8px; padding: 10px 20px; border: 0; cursor: pointer; text-decoration: none; background: var(--dark); color: #fff; }
.button-primary, .ghr-btn:not(.ghr-btn-sec) { background: var(--green); color: var(--dark); }
.ghr-btn-sec { background: var(--dark); color: #fff; }
.button-hero { padding: 12px 24px; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--green); background: #fff; padding: 10px 16px; border-radius: 8px; margin: 0 0 16px; }
.notice-warning { border-left-color: #E5B33D; }
.notice-error { border-left-color: var(--red); }
.notice ul { margin: 4px 0 0 18px; padding: 0; }
.ghr-client-name { margin-top: 0; }

/* Tablas */
.ghr-table { width: 100%; border-collapse: collapse; }
.ghr-table th { text-align: left; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--green); padding: 8px; }
.ghr-table td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; }
.ghr-scroll { overflow-x: auto; }
.ghr-edited { display: block; font-size: 12px; color: #9A6B00; margin-top: 3px; }
.ghr-restore { display: block; font-size: 12px; color: var(--muted); }

/* KPIs y gráficas */
.ghr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.ghr-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; border-top: 4px solid var(--c, var(--green)); display: flex; flex-direction: column; gap: 2px; }
.ghr-kpi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ghr-kpi span:not(.ghr-ic) { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 500; }
.ghr-kpi strong { font-weight: 700; font-size: 28px; color: #1F2937; }
.ghr-kpi em { font-style: normal; font-size: 13px; font-weight: 600; }
.ghr-kpi em.pos { color: var(--green-d); } .ghr-kpi em.neg { color: var(--red); }
.ghr-kpi small { color: var(--muted); font-size: 12px; }
.ghr-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ghr-svg { width: 100%; height: auto; display: block; font-family: Inter, sans-serif; }

/* Publicaciones */
.ghr-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.ghr-post { display: flex; flex-direction: column; gap: 6px; }
.ghr-post label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); font-weight: 500; }
.ghr-post input[type=url], .ghr-post select { width: 100%; }
.ghr-thumb { width: 100%; aspect-ratio: 4 / 5; background: #E5E7EB; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.ghr-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ghr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ghr-sticky { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; margin: 0; display: flex; gap: 12px; align-items: center; }
.ghr-meta { margin-top: -8px; }

/* Login (igual al monitor) */
.ghr-login { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 16px;
  background: linear-gradient(180deg, #EEF3F1 0%, var(--bg) 100%); }
body.ghr-app:has(.ghr-login) { background: linear-gradient(180deg, #EEF3F1 0%, var(--bg) 60%); }
.ghr-login-card { background: #fff; border-top: 5px solid var(--green); border-radius: 16px; padding: 44px 42px 36px; width: 100%; max-width: 525px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .08); text-align: center; }
.ghr-login-logo { height: 54px; max-width: 100%; }
.ghr-login-card h1 { margin: 30px 0 8px; font-size: 26px; font-weight: 700; letter-spacing: -.2px; }
.ghr-login-sub { color: var(--muted); margin: 0 0 30px; font-size: 17px; }
.ghr-login-card form { text-align: left; }
.ghr-login-card form p { margin: 0 0 22px; }
.ghr-login-card label { display: block; font-size: 16px; color: #1F2937; font-weight: 500; margin-bottom: 10px; }
.ghr-login-card input[type=text], .ghr-login-card input[type=password] { width: 100%; padding: 13px 16px; font-size: 16px; border: 1px solid #DCE3EA; border-radius: 10px; background: #F8FAFC; }
.ghr-login-card .login-submit { margin: 0; }
.ghr-login-card input[type=submit] { font: 600 17px Inter, sans-serif; background: var(--green); color: #fff; border: 0; border-radius: 10px; padding: 13px 24px; cursor: pointer; width: 100%; }
.ghr-login-card input[type=submit]:hover { filter: brightness(.95); }
.ghr-err { color: var(--red); font-weight: 600; }
.ghr-foot-login { background: var(--bg); padding: 20px 16px 28px; }

@media (max-width: 900px) {
  .ghr-top-in { flex-wrap: wrap; gap: 8px 16px; padding: 10px 16px; }
  .ghr-top nav { order: 3; width: 100%; flex: none; }
  .ghr-top nav a { padding: 10px 12px; }
  .ghr-right { margin-left: auto; gap: 10px; font-size: 14px; }
  .ghr-right select { min-width: 0; }
  .ghr-charts, .ghr-two { grid-template-columns: 1fr; }
}

/* Íconos de redes */
.ghr-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; flex: none; font-size: 16px; }
.ghr-ic svg { display: block; }
.ghr-ic.sm { width: 22px; height: 22px; font-size: 11px; }
.ghr-net { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* Selects con flecha propia (separada del borde, como en el monitor) */
select {
  -webkit-appearance: none; appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%234B5563' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; cursor: pointer; }
select::-ms-expand { display: none; }

.ghr-warn{background:#FFF7E0;border-left:3px solid #E5B300;padding:8px 12px;border-radius:6px;font-size:13px;margin:8px 0;}
.ghr-num[readonly],.ghr-post select:disabled{background:#F4F5F7;color:#5B5F66;border-color:#E3E5E8;cursor:default;}
.ghr-th-note{display:block;font-weight:400;text-transform:none;letter-spacing:0;font-size:11px;color:#8A8F98;}
.ghr-table th.ghr-col-cur{color:#1F7A55;}
/* columnas alineadas entre tablas */
.ghr-table{table-layout:fixed;width:100%;}
.ghr-table th:first-child,.ghr-table td:first-child{width:32%;}
.ghr-table .ghr-num{width:100%;max-width:170px;box-sizing:border-box;}
/* aviso flotante al guardar */
.notice-success{background:#EEF9F4;border-left-color:#2A8C66;}
.ghr-toast{position:fixed;top:88px;right:24px;z-index:9999;background:#292B30;color:#fff;padding:12px 18px;border-radius:10px;border-left:4px solid #85D7B4;font-size:14px;font-weight:500;box-shadow:0 8px 24px rgba(0,0,0,.18);transition:opacity .4s, transform .4s;}
.ghr-toast.ghr-hide{opacity:0;transform:translateY(-8px);pointer-events:none;}
@media (max-width:600px){.ghr-toast{left:16px;right:16px;top:72px;}}
/* selector Un mes / Rango de meses */
.ghr-mode{display:inline-flex;background:#F1F2F4;border-radius:999px;padding:4px;margin:4px 0 14px;gap:2px;}
.ghr-mode label{position:relative;cursor:pointer;}
.ghr-mode input{position:absolute;opacity:0;pointer-events:none;}
.ghr-mode label{padding:7px 16px;border-radius:999px;font-size:14px;font-weight:500;color:#5B5F66;}
.ghr-mode label:has(input:checked){background:#fff;color:#1F2328;box-shadow:0 1px 3px rgba(0,0,0,.12);}
.ghr-mode label:has(input:focus-visible){outline:2px solid #85D7B4;}
[hidden]{display:none !important;}
/* recuadro de imagen clicable */
.ghr-upload{position:relative;cursor:pointer;border:1.5px dashed #C9CDD2;transition:border-color .2s, background .2s;}
.ghr-upload:hover{border-color:#85D7B4;background:#EEF9F4;}
.ghr-upload input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;}
.ghr-upload-empty{display:flex;flex-direction:column;align-items:center;gap:8px;color:#5B5F66;font-weight:500;font-size:13px;}
.ghr-upload-cta{position:absolute;left:8px;right:8px;bottom:8px;background:rgba(41,43,48,.85);color:#fff;font-size:12px;font-weight:500;text-align:center;padding:6px 8px;border-radius:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ghr-upload:not(:has(img)) .ghr-upload-cta{background:#292B30;}
.ghr-upload-new{border-color:#2A8C66;border-style:solid;}
.ghr-upload-new .ghr-upload-cta{background:#2A8C66;}
.ghr-upload:has(input:focus-visible){outline:2px solid #85D7B4;outline-offset:2px;}
