/*
 * Adaptacion visual Vixon para WebCalendar PHP 7.4.
 * Mantiene la logica original del calendario y aplica una capa visual compatible.
 */
:root {
  --wc-vixon-primary: #405189;
  --wc-vixon-primary-rgb: 64, 81, 137;
  --wc-vixon-secondary: #6c757d;
  --wc-vixon-success: #0ab39c;
  --wc-vixon-info: #299cdb;
  --wc-vixon-warning: #f7b84b;
  --wc-vixon-danger: #f06548;
  --wc-vixon-dark: #212529;
  --wc-vixon-body-bg: #f3f3f9;
  --wc-vixon-card-bg: #ffffff;
  --wc-vixon-border: #e9ebec;
  --wc-vixon-muted: #878a99;
  --wc-vixon-text: #495057;
  --wc-vixon-heading: #343a40;
  --wc-vixon-radius: 0.75rem;
  --wc-vixon-shadow: 0 1px 2px rgba(56,65,74,.15);
  --wc-vixon-shadow-lg: 0 8px 24px rgba(56,65,74,.12);
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--wc-vixon-body-bg) !important;
  color: var(--wc-vixon-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 142px;
  background: linear-gradient(135deg, rgba(var(--wc-vixon-primary-rgb), .98), #2a3042 68%, #1f2638);
  z-index: -1;
}

a {
  color: var(--wc-vixon-primary);
}

a:hover,
a:focus {
  color: #31406f;
}

/* Cabecera / menu principal con apariencia Vixon horizontal */
#wc-main-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: 70px;
  padding: 0 22px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.15) !important;
  background: #ffffff !important;
  box-shadow: var(--wc-vixon-shadow) !important;
}

#wc-main-navbar::before {
  content: "";
  display: inline-flex;
  width: 176px;
  height: 70px;
  margin-right: 18px;
  flex: 0 0 176px;
  background: url("../../assets/images/logo-dark.png") left center / 142px auto no-repeat;
}

#wc-main-navbar .navbar-toggler {
  border: 0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: #f3f6f9;
}

#wc-main-navbar .navbar-collapse {
  align-items: center;
}

#wc-main-navbar .navbar-nav {
  align-items: center;
  gap: 2px;
}

#wc-main-navbar .nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: .5rem .82rem !important;
  border-radius: 999px;
  color: #495057 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

#wc-main-navbar .nav-link:hover,
#wc-main-navbar .nav-link:focus,
#wc-main-navbar .nav-item.show > .nav-link,
#wc-main-navbar .nav-item.open > .nav-link,
#wc-main-navbar .nav-item.active > .nav-link {
  color: var(--wc-vixon-primary) !important;
  background: rgba(var(--wc-vixon-primary-rgb), .09) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--wc-vixon-primary-rgb), .04);
}

#wc-main-navbar .dropdown-toggle::after {
  margin-left: .42rem;
  opacity: .65;
}

#wc-main-navbar .dropdown-menu {
  min-width: 210px;
  margin-top: 12px;
  padding: 9px;
  border: 1px solid var(--wc-vixon-border);
  border-radius: 12px;
  box-shadow: var(--wc-vixon-shadow-lg);
  font-size: 13px;
}

#wc-main-navbar .dropdown-header {
  color: var(--wc-vixon-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

#wc-main-navbar .dropdown-divider {
  border-color: var(--wc-vixon-border);
}

#wc-main-navbar .dropdown-item {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  color: #495057;
  font-weight: 500;
  padding: .48rem .7rem;
}

#wc-main-navbar .dropdown-item:hover,
#wc-main-navbar .dropdown-item:focus,
#wc-main-navbar .dropdown-item.active,
#wc-main-navbar .dropdown-item:active {
  color: var(--wc-vixon-primary);
  background: rgba(var(--wc-vixon-primary-rgb), .08);
}

#wc-main-navbar .form-control {
  height: 36px;
  border-color: var(--wc-vixon-border);
  border-radius: 999px;
  background: #f3f6f9;
  font-size: 13px;
}

#wc-main-navbar .btn {
  border-radius: 999px;
}

#wc-main-navbar .wc-navbar-right {
  margin-left: auto;
}

#wc-main-navbar .wc-navbar-user-name {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #f3f6f9;
}

