.huskyerp-app-only {
    font-size: 14px;
    background: #1f2229;
    color: #e5e7eb;
    margin: 0;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.huskyerp-app-only.huskyerp-theme-dark {
    background: #000000;
}

/* Custom Scrollbars for Dark Mode */
.huskyerp-app-only ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.huskyerp-app-only ::-webkit-scrollbar-track {
    background: #1b2028;
    border-radius: 5px;
}

.huskyerp-app-only ::-webkit-scrollbar-thumb {
    background: #3a4558;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.huskyerp-app-only ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.huskyerp-app-only * {
    scrollbar-width: thin;
    scrollbar-color: #3a4558 #1b2028;
}

.huskyerp-app-only #wpadminbar,
.huskyerp-app-only .site-header,
.huskyerp-app-only #masthead,
.huskyerp-app-only #header,
.huskyerp-app-only .navbar {
    display: none !important;
}

.huskyerp-app-only.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.huskyerp-sidebar {
    border-right: 1px solid #2e3440;
    background: #151922;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: sticky;
    height: 100vh;
    max-height: 100vh;
    top: 0;
}

.huskyerp-sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.is-sidebar-collapsed .huskyerp-sidebar-inner {
    padding: 20px 10px;
}

.huskyerp-menu {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    margin-bottom: 10px;
}

.huskyerp-sidebar-header {
    margin: 0 0 24px;
    color: #f8fafc;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 6px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.huskyerp-sidebar-icon {
    font-size: 28px;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.huskyerp-sidebar-text {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.is-sidebar-collapsed .huskyerp-sidebar-text {
    opacity: 0;
    width: 0;
    transform: translateX(-10px);
    pointer-events: none;
}

.is-sidebar-collapsed .huskyerp-sidebar-header {
    justify-content: center;
    margin-left: 9px;
}

.is-sidebar-collapsed .huskyerp-sidebar-icon {
    transform: scale(1.1);
}

/* --- Sidebar collapse toggle --- */
.huskyerp-sidebar-toggle {
    margin-top: auto;
    position: sticky;
    bottom: 0;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    background: #151922 !important;
    border: 1px solid #2d3543 !important;
    border-radius: 12px !important;
    color: #94a3b8 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.huskyerp-sidebar-toggle:hover {
    background: #1f2736 !important;
    border-color: #3a4558 !important;
    color: #e2e8f0 !important;
}

.huskyerp-sidebar-toggle svg {
    transition: transform 0.3s ease;
}

.huskyerp-menu button {
    width: 100%;
    margin-bottom: 4px;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.huskyerp-menu-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.huskyerp-menu-icon svg {
    display: block;
}

.huskyerp-menu-label {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.is-sidebar-collapsed .huskyerp-menu button {
    padding: 12px;
    justify-content: center;
}

.is-sidebar-collapsed .huskyerp-menu-label {
    opacity: 0;
    width: 0;
    transform: translateX(-10px);
    pointer-events: none;
    position: absolute
}

.huskyerp-menu button:hover {
    background: #1e2636;
    color: #e2e8f0;
}

.huskyerp-menu button:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.huskyerp-menu button.is-active {
    background: #1e293b;
    border-color: transparent;
    color: #60a5fa;
    box-shadow: none;
    transform: translateY(0);
}

.huskyerp-motiv-badge.is-coins { border-color: #6b7280; }
.huskyerp-motiv-badge.is-pending { border-color: #4f46e5; }
.huskyerp-motiv-badge.is-streak { border-color: #f59e0b; }
.huskyerp-motiv-badge.is-level { border-color: #0ea5e9; }
.huskyerp-motiv-badge.is-done { border-color: #10b981; }

.huskyerp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.huskyerp-box {
    padding-bottom: 12px;
    color: #e5e7eb;
}

.huskyerp-metric-main {
    border-color: #d2dae7;
}

.huskyerp-big-number {
    font-size: 52px;
    line-height: 1;
    margin: 10px 0 0;
    font-weight: 800;
    color: #111827;
}

.huskyerp-board-shortcuts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.huskyerp-subbox {
    background: #252d3a;
    border-color: #3a4558;
        padding: 20px;
}
.huskyerp-subbox h4 {
    margin: 0;
}

.huskyerp-kpi {
    font-size: 34px;
    margin: 8px 0;
    font-weight: 800;
    color: #f8fafc;
}

.huskyerp-quick-list {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.huskyerp-quick-link {
    width: 100%;
    text-align: left;
}

.huskyerp-quick-link.is-danger {
    background: #3b2328 !important;
    border-color: #85414f !important;
    color: #ffd8dd !important;
}

.huskyerp-dashboard-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1e293b;
}

.huskyerp-dashboard-funnel {
    padding: 16px;
}

.huskyerp-funnel-grid {
    display: grid;
    grid-template-columns: 1fr 28px 1fr 28px 1fr;
    gap: 10px;
    align-items: center;
}

.huskyerp-funnel-card {
    color: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.huskyerp-funnel-card.is-step-1 { background: linear-gradient(135deg, #4f8bff 0%, #3b6ee8 100%); }
.huskyerp-funnel-card.is-step-2 { background: linear-gradient(135deg, #29a5db 0%, #1e88c8 100%); }
.huskyerp-funnel-card.is-step-3 { background: linear-gradient(135deg, #1fb4cb 0%, #1497b3 100%); }

.huskyerp-funnel-number {
    font-size: 40px;
    line-height: 1;
    font-weight: 800;
}

.huskyerp-funnel-label {
    font-size: 16px;
    font-weight: 700;
    margin-top: 6px;
}

.huskyerp-funnel-card small {
    display: block;
    margin-top: 6px;
    opacity: 0.92;
}

.huskyerp-funnel-arrow {
    text-align: center;
    font-size: 24px;
    color: #94a3b8;
    font-weight: 800;
}

.huskyerp-chart-wrap {
    width: 100%;
    height: 320px;
    border: 1px solid #dde3ec;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
}

.huskyerp-chart-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.huskyerp-col h4 {
    margin: 0;
    font-size: 14px;
}

.huskyerp-list-title {
    cursor: text;
    border-radius: 8px;
    padding: 2px 2px 0px 6px;
}

.huskyerp-list-title:hover {
    background: #2a3344;
}

.huskyerp-list-inline-input {
    width: 100%;
    border: 1px solid #b7c4d8;
    border-radius: 10px;
    padding: 6px 8px;
    font-weight: 700;
    background: #fff;
    color: #111827;
}

.huskyerp-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    position: relative;
    z-index: 4;
}

.huskyerp-list-dropzone {
    border-radius: 10px;
    overflow-y: auto;
    padding-right: 2px;
}

.huskyerp-list-dropzone.is-over,
.huskyerp-col.is-over {
    outline: 2px dashed #60a5fa;
    outline-offset: -2px;
    background: rgba(96, 165, 250, 0.08);
}

.huskyerp-card {
    border: 1px solid #3b4557;
    border-radius: 14px;
    margin-bottom: 10px;
    padding: 12px;
    background: #1d242e;
    box-shadow: none !important;
    cursor: grab;
    font-size: 14px;
}

.huskyerp-board-view-wrap [data-card-id],
.huskyerp-board-view-wrap [data-draggable-list],
.huskyerp-board-view-wrap .huskyerp-list-drag-grip {
    cursor: grab;
}

body.huskyerp-is-dragging,
body.huskyerp-is-dragging * {
    cursor: grabbing !important;
}

.huskyerp-card-flags {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.huskyerp-card-inline-meta {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
}

.huskyerp-card-inline-meta .huskyerp-card-flags {
    margin-top: 0;
    display: inline-flex;
}

.huskyerp-card-inline-meta .huskyerp-card-quickline {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
}

.huskyerp-agenda-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #475569;
    background: #1f2937;
    color: #cbd5e1;
}

.huskyerp-agenda-badge.is-not-scheduled {
    background: #1f2937;
    border-color: #475569;
    color: #cbd5e1;
}

.huskyerp-agenda-badge.is-scheduled {
    background: #1e3a5f;
    border-color: #2563eb;
    color: #bfdbfe;
}

.huskyerp-agenda-badge.is-today {
    background: #3f2d0e;
    border-color: #f59e0b;
    color: #fef3c7;
}

.huskyerp-agenda-badge.is-overdue {
    background: #3f1d1d;
    border-color: #ef4444;
    color: #fecaca;
}

.huskyerp-agenda-badge.is-completed {
    background: #123325;
    border-color: #22c55e;
    color: #bbf7d0;
}

.huskyerp-child-progress-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #3b82f6;
    background: #172554;
    color: #bfdbfe;
}

.huskyerp-card-topline {
    margin-bottom: 7px;
    line-height: 1.3;
}

.huskyerp-card-topline strong {
    font-weight: 600;
}

.huskyerp-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.huskyerp-card.is-dragging,
.huskyerp-col.is-dragging {
    opacity: 0.55;
    transform: rotate(2deg) scale(1.02);
    box-shadow: none !important;
    cursor: grabbing !important;
}

.huskyerp-card-create-inline {
    margin-top: 6px;
    padding: 14px;
    border: 1px solid #334155;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72));
    box-shadow: 0 14px 28px rgba(2, 8, 23, 0.18);
}

.huskyerp-card-create-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.huskyerp-card-create-head strong {
    font-size: 15px;
    color: #e2e8f0;
}

.huskyerp-card-create-head small,
.huskyerp-card-create-schedule small {
    color: #94a3b8;
    line-height: 1.4;
}

.huskyerp-card-create-body {
    display: grid;
    gap: 12px;
}

.huskyerp-card-create-body > input[type="text"] {
    width: 100%;
    min-height: 42px;
    font-size: 15px;
}

.huskyerp-card-create-inline input[type="text"],
.huskyerp-card-create-inline input[type="datetime-local"],
.huskyerp-card-create-inline select,
.huskyerp-card-create-inline textarea {
    border: 1px solid rgba(71, 85, 105, 0.72);
    border-radius: 12px;
    background: rgba(9, 16, 28, 0.96);
    color: #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04);
}

.huskyerp-card-create-inline input[type="text"]::placeholder,
.huskyerp-card-create-inline input[type="datetime-local"]::placeholder,
.huskyerp-card-create-inline textarea::placeholder {
    color: #64748b;
}

.huskyerp-card-create-inline input[type="text"]:focus,
.huskyerp-card-create-inline input[type="datetime-local"]:focus,
.huskyerp-card-create-inline select:focus,
.huskyerp-card-create-inline textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.56);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.huskyerp-card-create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.huskyerp-card-create-field {
    display: grid;
    gap: 6px;
}

.huskyerp-card-create-field select,
.huskyerp-card-create-field input[type="datetime-local"] {
    width: 100%;
    min-height: 42px;
}

.huskyerp-card-create-field span {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
}

.huskyerp-card-create-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid rgba(71, 85, 105, 0.65);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.52);
    color: #cbd5e1;
    font-weight: 600;
    cursor: pointer;
}

.huskyerp-card-create-toggle input {
    accent-color: #38bdf8;
    margin: 0;
}

.huskyerp-card-create-toggle-copy {
    display: grid;
    gap: 2px;
}

.huskyerp-card-create-toggle-copy strong {
    font-size: 14px;
    color: #e2e8f0;
}

.huskyerp-card-create-toggle-copy small {
    font-size: 12px;
    color: #94a3b8;
}

.huskyerp-card-create-schedule {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(71, 85, 105, 0.45);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.3));
}

.huskyerp-card-create-schedule-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.huskyerp-card-create-chip {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #bae6fd;
    font-size: 12px;
    font-weight: 700;
}

.huskyerp-card-create-chip.is-ghost {
    border-color: rgba(148, 163, 184, 0.32);
    background: rgba(30, 41, 59, 0.5);
    color: #cbd5e1;
}

.huskyerp-card-create-schedule-summary {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(8, 47, 73, 0.42);
    border: 1px solid rgba(56, 189, 248, 0.18);
    color: #e0f2fe;
    font-size: 13px;
    font-weight: 700;
}

.huskyerp-card-create-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.huskyerp-card-create-actions button {
    flex: 1;
}

.huskyerp-card-create-actions [data-submit-add-card] {
    background: linear-gradient(180deg, #1d4ed8, #1e40af);
    border-color: rgba(96, 165, 250, 0.42);
    color: #eff6ff;
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.24);
}

.huskyerp-card-create-actions [data-submit-add-card]:disabled {
    opacity: 0.55;
    box-shadow: none;
}

.huskyerp-card-create-actions [data-cancel-add-card] {
    background: rgba(30, 41, 59, 0.82);
    border-color: rgba(71, 85, 105, 0.62);
}

.huskyerp-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid #cbd5e1;
    font-weight: 700;
    text-transform: capitalize;
}

.huskyerp-badge.critica { color: #7f1d1d; background: #fee2e2; border-color: #fca5a5; }
.huskyerp-badge.alta { color: #991b1b; background: #fecaca; border-color: #f87171; }
.huskyerp-badge.media { color: #9a3412; background: #fed7aa; border-color: #fb923c; }
.huskyerp-badge.baja { color: #a16207; background: #fef3c7; border-color: #facc15; }
.huskyerp-badge.minima { color: #854d0e; background: #fef9c3; border-color: #fde047; }
.huskyerp-badge.sin-definir { color: #6b7280; background: #f3f4f6; border-color: #d1d5db; }
.huskyerp-badge.is-status-done { color: #166534; background: #dcfce7; border-color: #86efac; }
.huskyerp-badge.is-status-pending { color: #92400e; background: #fef3c7; border-color: #fcd34d; }
.huskyerp-badge.is-status-review { color: #155e75; background: #cffafe; border-color: #67e8f9; }
.huskyerp-badge.is-status-neutral { color: #475569; background: #e2e8f0; border-color: #cbd5e1; }

/* Sidebar menu buttons: keep interactions flat to avoid overlap in collapsed mode */
.huskyerp-menu button,
.huskyerp-sidebar-toggle {
    transform: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.huskyerp-menu button:hover,
.huskyerp-menu button:active,
.huskyerp-sidebar-toggle:hover,
.huskyerp-sidebar-toggle:active {
    transform: none !important;
    box-shadow: none !important;
}

.huskyerp-menu button:focus,
.huskyerp-sidebar-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
}

.huskyerp-table .huskyerp-badge {
    font-size: 11px;
    padding: 2px 8px;
}

.huskyerp-calendar-box {
    padding: 16px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
}

.huskyerp-calendar-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.huskyerp-calendar-titleblock {
    display: flex;
    align-items: center;
    gap: 12px;
}

.huskyerp-calendar-titleblock h3 {
    margin: 0;
    font-size: 28px;
    text-transform: capitalize;
}

.huskyerp-calendar-viewlabel {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.huskyerp-calendar-range {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 14px;
}

.huskyerp-calendar-week-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.6);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.huskyerp-calendar-week-badge.is-current {
    border-color: rgba(96, 165, 250, 0.32);
    background: rgba(37, 99, 235, 0.18);
    color: #dbeafe;
}

.huskyerp-calendar-nav {
    display: flex;
    gap: 8px;
}

.huskyerp-calendar-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.huskyerp-calendar-viewswitch {
    display: inline-flex;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.72);
}

.huskyerp-calendar-viewswitch button {
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-weight: 700;
    border-radius: 10px;
}

.huskyerp-calendar-viewswitch button.is-active {
    background: rgba(37, 99, 235, 0.22);
    color: #eff6ff;
}

.huskyerp-calendar-nav button {
    min-width: 44px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    font-weight: 700;
}

.huskyerp-calendar-nav button:hover {
    border-color: rgba(125, 211, 252, 0.42);
    background: rgba(30, 41, 59, 0.92);
}

.huskyerp-calendar-grid-wrap {
    border: 1px solid rgba(71, 85, 105, 0.6);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(8, 15, 28, 0.94), rgba(15, 23, 42, 0.96));
    box-shadow: 0 26px 70px rgba(2, 8, 23, 0.34);
}

.huskyerp-calendar-head {
    display: grid;
    grid-template-columns: 74px repeat(7, minmax(160px, 1fr));
    min-height: 74px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.48);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.88));
}

.huskyerp-roulette-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.huskyerp-roulette-item {
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 8px;
    background: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.huskyerp-roulette-item strong {
    font-size: 12px;
    line-height: 1.2;
}

.huskyerp-roulette-item small {
    margin-left: auto;
    color: #93c5fd;
    font-weight: 700;
}

.huskyerp-roulette-item.is-winner {
    border-color: #f59e0b;
    background: #1f2937;
    box-shadow: 0 0 0 1px #f59e0b inset;
}

.huskyerp-roulette-item.is-active-spin {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
    transform: translateY(-1px);
}

.huskyerp-calendar-timezone {
    min-height: 74px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    border-right: 1px solid rgba(71, 85, 105, 0.4);
    font-size: 12px;
}

.huskyerp-calendar-day-head {
    appearance: none;
    background: transparent;
    min-height: 74px;
    width: 100%;
    padding: 10px 8px 8px;
    border-right: 1px solid rgba(71, 85, 105, 0.32);
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
}

.huskyerp-calendar-day-head:last-child {
    border-right: none;
}

.huskyerp-calendar-day-week {
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.huskyerp-calendar-day-num {
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    color: #e5e7eb;
}

.huskyerp-calendar-day-month {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.huskyerp-calendar-day-head.is-today .huskyerp-calendar-day-num {
    color: #ffffff;
    background: #2563eb;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.huskyerp-calendar-day-head.is-weekend {
    background: rgba(15, 23, 42, 0.22);
}

.huskyerp-calendar-body {
    display: grid;
    grid-template-columns: 74px 1fr;
    height: 700px;
    overflow: auto;
    position: relative;
    scroll-behavior: smooth;
}

.huskyerp-calendar-time-col {
    border-right: 1px solid rgba(71, 85, 105, 0.38);
    background: rgba(8, 15, 28, 0.96);
    position: sticky;
    left: 0;
    z-index: 2;
}

.huskyerp-calendar-time-slot {
    height: var(--calendar-hour-height);
    border-bottom: 1px solid rgba(51, 65, 85, 0.46);
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    padding: 0 10px;
    text-align: right;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.huskyerp-calendar-time-slot span {
    transform: translateY(-8px);
}

.huskyerp-calendar-now-label {
    position: absolute;
    right: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #2563eb;
    color: #eff6ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    z-index: 4;
}

.huskyerp-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: var(--calendar-day-height);
}

.huskyerp-calendar-day-col {
    position: relative;
    min-height: var(--calendar-day-height);
    border-right: 1px solid rgba(51, 65, 85, 0.46);
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(var(--calendar-half-hour-height) - 1px),
        rgba(148, 163, 184, 0.06) calc(var(--calendar-half-hour-height) - 1px),
        rgba(148, 163, 184, 0.06) var(--calendar-half-hour-height),
        transparent var(--calendar-half-hour-height),
        transparent calc(var(--calendar-hour-height) - 1px),
        rgba(71, 85, 105, 0.24) calc(var(--calendar-hour-height) - 1px),
        rgba(71, 85, 105, 0.24) var(--calendar-hour-height)
    );
}

.huskyerp-calendar-day-col:last-child {
    border-right: none;
}

.huskyerp-calendar-day-col.is-today {
    background-color: rgba(37, 99, 235, 0.08);
}

.huskyerp-calendar-day-col.is-weekend {
    background-color: rgba(15, 23, 42, 0.16);
}

.huskyerp-calendar-day-col.is-drop-target,
.huskyerp-calendar-month-cell.is-drop-target {
    box-shadow: inset 0 0 0 2px rgba(125, 211, 252, 0.55);
    background-color: rgba(37, 99, 235, 0.12);
}

.huskyerp-calendar-now-marker {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ef4444;
    z-index: 3;
    pointer-events: none;
}

.huskyerp-calendar-now-dot {
    position: absolute;
    left: -5px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ef4444;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
}

.huskyerp-calendar-event {
    position: absolute;
    border-radius: 14px;
    border: 1px solid rgba(125, 211, 252, 0.4);
    text-align: left;
    padding: 8px 10px 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.huskyerp-calendar-event strong,
.huskyerp-calendar-event small,
.huskyerp-calendar-event-time {
    color: inherit !important;
}

.huskyerp-calendar-event strong {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

.huskyerp-calendar-event small {
    font-size: 11px;
    line-height: 1.2;
    opacity: 0.88;
}

.huskyerp-calendar-event-time {
    font-size: 10px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.92;
}

.huskyerp-calendar-event.is-done {
    opacity: 0.72;
    filter: saturate(0.85);
}

.huskyerp-calendar-event:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.huskyerp-calendar-event.is-dragging {
    opacity: 0.45;
    transform: scale(0.98);
}

.huskyerp-calendar-event.is-compact {
    position: relative;
    width: 100%;
    min-height: 0;
    padding: 6px 8px;
    border-radius: 10px;
    box-shadow: none !important;
}

.huskyerp-calendar-event.is-compact strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.huskyerp-calendar-month-shell {
    border: 1px solid rgba(71, 85, 105, 0.55);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(8, 15, 28, 0.78);
}

.huskyerp-calendar-month-head {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid rgba(71, 85, 105, 0.38);
    background: rgba(15, 23, 42, 0.8);
}

.huskyerp-calendar-month-head-cell {
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.huskyerp-calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.huskyerp-calendar-month-cell {
    min-height: 154px;
    padding: 10px;
    border-right: 1px solid rgba(71, 85, 105, 0.28);
    border-bottom: 1px solid rgba(71, 85, 105, 0.28);
    background: rgba(15, 23, 42, 0.46);
    display: grid;
    align-content: start;
    gap: 8px;
}

.huskyerp-calendar-month-cell.is-weekend {
    background: rgba(15, 23, 42, 0.62);
}

.huskyerp-calendar-month-cell.is-outside-month {
    opacity: 0.58;
}

.huskyerp-calendar-month-daynum {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #e2e8f0;
    cursor: pointer;
    font-weight: 800;
}

.huskyerp-calendar-month-daynum span {
    font-size: 20px;
    line-height: 1;
}

.huskyerp-calendar-month-daynum small {
    color: #64748b;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.huskyerp-calendar-month-cell.is-today .huskyerp-calendar-month-daynum span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #2563eb;
    color: #eff6ff;
}

.huskyerp-calendar-month-events {
    display: grid;
    gap: 6px;
}

.huskyerp-calendar-more-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #7dd3fc;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 980px) {
    .huskyerp-calendar-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .huskyerp-calendar-titleblock {
        flex-direction: column;
        align-items: flex-start;
    }

    .huskyerp-calendar-nav {
        width: 100%;
    }

    .huskyerp-calendar-toolbar {
        justify-content: space-between;
    }

    .huskyerp-calendar-nav button {
        flex: 1;
    }

    .huskyerp-calendar-viewswitch {
        width: 100%;
    }

    .huskyerp-calendar-viewswitch button {
        flex: 1;
    }

    .huskyerp-calendar-body {
        height: 560px;
    }

    .huskyerp-calendar-day-num {
        font-size: 22px;
    }

    .huskyerp-calendar-month-cell {
        min-height: 128px;
        padding: 8px;
    }
}

.huskyerp-financial-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #202632;
    border: 2px solid #323b4b;
    border-radius: 14px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.huskyerp-financial-toggle:hover {
    background: #252d3a;
    border-color: #3a4558;
}

.huskyerp-checkbox-wrapper {
    position: relative;
    width: 48px;
    height: 26px;
    background: #334155;
    border-radius: 13px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.huskyerp-checkbox-wrapper.is-checked {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.huskyerp-checkbox-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.huskyerp-checkbox-wrapper.is-checked .huskyerp-checkbox-slider {
    transform: translateX(22px);
}

.huskyerp-checkbox-label {
    font-size: 14px;
    font-weight: 700;
    color: #e5e7eb;
}

.huskyerp-currency-selector {
    padding: 12px 16px;
    background: #1d2431;
    border: 1px solid #323b4b;
    border-radius: 12px;
    margin-bottom: 16px;
}

.huskyerp-currency-selector label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.huskyerp-currency-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.huskyerp-currency-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #252d3a;
    border: 2px solid #3a4558;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.huskyerp-currency-option:hover {
    background: #2d3544;
    border-color: #475569;
}

.huskyerp-currency-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.huskyerp-currency-option span {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.huskyerp-import-json-help {
    margin: 0 0 10px;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}

.huskyerp-radio {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    margin-right: 8px;
    vertical-align: middle;
}

.huskyerp-radio.is-on {
    border-color: #22c55e;
    background: #86efac;
}

.huskyerp-radio.is-off {
    border-color: #94a3b8;
    background: #334155;
}

.huskyerp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0f172a;
    gap: 24px;
    user-select: none;
}

.huskyerp-loading-text {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ── Chrome-dino style game ── */
.huskyerp-dino-game {
    position: relative;
    width: 480px;
    max-width: 90vw;
}

.huskyerp-game-scene {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

/* ── White Husky Runner ── */
.huskyerp-husky-runner {
    position: absolute;
    left: 36px;
    bottom: 14px;
    width: 76px;
    height: 58px;
    z-index: 3;
    animation: huskyDodgeAll 7.2s ease infinite;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.12));
}

.huskyerp-husky-svg .huskyerp-ear,
.huskyerp-husky-svg .huskyerp-tail,
.huskyerp-husky-svg .huskyerp-head,
.huskyerp-husky-svg .huskyerp-body,
.huskyerp-husky-svg .huskyerp-leg,
.huskyerp-husky-svg .huskyerp-paw {
    fill: #ffffff;
}

.huskyerp-husky-svg {
    width: 100%;
    height: 100%;
}

/* Leg running animation */
.huskyerp-leg-fr,
.huskyerp-leg-fl,
.huskyerp-leg-br,
.huskyerp-leg-bl {
    transform-box: fill-box;
    transform-origin: center top;
}

.huskyerp-leg-fr { animation: legRunFront 0.3s ease-in-out infinite alternate; }
.huskyerp-leg-fl { animation: legRunFront 0.3s ease-in-out infinite alternate-reverse; }
.huskyerp-leg-br { animation: legRunBack 0.3s ease-in-out infinite alternate; }
.huskyerp-leg-bl { animation: legRunBack 0.3s ease-in-out infinite alternate-reverse; }

@keyframes legRunFront {
    from { transform: rotate(-7deg); }
    to   { transform: rotate(7deg); }
}

@keyframes legRunBack {
    from { transform: rotate(-6deg); }
    to   { transform: rotate(6deg); }
}

/* Husky jumps 6 times per 7.2s cycle, timed to dodge each ball */
@keyframes huskyDodgeAll {
    0%, 4%     { transform: translateY(0); }
    7%         { transform: translateY(-48px); }
    11%        { transform: translateY(0); }

    20%, 21%   { transform: translateY(0); }
    24%        { transform: translateY(-48px); }
    28%        { transform: translateY(0); }

    37%, 38%   { transform: translateY(0); }
    41%        { transform: translateY(-48px); }
    45%        { transform: translateY(0); }

    54%, 55%   { transform: translateY(0); }
    57%        { transform: translateY(-48px); }
    61%        { transform: translateY(0); }

    71%, 72%   { transform: translateY(0); }
    74%        { transform: translateY(-48px); }
    78%        { transform: translateY(0); }

    87%, 88%   { transform: translateY(0); }
    91%        { transform: translateY(-48px); }
    95%        { transform: translateY(0); }
    100%       { transform: translateY(0); }
}

/* ── Circus Balls ── */
.huskyerp-ball {
    position: absolute;
    bottom: 14px;                          /* sits ON the ground line, not below */
    right: -30px;
    opacity: 0;
    width: 26px;
    height: 26px;
    z-index: 2;
    --ball-b1: -24px;
    --ball-b2: -14px;
    --ball-b3: -7px;
    animation-name: ballRollCycle, ballBounceCycle;
    animation-duration: 7.2s, 7.2s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-fill-mode: both, both;
}

.huskyerp-ball svg {
    width: 100%;
    height: 100%;
    animation: ballSpin 0.4s linear infinite;
}

.huskyerp-ball-1 { animation-delay: 0s, 0s; }
.huskyerp-ball-2 { animation-delay: 0.9s, 0.9s; }
.huskyerp-ball-3 { animation-delay: 1.8s, 1.8s; }
.huskyerp-ball-4 { animation-delay: 2.7s, 2.7s; }
.huskyerp-ball-5 { animation-delay: 3.6s, 3.6s; }
.huskyerp-ball-6 { animation-delay: 4.5s, 4.5s; }
.huskyerp-ball-7 { animation-delay: 5.4s, 5.4s; }

.huskyerp-ball.is-bounce-high { --ball-b1: -30px; --ball-b2: -18px; --ball-b3: -10px; }
.huskyerp-ball.is-bounce-mid  { --ball-b1: -24px; --ball-b2: -14px; --ball-b3: -7px; }
.huskyerp-ball.is-bounce-low  { --ball-b1: -16px; --ball-b2: -10px; --ball-b3: -5px; }

/* Ball rolls across in the first ~17% of the 7.2s cycle, hidden the rest */
@keyframes ballRollCycle {
    0%    { right: -30px; opacity: 0; }
    1%    { opacity: 1; }
    14.5% { opacity: 1; }
    16.7% { right: 110%; opacity: 0; }
    17%   { right: -30px; opacity: 0; }
    100%  { right: -30px; opacity: 0; }
}

/* Ball bounces 3 times with decreasing height while rolling */
@keyframes ballBounceCycle {
    0%    { transform: translateY(0); }
    3%    { transform: translateY(var(--ball-b1)); }
    5.5%  { transform: translateY(0); }
    8%    { transform: translateY(var(--ball-b2)); }
    10.5% { transform: translateY(0); }
    13%   { transform: translateY(var(--ball-b3)); }
    15.5% { transform: translateY(0); }
    16.7% { transform: translateY(0); }
    100%  { transform: translateY(0); }
}

@keyframes ballSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Ground ── */
.huskyerp-ground {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #475569 10%, #475569 90%, transparent);
    z-index: 1;
}

.huskyerp-ground-dots {
    display: none;
}

@keyframes groundScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.huskyerp-public-shell {
    max-width: 1420px;
    margin: 0 auto;
    padding: 22px 20px 32px;
}

.huskyerp-public-header {
    margin-bottom: 14px;
}

.huskyerp-public-header h2 {
    margin: 0;
    font-size: 24px;
}

.huskyerp-public-header p {
    margin: 4px 0 0;
    color: #9fb2cf;
}

.huskyerp-public-request-box {
    margin-bottom: 14px;
}

.huskyerp-public-request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.huskyerp-public-request-grid textarea {
    grid-column: 1 / -1;
    resize: vertical;
}

.huskyerp-public-request-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.huskyerp-public-error-box {
    max-width: 640px;
    margin: 18px auto;
    text-align: center;
}

.huskyerp-public-error-box h3 {
    margin: 0 0 8px;
}

.huskyerp-public-error-box p {
    margin: 0;
    color: #cbd5e1;
}

.huskyerp-public-protected-access {
    margin-top: 18px;
    display: grid;
    gap: 10px;
    text-align: left;
}

.huskyerp-public-protected-access-field {
    display: grid;
    gap: 8px;
}

.huskyerp-public-protected-access-field label {
    font-size: 13px;
    font-weight: 700;
    color: #000;
}

.huskyerp-public-protected-access-field input {
    width: 100%;
    min-height: 44px;
    color: #000 !important;
}

.huskyerp-public-protected-access-field input::placeholder {
    color: #000 !important;
    opacity: 0.45;
}

.huskyerp-public-protected-access small {
    color: #9fb2cf;
    line-height: 1.45;
}

.huskyerp-public-error-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.huskyerp-public-link-box {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.huskyerp-public-link-box.is-disabled {
    opacity: 0.65;
}

.huskyerp-public-link-box input[readonly] {
    font-size: 12px;
}

.huskyerp-public-link-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.huskyerp-board-report-list {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.huskyerp-settings-shell {
    display: grid;
    gap: 18px;
}

.huskyerp-settings-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 32%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.88));
}

.huskyerp-settings-hero-copy {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.huskyerp-settings-hero-copy h3,
.huskyerp-settings-card h3 {
    margin: 0;
}

.huskyerp-settings-hero-copy p,
.huskyerp-settings-card > p,
.huskyerp-settings-card-head p {
    margin: 0;
    color: #9fb2cf;
}

.huskyerp-settings-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    max-width: 420px;
}

.huskyerp-settings-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.36);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.huskyerp-settings-pill.is-success {
    border-color: rgba(34, 197, 94, 0.34);
    background: rgba(20, 83, 45, 0.38);
    color: #dcfce7;
}

.huskyerp-settings-pill.is-muted,
.huskyerp-settings-pill.is-neutral {
    color: #dbeafe;
}

.huskyerp-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.huskyerp-settings-card {
    min-width: 0;
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 20px;
}

.huskyerp-settings-card-full {
    grid-column: 1 / -1;
}

.huskyerp-settings-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.huskyerp-settings-card-head > div {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.huskyerp-settings-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.huskyerp-settings-card-actions-end {
    justify-content: flex-end;
}

.huskyerp-settings-card-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #94a3b8;
}

.huskyerp-settings-ai-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.huskyerp-settings-ai-meta-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.24);
}

.huskyerp-settings-ai-meta-item strong {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.huskyerp-settings-ai-meta-item span {
    color: #f8fafc;
    font-weight: 700;
}

.huskyerp-settings-ai-field {
    display: grid;
    gap: 8px;
}

.huskyerp-settings-card-ai .huskyerp-modal-field {
    min-width: 0;
}

.huskyerp-settings-card-ai .huskyerp-modal-field label {
    display: block;
    margin: 0;
    font-weight: 700;
}

.huskyerp-settings-card-ai .huskyerp-modal-field input,
.huskyerp-settings-card-ai .huskyerp-modal-field select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(10, 18, 31, 0.94);
    color: #f8fafc;
    box-sizing: border-box;
}

.huskyerp-settings-card-ai .huskyerp-modal-field input::placeholder {
    color: #94a3b8;
}

.huskyerp-settings-card-ai .huskyerp-modal-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.huskyerp-settings-card-ai .huskyerp-modal-field input:focus,
.huskyerp-settings-card-ai .huskyerp-modal-field select:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.72);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.huskyerp-settings-card-ai .huskyerp-modal-field small {
    display: block;
    margin: 0;
    color: #c7d2fe;
    line-height: 1.45;
}

.huskyerp-settings-feedback {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.18);
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.5;
}

.huskyerp-board-ai-modal .huskyerp-settings-feedback {
    margin-top: 6px;
    margin-bottom: 10px;
}

.huskyerp-settings-feedback.is-success {
    border-color: rgba(34, 197, 94, 0.34);
    background: rgba(20, 83, 45, 0.22);
    color: #dcfce7;
}

.huskyerp-settings-feedback.is-error {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(127, 29, 29, 0.22);
    color: #fee2e2;
}

.huskyerp-settings-import-box {
    display: grid;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.huskyerp-settings-import-box > * {
    min-width: 0;
}

.huskyerp-settings-import-box input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.huskyerp-settings-import-box .huskyerp-checkbox-inline {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
}

.huskyerp-settings-import-box .huskyerp-checkbox-inline span,
.huskyerp-settings-import-box .huskyerp-import-json-help {
    overflow-wrap: anywhere;
}

.huskyerp-settings-import-box .huskyerp-settings-card-actions {
    width: 100%;
    min-width: 0;
}

.huskyerp-settings-import-box .huskyerp-settings-card-actions-end button {
    margin-left: auto;
    max-width: 100%;
}

.huskyerp-settings-replace-check {
    align-items: center;
}

.huskyerp-settings-card .huskyerp-import-json-help {
    margin: 0;
}

.huskyerp-board-report-item {
    border: 1px solid #3a4558;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #1b2230;
}

.huskyerp-board-report-main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.huskyerp-board-report-main strong {
    font-size: 14px;
    color: #e2e8f0;
}

.huskyerp-board-report-main small {
    color: #94a3b8;
}

.huskyerp-board-report-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.huskyerp-board-report-checklist {
    border: 1px solid #3a4558;
    border-radius: 12px;
    padding: 8px;
    max-height: 350px;
    overflow-y: auto;
    display: grid;
    gap: 6px;
    background: #17202d;
}

.huskyerp-board-report-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 240px);
    gap: 12px;
    align-items: center;
    padding: 6px 4px;
}

.huskyerp-board-report-row-check {
    margin: 0;
}

.huskyerp-board-report-row-category {
    width: 100%;
}

@media (max-width: 680px) {
    .huskyerp-board-report-row {
        grid-template-columns: 1fr;
    }
}

.huskyerp-report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.huskyerp-report-header-copy h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.huskyerp-report-header-client {
    margin: 8px 0 0;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
}

.huskyerp-report-header-client strong {
    font-weight: 800;
}

.huskyerp-report-header-copy p {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 14px;
}

.huskyerp-public-report-shell {
    width: min(1420px, 100%);
}

.huskyerp-report-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.huskyerp-report-main {
    min-width: 0;
}

.huskyerp-report-side-nav {
    position: sticky;
    top: 24px;
}

.huskyerp-report-side-nav-inner {
    display: grid;
    gap: 12px;
    padding: 16px 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.94), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(51, 65, 85, 0.72);
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04), 0 18px 36px rgba(2, 6, 23, 0.18);
}

.huskyerp-report-side-nav-title {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
}

.huskyerp-report-side-nav-links {
    display: grid;
    gap: 6px;
}

.huskyerp-report-side-nav-link {
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.42);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.huskyerp-report-side-nav-link:hover {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(96, 165, 250, 0.24);
    transform: translateX(2px);
}

.huskyerp-report-generated-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.18);
    white-space: nowrap;
}

.huskyerp-report-section-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #cbd5e1;
}

.huskyerp-report-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.huskyerp-report-section-head .huskyerp-report-section-title {
    margin-bottom: 0;
}

.huskyerp-report-section-meta {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.huskyerp-report-package-summary,
.huskyerp-report-funnel,
.huskyerp-report-refinement,
.huskyerp-report-ticket-tracking,
.huskyerp-report-ai-roi,
.huskyerp-report-ticket-box {
    margin: 0 0 20px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(18, 34, 58, 0.82));
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.26);
}

.huskyerp-report-funnel-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
}

.huskyerp-report-funnel-card {
    flex: 1 1 0;
    min-width: 120px;
    padding: 20px 16px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.huskyerp-report-funnel-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.huskyerp-report-funnel-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
}

.huskyerp-report-funnel-arrow {
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 20px;
    color: #475569;
    flex-shrink: 0;
}

.huskyerp-report-funnel-total {
    background: linear-gradient(135deg, #1e40af, #2563eb);
}

.huskyerp-report-funnel-cards {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

.huskyerp-report-funnel-pending {
    background: linear-gradient(135deg, #b45309, #f59e0b);
}

.huskyerp-report-funnel-review {
    background: linear-gradient(135deg, #0e7490, #06b6d4);
}

.huskyerp-report-funnel-done {
    background: linear-gradient(135deg, #047857, #10b981);
}

.huskyerp-report-funnel-excluded {
    background: linear-gradient(135deg, #374151, #6b7280);
}

.huskyerp-report-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.huskyerp-report-metric-card {
    padding: 20px 16px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.huskyerp-report-metric-icon {
    font-size: 24px;
    line-height: 1;
}

.huskyerp-report-metric-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: #f1f5f9;
}

.huskyerp-report-metric-label {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.huskyerp-report-metric-progress {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.12));
    border-color: rgba(56, 189, 248, 0.2);
}

.huskyerp-report-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.15);
    overflow: hidden;
}

.huskyerp-report-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    transition: width 0.4s ease;
}

.huskyerp-report-list-section {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.huskyerp-report-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.huskyerp-report-list-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.huskyerp-report-list-title-row h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.huskyerp-report-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.huskyerp-report-cat-pending {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.huskyerp-report-cat-review {
    background: rgba(6, 182, 212, 0.18);
    color: #22d3ee;
}

.huskyerp-report-cat-completed {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

.huskyerp-report-cat-not-pending {
    background: rgba(107, 114, 128, 0.22);
    color: #9ca3af;
}

.huskyerp-report-list-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

.huskyerp-report-list-progress .huskyerp-report-progress-track {
    flex: 1;
}

.huskyerp-report-list-progress span {
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
    white-space: nowrap;
}

.huskyerp-report-list-excluded {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.huskyerp-report-list-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.huskyerp-report-list-stat {
    flex: 1 1 0;
    min-width: 100px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.08);
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.huskyerp-report-list-stat strong {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
}

.huskyerp-report-list-stat span {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.huskyerp-public-report-table-wrap {
    overflow-x: auto;
}

.huskyerp-public-report-table-wrap table {
    min-width: 720px;
}

.huskyerp-public-report-table-wrap .huskyerp-report-row td:first-child {
    border-left: 3px solid transparent;
}

.huskyerp-public-report-table-wrap .huskyerp-report-hours-col {
    min-width: 40px;
    white-space: nowrap;
}

.huskyerp-report-detail-summary {
    margin: 8px 0 0;
    color: #9fb2cf;
    font-size: 13px;
    line-height: 1.5;
}

.huskyerp-report-lists-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.huskyerp-report-detail-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.huskyerp-report-detail-filter {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.66);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.huskyerp-report-detail-filter.is-active {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.28);
    color: #e0f2fe;
}

.huskyerp-report-refinement-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.62);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.huskyerp-report-refinement-chip.is-refinement-epica {
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.28);
}

.huskyerp-report-refinement-chip.is-refinement-functional {
    color: #99f6e4;
    border-color: rgba(45, 212, 191, 0.28);
}

.huskyerp-report-refinement-chip.is-refinement-technical {
    color: #ddd6fe;
    border-color: rgba(167, 139, 250, 0.28);
}

.huskyerp-report-refinement-chip.is-refinement-ready {
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, 0.28);
}

.huskyerp-public-report-table-wrap .huskyerp-report-row.is-priority-critica td:first-child {
    border-left-color: #fca5a5;
}

.huskyerp-public-report-table-wrap .huskyerp-report-row.is-priority-alta td:first-child {
    border-left-color: #f87171;
}

.huskyerp-public-report-table-wrap .huskyerp-report-row.is-priority-media td:first-child {
    border-left-color: #fb923c;
}

.huskyerp-public-report-table-wrap .huskyerp-report-row.is-priority-baja td:first-child {
    border-left-color: #facc15;
}

.huskyerp-public-report-table-wrap .huskyerp-report-row.is-priority-minima td:first-child {
    border-left-color: #fde047;
}

.huskyerp-public-report-table-wrap .huskyerp-report-row.is-priority-critica td {
    background: linear-gradient(90deg, rgba(127, 29, 29, 0.08), rgba(127, 29, 29, 0));
}

.huskyerp-public-report-table-wrap .huskyerp-report-row.is-priority-alta td {
    background: linear-gradient(90deg, rgba(153, 27, 27, 0.08), rgba(153, 27, 27, 0));
}

.huskyerp-public-report-table-wrap .huskyerp-report-row.is-priority-media td {
    background: linear-gradient(90deg, rgba(154, 52, 18, 0.08), rgba(154, 52, 18, 0));
}

.huskyerp-public-report-table-wrap .huskyerp-report-row.is-priority-baja td {
    background: linear-gradient(90deg, rgba(161, 98, 7, 0.08), rgba(161, 98, 7, 0));
}

.huskyerp-public-report-table-wrap .huskyerp-report-row.is-priority-minima td {
    background: linear-gradient(90deg, rgba(133, 77, 14, 0.08), rgba(133, 77, 14, 0));
}

/* Refinement section */

.huskyerp-report-refinement-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    margin-bottom: 14px;
}

.huskyerp-report-refinement-header > div {
    min-width: 0;
}

.huskyerp-report-refinement-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

.huskyerp-report-refinement-body {
    display: grid;
    gap: 18px;
}

.huskyerp-report-refinement-legend {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #94a3b8;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    border-left: 3px solid #38bdf8;
}

.huskyerp-report-refinement-funnel {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.44);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.huskyerp-report-refinement-funnel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.huskyerp-report-refinement-funnel-head > div {
    display: grid;
    gap: 4px;
}

.huskyerp-report-refinement-funnel-head strong {
    font-size: 14px;
    color: #e2e8f0;
}

.huskyerp-report-refinement-funnel-head span {
    font-size: 12px;
    line-height: 1.55;
    color: #94a3b8;
}

.huskyerp-report-refinement-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.huskyerp-report-refinement-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.huskyerp-report-refinement-filter-toggle input {
    margin: 0;
    accent-color: #22c55e;
}

.huskyerp-report-refinement-filter-toggle span {
    color: #e2e8f0;
    line-height: 1.2;
}

.huskyerp-report-refinement-filter-toggle input:disabled {
    cursor: not-allowed;
}

.huskyerp-report-refinement-funnel-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
}

.huskyerp-report-refinement-funnel-card {
    align-items: center;
    text-align: center;
    gap: 10px;
    min-width: 180px;
}

button.huskyerp-report-refinement-funnel-card {
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button.huskyerp-report-refinement-funnel-card:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
}

button.huskyerp-report-refinement-funnel-card.is-active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.34), 0 18px 30px rgba(2, 6, 23, 0.28);
}

.huskyerp-report-refinement-funnel-card small {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.huskyerp-report-funnel-epica {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.huskyerp-report-funnel-functional {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.huskyerp-report-funnel-technical {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.huskyerp-report-funnel-dor {
    background: linear-gradient(135deg, #047857, #22c55e);
}

.huskyerp-report-refinement-funnel-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.16);
    color: #bfdbfe;
    font-size: 12px;
    line-height: 1.5;
}

.huskyerp-report-refinement-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
    padding: 24px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.huskyerp-report-refinement-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.huskyerp-report-refinement-circle {
    position: relative;
    width: 100px;
    height: 100px;
}

.huskyerp-report-refinement-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.huskyerp-report-circle-bg {
    fill: none;
    stroke: rgba(148, 163, 184, 0.15);
    stroke-width: 3.5;
}

.huskyerp-report-circle-fill {
    fill: none;
    stroke: #38bdf8;
    stroke-width: 3.5;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

.huskyerp-report-refinement-circle span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #f1f5f9;
}

.huskyerp-report-refinement-overview-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.3;
}

.huskyerp-report-refinement-bars {
    display: grid;
    gap: 16px;
}

.huskyerp-report-refinement-bar-item {
    display: grid;
    gap: 6px;
}

.huskyerp-report-refinement-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
}

.huskyerp-report-refinement-bar-head span {
    color: #cbd5e1;
}

.huskyerp-report-refinement-bar-head strong {
    color: #94a3b8;
    font-weight: 600;
}

.huskyerp-report-fill-hours {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.huskyerp-report-fill-priority {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.huskyerp-report-fill-schedule {
    background: linear-gradient(90deg, #059669, #34d399);
}

/* AI ROI */
.huskyerp-report-ai-roi {
    display: grid;
    gap: 16px;
}

.huskyerp-report-ai-roi-head {
    margin-bottom: 10px;
}

.huskyerp-report-section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.huskyerp-report-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 32px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.huskyerp-report-ai-roi-legend {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #94a3b8;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    border-left: 3px solid #a78bfa;
}

.huskyerp-report-ai-roi-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 0;
}

.huskyerp-report-ticket-tracking-table small,
.huskyerp-report-ticket-tracking-empty {
    color: #94a3b8;
    font-size: 11px;
}

.huskyerp-report-ai-table {
    font-size: 13px;
}

.huskyerp-report-ai-table small {
    color: #94a3b8;
    font-size: 11px;
}

.huskyerp-report-ai-table tfoot td {
    border-top: 2px solid rgba(148, 163, 184, 0.2);
}

.huskyerp-report-ai-positive {
    color: #34d399;
    font-weight: 600;
}

.huskyerp-report-ai-negative {
    color: #f87171;
    font-weight: 600;
}

/* Tabs */
.huskyerp-report-lists-tabs-section {
    margin-bottom: 20px;
    padding: 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(11, 18, 32, 0.94), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(51, 65, 85, 0.72);
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04), 0 24px 50px rgba(2, 6, 23, 0.22);
}

.huskyerp-report-lists-tabs-section a,
.huskyerp-report-ticket-box a {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 21px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.huskyerp-report-lists-tabs-section a:hover,
.huskyerp-report-ticket-box a:hover {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(96, 165, 250, 0.24);
    color: #eff6ff;
}

.huskyerp-report-lists-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.huskyerp-report-lists-toolbar .huskyerp-report-section-title {
    margin-bottom: 0;
}

.huskyerp-report-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.huskyerp-report-view-toggle button {
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.huskyerp-report-view-toggle button.is-active {
    background: rgba(56, 189, 248, 0.16);
    color: #e0f2fe;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.18);
}

.huskyerp-report-kanban-wrap {
    margin-top: 12px;
    padding: 4px 0 2px;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.huskyerp-report-package-summary-head {
    align-items: start;
    gap: 12px;
}

.huskyerp-report-package-summary-head p {
    margin: 6px 0 0;
    color: #b8c7de;
    font-size: 14px;
    line-height: 1.6;
}

.huskyerp-report-package-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.huskyerp-report-package-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.56);
}

.huskyerp-report-package-card.is-highlight {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.34), rgba(14, 165, 233, 0.12));
    border-color: rgba(56, 189, 248, 0.3);
}

.huskyerp-report-package-card-label {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #93c5fd;
}

.huskyerp-report-package-card strong {
    font-size: 26px;
    color: #f8fafc;
}

.huskyerp-report-package-card-note {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9fb2cf;
}

.huskyerp-report-kanban-column {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.2);
}

.huskyerp-report-kanban-column-head {
    display: grid;
    gap: 4px;
}

.huskyerp-report-kanban-column-stats {
    display: grid;
    justify-items: end;
    gap: 2px;
    font-size: 11px;
    color: color-mix(in srgb, var(--list-text-color, #cbd5e1) 84%, #e2e8f0 16%);
}

.huskyerp-report-kanban-column-stats strong {
    font-size: 15px;
    color: #f8fafc;
}

.huskyerp-report-kanban-dropzone {
    flex: 1 1 auto;
    gap: 8px;
    min-height: 120px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 6px;
    padding-right: 4px;
}

.huskyerp-report-kanban-card {
    margin-bottom: 8px;
    border-radius: 12px;
    padding: 12px;
}

.huskyerp-report-kanban-card-title {
    margin-bottom: 7px;
}

.huskyerp-report-kanban-card-title strong {
    color: #f8fafc;
    line-height: 1.45;
    font-size: 14px;
}

.huskyerp-report-kanban-card-badges {
    margin-bottom: 6px;
}

.huskyerp-report-kanban-inline-meta {
    margin-top: 6px;
}

.huskyerp-report-kanban-empty {
    padding: 18px 14px;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    text-align: center;
    font-size: 13px;
    background: rgba(15, 23, 42, 0.16);
}

@media (max-width: 980px) {
    .huskyerp-report-kanban-dropzone {
        max-height: calc(100vh - 280px);
    }
}

.huskyerp-report-ticket-box {
    padding: 20px;
}

.huskyerp-report-ticket-note {
    margin: 6px 0 0;
    color: #9fb2cf;
    font-size: 13px;
}

.huskyerp-report-ticket-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.huskyerp-report-ticket-head h3 {
    margin: 0;
}

.huskyerp-report-ticket-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(14, 165, 233, 0.1);
    color: #bae6fd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.huskyerp-report-ticket-highlight {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(251, 146, 60, 0.18));
    border: 1px solid rgba(250, 204, 21, 0.28);
    color: #fde68a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(120, 53, 15, 0.16);
}

.huskyerp-report-ticket-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
    align-items: start;
}

.huskyerp-report-ticket-field {
    display: grid;
    gap: 8px;
}

.huskyerp-report-ticket-field span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #bfd1eb;
}

.huskyerp-report-ticket-field-wide {
    grid-column: 1 / -1;
}

.huskyerp-report-ticket-field input,
.huskyerp-report-ticket-field textarea,
.huskyerp-report-ticket-field select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(71, 85, 105, 0.9);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(12, 18, 32, 0.98));
    color: #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04), 0 10px 24px rgba(2, 6, 23, 0.18);
}

.huskyerp-report-ticket-field input,
.huskyerp-report-ticket-field select {
    min-height: 48px;
    padding: 0 14px;
}

.huskyerp-report-ticket-field textarea {
    padding: 14px;
    line-height: 1.6;
}

.huskyerp-report-ticket-field input::placeholder,
.huskyerp-report-ticket-field textarea::placeholder {
    color: #7f8ea3;
}

.huskyerp-report-ticket-field input:focus,
.huskyerp-report-ticket-field textarea:focus,
.huskyerp-report-ticket-field select:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12), 0 14px 28px rgba(2, 6, 23, 0.24);
}

