/*
Theme Name: Kamasa B2B v2
Theme URI: https://kamasa-b2b.local
Author: Grupo Kamasa
Description: Layout skeleton for Kamasa B2B v2 theme.
Version: 0.1.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kamasa-b2b-theme-v2
*/

/*
 * Purpose: Base styles for Kamasa B2B v2.
 * Module: Theme
 * Author: Kamasa B2B v2
 * Phase: 3/7 – Layout skeleton
 * State: SKELETON UI
 */

/* FONTS GLOBAL */
@font-face {
    font-family: 'Myriad Pro';
    src: url('assets/fonts/myriad-pro-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Myriad Pro';
    src: url('assets/fonts/myriad-pro-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Myriad Pro';
    src: url('assets/fonts/myriad-pro-light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

:root {
    --k-font-base: 'Myriad Pro', sans-serif;
}

/* design system variables defined in inc/design-system.php */

/* Reset & Defensive Rules (Overflow Protection) */
img,
iframe,
video {
    max-width: 100%;
    height: auto;
}

html,
body {
    /* overflow-x: hidden; */
    /* HARDENING: Global safety net against scroll leaks */
}

/* HARDENING: Agent Panel Isolation */
.k-agent__panel {
    left: auto !important;
    right: 20px !important;
    max-width: calc(100vw - 40px);
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--k-font-base);
    color: var(--k-color-secondary);
    background-color: var(--k-color-neutral);
}

.k-container {
    width: min(1200px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.k-grid {
    display: grid;
    gap: 1.5rem;
}

.k-section {
    padding-block: 3rem;
}

.k-section__title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 0.75rem;
}

.k-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--k-radius-pill);
    padding: calc(var(--k-spacing-base) * 0.75) var(--k-spacing-gutter);
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    background-color: var(--k-color-primary);
    border: none;
}

.k-btn--primary {
    background-color: var(--k-color-primary);
    color: #fff;
}

.k-section__subtitle {
    color: var(--k-color-muted);
}

.k-panel-page {
    padding: 3rem 0 4rem;
}

.k-panel {
    background-color: #fff;
    border: var(--k-border-soft);
    border-radius: var(--k-radius-card);
    padding: var(--k-spacing-panel);
    box-shadow: var(--k-shadow-card);
    margin: var(--k-spacing-base) 0 3rem;
}

.k-panel--error {
    border-color: var(--k-border-strong);
}

.k-panel__header {
    border-bottom: var(--k-border-soft);
    padding-bottom: var(--k-spacing-base);
    margin-bottom: 1.75rem;
}

.k-panel__title {
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
    margin: 0;
    color: var(--k-color-secondary);
}

.k-panel__subtitle {
    margin: 0.35rem 0 0;
    color: rgba(28, 28, 28, 0.65);
    font-size: 1rem;
}

.k-panel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.k-panel__section {
    background-color: var(--k-color-neutral);
    border: var(--k-border-soft);
    border-radius: var(--k-radius-small);
    padding: 1.5rem;
}

.k-panel__section--error-card {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.k-panel__section-header {
    margin-bottom: 0.5rem;
}

.k-panel__section-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--k-color-dark);
}

.k-panel__empty {
    margin: 0;
    color: var(--k-color-muted);
    font-style: italic;
}

.k-client-card {
    padding: 0;
}

.k-client-card__title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: var(--k-color-dark);
}

.k-client-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.k-client-card__list li {
    font-size: 0.95rem;
    color: rgba(28, 28, 28, 0.8);
}

.k-client-card__list span {
    font-weight: 600;
    display: inline-block;
    width: 150px;
    color: rgba(28, 28, 28, 0.65);
}

.k-credit {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.k-credit__title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--k-color-dark);
}

.k-credit__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(28, 28, 28, 0.75);
}

.k-credit__row strong {
    color: var(--k-color-dark);
    font-weight: 600;
}

.k-credit__bar {
    height: 10px;
    border-radius: 6px;
    background-color: #e8e8e8;
    overflow: hidden;
}

.k-credit__bar-fill {
    height: 100%;
    border-radius: 6px;
    background-color: var(--k-color-primary);
    transition: width 0.3s ease;
}

.k-panel__section--invoices {
    margin-top: 1.5rem;
    padding: var(--k-spacing-panel);
}

.k-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.k-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.k-table th,
.k-table td {
    text-align: left;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(28, 28, 28, 0.08);
}

.k-table thead th {
    font-weight: 600;
    color: rgba(28, 28, 28, 0.75);
}