#wc-main-navbar .wc-live-notification-nav .dropdown-toggle,
#wc-main-navbar .wc-live-notification-nav > a {
  width: 38px;
  height: 38px;
  justify-content: center;
  padding: 0 !important;
  background: #f3f6f9;
  border-radius: 50%;
}

/* Contenido general */
body > .container-fluid {
  width: calc(100% - 48px);
  max-width: none;
  margin: 24px auto 30px;
  padding: 24px;
  border: 1px solid rgba(233,235,236,.78);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--wc-vixon-shadow);
}

body#day > .container-fluid,
body#week > .container-fluid,
body#month > .container-fluid,
body#year > .container-fluid,
body#viewm > .container-fluid,
body#vieww > .container-fluid,
body#viewt > .container-fluid,
body#viewd > .container-fluid,
body#viewl > .container-fluid,
body#index > .container-fluid {
  padding: 18px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--wc-vixon-heading);
  font-weight: 700;
}

h2, .page-title, .pagetitle, #activitylog h2 {
  margin-bottom: 1rem;
}

.card,
.table-responsive,
#pref form,
#editentry form,
#admin form,
#user_mgmt form,
#groups form,
#category form,
#ingreso_codigos form,
#search form,
#report form,
#views form,
#layers form,
#remotecal_mgmt form,
#resourcecal_mgmt form {
  border-radius: var(--wc-vixon-radius);
}

.card,
.table-responsive {
  border: 1px solid var(--wc-vixon-border);
  box-shadow: var(--wc-vixon-shadow);
}

/* Formularios */
.form-control,
.custom-select,
select,
textarea,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="url"] {
  border-color: #d9dee3 !important;
  border-radius: .55rem !important;
  color: #495057;
  font-size: 13px;
  box-shadow: none !important;
}

.form-control:focus,
.custom-select:focus,
select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus {
  border-color: rgba(var(--wc-vixon-primary-rgb), .55) !important;
  box-shadow: 0 0 0 .2rem rgba(var(--wc-vixon-primary-rgb), .12) !important;
}

label,
.col-form-label,
.form-check-label {
  color: #495057;
  font-weight: 600;
}

fieldset {
  border: 1px solid var(--wc-vixon-border) !important;
  border-radius: var(--wc-vixon-radius) !important;
  padding: 1rem 1.15rem !important;
  background: #fff;
}

legend {
  width: auto;
  padding: 0 .4rem;
  color: var(--wc-vixon-heading);
  font-size: 14px;
  font-weight: 700;
}

/* Botones */
.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  border-radius: .55rem !important;
  font-weight: 600 !important;
}

.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary,
input[type="button"].btn-primary {
  border-color: var(--wc-vixon-primary) !important;
  background-color: var(--wc-vixon-primary) !important;
  box-shadow: 0 2px 6px rgba(var(--wc-vixon-primary-rgb), .22);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: #37477a !important;
  background-color: #37477a !important;
}

.btn-success { background-color: var(--wc-vixon-success) !important; border-color: var(--wc-vixon-success) !important; }
.btn-info { background-color: var(--wc-vixon-info) !important; border-color: var(--wc-vixon-info) !important; }
.btn-warning { background-color: var(--wc-vixon-warning) !important; border-color: var(--wc-vixon-warning) !important; }
.btn-danger { background-color: var(--wc-vixon-danger) !important; border-color: var(--wc-vixon-danger) !important; }

/* Tablas */
table,
.table {
  color: #495057;
}

.table,
table.standard,
table.report,
table.main {
  border-color: var(--wc-vixon-border) !important;
  background: #fff;
}

.table thead th,
table.standard th,
table.report th,
table.main th,
th {
  border-color: var(--wc-vixon-border) !important;
  background: #f3f6f9 !important;
  color: #343a40 !important;
  font-weight: 700 !important;
}

.table td,
.table th,
td,
th {
  border-color: var(--wc-vixon-border) !important;
}

.table-hover tbody tr:hover,
tr:hover td {
  background-color: rgba(var(--wc-vixon-primary-rgb), .035);
}

/* Calendario: tarjetas y eventos */
.matrix,
.dailymatrix,
.monthmatrix,
.weeknumber,
.today,
.hasevents,
.weekend,
.othermonth,
.dayofmonth,
.dayofmonthweekend,
.weekday,
.empty,
.entry,
.unapprovedentry,
.layerentry {
  border-color: #e5e7eb !important;
}

