* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
body {
    background: #eef3f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: auto;
}
#app-container {
    flex: 1;
    padding: 28px 36px;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    min-width: min-content;
}
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1661a3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s;
    border: 3px solid white;
}
.back-to-top:hover {
    background: #0d4270;
    transform: scale(1.1);
}
.login-page {
    background: white;
    border-radius: 40px;
    padding: 60px;
    max-width: 500px;
    margin: 80px auto;
    text-align: center;
    box-shadow: 0 18px 36px -12px #0e3b5e;
}
.login-page h2 {
    font-size: 2.5rem;
    color: #003770;
    margin-bottom: 30px;
}
.login-page input {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.2rem;
    border: 2px solid #d4e2f0;
    border-radius: 60px;
    margin-bottom: 20px;
}
.login-page input:focus {
    outline: none;
    border-color: #1e6eb5;
}
.login-btn {
    background: #1661a3;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 60px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
.login-btn:hover { background: #0d4270; }
.error-msg {
    color: #d32f2f;
    margin-top: 15px;
}
.share-modal, .ship-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.share-content, .ship-content {
    background: white;
    border-radius: 40px;
    padding: 40px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.share-content h2, .ship-content h2 {
    color: #003770;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
}
.share-field {
    margin-bottom: 20px;
}
.share-field label {
    font-weight: 600;
    color: #1f4a72;
    display: block;
    margin-bottom: 8px;
}
.share-code-box {
    background: #f0f7fc;
    padding: 15px 20px;
    border-radius: 30px;
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1661a3;
    border: 2px dashed #9dc0e6;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.share-code-box span {
    flex: 1;
    text-align: center;
}
.share-code-box button {
    background: #1661a3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}
.share-code-box button:hover {
    background: #0d4270;
}
.share-link-box {
    background: #f0f7fc;
    padding: 15px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    word-break: break-all;
    border: 1px solid #cbddec;
    display: flex;
    align-items: center;
    gap: 10px;
}
.share-link-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: #0b4170;
}
.share-link-box button {
    background: #1661a3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}
.share-close {
    background: #e9f2fa;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}
.ship-field {
    margin-bottom: 20px;
}
.ship-field label {
    font-weight: 600;
    color: #1f4a72;
    display: block;
    margin-bottom: 8px;
}
.ship-field input, .ship-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d4e2f0;
    border-radius: 30px;
    font-size: 1rem;
    background: white;
}
.ship-field input:focus, .ship-field textarea:focus {
    outline: none;
    border-color: #1e6eb5;
}
.ship-field textarea {
    resize: vertical;
    min-height: 80px;
}
.common-links-area {
    background: #f8faff;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 20px;
}
.common-links-title {
    font-weight: 600;
    color: #1f4a72;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.common-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.common-link-btn {
    background: #e9f2fa;
    border: 1px solid #cbddec;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.common-link-btn:hover {
    background: #d0e2f5;
    transform: translateY(-1px);
}
.common-link-btn .delete-link {
    color: #dc3545;
    margin-left: 5px;
    font-size: 0.75rem;
}
.common-link-btn .delete-link:hover {
    color: #a02828;
}
.add-link-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.add-link-form input {
    flex: 1;
    min-width: 100px;
    padding: 8px 12px;
    border: 1px solid #d4e2f0;
    border-radius: 30px;
    font-size: 0.85rem;
}
.add-link-form button {
    background: #1661a3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
}
.add-link-form button:hover {
    background: #0d4270;
}
.ship-btn {
    background: #1661a3;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    margin-top: 10px;
}
.ship-btn:hover {
    background: #0d4270;
}
.ship-close {
    background: #e9f2fa;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
}
.search-section {
    background: white;
    border-radius: 60px;
    padding: 8px 16px 8px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 18px rgba(0,45,80,0.1);
    margin-bottom: 30px;
    flex-wrap: wrap;
    min-width: min-content;
}
.search-section i {
    color: #2b659b;
    font-size: 1.3rem;
}
.search-section input {
    flex: 1;
    border: none;
    padding: 16px 0;
    font-size: 1.1rem;
    min-width: 240px;
    background: transparent;
}
.search-section input:focus { outline: none; }
.search-results {
    background: white;
    border-radius: 30px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 16px 32px rgba(0,35,70,0.2);
    position: absolute;
    width: 500px;
    z-index: 1000;
    margin-top: 4px;
    display: none;
}
.search-results.show { display: block; }
.search-item {
    padding: 15px 25px;
    border-bottom: 1px solid #e2ecf6;
    cursor: pointer;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: background 0.2s;
}
.search-item:hover { background: #e3f0ff; }
.search-item .match-info { font-weight: 600; color: #0b4170; }
.admin-header {
    background: white;
    border-radius: 32px;
    padding: 26px 32px;
    margin-bottom: 32px;
    box-shadow: 0 10px 25px rgba(0,35,70,0.06);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    min-width: min-content;
}
.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(145deg, #0a3858, #1d5b8e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}
.create-doc-card {
    background: #e9f2fa;
    border-radius: 48px;
    padding: 16px 28px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.input-group {
    display: flex;
    flex-direction: column;
}
.input-group label {
    font-size: 1rem;
    font-weight: 700;
    color: #1f4a72;
    text-transform: uppercase;
    white-space: nowrap;
}
.input-group input {
    border: 2px solid white;
    background: white;
    padding: 10px 18px;
    border-radius: 40px;
    font-size: 1rem;
    width: 220px;
}
.btn-create {
    background: #1661a3;
    color: white;
    border: none;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0,79,158,0.3);
    white-space: nowrap;
}
.btn-create:hover { background: #0d4270; }
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
    min-width: min-content;
}
.filter-btn {
    background: white;
    border: 2px solid #d4e2f0;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.filter-btn.active {
    background: #1e5a88;
    color: white;
    border-color: #1e5a88;
}
.filter-btn:hover {
    background: #e9f2fa;
}
.time-filter {
    position: relative;
    display: inline-block;
}
.time-filter-btn {
    background: white;
    border: 2px solid #d4e2f0;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.time-filter-btn:hover {
    background: #e9f2fa;
}
.time-filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 100;
    display: none;
    overflow: hidden;
}
.time-filter-dropdown.show {
    display: block;
}
.time-filter-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.time-filter-item:hover {
    background: #e9f2fa;
}
.time-filter-item.active {
    background: #1661a3;
    color: white;
}
.date-range-picker {
    padding: 15px;
    border-top: 1px solid #e0e9f2;
}
.date-range-picker input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d4e2f0;
    border-radius: 30px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.date-range-picker button {
    background: #1661a3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    font-size: 0.85rem;
}
.date-range-picker button:hover {
    background: #0d4270;
}
.filter-count {
    font-size: 0.85rem;
    font-weight: normal;
    margin-left: 4px;
    opacity: 0.8;
}
.filter-btn.active .filter-count {
    opacity: 1;
    font-weight: 600;
}
.profit-btn {
    background: #e8f4fd;
    color: #1661a3;
}
.pagination {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}
.page-btn {
    background: white;
    border: 1px solid #d4e2f0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
}
.page-btn.active {
    background: #1e5a88;
    color: white;
}
/* 批量删除和全选样式 */
.batch-delete-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
}
.batch-delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.batch-delete-btn:hover:not(:disabled) {
    background: #b02a37;
    transform: translateY(-2px);
}
.batch-delete-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
}
.select-all-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}
.select-all-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.select-all-label {
    font-size: 0.85rem;
    color: #1f4a72;
    cursor: pointer;
    white-space: nowrap;
}
.doc-checkbox {
    position: absolute;
    top: 6px;
    left: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    z-index: 10;
}
.doc-card {
    position: relative;
}
/* 分页组件样式 */
.pagination-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e9f2;
}
.page-nav-btn {
    background: white;
    border: 1px solid #d4e2f0;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.page-nav-btn:hover:not(:disabled) {
    background: #e9f2fa;
    border-color: #1661a3;
}
.page-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.page-number {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #d4e2f0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.page-number.active {
    background: #1661a3;
    color: white;
    border-color: #1661a3;
}
.page-number:hover:not(.active) {
    background: #e9f2fa;
    border-color: #1661a3;
}
.page-ellipsis {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}
.doc-card.selected {
    border-left-color: #dc3545;
    box-shadow: 0 0 0 2px #dc3545;
}
.log-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.log-content {
    background: white;
    border-radius: 40px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}
.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-right: 50px;
    flex-shrink: 0;
}
.log-header h2 {
    color: #003770;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
}
.log-header-buttons {
    display: flex;
    gap: 10px;
    position: absolute;
    top: 25px;
    right: 25px;
}
.log-refresh-btn {
    background: #28a745;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}
.log-refresh-btn:hover {
    background: #1e7e34;
    transform: scale(1.1);
}
.log-close-btn {
    background: #e9f2fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #1f4a72;
    transition: all 0.2s;
}
.log-close-btn:hover {
    background: #d0e2f5;
    transform: scale(1.1);
}
.log-list {
    overflow-y: auto;
    margin-bottom: 20px;
    flex: 1;
}
.log-item {
    padding: 15px;
    border-bottom: 1px solid #e9f0f7;
    display: flex;
    gap: 15px;
    align-items: center;
}
.log-item i {
    color: #1e5a88;
    font-size: 1.2rem;
}
.log-item .log-info {
    flex: 1;
}
.log-item .log-time {
    color: #50799e;
    font-size: 0.9rem;
}
.log-item .log-doc {
    font-weight: 600;
    color: #003770;
}
.empty-log {
    text-align: center;
    padding: 40px;
    color: #6f8fae;
    font-size: 1.1rem;
}
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 26px;
    margin-top: 16px;
    min-width: min-content;
}
.doc-card {
    background: white;
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 12px 26px -10px rgba(17,55,100,0.2);
    transition: 0.2s;
    border-left: 6px solid #d4e2f0;
}
.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.country-badge {
    background: #d7e9ff;
    color: #145388;
    padding: 5px 16px;
    border-radius: 40px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.country-badge .create-time {
    font-size: 0.8rem;
    color: #2b659b;
    font-weight: normal;
    background: rgba(255,255,255,0.5);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}
.share-badge {
    background: #eaf3fc;
    font-family: monospace;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 40px;
    border: 1px dashed #3d7eb0;
}
.doc-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #002856;
}
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
    cursor: pointer;
}
.status-badge:hover {
    opacity: 0.8;
}
.status-shipped {
    background: #d4edda;
    color: #155724;
}
.status-pending {
    background: #fff3cd;
    color: #856404;
}
.status-deleted {
    background: #f8d7da;
    color: #721c24;
}
.shipping-info {
    background: #f0f7fc;
    border-radius: 20px;
    padding: 12px;
    margin: 12px 0;
    font-size: 0.85rem;
    border-left: 3px solid #1661a3;
}
.shipping-info p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.shipping-info i {
    color: #1661a3;
    width: 20px;
}
.shipping-info .ship-link {
    background: #1661a3;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.shipping-info .ship-link:hover {
    background: #0d4270;
}
.copy-ship-btn {
    background: #e9f2fa;
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1661a3;
}
.copy-ship-btn:hover {
    background: #d0e2f5;
}
.profit-info {
    background: #e8f4fd;
    border-radius: 16px;
    padding: 10px;
    margin: 12px 0;
    border: 1px solid #c0d6ed;
}
.stats-on-top {
    display: flex;
    gap: 20px;
    background: #f5faff;
    padding: 12px 18px;
    border-radius: 50px;
    margin: 15px 0;
    font-size: 1rem;
    font-weight: 600;
    flex-wrap: wrap;
}
.stat-icon {
    margin-right: 5px;
    color: #2b659b;
}
.doc-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid #dde7f0;
    padding-top: 16px;
    justify-content: space-around;
    flex-wrap: wrap;
}
.btn-icon {
    border: none;
    background: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}
