/* ═══════════════════════════════════════════════════════
   GESTOR DE COBRANÇA — Portal Móveis
   Design System v7 · Fintech Lime · SaaS UI
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* 
     COLOR SYSTEM — SOFT LIME GRADIENT UI
     Backgrounds: Clean white and soft gray.
     Accent: Soft lime green with translucent gradients.
  */

  /* Base Backgrounds */
  --bg: #F5F6F7;
  /* Main App Background */
  --sidebar-bg: #F0F2F3;
  /* Sidebar Background */
  --surface: #FFFFFF;
  /* Cards/Panels */

  /* Primary Accent (Lime) */
  --primary: #D8F279;
  --primary-hover: #CBEF6A;
  --primary-text: #3F4D22;
  /* Darker text for contrast on lime */

  /* Gradients */
  --grad-primary: linear-gradient(90deg, #D8F279 0%, #E7F6A0 50%, rgba(255, 255, 255, 0.4) 100%);
  --grad-hover: linear-gradient(90deg, #CBEF6A 0%, #D8F279 100%);

  /* Status Indicators (Softened Tones) */
  --success: #7CCF7A;
  /* Green = On Time */
  --success-bg: #E8F9E8;
  --warning: #F2C94C;
  /* Yellow = Medium Delay */
  --warning-bg: #FFF8E1;
  --danger: #E76F51;
  /* Soft Red = Critical Delay */
  --danger-bg: #FDECE8;

  /* Typography */
  --text: #4B5563;
  /* Main Text */
  --text-2: #4B5563;
  /* Secondary */
  --text-3: #9CA3AF;
  /* Tertiary/Placeholder */
  --font-main: 'Inter', system-ui, sans-serif;

  /* Borders & Shadows */
  --border: rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.05);

  /* Dimensions */
  --sidebar-w: 260px;
  --topbar-h: 70px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  /* Large rounded cards */

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── Reset & Base ───────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all .2s
}

img {
  max-width: 100%;
  display: block
}

/* ── Custom Scrollbar ───────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.3);
  /* var(--text-3) with opacity */
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  border: 1px solid transparent;
  background-clip: content-box;
}

/* ── App Shell ──────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-areas: "sidebar main";
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────── */
.sidebar {
  grid-area: sidebar;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  padding: 24px 16px;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-brand {
  padding: 0 12px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-brand img {
  width: 130px;
}

.sidebar-brand-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 24px 12px 8px;
}

.sidebar-group-label:first-of-type {
  margin-top: 0
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-weight: 500;
  transition: all .2s var(--ease);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  transform: translateX(2px);
}

.nav-link.active {
  background: var(--grad-primary);
  color: var(--text);
  /* Dark text on light lime */
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(216, 242, 121, 0.2);
}

.nav-link svg {
  width: 18px;
  height: 18px;
  opacity: 0.7
}

.nav-link.active svg {
  opacity: 1;
  color: var(--text)
}

/* ── Main Area ──────────────────────────────────────── */
.main-content {
  grid-area: main;
  padding: 32px 40px 60px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* ── Dashboard Grid ─────────────────────────────────── */
.dash-grid {
  display: grid;
  gap: 32px;
}

/* KPI Section */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.kpi-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  height: 140px;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

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

.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-card:hover .kpi-icon {
  background: var(--primary);
  color: var(--primary-text)
}

.kpi-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2)
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.kpi-pill {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-pill.warn {
  background: var(--warning-bg);
  color: #B45309;
}

.kpi-pill.critical {
  background: var(--danger-bg);
  color: #B91C1C;
}

.kpi-pill.success {
  background: var(--success-bg);
  color: #15803D;
}

.kpi-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 2px;
}

/* Split View: Queue + Agenda */
.split-view {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.split-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  height: 100%;
}

.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px
}

.card-counter {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-2);
}

/* ── Table Styles ───────────────────────────────────── */
.clean-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0
}

.clean-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.clean-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
  vertical-align: middle;
}

.clean-table tr:hover td {
  background: #FAFAFA
}