.today,
td.today,
.monthmatrix.today,
.weekday.today {
  background: rgba(var(--wc-vixon-primary-rgb), .10) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--wc-vixon-primary-rgb), .20);
}

.hasevents,
td.hasevents {
  background: #fbfcff !important;
}

.weekend,
td.weekend {
  background: #f8f9fb !important;
}

.entry,
.layerentry,
.unapprovedentry {
  border-radius: 8px !important;
  padding: 3px 6px !important;
  box-shadow: 0 2px 5px rgba(56,65,74,.08);
}

.entry a,
.layerentry a,
.unapprovedentry a {
  font-weight: 650;
  text-decoration: none !important;
}

/* Alertas y mensajes */
.alert,
.error,
.info,
.success,
.warning,
.message {
  border-radius: var(--wc-vixon-radius) !important;
  border-width: 1px !important;
}

.error {
  color: #b42318;
  background: #fff1f0;
  border-color: #ffd4cf;
}

/* Login */
body#login {
  background: radial-gradient(circle at top left, rgba(var(--wc-vixon-primary-rgb), .18), transparent 34%), var(--wc-vixon-body-bg) !important;
}

body#login .login-card {
  border: 1px solid rgba(233,235,236,.75) !important;
  border-radius: 24px !important;
  box-shadow: var(--wc-vixon-shadow-lg) !important;
}

body#login .login-visual {
  background: linear-gradient(135deg, var(--wc-vixon-primary), #2a3042) !important;
}

body#login .login-button {
  background: var(--wc-vixon-primary) !important;
  box-shadow: 0 10px 24px rgba(var(--wc-vixon-primary-rgb), .22) !important;
}

/* Footer estilo Vixon */
.wc-vixon-footer {
  width: calc(100% - 48px);
  margin: 0 auto 20px;
  padding: 12px 24px;
  color: var(--wc-vixon-muted);
  font-size: 12px;
}

.wc-vixon-footer .wc-vixon-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* Compatibilidad y responsive */
@media (max-width: 992px) {
  #wc-main-navbar {
    padding: 0 14px !important;
  }

  #wc-main-navbar::before {
    width: 130px;
    flex-basis: 130px;
    background-size: 112px auto;
  }

  #wc-main-navbar .navbar-nav {
    align-items: stretch;
    padding: 10px 0;
  }

  #wc-main-navbar .nav-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 10px;
  }

  #wc-main-navbar .dropdown-menu {
    position: static !important;
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
  }

  body > .container-fluid,
  .wc-vixon-footer {
    width: calc(100% - 24px);
  }
}

@media (max-width: 576px) {
  #wc-main-navbar::before {
    display: none;
  }

  body > .container-fluid {
    width: calc(100% - 14px);
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
  }

  .wc-vixon-footer {
    width: calc(100% - 14px);
    padding: 10px 14px;
  }
}

@media print {
  #wc-main-navbar,
  .wc-vixon-footer {
    display: none !important;
  }
  body::before {
    display: none !important;
  }
  body > .container-fluid {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* Vista semanal: encabezado de dias adaptado a colores Vixon */
body#week table.main > tbody > tr:first-child > th:not(.empty),
body#week table.main > tr:first-child > th:not(.empty),
body#week .main > tbody > tr:first-child > th:not(.empty),
body#week .main > tr:first-child > th:not(.empty) {
  background: linear-gradient(135deg, var(--wc-vixon-primary), #2f3f74) !important;
  color: #ffffff !important;
  border-color: rgba(var(--wc-vixon-primary-rgb), .35) !important;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.12);
  text-align: center;
  vertical-align: middle;
}

body#week table.main > tbody > tr:first-child > th:not(.empty) p,
body#week table.main > tr:first-child > th:not(.empty) p,
body#week .main > tbody > tr:first-child > th:not(.empty) p,
body#week .main > tr:first-child > th:not(.empty) p {
  margin: .55rem 0 !important;
  color: #ffffff !important;
  font-weight: 700;
  line-height: 1.3;
}

body#week table.main > tbody > tr:first-child > th:not(.empty) a,
body#week table.main > tr:first-child > th:not(.empty) a,
body#week .main > tbody > tr:first-child > th:not(.empty) a,
body#week .main > tr:first-child > th:not(.empty) a {
  color: #ffffff !important;
  text-decoration: none !important;
}

