/* Estilo tipo GRUBER: barra verde-azulado, fecha/hora bajo el encabezado, tarjetas blancas sobre gris. */
:root {
  --k-teal: #20b39d;
  --k-teal-dark: #189681;
  --k-bg: #eceff3;
  --k-text: #2b2b2b;
  --k-muted: #7a7f87;
}

body.app { background: var(--k-bg); color: var(--k-text); }
.pusher { background: var(--k-bg) !important; min-height: 100vh; }

/* Encabezado */
.k-topbar {
  background: var(--k-teal); color: #fff; height: 62px;
  display: flex; align-items: center; justify-content: flex-end; gap: 24px; padding: 0 20px;
}
.k-burger { color: #fff !important; font-size: 1.35em; cursor: pointer; margin-right: auto; margin-left: 30%; }
.k-user { display: flex !important; align-items: center; gap: 10px; color: #fff; font-weight: 600; cursor: pointer; }
.k-avatar {
  width: 36px; height: 36px; border-radius: 4px; background: #fff; color: var(--k-teal);
  display: inline-flex; align-items: center; justify-content: center;
}
.k-avatar .icon { margin: 0; }
.k-user .menu { min-width: 180px; }
.k-logout-form { padding: 0 !important; }
.k-link-button {
  background: none; border: 0; width: 100%; text-align: left; padding: .8em 1.1em; cursor: pointer; font: inherit; color: inherit;
}

/* Barra de fecha y hora */
.k-datebar {
  background: var(--k-teal); color: #fff; display: inline-flex; align-items: center; gap: 18px;
  padding: 6px 12px 8px; border-bottom-right-radius: 10px; min-width: 340px; max-width: 100%;
}
.k-date { font-size: 1.15em; line-height: 1.15; flex: 1; }
.k-time { font-size: 1.35em; font-variant-numeric: tabular-nums; }
.k-bus { font-size: 1.4em !important; margin: 0 !important; }

.k-main { padding: 8px 14px 30px; }

/* Menú lateral */
.k-sidebar { background: #1f2d3a !important; }
.k-sidebar-brand { font-weight: 800; letter-spacing: 2px; font-size: 1.2em; color: var(--k-teal) !important; }
.k-sidebar .item.active { background: var(--k-teal) !important; }

/* Tarjetas */
.k-card { border-radius: 4px !important; box-shadow: 0 1px 2px rgba(0,0,0,.08) !important; }
.k-card-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid #e3e5e8; margin: -1em -1em 1em; padding: .9em 1em;
}
.k-card-title { margin: 0 !important; font-size: 1.15em !important; }
.k-muted { color: var(--k-muted); }
.k-nowrap { white-space: nowrap; }

/* Botones */
.ui.button.k-teal { background: var(--k-teal); color: #fff; }
.ui.button.k-teal:hover { background: var(--k-teal-dark); color: #fff; }
.ui.basic.button.k-teal-outline { box-shadow: 0 0 0 1px var(--k-teal) inset !important; color: var(--k-teal-dark) !important; }

/* Filtros */
.k-filters { padding-top: .5em; }
.k-search-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 1.1em; flex-wrap: wrap; }
.k-search-row label { color: #444; }
.k-search { max-width: 260px; }
.ui.form .k-perpage { width: 80px; padding: .5em; }
.k-tabs { margin-top: 1.5em !important; }
.k-tabs .item.active { background: #f3f5f7 !important; color: var(--k-teal-dark) !important; }
.k-tab-label { text-align: center; color: var(--k-muted); margin: .3em 0 1em; font-size: .92em; }
.k-filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 16px; margin-bottom: 1em; }
.k-filter-grid .field { margin: 0 !important; }
.k-filter-grid label { font-weight: 700 !important; }
.k-date-range { display: flex; gap: 6px; }
.k-date-range input { min-width: 0; }
.select2-container { width: 100% !important; }
.select2-container .select2-selection--single { height: 38px; border-color: rgba(34,36,38,.15); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 36px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; }

/* Tabla */
.k-table-wrap { overflow-x: auto; }
.k-table { font-size: .92em !important; }
.k-table th { background: #f7f8fa !important; white-space: nowrap; }
.k-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 1em; gap: 10px; flex-wrap: wrap; }

/* Login */
.k-login-page { background: var(--k-teal); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.k-login-card { background: #fff; width: 100%; max-width: 360px; border-radius: 6px; padding: 30px 26px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.k-login-brand { text-align: center; font-weight: 800; letter-spacing: 4px; font-size: 1.8em; color: var(--k-teal); }
.k-login-title { text-align: center; font-size: 1.1em !important; color: #555; margin: .6em 0 1.2em !important; }

@media (max-width: 600px) {
  .k-burger { margin-left: 0; }
  .k-user-name { font-size: .9em; }
  .k-datebar { min-width: 0; width: 100%; border-bottom-right-radius: 0; }
  .k-main { margin-top: 0; padding: 10px 8px 30px; }
}

/* Usuarios y empresas */
.k-inline-form { display: inline; margin: 0; }
.k-perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 12px; margin-bottom: 1em; }
.k-perm-grid .field { margin: 0 !important; }
.k-form-actions { margin-top: 1.2em; }
.k-invite input { font-family: monospace; font-size: .9em !important; }
.ui.table tr.k-inactive-row td { color: #999; }
.k-inline-temp { display: flex; gap: 6px; align-items: center; margin: 0; }
.k-inline-temp input { flex: 1; min-width: 120px; padding: 5px 8px; border: 1px solid #d4d4d5; border-radius: 4px; font-size: .9em; }
.k-inline-temp .button { white-space: nowrap; margin: 0 !important; }
