/* ========================================
   ORDER PAGES STYLES
   ======================================== */

/* ----------------------------------------
   ORDER HERO SECTION
   ---------------------------------------- */
.order-hero {
    background: linear-gradient(to bottom, #f0fdfa 0%, #ffffff 100%);
    padding: 48px 0 64px;
    position: relative;
}

.order-hero__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.order-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 12px;
}

.order-hero__desc {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Hero Search */
.order-hero__search {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 32px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: none;
}

.search-input-wrapper svg {
    position: static;
    color: rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    margin-right: 12px;
    z-index: 1;
}

.search-input-wrapper .search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 14px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    background: transparent;
}

.search-input-wrapper .search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Hero Stats */
.order-hero__stats {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 16px 32px;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-soft);
}

.order-hero__stats .stat-item {
    text-align: center;
}

.order-hero__stats .stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
}

.order-hero__stats .stat-label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: rgba(0, 0, 0, 0.5);
}

.order-hero__stats .stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
}

/* ----------------------------------------
   ORDER LAYOUT (Sidebar + Results)
   ---------------------------------------- */
.order-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding-top: 32px;
}

@media (max-width: 1024px) {
    .order-layout {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------
   FILTERS SIDEBAR
   ---------------------------------------- */
.order-filters {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.filter-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.85);
}

.filter-card__header svg {
    color: var(--color-primary);
}

.filter-reset {
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.filter-reset:hover {
    text-decoration: underline;
}

.filter-form {
    padding: 16px 24px 24px;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
}

.filter-label svg {
    color: var(--color-primary);
    opacity: 0.7;
}

.filter-clear {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: var(--color-accent);
    cursor: pointer;
    padding: 0;
}

.filter-clear:hover {
    text-decoration: underline;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.filter-options--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    max-height: none;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.filter-option:hover {
    border-color: var(--color-primary-light);
    background: rgba(15, 118, 110, 0.02);
}

.filter-option.active {
    border-color: var(--color-primary);
    background: rgba(15, 118, 110, 0.05);
}

.filter-option input {
    display: none;
}

.filter-option__flag {
    font-size: 1.125rem;
}

.filter-option__text {
    flex: 1;
    font-family: var(--font-body);
    color: rgba(0, 0, 0, 0.8);
}

.filter-option__count {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 8px;
    border-radius: 10px;
}

@media (max-width: 1024px) {
    .order-filters {
        position: static;
    }
}

/* ----------------------------------------
   RESULTS SECTION
   ---------------------------------------- */
.order-results {
    min-width: 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.results-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.results-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.85);
    margin: 0;
}

.results-count {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.5);
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.sort-dropdown label {
    color: rgba(0, 0, 0, 0.5);
}

.sort-dropdown select {
    padding: 10px 32px 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    background: white;
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(15, 118, 110, 0.1);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-primary);
}

.active-filter a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.active-filter a:hover {
    background: var(--color-primary-dark);
}

/* ----------------------------------------
   ORDER LIST
   ---------------------------------------- */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Order Card */
.order-card {
    display: flex;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary-light);
}

.order-card__flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f7f4 100%);
    font-size: 2.5rem;
    flex-shrink: 0;
}

.order-card__content {
    flex: 1;
    padding: 20px 24px;
    min-width: 0;
}

.order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.order-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.order-card__date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: rgba(0, 0, 0, 0.45);
}

.order-card__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.4;
}

.order-card__title a {
    color: rgba(0, 0, 0, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.order-card__title a:hover {
    color: var(--color-primary);
}

.order-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.order-card__meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.6);
}

.order-card__meta .meta-item svg {
    color: var(--color-primary);
    opacity: 0.7;
}

.order-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.order-card__salary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent);
}

.order-card__salary svg {
    opacity: 0.8;
}

@media (max-width: 640px) {
    .order-card {
        flex-direction: column;
    }

    .order-card__flag {
        width: 100%;
        height: 60px;
        font-size: 2rem;
    }

    .order-card__content {
        padding: 16px;
    }

    .order-card__footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .order-card__footer .ant-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ----------------------------------------
   PAGINATION
   ---------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.pagination-pages {
    display: flex;
    gap: 4px;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-page:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-page.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: rgba(0, 0, 0, 0.4);
}

/* ----------------------------------------
   EMPTY STATE (Order Specific)
   ---------------------------------------- */
.order-list .empty-state {
    background: white;
    border-radius: var(--radius-lg);
    padding: 64px 24px;
}

.order-list .empty-state__icon svg {
    stroke: var(--color-primary);
    opacity: 0.3;
}

.order-list .empty-state__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
}

