.candee-row.candee-row-content  {
    background: linear-gradient(145deg, #f3f7fc 0%, #e9eef3 100%);
    display: flex;
}
@media (max-width: 1024px) {
    .three.candee-columns {
         width: 0px;
    }
    .nine.candee-columns {
        width: 100%;
    }
}
@media (max-width: 769px) {
    .one.candee-columns.hidde {
        display: block;
    }
    .candee.candeeAdminPage.candee-container .candee-row-content {
        display: block;
    }
    .candeeAdminPage .one.candee-columns.OH_MenuIzquierda {
        height: 4rem;
        display: block;
        width: 100%;
    }
    .nine.candee-columns {
        padding: 0px 1rem;
    }
}

/* Sidebar Layout Fix */
.candee-row.candee-row-content {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.three.candee-columns {
    width: 280px; /* Fixed width for modern sidebar in desktop */
    min-width: 280px;
    flex-shrink: 0;
}

.nine.candee-columns {
    flex-grow: 1;
    width: calc(100% - 280px);
}
.container.full-width-no-header, .container.fullWidthContainer {
    margin: 0px;
    padding: 0px;
}
.container.full-width-no-header, .candee.candeeAdminPage.candee-container, .container.fullWidthContainer {
    max-width: unset;
    width: 100%;
}

.candee.candeeAdminPage {
    min-height: 100vh;
    padding: 0rem 0rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main Containers */
.dashboard-header-modern {
    /* padding: 0 0 2rem 0; */
    color: #1f3a4b;
}

.dashboard-header-modern h1 {
    color: #1f3a4b;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.header-title h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    /* color: white; */
}

.storage-icon {
    background: var(--candee-primary);
    width: 50px;
    height: 50px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transform: rotate(5deg);
}
.nine.candee-columns{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    margin-inline: 1rem!important;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    /* margin-bottom: 2.5rem; */
    margin-top: 1rem;
}

.stat-card {
    background: white;
    border-radius: 24px;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 8px 20px -12px rgba(0,40,70,0.15);
    border: 1px solid #e6edf4;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -12px rgba(0,40,70,0.2);
}

.stat-card.active {
    border-color: var(--candee-primary);
    /* background: #fafff2; */
    background: #ffff;
    box-shadow: 0 8px 25px -10px rgba(144, 198, 61, 0.3);
}

/* Hint for search results in other tab */
.stat-card.has-results-hint {
    border-color: rgba(144, 198, 61, 0.8) !important;
    box-shadow: 0 0 15px rgba(144, 198, 61, 0.4) !important;
    animation: pulse-hint 2s infinite;
}

@keyframes pulse-hint {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); border-color: var(--candee-primary); }
    100% { transform: scale(1); }
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: #eef4fa;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.active .stat-icon {
    background: var(--candee-primary);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f3a4b;
    line-height: 1;
}

.stat-label {
    color: #1f3a4b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.stat-sub {
    font-size: 0.8rem;
    color: #90C63D;
    font-weight: 500;
}

/* Buscador */
.search-section {
    /* padding: 1.5rem 2.5rem; */
    padding: 1.8rem 1.5rem;
    border-bottom: 1px solid #e0ecf7;
}

.search-box input, .search-btn {
    margin: 0px;
}

.search-title {
    color: #1f5a7a;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 2px solid #d2e3f0;
    border-radius: 60px;
    font-size: 1rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #90C63D;
    box-shadow: 0 0 0 4px rgba(144, 198, 61, 0.1);
}

.search-btn {
    background: #3DB1C4;
    color: white;
    border: none;
    padding: 0 2.5rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #2d8b9c;
}

.search-btn:hover {
    background: #4fc3d6;
    transform: scale(1.02);
}

/* Search No Results Feedback */
.search-no-results {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 12px;
    animation: slideDown 0.3s ease;
    flex-wrap: wrap;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.no-results-icon {
    font-size: 1.2rem;
}

.no-results-text {
    color: #7a5a00;
    font-weight: 500;
    font-size: 0.9rem;
}

.no-results-link {
    color: #3DB1C4 !important;
    font-weight: 700;
    text-decoration: underline !important;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}

.no-results-link:hover {
    color: #2d8b9c !important;
}

/* Cuerpo - lista de órdenes */
.orders-section-modern {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    border: 1px solid #e6edf4;
    box-shadow: 0 8px 20px -12px rgba(0,40,70,0.15);
    margin-bottom: 1rem;
}

.candee.candeeAdminPage.candee-container{
    margin-bottom: 0px;
    padding-bottom: 0px;
}
footer {
    margin-top: 2rem;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    color: #1a4057;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    background: #f0f6fd;
    border: 1px solid #caddf0;
    color: #2b5a7a;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab.active {
    background: #90C63D;
    border-color: #6b9e2a;
    color: white;
}

.tab-count {
    background: rgba(0,0,0,0.1);
    color: inherit;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
    font-weight: 600;
}

.filter-tab.active .tab-count {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* Tarjetas de orden */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: #f9fcff;
    border-radius: 24px;
    border: 1px solid #d4e5f2;
    overflow: hidden;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.order-card:hover {
    box-shadow: 0 10px 25px -15px #1f4b6e;
    transform: translateY(-2px);
}

.order-header {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #eef6fe, #e2eefa);
    border-bottom: 2px solid #90C63D;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-id {
    font-weight: 700;
    color: #16384d;
    background: white;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.9rem;
    border: 1px solid #3DB1C4;
}

.unit-number {
    background: #3DB1C4;
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-name {
    color: #3f6b89;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-wrap-mode: nowrap;
}

.status-badge {
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.status-badge.action-needed {
    background: #fff3d8;
    color: #b45b0a;
    border: 1px solid #ffb26b;
}

.status-badge.completed {
    background: #e1f7e6;
    color: #1f7840;
    border: 1px solid #90C63D;
}

.status-badge.pending {
    background: #ffe0e0;
    color: #b33b3b;
    border: 1px solid #ff8a8a;
}

.order-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.unit-image {
    width: 80px;
    height: 80px;
    background: #d4e4f0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.unit-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.unit-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0d3145;
}

.unit-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: #4a6f8b;
    font-size: 0.9rem;
}

.unit-features {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: white;
    border: 1px solid #b8d2ea;
    border-radius: 30px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    color: #1e5f83;
}

.gatecode-note-title {
    font-weight: 600;
    color: #1e5f83;
}

.gatecode-note {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.gatecode-note p {
    margin: 0;
    padding: 0;
}

.order-amount {
    font-weight: 700;
    font-size: 1.4rem;
    color: #0d3e5a;
    text-align: right;
}

.order-amount small {
    font-size: 0.8rem;
    display: block;
    color: #6f8da5;
    font-weight: normal;
}

.order-footer .footer-content-action {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px dashed #c3d9ec;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.action-steps .step-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.step-item.sign-lease {
    cursor: pointer;
}
.step-dot.completed {
    background: #90C63D;
    color: white;
}

.step-dot.pending {
    background: #f0f0f0;
    color: #8b9fb0;
    border: 1px solid #cbdae8;
}

.step-dot.current {
    background: #3DB1C4;
    color: white;
    box-shadow: 0 0 0 3px rgba(61, 177, 196, 0.2);
}
.step-dot.lease {
    cursor: pointer;
}
.order-footer .order-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.step-text {
    color: #2b5e7e;
    font-weight: 500;
    font-size: 0.9rem;
}

.action-btn {
    background: #90C63D;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #6f9e30;
}

.action-btn:hover {
    background: #a2d953;
    transform: scale(1.02);
    color: white;
}

.action-btn.secondary {
    background: transparent;
    border: 2px solid #3DB1C4;
    color: #3DB1C4;
}

a.action-btn.secondary,
button.action-btn.secondary {
    height: max-content;
    line-height: normal;
}

.action-btn.secondary:hover {
    background: #3DB1C4;
    color: white;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9fcff;
    border-radius: 30px;
    border: 2px dashed #c1d9ee;
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #1a4f70;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6f8da5;
    margin-bottom: 2rem;
}

.empty-state .btn {
    background: #3DB1C4;
    color: white;
    padding: 1rem 3rem;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header { padding: 1.5rem; }
    .search-section { padding: 1.5rem; }
    .orders-body { padding: 1.5rem; }
    
    .order-body {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .unit-image { margin: 0 auto; }
    .order-amount { text-align: center; }
    
    .order-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .action-steps {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .header-title h1 { font-size: 1.5rem; }
    .order-header { flex-direction: column; align-items: flex-start; }
    .order-title { flex-direction: column; align-items: flex-start; }
}

.reservationExpired {
    font-size: 12px;
    color: #cb1716;
}

.html-popup.order-confirmed {
    width: 50%;
    margin-top: 20px;
    min-width: 300px;
}

div#leaseLoader {
    width: 95% !important;
}

.order-actions--notes,
.order-actions--breakdown {
    display: none;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e6eef7;
}
.order-actions--notes { background: #fffefc; }
.order-actions--breakdown { background: #fbfeff; }

/* Skeleton loader */
.skeleton-wrapper { display: flex; flex-direction: column; gap: 0.75rem; }
.skeleton-card { display: flex; gap: 0.75rem; align-items: center; padding: 0.9rem; border-radius: 12px; background: #f6f8fb; border: 1px solid #e8eef6; }
.skeleton-thumb { width: 64px; height: 64px; border-radius: 8px; background: linear-gradient(90deg,#eee 25%,#f7f7f7 37%,#eee 63%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton-lines { flex: 1; }
.skeleton-line { height: 12px; margin-bottom: 8px; border-radius: 6px; background: linear-gradient(90deg,#eee 25%,#f7f7f7 37%,#eee 63%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton-line.short { width: 36%; }
.skeleton-line.medium { width: 60%; }
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