.huskyerp-report-ticket-field .huskyerp-priority-select.is-priority-empty,
.huskyerp-report-ticket-field .huskyerp-priority-select.is-priority-critica,
.huskyerp-report-ticket-field .huskyerp-priority-select.is-priority-alta,
.huskyerp-report-ticket-field .huskyerp-priority-select.is-priority-media,
.huskyerp-report-ticket-field .huskyerp-priority-select.is-priority-baja,
.huskyerp-report-ticket-field .huskyerp-priority-select.is-priority-minima {
    color: #e2e8f0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(12, 18, 32, 0.98));
    border-color: rgba(71, 85, 105, 0.9);
}

.huskyerp-report-ticket-grid textarea {
    min-height: 112px;
    resize: vertical;
}

.huskyerp-report-ticket-box small {
    display: block;
    margin-top: 10px;
    color: #86efac;
}

.huskyerp-report-ticket-success {
    margin-top: 12px;
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, 0.34);
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.28), rgba(21, 128, 61, 0.14));
    color: #dcfce7;
    box-shadow: 0 12px 26px rgba(6, 78, 59, 0.18);
}

.huskyerp-report-ticket-success strong {
    font-size: 14px;
    color: #f0fdf4;
}

.huskyerp-report-ticket-success span {
    font-size: 13px;
    line-height: 1.5;
}