body#week table.main > tbody > tr:first-child > th:not(.empty) a:hover,
body#week table.main > tr:first-child > th:not(.empty) a:hover,
body#week .main > tbody > tr:first-child > th:not(.empty) a:hover,
body#week .main > tr:first-child > th:not(.empty) a:hover {
  color: #f3f6f9 !important;
  text-decoration: underline !important;
}

body#week table.main > tbody > tr:first-child > th.empty,
body#week table.main > tr:first-child > th.empty,
body#week .main > tbody > tr:first-child > th.empty,
body#week .main > tr:first-child > th.empty {
  background: #2a3042 !important;
  border-color: rgba(var(--wc-vixon-primary-rgb), .35) !important;
}

body#week table.main > tbody > tr:first-child > th.today:not(.empty),
body#week table.main > tr:first-child > th.today:not(.empty),
body#week .main > tbody > tr:first-child > th.today:not(.empty),
body#week .main > tr:first-child > th.today:not(.empty) {
  background: linear-gradient(135deg, var(--wc-vixon-success), #078b7a) !important;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 2px 8px rgba(10,179,156,.18);
}

body#week table.main > tbody > tr:first-child > th.weekend:not(.empty),
body#week table.main > tr:first-child > th.weekend:not(.empty),
body#week .main > tbody > tr:first-child > th.weekend:not(.empty),
body#week .main > tr:first-child > th.weekend:not(.empty) {
  background: linear-gradient(135deg, #364574, #2a3042) !important;
}

/* Logo Michell Consultores y popup de eventos adaptado a Vixon */
:root {
  --wc-michell-orange: #ff5100;
  --wc-michell-navy: #172c55;
}

#wc-main-navbar::before {
  width: 208px !important;
  flex: 0 0 208px !important;
  height: 62px !important;
  margin-right: 12px !important;
  background: url("../../assets/images/logo-dark.png") left center / 178px auto no-repeat !important;
}

/* Popup flotante de actividades - diseño limpio Vixon/Michell */
dl.popup,
.popup {
  position: absolute !important;
  top: 0;
  left: 0;
  width: min(28rem, calc(100vw - 2rem)) !important;
  min-width: 18rem !important;
  max-width: 28rem !important;
  margin: 0 !important;
  padding: .95rem 1rem 1rem !important;
  color: var(--wc-vixon-text) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96)) padding-box,
    linear-gradient(135deg, rgba(var(--wc-vixon-primary-rgb), .28), rgba(255,81,0,.42)) border-box !important;
  border: 1px solid transparent !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 38px rgba(31, 38, 56, .18), 0 2px 6px rgba(31, 38, 56, .08) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: .88rem !important;
  line-height: 1.45 !important;
  text-align: left !important;
  text-decoration: none !important;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px) scale(.985);
  transition: opacity .16s ease, transform .16s ease;
  z-index: 10000 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
}

.popup[style*="visible"] {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.popup::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  display: block !important;
  margin: 0 !important;
  background: linear-gradient(90deg, var(--wc-michell-orange), var(--wc-vixon-primary), var(--wc-vixon-success)) !important;
  border: 0 !important;
  border-radius: 18px 18px 0 0 !important;
  box-shadow: none !important;
}

.popup::after {
  content: "" !important;
  position: absolute !important;
  top: 1.05rem !important;
  right: 1.05rem !important;
  width: 2.35rem !important;
  height: 2.35rem !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.94) 0 38%, transparent 39%),
    linear-gradient(135deg, rgba(255,81,0,.16), rgba(var(--wc-vixon-primary-rgb), .16)) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--wc-vixon-primary-rgb), .08) !important;
  pointer-events: none !important;
}

.popup dt,
.popup dd,
.popup .popup-title,
.popup .popup-label {
  box-sizing: border-box !important;
}

.popup-title {
  position: relative !important;
  display: block !important;
  min-height: 2.75rem !important;
  margin: .25rem 3.05rem .85rem 0 !important;
  padding: .15rem 0 .15rem .9rem !important;
  color: var(--wc-michell-navy) !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 4px solid var(--wc-michell-orange) !important;
  border-radius: 0 !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -.01em !important;
  text-align: left !important;
  text-transform: none !important;
  opacity: 1 !important;
  overflow-wrap: anywhere !important;
}

