/* Tema Artesan Albums: verdes suavizados del logo (#03EA0E) sobre la skin-green de AdminLTE */
.skin-green .main-header .navbar { background-color: #5c9f65; }
.skin-green .main-header .logo { background-color: #4f8f58; color: #fff; }
.skin-green .main-header .logo:hover,
.skin-green .main-header .navbar .sidebar-toggle:hover,
.skin-green .main-header .navbar .nav > li > a:hover { background-color: #47824f; }
.skin-green .main-header li.user-header { background-color: #5c9f65; }
.skin-green .sidebar-menu > li.active > a,
.skin-green .sidebar-menu > li:hover > a { border-left-color: #8cc63f; }

/* Botones principales en verde Artesan (sustituye al azul de Bootstrap) */
.btn-info, .btn-primary { background-color: #5c9f65; border-color: #4f8f58; color: #fff; }
.btn-info:hover, .btn-info:focus, .btn-info:active,
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background-color: #47824f; border-color: #3f7446; color: #fff; }

/* Pedido ya descargado: contorno verde con check, distinguible del pendiente (relleno) */
.btn-downloaded { background-color: #fff; border: 2px solid #8cc63f; color: #4f8f58; }
.btn-downloaded:hover, .btn-downloaded:focus { background-color: #eef9dc; color: #3f7446; }

/* Aviso de estado para el cliente */
.label-artesan { background-color: #e2f7e4; color: #2c8f37; border: 1px solid #8cc63f; font-weight: 600; }

/* Botones de la tabla de pedidos: compactos, mismo ancho en ambos estados y alineados */
.btn-order { min-width: 136px; font-size: 15px; font-weight: 600; border-radius: 5px; padding: 7px 16px; }
.btn-order .fa { margin-right: 4px; }
.btn-icon { width: 40px; font-size: 15px; padding: 7px 0; border-radius: 5px; }
.btn-downloaded { border-width: 1px; }
.table > tbody > tr > td { vertical-align: middle; }
.table > tbody > tr > td .btn-order + .label-artesan { display: inline-block; margin-left: 8px; padding: 6px 10px; font-size: 12px; vertical-align: middle; }

/* Detalles en verde de marca (paginación, enlaces) */
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus,
.pagination > .active > span { background-color: #5c9f65; border-color: #5c9f65; }
.pagination > li > a { color: #4f8f58; }
.main-footer a, a { color: #4f8f58; }
a:hover, a:focus { color: #3f7446; }
.sidebar-menu a, .main-header a, .btn, .small-box a { color: inherit; }
.btn-info, .btn-primary, .btn-info:hover, .btn-primary:hover { color: #fff; }
.btn-downloaded, .btn-downloaded:hover { color: #4f8f58; }

/* Hoja de pedido (acción secundaria): misma altura que Descargar, estilo discreto */
.btn-sheet { background: #fff; border: 1px solid #c9d8cc; color: #4f8f58; font-size: 15px; font-weight: 600; border-radius: 5px; padding: 7px 14px; }
.btn-sheet:hover, .btn-sheet:focus { background: #eef6ef; border-color: #8cc63f; color: #3f7446; }
.btn-sheet .fa { margin-right: 4px; }

/* Cabecera: usuario y rol visibles + botón Salir de un clic */
.main-header .navbar .user-info { padding: 8px 14px 0; line-height: 1.15; text-align: right; color: #fff; }
.main-header .navbar .user-info-name { display: block; font-weight: 600; font-size: 14px; }
.main-header .navbar .user-info-role { display: block; font-size: 11px; opacity: .85; }
.main-header .navbar .logout-link { font-weight: 600; border-left: 1px solid rgba(255,255,255,.25); }
.main-header .navbar .logout-link .fa { margin-right: 4px; }
.user-panel-role { color: #b8c7bb; font-size: 11px; }

/* Versión al pie del menú lateral: fija abajo, se oculta con el menú plegado (escritorio) o cerrado (móvil) */
.sidebar-version { position: fixed; left: 0; bottom: 0; width: 230px; padding: 10px 15px; background: #222d32; border-top: 1px solid rgba(255,255,255,.06);
                   color: #8aa391; font-size: 11px; letter-spacing: .3px; z-index: 811; transition: transform .3s ease-in-out; }
.sidebar-collapse .sidebar-version { display: none; }
@media (max-width: 767px) {
  .sidebar-version { transform: translateX(-230px); }
  .sidebar-open .sidebar-version { transform: translateX(0); }
}

/* ===== Pantallas de acceso (login, recuperar/nueva contraseña): mismo lenguaje visual que el panel ===== */
body.login-page {
  background: #ecf0f5; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 74px 16px 24px;
}
/* Barra superior igual que la del panel */
body.login-page::before {
  content: 'Panel de gestión'; position: fixed; top: 0; left: 0; right: 0; height: 50px; z-index: 10;
  background: linear-gradient(90deg, #4f8f58 0, #4f8f58 230px, #5c9f65 230px);
  color: #fff; font-size: 20px; line-height: 50px; padding-left: 40px;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.login-page .login-box { width: 400px; max-width: 100%; margin: 0; }
.login-page .login-logo { margin-bottom: 16px; }
.login-page .login-logo img { width: 84px; height: 84px; background: #fff; padding: 5px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.login-page .login-box-body {
  border-radius: 6px; border-top: 3px solid #5c9f65; padding: 26px 28px 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.login-page .login-title { margin: 0 0 4px; font-size: 22px; font-weight: 600; color: #24352a; text-align: center; }
.login-page .login-box-msg { padding: 0 0 18px; font-size: 14px; color: #64786a; }
.login-page .login-hint { margin: 6px 0 0; font-size: 12px; color: #7b8a80; }
/* Aviso tras entrar con el nombre de usuario antiguo: a partir de ahora, con el email */
.login-email-notice { margin: 15px 15px 0; }
.login-email-notice p { margin: 0; }
.login-page .form-group { margin-bottom: 12px; }
.login-page .form-control { height: 42px; border-radius: 5px; border: 1px solid #d2d6de; box-shadow: none; font-size: 15px; }
.login-page .form-control:focus { border-color: #5c9f65; box-shadow: 0 0 0 2px rgba(92,159,101,.15); }
.login-page .form-control-feedback { line-height: 42px; height: 42px; color: #9aaba0; }
.login-page .row > [class*="col-"] { width: 100%; }
.login-page .btn { width: 100%; height: 42px; border-radius: 5px; font-size: 15px; font-weight: 600; margin-top: 6px; }
.login-page .login-box-body > a { display: block; text-align: center; margin-top: 14px; font-size: 14px; }
.login-page .login-box-body > a + br { display: none; }
.login-page .login-footer { text-align: center; margin-top: 16px; font-size: 12px; color: #8a9097; }
@media (max-width: 480px) { body.login-page::before { background: #5c9f65; padding-left: 16px; font-size: 18px; } }

/* ===== Panel: mismo lenguaje visual que el login y los KPIs ===== */
.content-header > h1 { color: #24352a; font-weight: 600; }
.content-header > h1 > small { color: #7b8a80; font-weight: 400; }

/* Cajas */
.content .box { border-radius: 6px; border-top: 3px solid #5c9f65; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.content .box-body { padding: 16px 18px; }

/* Tablas */
.content .table-bordered,
.content .table-bordered > thead > tr > th, .content .table-bordered > tbody > tr > td,
.content .table-bordered > tfoot > tr > th { border-color: #e4ebe6; }
.content .table > thead > tr > th, .content .table > tfoot > tr > th { background: #f4f8f5; color: #3f5446; font-weight: 600; }
.content .table-striped > tbody > tr:nth-of-type(odd) { background: #fafcfa; }
.content .table > tbody > tr:hover { background: #eef7ef; }
.content .table > tbody > tr > td { padding: 10px 12px; color: #2f3336; }
.content .table td pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 14px;
  background: none; border: 0; padding: 0; margin: 0; color: #2f3336; max-width: none !important; }

/* Campos (buscar, nº de registros, formularios) */
.content .form-control, .dataTables_wrapper .form-control { border-radius: 5px; border-color: #d2d6de; box-shadow: none; }
.content .form-control:focus, .dataTables_wrapper .form-control:focus { border-color: #5c9f65; box-shadow: 0 0 0 2px rgba(92,159,101,.15); }
.dataTables_wrapper .dataTables_filter input { height: 32px; margin-left: 6px; }
.dataTables_wrapper .dataTables_length select { height: 32px; margin: 0 4px; }
.content textarea.form-control { resize: vertical; }
.content .input-group-btn .btn { border-radius: 5px 0 0 5px; }
.content .input-group .form-control:last-child { border-radius: 0 5px 5px 0; }

/* Menú lateral: elemento activo más visible */
.skin-green .sidebar-menu > li.active > a { background: rgba(92,159,101,.18); color: #fff; }
.skin-green .sidebar-menu > li > a:hover { background: rgba(92,159,101,.10); color: #fff; }

/* Avisos (subida de pedido, etc.) en tonos de marca */
.callout { border-radius: 6px; }
.callout.callout-success { background: #e2f7e4 !important; border-color: #3fb64a !important; color: #24352a !important; }
.callout.callout-warning { background: #f5f8d9 !important; border-color: #b5b62e !important; color: #3d3d17 !important; }
.callout.callout-danger  { background: #fbe9e4 !important; border-color: #c27a4a !important; color: #5a2c1c !important; }

/* ===== Tarjetas KPI (Pedidos y Estadísticas): verdes pastel derivados del logo (#03EA0E) ===== */
.small-box.kpi { background: var(--kpi-bg); color: #2f3336; border-left: 5px solid var(--kpi-accent); border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.small-box.kpi h3, .small-box.kpi h3 small { color: #24352a; }
.small-box.kpi p { color: #3f5446; }
.small-box.kpi p small { color: #64786a; }
.small-box.kpi .icon { color: var(--kpi-accent); opacity: .35; }
.small-box.kpi:hover .icon { font-size: 90px; }
.kpi-mint  { --kpi-bg: #e2f7e4; --kpi-accent: #3fb64a; }  /* menta: verde logo suavizado */
.kpi-tea   { --kpi-bg: #d4f1d7; --kpi-accent: #2c8f37; }  /* verde te, mas intenso */
.kpi-lime  { --kpi-bg: #eef9dc; --kpi-accent: #8cc63f; }  /* lima pastel */
.kpi-sage  { --kpi-bg: #e7efe8; --kpi-accent: #6f9a76; }  /* salvia */
.kpi-alert { --kpi-bg: #f5f8d9; --kpi-accent: #b5b62e; }  /* lima amarillento: requiere atencion */

/* ===== Estadísticas ===== */
.stats-page .box-header { padding: 12px 18px 0; }
.stats-page .box-header .box-title { font-size: 17px; font-weight: 600; color: #24352a; }
.stats-hint { display: block; margin-top: 3px; font-size: 13px; color: #7b8a80; }
.stats-chart { height: 260px; }
.stats-chart-low { height: 200px; }
.stats-empty, .stats-note { color: #7b8a80; font-size: 13px; margin: 8px 0 0; }
.stats-empty { padding: 90px 0; text-align: center; }

/* Filtros: atajos + rango libre + cliente */
.stats-filter .box-body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.stats-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-preset { background: #fff; border: 1px solid #c9d8cc; color: #4f8f58; border-radius: 16px; padding: 5px 13px; font-weight: 600; }
.btn-preset:hover, .btn-preset:focus { background: #eef6ef; border-color: #8cc63f; color: #3f7446; }
.btn-preset.active, .btn-preset.active:hover { background: #5c9f65; border-color: #4f8f58; color: #fff; box-shadow: none; }
.stats-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0; }
.stats-field label { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; color: #64786a; }
.stats-field .form-control { height: 34px; }
.stats-field-client .form-control { min-width: 190px; }
.stats-field-btn .btn { height: 34px; font-weight: 600; }
.stats-field-btn .fa { margin-right: 4px; }

/* Tabla por cliente */
.stats-share { display: inline-block; width: 70px; height: 6px; margin-right: 8px; vertical-align: middle; background: #e7efe8; border-radius: 3px; overflow: hidden; }
.stats-share span { display: block; height: 100%; background: #8cc63f; }
.stats-ago { display: block; color: #7b8a80; }

/* Tooltips de las gráficas */
.morris-hover.morris-default-style { border-radius: 5px; border-color: #c9d8cc; box-shadow: 0 1px 3px rgba(0,0,0,.08); color: #2f3336; font-family: inherit; }
.morris-hover.morris-default-style .morris-hover-row-label { font-weight: 600; color: #24352a; }

/* KPIs de igual altura en cualquier ancho; tabla con scroll propio en móvil */
.stats-kpis { display: flex; flex-wrap: wrap; }
.stats-kpis > [class*="col-"] { display: flex; }
.stats-kpis .small-box { flex: 1; }
.stats-table-wrap { overflow-x: auto; }

/* ===== Ficha de pedido (destino del QR de la hoja impresa) ===== */
.order-link { font-weight: 600; }
.order-page .box { max-width: 760px; }
.order-status { margin-bottom: 14px; }
.order-status .label { display: inline-block; padding: 6px 10px; font-size: 13px; }
.label-pending { background: #f5f8d9; color: #6b6b17; border: 1px solid #b5b62e; font-weight: 600; }
.order-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0 0 18px; }
.order-data dt { font-size: 12px; font-weight: 600; color: #64786a; text-transform: uppercase; letter-spacing: .3px; }
.order-data dd { margin: 2px 0 0; font-size: 16px; color: #24352a; word-break: break-word; }
.order-notes-title { font-size: 12px; font-weight: 600; color: #64786a; text-transform: uppercase; letter-spacing: .3px; margin: 0 0 6px; }
.order-notes { border: 1px solid #c9d8cc; border-radius: 6px; padding: 12px 14px; min-height: 60px; font-size: 15px; color: #2f3336; background: #fafcfa; word-break: break-word; }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.order-actions .btn-sheet { padding: 7px 16px; }
.order-back { color: #4f8f58; font-weight: 600; }
@media (max-width: 480px) {
  .order-data { grid-template-columns: 1fr; }
  .order-actions .btn { width: 100%; }
}

/* Aviso del alcance del listado de pedidos */
.list-scope { color: #64786a; font-size: 13px; margin: 0 0 12px; }
.list-scope .fa { color: #8cc63f; margin-right: 4px; }

/* Avisos del login (intentos fallidos / usuario bloqueado) */
.login-page .login-alert { margin: 0 0 16px; padding: 11px 14px; font-size: 14px; line-height: 1.45; }
.login-page .login-alert p { margin: 0; }
.login-page .login-alert .fa { margin-right: 4px; }
.login-page .login-alert a { color: inherit; font-weight: 600; text-decoration: underline; }
.login-attempts { display: flex; gap: 5px; margin-top: 9px; }
.login-attempts span { flex: 1; height: 5px; border-radius: 3px; background: rgba(0,0,0,.12); }
.login-attempts span.on { background: #8cc63f; }

/* Progreso de la subida de pedidos */
.upload-progress { margin-top: 16px; padding: 14px 16px; border: 1px solid #c9d8cc; border-radius: 6px; background: #f6faf6; }
.upload-progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.upload-progress-title { font-weight: 600; color: #24352a; }
.upload-progress-title .fa { color: #5c9f65; margin-right: 4px; }
.upload-progress-pct { font-weight: 700; font-size: 18px; color: #3f7446; }
.upload-progress .progress { height: 12px; margin-bottom: 8px; border-radius: 6px; background: #e2ebe4; box-shadow: none; }
.upload-progress .progress-bar { background: #5c9f65; border-radius: 6px; transition: width .4s ease; }
.upload-progress.is-processing .progress-bar { background-color: #8cc63f; background-image: linear-gradient(45deg, rgba(255,255,255,.25) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.25) 50%, rgba(255,255,255,.25) 75%, transparent 75%, transparent); background-size: 24px 24px; animation: upload-stripes 1s linear infinite; }
@keyframes upload-stripes { from { background-position: 24px 0; } to { background-position: 0 0; } }
.upload-progress-stats { font-size: 13px; color: #3f5446; }
.upload-progress-note { margin: 8px 0 0; font-size: 12px; color: #7b8a80; }
.upload-progress-note .fa { color: #8cc63f; margin-right: 3px; }
.upload-progress-abort { padding: 4px 0 0; font-size: 12px; color: #9a5a3a; }
.upload-progress.is-error { background: #fbe9e4; border-color: #e3b9a5; }
.upload-progress.is-error .progress-bar { background: #c27a4a; }
.upload-progress.is-error .upload-progress-title, .upload-progress.is-error .upload-progress-title .fa { color: #5a2c1c; }
.upload-progress-error p { margin: 8px 0 10px; color: #5a2c1c; font-size: 13px; }
.upload-progress-error .btn { margin-right: 6px; }

/* ===== Página del cliente: nuevo pedido + mis pedidos ===== */
.client-page .box-header { padding: 14px 18px 0; }
.client-page .box-header .box-title { font-size: 18px; font-weight: 600; color: #24352a; }
.client-page .box-header .box-title .fa { color: #5c9f65; margin-right: 6px; }
.client-msg { border-radius: 6px; }
.client-msg p { margin: 0; font-size: 15px; }
.client-msg .fa { margin-right: 4px; }

/* Zona de arrastrar y soltar */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%;
  min-height: 150px; margin: 0 0 12px; padding: 22px 16px; border: 2px dashed #b9d3be; border-radius: 8px; background: #f6faf6;
  text-align: center; cursor: pointer; font-weight: 400; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone:focus-within { border-color: #8cc63f; background: #eef7ef; }
.dropzone.is-over { border-color: #5c9f65; background: #e2f2e4; }
.dropzone.has-files { min-height: 96px; padding: 14px 16px; }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dropzone-icon { font-size: 40px; color: #8cc63f; }
.dropzone.has-files .dropzone-icon { font-size: 26px; }
.dropzone-title { font-size: 17px; font-weight: 600; color: #24352a; }
.dropzone-title span { display: block; font-size: 14px; font-weight: 400; color: #64786a; }

/* Límites de la subida */
.upload-limits { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; color: #64786a; }
.upload-limits .fa { color: #8cc63f; margin-right: 3px; }
.upload-limits b { color: #3f5446; font-weight: 600; }

/* Ficheros elegidos */
.file-list { margin: 0 0 8px; padding: 0; list-style: none; border: 1px solid #e4ebe6; border-radius: 6px; max-height: 260px; overflow-y: auto; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid #eef3ef; font-size: 14px; }
.file-list li:first-child { border-top: 0; }
.file-list li > .fa { color: #6f9a76; width: 16px; text-align: center; }
.file-list .file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #24352a; }
.file-list .file-size { color: #64786a; white-space: nowrap; font-size: 13px; }
.file-list .file-remove { border: 0; background: none; color: #9aaba0; font-size: 20px; line-height: 1; padding: 0 2px; cursor: pointer; }
.file-list .file-remove:hover { color: #c27a4a; }
.file-list li.is-invalid { background: #fbe9e4; }
.file-list li.is-invalid .file-size, .file-list li.is-invalid > .fa { color: #9a4a2a; font-weight: 600; }
.file-total { margin: 0 0 12px; font-size: 13px; color: #3f5446; }
.file-total span { color: #7b8a80; }
.file-total p { margin: 6px 0 0; }
.file-total.is-invalid p { padding: 8px 12px; border-radius: 6px; background: #fbe9e4; border-left: 4px solid #c27a4a; color: #5a2c1c; }

.client-upload textarea.form-control { border-radius: 6px; font-size: 14px; }
.client-upload-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.btn-send { min-width: 180px; height: 42px; font-size: 15px; font-weight: 600; border-radius: 6px; }
.btn-send .fa { margin-right: 6px; }
.btn-send[disabled] { opacity: .55; }
#upload-form.is-busy .dropzone { pointer-events: none; opacity: .6; }

/* Mis pedidos */
.client-empty { margin: 6px 0; color: #7b8a80; }
.client-table .nowrap { white-space: nowrap; }
.client-table .client-notes span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; max-width: 420px; }
.client-table .label { display: inline-block; padding: 5px 9px; font-size: 12px; }
.client-table .client-actions { text-align: right; white-space: nowrap; }
.client-table tr.is-new > td { background: #eef9dc !important; }
.label-new { background: #8cc63f; color: #fff; margin-left: 6px; font-size: 11px !important; padding: 3px 7px !important; }

/* Móvil: la tabla pasa a tarjetas apiladas */
@media (max-width: 767px) {
  .client-upload-actions .btn-send { width: 100%; }
  .client-table thead { display: none; }
  .client-table, .client-table tbody, .client-table tr, .client-table td { display: block; width: 100%; }
  .client-table tr { margin: 0 0 12px; border: 1px solid #e4ebe6; border-radius: 8px; padding: 8px 12px; background: #fff !important; }
  .content .client-table > tbody > tr > td { border: 0; padding: 4px 0; }
  .client-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: #7b8a80; letter-spacing: .3px; }
  .client-table .client-notes span { max-width: none; }
  .client-table .client-actions { text-align: left; padding-top: 8px !important; }
  .client-table .client-actions .btn { width: 100%; }
}

/* ===== Páginas de error (403 / 404 / 500) ===== */
.error-page-artesan .login-box-body { text-align: center; }
.error-page-artesan .error-code { font-size: 54px; font-weight: 700; line-height: 1; color: #c9e3b5; letter-spacing: 2px; margin-bottom: 6px; }
.error-page-artesan .login-title .fa { color: #8cc63f; margin-right: 4px; }
.error-page-artesan .error-text { color: #64786a; font-size: 15px; margin: 10px 0 20px; }
.error-page-artesan .btn { width: 100%; height: 42px; border-radius: 5px; font-size: 15px; font-weight: 600; line-height: 28px; }
.error-page-artesan .btn .fa { margin-right: 6px; }
.error-page-artesan .error-back { display: block; margin-top: 14px; font-size: 14px; }
.error-page-artesan .error-back .fa { margin-right: 4px; }

/* Contador de pedidos pendientes en el menú */
.skin-green .sidebar-menu .label-menu-pending { background: #8cc63f; color: #fff; font-size: 11px; padding: 3px 7px; border-radius: 9px; }

/* Cambiar contraseña */
.password-page .box { max-width: 520px; }
.password-page .form-group label { color: #3f5446; font-weight: 600; }
.password-page .help-block { font-size: 12px; color: #7b8a80; }
.password-page .btn { height: 40px; padding: 0 20px; font-weight: 600; border-radius: 5px; }
.password-page .btn .fa { margin-right: 6px; }
.password-page .callout p { margin: 0; }

/* Aviso de pedidos nuevos en el listado del admin */
.new-orders-alert { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px;
  border-radius: 6px; border-left: 4px solid #8cc63f; background: #eef9dc; color: #24352a; font-weight: 600; }
.new-orders-alert .fa-bell { color: #8cc63f; }
.new-orders-alert .btn { margin-left: auto; }

/* Estado "Terminado" */
.label-finished { background: #5c9f65; color: #fff; font-weight: 600; }
.finish-form { display: inline-block; margin: 0; }
.btn-finish { padding: 6px 12px; font-size: 14px; }
.btn-finish .fa { margin-right: 4px; }
.btn-undo { padding: 0 0 0 6px; font-size: 13px; color: #9a5a3a; }
.finish-hint { font-size: 13px; }
/* Etiquetas de estado en los listados: mismo tamaño que el texto de la tabla */
.table > tbody > tr > td .label-finished,
.table > tbody > tr > td .label-pending,
.table > tbody > tr > td .label-artesan { display: inline-block; padding: 6px 10px; font-size: 14px; line-height: 1.2; vertical-align: middle; }
.table > tbody > tr > td .label .fa { margin-right: 3px; }
.order-actions .finish-form .btn-finish { padding: 7px 16px; font-size: 15px; }

/* Pedidos de prueba del superadmin */
.label-test { background: #7e57c2; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 3px 7px; vertical-align: middle; }
.content-header > h1 .label-test { font-size: 12px; margin-left: 6px; }
.delete-form { display: inline-block; margin: 0; }
.btn-delete { background: #fff; border: 1px solid #e3b9a5; color: #9a4a2a; font-weight: 600; border-radius: 5px; }
.btn-delete:hover, .btn-delete:focus { background: #fbe9e4; color: #5a2c1c; border-color: #c27a4a; }
.btn-delete .fa { margin-right: 4px; }
.btn-sm.btn-delete .fa { margin-right: 0; }
.btn-delete-link { padding: 0 4px; color: #b07a62; }
.btn-delete-link:hover { color: #9a4a2a; }

/* Configuración: plantillas de email */
.settings-intro { color: #5d6d62; max-width: 820px; }
.nav-tabs-custom.tpl-tabs > .nav-tabs > li.active { border-top-color: #5c9f65; }
.tpl-custom-dot { color: #8cc63f; margin-left: 4px; font-size: 11px; }
.tpl-meta p { margin: 0 0 6px; color: #5d6d62; }
.tpl-meta .fa { width: 16px; color: #8aa08f; }
.tpl-state { margin-left: 12px; color: #8a9a8e; font-size: 12px; }
.tpl-meta { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eef2ec; }
.settings-page .ql-toolbar.ql-snow { border-color: #d2d6de; border-radius: 3px 3px 0 0; background: #fafcf9; }
.settings-page .ql-container.ql-snow { border-color: #d2d6de; border-radius: 0 0 3px 3px; font-family: Arial, Helvetica, sans-serif; font-size: 15px; }
.settings-page .ql-editor { min-height: 220px; line-height: 1.55; color: #24352a; }
.settings-page .ql-editor p { margin-bottom: 12px; }
.settings-page .ql-snow .ql-picker.ql-header .ql-picker-label::before,
.settings-page .ql-snow .ql-picker.ql-header .ql-picker-item::before { content: 'Normal'; }
.settings-page .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
.settings-page .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: 'Título'; }
.settings-page .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
.settings-page .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: 'Subtítulo'; }
.settings-page .ql-snow .ql-tooltip[data-mode=link]::before { content: 'Enlace:'; }
.settings-page .ql-snow .ql-tooltip::before { content: 'Visitar:'; }
.settings-page .ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: 'Guardar'; }
.settings-page .ql-snow .ql-tooltip a.ql-action::after { content: 'Editar'; }
.settings-page .ql-snow .ql-tooltip a.ql-remove::before { content: 'Quitar'; }
.settings-page .ql-snow a { color: #4f8f58; }
.tpl-vars-title { font-weight: 600; margin-right: 6px; color: #5d6d62; }
.tpl-var { background: #eef9dc; border: 1px solid #8cc63f; color: #3f7446; font-family: Menlo, Consolas, monospace; margin: 0 4px 4px 0; }
.tpl-var:hover, .tpl-var:focus { background: #dff2c4; color: #2f5f36; }
.tpl-actions .btn { margin-right: 6px; }
.tpl-reset-form { margin-top: 8px; }
.tpl-reset-form .btn-link { padding-left: 0; color: #8a6d3b; }
.tpl-preview-line { margin: 0 0 4px; }
.tpl-preview-line span { display: inline-block; width: 60px; color: #8a9a8e; }
.tpl-preview-frame { width: 100%; height: 560px; border: 1px solid #e3ebe0; border-radius: 4px; margin-top: 10px; background: #eef3ec; }
@media (max-width: 767px) { .tpl-preview-frame { height: 460px; } .tpl-state { display: block; margin: 4px 0 0 16px; } }

/* Configuración: activar / desactivar el envío de una plantilla */
.tpl-off-dot { color: #c0392b; margin-left: 4px; font-size: 11px; }
.tpl-toggle { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 10px 14px; border-radius: 4px; }
.tpl-toggle.is-on { background: #eef9dc; border-left: 4px solid #8cc63f; color: #2f5f36; }
.tpl-toggle.is-off { background: #fbecea; border-left: 4px solid #c0392b; color: #7a2a22; }
.tpl-toggle-text { flex: 1 1 320px; }

/* Aviso de novedades (clientes) */
.news-modal .modal-content { border-radius: 6px; overflow: hidden; border: 0; }
.news-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #5c9f65; color: #fff; }
.news-head .modal-title { font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.news-head p { margin: 0; color: #e8f5e3; }
.news-logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; flex: 0 0 auto; }
.news-list { list-style: none; margin: 0; padding: 4px 4px 0; }
.news-list li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eef2ec; }
.news-list li:last-child { border-bottom: 0; }
.news-list li > .fa { flex: 0 0 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 50%; background: #eef9dc; color: #4f8f58; font-size: 16px; }
.news-list b { display: block; color: #24352a; margin-bottom: 2px; }
.news-list li div > span { color: #5d6d62; }
.news-list .label { font-size: 12px; }
.news-modal .modal-footer { border-top: 0; padding-top: 4px; }

/* Integraciones */
.integration-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.integration-card { display: flex; align-items: center; gap: 16px; padding: 18px; background: #fff; border-radius: 4px; border-top: 3px solid #5c9f65;
  box-shadow: 0 1px 2px rgba(0,0,0,.08); color: #24352a; transition: box-shadow .15s; }
.integration-card:hover, .integration-card:focus { box-shadow: 0 3px 10px rgba(0,0,0,.12); color: #24352a; text-decoration: none; }
.integration-icon { flex: 0 0 52px; height: 52px; line-height: 52px; text-align: center; border-radius: 50%; background: #eef9dc; color: #4f8f58; font-size: 24px; }
.integration-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.integration-body b { font-size: 17px; }
.integration-desc { color: #5d6d62; }
.integration-status { font-size: 13px; font-weight: 600; margin-top: 4px; }
.integration-status .fa { font-size: 10px; vertical-align: 1px; }
.integration-status.is-ok { color: #3f8f48; } .integration-status.is-warn { color: #a07a12; }
.integration-status.is-error { color: #c0392b; } .integration-status.is-off { color: #8a9a8e; }
.integration-go { font-size: 22px; color: #b7c4ba; }
.pn-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.pn-tile { background: #fff; border-radius: 4px; padding: 14px 16px; border-left: 4px solid #d2d6de; box-shadow: 0 1px 2px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 4px; }
.pn-tile.is-ok { border-left-color: #8cc63f; } .pn-tile.is-error { border-left-color: #c0392b; } .pn-tile.is-warn { border-left-color: #b5b62e; }
.pn-tile-label { font-size: 12px; font-weight: 600; color: #64786a; text-transform: uppercase; letter-spacing: .3px; }
.pn-tile b { font-size: 18px; color: #24352a; }
.pn-tile .label { align-self: flex-start; }
.pn-tile > span:last-child:not(.label) { color: #5d6d62; font-size: 13px; }
.nav-tabs-custom.pn-tabs > .nav-tabs > li.active { border-top-color: #5c9f65; }
.pn-tabs .nav-tabs .label { margin-left: 4px; }
.pn-error-msg { margin-top: 4px; font-size: 12px; color: #a33a2c; max-width: 360px; }
.table > tbody > tr > td .label-danger { display: inline-block; padding: 6px 10px; font-size: 14px; line-height: 1.2; vertical-align: middle; }
.table > tbody > tr > td .label-default { display: inline-block; padding: 6px 10px; font-size: 14px; line-height: 1.2; vertical-align: middle; }
.pn-account { max-width: 760px; margin-top: 8px; }

/* PrintNode: detalle de una impresión */
.pn-detail { font-family: Menlo, Consolas, monospace; }
.pn-job-data { margin-bottom: 8px; }
.pn-timeline-title { font-size: 15px; font-weight: 700; color: #2f5f36; margin: 6px 0 10px; }
.pn-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 3px solid #e3ebe0; }
.pn-timeline li { position: relative; padding: 6px 0 10px 14px; }
.pn-timeline li::before { content: ''; position: absolute; left: -22px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: #b5b62e; border: 2px solid #fff; }
.pn-timeline li.is-done::before { background: #5c9f65; }
.pn-timeline li.is-error::before, .pn-timeline li.is-expired::before, .pn-timeline li.is-deleted::before, .pn-timeline li.is-disappeared::before { background: #c0392b; }
.pn-tl-when { margin-left: 6px; color: #24352a; }
.pn-tl-after { margin-left: 6px; color: #8a9a8e; font-size: 12px; }
.pn-tl-msg { margin-top: 4px; }
.pn-tl-msg.is-error { color: #a33a2c; font-size: 13px; }
.pn-tl-client { margin-top: 2px; color: #8a9a8e; font-size: 12px; }
.pn-tl-msg { white-space: pre-line; font-size: 12px; }
.pn-tl-msg:not(.is-error) { color: #5d6d62; }

/* Actividad (superadmin) */
.act-filters .box-body { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.act-filter label { display: block; font-size: 12px; font-weight: 600; color: #64786a; margin-bottom: 4px; }
.act-filter .form-control { min-width: 150px; }
.act-check label { font-size: 13px; font-weight: 400; color: #24352a; padding-bottom: 8px; }
.act-buttons .btn { margin-right: 4px; }
.act-dev { width: 14px; text-align: center; color: #64786a; }
.act-role { margin-left: 4px; font-size: 10px; vertical-align: middle; }
.act-ua { font-family: Menlo, Consolas, monospace; font-size: 11px; color: #5d6d62; min-width: 260px; max-width: 380px; word-break: break-all; }