.huskyerp-report-ticket-success a {
    margin-bottom: 0;
    width: fit-content;
}

.huskyerp-report-row[data-public-card-id] {
    cursor: pointer;
    transition: background 0.18s ease;
}

.huskyerp-report-row[data-public-card-id]:hover td {
    background: rgba(56, 189, 248, 0.08);
}

.huskyerp-report-row.is-spotlight td {
    animation: huskyerpReportRowSpotlight 2.2s ease;
}

@keyframes huskyerpReportRowSpotlight {
    0% {
        background: rgba(56, 189, 248, 0.28);
    }
    100% {
        background: transparent;
    }
}

.huskyerp-card.is-spotlight {
    animation: huskyerpCardSpotlight 2.2s ease;
}

@keyframes huskyerpCardSpotlight {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.44);
        transform: translateY(0);
    }
    20% {
        box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.2);
        transform: translateY(-1px);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
        transform: translateY(0);
    }
}

.huskyerp-report-tabs-bar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-bottom: 0;
    border-bottom: 2px solid rgba(148, 163, 184, 0.12);
}

.huskyerp-report-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.huskyerp-report-tab:hover {
    color: #cbd5e1;
}

.huskyerp-report-tab.is-active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
}

.huskyerp-report-tab-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.huskyerp-report-tab-panel {
    display: none;
    padding: 20px;
    border-radius: 0 0 14px 14px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-top: none;
}

.huskyerp-report-tab-panel.is-active {
    display: block;
}

.huskyerp-report-export-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.huskyerp-report-export-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.huskyerp-report-export-link:hover {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(56, 189, 248, 0.38);
    color: #bae6fd;
}

@media (max-width: 900px) {
    .huskyerp-report-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .huskyerp-report-funnel-card {
        min-width: 100px;
        padding: 14px 10px;
    }

    .huskyerp-report-funnel-value {
        font-size: 24px;
    }

    .huskyerp-report-funnel-arrow {
        padding: 0 4px;
        font-size: 16px;
    }

    .huskyerp-report-refinement-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .huskyerp-report-refinement-bars {
        width: 100%;
    }

    .huskyerp-report-refinement-funnel-head {
        flex-direction: column;
        align-items: stretch;
    }

    .huskyerp-report-refinement-filter-group {
        justify-content: flex-start;
    }

    .huskyerp-report-refinement-filter-toggle {
        align-self: flex-start;
    }

    .huskyerp-report-refinement-funnel-card {
        min-width: 150px;
    }

    .huskyerp-report-ai-roi-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .huskyerp-report-header {
        flex-direction: column;
    }

    .huskyerp-report-lists-toolbar {
        align-items: stretch;
    }

    .huskyerp-report-view-toggle {
        width: 100%;
    }

    .huskyerp-report-view-toggle button {
        flex: 1 1 0;
    }

    .huskyerp-report-funnel-row {
        flex-direction: column;
        gap: 8px;
    }

    .huskyerp-report-funnel-card {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 14px 18px;
    }

    .huskyerp-report-funnel-arrow {
        display: none;
    }

    .huskyerp-report-refinement-funnel-row {
        flex-direction: column;
        gap: 8px;
    }

    .huskyerp-report-refinement-funnel-card {
        min-width: 0;
        width: 100%;
    }

    .huskyerp-report-metrics {
        grid-template-columns: 1fr;
    }

    .huskyerp-report-ai-roi-summary {
        grid-template-columns: 1fr;
    }

    .huskyerp-report-ai-table {
        font-size: 12px;
    }

    .huskyerp-report-list-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .huskyerp-report-list-progress {
        width: 100%;
    }

    .huskyerp-report-list-stats {
        gap: 8px;
    }

    .huskyerp-report-list-stat {
        min-width: calc(50% - 8px);
    }

    .huskyerp-report-tab-panel {
        padding: 14px;
    }

    .huskyerp-report-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
}

body.huskyerp-app-only.huskyerp-theme-light .huskyerp-settings-hero,
body.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-settings-hero {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(248, 250, 252, 0.92));
}

body.huskyerp-app-only.huskyerp-theme-light .huskyerp-settings-hero-copy p,
body.huskyerp-app-only.huskyerp-theme-light .huskyerp-settings-card > p,
body.huskyerp-app-only.huskyerp-theme-light .huskyerp-settings-card-head p,
body.huskyerp-app-only.huskyerp-theme-light .huskyerp-settings-card-note,
body.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-settings-hero-copy p,
body.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-settings-card > p,
body.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-settings-card-head p,
body.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-settings-card-note {
    color: #526277;
}

body.huskyerp-app-only.huskyerp-theme-light .huskyerp-settings-pill,
body.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-settings-pill {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(148, 163, 184, 0.28);
    color: #0f172a;
}

body.huskyerp-app-only.huskyerp-theme-light .huskyerp-settings-pill.is-success,
body.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-settings-pill.is-success {
    background: rgba(220, 252, 231, 0.95);
    color: #166534;
}

body.huskyerp-app-only.huskyerp-theme-light .huskyerp-settings-ai-meta-item,
body.huskyerp-app-only.huskyerp-theme-light .huskyerp-settings-import-box,
body.huskyerp-app-only.huskyerp-theme-light .huskyerp-settings-feedback,
body.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-settings-ai-meta-item,
body.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-settings-import-box,
body.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-settings-feedback {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(148, 163, 184, 0.22);
    color: #0f172a;
}

body.huskyerp-app-only.huskyerp-theme-light .huskyerp-settings-ai-meta-item strong,
body.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-settings-ai-meta-item strong {
    color: #64748b;
}

body.huskyerp-app-only.huskyerp-theme-light .huskyerp-settings-ai-meta-item span,
body.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-settings-ai-meta-item span {
    color: #0f172a;
}

@media (max-width: 900px) {
    .huskyerp-settings-hero {
        flex-direction: column;
    }

    .huskyerp-settings-hero-pills {
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 720px) {
    .huskyerp-settings-grid {
        grid-template-columns: 1fr;
    }

    .huskyerp-settings-card-head,
    .huskyerp-board-report-item {
        flex-direction: column;
        align-items: stretch;
    }

    .huskyerp-settings-ai-meta {
        grid-template-columns: 1fr;
    }

    .huskyerp-settings-card-actions,
    .huskyerp-board-report-actions {
        justify-content: flex-start;
    }

    .huskyerp-settings-card-actions button,
    .huskyerp-board-report-actions button {
        width: 100%;
    }

    .huskyerp-settings-card-actions-end {
        justify-content: flex-start;
    }
}

body.huskyerp-app-only .huskyerp-board-gallery-box {
    padding: 0 0 8px;
    margin-bottom: 6px;
    box-shadow: none!important;
    border: none!important;
    background: none!important;
}
body.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-board-gallery-box {
    padding: 0 0 8px;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
}

.huskyerp-board-gallery-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    transition: margin 0.32s ease;
    position: relative;
    padding-right: 18px;
}

.huskyerp-board-gallery-head::after {
    content: '▾';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 12px;
    color: #9fb2cf;
    transition: transform 0.26s ease, opacity 0.2s ease;
}

.huskyerp-board-gallery-head.is-collapsed {
    margin: 0;
}

