/*
Systemname: EqRent
Filename: app.css
Version: 1.2.0
Copyright: Vianke Ltd 2025
Description: Main application styles including asset module (Safari compatible)
*/

/* Reset & Base */
* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f5f7;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
}

/* Layout - Safari compatible */
#content {
    margin-left: 220px;
    margin-top: 60px;
    padding: 30px;
    min-height: -webkit-calc(100vh - 60px);
    min-height: calc(100vh - 60px);
}

/* Page Header */
.page-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin-bottom: 28px;
}

.page-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

.page-actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}

.page-actions > * {
    margin-left: 12px;
}

.page-actions > *:first-child {
    margin-left: 0;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e8ed;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card h2 {
    margin: 0 0 20px 0;
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.card h3 {
    margin: 20px 0 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}

.card hr {
    border: none;
    border-top: 1px solid #e8e8ed;
    margin: 24px 0;
}

/* Stats Grid - Safari compatible */
.stats-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -8px 20px -8px;
}

.stats-grid > .card {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 calc(50% - 16px);
    flex: 0 0 calc(50% - 16px);
    margin: 8px;
}

.stats-grid.stats-4 > .card {
    -webkit-flex: 0 0 calc(25% - 16px);
    flex: 0 0 calc(25% - 16px);
}

/* Dashboard 2x2 Grid - Safari compatible */
.dashboard-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -12px 24px -12px;
}

.dashboard-grid > .card {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 calc(50% - 24px);
    flex: 0 0 calc(50% - 24px);
    margin: 12px;
}

.dashboard-grid .card {
    padding: 24px;
}

.dashboard-grid .card h3 {
    margin: 0 0 20px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

/* Simple Table for Dashboard */
.simple-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.simple-table th,
.simple-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f5;
}

.simple-table th {
    font-weight: 600;
    color: #6e6e73;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
}

.simple-table tbody tr {
    transition: background 0.15s ease;
}

.simple-table tbody tr:hover {
    background: #f5f5f7;
}

.simple-table tbody tr:last-child td {
    border-bottom: none;
}

.simple-table .current-year {
    background: linear-gradient(90deg, #e8f4fd 0%, #f0f7ff 100%);
    font-weight: 600;
}

.simple-table .current-year:hover {
    background: linear-gradient(90deg, #d8ecfc 0%, #e8f2ff 100%);
}

.simple-table tfoot td {
    border-top: 2px solid #e8e8ed;
    border-bottom: none;
    padding-top: 14px;
    background: #f8f9fa;
    font-weight: 600;
}

/* Summary Row - Safari compatible */
.summary-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e8e8ed;
}

.summary-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin-right: 40px;
}

.summary-item:last-child {
    margin-right: 0;
}

.summary-item .summary-label {
    margin-right: 10px;
}

.summary-label {
    color: #6e6e73;
    font-size: 14px;
}

.summary-value {
    font-weight: 700;
    font-size: 18px;
    color: #1d1d1f;
}

/* Quick Links - Safari compatible */
.quick-links {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8e8ed;
}

.quick-links > * {
    margin-right: 12px;
    margin-bottom: 8px;
}

.quick-links > *:last-child {
    margin-right: 0;
}

/* Dashboard Summary Section */
.dashboard-summary {
    margin-top: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e8ed;
}

/* Pagination - Safari compatible */
.pagination {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 16px 0;
    margin-top: 16px;
    border-top: 1px solid #eee;
}

.pagination > * {
    margin-right: 16px;
}