.order-list .empty-state__desc {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 24px;
}

/* ----------------------------------------
   MOBILE FILTER TOGGLE
   ---------------------------------------- */
@media (max-width: 1024px) {
    .order-filters {
        display: none;
    }

    .order-filters.show {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.5);
        padding: 20px;
        overflow-y: auto;
    }

    .order-filters.show .filter-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ========================================
   ORDER DETAIL PAGE
   ======================================== */

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    padding-top: 24px;
}

@media (max-width: 1024px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }
}

/* Stack */
.stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Detail Salary Box */
.order-detail-salary {
    background: linear-gradient(135deg, #f0fdfa 0%, #e6f7f5 100%);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.order-detail-salary .text-muted {
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.5);
}

.order-detail-salary .order-card__salary {
    font-size: 2rem;
    margin: 0;
}

/* Grid Stats */
.detail-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: #fafafa;
    padding: 20px;
    border-radius: var(--radius-lg);
}

.detail-stats-grid > div {
    text-align: center;
}

.detail-stats-grid svg {
    margin-bottom: 8px;
}

.detail-stats-grid .text-muted {
    font-size: 0.8125rem;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .detail-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-stats-grid > div {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .detail-stats-grid svg {
        margin-bottom: 0;
    }
}

/* Info List */
.info-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Related Orders */
.list-stack a {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease;
}

.list-stack a:hover {
    background: #fafafa;
}

.list-stack a:last-child {
    border-bottom: none;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-strong);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    display: flex;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: rgba(0, 0, 0, 0.85);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

/* Sidebar CTA Card */
.sidebar-cta-card {
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    background: white;
}

/* Hotline Card */
.hotline-card {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.hotline-card svg {
    margin-bottom: 12px;
}

.hotline-card .hotline-number {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.hotline-card .hotline-time {
    opacity: 0.8;
    font-size: 0.8125rem;
}

/* ========================================
   ORDER DETAIL PAGE - ADDITIONAL STYLES
   ======================================== */

/* Detail Hero Section */
.order-detail-hero {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #ffffff 100%);
    padding: 32px 0 48px;
    position: relative;
}

.order-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f766e' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Breadcrumb */
.order-breadcrumb {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    position: relative;
}

.order-breadcrumb a {
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.order-breadcrumb a:hover {
    color: var(--color-primary);
}

.order-breadcrumb__sep {
    color: rgba(0, 0, 0, 0.3);
}

.order-breadcrumb__current {
    color: rgba(0, 0, 0, 0.85);
}

/* Order Detail Card */
.order-detail-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.order-detail-card__header {
    padding: 28px 28px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.order-detail-card__body {
    padding: 28px;
}

.order-detail-card__title {
    font-family: var(--font-display, 'Be Vietnam Pro'), sans-serif;
    font-size: 1.625rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
    line-height: 1.35;
}

.order-detail-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.order-detail-card__meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 14px;
}

.order-detail-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Order Salary Box */
.order-salary-box {
    background: linear-gradient(135deg, var(--color-primary, #0f766e) 0%, var(--color-primary-light, #14b8a6) 100%);
    padding: 24px;
    border-radius: 16px;
    color: white;
    text-align: center;
}

.order-salary-box__label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.order-salary-box__value {
    font-family: var(--font-display, 'Be Vietnam Pro'), sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
}

/* Order Stats Grid */
.order-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.order-stat-item {
    background: #f8fafc;
    padding: 20px 16px;
    border-radius: 12px;
    text-align: center;
}

.order-stat-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.order-stat-item__icon--blue { background: #dbeafe; color: #2563eb; }
.order-stat-item__icon--green { background: #dcfce7; color: #16a34a; }
.order-stat-item__icon--amber { background: #fef3c7; color: #d97706; }

.order-stat-item__label {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.order-stat-item__value {
    font-weight: 600;
    color: #1f2937;
}

/* Section Card */
.section-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-top: 20px;
}

.section-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    color: #1f2937;
}

.section-card__body {
    padding: 24px;
    line-height: 1.8;
    color: #4b5563;
}

.section-card__body--list {
    padding: 0;
}

/* Info Row */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f5f5f5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row__label {
    color: #6b7280;
}

.info-row__value {
    font-weight: 600;
    color: #1f2937;
}

.info-row__value--primary {
    color: var(--color-primary, #0f766e);
}

.info-row__value--success {
    color: #16a34a;
}

/* Related Order Item */
.related-order-item {
    display: block;
    padding: 18px 24px;
    border-bottom: 1px solid #f5f5f5;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
}

.related-order-item:hover {
    background: #fafafa;
}

.related-order-item:last-child {
    border-bottom: none;
}

.related-order-item__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.related-order-item__title {
    font-weight: 500;
    color: #1f2937;
    margin: 8px 0;
}

.related-order-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.related-order-item__salary {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent, #f97316);
}

.related-order-item__company {
    font-size: 14px;
    color: #6b7280;
}

/* Detail Sidebar Card */
.sidebar-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.sidebar-card--cta {
    border: 2px solid var(--color-primary, #0f766e);
}

.sidebar-card__body {
    padding: 24px;
}

.sidebar-card__body--center {
    text-align: center;
}

.sidebar-card__title {
    margin: 0 0 16px;
    font-weight: 600;
}

/* Company Info */
.company-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.company-info__avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary, #0f766e) 0%, var(--color-primary-light, #14b8a6) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.company-info__details h4 {
    margin: 0 0 6px;
    font-weight: 600;
    color: #1f2937;
}

.company-info__item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.company-info__item:last-child {
    margin-bottom: 0;
}

/* Hotline Card (Detail) */
.hotline-card {
    background: linear-gradient(135deg, var(--color-primary, #0f766e) 0%, var(--color-primary-light, #14b8a6) 100%);
    color: white;
    text-align: center;
}

.hotline-card__icon {
    margin-bottom: 8px;
}

.hotline-card__label {
    opacity: 0.9;
    margin: 0;
}

.hotline-card__number {
    font-family: var(--font-display, 'Be Vietnam Pro'), sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 8px 0;
}

.hotline-card__time {
    opacity: 0.8;
    font-size: 13px;
    margin: 0;
}

/* Empty Order State */
.order-empty-card {
    text-align: center;
    padding: 48px;
}

.order-empty-card__icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.order-empty-card__title {
    margin: 0 0 8px;
}

.order-empty-card__desc {
    color: #6b7280;
    margin: 0 0 24px;
}

/* Order Detail Main Section */
.order-detail-section {
    background: #f5f5f5;
    padding-top: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .order-stats-grid {
        grid-template-columns: 1fr;
    }

    .order-detail-card__header,
    .order-detail-card__body {
        padding: 20px;
    }

    .order-detail-card__title {
        font-size: 1.375rem;
    }

    .order-salary-box__value {
        font-size: 1.5rem;
    }
}

/* ========================================
   ORDER IMAGES ALBUM (Facebook-style)
   ======================================== */
.order-images {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.order-images__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px;
}

.order-images__title svg {
    color: var(--color-primary, #0f766e);
}

/* Facebook-style Album Grid */
.order-images__album {
    display: grid;
    gap: 4px;
    border-radius: 12px;
    overflow: hidden;
}

/* Layout variants based on image count */
.order-images__album[data-count="1"] {
    grid-template-columns: 1fr;
}

.order-images__album[data-count="2"] {
    grid-template-columns: 1fr 1fr;
}

.order-images__album[data-count="3"] {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.order-images__album[data-count="3"] .order-images__album-item:first-child {
    grid-row: span 2;
}

.order-images__album[data-count="4"] {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 2fr 1fr 1fr;
}

.order-images__album[data-count="4"] .order-images__album-item:first-child {
    grid-row: span 3;
}

.order-images__album[data-count="5"],
.order-images__album[data-count="more"] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 2fr 1fr;
}

.order-images__album[data-count="5"] .order-images__album-item:first-child,
.order-images__album[data-count="more"] .order-images__album-item:first-child {
    grid-column: span 2;
}

.order-images__album[data-count="5"] .order-images__album-item:nth-child(2),
.order-images__album[data-count="more"] .order-images__album-item:nth-child(2) {
    grid-row: span 2;
}

/* Album item base */
.order-images__album-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #e5e7eb;
    min-height: 120px;
}

.order-images__album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.order-images__album-item:hover img {
    transform: scale(1.02);
}

/* More overlay */
.order-images__album-item--more::after {
    content: attr(data-count);
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

/* Single image - full width, larger */
.order-images__album[data-count="1"] .order-images__album-item {
    aspect-ratio: 16/9;
    max-height: 400px;
}

/* 2 images - equal split */
.order-images__album[data-count="2"] .order-images__album-item {
    aspect-ratio: 1;
    max-height: 350px;
}

/* 3+ images - main image takes 60% height */
.order-images__album[data-count="3"],
.order-images__album[data-count="4"],
.order-images__album[data-count="5"],
.order-images__album[data-count="more"] {
    height: 450px;
}

/* View all button */
.order-images__view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-images__view-all:hover {
    background: #f1f5f9;
    border-color: var(--color-primary, #0f766e);
    color: var(--color-primary, #0f766e);
}

/* Responsive */
@media (max-width: 640px) {
    .order-images__album[data-count="3"],
    .order-images__album[data-count="4"],
    .order-images__album[data-count="5"],
    .order-images__album[data-count="more"] {
        height: 320px;
    }

    .order-images__album[data-count="1"] .order-images__album-item {
        max-height: 280px;
    }

    .order-images__album[data-count="2"] .order-images__album-item {
        max-height: 200px;
    }

    .order-images__album-item--more::after {
        font-size: 1.5rem;
    }
}

/* Lightbox */
.order-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.order-lightbox__close:hover {
    opacity: 1;
}

.order-lightbox__img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.order-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.order-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.order-lightbox__nav--prev {
    left: 20px;
}

.order-lightbox__nav--next {
    right: 20px;
}

.order-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .order-gallery__main {
        aspect-ratio: 4/3;
    }

    .order-gallery__thumb {
        width: 60px;
        height: 45px;
    }
}

/* ----------------------------------------
   ORDER DOCUMENTS
   ---------------------------------------- */
.order-documents {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s;
}

.order-document-item:hover {
    background: #f0fdfa;
    border-color: #14b8a6;
    color: #0d9488;
}

.order-document-item svg {
    flex-shrink: 0;
    color: #64748b;
}

.order-document-item:hover svg {
    color: #0d9488;
}

.order-document-item span {
    font-size: 15px;
    font-weight: 500;
}

.order-document-item--primary {
    background: #f0fdfa;
    border-color: #99f6e4;
}

.order-document-item--primary svg {
    color: #0d9488;
}

/* ----------------------------------------
   ADDITIONAL DETAIL PAGE STYLES
   ---------------------------------------- */

/* Info Grid (for Job Details working time etc) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.info-grid .info-row {
    padding: 0;
    border: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* Info Highlight (for overtime, notes) */
.info-highlight {
    margin-top: 16px;
    padding: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
}

.info-highlight strong {
    color: #b45309;
    display: block;
    margin-bottom: 8px;
}

.info-highlight p {
    margin: 0;
    color: #78350f;
    line-height: 1.6;
}

/* Info Row Block (for multi-line content) */
.info-row--block {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.info-row--block .info-row__value {
    width: 100%;
}

/* Info Row Value Variants */
.info-row__value--warning {
    color: #dc2626 !important;
    font-weight: 700 !important;
}

/* Content Block (for rich text areas) */
.content-block {
    line-height: 1.8;
    color: #4b5563;
}

.content-block h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px;
}

.content-block + .content-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.content-block ul, .content-block ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.content-block li {
    margin-bottom: 0.5rem;
}

.content-block p {
    margin: 0.5rem 0;
}

.content-block img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Order Video */
.order-video {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.order-video h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px;
}

.order-video__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.order-video__wrapper iframe,
.order-video__wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Deadline Alert (Sidebar) */
.sidebar-card--warning {
    border: 2px solid #fbbf24;
    background: #fffbeb;
}

.deadline-alert {
    display: flex;
    align-items: center;
    gap: 16px;
}

.deadline-alert svg {
    color: #f59e0b;
    flex-shrink: 0;
}

.deadline-alert__label {
    font-size: 0.875rem;
    color: #78350f;
    margin: 0;
}

.deadline-alert__date {
    font-size: 1.25rem;
    font-weight: 700;
    color: #b45309;
    margin: 0;
}

/* Order Stat Item - Purple variant */
.order-stat-item__icon--purple {
    background: #ede9fe;
    color: #7c3aed;
}

/* Order Stat Item Sub text */
.order-stat-item__sub {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Salary Note */
.order-salary-box__note {
    font-size: 0.8125rem;
    opacity: 0.85;
    margin-top: 8px;
}