.huskyerp-board-gallery-head.is-collapsed::after {
    transform: translateY(-50%) rotate(-90deg);
}

.huskyerp-board-gallery-head h3 {
    margin: 0;
    margin-bottom: 0;
    transition: opacity 0.24s ease, transform 0.3s ease, filter 0.3s ease;
}

.huskyerp-box.huskyerp-board-gallery-box .huskyerp-board-gallery-head h3 {
    margin-bottom: 0 !important;
}

.huskyerp-board-gallery-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    transition: opacity 0.22s ease, transform 0.28s ease;
}

.huskyerp-board-gallery-head-actions .is-placeholder {
    visibility: hidden;
    pointer-events: none;
}

.huskyerp-board-gallery-head.is-expanded h3,
.huskyerp-board-gallery-head.is-expanded .huskyerp-board-gallery-head-actions {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.huskyerp-board-gallery-body {
    transform-origin: top center;
    transition: max-height 0.58s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.42s ease, transform 0.42s ease, filter 0.42s ease;
    overflow: hidden;
}

.huskyerp-board-gallery-body.is-expanded {
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0) scaleY(1);
    filter: blur(0);
}

.huskyerp-board-gallery-body.is-collapsed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-14px) scaleY(0.92);
    filter: blur(1.2px);
    pointer-events: none;
}

body.huskyerp-app-only .huskyerp-box.huskyerp-board-gallery-box.is-collapsed {
    height: 0;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.huskyerp-topbar-board-list-toggle {
    animation: huskyerpTopbarFadeIn 180ms ease-out;
}

.huskyerp-workspace-tabs {
    display: flex;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 10px 1px;
    margin-bottom: 0;
    scrollbar-width: thin;
}

.huskyerp-shell.is-tabs-visible .huskyerp-columns {
    min-height: calc(100vh - 220px);
    max-height: calc(100vh - 220px);
}

.huskyerp-workspace-tab {
    --workspace-tab-accent: #2563eb;
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    min-width: 180px;
    max-width: 280px;
    border-radius: 16px;
    border: 1px solid #dbe4f0;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.huskyerp-workspace-tab.is-view-tab {
    border-color: rgba(148, 163, 184, 0.34);
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.98), rgba(226, 232, 240, 0.88));
}

.huskyerp-workspace-tab.is-board-tab {
    border-color: rgba(59, 130, 246, 0.22);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.9));
    box-shadow: inset 3px 0 0 var(--workspace-tab-accent), 0 8px 20px rgba(15, 23, 42, 0.05);
}

.huskyerp-workspace-tab.is-active {
    border-color: rgba(37, 99, 235, 0.34);
    background: #ffffff;
}

.huskyerp-workspace-tab:not(.is-active):hover {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.huskyerp-workspace-tab-trigger,
.huskyerp-workspace-tab-close {
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 160ms ease, color 160ms ease;
}

.huskyerp-workspace-tab-trigger {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    padding: 11px 16px 12px;
    border: 0;
    background: transparent;
    text-align: left;
    color: #0f172a;
}

.huskyerp-workspace-tab-trigger:hover,
.huskyerp-workspace-tab-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.huskyerp-workspace-tab-type {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    opacity: 0.92;
}

.huskyerp-workspace-tab.is-view-tab .huskyerp-workspace-tab-type {
    color: #475569;
}

.huskyerp-workspace-tab.is-board-tab .huskyerp-workspace-tab-type {
    color: #1d4ed8;
}

.huskyerp-workspace-tab-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}

.huskyerp-workspace-tab-close {
    width: 42px;
    min-width: 42px;
    border: 0;
    border-left: 1px solid rgba(148, 163, 184, 0.18);
    background: transparent;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    padding: 0;
}

.huskyerp-workspace-tab-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.huskyerp-app-only.huskyerp-theme-light .huskyerp-workspace-tab,
.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-workspace-tab {
    background: rgba(255, 255, 255, 0.86);
}

.huskyerp-app-only.huskyerp-theme-light .huskyerp-workspace-tab.is-view-tab {
    border-color: rgba(148, 163, 184, 0.34);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.9));
}