.popup-title-name,
.popup-title a {
  color: var(--wc-michell-navy) !important;
}

.popup-title-time {
  display: inline-flex !important;
  align-items: center !important;
  margin: .35rem 0 0 0 !important;
  padding: .22rem .56rem !important;
  color: var(--wc-vixon-primary) !important;
  background: rgba(var(--wc-vixon-primary-rgb), .08) !important;
  border: 1px solid rgba(var(--wc-vixon-primary-rgb), .12) !important;
  border-radius: 999px !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

.popup-label,
.popup dt:not(.popup-title) {
  display: block !important;
  margin: .7rem 0 .22rem !important;
  padding: 0 !important;
  color: var(--wc-vixon-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: .67rem !important;
  font-weight: 800 !important;
  letter-spacing: .055em !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
  opacity: 1 !important;
}

.popup-title + .popup-label,
.popup-title + dt:not(.popup-title) {
  margin-top: .2rem !important;
}

.popup-count {
  display: inline-block !important;
  color: var(--wc-vixon-muted) !important;
  font-size: .67rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.popup dd {
  display: block !important;
  width: auto !important;
  margin: 0 0 .62rem !important;
  padding: .68rem .78rem !important;
  color: var(--wc-vixon-text) !important;
  background: #f8f9fc !important;
  border: 1px solid #edf0f3 !important;
  border-radius: 11px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8) !important;
  font-size: .86rem !important;
  overflow-wrap: anywhere !important;
}

.popup dd:last-child {
  margin-bottom: 0 !important;
}

.popup-participants,
.popup-description {
  max-height: 8.75rem !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
}

.popup-description {
  background: #ffffff !important;
  border-left: 3px solid rgba(255,81,0,.72) !important;
}

.popup-participant-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .4rem !important;
}

.popup-participant-chip {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  padding: .32rem .58rem !important;
  color: var(--wc-michell-navy) !important;
  background: #ffffff !important;
  border: 1px solid rgba(var(--wc-vixon-primary-rgb), .14) !important;
  border-radius: 999px !important;
  font-size: .8rem !important;
  line-height: 1.25 !important;
  box-shadow: 0 1px 2px rgba(56,65,74,.06) !important;
}

.popup .popup-meeting .wc-meeting-link,
.popup a {
  color: var(--wc-vixon-primary) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.popup .popup-meeting .wc-meeting-link:hover,
.popup a:hover {
  color: var(--wc-michell-orange) !important;
  text-decoration: underline !important;
}

.popup-participants::-webkit-scrollbar,
.popup-description::-webkit-scrollbar {
  width: .45rem !important;
}

.popup-participants::-webkit-scrollbar-thumb,
.popup-description::-webkit-scrollbar-thumb {
  background: rgba(var(--wc-vixon-primary-rgb), .32) !important;
  border-radius: 999px !important;
}

.popup-participants::-webkit-scrollbar-track,
.popup-description::-webkit-scrollbar-track {
  background: #edf0f3 !important;
  border-radius: 999px !important;
}

@media (max-width: 992px) {
  #wc-main-navbar::before {
    width: 170px !important;
    flex-basis: 170px !important;
    height: 58px !important;
    background-size: 148px auto !important;
  }
}

@media (max-width: 576px) {
  #wc-main-navbar::before {
    display: inline-flex !important;
    width: 132px !important;
    flex-basis: 132px !important;
    height: 52px !important;
    margin-right: 6px !important;
    background-size: 118px auto !important;
  }

  dl.popup,
  .popup {
    min-width: 16rem !important;
  }
}


/* Logo compactado Michell */
body#login .login-visual-inner {
  width: min(100%, 300px) !important;
  max-width: 300px !important;
  aspect-ratio: auto !important;
  min-height: 132px !important;
  border-radius: 22px !important;
  padding: 26px 28px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .20) !important;
}

body#login .login-visual img {
  width: auto !important;
  max-width: 244px !important;
  max-height: 78px !important;
  object-fit: contain !important;
}

@media (max-width: 800px) {
  body#login .login-visual-inner {
    max-width: 244px !important;
    min-height: 112px !important;
    padding: 22px 24px !important;
  }

  body#login .login-visual img {
    max-width: 204px !important;
    max-height: 64px !important;
  }
}