.k-table--invoices tbody tr:last-of-type td {
    border-bottom: none;
}

.k-invoice-row--pending {
    background-color: #fffaf0;
}

.k-invoice-row--overdue {
    background-color: #ffecec;
}

.k-invoice-row--paid {
    background-color: #f4fff5;
}

.k-invoice-row--pending td,
.k-invoice-row--overdue td,
.k-invoice-row--paid td {
    font-weight: 500;
}

.k-search {
    padding-block: 3.5rem;
}

.k-search__header h1 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin-bottom: 0.5rem;
}

.k-search__header p {
    max-width: 720px;
    color: var(--k-color-muted);
    margin: 0;
    font-size: 1.05rem;
}

.k-search__header {
    margin-bottom: 1.75rem;
}

.k-search-form {
    background-color: #fff;
    border: var(--k-border-soft);
    border-radius: var(--k-radius-card);
    padding: 1.75rem;
    box-shadow: var(--k-shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.k-search-form__panel {
    transition: max-height 0.35s ease, opacity 0.35s ease;
    max-height: 1200px;
    opacity: 1;
}

.k-search-form--collapsed .k-search-form__panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.k-search-form__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.k-search-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.k-search-form__group--price {
    grid-column: span 2;
}

.k-search-form__label {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(28, 28, 28, 0.6);
}

.k-search-form__input,
.k-search-form__select {
    padding: 0.9rem 1rem;
    border-radius: var(--k-radius-small);
    border: var(--k-border-soft);
    font-size: 1rem;
    color: var(--k-color-secondary);
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.k-search-form__input:focus,
.k-search-form__select:focus {
    border-color: var(--k-color-primary);
    box-shadow: 0 0 0 2px rgba(230, 46, 57, 0.2);
    outline: none;
}

.k-search-form__price-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.k-search-form__group--specs {
    grid-column: 1 / -1;
}

.k-search-form__spec-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.k-search-form__spec-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.k-search-form__spec-title {
    font-weight: 600;
    color: var(--k-color-muted);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.k-search-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.k-search-form__actions-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.k-search-form__clear {
    background: none;
    border: none;
    font-size: 1rem;
    color: rgba(28, 28, 28, 0.8);
    cursor: pointer;
    padding: 0;
}

.k-search-form__toggle {
    background-color: transparent;
    border: 1px solid rgba(28, 28, 28, 0.2);
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--k-color-dark);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.k-search-form__toggle:hover {
    border-color: var(--k-color-primary);
}

.k-search__results {
    margin-top: 2.5rem;
}

.k-search__empty {
    border: 1px dashed rgba(28, 28, 28, 0.2);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    color: var(--k-color-muted);
    font-style: italic;
    background-color: #fff;
}

@media (min-width: 1024px) {
    .k-search-form__group--price {
        grid-column: span 1;
    }

    .k-search-form__toggle {
        display: none;
    }
}

@media (max-width: 960px) {
    .k-search-form {
        padding: 1rem;
    }

    .k-search-form__panel {
        max-height: none;
    }

    .k-search-form--collapsed .k-search-form__panel {
        padding: 0;
    }
}

/* Comparator */
.k-btn--ghost {
    background: transparent;
    border: var(--k-border-soft);
    color: var(--k-color-secondary);
}

.k-btn--ghost:hover,
.k-btn--ghost:focus-visible {
    border-color: var(--k-color-primary);
    color: var(--k-color-primary);
}

.k-btn--outline {
    background: transparent;
    border: var(--k-border-soft);
    color: var(--k-color-secondary);
}

.k-btn--outline:hover,
.k-btn--outline:focus-visible {
    border-color: var(--k-color-primary);
    color: var(--k-color-dark);
}

.k-comparator-page {
    padding-bottom: 3rem;
    background-color: #f5f5f5;
}

.k-comparator {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 24px 60px rgba(3, 7, 18, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.k-comparator__header {
    max-width: 720px;
}

.k-comparator__controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.k-comparator__control-group {
    background-color: #fefefe;
    border: 1px solid rgba(28, 28, 28, 0.08);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 140px;
}

.k-comparator__label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(28, 28, 28, 0.6);
    margin: 0;
}

.k-comparator__sku-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.k-comparator__sku-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(28, 28, 28, 0.1);
    font-size: 0.85rem;
    color: var(--k-color-muted);
    background: #f9f9f9;
}

.k-comparator__empty-note {
    margin: 0;
    color: var(--k-color-muted);
    font-style: italic;
}

.k-comparator__add-form {
    gap: 0.5rem;
}

.k-comparator__add-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.k-comparator__input {
    flex: 1;
    border-radius: 10px;
    border: 1px solid rgba(28, 28, 28, 0.1);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background: #fff;
}

.k-comparator__input:focus {
    outline: none;
    border-color: var(--k-color-primary);
    box-shadow: 0 0 0 2px rgba(230, 46, 57, 0.15);
}

.k-comparator__clear-group {
    justify-content: flex-end;
}

.k-comparator__clear-btn {
    align-self: flex-end;
}

.k-comparator__table {
    width: 100%;
}

.k-comparator-table {
    border: 1px solid rgba(28, 28, 28, 0.08);
    border-radius: 16px;
    background-color: #fff;
}

.k-comparator-table__body {
    overflow-x: auto;
    padding: 1rem;
}

.k-comparator-table__body--scrolled {
    box-shadow: inset 14px 0 24px -20px rgba(0, 0, 0, 0.55), inset -14px 0 24px -20px rgba(0, 0, 0, 0.55);
}

.k-comparator-table__grid {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    font-size: 0.95rem;
}

.k-comparator-table__grid th,
.k-comparator-table__grid td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid rgba(28, 28, 28, 0.08);
    vertical-align: top;
}

.k-comparator-table__grid th {
    font-weight: 600;
    color: rgba(28, 28, 28, 0.75);
}

.k-comparator-table__section-title th {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background-color: #f4f4f4;
    border-bottom: 1px solid rgba(28, 28, 28, 0.05);
}

.k-comparator-table__row:last-of-type td {
    border-bottom: none;
}

.k-comparator-table__image {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(28, 28, 28, 0.1);
}

.k-comparator-table__image-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 80px;
    border-radius: 12px;
    background-color: #f2f2f2;
    color: var(--k-color-muted);
    font-size: 0.8rem;
}

.k-comparator-table__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.k-comparator-table__action {
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(28, 28, 28, 0.15);
    color: var(--k-color-dark);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.k-comparator-table__action:hover,
.k-comparator-table__action:focus-visible {
    border-color: var(--k-color-primary);
    color: var(--k-color-primary);
}

.k-comparator-table__note-row td {
    border-bottom: none;
    font-style: italic;
    color: var(--k-color-muted);
    padding-bottom: 1.75rem;
}

.k-comparator-table__accessories {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
}

.k-comparator-table__accessories li {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.k-comparator-table__empty-accessories {
    font-style: italic;
    color: var(--k-color-muted);
}

.k-comparator__empty {
    background-color: #fff;
    border: 1px dashed rgba(28, 28, 28, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: var(--k-color-muted);
    font-style: italic;
}

@media (max-width: 860px) {
    .k-comparator {
        padding: 1.5rem;
    }

    .k-comparator__add-row {
        flex-direction: column;
    }

    .k-comparator-table__grid {
        min-width: 540px;
    }
}

/* Specific Icons (Dashicon Mapping) */
.k-icon-manuales:before {
    content: "\f10c";
}

/* Hammer */
.k-icon-electricas:before {
    content: "\f108";
}

/* Bolt */
.k-icon-accesorios:before {
    content: "\f111";
}

/* Gear */
.k-icon-epps:before {
    content: "\f160";
}

/* Shield */
.k-icon-generic:before {
    content: "\f111";
}

.k-icon-maquinaria:before {
    content: "\f231";
}

/* Engine/Car */


/* Columns */
.k-mega-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Level 1 Header */
.k-mega-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.k-mega-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--k-color-secondary);
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.k-mega-title:hover {
    color: var(--k-color-primary);
}

.k-mega-title .k-icon {
    font-size: 1.25rem;
    color: var(--k-color-primary);
}

.k-mega-desc {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Links Container */
.k-mega-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Level 2: Linea (Now the main link) */
.k-mega-cat-l2 {
    font-weight: 500;
    /* Reduced from 600 */
    color: #444;
    /* Softer color */
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: 0.25rem;
    display: block;
    padding: 0.25rem 0;
    transition: all 0.2s ease;
}

.k-mega-cat-l2:hover {
    color: var(--k-color-primary);
    transform: translateX(4px);
    /* Subtle feedback */
}

/* Level 3: Sublinea (REMOVED from UI) */
/* .k-mega-link-l3 styles removed implies we just don't use them */


/* Responsive constraints */
@media (max-width: 1024px) {
    .k-dropdown-mega {
        min-width: 100%;
        left: 0;
        right: 0;
    }
}

/* =========================================
   B2B COMMERCIAL PANEL STYLES
   ========================================= */

/* Global Banner */
.k-b2b-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--k-radius-card);
    margin-bottom: 2rem;
    border-left: 5px solid;
    box-shadow: var(--k-shadow-soft);
}

.k-b2b-banner__icon {
    font-size: 2rem;
    line-height: 1;
}

.k-b2b-banner__content {
    flex: 1;
}

.k-b2b-banner__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.k-b2b-banner__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Status Variants */
.k-b2b-status--normal {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #14532d;
}

.k-b2b-status--seguimiento {
    background-color: #fefce8;
    border-color: #eab308;
    color: #713f12;
}

.k-b2b-status--cobranza {
    background-color: #fff7ed;
    border-color: #f97316;
    color: #7c2d12;
}

.k-b2b-status--bloqueado {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #7f1d1d;
}

/* Panel Grid Layout */
.k-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* 40% - 60% split */
    gap: 2rem;
    align-items: start;
}

@media (max-width: 960px) {
    .k-panel-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Enhancements */
.k-panel-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Softer border */
    border-radius: 12px;
    padding: 1.5rem;
    /* margin-bottom handled by k-mb-4 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.k-panel-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.k-panel-card__header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}

.k-header-meta {
    font-size: 0.85rem;
    color: #666;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Info Rows (Key-Value) */
.k-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.k-info-row:last-child {
    margin-bottom: 0;
}

.k-label {
    color: #666;
}

.k-value {
    color: #111;
    text-align: right;
}

.k-font-bold {
    font-weight: 700;
}

.k-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e5e7eb;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

/* Check List (Permissions) */
.k-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.k-check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.k-check-list li:before {
    font-family: monospace;
    /* Fallback icon */
    content: '';
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    text-align: center;
    line-height: 1.25rem;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.k-check-list li.k-ok:before {
    content: '✓';
    background: #dcfce7;
    color: #166534;
}

.k-check-list li.k-no:before {
    content: '✕';
    background: #fee2e2;
    color: #991b1b;
}

.k-check-list li.k-no {
    color: #991b1b;
    text-decoration: line-through;
    opacity: 0.8;
}

/* Alerts inside cards */
.k-alert {
    padding: 0.75rem;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
}

.k-alert--warning {
    background: #fef3c7;
    color: #92400e;
}

.k-alert--danger {
    background: #fee2e2;
    color: #b91c1c;
}

/* Credit Visuals */
.k-credit-visual {
    padding-top: 0.5rem;
}

.k-credit-bar-container {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.k-credit-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 6px;
    transition: width 1s ease-out;
}

.k-credit-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.k-stat-item {
    display: flex;
    flex-direction: column;
}

.k-stat-item .k-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.k-stat-item .k-number {
    font-weight: 700;
    font-size: 1rem;
}

.k-stat-item--used .k-number {
    color: #2563eb;
}

.k-stat-item--available .k-number {
    color: #16a34a;
}

/* Overdue Summary */
.k-overdue-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed #e5e7eb;
}

.k-overdue-item {
    display: flex;
    flex-direction: column;
}

.k-big-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.k-meta-label {
    font-size: 0.85rem;
    color: #666;
}

.k-text-danger {
    color: #dc2626 !important;
}

.k-text-success {
    color: #16a34a !important;
}

.k-text-muted {
    color: #9ca3af !important;
}

/* Table Compact */
.k-table--compact th,
.k-table--compact td {
    padding: 0.5rem 0.35rem;
    font-size: 0.9rem;
}

.k-table-responsive {
    overflow-x: auto;
}

.k-row-danger {
    background-color: #fef2f2 !important;
}

.k-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.k-badge--danger {
    background: #fee2e2;
    color: #b91c1c;
}

.k-badge--warning {
    background: #fef3c7;
    color: #92400e;
}

/* Neutral State Card */
.k-panel-card--neutral-state {
    padding: 4rem 2rem;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
}

.k-icon-large {
    font-size: 3rem;
}

.k-text-center {
    text-align: center;
}

.k-text-right {
    text-align: right;
}

.k-mb-4 {
    margin-bottom: 1.5rem;
}

.k-mt-4 {
    margin-top: 1.5rem;
}

.k-mt-3 {
    margin-top: 1rem;
}

.k-text-sm {
    font-size: 0.875rem;
}

.k-text-xs {
    font-size: 0.75rem;
}