.huskyerp-app-only.huskyerp-theme-light .huskyerp-workspace-tab.is-board-tab {
    border-color: rgba(59, 130, 246, 0.2);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.9));
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-workspace-tab {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-workspace-tab.is-view-tab {
    border-color: rgba(71, 85, 105, 0.82);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-workspace-tab.is-board-tab {
    border-color: rgba(59, 130, 246, 0.24);
    background: linear-gradient(180deg, rgba(14, 56, 87, 0.78), rgba(15, 23, 42, 0.98));
    box-shadow: inset 3px 0 0 var(--workspace-tab-accent), inset 0 1px 0 rgba(148, 163, 184, 0.04);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-workspace-tab.is-active {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(15, 23, 42, 0.98);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-workspace-tab-trigger:hover,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-workspace-tab-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.03);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-workspace-tab.is-view-tab.is-active {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 1));
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-workspace-tab.is-board-tab.is-active {
    background: linear-gradient(180deg, rgba(14, 64, 102, 0.94), rgba(15, 23, 42, 1));
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-workspace-tab-trigger {
    color: #e2e8f0;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-workspace-tab-type,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-workspace-tab-close {
    color: #94a3b8;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-workspace-tab.is-view-tab .huskyerp-workspace-tab-type {
    color: #a5b4fc;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-workspace-tab.is-board-tab .huskyerp-workspace-tab-type {
    color: #7dd3fc;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-workspace-tab-close {
    border-left-color: rgba(71, 85, 105, 0.4);
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-workspace-tab {
    border-color: #d9cbe6;
    background: rgba(255, 251, 255, 0.88);
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-workspace-tab.is-view-tab {
    border-color: rgba(196, 181, 253, 0.48);
    background: linear-gradient(180deg, rgba(250, 245, 255, 0.98), rgba(241, 233, 254, 0.92));
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-workspace-tab.is-board-tab {
    border-color: rgba(125, 211, 252, 0.42);
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(224, 242, 254, 0.92));
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-workspace-tab.is-active {
    border-color: rgba(93, 63, 211, 0.26);
    background: rgba(255, 255, 255, 0.96);
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-workspace-tab-trigger:hover,
.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-workspace-tab-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 1024px) {
    .huskyerp-workspace-tabs {
        gap: 8px;
        padding: 6px 10px 1px;
    }

    .huskyerp-workspace-tab {
        min-width: 160px;
        max-width: 220px;
    }
}

@media (max-width: 720px) {
    .huskyerp-workspace-tab {
        min-width: 138px;
        max-width: 180px;
    }

    .huskyerp-workspace-tab-trigger {
        padding: 9px 13px 10px;
    }

    .huskyerp-workspace-tab-label {
        font-size: 13px;
    }
}

@keyframes huskyerpTopbarFadeIn {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.huskyerp-board-tile:hover {
    transform: none !important;
}

.huskyerp-board-gallery-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

.huskyerp-create-board-btn {
    font-weight: 700;
}

.huskyerp-add-list-btn {
    background: #065f46 !important;
    border-color: #10b981 !important;
    color: #ecfeff !important;
}

.huskyerp-add-list-btn:hover {
    background: #047857 !important;
    border-color: #10b981 !important;
    color: #d1fae5 !important;
}

.huskyerp-board-definitions-btn {
    padding: 8px 12px !important;
    min-height: 34px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: #1d4ed8 !important;
    border-color: #60a5fa !important;
    color: #eff6ff !important;
}

.huskyerp-board-ai-assistant-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px !important;
    min-height: 34px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: #5b21b6 !important;
    border-color: #c4b5fd !important;
    color: #f5f3ff !important;
}

.huskyerp-board-ai-assistant-btn:hover {
    background: #4c1d95 !important;
    border-color: #ddd6fe !important;
    color: #ffffff !important;
}

.huskyerp-board-ai-assistant-btn span {
    font-size: 13px;
    line-height: 1;
}

.huskyerp-board-definitions-btn:hover {
    background: #1e40af !important;
    border-color: #93c5fd !important;
    color: #ffffff !important;
}

.huskyerp-board-list-toggle.is-expanded {
    background: #b91c1c !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

.huskyerp-board-list-toggle.is-collapsed {
    background: #065f46 !important;
    border-color: #10b981 !important;
    color: #ecfeff !important;
}

.huskyerp-board-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.huskyerp-board-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.huskyerp-board-actions button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px !important;
    line-height: 1.2;
}

.huskyerp-viewmode-switch {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.huskyerp-viewmode-switch button {
    min-width: 140px;
}

.huskyerp-viewmode-switch .is-active-viewmode {
    border-color: #60a5fa !important;
    background: #1d4ed8 !important;
    color: #eff6ff !important;
}

.huskyerp-viewmode-modal {
    width: min(560px, 100%);
}

.huskyerp-member-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.huskyerp-member-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #4b5563;
    background: #253043;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 700;
}

.huskyerp-member-assign {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.huskyerp-app-only.huskyerp-theme-light {
    background: #eef2f7;
    color: #1f2937;
}

.huskyerp-app-only.huskyerp-theme-light .huskyerp-sidebar,
.huskyerp-app-only.huskyerp-theme-light .huskyerp-sidebar-toggle,
.huskyerp-app-only.huskyerp-theme-light .huskyerp-menu button,
.huskyerp-app-only.huskyerp-theme-light .huskyerp-topbar,
.huskyerp-app-only.huskyerp-theme-light .huskyerp-box,
.huskyerp-app-only.huskyerp-theme-light .huskyerp-col,
.huskyerp-app-only.huskyerp-theme-light .huskyerp-card,
.huskyerp-app-only.huskyerp-theme-light .huskyerp-currency-selector,
.huskyerp-app-only.huskyerp-theme-light .huskyerp-financial-toggle {
    background: transparent !important;
    color: #1f2937 !important;
    border-color: #d5dde9 !important;
}

.huskyerp-app-only.huskyerp-theme-light .huskyerp-menu button:hover,
.huskyerp-app-only.huskyerp-theme-light button:hover {
    background: #f2f6fc !important;
    color: #0f172a !important;
}

.huskyerp-app-only.huskyerp-theme-light .huskyerp-topbar-search input,
.huskyerp-app-only.huskyerp-theme-light .huskyerp-member-assign input {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.huskyerp-app-only.huskyerp-theme-light .huskyerp-motiv-badge {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.huskyerp-app-only.huskyerp-theme-light .huskyerp-company-table input,
.huskyerp-app-only.huskyerp-theme-light .huskyerp-company-table select {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

.huskyerp-app-only.huskyerp-theme-light .huskyerp-company-table small {
    color: #475569;
}

.huskyerp-main .huskyerp-box h3 {
    margin-top: 0;
}

.huskyerp-app-only.huskyerp-theme-light .huskyerp-kpi {
    color: #111827;
}

.huskyerp-app-only.huskyerp-theme-light .huskyerp-table .huskyerp-inline-link,
.huskyerp-app-only.huskyerp-theme-light .huskyerp-inline-link {
    color: #1e40af !important;
}

.huskyerp-app-only.huskyerp-theme-light .huskyerp-table .huskyerp-inline-link:hover,
.huskyerp-app-only.huskyerp-theme-light .huskyerp-inline-link:hover {
    color: #1e3a8a !important;
}

.huskyerp-app-only.huskyerp-theme-light .huskyerp-create-board-btn {
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #eff6ff !important;
}

.huskyerp-app-only.huskyerp-theme-light .huskyerp-create-board-btn:hover {
    background: #1e40af !important;
    color: #dbeafe !important;
}

.huskyerp-app-only.huskyerp-theme-pastel {
    background: radial-gradient(circle at 12% 12%, #ffe7ef 0%, #fff6fb 34%, #f7f4ff 100%);
    color: #2f1f39;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-sidebar,
.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-sidebar-toggle {
    background: linear-gradient(180deg, #f8ecff 0%, #f2e8ff 100%) !important;
    border-color: #d7c2f8 !important;
    color: #4a2c78 !important;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-menu button,
.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-topbar,
.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-box,
.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-col,
.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-card,
.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-currency-selector,
.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-financial-toggle {
    background: #fffafc !important;
    color: #2f1f39 !important;
    border-color: #e9c8dd !important;
    box-shadow: 0 2px 8px rgba(74, 44, 120, 0.08) !important;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-menu button:hover,
.huskyerp-app-only.huskyerp-theme-pastel button:hover {
    background: #ffeef5 !important;
    color: #5a2143 !important;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-topbar-search input,
.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-member-assign input {
    background: #fff3f9;
    color: #462145;
    border-color: #e4bdd4;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-motiv-badge {
    background: #ffeef4;
    color: #512c7a;
    border-color: #f2c4d8;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-company-table input,
.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-company-table select {
    background: #fff4f9;
    color: #462145;
    border-color: #e4bdd4;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-company-table small {
    color: #6b2f5f;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-kpi {
    color: #2f1f39;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-table .huskyerp-inline-link,
.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-inline-link {
    color: #4338ca !important;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-table .huskyerp-inline-link:hover,
.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-inline-link:hover {
    color: #be123c !important;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-create-board-btn {
    background: #ffe2eb !important;
    border-color: #f3b2c7 !important;
    color: #7f1d1d !important;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-create-board-btn:hover {
    background: #ffd3e2 !important;
    color: #881337 !important;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-topbar-viewmode {
    background: #f9eef8;
    border-color: #e5c7d9;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-topbar-viewmode button.is-active-viewmode {
    background: #ffe2eb !important;
    border-color: #f3b2c7 !important;
    color: #7f1d1d !important;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-table th {
    background: #f6dde9;
    color: #5a2143;
    border-color: #e9bfd2;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-table td {
    color: #2f1f39;
    border-color: #efd3df;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-badge.critica {
    color: #8f1d2c;
    background: #ffd9e1;
    border-color: #f4aab9;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-badge.alta {
    color: #a2261f;
    background: #ffd2d2;
    border-color: #f59a9a;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-badge.media {
    color: #8f430d;
    background: #ffe5c7;
    border-color: #f5bf86;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-badge.baja {
    color: #96610a;
    background: #fff0be;
    border-color: #efd35b;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-badge.minima {
    color: #8a6110;
    background: #fff7c9;
    border-color: #f3e57b;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-badge.sin-definir {
    color: #6b7280;
    background: #f2f3f5;
    border-color: #cfd4dc;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-board-header,
.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-funnel-card {
    box-shadow: 0 2px 8px rgba(90, 45, 109, 0.1) !important;
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-topbar {
    box-shadow: 0 2px 8px rgba(90, 45, 109, 0.08);
}

.huskyerp-app-only.huskyerp-theme-pastel .huskyerp-sidebar-header,
.huskyerp-app-only.huskyerp-theme-light .huskyerp-sidebar-header {
    color: inherit;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-topbar,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-box:not(.huskyerp-board-gallery-box),
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-col,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-board-header,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-board-tile.is-active-board,
.huskyerp-app-only.huskyerp-theme-dark button,
.huskyerp-app-only.huskyerp-theme-dark button:hover {
    box-shadow: none !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-create-board-btn {
    background: #065f46 !important;
    border-color: #10b981 !important;
    color: #ecfeff !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-create-board-btn:hover {
    background: #047857 !important;
    color: #d1fae5 !important;
}

.huskyerp-board-category {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.2;
    margin-top: -10px;
}

.huskyerp-board-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.huskyerp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #3a4558;
    background: #2a3344;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
}

.huskyerp-board-gallery {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.huskyerp-board-gallery-filters {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.huskyerp-board-gallery-filters label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
}

.huskyerp-board-gallery-filters label span {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
}

.huskyerp-board-gallery-filters select {
    border: 1px solid #3a4558;
    border-radius: 10px;
    background: #1b2230;
    color: #e2e8f0;
    padding: 9px 11px;
    font-size: 13px;
}

.huskyerp-board-gallery-summary {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.huskyerp-board-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    border-radius: 12px !important;
    padding: 0 !important;
    overflow: hidden;
    min-height: 0;
    background: #1d232f !important;
    border: 1px solid #3a4355 !important;
    cursor: pointer;
    min-width: 0;
    height: 100%;
}

.huskyerp-board-tile.is-category-aprendizaje { border-left: 4px solid #a78bfa !important; }
.huskyerp-board-tile.is-category-comercial-marketing { border-left: 4px solid #f97316 !important; }
.huskyerp-board-tile.is-category-finanzas-personales { border-left: 4px solid #22c55e !important; }
.huskyerp-board-tile.is-category-ideas-exploracion { border-left: 4px solid #06b6d4 !important; }
.huskyerp-board-tile.is-category-otros { border-left: 4px solid #64748b !important; }
.huskyerp-board-tile.is-category-proyectos { border-left: 4px solid #3b82f6 !important; }
.huskyerp-board-tile.is-category-salud-hogar { border-left: 4px solid #84cc16 !important; }
.huskyerp-board-tile.is-category-default { border-left: 4px solid #64748b !important; }

.huskyerp-board-tile:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.huskyerp-board-tile-strip {
    display: none;
}

.huskyerp-board-tile-strip.is-financial {
    display: none;
}

.huskyerp-board-tile-title {
    display: block;
    font-weight: 700;
    color: #f8fafc;
    padding: 12px 12px 4px;
}

.huskyerp-board-tile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0 12px 12px;
}

.huskyerp-board-tile small {
    color: #94a3b8;
    padding: 0;
    text-transform: capitalize;
}

.huskyerp-board-tile-prefix {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(59, 130, 246, 0.16);
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.huskyerp-board-tile-client {
    width: 100%;
    margin-top: auto;
    padding: 0 12px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.huskyerp-board-tile-client-label {
    color: rgba(219, 231, 245, 0.62);
}

.huskyerp-board-tile-client-value {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(148, 163, 184, 0.22);
    border: 1px solid transparent;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.huskyerp-client-color-picker {
    display: grid;
    gap: 6px;
}

.huskyerp-client-color-picker.is-disabled {
    opacity: 0.6;
}

.huskyerp-client-color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.huskyerp-client-color-swatch {
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    border-radius: 50% !important;
    border: 2px solid transparent !important;
    background: var(--client-swatch-color, #334155) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    flex: 0 0 auto;
    line-height: 0;
    position: relative;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.huskyerp-client-color-swatch:hover:not(:disabled) {
    transform: scale(1.08);
}

.huskyerp-client-color-swatch.is-active {
    border-color: #f8fafc !important;
    box-shadow: 0 0 0 2px rgba(248, 250, 252, 0.92), 0 0 0 5px rgba(15, 23, 42, 0.42);
    transform: scale(1.06);
}

.huskyerp-client-color-swatch:disabled {
    cursor: not-allowed;
}

.huskyerp-company-derived-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-height: 24px;
}

.huskyerp-company-derived-service-chip,
.huskyerp-company-derived-services-empty,
.huskyerp-company-derived-services-placeholder {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.35;
}

.huskyerp-company-derived-service-chip {
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #dbeafe;
    font-weight: 600;
}

.huskyerp-company-derived-services-empty,
.huskyerp-company-derived-services-placeholder {
    background: rgba(148, 163, 184, 0.10);
    border: 1px dashed rgba(148, 163, 184, 0.24);
    color: #94a3b8;
}

.huskyerp-company-client-status-col,
.huskyerp-company-client-status-cell {
    min-width: 100px;
    width: 100px;
}

.huskyerp-company-client-status-cell select {
    min-width: 100px;
}

.huskyerp-board-gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.huskyerp-board-gallery-pagination span {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.huskyerp-board-tile.is-active-board {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 2px #60a5fa, 0 2px 6px rgba(2, 6, 23, 0.18);
}

.huskyerp-cardmodal-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(250px, 1fr);
    gap: 20px;
    min-height: 100%;
}

.huskyerp-card-edit-modal .huskyerp-modal-field {
    min-width: 0;
    margin-bottom: 0px;
}

.huskyerp-card-edit-modal .huskyerp-modal-field input,
.huskyerp-card-edit-modal .huskyerp-modal-field select,
.huskyerp-card-edit-modal .huskyerp-modal-field textarea {
    border-width: 1px;
    padding: 9px 11px;
}

.huskyerp-card-edit-modal .huskyerp-card-desc-input {
    min-height: 56px;
    max-height: none;
    overflow: hidden;
    resize: none;
}

.huskyerp-cardmodal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.huskyerp-cardmodal-head-main {
    min-width: 0;
    flex: 1;
}

.huskyerp-card-id-inline {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.huskyerp-card-title-inline-input {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 6px 10px;
    background: transparent;
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    font-family: inherit;
    resize: none;
    overflow: hidden;
    overflow-y: hidden;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    min-height: 0;
    max-height: 96px;
    height: 38px;
}

.huskyerp-card-title-inline-input:focus {
    outline: none;
    border-color: #93c5fd;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.huskyerp-cardmodal-head h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
}

.huskyerp-cardmodal-head select {
    min-width: 220px;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-transform: capitalize;
}

.huskyerp-cardmodal-move-section {
    display: grid;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.huskyerp-cardmodal-move-section label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.huskyerp-cardmodal-sidebar {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
}

.huskyerp-cardmodal-move-section select {
    width: 100%;
}

.huskyerp-cardmodal-dependency-section {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.huskyerp-cardmodal-dependency-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

.huskyerp-cardmodal-dependency-head-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.huskyerp-cardmodal-dependency-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.huskyerp-cardmodal-dependency-head small,
.huskyerp-cardmodal-dependency-note,
.huskyerp-cardmodal-dependency-help {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.huskyerp-cardmodal-dependency-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.huskyerp-cardmodal-dependency-section.is-collapsed .huskyerp-cardmodal-dependency-body {
    display: none;
}

.huskyerp-cardmodal-dependency-alert {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 12px;
    line-height: 1.45;
}

.huskyerp-cardmodal-dependency-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.huskyerp-cardmodal-dependency-metric {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.huskyerp-cardmodal-dependency-metric span {
    color: #64748b;
    font-size: 12px;
}

.huskyerp-cardmodal-dependency-metric strong {
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.huskyerp-cardmodal-dependency-group {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.huskyerp-cardmodal-dependency-group-head {
    display: grid;
    gap: 2px;
}

.huskyerp-cardmodal-dependency-group-head strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.huskyerp-cardmodal-dependency-group-head small {
    color: #64748b;
    font-size: 12px;
}

.huskyerp-cardmodal-dependency-search {
    width: 100%;
    min-width: 0;
}

.huskyerp-cardmodal-dependency-search-wrap {
    position: relative;
}

.huskyerp-cardmodal-dependency-search-wrap .huskyerp-cardmodal-dependency-search {
    padding-right: 36px;
}

.huskyerp-cardmodal-dependency-search-loading {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.28);
    border-top-color: #60a5fa;
    opacity: 0;
    pointer-events: none;
    animation: huskyerp-dependency-search-spin 0.8s linear infinite;
    transition: opacity 0.15s ease;
}

.huskyerp-cardmodal-dependency-search-loading.is-visible {
    opacity: 1;
}

.huskyerp-cardmodal-dependency-list {
    display: block;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #dbe4ef;
    background: #ffffff;
}

.huskyerp-cardmodal-dependency-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.huskyerp-cardmodal-dependency-list .huskyerp-cardmodal-dependency-option:last-of-type {
    margin-bottom: 0;
}

.huskyerp-cardmodal-dependency-option input {
    margin: 4px 0 0 0;
}

.huskyerp-cardmodal-dependency-option-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.huskyerp-cardmodal-dependency-option-title {
    display: block;
    width: 100%;
    min-width: 0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

.huskyerp-cardmodal-dependency-option-meta {
    display: block;
    width: 100%;
    min-width: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

.huskyerp-cardmodal-dependency-option-copy strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.huskyerp-cardmodal-dependency-option-copy small {
    display: block;
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.huskyerp-cardmodal-dependency-list label.huskyerp-cardmodal-dependency-option,
.huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-list label.huskyerp-cardmodal-dependency-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    justify-content: stretch;
    gap: 10px;
    min-height: 0;
    margin: 0;
}

.huskyerp-cardmodal-dependency-list label.huskyerp-cardmodal-dependency-option .huskyerp-cardmodal-dependency-option-copy,
.huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-list label.huskyerp-cardmodal-dependency-option .huskyerp-cardmodal-dependency-option-copy {
    display: grid;
    align-items: start;
    justify-items: start;
    min-width: 0;
}

.huskyerp-cardmodal-dependency-list label.huskyerp-cardmodal-dependency-option .huskyerp-cardmodal-dependency-option-copy strong,
.huskyerp-cardmodal-dependency-list label.huskyerp-cardmodal-dependency-option .huskyerp-cardmodal-dependency-option-copy small,
.huskyerp-cardmodal-dependency-list label.huskyerp-cardmodal-dependency-option .huskyerp-cardmodal-dependency-option-copy .huskyerp-cardmodal-dependency-option-title,
.huskyerp-cardmodal-dependency-list label.huskyerp-cardmodal-dependency-option .huskyerp-cardmodal-dependency-option-copy .huskyerp-cardmodal-dependency-option-meta,
.huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-list label.huskyerp-cardmodal-dependency-option .huskyerp-cardmodal-dependency-option-copy strong,
.huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-list label.huskyerp-cardmodal-dependency-option .huskyerp-cardmodal-dependency-option-copy small,
.huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-list label.huskyerp-cardmodal-dependency-option .huskyerp-cardmodal-dependency-option-copy .huskyerp-cardmodal-dependency-option-title,
.huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-list label.huskyerp-cardmodal-dependency-option .huskyerp-cardmodal-dependency-option-copy .huskyerp-cardmodal-dependency-option-meta {
    width: 100%;
    min-width: 0;
    text-align: left;
}

.huskyerp-cardmodal-dependency-empty {
    padding: 8px 10px;
    color: #64748b;
    font-size: 12px;
}

@keyframes huskyerp-dependency-search-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.huskyerp-cardmodal-dependency-actions {
    display: flex;
    justify-content: flex-end;
}

.huskyerp-cardmodal-activity {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    min-height: 300px;
}

.huskyerp-cardmodal-activity h4 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
}

.huskyerp-cardmodal-activity textarea {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
    font-size: 14px;
    margin-bottom: 12px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s ease;
}

.huskyerp-cardmodal-activity textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.huskyerp-activity-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.huskyerp-cardmodal-activity-actions {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 8px;
}

.huskyerp-cardmodal-activity-actions button {
    min-width: 130px;
}

.huskyerp-activity-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.huskyerp-activity-item-head strong {
    color: #1e293b;
    font-size: 12px;
}

.huskyerp-activity-item-head small {
    color: #64748b;
    font-size: 11px;
}

.huskyerp-activity-item-body {
    color: #334155;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.huskyerp-activity-item-body.is-system {
    color: #475569;
    font-weight: 600;
}

.huskyerp-modal-lg {
    width: min(1080px, 100%);
}

.huskyerp-modal label {
    display: flex;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
    color: rgb(71 85 105 / 1);
    margin: 0 0 5px 2px;
    align-items: center;
    justify-content: left;
}

.huskyerp-modal-header {
    padding: 1.25rem 1.5rem 0.95rem;
}

.huskyerp-modal-button {
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25rem;
    min-width: 100px;
    padding: 10px 18px;
    transition: all 0.15s ease;
}

.huskyerp-modal-button:hover {
    border-color: #94a3b8;
    background: #e2e8f0;
    transform: translateY(-1px);
}

.huskyerp-modal-button:active {
    transform: translateY(0);
}

.huskyerp-modal-button:disabled {
    cursor: default;
    opacity: 0.7;
    transform: none;
}

.huskyerp-modal-button.is-primary {
    border-color: #2563eb;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    color: #ffffff;
}

.huskyerp-modal-button.is-primary:hover {
    border-color: #1d4ed8;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.huskyerp-modal-button.is-danger {
    border-color: #ef4444;
    background: #b91c1c;
    color: #ffffff;
}

.huskyerp-modal-button.is-danger:hover {
    border-color: #dc2626;
    background: #991b1b;
}

.huskyerp-create-board-modal .huskyerp-modal-header {
    padding: 1.25rem 1.5rem 1.15rem;
}

.huskyerp-modal-header-with-actions {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    justify-content: space-between;
}

.huskyerp-modal-header-with-actions .huskyerp-cardmodal-head {
    flex: 1 1 50%;
    min-width: 0;
}

.huskyerp-cardmodal-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 4px;
}

.huskyerp-cardmodal-header-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.huskyerp-cardmodal-header-status {
    min-height: 22px;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.huskyerp-cardmodal-header-actions button {
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 12px;
}

.huskyerp-card-edit-modal {
    min-height: calc(100vh - 100px);
    max-height: calc(100vh - 78px);
    display: flex;
    flex-direction: column;
}

.huskyerp-card-edit-modal .huskyerp-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal h3,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal h4 {
    color: #ffffff;
}

.huskyerp-card-edit-modal .huskyerp-modal-section {
    border-bottom: none;
    padding-bottom: 20px;
}

.huskyerp-card-edit-modal label {
    color: #ffffff;
    font-size: 12px;
}

.huskyerp-card-edit-modal input,
.huskyerp-card-edit-modal select,
.huskyerp-card-edit-modal textarea {
    font-family: inherit;
}

.huskyerp-card-edit-modal .huskyerp-card-block-section {
    background-color: #19202b;
    padding: 14px 18px;
    border-radius: 12px;
}

.huskyerp-card-edit-modal .huskyerp-modal-section-title.is-plain {
    color: #ffffff;
}
.huskyerp-modal label.huskyerp-currency-option {
display: flex;
}

.huskyerp-cardmodal-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-priority,
.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-estimated,
.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-executed,
.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-scheduled,
.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-performance,
.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-refinement,
.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-execution-status {
    grid-column: span 1;
    min-width: 0;
}

.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-priority {
    order: 1;
}

.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-performance {
    order: 2;
    grid-column: span 1;
}

.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-execution-status {
    order: 3;
    grid-column: span 1;
}

.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-refinement {
    order: 4;
}

.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-estimated {
    order: 5;
}

.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-scheduled {
    order: 6;
}

.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-executed {
    order: 7;
}

.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-estimated,
.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-scheduled,
.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-executed {
    padding: 14px;
    border: 1px solid rgba(71, 85, 105, 0.35);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.42));
}

.huskyerp-cardmeta-control-wrap {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.huskyerp-cardmeta-control-wrap input[type="number"],
.huskyerp-cardmeta-control-wrap input[type="datetime-local"],
.huskyerp-cardmeta-control-wrap input[readonly],
.huskyerp-cardmeta-control-wrap select {
    min-height: 40px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.huskyerp-priority-select {
    font-weight: 700;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.huskyerp-priority-select.is-priority-empty {
    color: #94a3b8;
    background: #0f172a;
    border-color: #334155;
}

.huskyerp-priority-select.is-priority-critica {
    color: #7f1d1d;
    background: #fee2e2;
    border-color: #fca5a5;
}

.huskyerp-priority-select.is-priority-alta {
    color: #991b1b;
    background: #fecaca;
    border-color: #f87171;
}

.huskyerp-priority-select.is-priority-media {
    color: #9a3412;
    background: #fed7aa;
    border-color: #fb923c;
}

.huskyerp-priority-select.is-priority-baja {
    color: #a16207;
    background: #fef3c7;
    border-color: #facc15;
}

.huskyerp-priority-select.is-priority-minima {
    color: #854d0e;
    background: #fef9c3;
    border-color: #fde047;
}

.huskyerp-priority-select option {
    font-weight: 600;
}

.huskyerp-cardmeta-helper {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #94a3b8;
}

/* First-row fields: lighter label weight */
.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-priority label,
.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-performance label,
.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-execution-status label,
.huskyerp-cardmodal-meta-grid .huskyerp-card-meta-refinement label {
    font-weight: 400;
}

@media (max-width: 1380px) {
    .huskyerp-cardmodal-meta-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) {
    .huskyerp-cardmodal-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .huskyerp-cardmodal-meta-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.huskyerp-refinement-state-help {
    display: inline-flex;
    align-items: center;
    margin-top: 7px;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.huskyerp-refinement-state-help.is-refinement-epica {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.18);
}

.huskyerp-refinement-state-help.is-refinement-functional {
    color: #fef3c7;
    background: rgba(217, 119, 6, 0.18);
}

.huskyerp-refinement-state-help.is-refinement-technical {
    color: #cffafe;
    background: rgba(8, 145, 178, 0.18);
}

.huskyerp-refinement-state-help.is-refinement-ready {
    color: #dcfce7;
    background: rgba(22, 163, 74, 0.18);
}

.huskyerp-performance-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 35px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.huskyerp-performance-chip.is-positive {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
}

.huskyerp-performance-chip.is-warning {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.45);
    background: rgba(250, 204, 21, 0.12);
    padding: 6px 11px;
    font-weight: 400;
}

.huskyerp-performance-chip.is-negative {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.12);
}

.huskyerp-performance-chip.is-empty {
    color: #94a3b8;
    border-color: #334155;
    background: rgba(15, 23, 42, 0.35);
    font-weight: 400;
}

.huskyerp-card-edit-modal .is-primary-section {
    margin-bottom: 0;
    padding-bottom: 12px;
}

.huskyerp-card-edit-modal .is-financial-section {
    margin-top: 0;
}

.huskyerp-card-edit-modal .huskyerp-custom-fields-section {
    margin-top: 10px;
    padding: 12px 16px;
}

.huskyerp-custom-fields-section-head {
    margin-bottom: 10px;
}

.huskyerp-custom-fields-section-body {
    display: grid;
    gap: 10px;
}

.huskyerp-custom-fields-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.huskyerp-custom-field-entry {
    min-width: 0;
}

.huskyerp-custom-field-entry label {
    margin-bottom: 6px;
}

.huskyerp-financial-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0;
}

.huskyerp-subtasks-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.huskyerp-card-edit-modal .huskyerp-subtask-form-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
}

.huskyerp-card-edit-modal .huskyerp-subtask-meta-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.huskyerp-card-edit-modal [data-subtask-title] {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.huskyerp-card-edit-modal .huskyerp-subtask-create-box {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 10px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.12);
}

.huskyerp-card-edit-modal .huskyerp-subtask-create-box .huskyerp-modal-field {
    margin-bottom: 5px;
}

.huskyerp-card-edit-modal .huskyerp-subtask-items {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.huskyerp-card-edit-modal .huskyerp-subtask-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.08);
}

.huskyerp-card-edit-modal .huskyerp-subtask-item-title-wrap {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.huskyerp-card-edit-modal .huskyerp-subtask-item-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.huskyerp-card-edit-modal .huskyerp-subtask-item-check {
    margin: 2px 0 0 0;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    opacity: 0.9;
    cursor: pointer;
}

.huskyerp-card-edit-modal .huskyerp-subtask-item-check:disabled {
    cursor: default;
    opacity: 0.7;
}

.huskyerp-card-edit-modal .huskyerp-subtask-item-title {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.huskyerp-card-edit-modal .huskyerp-subtask-item-title.is-completed {
    text-decoration: line-through;
    opacity: 0.75;
}

.huskyerp-card-edit-modal .huskyerp-subtask-item-meta {
    color: #9fb2cf;
    font-size: 11px;
    line-height: 1.3;
}

.huskyerp-card-edit-modal .huskyerp-subtask-item.is-editing {
    display: grid;
    gap: 8px;
}

.huskyerp-card-edit-modal .huskyerp-subtask-item.is-editing .huskyerp-modal-field {
    margin-bottom: 0;
}

.huskyerp-card-edit-modal [data-edit-subtask-title] {
    min-height: 45px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.huskyerp-card-edit-modal .huskyerp-subtask-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.huskyerp-card-edit-modal .huskyerp-subtask-item-actions.is-inline-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.huskyerp-card-edit-modal .huskyerp-subtask-item-actions.is-inline-actions button {
    flex: 0 0 auto;
}

.huskyerp-card-edit-modal .huskyerp-subtask-create-head {
    display: grid;
    gap: 2px;
    margin-bottom: 10px;
}

.huskyerp-card-edit-modal .huskyerp-subtask-create-head strong {
    font-size: 13px;
}

.huskyerp-card-edit-modal .huskyerp-subtask-create-head small {
    color: #cbd5e1;
    line-height: 1.35;
}

.huskyerp-card-edit-modal [data-subtask-title] {
    min-height: 40px;
}

.huskyerp-card-edit-modal .huskyerp-subtask-create-actions {
    display: flex;
    justify-content: flex-end;
}

.huskyerp-card-edit-modal .huskyerp-subtask-create-feedback {
    display: block;
    margin-top: 8px;
    color: #93c5fd;
    font-size: 12px;
}

.huskyerp-card-edit-modal .huskyerp-subtask-parent-derived-note {
    display: block;
    margin-top: 5px;
    color: #9fb2cf;
    font-size: 12px;
    line-height: 1.35;
}

.huskyerp-financial-collapse-btn {
    min-width: auto;
    padding: 6px 10px !important;
    font-size: 12px !important;
}

.huskyerp-card-edit-modal .huskyerp-card-block-section.is-collapsed {
    padding: 14px 18px;
}

.huskyerp-card-block-section.is-financial-section.is-collapsed .huskyerp-financial-section-body {
    display: none;
}

.huskyerp-subtasks-section.is-collapsed .huskyerp-subtasks-section-body {
    display: none;
}

.huskyerp-subtasks-section.is-collapsed .huskyerp-subtasks-section-head {
    margin: 0;
}

.huskyerp-financial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.huskyerp-financial-grid.is-client-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.huskyerp-fin-client-field {
    grid-column: span 1;
}

.huskyerp-fin-client-row {
    display: block;
}

.huskyerp-fin-client-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.huskyerp-card-edit-modal .huskyerp-modal-actions {
    position: sticky;
    bottom: 0;
    background: transparent !important;
    border-top: none !important;
}

.huskyerp-card-edit-modal .huskyerp-modal-actions.huskyerp-card-modal-actions {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.huskyerp-card-modal-actions-left,
.huskyerp-card-modal-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.huskyerp-card-modal-actions-left {
    margin-right: auto;
}

.huskyerp-checkbox-inline {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.huskyerp-checkbox-inline input[type="checkbox"] {
    width: auto;
}

.huskyerp-subtasks-section {
    border-left: none !important;
}

.huskyerp-subtasks-section .huskyerp-modal-section-title::before {
    display: none !important;
}

.huskyerp-card-edit-modal input[readonly],
.huskyerp-card-edit-modal input:disabled {
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .huskyerp-board-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .huskyerp-board-gallery-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .huskyerp-board-gallery-summary {
        text-align: left;
    }

    .huskyerp-cardmodal-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .huskyerp-financial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .huskyerp-card-edit-modal .huskyerp-subtask-form-grid {
        grid-template-columns: 1fr;
    }

    .huskyerp-financial-grid.is-client-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .huskyerp-cardmodal-meta-grid {
        grid-template-columns: 1fr;
    }

    .huskyerp-custom-fields-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .huskyerp-financial-grid {
        grid-template-columns: 1fr;
    }

    .huskyerp-financial-grid.is-client-row {
        grid-template-columns: 1fr;
    }
}


.huskyerp-board-settings-modal {
    background: #1f2735;
    border: 1px solid #334155;
}

.huskyerp-board-settings-modal .huskyerp-modal-header {
    background: #252f40;
    border-bottom: 1px solid #334155;
}

.huskyerp-board-settings-modal .huskyerp-modal-body {
    background: #1f2735;
}

.huskyerp-board-settings-modal .huskyerp-modal-actions {
    background: #252f40;
    border-top: 1px solid #334155;
}

.huskyerp-board-settings-modal .huskyerp-modal-body label {
    color: #93a4bd;
}

.huskyerp-board-settings-modal input,
.huskyerp-board-settings-modal select,
.huskyerp-board-settings-modal textarea {
    border: 1px solid #3a4558;
    background: #121a27;
    color: #e2e8f0;
}

.huskyerp-board-settings-modal input:focus,
.huskyerp-board-settings-modal select:focus,
.huskyerp-board-settings-modal textarea:focus {
    border-color: #60a5fa;
    background: #172131;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.huskyerp-board-settings-modal input[type="file"] {
    padding: 8px;
    border-radius: 10px;
    background: #0f1724;
}

.huskyerp-board-settings-modal input[type="file"]::file-selector-button {
    border: 1px solid #4b5b75;
    border-radius: 8px;
    background: #2b3446;
    color: #e2e8f0;
    padding: 6px 10px;
    margin-right: 10px;
    cursor: pointer;
}

.huskyerp-board-settings-modal .huskyerp-member-assign input {
    background: #121a27;
    color: #e2e8f0;
    border-color: #3a4558;
}

.huskyerp-board-settings-modal .huskyerp-member-assign button {
    min-height: 42px;
}

.huskyerp-board-close-modal {
    background: #1f2735;
    border: 1px solid #334155;
}

.huskyerp-board-close-modal .huskyerp-modal-header {
    background: #252f40;
    border-bottom: 1px solid #334155;
}

.huskyerp-board-close-modal .huskyerp-modal-header h3 {
    margin-bottom: 0;
}

.huskyerp-board-close-modal .huskyerp-modal-body {
    background: #1f2735;
}

.huskyerp-board-close-modal .huskyerp-modal-actions {
    background: #252f40;
    border-top: 1px solid #334155;
}

.huskyerp-board-close-modal .huskyerp-modal-body p,
.huskyerp-board-close-modal .huskyerp-modal-body small {
    color: #d4deed;
}

.huskyerp-board-close-modal .huskyerp-modal-body p {
    margin-top: 0;
}

.huskyerp-board-close-modal .huskyerp-modal-body strong {
    color: #e2e8f0;
}

.huskyerp-board-close-modal .huskyerp-modal-actions button[data-confirm-board-close],
.huskyerp-board-close-modal .huskyerp-modal-actions .huskyerp-modal-button.is-danger {
    background: #b91c1c;
    border: 2px solid #ef4444;
    color: #ffffff;
}

.huskyerp-board-close-modal .huskyerp-modal-actions button[data-confirm-board-close]:hover,
.huskyerp-board-close-modal .huskyerp-modal-actions .huskyerp-modal-button.is-danger:hover {
    background: #991b1b;
    border-color: #dc2626;
}

.huskyerp-create-board-modal {
    width: min(760px, 100%);
}

.huskyerp-create-board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin-bottom: 14px;
}

.huskyerp-create-board-grid .huskyerp-modal-field {
    margin-bottom: 0;
}

.huskyerp-create-board-grid-primary .huskyerp-modal-field input,
.huskyerp-create-board-grid-primary .huskyerp-modal-field select {
    width: 100%;
}

.huskyerp-create-board-inline-create {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 8px;
}

.huskyerp-create-board-inline-create input {
    min-width: 0;
}

.huskyerp-create-board-inline-create button {
    white-space: nowrap;
}

.huskyerp-reward-editor-modal {
    width: min(980px, 100%);
}

.huskyerp-reward-editor-modal .huskyerp-modal-header {
    padding: 22px 28px;
}

.huskyerp-reward-editor-modal .huskyerp-modal-body {
    padding: 24px 28px;
    background: #f8fafc;
}

.huskyerp-reward-editor-modal .huskyerp-modal-actions {
    padding: 16px 28px 20px;
}

.huskyerp-reward-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px 18px;
}

.huskyerp-reward-editor-grid .huskyerp-modal-field {
    margin-bottom: 0;
}

.huskyerp-reward-editor-field-wide {
    grid-column: 1 / -1;
}

.huskyerp-reward-editor-modal textarea {
    min-height: 96px;
}

.huskyerp-reward-active-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #dbe7f5;
    background: #ffffff;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-editor-modal {
    background: #1f2735;
    border: 1px solid #334155;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-editor-modal .huskyerp-modal-header {
    background: #252f40;
    border-bottom: 1px solid #334155;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-editor-modal .huskyerp-modal-body {
    background: #1f2735;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-editor-modal .huskyerp-modal-actions {
    background: #252f40;
    border-top: 1px solid #334155;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-editor-modal label {
    color: #e2e8f0;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-editor-modal input,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-editor-modal select,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-editor-modal textarea {
    border-color: #3a4558;
    background: #121a27;
    color: #e2e8f0;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-editor-modal input:focus,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-editor-modal select:focus,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-editor-modal textarea:focus {
    border-color: #60a5fa;
    background: #172131;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-editor-modal .huskyerp-reward-active-toggle {
    border-color: #3a4558;
    background: #172131;
}

.huskyerp-reward-insufficient-modal {
    width: min(560px, 100%);
}

.huskyerp-reward-success-modal {
    width: min(620px, 100%);
    position: relative;
    z-index: 2;
}

.huskyerp-reward-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.huskyerp-reward-confetti span {
    position: absolute;
    top: -14px;
    left: calc((var(--i) * 4.5%) + 2%);
    width: 8px;
    height: 14px;
    border-radius: 2px;
    opacity: 0.85;
    transform: rotate(12deg);
    animation: huskyerpConfettiFall 2.4s linear infinite;
    animation-delay: calc(var(--i) * 0.08s);
    background: hsl(var(--h), 85%, 62%);
}

@keyframes huskyerpConfettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }
    12% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(105vh) rotate(540deg);
        opacity: 0;
    }
}

.huskyerp-reward-insufficient-modal .huskyerp-modal-header {
    padding-bottom: 12px;
}

.huskyerp-reward-insufficient-modal .huskyerp-modal-header h3 {
    margin-bottom: 0;
}

.huskyerp-reward-insufficient-modal .huskyerp-modal-body {
    background: #f8fafc;
}

.huskyerp-reward-insufficient-modal p {
    margin: 0 0 10px;
    color: #334155;
}

.huskyerp-reward-insufficient-modal small {
    color: #64748b;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-insufficient-modal {
    background: #1f2735;
    border: 1px solid #334155;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-insufficient-modal .huskyerp-modal-header {
    background: #252f40;
    border-bottom: 1px solid #334155;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-insufficient-modal .huskyerp-modal-body {
    background: #1f2735;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-insufficient-modal .huskyerp-modal-actions {
    background: #252f40;
    border-top: 1px solid #334155;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-insufficient-modal p,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-insufficient-modal small {
    color: #d4deed;
}

.huskyerp-coin-notice-modal {
    max-width: 560px;
    overflow: hidden;
    border: 1px solid #d7e3f4;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.huskyerp-coin-notice-modal .huskyerp-modal-header {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 52%, #facc15 100%);
    color: #f8fafc;
    padding-bottom: 1.2rem;
}

.huskyerp-coin-notice-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(248, 250, 252, 0.92);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.huskyerp-coin-notice-modal .huskyerp-modal-header h3 {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    color: #fff;
}

.huskyerp-coin-notice-modal .huskyerp-modal-header p {
    margin: 10px 0 0;
    color: rgba(248, 250, 252, 0.95);
}

.huskyerp-coin-notice-modal .huskyerp-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7fb 100%);
}

.huskyerp-coin-notice-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dbe7f3;
}

.huskyerp-coin-notice-balance span {
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.huskyerp-coin-notice-balance strong {
    color: #0f172a;
    font-size: 22px;
}

.huskyerp-coin-notice-breakdown {
    border-radius: 18px;
    border: 1px solid #dbe7f3;
    background: rgba(255, 255, 255, 0.92);
    padding: 16px;
}

.huskyerp-coin-notice-breakdown-head {
    margin-bottom: 12px;
}

.huskyerp-coin-notice-breakdown-head h4 {
    margin: 0 0 4px;
    color: #0f172a;
}

.huskyerp-coin-notice-breakdown-head small {
    color: #64748b;
}

.huskyerp-coin-notice-grid {
    display: grid;
    gap: 10px;
}

.huskyerp-coin-notice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
}

.huskyerp-coin-notice-row span {
    color: #475569;
    font-size: 13px;
}

.huskyerp-coin-notice-row strong {
    color: #0f172a;
    font-size: 14px;
    white-space: nowrap;
}

.huskyerp-coin-notice-row.is-bonus strong {
    color: #047857;
}

.huskyerp-coin-notice-row.is-total {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.14) 0%, rgba(250, 204, 21, 0.18) 100%);
    border: 1px solid rgba(13, 148, 136, 0.18);
}

.huskyerp-coin-notice-row.is-total strong {
    color: #0f766e;
    font-size: 16px;
}

.huskyerp-coin-notice-modal .huskyerp-modal-actions {
    background: #ffffff;
    border-top: 1px solid #dbe7f3;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-modal {
    border-color: #1f3d53;
    background: #0f172a;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-modal .huskyerp-modal-header {
    background: linear-gradient(135deg, #115e59 0%, #0f766e 48%, #ca8a04 100%);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-modal .huskyerp-modal-body {
    background: linear-gradient(180deg, #0f172a 0%, #111c2f 100%);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-balance,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-breakdown,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-row {
    background: #122033;
    border-color: #22354c;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-balance span,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-row span,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-breakdown-head small {
    color: #a9bdd3;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-balance strong,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-breakdown-head h4,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-row strong {
    color: #f8fafc;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-row.is-bonus strong {
    color: #34d399;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-row.is-total {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(250, 204, 21, 0.18) 100%);
    border-color: rgba(45, 212, 191, 0.18);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-row.is-total strong {
    color: #5eead4;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-coin-notice-modal .huskyerp-modal-actions {
    background: #111c2f;
    border-top-color: #22354c;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-reward-insufficient-modal h3 {
    color: #e2e8f0;
}

.huskyerp-template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
}

.huskyerp-template-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
    min-height: 72px;
}

.huskyerp-template-item small {
    color: #94a3b8;
    font-weight: 500;
}

.huskyerp-template-item.is-active-template {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.28) inset;
}

.huskyerp-template-preview {
    margin-top: 12px;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 10px 12px;
    background: #1d2431;
}

.huskyerp-template-preview h4 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #e2e8f0;
}

.huskyerp-template-preview p {
    margin: 0 0 6px;
    color: #94a3b8;
    font-size: 13px;
}

.huskyerp-board-settings-modal h3 {
    color: #e2e8f0;
    margin: 0;
}

.huskyerp-board-settings-modal .huskyerp-settings-block > label {
    font-weight: 700;
    margin-bottom: 10px;
}

.huskyerp-modal-actions button[data-close-board-settings] {
    background: #2b3446;
    border: 2px solid #3a4558;
    color: #e2e8f0;
}

.huskyerp-modal-actions button[data-close-board-settings]:hover {
    background: #344058;
    border-color: #4b5b75;
    transform: translateY(-1px);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal {
    background: #1f2735;
    border: 1px solid #334155;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-modal-header {
    background: #252f40;
    border-bottom: 1px solid #334155;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-modal-body {
    background: #1f2735;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-modal-actions {
    background: transparent !important;
    border-top: none !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-title-inline-input {
    color: #e2e8f0;
    background: #121a27;
    border-color: #3a4558;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-title-inline-input:focus {
    border-color: #60a5fa;
    background: #172131;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-cardmodal-head select,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal input,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal select,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal textarea {
    border-color: #3a4558;
    background: #121a27;
    color: #e2e8f0;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal input:focus,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal select:focus,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal textarea:focus {
    border-color: #60a5fa;
    background: #172131;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal label,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-modal-section-title.is-plain {
    color: #ffffff;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-activity {
    border-color: #334155;
    background: #172131;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-move-section,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-section {
    border-color: #334155;
    background: #172131;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-head h4,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-move-section label {
    color: #e2e8f0;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-head small,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-note,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-help {
    color: #94a3b8;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-metric,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-list,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-option {
    border-color: #334155;
    background: #121a27;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-metric span,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-group-head small,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-option-copy small,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-option-meta,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-empty {
    color: #94a3b8;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-metric strong,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-group-head strong,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-option-title,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-option-copy strong {
    color: #e2e8f0;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-dependency-alert {
    background: rgba(234, 88, 12, 0.14);
    border-color: rgba(249, 115, 22, 0.34);
    color: #fdba74;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-cardmodal-activity h4 {
    color: #e2e8f0;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-activity-item {
    border-color: #334155;
    background: #121a27;
    color: #94a3b8;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-activity-item-head strong {
    color: #e2e8f0;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-activity-item-head small,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-edit-modal .huskyerp-activity-item-body {
    color: #94a3b8;
}

/* Old loader track removed — replaced by .huskyerp-dino-game */

@media (max-width: 1024px) {
    .huskyerp-shell,
    .huskyerp-shell.is-sidebar-collapsed {
        grid-template-columns: 72px 1fr;
    }

    .huskyerp-main {
        padding: 12px;
    }

    .huskyerp-box {
        padding: 12px;
    }

    .huskyerp-sidebar {
        border-right: 1px solid #2e3440;
    }

    .huskyerp-sidebar-text,
    .huskyerp-menu-label {
        opacity: 0 !important;
        width: 0 !important;
        pointer-events: none;
    }

    .huskyerp-sidebar-header {
        justify-content: center;
    }

    .huskyerp-menu button {
        justify-content: center;
        padding: 12px;
    }

    .huskyerp-sidebar-toggle {
        display: none !important;
    }

    .huskyerp-topbar {
        flex-wrap: wrap;
        gap: 8px;
        border-radius: 14px;
    }

    .huskyerp-topbar-left {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
    }

    .huskyerp-topbar-left::-webkit-scrollbar {
        display: none;
    }

    .huskyerp-topbar-search {
        width: 100%;
        min-width: 0;
    }

    .huskyerp-topbar-right {
        width: 100%;
        justify-content: flex-end;
    }

    .huskyerp-topbar-right button {
        min-height: 40px;
    }

    .huskyerp-board-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .huskyerp-board-gallery-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .huskyerp-board-gallery-filters label {
        min-width: 0;
    }

    .huskyerp-board-gallery-summary {
        text-align: left;
    }

    .huskyerp-board-gallery-pagination {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .huskyerp-board-gallery-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .huskyerp-board-gallery-controls {
        width: 100%;
        justify-content: flex-end;
    }

    .huskyerp-modal-grid {
        grid-template-columns: 1fr;
    }

    .huskyerp-cardmodal-layout {
        grid-template-columns: 1fr;
    }

    .huskyerp-funnel-grid {
        grid-template-columns: 1fr;
    }

    .huskyerp-funnel-arrow {
        display: none;
    }

    .huskyerp-modal {
        width: min(640px, 100%);
    }

    .huskyerp-modal-header,
    .huskyerp-modal-body,
    .huskyerp-modal-actions {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 768px) {
    .huskyerp-shell,
    .huskyerp-shell.is-sidebar-collapsed {
        grid-template-columns: 64px 1fr;
    }

    .huskyerp-sidebar-inner {
        padding: 14px 8px;
    }

    .huskyerp-menu button {
        padding: 11px;
        border-radius: 10px;
    }

    .huskyerp-topbar-left .huskyerp-motiv-badge:not(.is-coins):not(.is-pending) {
        display: none;
    }

    .huskyerp-topbar-search input {
        min-height: 42px;
    }

    .huskyerp-topbar-right {
        justify-content: stretch;
        gap: 8px;
        flex-wrap: wrap;
    }

    .huskyerp-topbar-right > button {
        flex: 1 1 130px;
    }

    .huskyerp-topbar-right .huskyerp-topbar-viewmode {
        margin-right: auto;
    }

    .huskyerp-topbar-right .huskyerp-topbar-viewmode button {
        flex: 0 0 auto;
    }

    .huskyerp-board-gallery {
        grid-template-columns: 1fr;
    }

    .huskyerp-create-board-grid {
        grid-template-columns: 1fr;
    }

    .huskyerp-board-gallery-controls button {
        flex: 1;
        min-height: 40px;
    }

    .huskyerp-cardmodal-meta-grid {
        grid-template-columns: 1fr;
    }

    .huskyerp-cardmodal-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .huskyerp-cardmodal-head select {
        min-width: 0;
    }

    .huskyerp-card-title-inline-input {
        font-size: 20px;
    }

    .huskyerp-list-dropzone {
        max-height: calc(100vh - 300px);
    }

    .huskyerp-card {
        padding: 10px;
    }

    .huskyerp-modal-backdrop {
        padding: 8px;
    }

    .huskyerp-modal {
        width: 100%;
        max-height: 92vh;
    }

    .huskyerp-modal-body {
        max-height: calc(92vh - 140px);
        padding: 14px 12px;
    }

    .huskyerp-template-grid {
        grid-template-columns: 1fr;
    }

    .huskyerp-create-board-grid {
        grid-template-columns: 1fr;
    }

    .huskyerp-reward-editor-grid {
        grid-template-columns: 1fr;
    }

    .huskyerp-board-report-item {
        flex-direction: column;
        align-items: stretch;
    }

    .huskyerp-board-report-actions {
        justify-content: stretch;
    }

    .huskyerp-board-report-actions button {
        flex: 1;
    }

    .huskyerp-public-report-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .huskyerp-main {
        padding: 8px;
    }

    .huskyerp-topbar {
        border-radius: 12px;
        padding: 8px;
    }

    .huskyerp-topbar-left .huskyerp-motiv-badge.is-pending {
        display: none;
    }

    .huskyerp-motiv-badge {
        font-size: 11px;
        padding: 5px 8px;
    }

    .huskyerp-box {
        border-radius: 12px;
    }

    .huskyerp-board-tile {
        min-height: 104px;
    }

    .huskyerp-col {
        min-width: 96vw;
        max-width: 96vw;
    }

    .huskyerp-modal-actions {
        padding: 12px;
        gap: 8px;
    }

    .huskyerp-modal-actions button {
        min-width: 0;
        flex: 1;
    }

    .huskyerp-coin-notice-modal .huskyerp-modal-header h3 {
        font-size: 28px;
    }

    .huskyerp-coin-notice-balance,
    .huskyerp-coin-notice-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .huskyerp-coin-notice-row strong,
    .huskyerp-coin-notice-balance strong {
        white-space: normal;
    }
}

/* ==========================================================
   Orbit-style redesign (Dark mode only)
   ========================================================== */
.huskyerp-app-only.huskyerp-theme-dark {
    --orbit-bg-0: #04070d;
    --orbit-bg-1: #090f1a;
    --orbit-bg-2: #0d1624;
    --orbit-panel: #0a131f;
    --orbit-panel-strong: #0c1727;
    --orbit-stroke: #17334f;
    --orbit-stroke-soft: #13273e;
    --orbit-text: #d9e6ff;
    --orbit-muted: #88a0c5;
    --orbit-blue: #2f8cff;
    --orbit-cyan: #23d5d5;
    --orbit-green: #22c55e;
    background:
        radial-gradient(1200px 520px at 12% 4%, rgba(47, 140, 255, 0.18), transparent 62%),
        radial-gradient(900px 460px at 85% 95%, rgba(35, 213, 213, 0.14), transparent 64%),
        linear-gradient(160deg, var(--orbit-bg-0) 0%, var(--orbit-bg-1) 50%, #03070d 100%);
    color: var(--orbit-text);
}


.huskyerp-app-only.huskyerp-theme-dark .huskyerp-sidebar {
    border-right: 1px solid var(--orbit-stroke);
    background:
        radial-gradient(420px 280px at -12% -8%, rgba(47, 140, 255, 0.25), transparent 62%),
        linear-gradient(180deg, #070d17 0%, #060b14 100%);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-sidebar-inner {
    padding: 18px 10px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-sidebar-header {
    margin-bottom: 22px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #f4f8ff;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-sidebar-icon {
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(47, 140, 255, 0.23), rgba(35, 213, 213, 0.18));
    border: 1px solid rgba(47, 140, 255, 0.4);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-menu button,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-sidebar-toggle {
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--orbit-muted) !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-menu button:hover,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-sidebar-toggle:hover {
    color: #dbeafe !important;
    border-color: var(--orbit-stroke) !important;
    background: rgba(22, 43, 68, 0.48) !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-menu button.is-active {
    color: #dff7f7 !important;
    border-color: rgba(35, 213, 213, 0.42) !important;
    background: linear-gradient(90deg, rgba(17, 73, 122, 0.35), rgba(19, 82, 70, 0.28)) !important;
    box-shadow: inset 3px 0 0 rgba(35, 213, 213, 0.92) !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-main {
    padding: 6px 10px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-topbar {
    background: linear-gradient(180deg, rgba(11, 21, 36, 0.92), rgba(8, 16, 28, 0.9));
    border: 1px solid var(--orbit-stroke);
    border-radius: 14px;
    min-height: 58px;
    margin-bottom: 16px;
    padding: 8px 10px;
    box-shadow: 0 0 0 1px rgba(47, 140, 255, 0.12), 0 12px 36px rgba(3, 9, 18, 0.7);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-topbar-search input,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-member-assign input,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-company-table input,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-company-table select {
    border: 1px solid var(--orbit-stroke-soft);
    background: rgba(9, 18, 30, 0.9);
    color: #d9e6ff;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-topbar-search input::placeholder {
    color: #6f8ab0;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-topbar-viewmode {
    border-color: var(--orbit-stroke);
    background: rgba(9, 18, 30, 0.75);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-topbar-viewmode button.is-active-viewmode {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(6, 182, 212, 0.38)) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-motiv-badge {
    border-color: var(--orbit-stroke-soft);
    background: rgba(8, 18, 30, 0.92);
    color: #c5d8f6;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-box:not(.huskyerp-board-gallery-box),
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-col,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-board-header,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-subbox,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-financial-toggle,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-currency-selector,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-chart-wrap,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-calendar-grid-wrap {
    background: linear-gradient(165deg, rgba(11, 20, 33, 0.95), rgba(8, 15, 26, 0.94)) !important;
    border: 1px solid var(--orbit-stroke) !important;
    box-shadow: 0 10px 28px rgba(2, 8, 18, 0.55) !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-board-view-wrap .huskyerp-col,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-public-board-wrap .huskyerp-col {
    background: var(--list-bg, #0f2137) !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-board-tile {
    background: linear-gradient(160deg, rgba(10, 20, 34, 0.97), rgba(8, 17, 29, 0.96)) !important;
    border: 1px solid var(--orbit-stroke-soft) !important;
    border-radius: 10px !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-board-tile.is-active-board {
    border-color: rgba(35, 213, 213, 0.48) !important;
    box-shadow: inset 0 0 0 1px rgba(35, 213, 213, 0.38), 0 10px 24px rgba(3, 15, 26, 0.55) !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card {
    background: #1d242e !important;
    border: 1px solid #1d3c5d !important;
    border-radius: 10px !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card:hover {
    border-color: #2b5f8e !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card small,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-board-category,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-company-table small,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-calendar-range {
    color: #7f9bc1;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-table th,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-table td {
    border-color: #17324d;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-table th {
    background: rgba(17, 33, 54, 0.86);
    color: #c5dbff;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-table-striped tbody tr:nth-child(even) {
    background: rgba(13, 24, 40, 0.65);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-table-striped tbody tr:hover {
    background: rgba(35, 103, 178, 0.2);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-badge.critica {
    color: #ffd9d4;
    background: rgba(127, 29, 29, 0.42);
    border-color: rgba(252, 165, 165, 0.58);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-badge.alta {
    color: #ffd1c7;
    background: rgba(153, 27, 27, 0.38);
    border-color: rgba(248, 113, 113, 0.56);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-badge.media {
    color: #ffe3c2;
    background: rgba(154, 52, 18, 0.36);
    border-color: rgba(251, 146, 60, 0.54);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-badge.baja {
    color: #ffefc0;
    background: rgba(161, 98, 7, 0.34);
    border-color: rgba(250, 204, 21, 0.52);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-badge.minima {
    color: #fff4c7;
    background: rgba(133, 77, 14, 0.32);
    border-color: rgba(253, 224, 71, 0.5);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-badge.sin-definir {
    color: #cbd5e1;
    background: rgba(71, 85, 105, 0.35);
    border-color: rgba(148, 163, 184, 0.5);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-agenda-badge,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-child-progress-badge {
    border-color: var(--orbit-stroke-soft);
    background: rgba(9, 21, 36, 0.9);
    color: #c0d6f8;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-app-only button,
.huskyerp-app-only.huskyerp-theme-dark button {
    border: 1px solid var(--orbit-stroke-soft);
    background: linear-gradient(180deg, #132640, #0f2137);
    color: #dbeafe;
}

.huskyerp-app-only.huskyerp-theme-dark button:hover {
    background: linear-gradient(180deg, #183155, #132a46);
    border-color: #2b5f8e;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-create-board-btn,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal-actions button[data-save-card],
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal-actions .huskyerp-modal-button.is-primary {
    background: linear-gradient(135deg, #0f766e, #0ea5a2) !important;
    border-color: #22d3ee !important;
    color: #ecfeff !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-create-board-btn:hover,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal-actions button[data-save-card]:hover,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal-actions .huskyerp-modal-button.is-primary:hover {
    background: linear-gradient(135deg, #0d8e85, #14b8a6) !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal {
    background: linear-gradient(180deg, #0d1a2c 0%, #0a1524 100%);
    border-color: var(--orbit-stroke);
    color: #d9e6ff;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal-backdrop {
    background: rgba(2, 8, 18, 0.72);
    backdrop-filter: blur(3px);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal input,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal select,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal textarea {
    background: rgba(11, 22, 36, 0.92);
    border-color: var(--orbit-stroke-soft);
    color: #dbeafe;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal h3,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal h4,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal label {
    color: #e5f0ff;
    min-height: 20.5px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-inline-link,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-table .huskyerp-inline-link,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-board-category-link {
    color: #77c2ff !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-inline-link:hover,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-table .huskyerp-inline-link:hover,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-board-category-link:hover {
    color: #a7ddff !important;
}

@media (max-width: 980px) {
    .huskyerp-app-only.huskyerp-theme-dark .huskyerp-main {
        padding: 10px;
    }

    .huskyerp-app-only.huskyerp-theme-dark .huskyerp-topbar {
        padding: 8px;
    }
}

/* Orbit dark fine-tuning (typography + spacing) */
.huskyerp-app-only.huskyerp-theme-dark {
    letter-spacing: 0.01em;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-shell {
    grid-template-columns: 200px minmax(0, 1fr);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-shell.is-sidebar-collapsed {
    grid-template-columns: 62px minmax(0, 1fr);
}


.huskyerp-app-only.huskyerp-theme-dark .huskyerp-sidebar-header {
    margin-bottom: 14px;
    padding: 0 6px;
    font-size: 24px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-sidebar-text {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-menu {
    border-top: 1px solid rgba(23, 51, 79, 0.6);
    padding-top: 10px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-menu button {
    margin-bottom: 4px;
    padding: 9px 11px;
    border-radius: 9px !important;
    font-size: 13px;
    font-weight: 600;
    gap: 10px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-menu-icon {
    width: 18px;
    height: 18px;
}

.huskyerp-app-only.huskyerp-theme-dark .is-sidebar-collapsed .huskyerp-menu button {
    padding: 11px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-sidebar-toggle {
    min-height: 38px;
}


.huskyerp-app-only.huskyerp-theme-dark .huskyerp-topbar {
    min-height: 54px;
    border-radius: 0;
    padding: 6px 9px;
    margin-bottom: 0;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-topbar-left,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-topbar-right {
    gap: 8px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-topbar-search {
    min-width: 250px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-topbar-search input {
    min-height: 36px;
    border-radius: 9px;
    font-size: 13px;
    padding: 8px 11px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-motiv-badge {
    min-height: 30px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-topbar-viewmode button {
    width: 28px;
    height: 28px;
    min-width: 28px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-box,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-col,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-board-header {
    border-radius: 10px !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-box:not(.huskyerp-board-gallery-box) {
    padding: 10px 20px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-box h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-box.huskyerp-board-header .huskyerp-board-title-heading {
    margin: 0;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-subbox {
    padding: 11px 11px 10px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-subbox h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-kpi {
    font-size: 26px;
    line-height: 1;
    margin: 2px 0;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-list-head {
    margin-bottom: 4px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-list-title {
    font-size: 13px;
    font-weight: 700;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card {
    padding: 10px;
    margin-bottom: 4px;
    font-size: 13px;
    border-radius: 10px !important;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-card-topline {
    margin-bottom: 7px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-badge,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-agenda-badge,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-child-progress-badge {
    font-size: 10px;
    padding: 2px 7px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-board-gallery {
    gap: 8px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-board-tile {
    border-radius: 9px !important;
    min-height: auto;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-board-tile-title {
    font-size: 14px;
    font-weight: 700;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-board-tile small {
    font-size: 11px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-table th,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-table td {
    font-size: 12px;
    padding: 7px;
}

.huskyerp-app-only.huskyerp-theme-dark button {
    border-radius: 9px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal {
    border-radius: 14px;
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal-header,
.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal-actions {
    background: rgba(10, 20, 34, 0.74);
}

.huskyerp-app-only.huskyerp-theme-dark .huskyerp-modal h3 {
    font-size: 18px;
}

@media (max-width: 980px) {
    .huskyerp-app-only.huskyerp-theme-dark .huskyerp-shell,
    .huskyerp-app-only.huskyerp-theme-dark .huskyerp-shell.is-sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .huskyerp-app-only.huskyerp-theme-dark .huskyerp-topbar-left {
        gap: 6px;
    }
}

.huskyerp-list-drag-grip {
    margin-right: 6px;
    opacity: 0.65;
    cursor: grab;
    font-size: 11px;
    letter-spacing: -1px;
    color: var(--list-title-color, currentColor);
}

.huskyerp-card-quickline {
    margin-top: 4px;
    font-size: 11px;
    color: #9fb8dc;
}

.huskyerp-card-quickline.is-pending {
    color: #facc15;
}

.huskyerp-card-quickline.is-estimated {
    color: #22c55e;
}

.huskyerp-card-quickline.is-priority-critica,
.huskyerp-card-quickline.is-priority-alta,
.huskyerp-card-quickline.is-priority-media,
.huskyerp-card-quickline.is-priority-baja,
.huskyerp-card-quickline.is-priority-minima {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.huskyerp-card-quickline.is-priority-critica {
    color: #7f1d1d;
    background: rgba(127, 29, 29, 0.16);
}

.huskyerp-card-quickline.is-priority-alta {
    color: #991b1b;
    background: rgba(153, 27, 27, 0.16);
}

.huskyerp-card-quickline.is-priority-media {
    color: #9a3412;
    background: rgba(154, 52, 18, 0.16);
}

.huskyerp-card-quickline.is-priority-baja {
    color: #a16207;
    background: rgba(161, 98, 7, 0.16);
}

.huskyerp-card-quickline.is-priority-minima {
    color: #854d0e;
    background: rgba(133, 77, 14, 0.16);
}

.huskyerp-card-quickline.is-deployment {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(107, 33, 168, 0.95), rgba(88, 28, 135, 0.95));
    border: 1px solid rgba(196, 181, 253, 0.28);
    color: #f5f3ff;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.huskyerp-card-quickline.is-refinement-epica,
.huskyerp-card-quickline.is-refinement-functional,
.huskyerp-card-quickline.is-refinement-technical,
.huskyerp-card-quickline.is-refinement-ready {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.huskyerp-card-quickline.is-refinement-epica {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.2);
}

.huskyerp-card-quickline.is-refinement-functional {
    color: #fef3c7;
    background: rgba(217, 119, 6, 0.2);
}

.huskyerp-card-quickline.is-refinement-technical {
    color: #cffafe;
    background: rgba(8, 145, 178, 0.2);
}

.huskyerp-card-quickline.is-refinement-ready {
    color: #dcfce7;
    background: rgba(22, 163, 74, 0.2);
}

.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card {
    background: #1d242e !important;
    border: 1px solid #3b4557 !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-topline,
.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-topline strong,
.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-meta,
.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-meta small,
.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-flags,
.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-quickline {
    color: #ffffff !important;
}

.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-quickline.is-pending {
    color: #facc15 !important;
}

.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-quickline.is-estimated {
    color: #22c55e !important;
}

.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-quickline.is-priority-critica {
    color: #ffd9d4 !important;
    background: rgba(127, 29, 29, 0.42);
}

.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-quickline.is-priority-alta {
    color: #ffd1c7 !important;
    background: rgba(153, 27, 27, 0.38);
}

.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-quickline.is-priority-media {
    color: #ffe3c2 !important;
    background: rgba(154, 52, 18, 0.36);
}

.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-quickline.is-priority-baja {
    color: #ffefc0 !important;
    background: rgba(161, 98, 7, 0.34);
}

.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-quickline.is-priority-minima {
    color: #fff4c7 !important;
    background: rgba(133, 77, 14, 0.32);
}

.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-quickline.is-deployment {
    color: #f5f3ff !important;
    background: linear-gradient(135deg, rgba(107, 33, 168, 0.98), rgba(88, 28, 135, 0.98));
}

.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-quickline.is-refinement-epica {
    color: #dbeafe !important;
    background: rgba(37, 99, 235, 0.22);
}

.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-quickline.is-refinement-functional {
    color: #fef3c7 !important;
    background: rgba(217, 119, 6, 0.22);
}

.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-quickline.is-refinement-technical {
    color: #cffafe !important;
    background: rgba(8, 145, 178, 0.22);
}

.huskyerp-board-view-wrap .huskyerp-col .huskyerp-card-quickline.is-refinement-ready {
    color: #dcfce7 !important;
    background: rgba(22, 163, 74, 0.22);
}

.huskyerp-board-view-wrap {
    width: 100%;
    margin: 0 auto;
}

.huskyerp-board-view-wrap .huskyerp-col {
    max-height: 99%;
}

.huskyerp-list-config-wrap {
    position: relative;
    z-index: 5;
}

.huskyerp-list-config-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 30;
    width: 220px;
    border: 1px solid #364153;
    border-radius: 12px;
    background: #101827;
    padding: 8px;
    display: grid;
    gap: 8px;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.35);
}

.huskyerp-list-config-color-row {
    display: grid;
    gap: 6px;
}

.huskyerp-list-config-color-row label {
    font-size: 12px;
    color: #b8c9e6;
}

.huskyerp-list-color-palette {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.huskyerp-list-color-swatch {
    width: 100%;
    min-height: 28px;
    border-radius: 8px !important;
    border: 2px solid rgba(148, 163, 184, 0.35) !important;
    background: var(--swatch-color) !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.huskyerp-list-color-swatch:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1 !important;
}

.huskyerp-list-color-swatch.is-active {
    border-color: #f8fafc !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.45) !important;
}

.huskyerp-public-request-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.huskyerp-public-info-btn {
    min-height: 28px;
    min-width: 32px;
    padding: 2px 8px !important;
}

.huskyerp-public-request-info {
    margin: 4px 0 10px;
    color: #cbd5e1;
    font-size: 12px;
}

.huskyerp-public-card-modal {
    width: min(720px, 96vw);
    background: linear-gradient(180deg, #0d1727 0%, #0a1322 100%);
    border: 1px solid rgba(71, 85, 105, 0.7);
    color: #e2e8f0;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.55);
}

.huskyerp-public-card-modal .huskyerp-modal-header {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.78));
    border-bottom: 1px solid rgba(71, 85, 105, 0.42);
}

.huskyerp-public-card-modal .huskyerp-modal-header h3 {
    color: #f8fafc;
    margin-bottom: 5px;
}

.huskyerp-public-card-modal .huskyerp-modal-body {
    background: transparent;
    color: #dbeafe;
}

.huskyerp-public-card-modal .huskyerp-modal-actions {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.82));
    border-top: 1px solid rgba(71, 85, 105, 0.36);
}

.huskyerp-public-card-modal .huskyerp-modal-actions button {
    border: 1px solid rgba(71, 85, 105, 0.9);
    background: linear-gradient(180deg, #23324a 0%, #1e293b 100%);
    color: #e2e8f0;
    box-shadow: none;
}

.huskyerp-public-card-modal .huskyerp-modal-actions button:hover {
    border-color: rgba(96, 165, 250, 0.34);
    background: linear-gradient(180deg, #2b3a55 0%, #243246 100%);
    color: #f8fafc;
}

.huskyerp-public-card-modal-body {
    display: grid;
    gap: 16px;
}

.huskyerp-public-card-modal-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.huskyerp-public-card-modal-list {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #bae6fd;
}

.huskyerp-public-card-modal-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.huskyerp-public-card-modal-grid {
    margin-bottom: 0;
}

.huskyerp-public-card-modal-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 16px;
    align-items: start;
}

.huskyerp-public-card-stat {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.huskyerp-public-card-stat span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8ba3c7;
}

.huskyerp-public-card-stat strong {
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.4;
}

.huskyerp-public-card-modal-content {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.huskyerp-public-card-events {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.huskyerp-public-card-events-list {
    display: grid;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.huskyerp-public-card-event-item {
    display: grid;
    gap: 6px;
    padding: 12px 12px 10px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.huskyerp-public-card-event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.huskyerp-public-card-event-meta span {
    font-size: 11px;
    color: #93c5fd;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.huskyerp-public-card-event-meta strong {
    font-size: 12px;
    color: #e2e8f0;
}

.huskyerp-public-card-event-item p,
.huskyerp-public-card-events-empty {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.55;
}

.huskyerp-card-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.huskyerp-card-modal-content p {
    margin: 6px 0 0;
    white-space: pre-wrap;
}

@media (max-width: 900px) {
    .huskyerp-report-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .huskyerp-report-side-nav {
        position: static;
    }

    .huskyerp-report-side-nav-links {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .huskyerp-report-package-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .huskyerp-report-ticket-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .huskyerp-public-card-modal-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .huskyerp-report-package-summary {
        padding: 16px;
        border-radius: 20px;
    }

    .huskyerp-report-package-summary-grid,
    .huskyerp-card-modal-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .huskyerp-report-ticket-head,
    .huskyerp-public-card-modal-topline {
        flex-direction: column;
        align-items: flex-start;
    }

    .huskyerp-public-card-modal-badges {
        justify-content: flex-start;
    }
}

.huskyerp-board-settings-modal {
    width: min(1120px, 96vw);
}

.huskyerp-board-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.huskyerp-board-settings-col {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
}

.huskyerp-settings-block {
    margin-bottom: 0;
    min-width: 0;
}

.huskyerp-setting-row {
    min-height: auto;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 400;
    color: #c7d8f5;
    margin-bottom: 3px;
}

.huskyerp-setting-row-dependent {
    margin-left: 10px;
}

.huskyerp-setting-row-dependent.is-disabled {
    opacity: 0.7;
}

.huskyerp-setting-row input[type="checkbox"] {
    margin: 0;
    width: 14px;
    height: 14px;
}

.huskyerp-settings-check-stack {
    display: grid;
    gap: 2px;
}

.huskyerp-setting-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    color: #b6caea;
}

.huskyerp-board-report-password-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.huskyerp-required-badge {
    display: none;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.38);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.huskyerp-board-report-password-field.is-required .huskyerp-required-badge {
    display: inline-flex;
}

.huskyerp-board-report-password-field.is-missing-required input {
    border-color: rgba(245, 158, 11, 0.75) !important;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.huskyerp-board-report-password-field.is-missing-required small {
    color: #fbbf24;
}

.huskyerp-settings-list-color-grid {
    display: grid;
    gap: 6px;
}

.huskyerp-setting-list-color-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: #c7d8f5;
}

.huskyerp-setting-list-color-row input[type="color"] {
    width: 40px;
    height: 28px;
    border: 1px solid #2f4867;
    border-radius: 8px;
    background: #0e1d31;
    padding: 2px;
}

.huskyerp-custom-field-list {
    display: grid;
    gap: 8px;
}

.huskyerp-custom-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(92px, 0.72fr) max-content;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.huskyerp-custom-field-row.is-select {
    grid-template-columns: minmax(0, 1.15fr) minmax(92px, 0.7fr) minmax(0, 0.95fr) max-content;
}

.huskyerp-custom-field-row input,
.huskyerp-custom-field-row select {
    min-width: 0;
    width: 100%;
}

.huskyerp-custom-field-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    white-space: nowrap;
    justify-self: end;
    padding-left: 6px;
    min-width: 0;
}

.huskyerp-custom-field-label-input::placeholder,
.huskyerp-custom-field-options-input::placeholder {
    color: rgba(203, 213, 225, 0.62);
}

.huskyerp-custom-field-quickview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    margin: 0;
    min-width: fit-content;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #29486f;
    border-radius: 12px;
    background: rgba(14, 29, 49, 0.78);
    color: #d8e8ff;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.huskyerp-custom-field-quickview input[type="checkbox"] {
    margin: 0;
    display: block;
    width: 14px;
    height: 14px;
    accent-color: #22c55e;
    flex: 0 0 auto;
    transform: translateY(1px);
}

.huskyerp-custom-field-quickview span {
    display: inline-block;
    line-height: 14px;
    letter-spacing: 0.01em;
}

.huskyerp-custom-field-remove-btn {
    min-height: 40px;
    flex-shrink: 0;
}

.huskyerp-custom-field-add-btn {
    background: #065f46 !important;
    border-color: #10b981 !important;
    color: #ecfeff !important;
}

.huskyerp-custom-field-add-btn:hover {
    background: #047857 !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
}

.huskyerp-board-definitions-modal {
    width: min(860px, 94vw);
}

.huskyerp-board-ai-modal {
    width: min(980px, 95vw);
}

.huskyerp-board-ai-subtitle {
    margin: 4px 0 0;
    color: #8da4c7;
    line-height: 1.5;
}

.huskyerp-board-ai-function-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #2f3d52;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(23, 28, 52, 0.96), rgba(16, 22, 41, 0.98));
}

.huskyerp-board-ai-function-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.huskyerp-board-ai-function-head strong {
    display: block;
    margin: 0 0 6px;
    font-size: 15px;
    color: #f8fafc;
}

.huskyerp-board-ai-function-head p {
    margin: 0;
    color: #c7d2fe;
    line-height: 1.55;
}

.huskyerp-board-ai-function-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.96), rgba(59, 130, 246, 0.92));
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.huskyerp-board-ai-suggestions-wrap {
    display: grid;
    gap: 12px;
}

.huskyerp-board-ai-suggestions-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.huskyerp-board-ai-suggestions-head small {
    color: #8da4c7;
}

.huskyerp-board-ai-suggestions-list {
    display: grid;
    gap: 12px;
}

.huskyerp-board-ai-suggestion-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #30425f;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 24, 39, 0.98), rgba(13, 20, 34, 0.98));
}

.huskyerp-board-ai-suggestion-card.is-fusion {
    border-color: rgba(249, 115, 22, 0.34);
}

.huskyerp-board-ai-suggestion-card.is-adoption {
    border-color: rgba(96, 165, 250, 0.34);
}

.huskyerp-board-ai-suggestion-card.is-dependency {
    border-color: rgba(34, 197, 94, 0.34);
}

.huskyerp-board-ai-suggestion-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.huskyerp-board-ai-suggestion-head strong {
    display: block;
    margin: 0 0 5px;
    color: #f8fafc;
}

.huskyerp-board-ai-suggestion-head p {
    margin: 0;
    color: #a5b4fc;
    line-height: 1.5;
}

.huskyerp-board-ai-rename-hint {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.45;
}

.huskyerp-board-ai-suggestion-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.huskyerp-board-ai-kind-icon {
    display: inline-grid;
    place-items: center;
    width: 16px;
    margin-right: 6px;
    font-size: 13px;
}

.huskyerp-settings-pill.is-fusion {
    border-color: rgba(249, 115, 22, 0.28);
    color: #fdba74;
}

.huskyerp-settings-pill.is-adoption {
    border-color: rgba(96, 165, 250, 0.28);
    color: #93c5fd;
}

.huskyerp-settings-pill.is-dependency {
    border-color: rgba(34, 197, 94, 0.28);
    color: #86efac;
}

.huskyerp-board-ai-suggestion-map {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.huskyerp-board-ai-suggestion-node {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(12, 19, 33, 0.84);
}

.huskyerp-board-ai-suggestion-node small {
    color: #8da4c7;
}

.huskyerp-board-ai-suggestion-node strong {
    color: #f8fafc;
}

.huskyerp-board-ai-suggestion-node span {
    color: #cbd5e1;
    font-size: 12px;
}

.huskyerp-board-ai-suggestion-node.is-parent {
    border-color: rgba(34, 197, 94, 0.24);
}

.huskyerp-board-ai-suggestion-node.is-child {
    border-color: rgba(96, 165, 250, 0.24);
}

.huskyerp-board-ai-suggestion-arrow {
    color: #c4b5fd;
    font-size: 22px;
    font-weight: 700;
}

.huskyerp-board-ai-suggestion-actions {
    justify-content: flex-end;
}

.huskyerp-board-ai-generate-btn {
    background: linear-gradient(135deg, #15803d, #16a34a);
    border-color: rgba(34, 197, 94, 0.45);
    color: #f0fdf4;
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.22);
}

.huskyerp-board-ai-generate-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #166534, #15803d);
    border-color: rgba(34, 197, 94, 0.55);
}

.huskyerp-board-ai-generate-btn:disabled {
    box-shadow: none;
}

.huskyerp-board-ai-empty-state {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px dashed rgba(141, 164, 199, 0.34);
    border-radius: 16px;
    background: rgba(13, 20, 34, 0.72);
}

.huskyerp-board-ai-empty-state strong {
    color: #f8fafc;
}

.huskyerp-board-ai-empty-state p {
    margin: 0;
    color: #a5b4fc;
}

.huskyerp-board-definitions-list {
    display: grid;
    gap: 10px;
}

.huskyerp-board-definition-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.35fr) auto;
    gap: 8px;
    align-items: start;
    padding: 10px;
    border: 1px solid #2f3d52;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18, 26, 39, 0.98), rgba(15, 23, 36, 0.98));
}

.huskyerp-board-definition-row .huskyerp-modal-field {
    display: grid;
    gap: 5px;
}

.huskyerp-board-definition-row .huskyerp-modal-field label {
    margin: 0;
}

.huskyerp-board-definition-value-field textarea {
    min-height: 96px;
    resize: vertical;
}

.huskyerp-definition-updated-at {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.35;
    color: #8da4c7;
}

.huskyerp-board-definition-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.huskyerp-board-definition-actions button {
    min-height: 38px;
    background: #4c1d1d !important;
    border-color: #b91c1c !important;
    color: #fee2e2 !important;
}

.huskyerp-board-definition-actions button:hover {
    background: #6b2020 !important;
}

.huskyerp-danger-btn {
    background: #7f1d1d !important;
    border-color: #dc2626 !important;
    color: #fee2e2 !important;
}

.huskyerp-danger-btn:hover {
    background: #991b1b !important;
}

@media (max-width: 980px) {
    .huskyerp-board-settings-grid {
        grid-template-columns: 1fr;
    }

    .huskyerp-custom-field-row {
        grid-template-columns: 1fr;
    }

    .huskyerp-custom-field-row.is-select {
        grid-template-columns: 1fr;
    }

    .huskyerp-custom-field-actions {
        justify-content: space-between;
        flex-wrap: wrap;
        padding-left: 0;
    }

    .huskyerp-board-definition-row {
        grid-template-columns: 1fr;
    }

    .huskyerp-board-ai-function-head,
    .huskyerp-board-ai-suggestion-head,
    .huskyerp-board-ai-suggestion-map {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .huskyerp-board-ai-suggestion-pills,
    .huskyerp-board-ai-suggestion-actions {
        justify-content: flex-start;
    }

    .huskyerp-board-ai-suggestion-arrow {
        display: none;
    }

    .huskyerp-board-definition-actions {
        justify-content: stretch;
    }

    .huskyerp-board-definition-actions button {
        width: 100%;
    }
}
input[type="datetime-local"] {
    color-scheme: dark;
}

/* =============================================
   AUTOSAVE INDICATOR
   ============================================= */

.huskyerp-autosave-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(100, 116, 139, 0.1);
    margin-left: 8px;
    animation: huskyerp-autosave-fade-in 0.2s ease;
}

.huskyerp-autosave-indicator[hidden] {
    display: none;
}

.huskyerp-autosave-indicator-inline {
    margin-left: 0;
}

.huskyerp-autosave-indicator-inline[data-state="saving"] {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.16);
}

.huskyerp-autosave-indicator-inline[data-state="saved"] {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.15);
}

.huskyerp-autosave-indicator-inline[data-state="error"] {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.16);
}

@keyframes huskyerp-autosave-fade-in {
    from { opacity: 0; transform: translateY(-2px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   PERFORMANCE TOOLTIP
   ============================================= */

.huskyerp-perf-label-row {
    display: flex;
    align-items: center;
    gap: 4px;
    height: auto;
    min-height: 20.5px;
    margin-bottom: 5px;
}

.huskyerp-perf-label-row label {
    margin: 0;
    line-height: 1;
}

.huskyerp-info-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    max-height: 14px;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 1;
    font-size: 0;
    transition: color 0.15s ease;
}

.huskyerp-info-tooltip-trigger svg {
    display: block;
    width: 13px;
    height: 13px;
}

.huskyerp-info-tooltip-trigger:hover,
.huskyerp-info-tooltip-trigger[aria-expanded="true"] {
    color: #e2e8f0;
}

.huskyerp-card-meta-performance {
    position: relative;
}

.huskyerp-info-tooltip {
    position: absolute;
    z-index: 50;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    padding: 10px 12px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #cbd5e1;
    line-height: 1.6;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.huskyerp-info-tooltip.is-hidden {
    display: none;
}

.huskyerp-info-tooltip strong {
    color: #e2e8f0;
}

.huskyerp-info-tooltip small {
    color: #94a3b8;
}

/* =============================================
   EXECUTION STATUS BADGES
   ============================================= */

.huskyerp-execution-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 35px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.35);
    color: #94a3b8;
}

.huskyerp-execution-badge.is-undefined {
    color: #94a3b8;
    border-color: #334155;
    background: rgba(15, 23, 42, 0.35);
}

.huskyerp-execution-badge.is-scheduled {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.08);
}

.huskyerp-execution-badge.is-running {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.08);
    animation: huskyerp-exec-pulse 2s ease-in-out infinite;
}

@keyframes huskyerp-exec-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
    50% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12); }
}

.huskyerp-execution-badge.is-confirm {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
}

.huskyerp-execution-badge.is-completed-exec {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

/* =============================================
   SCHEDULE PICKER (date + time split)
   ============================================= */

.huskyerp-schedule-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.huskyerp-schedule-date-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.huskyerp-schedule-sub-label {
    font-size: 11px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* =============================================
   DESCRIPTION EDITOR
   ============================================= */

.huskyerp-desc-field {
    margin-top: 4px;
}

.huskyerp-desc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.huskyerp-desc-header label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.huskyerp-desc-unsaved-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.huskyerp-desc-editor {
    border: 1px solid #334155;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.4);
}

.huskyerp-desc-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-bottom: 1px solid #1e293b;
    background: rgba(15, 23, 42, 0.6);
}

.huskyerp-desc-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    padding: 0;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 5px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}

.huskyerp-desc-tool:hover {
    background: rgba(100, 116, 139, 0.15) !important;
    color: #e2e8f0;
    border-color: #334155 !important;
}

.huskyerp-desc-toolbar-sep {
    width: 1px;
    height: 18px;
    background: #334155;
    margin: 0 6px;
}

.huskyerp-desc-editor .huskyerp-card-desc-input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    resize: vertical;
    min-height: 80px;
    padding: 12px 14px;
}

.huskyerp-desc-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-top: 1px solid #1e293b;
    background: rgba(15, 23, 42, 0.6);
}

.huskyerp-desc-save-btn {
    font-size: 13px !important;
    font-weight: 600;
    padding: 5px 16px !important;
    background: transparent !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
    color: #e2e8f0 !important;
    border-radius: 6px;
}

.huskyerp-desc-save-btn:hover {
    background: rgba(148, 163, 184, 0.1) !important;
    border-color: rgba(148, 163, 184, 0.42) !important;
}

.huskyerp-desc-discard-btn {
    font-size: 13px !important;
    padding: 5px 12px !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border-color: transparent !important;
}

.huskyerp-desc-discard-btn:hover {
    color: #e2e8f0 !important;
    background: rgba(100, 116, 139, 0.1) !important;
}

.huskyerp-desc-help-link {
    margin-left: auto;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
}

.huskyerp-desc-help-link:hover {
    color: #94a3b8;
    text-decoration: underline;
}

/* Description header actions */
.huskyerp-desc-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.huskyerp-desc-preview-toggle {
    font-size: 12px !important;
    padding: 3px 10px !important;
    border: 1px solid #334155 !important;
    border-radius: 5px;
    color: #94a3b8 !important;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.huskyerp-desc-preview-toggle:hover {
    color: #e2e8f0 !important;
}

.huskyerp-visual-btn {
    background: transparent !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
}

.huskyerp-visual-btn:hover {
    background: rgba(148, 163, 184, 0.12) !important;
    border-color: rgba(148, 163, 184, 0.45) !important;
    color: #f8fafc !important;
}

.huskyerp-edit-action-btn {
    background: rgba(250, 204, 21, 0.18) !important;
    border-color: rgba(250, 204, 21, 0.42) !important;
    color: #fde68a !important;
    box-shadow: none !important;
}

.huskyerp-edit-action-btn:hover {
    background: rgba(250, 204, 21, 0.28) !important;
    border-color: rgba(250, 204, 21, 0.56) !important;
    color: #fef3c7 !important;
}

/* Description preview pane */
.huskyerp-desc-preview {
    padding: 12px 14px;
    min-height: 80px;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.huskyerp-desc-preview h1,
.huskyerp-desc-preview h2,
.huskyerp-desc-preview h3 {
    margin: 0.6em 0 0.3em;
    color: #f1f5f9;
}

.huskyerp-desc-preview h1 { font-size: 1.4em; }
.huskyerp-desc-preview h2 { font-size: 1.2em; }
.huskyerp-desc-preview h3 { font-size: 1.05em; }

.huskyerp-desc-preview strong { color: #f8fafc; }
.huskyerp-desc-preview em { font-style: italic; }
.huskyerp-desc-preview del { text-decoration: line-through; opacity: 0.6; }

.huskyerp-desc-preview code {
    background: rgba(100, 116, 139, 0.2);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.huskyerp-desc-preview a {
    color: #60a5fa;
    text-decoration: underline;
}

.huskyerp-desc-preview ul,
.huskyerp-desc-preview ol {
    padding-left: 20px;
    margin: 0.5em 0;
}

.huskyerp-desc-preview blockquote {
    border-left: 3px solid #475569;
    padding-left: 12px;
    margin: 0.5em 0;
    color: #94a3b8;
    font-style: italic;
}

.huskyerp-desc-preview hr {
    border: none;
    border-top: 1px solid #334155;
    margin: 0.8em 0;
}

/* Formatting help panel */
.huskyerp-desc-help-panel {
    border-top: 1px solid #1e293b;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.5);
    transition: all 0.2s;
}

.huskyerp-desc-help-panel.is-hidden {
    display: none;
}

.huskyerp-desc-help-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #e2e8f0;
}

.huskyerp-md-help-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

.huskyerp-md-help-table td {
    padding: 4px 8px;
    border-bottom: 1px solid #1e293b;
    color: #cbd5e1;
}

.huskyerp-md-help-table td:first-child {
    font-family: monospace;
    color: #94a3b8;
    white-space: nowrap;
    width: 40%;
}

/* =============================================
   SKELETON LOADING FOR MODAL
   ============================================= */

@keyframes huskyerp-skeleton-shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.huskyerp-skeleton {
    display: block;
    border-radius: 8px;
    background: linear-gradient(90deg, #1e293b 25%, #2a3a52 50%, #1e293b 75%);
    background-size: 400px 100%;
    animation: huskyerp-skeleton-shimmer 1.4s ease-in-out infinite;
}

.huskyerp-skeleton-line {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.huskyerp-skeleton-line.is-wide { width: 80%; }
.huskyerp-skeleton-line.is-mid { width: 55%; }
.huskyerp-skeleton-line.is-short { width: 35%; }

.huskyerp-skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 16px;
    border-radius: 6px;
}

.huskyerp-skeleton-field {
    height: 40px;
    margin-bottom: 12px;
    border-radius: 10px;
}

.huskyerp-skeleton-textarea {
    height: 80px;
    margin-bottom: 12px;
    border-radius: 10px;
}

.huskyerp-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.huskyerp-skeleton-grid .huskyerp-skeleton {
    height: 60px;
    border-radius: 10px;
}

/* =============================================
   DOCUMENTATION PAGE
   ============================================= */

.huskyerp-docs-section p {
    line-height: 1.7;
}

.huskyerp-docs-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.huskyerp-docs-status-card {
    padding: 16px;
    border-radius: 10px;
    background: #19202b;
    border: 1px solid #1e293b;
}

.huskyerp-docs-status-card p {
    font-size: 13px;
    color: #94a3b8;
    margin: 10px 0 0;
    line-height: 1.6;
}

.huskyerp-docs-formula-box {
    padding: 16px;
    border-radius: 10px;
    background: #19202b;
    border: 1px solid #1e293b;
}

.huskyerp-docs-formula-box h4 {
    color: #e2e8f0;
    margin: 0 0 8px;
}

/* =============================================
   TOPBAR CREATE BOARD BTN
   ============================================= */

.huskyerp-topbar-create-btn {
    font-size: 13px;
    padding: 6px 14px;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS FOR MODAL HEADER
   ============================================= */

@media (max-width: 700px) {
    .huskyerp-modal-header-with-actions {
        flex-direction: column;
    }

    .huskyerp-modal-header-with-actions .huskyerp-cardmodal-head {
        flex: 1 1 auto;
        width: 100%;
    }

    .huskyerp-cardmodal-header-actions {
        width: 100%;
        align-items: stretch;
    }

    .huskyerp-cardmodal-header-buttons {
        justify-content: flex-end;
    }

    .huskyerp-cardmodal-meta-grid .huskyerp-card-meta-execution-status {
        grid-column: span 1;
    }
}

/* =============================================
   LOGIN SCREEN
   ============================================= */

.huskyerp-login-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1120;
    overflow: hidden;
    font-family: 'Geist', system-ui, -apple-system, sans-serif;
}

/* Animated background shapes */
.huskyerp-login-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.huskyerp-login-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: huskyerp-login-float 12s ease-in-out infinite;
}

.huskyerp-login-shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -15%;
    left: -10%;
    animation-duration: 14s;
}

.huskyerp-login-shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    bottom: -10%;
    right: -5%;
    animation-duration: 18s;
    animation-delay: -4s;
}

.huskyerp-login-shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    animation-duration: 16s;
    animation-delay: -8s;
}

@keyframes huskyerp-login-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
}

.huskyerp-login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: 20px;
}

/* Brand / logo area */
.huskyerp-login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.huskyerp-login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.huskyerp-login-husky-svg {
    width: 56px;
    height: 42px;
}

.huskyerp-login-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #f1f5f9;
    margin: 0 0 6px;
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.huskyerp-login-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

/* Tabs */
.huskyerp-login-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 14px 14px 0 0;
    padding: 6px 6px 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
}

.huskyerp-login-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    position: relative;
}

.huskyerp-login-tab:hover:not(.is-disabled) {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.03);
}

.huskyerp-login-tab.is-active {
    color: #f1f5f9;
    background: rgba(30, 41, 59, 0.8);
}

.huskyerp-login-tab.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px 2px 0 0;
}

.huskyerp-login-tab.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.huskyerp-login-beta-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    line-height: 1.4;
}

/* Card */
.huskyerp-login-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: none;
    border-radius: 0 0 14px 14px;
    padding: 28px 28px 32px;
}

.huskyerp-login-card.is-hidden {
    display: none;
}

/* Alert */
.huskyerp-login-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: huskyerp-login-shake 0.35s ease;
}

.huskyerp-login-alert.is-hidden {
    display: none;
}

.huskyerp-login-alert.is-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.huskyerp-login-alert.is-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

@keyframes huskyerp-login-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Form fields */
.huskyerp-login-field {
    margin-bottom: 18px;
}

.huskyerp-login-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 6px;
}

.huskyerp-login-field input {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.huskyerp-login-field input::placeholder {
    color: #475569;
}

.huskyerp-login-field input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Password wrap */
.huskyerp-login-password-wrap {
    position: relative;
}

.huskyerp-login-password-wrap input {
    padding-right: 44px;
}

.huskyerp-login-toggle-pass {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.huskyerp-login-toggle-pass:hover {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
}

/* Submit button */
.huskyerp-login-submit {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    margin-top: 6px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.huskyerp-login-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.huskyerp-login-submit:active:not(:disabled) {
    transform: translateY(0);
}

.huskyerp-login-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.huskyerp-login-submit-loading svg {
    animation: huskyerp-login-spin 0.8s linear infinite;
}

@keyframes huskyerp-login-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Register disabled state */
.huskyerp-login-register-disabled {
    text-align: center;
    padding: 20px 10px;
}

.huskyerp-login-register-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    margin-bottom: 16px;
}

.huskyerp-login-register-disabled h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 10px;
}

.huskyerp-login-register-disabled p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 8px;
    line-height: 1.6;
}

.huskyerp-login-register-hint {
    font-size: 13px !important;
    color: #64748b !important;
    margin-top: 12px !important;
}

/* Footer */
.huskyerp-login-footer {
    text-align: center;
    margin-top: 24px;
}

.huskyerp-login-footer p {
    font-size: 12px;
    color: #475569;
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .huskyerp-login-container {
        margin: 12px;
    }

    .huskyerp-login-card {
        padding: 20px 18px 24px;
    }

    .huskyerp-login-logo {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .huskyerp-login-husky-svg {
        width: 44px;
        height: 33px;
    }

    .huskyerp-login-title {
        font-size: 26px;
    }

    .huskyerp-login-shape-1 {
        width: 300px;
        height: 300px;
    }
    .huskyerp-login-shape-2 {
        width: 250px;
        height: 250px;
    }
    .huskyerp-login-shape-3 {
        width: 200px;
        height: 200px;
    }
}