.pagination > *:last-child {
    margin-right: 0;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.pagination-controls {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.pagination-controls > * {
    margin-right: 4px;
    margin-bottom: 4px;
}

.pagination-controls .btn-small {
    min-width: 36px;
    text-align: center;
}

.pagination-perpage {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.pagination-perpage label {
    margin-right: 8px;
}

.pagination-perpage select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .stats-grid.stats-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: 28px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e8e8ed;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27388e 0%, #4a6cf7 100%);
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, #34c759 0%, #30d158 100%);
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, #ff9500 0%, #ffb340 100%);
}

.stat-card:nth-child(4)::before {
    background: linear-gradient(90deg, #af52de 0%, #bf5af2 100%);
}

.stat-label {
    font-size: 13px;
    color: #6e6e73;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-value small {
    font-size: 16px;
    font-weight: 500;
    color: #86868b;
    margin-left: 4px;
}

.stat-sub {
    font-size: 13px;
    color: #86868b;
    margin-top: 8px;
}

/* Tabs - Safari compatible */
.tabs {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #d2d2d7;
}

.tab {
    padding: 12px 20px;
    text-decoration: none;
    color: #86868b;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    margin-right: 4px;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.tab:hover {
    color: #1d1d1f;
}

.tab.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

/* Filter Card */
.filter-card {
    padding: 20px 24px;
}

.filter-form {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

.filter-form > * {
    margin-right: 24px;
}

.filter-form > *:last-child {
    margin-right: 0;
}

.filter-group {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.filter-group label {
    margin-right: 8px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    white-space: nowrap;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    min-width: 130px;
    background: #fff;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #0066cc;
}

@media (max-width: 1100px) {
    .filter-form {
        flex-wrap: wrap;
    }
}

/* Forms */
.form-grid-3 {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -10px 20px -10px;
}

.form-grid-3 > .form-group {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 calc(33.333% - 20px);
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px 20px 10px;
}

@media (max-width: 900px) {
    .form-grid-3 > .form-group {
        -webkit-flex: 0 0 calc(50% - 20px);
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .form-grid-3 > .form-group {
        -webkit-flex: 0 0 calc(100% - 20px);
        flex: 0 0 calc(100% - 20px);
    }
}

.form-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -10px 20px -10px;
}

.form-row > .form-group {
    margin: 0 10px;
}

.form-group {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
}

.form-group.full-width {
    -webkit-flex: 100%;
    flex: 100%;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    padding: 10px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    width: 100%;
}

.asset-form > .form-group {
    margin-bottom: 20px;
}

.asset-form > .form-group textarea {
    max-width: 100%;
}

.form-hint {
    font-size: 12px;
    color: #86868b;
}

.form-actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.form-actions > * {
    margin-right: 12px;
}

.form-actions > *:last-child {
    margin-right: 0;
}

/* Buttons */
.btn {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #0066cc;
    color: #fff;
}

.btn-primary:hover {
    background: #0055b3;
}

.btn-secondary {
    background: #e5e5e5;
    color: #1d1d1f;
}

.btn-secondary:hover {
    background: #d2d2d7;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
}

/* Bulk Actions - Safari compatible */
.bulk-actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 12px 16px;
    background: #f5f5f7;
    border-radius: 8px;
    margin-bottom: 16px;
}

.bulk-actions > * {
    margin-right: 12px;
}

.bulk-actions > *:last-child {
    margin-right: 0;
}

.bulk-actions .checkbox-label {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
}

.bulk-actions .checkbox-label input {
    margin-right: 6px;
}

.bulk-actions select {
    padding: 8px 12px;
    min-width: 180px;
}

/* Method badges */
.badge-linear {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-degressive {
    background: #fff3e0;
    color: #e65100;
}

.btn-text {
    background: transparent;
    color: #0066cc;
    padding: 10px 12px;
}

.btn-text:hover {
    background: rgba(0, 102, 204, 0.1);
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.data-table th {
    font-weight: 600;
    font-size: 12px;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
    background: #f5f5f7;
}

.data-table .actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
}

.data-table .actions > * {
    margin-left: 8px;
}

.data-table .actions > *:first-child {
    margin-left: 0;
}

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

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

.text-muted {
    color: #86868b;
}

.text-warning {
    color: #bf5600;
}

/* Asset link */
.asset-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.asset-link:hover {
    text-decoration: underline;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-admin {
    background: #e8f0fe;
    color: #1a73e8;
}

.badge-user {
    background: #e5e5e5;
    color: #1d1d1f;
}

.badge-active {
    background: #e6f4ea;
    color: #137333;
}

.badge-inactive,
.badge-disposed,
.badge-lost {
    background: #fce8e6;
    color: #c5221f;
}

.badge-sold {
    background: #fef7e0;
    color: #b06000;
}

.badge-warning {
    background: #fef7e0;
    color: #b06000;
}

/* Action Links for User Table */
.actions-cell {
    text-align: right;
    white-space: nowrap;
}

.action-group {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    background: #f5f5f7;
    border-radius: 8px;
    padding: 4px;
}

.action-link {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #6e6e73;
    text-decoration: none;
    -webkit-transition: all 0.15s ease;
    transition: all 0.15s ease;
}

.action-link:hover {
    background: #fff;
    color: #1d1d1f;
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.action-link.action-edit:hover {
    color: #0066cc;
}

.action-link.action-activate:hover {
    color: #137333;
}

.action-link.action-deactivate:hover {
    color: #b06000;
}

.action-link.action-admin:hover {
    color: #1a73e8;
}

.action-link.action-delete:hover {
    color: #c5221f;
    background: #fce8e6;
}

.action-link svg {
    width: 16px;
    height: 16px;
}

/* Messages */
.message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message.success {
    background: #e6f4ea;
    color: #137333;
}

.message.error {
    background: #fce8e6;
    color: #c5221f;
}

.message.warning {
    background: #fef7e0;
    color: #b06000;
}

/* Asset Detail Grid - Safari compatible */
.asset-detail-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.asset-detail-grid > .card {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 calc(50% - 20px);
    flex: 0 0 calc(50% - 20px);
    margin: 10px;
}

@media (max-width: 900px) {
    .asset-detail-grid > .card {
        -webkit-flex: 0 0 calc(100% - 20px);
        flex: 0 0 calc(100% - 20px);
    }
}

.detail-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-label {
    color: #86868b;
    font-size: 14px;
}

.detail-value {
    font-weight: 500;
    text-align: right;
}

.detail-value.big {
    font-size: 24px;
    color: #0066cc;
}

.detail-row.highlight {
    background: #f5f5f7;
    margin: 0 -24px;
    padding: 12px 24px;
}

.detail-row.highlight-primary {
    background: #e8f0fe;
    margin: 0 -24px;
    padding: 16px 24px;
}

/* Depreciation Progress */
.depreciation-progress {
    margin-top: 20px;
}

.progress-bar {
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066cc, #00a2ff);
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #86868b;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
}

/* Logo Preview */
.logo-preview {
    margin-top: 10px;
}

.logo-preview img {
    max-height: 50px;
    border-radius: 4px;
}

/* =====================================================
   LOGIN PAGE - Apple Clean Style 
   ===================================================== */
.login-body {
    background: #f5f5f7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: #fff;
    border-radius: 18px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo img {
    max-height: 48px;
}

.login-box h2 {
    text-align: center;
    margin: 0 0 32px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

.login-box .input-group {
    margin-bottom: 16px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
    transition: all 0.2s;
}

.login-box input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #0a2540;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #0d3356;
}

.error-msg {
    background: #fce8e6;
    color: #c5221f;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.success-msg {
    background: #e6f4ea;
    color: #1e7e34;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.success-msg a {
    color: #1e7e34;
    word-break: break-all;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 15px;
}

.lang-current {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-current:hover {
    background: rgba(255,255,255,0.25);
}

.lang-arrow {
    font-size: 10px;
    opacity: 0.7;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 150px;
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.lang-option:hover {
    background: #f5f5f7;
}

.lang-option.active {
    background: #e8f0fe;
    color: #1a73e8;
}

.lang-code {
    font-weight: 600;
    font-size: 12px;
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
}

.lang-option.active .lang-code {
    background: #1a73e8;
    color: #fff;
}

.lang-name {
    font-size: 14px;
}

/* Login Language Switcher */
.login-lang {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.login-lang a {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 5px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.login-lang a:hover {
    background: #f5f5f7;
}

.login-lang a.active {
    background: #1a73e8;
    color: #fff;
}

.login-links {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
}

.login-links a {
    color: #0066cc;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.ip-text {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
    color: #86868b;
}

.notice {
    text-align: center;
    margin-top: 16px;
    font-size: 10px;
    color: #86868b;
    line-height: 1.5;
}

/* =====================================================
   IMPORT STYLES
   ===================================================== */
.import-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.import-steps .step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #86868b;
    font-size: 14px;
}

.import-steps .step.active {
    color: #0066cc;
    font-weight: 600;
}

.import-steps .step.done {
    color: #137333;
}

.import-steps .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.import-steps .step.active .step-num {
    background: #0066cc;
    color: #fff;
}

.import-steps .step.done .step-num {
    background: #137333;
    color: #fff;
}

.import-section {
    max-width: 800px;
    margin: 0 auto;
}

.upload-form {
    text-align: center;
}

.upload-area {
    border: 2px dashed #d2d2d7;
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #0066cc;
    background: #f0f7ff;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-hint {
    font-size: 12px;
    color: #86868b;
    margin-top: 8px;
}

.import-help {
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f7;
    border-radius: 10px;
}

.import-help h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
}

.import-help ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #555;
}

.import-help li {
    margin-bottom: 6px;
}

.mapping-table {
    width: 100%;
    margin-bottom: 20px;
}

.mapping-table th,
.mapping-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.mapping-table th {
    background: #f5f5f7;
    font-size: 12px;
    text-transform: uppercase;
    color: #86868b;
}

.preview-cell {
    font-size: 12px;
    color: #86868b;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mapping-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
}

.import-complete {
    text-align: center;
    padding: 60px 20px;
}

.complete-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #d1fae5;
    color: #137333;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.import-complete h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

/* Mapping Grid */
.mapping-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.import-settings-box {
    background: #e8f4fd;
    border: 1px solid #b3d7f5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.import-settings-box h4 {
    margin: 0 0 16px 0;
    color: #0a2540;
    font-size: 14px;
}

.mapping-row {
    display: grid;
    grid-template-columns: 200px 250px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.mapping-label {
    font-weight: 500;
    color: #374151;
}

.mapping-label.required {
    color: #0066cc;
}

.mapping-select {
    padding: 10px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.mapping-select option:disabled {
    color: #999;
    background: #f5f5f5;
}

.mapping-preview {
    font-size: 13px;
    color: #86868b;
}

.preview-table-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
}

.preview-table {
    font-size: 12px;
    white-space: nowrap;
}

.preview-table th,
.preview-table td {
    padding: 8px 12px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Settings Preview */
.settings-preview {
    padding: 20px;
    background: #f5f5f7;
    border-radius: 10px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #27388e;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.preview-box {
    margin-top: 10px;
    padding: 10px;
    background: #f5f5f7;
    border-radius: 6px;
    display: inline-block;
}

/* Table row editing state */
.data-table tr.editing {
    background: #e8f4fd;
}

@media (max-width: 800px) {
    .mapping-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* =====================================================
   DEPRECIATION TABLE STYLES
   ===================================================== */
.depreciation-table tbody tr.current-year {
    background: #e8f4fd;
    font-weight: 600;
}

.depreciation-table tbody tr.past-year {
    color: #86868b;
}

.depreciation-table tfoot {
    background: #f5f5f7;
    font-weight: 600;
}

.depreciation-table tfoot th {
    padding: 12px;
    border-top: 2px solid #d2d2d7;
}

.badge-done {
    background: #e5e5e5;
    color: #666;
}
