:root{
  --bg-app: #f4f7fb;
  --bg-panel: #ffffff;
  --bg-panel-soft: #f8fbff;
  --border-soft: #dfe7f2;
  --border-strong: #c7d3e3;
  --text-main: #172b4d;
  --text-soft: #5e6c84;
  --text-muted: #7a869a;
  --primary: #0c66e4;
  --primary-dark: #0847a6;
  --primary-soft: #e9f2ff;
  --success: #1f845a;
  --warning: #c25100;
  --danger: #c9372c;
  --secondary-dark: #42526e;
  --sidebar-bg: #0f172a;
  --sidebar-bg-2: #111c34;
  --sidebar-border: rgba(255,255,255,0.08);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.10);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

*{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg-app);
  color: var(--text-main);
}

body{
  min-height: 100vh;
}

a{
  text-decoration: none;
}

.app-shell{
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar{
  width: 280px;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: #fff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--sidebar-border);
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  padding: 6px 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-mark{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  font-size: 22px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.25);
}

.brand-title{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle{
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

.sidebar-nav{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item-side{
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.82);
  padding: 12px 14px;
  border-radius: 14px;
  transition: all .2s ease;
  font-weight: 600;
  font-size: 14px;
}

.nav-item-side i{
  font-size: 16px;
}

.nav-item-side:hover{
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-item-side.active{
  background: rgba(12, 102, 228, 0.22);
  color: #fff;
  border: 1px solid rgba(131, 183, 255, 0.25);
}

.sidebar-footer{
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
}

.user-panel{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.user-avatar{
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  font-size: 22px;
}

.user-label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.55);
}

.user-name{
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  word-break: break-word;
}

.btn-sidebar-logout{
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
}

.btn-sidebar-logout:hover{
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* Main */
.app-main{
  flex: 1;
  padding: 28px;
  min-width: 0;
}

.topbar{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow{
  margin: 0 0 6px 0;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--primary);
}

.page-title{
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.page-subtitle{
  margin: 8px 0 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.topbar-right{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-top-action{
  min-height: 42px;
  border-radius: 12px;
  font-weight: 600;
  padding-inline: 16px;
}

/* Hero */
.hero-panel{
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 28%),
    linear-gradient(135deg, #0c66e4 0%, #1d4ed8 55%, #0f3f9e 100%);
  color: #fff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
}

.hero-copy{
  max-width: 720px;
}

.hero-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 14px;
}

.hero-panel h2{
  margin: 0 0 10px 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-panel p{
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
}

.hero-metrics{
  display: flex;
  gap: 12px;
  align-self: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.metric-card{
  min-width: 155px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}

.metric-label{
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.72);
  margin-bottom: 6px;
}

.metric-value{
  display: block;
  font-size: 18px;
  font-weight: 800;
}

/* Cards */
.filters-card,
.content-card{
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.filters-card{
  padding: 20px;
  margin-bottom: 20px;
}

.filters-card-header,
.content-card-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.filters-card-header h3,
.content-card-header h3{
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.filters-card-header p,
.content-card-header p{
  margin: 4px 0 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.filters-grid{
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 180px;
  gap: 16px;
  align-items: end;
}

.filter-field .form-label{
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.filter-actions{
  display: flex;
  align-items: end;
}

.input-icon-wrap{
  position: relative;
}

.input-icon-wrap i{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 2;
}

.input-icon-wrap .form-select{
  padding-left: 40px;
}

.form-control,
.form-select{
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  background: #fff;
  box-shadow: none;
}

.form-control-sm,
.form-select-sm{
  min-height: 40px;
}

.form-control:focus,
.form-select:focus{
  border-color: #7cb0ff;
  box-shadow: 0 0 0 4px rgba(12, 102, 228, 0.12);
}

.custom-select-button{
  min-height: 46px;
  display: flex;
  align-items: center;
  border-radius: 14px;
  background-color: #fff;
}

.state-dropdown-wrap{
  position: relative;
}

.state-dropdown-menu{
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  z-index: 1060;
  overflow: hidden;
}

.state-dropdown-head{
  padding: 14px 16px 10px;
  border-bottom: 1px solid #edf2f7;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.state-options{
  max-height: 240px;
  overflow: auto;
  padding: 10px 14px 6px;
}

.state-options .form-check{
  padding: 8px 8px 8px 28px;
  border-radius: 10px;
}

.state-options .form-check:hover{
  background: #f6f9fd;
}

.state-options .form-check-label{
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
}

.state-dropdown-actions{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid #edf2f7;
  background: #fbfcfe;
}

/* Table */
.table-view-card,
.cards-view-card{
  padding: 18px 18px 10px;
}

.modern-table{
  margin-bottom: 0;
}

.modern-table thead th{
  background: #f8fbff;
  color: var(--text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border-soft);
  border-top: 0;
  font-weight: 800;
  padding: 14px 16px;
  white-space: nowrap;
}

.modern-table tbody td{
  padding: 16px;
  border-color: #edf2f7;
  vertical-align: middle;
  font-size: 14px;
}

.modern-table tbody tr{
  transition: background .18s ease, transform .18s ease;
}

.modern-table tbody tr:hover{
  background: #f8fbff;
}

.modern-table .btn{
  border-radius: 10px;
}

/* Cards view */
#tareasTarjetas .card{
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

#tareasTarjetas .card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border-color: #bfd3ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  cursor: pointer;
}

#tareasTarjetas .card .card-body{
  padding: 18px;
}

#tareasTarjetas .card-title{
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  padding-right: 24px;
}

#tareasTarjetas .card-text{
  color: var(--text-soft);
  font-size: 13px;
}

#tareasTarjetas .card-text strong{
  color: var(--text-main);
}

.priority-line{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  border-radius: 0 0 18px 18px;
}

.progress{
  background: #eaf1f8;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar{
  background: linear-gradient(90deg, #0c66e4, #4f9cff);
}

/* Modal */
.app-modal{
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
}

.modal-header-brand{
  background: linear-gradient(135deg, #0c66e4, #0f4fb7);
  color: #fff;
  border-bottom: 0;
  padding: 20px 24px;
}

.modal-header-warning{
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1f2937;
  border-bottom: 0;
  padding: 20px 24px;
}

.modal-header-secondary{
  background: linear-gradient(135deg, #475569, #334155);
  color: #fff;
  border-bottom: 0;
  padding: 20px 24px;
}

.modal-kicker{
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  opacity: .9;
  margin-bottom: 6px;
}

.app-modal .modal-title{
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.app-modal .modal-body{
  padding: 24px;
  background: #fff;
}

.modal-footer-soft{
  border-top: 1px solid #edf2f7;
  background: #fbfcfe;
  padding: 16px 24px;
}

.section-divider{
  margin: 22px 0;
  border-color: #edf2f7;
}

.section-box{
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 16px;
  background: #fbfdff;
}

.section-box-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-box-header h6{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.section-box-header p{
  margin: 4px 0 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.custom-switch-row{
  display: flex;
  align-items: center;
  min-height: 54px;
  background: #f8fbff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 0;
}

.custom-switch-row .form-check-input{
  margin-top: 0;
  margin-right: 10px;
  transform: scale(1.05);
  float: none;
}

.custom-switch-row .form-check-label{
  margin: 0;
  font-weight: 600;
  color: var(--text-main);
}

.comment-input-row{
  align-items: center;
}

.progress-panel{
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px;
}

.progress-value{
  font-weight: 800;
  color: var(--primary-dark);
}

.progress-modern{
  height: 10px;
}

.editor-note-space{
  border-radius: 14px;
  overflow: hidden;
}

/* Checklist / comments */
#listaChecklist .list-group-item,
#listaComentarios .list-group-item{
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 14px;
  background: #fff;
}

#listaChecklist .list-group-item:last-child,
#listaComentarios .list-group-item:last-child{
  margin-bottom: 0;
}

.ordenNumero{
  border-radius: 999px;
  font-weight: 700;
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

.dragHandle{
  color: var(--text-muted);
}

.list-group-item .btn{
  float: none;
}

/* Alerts */
#alertContainer .alert{
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  font-weight: 600;
}

/* Buttons */
.btn{
  border-radius: 12px;
  font-weight: 600;
}

.btn-primary{
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover{
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-success{
  background: var(--success);
  border-color: var(--success);
}

.btn-outline-primary{
  color: var(--primary);
  border-color: #b6d1fb;
  background: #fff;
}

.btn-outline-primary:hover{
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: #8cb7f7;
}

.btn-outline-secondary{
  color: var(--secondary-dark);
  border-color: #cbd5e1;
}

.btn-outline-secondary:hover{
  background: #f1f5f9;
  color: var(--secondary-dark);
}

/* Quill */
.ql-toolbar.ql-snow{
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  border-color: var(--border-soft);
}

.ql-container.ql-snow{
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  border-color: var(--border-soft);
}

/* Mobile */
@media (max-width: 1200px){
  .filters-grid{
    grid-template-columns: 1fr 1fr;
  }

  .filter-actions{
    grid-column: 1 / -1;
  }

  .hero-panel{
    flex-direction: column;
  }

  .hero-metrics{
    justify-content: flex-start;
  }
}

@media (max-width: 992px){
  .app-shell{
    flex-direction: column;
  }

  .app-sidebar{
    width: 100%;
    height: auto;
    position: relative;
    padding: 18px;
  }

  .sidebar-nav{
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-footer{
    margin-top: 20px;
  }

  .app-main{
    padding: 20px;
  }

  .topbar{
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px){
  .page-title{
    font-size: 28px;
  }

  .filters-grid{
    grid-template-columns: 1fr;
  }

  .filter-actions{
    grid-column: auto;
  }

  .hero-panel{
    padding: 22px;
  }

  .hero-panel h2{
    font-size: 24px;
  }

  .app-modal .modal-body,
  .modal-footer-soft{
    padding: 18px;
  }

  .section-box-header{
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero-select-wrap{
  position: relative;
  margin-top: 4px;
}

.hero-select-wrap i{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.82);
  z-index: 2;
  font-size: 14px;
}

.form-select-hero{
  min-height: 44px;
  padding-left: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}

.form-select-hero:focus{
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.10);
}

.form-select-hero option{
  color: #172b4d;
  background: #fff;
}

.metric-card-view{
  min-width: 220px;
}

.estado-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  border: 1px solid transparent;
}

.estado-badge::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
}

.estado-pendiente{
  background: #fff7d6;
  color: #a66b00;
  border-color: #f3d266;
}

.estado-revision{
  background: #ede9fe;
  color: #6d28d9;
  border-color: #c4b5fd;
}

.estado-qa{
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

.estado-compleada{
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.estado-default{
  background: #eef2f7;
  color: #51627a;
  border-color: #d7dfeb;
}

.prioridad-pill{
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #dfe7f2;
  font-size: 12px;
  font-weight: 700;
}

.modern-table tbody td:first-child{
  font-weight: 700;
  color: var(--text-soft);
}

.modern-table tbody td:nth-child(2){
  font-weight: 700;
  color: var(--text-main);
}


/* =========================
   COMPACT MODE / CORPORATIVO
   Agregar al final de custom.css
========================= */

html, body{
  font-size: 14px;
}

.app-sidebar{
  width: 248px;
  padding: 18px 14px;
}

.sidebar-brand{
  gap: 10px;
  margin-bottom: 20px;
  padding: 4px 6px 14px;
}

.brand-mark{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 18px;
}

.brand-title{
  font-size: 15px;
}

.brand-subtitle{
  font-size: 11px;
}

.sidebar-nav{
  gap: 6px;
}

.nav-item-side{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  gap: 10px;
}

.nav-item-side i{
  font-size: 14px;
}

.sidebar-footer{
  margin-top: 18px;
  padding-top: 14px;
}

.user-panel{
  gap: 10px;
  margin-bottom: 12px;
}

.user-avatar{
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.user-label{
  font-size: 10px;
}

.user-name{
  font-size: 12px;
}

.btn-sidebar-logout{
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}

/* Main */
.app-main{
  padding: 20px;
}

.topbar{
  gap: 14px;
  margin-bottom: 18px;
}

.eyebrow{
  font-size: 11px;
  margin-bottom: 4px;
}

.page-title{
  font-size: 28px;
  line-height: 1.05;
}

.page-subtitle{
  margin-top: 6px;
  font-size: 13px;
}

.topbar-right{
  gap: 8px;
}

.btn-top-action{
  min-height: 38px;
  padding-inline: 13px;
  border-radius: 10px;
  font-size: 13px;
}

/* Hero */
.hero-panel{
  padding: 20px;
  gap: 14px;
  border-radius: 18px;
  margin-bottom: 16px;
}

.hero-chip{
  font-size: 11px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.hero-panel h2{
  font-size: 23px;
  margin-bottom: 8px;
}

.hero-panel p{
  font-size: 13px;
  max-width: 700px;
}

.hero-metrics{
  gap: 10px;
}

.metric-card{
  min-width: 138px;
  padding: 11px 12px;
  border-radius: 14px;
}

.metric-card-view{
  min-width: 195px;
}

.metric-label{
  font-size: 10px;
  margin-bottom: 4px;
}

.metric-value{
  font-size: 16px;
}

.hero-select-wrap i{
  left: 10px;
  font-size: 13px;
}

.form-select-hero{
  min-height: 38px;
  padding-left: 32px;
  border-radius: 10px;
  font-size: 13px;
}

/* Cards / blocks */
.filters-card,
.content-card{
  border-radius: 16px;
}

.filters-card{
  padding: 16px;
  margin-bottom: 16px;
}

.table-view-card,
.cards-view-card{
  padding: 14px 14px 8px;
}

.filters-card-header,
.content-card-header{
  margin-bottom: 14px;
}

.filters-card-header h3,
.content-card-header h3{
  font-size: 16px;
}

.filters-card-header p,
.content-card-header p{
  font-size: 12px;
}

/* Filters */
.filters-grid{
  gap: 12px;
}

.filter-field .form-label{
  font-size: 12px;
  margin-bottom: 6px;
}

.input-icon-wrap i{
  left: 12px;
  font-size: 13px;
}

.input-icon-wrap .form-select{
  padding-left: 36px;
}

.form-control,
.form-select{
  min-height: 40px;
  border-radius: 12px;
  font-size: 13px;
}

.form-control-sm,
.form-select-sm{
  min-height: 36px;
  font-size: 12px;
}

.custom-select-button{
  min-height: 40px;
  border-radius: 12px;
  font-size: 13px;
}

.state-dropdown-menu{
  top: calc(100% + 8px);
  border-radius: 14px;
}

.state-dropdown-head{
  padding: 11px 13px 8px;
  font-size: 12px;
}

.state-options{
  max-height: 220px;
  padding: 8px 10px 4px;
}

.state-options .form-check{
  padding: 6px 6px 6px 26px;
}

.state-options .form-check-label{
  font-size: 13px;
}

.state-dropdown-actions{
  padding: 10px 12px 12px;
}

/* Table */
.modern-table thead th{
  font-size: 11px;
  padding: 12px 14px;
}

.modern-table tbody td{
  padding: 12px 14px;
  font-size: 13px;
}

.modern-table .btn{
  border-radius: 9px;
  padding: .32rem .48rem;
  font-size: 12px;
}

/* badges */
.estado-badge{
  padding: 6px 10px;
  font-size: 11px;
}

.prioridad-pill{
  min-height: 26px;
  padding: 3px 9px;
  font-size: 11px;
}

/* Cards view */
#tareasTarjetas .card{
  border-radius: 16px;
}

#tareasTarjetas .card .card-body{
  padding: 14px;
}

#tareasTarjetas .card-title{
  font-size: 14px;
  margin-bottom: 10px;
  padding-right: 20px;
}

#tareasTarjetas .card-text{
  font-size: 12px;
  margin-bottom: 6px !important;
}

.priority-line{
  height: 4px;
  border-radius: 0 0 16px 16px;
}

/* Modal */
.app-modal{
  border-radius: 18px;
}

.modal-header-brand,
.modal-header-warning,
.modal-header-secondary{
  padding: 16px 20px;
}

.modal-kicker{
  font-size: 10px;
  margin-bottom: 4px;
}

.app-modal .modal-title{
  font-size: 18px;
}

.app-modal .modal-body{
  padding: 20px;
}

.modal-footer-soft{
  padding: 12px 20px;
}

.section-divider{
  margin: 18px 0;
}

.section-box{
  border-radius: 14px;
  padding: 13px;
}

.section-box-header{
  margin-bottom: 10px;
}

.section-box-header h6{
  font-size: 14px;
}

.section-box-header p{
  font-size: 12px;
}

.custom-switch-row{
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
}

.custom-switch-row .form-check-label{
  font-size: 13px;
}

.progress-panel{
  border-radius: 12px;
  padding: 11px 12px;
}

.progress-modern{
  height: 8px;
}

/* Checklist / comentarios */
#listaChecklist .list-group-item,
#listaComentarios .list-group-item{
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 11px 12px;
  font-size: 13px;
}

.ordenNumero{
  font-size: 11px;
}

.comment-input-row .btn,
#agregarChecklistBtn{
  min-height: 36px;
  font-size: 12px;
}

/* Buttons */
.btn{
  border-radius: 10px;
  font-size: 13px;
}

.btn-sm{
  font-size: 12px;
}

/* Quill */
.ql-toolbar.ql-snow{
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.ql-container.ql-snow{
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  font-size: 13px;
}

/* Alertas */
#alertContainer .alert{
  border-radius: 12px;
  font-size: 13px;
  padding: 12px 14px;
}

/* Responsive compact */
@media (max-width: 992px){
  .app-main{
    padding: 16px;
  }

  .page-title{
    font-size: 24px;
  }

  .hero-panel{
    padding: 16px;
  }

  .hero-panel h2{
    font-size: 20px;
  }
}

@media (max-width: 768px){
  html, body{
    font-size: 13px;
  }

  .app-sidebar{
    padding: 14px;
  }

  .page-title{
    font-size: 22px;
  }

  .filters-card,
  .table-view-card,
  .cards-view-card{
    padding: 12px;
  }

  .app-modal .modal-body,
  .modal-footer-soft{
    padding: 14px;
  }
}