/* Client Name Cell */
.client-cell {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.client-name {
  font-weight: 600;
  color: var(--text)
}

.client-sub {
  font-size: 12px;
  color: var(--text-3)
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.badge.green {
  background: var(--success-bg);
  color: var(--success)
}

.badge.yellow {
  background: var(--warning-bg);
  color: #F2994A
}

.badge.red {
  background: var(--danger-bg);
  color: var(--danger)
}

/* Action Buttons Grid */
.actions-cell {
  display: flex;
  gap: 8px
}

.btn-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all .2s;
  cursor: pointer;
}

.btn-action-icon:hover {
  background: var(--primary);
  color: var(--primary-text);
  border-color: transparent;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .1s;
}

.btn svg {
  width: 16px;
  height: 16px
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(216, 242, 121, 0.4);
}

.btn-primary:hover {
  background: var(--grad-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--primary);
  color: #5A6B2F;
}

.btn-secondary:hover {
  background: rgba(216, 242, 121, 0.1)
}

/* ── Agenda List ────────────────────────────────────── */
.agenda-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.agenda-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all .2s;
}

.agenda-item:hover {
  border-color: var(--primary);
  background: white
}

.agenda-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E0E7FF;
  color: #4F46E5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.agenda-info {
  display: flex;
  flex-direction: column
}

.agenda-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text)
}

.agenda-time {
  font-size: 11px;
  color: var(--text-3)
}

/* ── Utilities ──────────────────────────────────────── */
.w-full {
  width: 100%
}

.text-right {
  text-align: right
}

.gap-2 {
  gap: 8px
}

/* ── Detail Table (Customer Parcels) ────────────────── */
.detail-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 12px;
}

.detail-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--bg);
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1;
}

.detail-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

.detail-table tbody tr:hover td {
  background: rgba(216, 242, 121, 0.08);
}

.detail-table .mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-3);
}

.detail-table .td-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: var(--text);
}

.detail-table .text-right {
  text-align: right;
}

.detail-table .text-success {
  color: var(--success);
}

.detail-table .row-critical td {
  background: rgba(231, 111, 81, 0.06);
}

.detail-table .row-warn td {
  background: rgba(242, 201, 76, 0.06);
}