/* view_v.php: vista semanal por usuarios adaptada a Vixon */
body#viewv > .container-fluid {
  padding: 18px !important;
}

body#viewv .wc-vixon-viewv-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  margin-bottom: 18px;
  padding: 20px 92px;
  border: 1px solid rgba(var(--wc-vixon-primary-rgb), .13);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 81, 0, .12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8f9fc 54%, rgba(var(--wc-vixon-primary-rgb), .06) 100%);
  box-shadow: var(--wc-vixon-shadow);
  overflow: hidden;
}

body#viewv .wc-vixon-viewv-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--wc-michell-orange, #ff5100), var(--wc-vixon-primary));
}

body#viewv .wc-vixon-viewv-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0;
  text-align: center;
}

body#viewv .wc-vixon-viewv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wc-vixon-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

body#viewv .wc-vixon-viewv-kicker::before,
body#viewv .wc-vixon-viewv-kicker::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--wc-michell-orange, #ff5100);
  opacity: .78;
}

body#viewv .wc-vixon-viewv-date {
  display: block;
  color: var(--wc-vixon-heading);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
}

body#viewv .wc-vixon-viewv-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(760px, 100%);
  padding: .34rem .82rem;
  color: var(--wc-vixon-primary);
  background: rgba(var(--wc-vixon-primary-rgb), .08);
  border: 1px solid rgba(var(--wc-vixon-primary-rgb), .12);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.2;
}

body#viewv .wc-vixon-viewv-nav {
  position: absolute;
  inset: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

body#viewv .wc-vixon-viewv-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(var(--wc-vixon-primary-rgb), .15);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 7px 16px rgba(56, 65, 74, .12);
  pointer-events: auto;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

body#viewv .wc-vixon-viewv-nav-btn:hover,
body#viewv .wc-vixon-viewv-nav-btn:focus {
  background: rgba(var(--wc-vixon-primary-rgb), .08);
  box-shadow: 0 10px 22px rgba(56, 65, 74, .17);
  transform: translateY(-1px);
}

body#viewv .wc-vixon-viewv-nav-btn img {
  width: 23px;
  height: 23px;
  opacity: .9;
}

body#viewv .wc-vixon-viewv-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--wc-vixon-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--wc-vixon-shadow-lg);
}

body#viewv table.wc-vixon-viewv-table {
  width: 100%;
  min-width: 940px;
  margin: 0;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed;
  background: #ffffff;
}

body#viewv table.wc-vixon-viewv-table th,
body#viewv table.wc-vixon-viewv-table td {
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 1px solid var(--wc-vixon-border) !important;
  border-bottom: 1px solid var(--wc-vixon-border) !important;
  padding: .66rem .58rem;
  vertical-align: top;
}

body#viewv table.wc-vixon-viewv-table th:last-child,
body#viewv table.wc-vixon-viewv-table td:last-child {
  border-right: 0 !important;
}

body#viewv table.wc-vixon-viewv-table tr:last-child th,
body#viewv table.wc-vixon-viewv-table tr:last-child td {
  border-bottom: 0 !important;
}

body#viewv table.wc-vixon-viewv-table tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--wc-vixon-primary), #2f3f74) !important;
  border-color: rgba(var(--wc-vixon-primary-rgb), .42) !important;
  font-size: .8rem;
  font-weight: 800 !important;
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
}

body#viewv table.wc-vixon-viewv-table tr:first-child th.today {
  background: linear-gradient(135deg, var(--wc-vixon-success), #078b7a) !important;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .22);
}

body#viewv table.wc-vixon-viewv-table tr:first-child th.weekend {
  background: linear-gradient(135deg, #364574, #2a3042) !important;
}

body#viewv table.wc-vixon-viewv-table tr:first-child th.empty,
body#viewv table.wc-vixon-viewv-table tr:first-child th.wc-vixon-viewv-corner {
  width: 170px !important;
  min-width: 170px;
  background: #2a3042 !important;
}

body#viewv table.wc-vixon-viewv-table th.weekday {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 170px !important;
  min-width: 170px;
  color: var(--wc-vixon-heading) !important;
  background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%) !important;
  border-right: 1px solid rgba(var(--wc-vixon-primary-rgb), .18) !important;
  font-size: .84rem;
  font-weight: 800 !important;
  line-height: 1.25;
  text-align: left;
  vertical-align: middle;
}