.btn-edit { background: #deecfe; color: #175e9c; }
.btn-share { background: #def0e6; color: #147356; }
.btn-delete { background: #ffe7e7; color: #b34040; }
.btn-restore { background: #e2e3e5; color: #383d41; }
.btn-log { background: #e9d8fd; color: #6f42c1; }
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 1000px;
    table-layout: fixed;
}
th {
    background: #1e3c61;
    color: white;
    padding: 16px 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    font-size: 0.95rem;
}
td {
    padding: 16px 12px;
    border-bottom: 1px solid #e9f0f7;
    text-align: center;
    vertical-align: middle;
    background: white;
    font-size: 0.95rem;
}
tr:last-child td {
    border-bottom: none;
}
.editable-cell {
    padding: 4px 8px;
}
.editable-cell input {
    width: 100%;
    border: 1px solid #e0e9f2;
    background: white;
    padding: 10px 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.editable-cell input:focus {
    outline: none;
    border-color: #1e6eb5;
    box-shadow: 0 0 0 3px rgba(30,110,181,0.1);
    background: #ffffff;
}
th:nth-child(1), td:nth-child(1) { width: 6%; }
th:nth-child(2), td:nth-child(2) { width: 31%; }
th:nth-child(3), td:nth-child(3) { width: 18%; }
th:nth-child(4), td:nth-child(4) { width: 11%; }
th:nth-child(5), td:nth-child(5) { width: 20%; }
th:nth-child(6), td:nth-child(6) { width: 5%; }
th:nth-child(7), td:nth-child(7) { width: 9%; }
.record-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 45px;
}
.record-admin {
    background: #1661a3;
    color: white;
}
.record-client {
    background: #28a745;
    color: white;
}
.status-select {
    padding: 10px 32px 10px 16px;
    border-radius: 30px;
    border: 1px solid #e0e9f2;
    background: white;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23555%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    font-size: 0.95rem;
}
.status-select:focus {
    outline: none;
    border-color: #1e6eb5;
    box-shadow: 0 0 0 3px rgba(30,110,181,0.1);
}
.duplicate-warning {
    color: #d32f2f;
    font-size: 0.75rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}
.inwarehouse-time {
    font-size: 0.8rem;
    color: #1f6e43;
    white-space: nowrap;
    margin-top: 6px;
}
.btn-delete-row {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #b33c3c;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 30px;
    transition: all 0.2s;
}
.btn-delete-row:hover {
    background: #ffebeb;
    color: #a02828;
}
.highlight-row {
    animation: highlightFlash 1.5s ease-in-out;
    background-color: #fff3cd !important;
}
.highlight-row td {
    background-color: #fff3cd !important;
}
@keyframes highlightFlash {
    0% { background-color: #fff3cd; }
    50% { background-color: #ffe69c; }
    100% { background-color: #fff3cd; }
}
.doc-info-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f0f7ff, #e5f0fc);
    border-radius: 60px;
    border: 1px solid #c0d6ed;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.doc-info-header .share-code-tag {
    background: #1661a3;
    color: white;
    font-family: monospace;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 1.2rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.doc-info-header .share-code-tag i {
    color: #ffd700;
}
.doc-info-header .client-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.doc-info-header .client-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #003770;
}
.doc-info-header .country-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1f5e9e;
    background: white;
    padding: 5px 20px;
    border-radius: 40px;
    border: 1px solid #9dc0e6;
}
.doc-info-header i {
    color: #1661a3;
    margin: 0 5px;
}
.edit-page {
    background: white;
    border-radius: 40px;
    padding: 32px 42px;
    box-shadow: 0 18px 36px -12px #0e3b5e;
    max-width: 1300px;
    margin: 0 auto;
    min-width: min-content;
}
.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 15px;
}
.doc-title-edit {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}
.doc-title-edit input {
    border: 2px solid #e0e9f2;
    border-radius: 40px;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 500;
    width: 220px;
    background: white;
}
.doc-title-edit input:focus {
    outline: none;
    border-color: #1e6eb5;
    box-shadow: 0 0 0 3px rgba(30,110,181,0.1);
}
.btn-back {
    background: #f0f5fc;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #1f4a72;
    white-space: nowrap;
}
.btn-back:hover {
    background: #e0eaf5;
}
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.action-btn {
    background: #4c8bb8;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.action-btn:hover:not(:disabled) {
    background: #134a73;
}
.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.sync-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.sync-btn:hover:not(:disabled) {
    background: #1e7e34;
}
.sync-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.batch-area {
    background: #f8faff;
    border-radius: 24px;
    padding: 20px 24px;
    margin-bottom: 25px;
    border: 1px solid #e0e9f2;
}
.batch-textarea {
    width: 100%;
    height: 90px;
    border: 2px solid #e0e9f2;
    border-radius: 20px;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-family: monospace;
    background: white;
    resize: vertical;
    margin-bottom: 15px;
}
.batch-textarea:focus {
    outline: none;
    border-color: #1e6eb5;
    box-shadow: 0 0 0 3px rgba(30,110,181,0.1);
}
.batch-textarea::placeholder {
    color: #9bb7d4;
    font-style: italic;
}
.btn-batch {
    background: #286090;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-batch:hover { background: #134a73; }
.edit-footer {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 25px;
}
.btn-add-row {
    background: #4c8bb8;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-add-row:hover {
    background: #134a73;
}
.auto-save-indicator {
    color: #28a745;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 15px;
    white-space: nowrap;
}
.duplicate-alert {
    background: #ffebee;
    color: #d32f2f;
    padding: 12px 24px;
    border-radius: 40px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #ffcdd2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.duplicate-alert i {
    font-size: 1.2rem;
}
.customer-service {
    background: linear-gradient(135deg, #fff9e6, #fff2d9);
    border-radius: 60px;
    padding: 16px 28px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    border: 2px solid #ffc107;
    box-shadow: 0 8px 16px rgba(255,193,7,0.15);
    max-width: 600px;
}
.customer-service span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #b45f06;
    display: flex;
    align-items: center;
    gap: 10px;
}
.customer-service i {
    color: #e67e22;
    font-size: 1.4rem;
}
.copy-phone-btn {
    background: #1661a3;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
    white-space: nowrap;
}
.copy-phone-btn:hover {
    background: #0d4270;
    transform: translateY(-2px);
}
.client-title-header {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
    color: #003770;
    padding: 10px 0;
}
.client-page {
    background: white;
    border-radius: 40px;
    padding: 32px 42px;
    box-shadow: 0 18px 36px -12px #0e3b5e;
    max-width: 1300px;
    margin: 0 auto;
    min-width: min-content;
}
.client-stats {
    display: flex;
    gap: 28px;
    background: #eef5fc;
    padding: 14px 28px;
    border-radius: 60px;
    margin: 22px 0;
    font-weight: 600;
    flex-wrap: wrap;
    justify-content: center;
}
.row-locked-client {
    background: #fafcff;
}
.row-locked-client input {
    background: #f5f9ff;
    border: 1px solid #d4e2f0;
    pointer-events: none;
    color: #4a6a8a;
}
.client-status-text {
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    display: inline-block;
    min-width: 90px;
    font-size: 0.95rem;
    white-space: nowrap;
}
.client-status-pending {
    background: #fff3cd;
    color: #856404;
}
.client-status-warehoused {
    background: #d4edda;
    color: #155724;
}
.client-status-returned {
    background: #e9ecef;
    color: #6c757d;
}
.btn-disabled-client {
    background: #e9eef4;
    color: #6a7f99;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    white-space: nowrap;
}
.client-delete {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #b33c3c;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.2s;
}
.client-delete:hover:not(:disabled) {
    background: #ffebeb;
    color: #a02828;
}
.time-marker {
    font-size: 0.8rem;
    color: #1f6e43;
    margin-top: 6px;
}
.footer-note {
    margin-top: 24px;
    color: #50799e;
    text-align: right;
    font-size: 0.9rem;
}
.doc-unavailable {
    text-align: center;
    padding: 50px 30px;
}
.doc-unavailable i {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}
.doc-unavailable h2 {
    color: #721c24;
    margin-bottom: 20px;
    font-size: 1.8rem;
}
.doc-unavailable p {
    color: #856404;
    margin-bottom: 30px;
    font-size: 1.2rem;
}
.silent-save-hint {
    transition: opacity 0.3s ease;
}
.shipped-page {
    background: white;
    border-radius: 40px;
    padding: 32px 42px;
    box-shadow: 0 18px 36px -12px #0e3b5e;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.shipped-info-card {
    background: linear-gradient(135deg, #f0f7ff, #e5f0fc);
    border-radius: 40px;
    padding: 30px;
    margin: 25px 0;
    text-align: left;
}
.shipped-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #cbddec;
}
.shipped-info-item:last-child {
    border-bottom: none;
}
.shipped-info-item i {
    width: 40px;
    font-size: 1.5rem;
    color: #1661a3;
}
.shipped-info-item .info-label {
    font-weight: 600;
    color: #1f4a72;
    width: 80px;
}
.shipped-info-item .info-value {
    flex: 1;
    color: #003770;
    font-weight: 500;
    word-break: break-all;
}
.ship-query-btn {
    background: #1661a3;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-top: 10px;
    text-decoration: none;
}
.ship-query-btn:hover {
    background: #0d4270;
    transform: translateY(-2px);
}
.copy-ship-link-btn {
    background: #e9f2fa;
    color: #1661a3;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-left: 10px;
}
.copy-ship-link-btn:hover {
    background: #d0e2f5;
}