/**
 * Chrome compartido estilo Aero para vista ordenador.
 * Se aplica solo cuando NO hay html.ua-mobile-ui (tablet/móvil Android).
 */
html:not(.ua-mobile-ui) {
  font-family: var(--aero-font) !important;
  -webkit-font-smoothing: auto;
  color: var(--aero-ink, #000);
}

html:not(.ua-mobile-ui) body {
  font-family: var(--aero-font) !important;
  -webkit-font-smoothing: auto;
  background: var(--aero-surface);
  color: var(--aero-ink, #000);
  font-weight: 400;
  letter-spacing: 0;
}

/* Negrita legible: negro puro, sin antialias agresivo ni sombras */
html:not(.ua-mobile-ui) b,
html:not(.ua-mobile-ui) strong,
html:not(.ua-mobile-ui) h1,
html:not(.ua-mobile-ui) h2,
html:not(.ua-mobile-ui) h3,
html:not(.ua-mobile-ui) th,
html:not(.ua-mobile-ui) .os-sidebar-brand,
html:not(.ua-mobile-ui) label,
html:not(.ua-mobile-ui) .f-label,
html:not(.ua-mobile-ui) legend,
html:not(.ua-mobile-ui) .dlg-titlebar > span,
html:not(.ua-mobile-ui) .dlg-titlebar #dlgTitle,
html:not(.ua-mobile-ui) .dlg-titlebar #aboutTitle {
  color: #000;
  -webkit-text-fill-color: #000;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: none;
  -webkit-font-smoothing: auto;
}

html:not(.ua-mobile-ui) .dlg-titlebar > span,
html:not(.ua-mobile-ui) .dlg-titlebar #dlgTitle,
html:not(.ua-mobile-ui) .dlg-titlebar #aboutTitle,
html:not(.ua-mobile-ui) .os-dlg-titlebar {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

/* ---------- Botones glossy (NO titlebar .win-btn) ---------- */
html:not(.ua-mobile-ui) button:not(.win-btn):not(.start-btn):not(.taskbar-app-btn):not(.org-mode),
html:not(.ua-mobile-ui) .win-push,
html:not(.ua-mobile-ui) a.win-push,
html:not(.ua-mobile-ui) .win-push.primary,
html:not(.ua-mobile-ui) .win-push:hover,
html:not(.ua-mobile-ui) .win-push:focus,
html:not(.ua-mobile-ui) .win-push:active {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--aero-font);
  color: #000;
  -webkit-text-fill-color: #000;
  background: var(--aero-btn-face);
  background-color: #f0f0f0;
  background-image: var(--aero-btn-face);
  border: 1px solid #707070;
  border-radius: var(--aero-radius-sm);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 0 rgba(255, 255, 255, 0.4);
  outline: none;
  cursor: pointer;
  font-weight: 400;
}

html:not(.ua-mobile-ui) .win-push,
html:not(.ua-mobile-ui) a.win-push {
  min-width: 75px;
  min-height: 26px;
  padding: 3px 14px;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

html:not(.ua-mobile-ui) .win-push:hover,
html:not(.ua-mobile-ui) a.win-push:hover,
html:not(.ua-mobile-ui) button:not(.win-btn):not(.start-btn):hover:not(:disabled) {
  border-color: #3d7a5a;
  background-image: linear-gradient(180deg, #ffffff 0%, #e8f2ec 50%, #d0e4d8 100%);
}

html:not(.ua-mobile-ui) .win-push:active,
html:not(.ua-mobile-ui) a.win-push:active,
html:not(.ua-mobile-ui) button:not(.win-btn):active:not(:disabled) {
  background-image: linear-gradient(180deg, #d8d8d8 0%, #f0f0f0 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

html:not(.ua-mobile-ui) .win-push.primary,
html:not(.ua-mobile-ui) button.win-push.primary,
html:not(.ua-mobile-ui) button.primary,
html:not(.ua-mobile-ui) .btn-primary {
  background: var(--aero-btn-primary);
  background-image: var(--aero-btn-primary);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: #143328;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.2);
  outline: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

html:not(.ua-mobile-ui) .win-push.primary:hover,
html:not(.ua-mobile-ui) button.primary:hover {
  filter: brightness(1.05);
}

html:not(.ua-mobile-ui) .win-push:disabled,
html:not(.ua-mobile-ui) button:disabled {
  opacity: 0.55;
  cursor: default;
  filter: none;
}

/* ---------- Campos ---------- */
html:not(.ua-mobile-ui) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
html:not(.ua-mobile-ui) textarea,
html:not(.ua-mobile-ui) select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--aero-font);
  font-size: 12px;
  color: var(--ui-ink);
  -webkit-text-fill-color: var(--ui-ink);
  background: #fff;
  border: 1px solid var(--aero-border-strong);
  border-radius: var(--aero-radius-sm);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  min-height: 28px;
  padding: 4px 8px;
  outline: none;
}

html:not(.ua-mobile-ui) textarea {
  min-height: 72px;
  resize: vertical;
}

html:not(.ua-mobile-ui) select {
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%231f4d3a' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 6px;
}

html:not(.ua-mobile-ui) input:focus,
html:not(.ua-mobile-ui) textarea:focus,
html:not(.ua-mobile-ui) select:focus {
  border-color: var(--army-green-mid);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.06),
    0 0 0 2px rgba(107, 154, 126, 0.35);
}

html:not(.ua-mobile-ui) input[type="checkbox"],
html:not(.ua-mobile-ui) input[type="radio"] {
  accent-color: var(--army-green);
}

/* ---------- Toolbars / paneles / tablas ---------- */
html:not(.ua-mobile-ui) .org-toolbar,
html:not(.ua-mobile-ui) .audit-toolbar,
html:not(.ua-mobile-ui) .pers-toolbar,
html:not(.ua-mobile-ui) .msj-header,
html:not(.ua-mobile-ui) .tpac-toolbar,
html:not(.ua-mobile-ui) .cp-pathbar,
html:not(.ua-mobile-ui) .cp-toolbar,
html:not(.ua-mobile-ui) .comms-tabs,
html:not(.ua-mobile-ui) .printbar,
html:not(.ua-mobile-ui) .menubar,
html:not(.ua-mobile-ui) .doc-viewer-toolbar,
html:not(.ua-mobile-ui) .img-viewer-toolbar,
html:not(.ua-mobile-ui) header[class*="toolbar"] {
  background: linear-gradient(180deg, #f7f9f8 0%, var(--aero-surface-2) 100%);
  border-bottom: 1px solid var(--aero-border);
  box-shadow: inset 0 1px 0 #fff;
}

html:not(.ua-mobile-ui) .f-box,
html:not(.ua-mobile-ui) fieldset {
  border: 1px solid var(--aero-border);
  border-radius: var(--aero-radius-sm);
  background: rgba(255, 255, 255, 0.55);
}

html:not(.ua-mobile-ui) .os-sidebar {
  background: linear-gradient(180deg, #f7faf8 0%, #e6eee9 100%);
  border-right: 1px solid var(--aero-border);
}

html:not(.ua-mobile-ui) .os-sidebar-item {
  border-radius: var(--aero-radius-sm);
}

html:not(.ua-mobile-ui) table,
html:not(.ua-mobile-ui) .table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--aero-border);
  border-radius: var(--aero-radius-sm);
  overflow: hidden;
  background: #fff;
}

html:not(.ua-mobile-ui) th {
  background: linear-gradient(180deg, #eef3f0, #dfe8e3);
  border-bottom: 1px solid var(--aero-border);
  font-weight: 700;
  color: #000;
  -webkit-text-fill-color: #000;
}

html:not(.ua-mobile-ui) td {
  border-bottom: 1px solid rgba(20, 51, 40, 0.08);
}

html:not(.ua-mobile-ui) .dlg-window,
html:not(.ua-mobile-ui) .dlg-backdrop .dlg-window {
  background: var(--aero-panel);
  border: 1px solid var(--aero-border-strong);
  border-radius: var(--aero-radius);
  box-shadow: var(--aero-shadow);
  overflow: hidden;
}

html:not(.ua-mobile-ui) .dlg-title,
html:not(.ua-mobile-ui) .dlg-titlebar {
  background: var(--titlebar-grad);
  border-radius: var(--aero-radius) var(--aero-radius) 0 0;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: #fff;
  height: auto;
  min-height: 28px;
  padding: 4px 0 4px 10px;
}

html:not(.ua-mobile-ui) .dlg-close {
  width: 49px;
  height: 20px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: linear-gradient(180deg, #ff9d8c 0%, #e04a3a 38%, #a51c12 100%);
  border: 1px solid #3c0a06;
  border-top: none;
  border-left-color: rgba(255, 200, 180, 0.55);
  border-radius: 0 0 5px 0;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 220, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

html:not(.ua-mobile-ui) .dlg-close:hover {
  background: linear-gradient(180deg, #ffb0a0 0%, #f25a48 38%, #c02418 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 230, 0.95),
    0 0 10px rgba(255, 70, 40, 0.7);
}

html:not(.ua-mobile-ui) .dlg-close:active {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
  border-style: solid;
}

html:not(.ua-mobile-ui) .dlg-body {
  background: #fff;
  border: 1px solid var(--aero-border);
  border-radius: var(--aero-radius-sm);
}

html:not(.ua-mobile-ui) .menu-dropdown,
html:not(.ua-mobile-ui) .org-toolbar-panel {
  background: var(--aero-panel);
  border: 1px solid var(--aero-border-strong);
  border-radius: var(--aero-radius);
  box-shadow: var(--aero-shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html:not(.ua-mobile-ui) .msg {
  border-radius: var(--aero-radius-sm);
  border: 1px solid var(--aero-border);
  box-shadow: none;
}

html:not(.ua-mobile-ui) .org-modes {
  border: 1px solid var(--aero-border);
  border-radius: var(--aero-radius-sm);
  overflow: hidden;
  box-shadow: inset 0 1px 0 #fff;
  background: var(--aero-surface-2);
}

html:not(.ua-mobile-ui) .org-mode {
  background: transparent;
  border: none;
  border-right: 1px solid var(--aero-border);
  box-shadow: none;
  color: var(--ui-ink) !important;
  -webkit-text-fill-color: var(--ui-ink) !important;
}

html:not(.ua-mobile-ui) .org-mode.active {
  background: var(--aero-btn-primary);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html:not(.ua-mobile-ui) .badge {
  border-radius: 999px;
  border: none;
  box-shadow: none;
}

/* Scrollbars tipo Aero */
html:not(.ua-mobile-ui) ::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

html:not(.ua-mobile-ui) ::-webkit-scrollbar-track {
  background: linear-gradient(90deg, #e8ecea, #f5f5f5);
  border-left: 1px solid #c0c8c4;
}

html:not(.ua-mobile-ui) ::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #f7f9f8 0%, #c5d2cb 45%, #9aada3 100%);
  border: 1px solid #6a7e72;
  border-radius: 2px;
  box-shadow: inset 1px 0 0 #fff;
}

html:not(.ua-mobile-ui) ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #ffffff 0%, #b7cfc2 50%, #7a9a88 100%);
}

html:not(.ua-mobile-ui) ::-webkit-scrollbar-button {
  height: 16px;
  width: 16px;
  background: linear-gradient(180deg, #f4f6f5, #d0dbd5);
  border: 1px solid #8a9a90;
}

/* Controles de formulario un poco más “Seven” */
html:not(.ua-mobile-ui) fieldset legend,
html:not(.ua-mobile-ui) .f-label {
  font-size: 12px;
  padding: 0 4px;
}

html:not(.ua-mobile-ui) .os-sidebar-brand {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  font-size: 13px;
}