body#viewv table.wc-vixon-viewv-table th.weekday::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: .42rem;
  border-radius: 50%;
  background: var(--wc-michell-orange, #ff5100);
  box-shadow: 0 0 0 3px rgba(255, 81, 0, .12);
  vertical-align: middle;
}

body#viewv table.wc-vixon-viewv-table td {
  min-height: 70px;
  color: var(--wc-vixon-text);
  background: #ffffff !important;
  font-size: .8rem;
  line-height: 1.35;
  transition: background .16s ease, box-shadow .16s ease;
}

body#viewv table.wc-vixon-viewv-table td:hover {
  background: #f6f8ff !important;
  box-shadow: inset 0 0 0 2px rgba(var(--wc-vixon-primary-rgb), .12);
}

body#viewv table.wc-vixon-viewv-table td.weekend {
  background: #f8f9fb !important;
}

body#viewv table.wc-vixon-viewv-table td.today {
  background: rgba(10, 179, 156, .08) !important;
  box-shadow: inset 0 0 0 2px rgba(10, 179, 156, .14);
}

body#viewv table.wc-vixon-viewv-table td.hasevents {
  background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%) !important;
}

body#viewv table.wc-vixon-viewv-table .entry,
body#viewv table.wc-vixon-viewv-table .layerentry,
body#viewv table.wc-vixon-viewv-table .unapprovedentry,
body#viewv table.wc-vixon-viewv-table a.entry,
body#viewv table.wc-vixon-viewv-table a.layerentry,
body#viewv table.wc-vixon-viewv-table a.unapprovedentry {
  display: inline-block;
  max-width: 100%;
  margin: .13rem 0;
  padding: .38rem .55rem .39rem;
  color: #223258 !important;
  background: #ffffff !important;
  border: 1px solid rgba(var(--wc-vixon-primary-rgb), .14) !important;
  border-left: 4px solid var(--wc-vixon-primary) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 7px rgba(56, 65, 74, .09) !important;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  transition: transform .15s ease, box-shadow .15s ease;
}

body#viewv table.wc-vixon-viewv-table .layerentry,
body#viewv table.wc-vixon-viewv-table a.layerentry {
  border-left-color: var(--wc-vixon-info) !important;
}

body#viewv table.wc-vixon-viewv-table .unapprovedentry,
body#viewv table.wc-vixon-viewv-table a.unapprovedentry {
  color: #7c2d12 !important;
  background: #fff8f2 !important;
  border-left-color: var(--wc-michell-orange, #ff5100) !important;
}

body#viewv table.wc-vixon-viewv-table .entry:hover,
body#viewv table.wc-vixon-viewv-table .layerentry:hover,
body#viewv table.wc-vixon-viewv-table .unapprovedentry:hover {
  box-shadow: 0 6px 14px rgba(56, 65, 74, .16) !important;
  transform: translateY(-1px);
}

body#viewv .printer,
body#viewv .printer a {
  color: var(--wc-vixon-primary) !important;
  font-weight: 700;
}

/* Mini calendarios: apariencia Vixon/Michell */
.minicalcontainer,
.minicontainer,
#minicolumn .minicontainer {
  border: 1px solid var(--wc-vixon-border) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: var(--wc-vixon-shadow) !important;
  padding: .8rem !important;
}

.minical {
  width: 100% !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(var(--wc-vixon-primary-rgb), .10) !important;
  font-size: .78rem !important;
}

.minical caption {
  caption-side: top;
  padding: .55rem .7rem !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--wc-vixon-primary), #2f3f74) !important;
  border-radius: 14px 14px 0 0 !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
  text-align: center !important;
}

.minical caption a {
  color: #ffffff !important;
  text-decoration: none !important;
}

.minical .monthnav th,
.minical tr.monthnav th {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--wc-vixon-primary), #2f3f74) !important;
  border: 0 !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  text-align: center !important;
}

.minical .monthnav a.prev,
.minical .monthnav a.next,
.minical caption a.prev,
.minical caption a.next {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 .2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  vertical-align: middle;
}

.minical .monthnav a.prev img,
.minical .monthnav a.next img,
.minical caption a.prev img,
.minical caption a.next img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: .95;
}