.detail-table .totals-row td {
  background: var(--bg);
  border-top: 2px solid rgba(0, 0, 0, 0.08);
  padding: 14px 12px;
  font-size: 13px;
}

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

  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }
}/ *           M o b i l e   R e s p o n s i v e   ( M a x   7 6 8 p x )                                                                 * /  
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {  
  
         / *   1 .   L a y o u t   &   S i d e b a r   * /  
         . a p p - s h e l l   {  
                 g r i d - t e m p l a t e - c o l u m n s :   1 f r ;  
                 g r i d - t e m p l a t e - a r e a s :   " m a i n " ;  
         }  
  
         . s i d e b a r   {  
                 t r a n s f o r m :   t r a n s l a t e X ( - 1 0 0 % ) ;  
                 t r a n s i t i o n :   t r a n s f o r m   0 . 3 s   c u b i c - b e z i e r ( 0 . 4 ,   0 . 0 ,   0 . 2 ,   1 ) ;  
                 b o x - s h a d o w :   5 p x   0   2 5 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 1 5 ) ;  
         }  
  
         . s i d e b a r . o p e n   {  
                 t r a n s f o r m :   t r a n s l a t e X ( 0 ) ;  
         }  
  
         . s i d e b a r - o v e r l a y   {  
                 p o s i t i o n :   f i x e d ;  
                 t o p :   0 ;  
                 l e f t :   0 ;  
                 r i g h t :   0 ;  
                 b o t t o m :   0 ;  
                 b a c k g r o u n d :   r g b a ( 0 ,   0 ,   0 ,   0 . 4 ) ;  
                 b a c k d r o p - f i l t e r :   b l u r ( 2 p x ) ;  
                 z - i n d e x :   9 0 ;  
                 o p a c i t y :   0 ;  
                 p o i n t e r - e v e n t s :   n o n e ;  
                 t r a n s i t i o n :   o p a c i t y   0 . 3 s ;  
         }  
  
         . s i d e b a r - o v e r l a y . s h o w   {  
                 o p a c i t y :   1 ;  
                 p o i n t e r - e v e n t s :   a u t o ;  
         }  
  
         . m e n u - t o g g l e   {  
                 d i s p l a y :   f l e x   ! i m p o r t a n t ;  
                 a l i g n - i t e m s :   c e n t e r ;  
                 j u s t i f y - c o n t e n t :   c e n t e r ;  
                 b a c k g r o u n d :   t r a n s p a r e n t ;  
                 b o r d e r :   n o n e ;  
                 f o n t - s i z e :   2 4 p x ;  
                 c o l o r :   v a r ( - - t e x t ) ;  
                 c u r s o r :   p o i n t e r ;  
                 w i d t h :   4 0 p x ;  
                 h e i g h t :   4 0 p x ;  
                 m a r g i n - r i g h t :   1 0 p x ;  
         }  
  
         . t o p b a r   {  
                 p a d d i n g :   0   1 6 p x ;  
                 h e i g h t :   6 0 p x ;  
         }  
  
         . t o p b a r - l e f t   {  
                 d i s p l a y :   f l e x ;  
                 a l i g n - i t e m s :   c e n t e r ;  
         }  
  
         / *   H i d e   q u i c k   l i n k s   o n   m o b i l e   i f   s p a c e   i s   t i g h t ,   o r   a d a p t   t h e m   * /  
         . t o p b a r - q u i c k - l i n k s   {  
                 d i s p l a y :   n o n e ;  
         }  
  
         . m a i n - c o n t e n t   {  
                 p a d d i n g :   2 0 p x   1 6 p x   8 0 p x ;  
                 / *   M o r e   b o t t o m   p a d d i n g   f o r   s a f e   a r e a   * /  
         }  
  
         / *   2 .   D a s h b o a r d   K P I s   ( S t a c k e d )   * /  
         . k p i - r o w   {  
                 g r i d - t e m p l a t e - c o l u m n s :   1 f r ;  
                 / *   S t a c k   v e r t i c a l l y   * /  
                 g a p :   1 6 p x ;  
                 m a r g i n - t o p :   2 0 p x ;  
         }  
  
         . k p i - c a r d   {  
                 h e i g h t :   a u t o ;  
                 m i n - h e i g h t :   1 2 0 p x ;  
                 f l e x - d i r e c t i o n :   r o w ;  
                 / *   H o r i z o n t a l   l a y o u t   i n s i d e   c a r d   f o r   c o m p a c t n e s s   * /  
                 a l i g n - i t e m s :   c e n t e r ;  
                 p a d d i n g :   2 0 p x ;  
         }  
  
         . k p i - h e a d e r   {  
                 m a r g i n - b o t t o m :   0 ;  
                 m a r g i n - r i g h t :   2 0 p x ;  
         }  
  
         . s p l i t - v i e w   {  
                 g r i d - t e m p l a t e - c o l u m n s :   1 f r ;  
                 g a p :   2 0 p x ;  
         }  
  
         / *   3 .   T a b l e s   t o   C a r d s   ( P r i o r i t y   Q u e u e   &   O t h e r s )   * /  
         . c l e a n - t a b l e   t h e a d   {  
                 d i s p l a y :   n o n e ;  
                 / *   H i d e   h e a d e r s   * /  
         }  
  
         . c l e a n - t a b l e ,  
         . c l e a n - t a b l e   t b o d y ,  
         . c l e a n - t a b l e   t r ,  
         . c l e a n - t a b l e   t d   {  
                 d i s p l a y :   b l o c k ;  
                 w i d t h :   1 0 0 % ;  
         }  
  
         . c l e a n - t a b l e   t r   {  
                 b a c k g r o u n d :   v a r ( - - s u r f a c e ) ;  
                 m a r g i n - b o t t o m :   1 6 p x ;  
                 b o r d e r - r a d i u s :   v a r ( - - r a d i u s - m d ) ;  
                 b o x - s h a d o w :   v a r ( - - s h a d o w - c a r d ) ;  
                 b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r ) ;  
                 p a d d i n g :   1 6 p x ;  
         }  
  
         . c l e a n - t a b l e   t d   {  
                 d i s p l a y :   f l e x ;  
                 j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ;  
                 a l i g n - i t e m s :   c e n t e r ;  
                 t e x t - a l i g n :   r i g h t ;  
                 p a d d i n g :   8 p x   0 ;  
                 b o r d e r - b o t t o m :   1 p x   s o l i d   v a r ( - - b o r d e r ) ;  
                 f o n t - s i z e :   1 4 p x ;  
         }  
  
         . c l e a n - t a b l e   t d : l a s t - c h i l d   {  
                 b o r d e r - b o t t o m :   n o n e ;  
                 p a d d i n g - t o p :   1 6 p x ;  
                 j u s t i f y - c o n t e n t :   f l e x - e n d ;  
                 g a p :   1 0 p x ;  
         }  
  
         . c l e a n - t a b l e   t d : : b e f o r e   {  
                 c o n t e n t :   a t t r ( d a t a - l a b e l ) ;  
                 f o n t - w e i g h t :   7 0 0 ;  
                 c o l o r :   v a r ( - - t e x t - 3 ) ;  
                 f o n t - s i z e :   1 1 p x ;  
                 t e x t - t r a n s f o r m :   u p p e r c a s e ;  
                 t e x t - a l i g n :   l e f t ;  
                 m a r g i n - r i g h t :   a u t o ;  
                 f l e x - s h r i n k :   0 ;  
                 w i d t h :   4 0 % ;  
         }  
  
         / *   C l i e n t e   n a m e   s p e c i a l   h a n d l i n g   * /  
         . c l e a n - t a b l e   t d   . c l i e n t - c e l l   {  
                 t e x t - a l i g n :   r i g h t ;  
                 a l i g n - i t e m s :   f l e x - e n d ;  
         }  
  
         / *   A c t i o n s   c e l l   s p e c i a l   h a n d l i n g   * /  
         . c l e a n - t a b l e   t d . a c t i o n s - c e l l   {  
                 j u s t i f y - c o n t e n t :   f l e x - e n d ;  
                 / *   A l i g n   b u t t o n s   r i g h t   * /  
                 w i d t h :   1 0 0 % ;  
         }  
  
         / *   4 .   T o u c h   T a r g e t s   &   T y p o g r a p h y   * /  
         i n p u t ,  
         s e l e c t ,  
         b u t t o n ,  
         . b t n   {  
                 m i n - h e i g h t :   4 8 p x ;  
                 / *   T o u c h   f r i e n d l y   * /  
                 f o n t - s i z e :   1 6 p x ;  
                 / *   N o   z o o m   o n   i O S   * /  
         }  
  
         . b t n - a c t i o n - i c o n   {  
                 w i d t h :   4 4 p x ;  
                 h e i g h t :   4 4 p x ;  
         }  
  
         / *   F i l t e r   f o r m   s t a c k i n g   * /  
         f o r m [ m e t h o d = " g e t " ]   {  
                 f l e x - d i r e c t i o n :   c o l u m n ;  
         }  
  
         f o r m [ m e t h o d = " g e t " ]   s e l e c t ,  
         f o r m [ m e t h o d = " g e t " ]   b u t t o n   {  
                 m a x - w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
                 w i d t h :   1 0 0 % ;  
         }  
 }  
 / *           M O B I L E   F I X E S   V 2   ( U R G E N T )                                                                                   * /  
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {  
  
         / *   1 .   S I D E B A R   &   M E N U   ( H a m b u r g e r )   * /  
         . a p p - s h e l l   {  
                 g r i d - t e m p l a t e - c o l u m n s :   1 f r ;  
                 / *   S i d e b a r   i s   h i d d e n   f r o m   f l o w   * /  
                 g r i d - t e m p l a t e - a r e a s :   " m a i n " ;  
         }  
  
         . s i d e b a r   {  
                 p o s i t i o n :   f i x e d ;  
                 t o p :   0 ;  
                 l e f t :   0 ;  
                 w i d t h :   8 0 % ;  
                 m a x - w i d t h :   2 8 0 p x ;  
                 h e i g h t :   1 0 0 v h ;  
                 z - i n d e x :   1 0 0 0 ;  
                 / *   H i g h   z - i n d e x   * /  
                 t r a n s f o r m :   t r a n s l a t e X ( - 1 0 0 % ) ;  
                 t r a n s i t i o n :   t r a n s f o r m   0 . 3 s   c u b i c - b e z i e r ( 0 . 4 ,   0 . 0 ,   0 . 2 ,   1 ) ;  
                 b o x - s h a d o w :   5 p x   0   2 5 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 2 ) ;  
                 b o r d e r - r i g h t :   n o n e ;  
         }  
  
         / *   S h o w   S i d e b a r   w h e n   . o p e n   c l a s s   i s   t o g g l e d   b y   J S   * /  
         . s i d e b a r . o p e n   {  
                 t r a n s f o r m :   t r a n s l a t e X ( 0 ) ;  
         }  
  
         / *   O v e r l a y   B a c k g r o u n d   * /  
         . s i d e b a r - o v e r l a y   {  
                 p o s i t i o n :   f i x e d ;  
                 i n s e t :   0 ;  
                 / *   t o p / r i g h t / b o t t o m / l e f t :   0   * /  
                 b a c k g r o u n d :   r g b a ( 0 ,   0 ,   0 ,   0 . 5 ) ;  
                 / *   D a r k   o v e r l a y   * /  
                 z - i n d e x :   9 0 0 ;  
                 o p a c i t y :   0 ;  
                 p o i n t e r - e v e n t s :   n o n e ;  
                 t r a n s i t i o n :   o p a c i t y   0 . 3 s ;  
                 b a c k d r o p - f i l t e r :   b l u r ( 2 p x ) ;  
         }  
  
         . s i d e b a r - o v e r l a y . s h o w   {  
                 o p a c i t y :   1 ;  
                 p o i n t e r - e v e n t s :   a u t o ;  
         }  
  
         / *   2 .   T O P B A R   ( F i x e d / S t i c k y )   * /  
         . t o p b a r   {  
                 p o s i t i o n :   s t i c k y ;  
                 t o p :   0 ;  
                 z - i n d e x :   8 0 0 ;  
                 h e i g h t :   5 6 p x ;  
                 / *   E x p l i c i t   5 6 p x   * /  
                 b a c k g r o u n d :   # f f f f f f ;  
                 b o x - s h a d o w :   0   4 p x   6 p x   - 1 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 0 5 ) ;  
                 / *   S o f t   s h a d o w   * /  
                 p a d d i n g :   0   1 2 p x ;  
                 d i s p l a y :   f l e x ;  
                 a l i g n - i t e m s :   c e n t e r ;  
         }  
  
         . t o p b a r - l e f t   {  
                 g a p :   1 2 p x ;  
         }  
  
         . m e n u - t o g g l e   {  
                 d i s p l a y :   f l e x   ! i m p o r t a n t ;  
                 f o n t - s i z e :   2 4 p x ;  
                 w i d t h :   4 0 p x ;  
                 h e i g h t :   4 0 p x ;  
                 a l i g n - i t e m s :   c e n t e r ;  
                 j u s t i f y - c o n t e n t :   c e n t e r ;  
                 b o r d e r :   n o n e ;  
                 b a c k g r o u n d :   t r a n s p a r e n t ;  
                 c o l o r :   v a r ( - - t e x t ) ;  
         }  
  
         / *   H i d e   B r e a d c r u m b s   o n   m o b i l e   t o   s a v e   s p a c e   * /  
         . t o p b a r - b r e a d c r u m b   {  
                 d i s p l a y :   n o n e ;  
         }  
  
         . t o p b a r - t i t l e   {  
                 f o n t - s i z e :   1 6 p x ;  
                 f o n t - w e i g h t :   7 0 0 ;  
         }  
  
         / *   3 .   C O N T E N T   S P A C I N G   * /  
         . m a i n - c o n t e n t   {  
                 p a d d i n g :   1 6 p x ;  
                 / *   R e d u c e d   p a d d i n g   * /  
                 p a d d i n g - b o t t o m :   8 0 p x ;  
         }  
  
         / *   4 .   G E N E R A L   T Y P O G R A P H Y   M O B I L E   * /  
         b o d y   {  
                 f o n t - s i z e :   1 4 p x ;  
         }  
  
         h 1 ,  
         . p a g e - t i t l e   {  
                 f o n t - s i z e :   2 0 p x ;  
         }  
  
         / *   C a r d s   &   R o u n d i n g   * /  
         . k p i - c a r d ,  
         . a g i n g - c a r d ,  
         . q u e u e - s e c t i o n ,  
         . s i d e b a r - s e c t i o n ,  
         . k p i - v 2   {  
                 b o r d e r - r a d i u s :   1 2 p x   ! i m p o r t a n t ;  
                 b o x - s h a d o w :   0   4 p x   6 p x   - 1 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 0 5 ) ;  
         }  
 }  
 / *           D A S H B O A R D   M O B I L E   S P E C I F I C S                                                                             * /  
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {  
  
         / *   K P I   G r i d :   S t a c k e d   1   C o l u m n   * /  
         . k p i - g r i d - v 2   {  
                 d i s p l a y :   f l e x   ! i m p o r t a n t ;  
                 f l e x - d i r e c t i o n :   c o l u m n   ! i m p o r t a n t ;  
                 g a p :   1 2 p x   ! i m p o r t a n t ;  
         }  
  
         . k p i - v 2   {  
                 w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
                 m i n - h e i g h t :   1 0 0 p x ;  
                 p a d d i n g :   1 6 p x   2 0 p x   ! i m p o r t a n t ;  
         }  
  
         / *   K P I   T y p o g r a p h y   O v e r r i d e   * /  
         . k p i - v 2 - l a b e l   {  
                 f o n t - s i z e :   1 4 p x   ! i m p o r t a n t ;  
                 c o l o r :   v a r ( - - t e x t - 2 ) ;  
                 m a r g i n - b o t t o m :   4 p x   ! i m p o r t a n t ;  
         }  
  
         . k p i - v 2 - v a l u e   {  
                 f o n t - s i z e :   2 8 p x   ! i m p o r t a n t ;  
                 l e t t e r - s p a c i n g :   - 0 . 5 p x ;  
         }  
  
         / *   A g i n g   G r i d :   S t a c k e d   * /  
         . a g i n g - g r i d   {  
                 g r i d - t e m p l a t e - c o l u m n s :   1 f r   ! i m p o r t a n t ;  
                 g a p :   1 2 p x   ! i m p o r t a n t ;  
         }  
  
         / *   C o n t e n t   G r i d   * /  
         . c o n t e n t - g r i d   {  
                 g r i d - t e m p l a t e - c o l u m n s :   1 f r   ! i m p o r t a n t ;  
                 g a p :   2 4 p x   ! i m p o r t a n t ;  
         }  
  
         / *   T a b l e   t o   C a r d s   ( E n s u r e   i t   a p p l i e s   t o   Q u e u e   T a b l e   t o o )   * /  
         . q - t a b l e ,  
         . q - t a b l e   t b o d y ,  
         . q - t a b l e   t r ,  
         . q - t a b l e   t d   {  
                 d i s p l a y :   b l o c k   ! i m p o r t a n t ;  
                 w i d t h :   1 0 0 %   ! i m p o r t a n t ;  
         }  
  
         . q - t a b l e   t h e a d   {  
                 d i s p l a y :   n o n e   ! i m p o r t a n t ;  
         }  
  
         . q - t a b l e   t r   {  
                 m a r g i n - b o t t o m :   1 6 p x ;  
                 b a c k g r o u n d :   v a r ( - - s u r f a c e ) ;  
                 b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r ) ;  
                 b o r d e r - r a d i u s :   1 2 p x ;  
                 p a d d i n g :   1 6 p x ;  
                 b o x - s h a d o w :   0   2 p x   4 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 0 5 ) ;  
         }  
  
         . q - t a b l e   t d   {  
                 d i s p l a y :   f l e x ;  
                 j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ;  
                 a l i g n - i t e m s :   c e n t e r ;  
                 b o r d e r - b o t t o m :   1 p x   s o l i d   v a r ( - - b o r d e r ) ;  
                 p a d d i n g :   8 p x   0 ;  
                 t e x t - a l i g n :   r i g h t ;  
         }  
  
         . q - t a b l e   t d : l a s t - c h i l d   {  
                 b o r d e r - b o t t o m :   n o n e ;  
                 j u s t i f y - c o n t e n t :   f l e x - e n d ;  
                 p a d d i n g - t o p :   1 2 p x ;  
         }  
  
         . q - t a b l e   t d : : b e f o r e   {  
                 c o n t e n t :   a t t r ( d a t a - l a b e l ) ;  
                 f o n t - w e i g h t :   7 0 0 ;  
                 f o n t - s i z e :   1 1 p x ;  
                 c o l o r :   v a r ( - - t e x t - 3 ) ;  
                 t e x t - t r a n s f o r m :   u p p e r c a s e ;  
                 t e x t - a l i g n :   l e f t ;  
                 m a r g i n - r i g h t :   a u t o ;  
         }  
 }  
 / *   6 .   L O G O   &   T I T L E   V I S I B I L I T Y   * /  
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {  
         . m o b i l e - l o g o   {  
                 d i s p l a y :   b l o c k   ! i m p o r t a n t ;  
                 m a r g i n - r i g h t :   a u t o ;  
                 / *   P u s h   t o   l e f t   i f   n e e d e d   * /  
         }  
  
         . d e s k t o p - o n l y   {  
                 d i s p l a y :   n o n e   ! i m p o r t a n t ;  
         }  
  
         / *   A d j u s t   t o p b a r   l a y o u t   t o   a c c o m o d a t e   l o g o   * /  
         . t o p b a r - l e f t   {  
                 f l e x :   1 ;  
                 j u s t i f y - c o n t e n t :   f l e x - s t a r t ;  
         }  
 }  
  
 @ m e d i a   ( m i n - w i d t h :   7 6 9 p x )   {  
         . m o b i l e - l o g o   {  
                 d i s p l a y :   n o n e   ! i m p o r t a n t ;  
         }  
 }  
 . a g i n g - c a r d : h o v e r  
   c u r s o r :   p o i n t e r ;    
 t r a n s f o r m :    
 s c a l e ( 1 . 0 2 ) ;    
 t r a n s i t i o n :    
 t r a n s f o r m   0 . 2 s ;    
 
.regua-button { position: relative; }
.regua-button:active { transform: scale(0.95); }
.regua-dropdown { animation: slideDown 0.2s ease-out; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Regua Dots - Visual indicator for collection level */
.regua-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  position: relative;
  display: inline-block;
  cursor: help;
  vertical-align: middle;
}
.regua-dot::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  opacity: 0.6;
}
.dot-LEVE {
  background: radial-gradient(circle at 35% 35%, #6ee7b7, #10b981);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}
.dot-MODERADA {
  background: radial-gradient(circle at 35% 35%, #fcd34d, #f97316);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}
.dot-INTENSA {
  background: radial-gradient(circle at 35% 35%, #fca5a5, #ef4444);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}
.dot-AUTOMATICO {
  background: radial-gradient(circle at 35% 35%, #e2e8f0, #94a3b8);
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.4);
}