.minical thead th {
  padding: .42rem .28rem !important;
  color: var(--wc-vixon-primary) !important;
  background: rgba(var(--wc-vixon-primary-rgb), .08) !important;
  border-color: rgba(var(--wc-vixon-primary-rgb), .10) !important;
  font-size: .7rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  text-transform: uppercase;
}

.minical thead th.weekend {
  color: #2a3042 !important;
  background: rgba(var(--wc-vixon-primary-rgb), .13) !important;
}

.minical tbody td {
  width: 14.285%;
  height: 30px;
  padding: 0 !important;
  color: var(--wc-vixon-text) !important;
  background: #ffffff !important;
  border-color: rgba(var(--wc-vixon-primary-rgb), .08) !important;
  font-size: .78rem !important;
  font-weight: 650;
  line-height: 30px;
  text-align: center !important;
  transition: background .16s ease, box-shadow .16s ease, color .16s ease;
}

.minical tbody td a {
  display: block;
  min-height: 30px;
  color: inherit !important;
  text-decoration: none !important;
  border-radius: 8px;
}

.minical tbody td.weekend {
  background: #f8f9fb !important;
  color: #5d6472 !important;
}

.minical tbody td.empty {
  background: #fbfcfe !important;
  color: #c5cad3 !important;
}

.minical tbody td.hasevents {
  color: var(--wc-vixon-primary) !important;
  background: rgba(var(--wc-vixon-primary-rgb), .09) !important;
  font-weight: 850;
}

.minical tbody td.hasevents a::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: -5px auto 0;
  border-radius: 50%;
  background: var(--wc-michell-orange, #ff5100);
}

.minical tbody td#today,
.minical tbody td.today,
.minical tbody td.selectedday {
  color: #ffffff !important;
  background: var(--wc-vixon-success) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55) !important;
  font-weight: 900;
}

.minical tbody td#today a,
.minical tbody td.today a,
.minical tbody td.selectedday a {
  color: #ffffff !important;
}

.minical tbody td.holiday {
  background: rgba(255, 81, 0, .08) !important;
  color: #b23a00 !important;
}

.minical tbody td:hover:not(.empty),
.minical tbody td:hover:not(.empty) a {
  color: var(--wc-vixon-primary) !important;
  background: #eef2ff !important;
}

.minical tbody td#today:hover,
.minical tbody td.today:hover,
.minical tbody td.selectedday:hover {
  background: var(--wc-vixon-success) !important;
}

#minitask table,
.minitask {
  border: 1px solid var(--wc-vixon-border) !important;
  border-radius: 14px !important;
  overflow: hidden;
  background: #ffffff !important;
  box-shadow: var(--wc-vixon-shadow) !important;
}

#minitask th,
.minitask th,
#minitask td,
.minitask td {
  border-color: var(--wc-vixon-border) !important;
  font-size: .78rem;
}

#minitask tr.header th,
.minitask tr.header th,
#minitask tr.header td,
.minitask tr.header td {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--wc-vixon-primary), #2f3f74) !important;
}

body#minical {
  background: var(--wc-vixon-body-bg) !important;
}

body#minical #minicalendar,
body#minical .minical {
  max-width: 300px;
  margin: .75rem auto;
}

@media (max-width: 900px) {
  body#viewv .wc-vixon-viewv-hero {
    padding: 18px 70px;
  }

  body#viewv table.wc-vixon-viewv-table {
    min-width: 820px;
  }

  body#viewv table.wc-vixon-viewv-table tr:first-child th.empty,
  body#viewv table.wc-vixon-viewv-table tr:first-child th.wc-vixon-viewv-corner,
  body#viewv table.wc-vixon-viewv-table th.weekday {
    width: 145px !important;
    min-width: 145px;
  }
}

@media (max-width: 576px) {
  body#viewv > .container-fluid {
    padding: 12px !important;
  }

  body#viewv .wc-vixon-viewv-hero {
    align-items: stretch;
    min-height: 0;
    padding: 16px 16px 66px;
  }

  body#viewv .wc-vixon-viewv-nav {
    inset: auto 16px 14px;
  }

  body#viewv .wc-vixon-viewv-date {
    font-size: .96rem;
  }

  body#viewv .wc-vixon-viewv-name {
    font-size: .84rem;
  }
}
